blob: 808b7c9c0f3a38ddd0c03f7261aa9f4fc7b8b9b4 (
plain) (
tree)
|
|
#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 syscall3(__NR_ioctl, fd, req, (long)arg);
}
|