blob: 5a41f0e846456e5647500c0da4c23f5b39065dc6 [file] [log] [blame]
Rich Felker0b44a032011-02-12 00:22:29 -05001#include <sys/ioctl.h>
2#include <stdarg.h>
3#include "syscall.h"
4
5int ioctl(int fd, int req, ...)
6{
7 void *arg;
8 va_list ap;
9 va_start(ap, req);
10 arg = va_arg(ap, void *);
11 va_end(ap);
Rich Felkeraa398f52011-03-20 00:16:43 -040012 return syscall(SYS_ioctl, fd, req, arg);
Rich Felker0b44a032011-02-12 00:22:29 -050013}