aboutsummaryrefslogtreecommitdiff
path: root/posix/wait3.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/wait3.c')
-rw-r--r--posix/wait3.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/posix/wait3.c b/posix/wait3.c
index 6b6e3a5..9d7141f 100644
--- a/posix/wait3.c
+++ b/posix/wait3.c
@@ -15,7 +15,6 @@
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
-#include <errno.h>
#include <sys/wait.h>
#include <sys/types.h>
@@ -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)