2016-09-21 01:28:37 +00:00
|
|
|
#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)
|
|
|
|
{
|
2018-06-23 10:13:33 +00:00
|
|
|
return _syscall(__NR_ioctl, fd, request, (quad)argp);
|
2016-09-21 01:28:37 +00:00
|
|
|
}
|