From 922abaa8768220880be005440ac2f6cb3220caf4 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 21 Nov 2001 14:48:09 +0000 Subject: Add acct syscall. Fix sigsuspend which was totally broken (it needed a wrapper) --- libc/sysdeps/linux/common/syscalls.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'libc') 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 +_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 -#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 -- cgit v1.2.3