summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/wait3.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/wait3.c')
-rw-r--r--libc/sysdeps/linux/common/wait3.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/wait3.c b/libc/sysdeps/linux/common/wait3.c
new file mode 100644
index 000000000..df9ab5f3a
--- /dev/null
+++ b/libc/sysdeps/linux/common/wait3.c
@@ -0,0 +1,12 @@
+#include <syscall.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <sys/resource.h>
+
+static inline
+_syscall4(__pid_t,wait4,__pid_t,pid,__WAIT_STATUS,status,int,options,struct rusage *,ru)
+
+__pid_t wait3(__WAIT_STATUS wait_stat, int options, struct rusage *reserved)
+{
+ return wait4((-1) /* WAIT_ANY*/, wait_stat, options, reserved);
+}