ioctl.h 340 B

123456789101112131415
  1. #include <syscall.h>
  2. #include <bits/ioctl.h>
  3. inline static long sys_ioctl(int fd, unsigned long request, void* arg)
  4. {
  5. return syscall3(NR_ioctl, fd, request, (long)arg);
  6. }
  7. /* same, with immediate/integer argument */
  8. inline static long sys_ioctli(int fd, unsigned long request, long arg)
  9. {
  10. return syscall3(NR_ioctl, fd, request, arg);
  11. }