aboutsummaryrefslogtreecommitdiff
path: root/sys/src/waitfor.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/src/waitfor.c')
-rw-r--r--sys/src/waitfor.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/src/waitfor.c b/sys/src/waitfor.c
new file mode 100644
index 0000000..0228427
--- /dev/null
+++ b/sys/src/waitfor.c
@@ -0,0 +1,8 @@
+#include "internal.h"
+
+int
+sys·waitfor(int pid, int *status, int option, sys·UsageInfo *resource)
+{
+ long ret = syscall(·Wait4, pid, status, option, resource);
+ return error(ret);
+}