|
@@ -668,9 +668,7 @@ _syscall2(int, fstatfs, int, fd, struct statfs *, buf);
|
|
|
|
|
|
#ifdef L_ioperm
|
|
|
#include <sys/io.h>
|
|
|
-syscall3(int, ioperm, unsigned, long, from, unsigned long, num, int,
|
|
|
-
|
|
|
- turn_on);
|
|
|
+_syscall3(int, ioperm, unsigned long, from, unsigned long, num, int, turn_on);
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
@@ -808,12 +806,13 @@ _syscall1(int, swapoff, const char *, path);
|
|
|
|
|
|
#ifdef L_sysinfo
|
|
|
#include <sys/sysinfo.h>
|
|
|
-_sysinfo(int, sysinfo, struct sysinfo *, info);
|
|
|
+_syscall1(int, sysinfo, struct sysinfo *, info);
|
|
|
#endif
|
|
|
|
|
|
|
|
|
-#ifdef L_ipc
|
|
|
-
|
|
|
+#ifdef L___ipc
|
|
|
+#define __NR___ipc __NR_ipc
|
|
|
+_syscall5(int, __ipc, unsigned int, call, int, first, int, second, int, third, void *, ptr);
|
|
|
#endif
|
|
|
|
|
|
|
|
@@ -892,15 +891,9 @@ _syscall1(int, fchdir, int, fd);
|
|
|
|
|
|
|
|
|
|
|
|
-#ifdef L_setfsuid
|
|
|
-SYSCALL__(setfsuid, 1)
|
|
|
- ret
|
|
|
-#endif
|
|
|
+
|
|
|
|
|
|
-#ifdef L_setfsgid
|
|
|
- SYSCALL__(setfsgid, 1)
|
|
|
- ret
|
|
|
-#endif
|
|
|
+
|
|
|
|
|
|
#ifdef L__llseek
|
|
|
extern int _llseek(int fd, off_t hoff, off_t loff, loff_t *res, int whence);
|
|
@@ -951,14 +944,11 @@ _syscall2(int,flock,int,fd, int,operation);
|
|
|
#endif
|
|
|
|
|
|
|
|
|
-#ifdef L_msync
|
|
|
- SYSCALL__(msync, 3)
|
|
|
- ret
|
|
|
-#endif
|
|
|
|
|
|
+
|
|
|
#ifdef L_readv
|
|
|
#include <sys/uio.h>
|
|
|
- _syscall3(ssize_t, readv, int, filedes, const struct iovec *, vector, int,
|
|
|
+_syscall3(ssize_t, readv, int, filedes, const struct iovec *, vector, int,
|
|
|
count);
|
|
|
#endif
|
|
|
|
|
@@ -976,97 +966,55 @@ _syscall1(pid_t, getsid, pid_t, pid);
|
|
|
#endif
|
|
|
|
|
|
|
|
|
-#ifdef L_fdatasync
|
|
|
- SYSCALL__(fdatasync, 1)
|
|
|
- ret
|
|
|
-#endif
|
|
|
+
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
-#ifdef L_mlock
|
|
|
- SYSCALL__(mlock, 2)
|
|
|
- ret
|
|
|
-#endif
|
|
|
|
|
|
-#ifdef L_munlock
|
|
|
- SYSCALL__(munlock, 2)
|
|
|
- ret
|
|
|
-#endif
|
|
|
|
|
|
-#ifdef L_mlockall
|
|
|
- SYSCALL__(mlockall, 1)
|
|
|
- ret
|
|
|
-#endif
|
|
|
|
|
|
-#ifdef L_munlockall
|
|
|
- SYSCALL__(munlockall, 0)
|
|
|
- ret
|
|
|
-#endif
|
|
|
|
|
|
-#ifdef L_sched_setparam
|
|
|
- SYSCALL__(sched_setparam, 2)
|
|
|
- ret
|
|
|
-#endif
|
|
|
|
|
|
-#ifdef L_sched_getparam
|
|
|
- SYSCALL__(sched_getparam, 2)
|
|
|
- ret
|
|
|
-#endif
|
|
|
|
|
|
-#ifdef L_sched_setscheduler
|
|
|
- SYSCALL__(sched_setscheduler, 3)
|
|
|
- ret
|
|
|
-#endif
|
|
|
|
|
|
-#ifdef L_sched_getscheduler
|
|
|
- SYSCALL__(sched_getscheduler, 1)
|
|
|
- ret
|
|
|
-#endif
|
|
|
|
|
|
-#ifdef L_sched_yield
|
|
|
- SYSCALL__(sched_yield, 0)
|
|
|
- ret
|
|
|
-#endif
|
|
|
|
|
|
-#ifdef L_sched_get_priority_max
|
|
|
- SYSCALL__(sched_get_priority_max, 1)
|
|
|
- ret
|
|
|
-#endif
|
|
|
|
|
|
-#ifdef L_sched_get_priority_min
|
|
|
- SYSCALL__(sched_get_priority_min, 1)
|
|
|
- ret
|
|
|
-#endif
|
|
|
|
|
|
-#ifdef L_sched_rr_get_interval
|
|
|
- SYSCALL__(sched_rr_get_interval, 2)
|
|
|
- ret
|
|
|
-#endif
|
|
|
+
|
|
|
|
|
|
#ifdef L_nanosleep
|
|
|
- SYSCALL__(nanosleep, 2)
|
|
|
- ret
|
|
|
+#include <time.h>
|
|
|
+_syscall2(int, nanosleep, const struct timespec *, req, struct timespec *, rem);
|
|
|
#endif
|
|
|
+
|
|
|
|
|
|
#ifdef L_mremap
|
|
|
#include <unistd.h>
|
|
|
#include <sys/mman.h>
|
|
|
- _syscall4(__ptr_t, mremap, __ptr_t, old_address, size_t, old_size, size_t,
|
|
|
+_syscall4(__ptr_t, mremap, __ptr_t, old_address, size_t, old_size, size_t,
|
|
|
new_size, int, may_move);
|
|
|
#endif
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
+#ifdef L_query_module
|
|
|
+_syscall5(int, query_module, const char *, name, int, which,
|
|
|
+ void *, buf, size_t, bufsize, size_t*, ret);
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
#ifdef L_poll
|
|
|
-SYSCALL__(poll, 3)
|
|
|
- ret
|
|
|
+#include <sys/poll.h>
|
|
|
+_syscall3(int, poll, struct pollfd *, fds, unsigned long int, nfds, int, timeout);
|
|
|
#endif
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1083,10 +1031,11 @@ SYSCALL__(poll, 3)
|
|
|
|
|
|
#ifdef L_chown
|
|
|
#include <unistd.h>
|
|
|
- _syscall3(int, chown, const char *, path, uid_t, owner, gid_t, group);
|
|
|
+_syscall3(int, chown, const char *, path, uid_t, owner, gid_t, group);
|
|
|
#endif
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1101,6 +1050,6 @@ SYSCALL__(poll, 3)
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|