You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
228 B

#include <sys/ioctl.h>
#include <stdarg.h>
#include "syscall.h"
int ioctl(int fd, int req, ...)
{
void *arg;
va_list ap;
va_start(ap, req);
arg = va_arg(ap, void *);
va_end(ap);
return syscall(SYS_ioctl, fd, req, arg);
}