source:
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/misc/ioctl.c
Last change on this file was 337, checked in by , 6 years ago | |
---|---|
|
|
File size: 228 bytes |
Line | |
---|---|
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); |
12 | return syscall(SYS_ioctl, fd, req, arg); |
13 | } |
Note:
See TracBrowser
for help on using the repository browser.