blob: 2264c4b8e2044d288f9929fcbc14d1d41197b5f1 [file] [log] [blame]
#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);
}