git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Framework for exporting system header to user space (#59)
[lunaix-os.git]
/
lunaix-os
/
usr
/
libc
/
src
/
posix
/
ioctl.c
diff --git
a/lunaix-os/usr/libc/src/posix/ioctl.c
b/lunaix-os/usr/libc/src/posix/ioctl.c
index d3a89a8106a70781ac18b85633505ab20227d362..3585a059cbb2057d40be874916cfc6f05a78415d 100644
(file)
--- a/
lunaix-os/usr/libc/src/posix/ioctl.c
+++ b/
lunaix-os/usr/libc/src/posix/ioctl.c
@@
-1,5
+1,5
@@
-#include <
lunaix/
syscall.h>
-#include <
lunaix
/ioctl.h>
+#include <syscall.h>
+#include <
sys
/ioctl.h>
#include <stdarg.h>
int __attribute__((noinline))
#include <stdarg.h>
int __attribute__((noinline))
@@
-8,7
+8,7
@@
ioctl(int fd, int req, ...)
va_list ap;
va_start(ap, req);
va_list ap;
va_start(ap, req);
- int ret = do_lunaix_syscall(__
SYSCALL
_ioctl, fd, req, &ap);
+ int ret = do_lunaix_syscall(__
NR__lxsys
_ioctl, fd, req, &ap);
va_end(ap);
return ret;
va_end(ap);
return ret;