OSDN Git Service

initial waitid() implementation
authorMike Frysinger <vapier@gentoo.org>
Sun, 28 Jan 2007 10:23:07 +0000 (10:23 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 28 Jan 2007 10:23:07 +0000 (10:23 -0000)
libc/sysdeps/linux/common/waitid.c [new file with mode: 0644]

diff --git a/libc/sysdeps/linux/common/waitid.c b/libc/sysdeps/linux/common/waitid.c
new file mode 100644 (file)
index 0000000..0e25acb
--- /dev/null
@@ -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