summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/wait3.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/wait3.c')
-rw-r--r--lib/libc/gen/wait3.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/lib/libc/gen/wait3.c b/lib/libc/gen/wait3.c
index 2e116be..965effe 100644
--- a/lib/libc/gen/wait3.c
+++ b/lib/libc/gen/wait3.c
@@ -42,20 +42,12 @@ __FBSDID("$FreeBSD$");
#include "libc_private.h"
-#pragma weak wait3
pid_t
-wait3(int *istat, int options, struct rusage *rup)
+__wait3(int *istat, int options, struct rusage *rup)
{
- return (((pid_t (*)(int *, int, struct rusage *))
- __libc_interposing[INTERPOS_wait3])(istat, options, rup));
+ return (((pid_t (*)(pid_t, int *, int, struct rusage *))
+ __libc_interposing[INTERPOS_wait4])(WAIT_ANY, istat, options, rup));
}
-__weak_reference(__libc_wait3, __wait3);
-
-pid_t
-__libc_wait3(int *istat, int options, struct rusage *rup)
-{
-
- return (__sys_wait4(WAIT_ANY, istat, options, rup));
-}
+__weak_reference(__wait3, wait3);
OpenPOWER on IntegriCloud