OSDN Git Service

wait4 is pid_t, not int
authorPeter S. Mazinger <ps.m@gmx.net>
Thu, 3 Nov 2005 19:16:21 +0000 (19:16 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Thu, 3 Nov 2005 19:16:21 +0000 (19:16 -0000)
libc/sysdeps/linux/common/wait4.c

index a48a519..5434a00 100644 (file)
@@ -12,9 +12,9 @@
 
 #define __NR___syscall_wait4 __NR_wait4
 static inline _syscall4(int, __syscall_wait4, __kernel_pid_t, pid,
-               int *, status, int, opts, void *, rusage);
+               int *, status, int, opts, struct rusage *, rusage);
 
-int wait4(pid_t pid, int *status, int opts, struct rusage *rusage)
+pid_t wait4(pid_t pid, int *status, int opts, struct rusage *rusage)
 {
        return (__syscall_wait4(pid, status, opts, rusage));
 }