diff options
author | Roland McGrath <roland@gnu.org> | 2004-09-18 08:44:59 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2004-09-18 08:44:59 +0000 |
commit | c9269ffcf5fef35fed54186453d92c133ccfb9e1 (patch) | |
tree | 4385efb1c233b5e697f44bad4afbc27148e34ba3 /sysdeps/unix/sysv/linux/waitid.c | |
parent | 770be06d869804b9a3d5e8925c0cce353d539f0b (diff) | |
download | glibc-c9269ffcf5fef35fed54186453d92c133ccfb9e1.tar.gz glibc-c9269ffcf5fef35fed54186453d92c133ccfb9e1.tar.xz glibc-c9269ffcf5fef35fed54186453d92c133ccfb9e1.zip |
2004-09-18 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/waitid.c (do_waitid): Pass fifth argument to system call.
Diffstat (limited to 'sysdeps/unix/sysv/linux/waitid.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/waitid.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/waitid.c b/sysdeps/unix/sysv/linux/waitid.c index 8dcee0c33c..21226df37e 100644 --- a/sysdeps/unix/sysv/linux/waitid.c +++ b/sysdeps/unix/sysv/linux/waitid.c @@ -30,7 +30,9 @@ static inline int do_waitid (idtype_t idtype, id_t id, siginfo_t *infop, int options) { - return INLINE_SYSCALL (waitid, 4, idtype, id, infop, options); + /* The unused fifth argument is a `struct rusage *' that we could + pass if we were using waitid to simulate wait3/wait4. */ + return INLINE_SYSCALL (waitid, 5, idtype, id, infop, options, NULL); } # define NO_DO_WAITID |