int __ioctl (int fdes, unsigned long int cmd, ...) { va_list va; int res; unsigned long int arg; unsigned long int ext; va_start (va, cmd); arg = va_arg (va, unsigned long int); ext = va_arg (va, unsigned long int); res = kioctl (fdes, cmd, arg, ext); va_end (va); return res; }
static int idesc_file_ops_ioctl(struct idesc *idesc, int request, void *data) { assert(idesc); return kioctl((struct file_desc *)idesc, request, data); }