summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-11-21 14:48:09 +0000
committerEric Andersen <andersen@codepoet.org>2001-11-21 14:48:09 +0000
commit922abaa8768220880be005440ac2f6cb3220caf4 (patch)
tree238e7d1d704a75df9f125589282fad19e303b68a /libc
parent4248737d6d674ca07d9264419a902a87355c09c6 (diff)
Add acct syscall. Fix sigsuspend which was totally broken (it
needed a wrapper)
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 7d3e28a2b..9297a81a5 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -374,6 +374,10 @@ _syscall0(gid_t, getgid);
#endif
//#define __NR_acct 51
+#ifdef L_acct
+#include <unistd.h>
+_syscall1(int, acct, const char *, filename);
+#endif
//#define __NR_umount2 52
#ifdef L_umount2
@@ -523,10 +527,16 @@ _syscall2(int, setregid, gid_t, rgid, gid_t, egid);
#endif
//#define __NR_sigsuspend 72
-#ifdef L_sigsuspend
+#define __NR__sigsuspend __NR_sigsuspend
+#ifdef L__sigsuspend
#include <signal.h>
-#undef sigsuspend
-_syscall1(int, sigsuspend, const sigset_t *, mask);
+#undef _sigsuspend
+_syscall1(int, _sigsuspend, unsigned long int, mask);
+
+int sigsuspend (const sigset_t *set)
+{
+ return _sigsuspend(set->__val[0]);
+}
#endif
//#define __NR_sigpending 73