#include #include #include #include #include extern "C" { int ioctl(int fd, int request, ...) { va_list ap; va_start(ap, request); void* arg = va_arg(ap, void*); long rc = syscall(SYS_ioctl, fd, request, arg); va_end(ap); __errno_return(rc, int); } }