aboutsummaryrefslogtreecommitdiff
path: root/src/linux/wait3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/wait3.c')
-rw-r--r--src/linux/wait3.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/linux/wait3.c b/src/linux/wait3.c
new file mode 100644
index 0000000..dd63707
--- /dev/null
+++ b/src/linux/wait3.c
@@ -0,0 +1,11 @@
+#include <sys/wait.h>
+#include <sys/resource.h>
+#define SYSCALL_STANDALONE
+#include "syscall.h"
+
+pid_t wait4(pid_t, int *, int, struct rusage *);
+
+pid_t wait3(int *status, int options, struct rusage *usage)
+{
+ return wait4(-1, status, options, usage);
+}