1eb5062bcba1bbe436efae6a09da86f73a34875b
[lunaix-os.git] / lunaix-os / usr / libc / src / posix / ioctl.c
1 #include <syscall.h>
2 #include <lunaix/ioctl.h>
3 #include <stdarg.h>
4
5 int __attribute__((noinline))
6 ioctl(int fd, int req, ...)
7 {
8     va_list ap;
9     va_start(ap, req);
10
11     int ret = do_lunaix_syscall(__NR__lxsys_ioctl, fd, req, &ap);
12     
13     va_end(ap);
14     return ret;
15 }