|
@@ -1004,6 +1004,12 @@ _syscall1(int, get_kernel_syms, struct kernel_sym *, table);
|
|
|
#endif
|
|
|
|
|
|
|
|
|
+#ifdef __NR_quotactl
|
|
|
+#ifdef L_quotactl
|
|
|
+#include <sys/quota.h>
|
|
|
+_syscall4(int, quotactl, int, cmd, const char *, special , int, id, caddr_t, addr);
|
|
|
+#endif
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
#ifdef L_getpgid
|
|
@@ -1019,7 +1025,6 @@ _syscall1(int, fchdir, int, fd);
|
|
|
|
|
|
#ifdef L_bdflush
|
|
|
#include <sys/kdaemon.h>
|
|
|
-
|
|
|
_syscall2(int, bdflush, int, __func, long int, __data);
|
|
|
#endif
|
|
|
|
|
@@ -1030,8 +1035,10 @@ _syscall2(int, bdflush, int, __func, long int, __data);
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
#ifdef L__llseek
|
|
@@ -1136,13 +1143,68 @@ _syscall1(pid_t, getsid, pid_t, pid);
|
|
|
#endif
|
|
|
|
|
|
|
|
|
+#ifdef __NR_sched_setparam
|
|
|
+#ifdef L_sched_setparam
|
|
|
+#include <sched.h>
|
|
|
+_syscall2(int, sched_setparam, pid_t, pid, const struct sched_param *, p);
|
|
|
+#endif
|
|
|
+#endif
|
|
|
+
|
|
|
|
|
|
+#ifdef __NR_sched_getparam
|
|
|
+#ifdef L_sched_getparam
|
|
|
+#include <sched.h>
|
|
|
+_syscall2(int, sched_getparam, pid_t, pid, struct sched_param *, p);
|
|
|
+#endif
|
|
|
+#endif
|
|
|
+
|
|
|
|
|
|
+#ifdef __NR_sched_setscheduler
|
|
|
+#ifdef L_sched_setscheduler
|
|
|
+#include <sched.h>
|
|
|
+_syscall3(int, sched_setscheduler, pid_t, pid, int, policy, const struct sched_param *, p);
|
|
|
+#endif
|
|
|
+#endif
|
|
|
+
|
|
|
|
|
|
+#ifdef __NR_sched_getscheduler
|
|
|
+#ifdef L_sched_getscheduler
|
|
|
+#include <sched.h>
|
|
|
+_syscall1(int, sched_getscheduler, pid_t, pid);
|
|
|
+#endif
|
|
|
+#endif
|
|
|
+
|
|
|
|
|
|
+#ifdef __NR_sched_yield
|
|
|
+#ifdef L_sched_yield
|
|
|
+#include <sched.h>
|
|
|
+_syscall0(int, sched_yield);
|
|
|
+#endif
|
|
|
+#endif
|
|
|
+
|
|
|
|
|
|
+#ifdef __NR_sched_get_priority_max
|
|
|
+#ifdef L_sched_get_priority_max
|
|
|
+#include <sched.h>
|
|
|
+_syscall1(int, sched_get_priority_max, int, policy);
|
|
|
+#endif
|
|
|
+#endif
|
|
|
+
|
|
|
|
|
|
+#ifdef __NR_sched_get_priority_min
|
|
|
+#ifdef L_sched_get_priority_min
|
|
|
+#include <sched.h>
|
|
|
+_syscall1(int, sched_get_priority_min, int, policy);
|
|
|
+#endif
|
|
|
+#endif
|
|
|
+
|
|
|
|
|
|
+#ifdef __NR_sched_rr_get_interval
|
|
|
+#ifdef L_sched_rr_get_interval
|
|
|
+#include <sched.h>
|
|
|
+_syscall2(int, sched_rr_get_interval, pid_t, pid, struct timespec *, tp);
|
|
|
+#endif
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
#ifdef L_nanosleep
|
|
@@ -1184,9 +1246,12 @@ _syscall3(int, poll, struct pollfd *, fds, unsigned long int, nfds, int, timeout
|
|
|
#endif
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
#ifdef __NR_rt_sigaction
|
|
@@ -1286,8 +1351,21 @@ _syscall3(int, chown, const char *, path, uid_t, owner, gid_t, group);
|
|
|
#endif
|
|
|
|
|
|
|
|
|
+#ifdef __NR_sigaltstack
|
|
|
+#ifdef L_sigaltstack
|
|
|
+#include <signal.h>
|
|
|
+_syscall2(int, sigaltstack, const struct sigaltstack *, ss, struct sigaltstack *, oss);
|
|
|
+#endif
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
+#ifdef __NR_sendfile
|
|
|
+#ifdef L_sendfile
|
|
|
+#include <unistd.h>
|
|
|
+#include <sys/sendfile.h>
|
|
|
+_syscall4(ssize_t,sendfile, int, out_fd, int, in_fd, off_t *, offset, size_t, count)
|
|
|
+#endif
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
|
|
@@ -1296,22 +1374,29 @@ _syscall3(int, chown, const char *, path, uid_t, owner, gid_t, group);
|
|
|
|
|
|
|
|
|
|
|
|
-#ifdef __UCLIBC_HAVE_LFS__
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
+#ifdef __UCLIBC_HAVE_LFS__
|
|
|
#ifdef L_truncate64
|
|
|
#include <unistd.h>
|
|
|
_syscall2(int, truncate64, const char *, path, __off64_t, length);
|
|
|
#endif
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
+#ifdef __UCLIBC_HAVE_LFS__
|
|
|
#ifdef L_ftruncate64
|
|
|
#include <unistd.h>
|
|
|
_syscall2(int, ftruncate64, int, fd, __off64_t, length);
|
|
|
#endif
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
|
|
|
+#ifdef __UCLIBC_HAVE_LFS__
|
|
|
#ifdef L___stat64
|
|
|
#include <unistd.h>
|
|
|
#include "statfix64.h"
|
|
@@ -1338,8 +1423,10 @@ int stat64(const char *file_name, struct libc_stat64 *buf)
|
|
|
return(__xstat64(0, file_name, buf));
|
|
|
}
|
|
|
#endif
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
+#ifdef __UCLIBC_HAVE_LFS__
|
|
|
#ifdef L___lstat64
|
|
|
#include <unistd.h>
|
|
|
#include "statfix64.h"
|
|
@@ -1366,8 +1453,10 @@ int lstat64(const char *file_name, struct libc_stat64 *buf)
|
|
|
return(__lxstat64(0, file_name, buf));
|
|
|
}
|
|
|
#endif
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
+#ifdef __UCLIBC_HAVE_LFS__
|
|
|
#ifdef L___fstat64
|
|
|
#include <unistd.h>
|
|
|
#include "statfix64.h"
|
|
@@ -1394,20 +1483,50 @@ int fstat64(int filedes, struct libc_stat64 *buf)
|
|
|
return(__fxstat64(0, filedes, buf));
|
|
|
}
|
|
|
#endif
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+#ifdef __NR_pivot_root
|
|
|
+#ifdef L_pivot_root
|
|
|
+_syscall2(int, pivot_root, const char *, new_root, const char *, put_old)
|
|
|
+#endif
|
|
|
+#endif
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+#ifdef __UCLIBC_HAVE_LFS__
|
|
|
#ifdef L_getdents64
|
|
|
#include <unistd.h>
|
|
|
#include <dirent.h>
|
|
|
_syscall3(int, getdents64, int, fd, char *, dirp, size_t, count);
|
|
|
#endif
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
#endif
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|