From b8e0118b10424c890598953f877a53a44ff6f9d7 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 16 Jan 2001 19:14:23 +0000 Subject: A little update to wait* and a minor syscall cleanup. --- libc/sysdeps/linux/common/syscalls.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'libc/sysdeps/linux/common/syscalls.c') diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c index 6a8f73eb9..931958de5 100644 --- a/libc/sysdeps/linux/common/syscalls.c +++ b/libc/sysdeps/linux/common/syscalls.c @@ -86,10 +86,7 @@ _syscall1(int, close, int, fd); #endif //#define __NR_waitpid 7 -#include -#ifdef L_waitpid -_syscall3(pid_t, waitpid, pid_t, pid, int *, status, int, options); -#endif +// Implemented using wait4 //#define __NR_creat 8 #ifdef L_creat @@ -792,9 +789,7 @@ _syscall0(int, vhangup); //#define __NR_wait4 114 #ifdef L_wait4 -#include -_syscall4(pid_t, wait4, pid_t, pid, int *, status, int, options, - struct rusage *, rusage); +_syscall4(int, wait4, pid_t, pid, int *, status, int, opts, void *, rusage); #endif //#define __NR_swapoff 115 @@ -966,12 +961,7 @@ _syscall1(pid_t, getsid, pid_t, pid); #endif //#define __NR_fdatasync 148 -// //#define __NR__sysctl 149 -//#ifdef L_sysctl -//_syscall1(int, sysctl, struct __sysctl_args *, args); -//#endif - //#define __NR_mlock 150 //#define __NR_munlock 151 //#define __NR_mlockall 152 -- cgit v1.2.3