summaryrefslogtreecommitdiffstats
path: root/9/platforms/android-3/arch-arm/usr/include/sys/wait.h
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2014-02-06 22:43:54 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-02-06 22:43:56 +0000
commitbb80d94e4627935b6400bff1b247c772ea09e9a0 (patch)
tree12dd17336d8524973c7788ef3e7d045c8a37edae /9/platforms/android-3/arch-arm/usr/include/sys/wait.h
parentf57907c0dceaaef200f0fe91145422751ac26654 (diff)
parenta1ec217d9be90f989de16aaff2584688e374dc3f (diff)
downloadprebuilts_ndk-bb80d94e4627935b6400bff1b247c772ea09e9a0.zip
prebuilts_ndk-bb80d94e4627935b6400bff1b247c772ea09e9a0.tar.gz
prebuilts_ndk-bb80d94e4627935b6400bff1b247c772ea09e9a0.tar.bz2
Merge "Refresh headers to NDK r9c+"
Diffstat (limited to '9/platforms/android-3/arch-arm/usr/include/sys/wait.h')
-rw-r--r--9/platforms/android-3/arch-arm/usr/include/sys/wait.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/9/platforms/android-3/arch-arm/usr/include/sys/wait.h b/9/platforms/android-3/arch-arm/usr/include/sys/wait.h
index d49684c..e720c2c 100644
--- a/9/platforms/android-3/arch-arm/usr/include/sys/wait.h
+++ b/9/platforms/android-3/arch-arm/usr/include/sys/wait.h
@@ -32,6 +32,9 @@
#include <sys/types.h>
#include <sys/resource.h>
#include <linux/wait.h>
+#include <asm/unistd.h>
+#include <sys/syscall.h>
+
__BEGIN_DECLS
@@ -47,10 +50,9 @@ __BEGIN_DECLS
extern pid_t wait(int *);
extern pid_t waitpid(pid_t, int *, int);
extern pid_t wait3(int *, int, struct rusage *);
-static __inline__ pid_t wait4(pid_t p, int *s, int o, struct rusage *r)
+static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage)
{
- extern pid_t __wait4(pid_t, int *, int, struct rusage *);
- return __wait4(p,s,o,r);
+ return (pid_t)syscall(__NR_wait4, pid, status, options, rusage);
}
__END_DECLS