git://scm.lunaixsky.com
/
lunaix-os.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Architectural Support: x86_64 (#37)
[lunaix-os.git]
/
lunaix-os
/
usr
/
libc
/
src
/
posix
/
ioctl.c
1
#include <lunaix/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(__SYSCALL_ioctl, fd, req, &ap);
12
13
va_end(ap);
14
return ret;
15
}