Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1 | #include <sys/ioctl.h> |
2 | #include <stdarg.h> | ||||
3 | #include "syscall.h" | ||||
4 | |||||
5 | int 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 Felker | aa398f5 | 2011-03-20 00:16:43 -0400 | [diff] [blame] | 12 | return syscall(SYS_ioctl, fd, req, arg); |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 13 | } |