diff options
author | David 'Digit' Turner <digit@google.com> | 2010-09-27 17:30:33 +0200 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2010-09-28 09:18:26 +0200 |
commit | 9973a564222b842eb7497fd6e659fe8c8c49e2b3 (patch) | |
tree | e1a716e1850f15d9245b82affa0b0e7688b0c782 /libc/include/sys | |
parent | a3ae60d343661784e3f6f4566b276d8e6b8a06a7 (diff) | |
download | bionic-9973a564222b842eb7497fd6e659fe8c8c49e2b3.zip bionic-9973a564222b842eb7497fd6e659fe8c8c49e2b3.tar.gz bionic-9973a564222b842eb7497fd6e659fe8c8c49e2b3.tar.bz2 |
libc: Add missing waitid() implementation.
Change-Id: I312ee608dbf9249e4886a10d45d13e3cda8a9042
Diffstat (limited to 'libc/include/sys')
-rw-r--r-- | libc/include/sys/linux-unistd.h | 2 | ||||
-rw-r--r-- | libc/include/sys/wait.h | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/libc/include/sys/linux-unistd.h b/libc/include/sys/linux-unistd.h index 5e9c2f0..a1905b3 100644 --- a/libc/include/sys/linux-unistd.h +++ b/libc/include/sys/linux-unistd.h @@ -9,7 +9,7 @@ void _exit (int); void _exit_thread (int); pid_t __fork (void); pid_t _waitpid (pid_t, int*, int, struct rusage*); -int waitid (int, pid_t, struct siginfo_t*, int,void*); +int __waitid (int, pid_t, struct siginfo_t*, int,void*); pid_t __sys_clone (int, void*, int*, void*, int*); int execve (const char*, char* const*, char* const*); int __setuid (uid_t); diff --git a/libc/include/sys/wait.h b/libc/include/sys/wait.h index 8ba1837..573e220 100644 --- a/libc/include/sys/wait.h +++ b/libc/include/sys/wait.h @@ -32,6 +32,7 @@ #include <sys/types.h> #include <sys/resource.h> #include <linux/wait.h> +#include <signal.h> __BEGIN_DECLS @@ -49,6 +50,14 @@ extern pid_t waitpid(pid_t, int *, int); extern pid_t wait3(int *, int, struct rusage *); extern pid_t wait4(pid_t, int *, int, struct rusage *); +/* Posix states that idtype_t should be an enumeration type, but + * the kernel headers define P_ALL, P_PID and P_PGID as constant macros + * instead. + */ +typedef int idtype_t; + +extern int waidit(idtype_t which, id_t id, siginfo_t *info, int options); + __END_DECLS #endif /* _SYS_WAIT_H_ */ |