ack/plat/linux/libsys/ioctl.c

12 lines
331 B
C
Raw Normal View History

#include "libsys.h"
/*
* The usual prototype is ioctl(int, unsigned long, ...). We use a
* different prototype to easily get argp, and we don't include any
* header file that would declare the usual prototype.
*/
int ioctl(int fd, unsigned long request, void *argp)
{
return _syscall(__NR_ioctl, fd, request, (quad)argp);
}