summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/waitpid.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/waitpid.c')
-rw-r--r--lib/libc/gen/waitpid.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/lib/libc/gen/waitpid.c b/lib/libc/gen/waitpid.c
index 27e920f..5177591 100644
--- a/lib/libc/gen/waitpid.c
+++ b/lib/libc/gen/waitpid.c
@@ -42,21 +42,13 @@ __FBSDID("$FreeBSD$");
#include "libc_private.h"
-#pragma weak waitpid
pid_t
-waitpid(pid_t pid, int *istat, int options)
+__waitpid(pid_t pid, int *istat, int options)
{
- return (((pid_t (*)(pid_t, int *, int))
- __libc_interposing[INTERPOS_waitpid])(pid, istat, options));
+ return (((pid_t (*)(pid_t, int *, int, struct rusage *))
+ __libc_interposing[INTERPOS_wait4])(pid, istat, options, NULL));
}
-pid_t
-__libc_waitpid(pid_t pid, int *istat, int options)
-{
-
- return (__sys_wait4(pid, istat, options, NULL));
-}
-
-__weak_reference(__libc_waitpid, __waitpid);
-__weak_reference(__libc_waitpid, _waitpid);
+__weak_reference(__waitpid, waitpid);
+__weak_reference(__waitpid, _waitpid);
OpenPOWER on IntegriCloud