summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/waitpid.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-01-16 19:14:23 +0000
committerEric Andersen <andersen@codepoet.org>2001-01-16 19:14:23 +0000
commitb8e0118b10424c890598953f877a53a44ff6f9d7 (patch)
tree81a354934cc788b459d22b809d32586abe62021c /libc/sysdeps/linux/common/waitpid.c
parent31e36a1498a8edcc3db48dc4c5a5f8e7cae276ec (diff)
A little update to wait* and a minor syscall cleanup.
Diffstat (limited to 'libc/sysdeps/linux/common/waitpid.c')
-rw-r--r--libc/sysdeps/linux/common/waitpid.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/waitpid.c b/libc/sysdeps/linux/common/waitpid.c
new file mode 100644
index 000000000..255a3c84e
--- /dev/null
+++ b/libc/sysdeps/linux/common/waitpid.c
@@ -0,0 +1,9 @@
+#include <syscall.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <sys/resource.h>
+
+__pid_t waitpid(__pid_t pid, int *wait_stat, int options)
+{
+ return wait4(pid, wait_stat, options, NULL);
+}