From 442d9c9c677804287a54b10d5fa5e58a9cdd338d Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Thu, 14 Nov 2019 11:37:10 -0300 Subject: Consolidate wait3 implementations The generic one calls wait4. Checked on x86_64-linux-gnu. --- posix/wait3.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'posix/wait3.c') diff --git a/posix/wait3.c b/posix/wait3.c index 6b6e3a500d..9d7141f5ba 100644 --- a/posix/wait3.c +++ b/posix/wait3.c @@ -15,7 +15,6 @@ License along with the GNU C Library; if not, see . */ -#include #include #include @@ -27,15 +26,7 @@ pid_t __wait3 (int *stat_loc, int options, struct rusage *usage) { - if ((options & ~(WNOHANG|WUNTRACED)) != 0) - { - __set_errno (EINVAL); - return (pid_t) -1; - } - - __set_errno (ENOSYS); - return (pid_t) -1; + return __wait4 (WAIT_ANY, stat_loc, options, usage); } -stub_warning (wait3) weak_alias (__wait3, wait3) -- cgit 1.4.1