aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-09-18 08:44:59 +0000
committerRoland McGrath <roland@gnu.org>2004-09-18 08:44:59 +0000
commitc9269ffcf5fef35fed54186453d92c133ccfb9e1 (patch)
tree4385efb1c233b5e697f44bad4afbc27148e34ba3
parent770be06d869804b9a3d5e8925c0cce353d539f0b (diff)
downloadglibc-c9269ffcf5fef35fed54186453d92c133ccfb9e1.tar
glibc-c9269ffcf5fef35fed54186453d92c133ccfb9e1.tar.gz
glibc-c9269ffcf5fef35fed54186453d92c133ccfb9e1.tar.bz2
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.
-rw-r--r--sysdeps/unix/sysv/linux/waitid.c4
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