summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-01-28 10:23:07 +0000
committerMike Frysinger <vapier@gentoo.org>2007-01-28 10:23:07 +0000
commit5d74c674fdbb30c802d0dc12cd5d3e88536e64de (patch)
tree513595cd390fbd3991938d83f3d6eebcb4799820 /libc
parent12fc619bb75be188d610c4ac86a42ac20492d207 (diff)
initial waitid() implementation
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/waitid.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/waitid.c b/libc/sysdeps/linux/common/waitid.c
new file mode 100644
index 000000000..0e25acb62
--- /dev/null
+++ b/libc/sysdeps/linux/common/waitid.c
@@ -0,0 +1,15 @@
+/* vi: set sw=4 ts=4: */
+/*
+ * Copyright (C) 2007 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#include <sys/syscall.h>
+#include <unistd.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+
+#ifdef __NR_waitid
+_syscall4(int, waitid, idtype_t, idtype, id_t, id, siginfo_t*, infop, int, options);
+#endif