summaryrefslogtreecommitdiffstats
path: root/9/platforms/android-16/arch-mips/usr/include/sys
diff options
context:
space:
mode:
Diffstat (limited to '9/platforms/android-16/arch-mips/usr/include/sys')
-rw-r--r--9/platforms/android-16/arch-mips/usr/include/sys/prctl.h1
-rw-r--r--9/platforms/android-16/arch-mips/usr/include/sys/utime.h1
-rw-r--r--9/platforms/android-16/arch-mips/usr/include/sys/wait.h8
3 files changed, 7 insertions, 3 deletions
diff --git a/9/platforms/android-16/arch-mips/usr/include/sys/prctl.h b/9/platforms/android-16/arch-mips/usr/include/sys/prctl.h
index 359d684..00e5837 100644
--- a/9/platforms/android-16/arch-mips/usr/include/sys/prctl.h
+++ b/9/platforms/android-16/arch-mips/usr/include/sys/prctl.h
@@ -29,6 +29,7 @@
#define _SYS_PRCTL_H
#include <linux/prctl.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
diff --git a/9/platforms/android-16/arch-mips/usr/include/sys/utime.h b/9/platforms/android-16/arch-mips/usr/include/sys/utime.h
index 9f8810e..918d153 100644
--- a/9/platforms/android-16/arch-mips/usr/include/sys/utime.h
+++ b/9/platforms/android-16/arch-mips/usr/include/sys/utime.h
@@ -28,6 +28,7 @@
#ifndef _SYS_UTIME_H_
#define _SYS_UTIME_H_
+#include <sys/types.h>
#include <linux/utime.h>
#endif /* _SYS_UTIME_H_ */
diff --git a/9/platforms/android-16/arch-mips/usr/include/sys/wait.h b/9/platforms/android-16/arch-mips/usr/include/sys/wait.h
index da29734..51e070b 100644
--- a/9/platforms/android-16/arch-mips/usr/include/sys/wait.h
+++ b/9/platforms/android-16/arch-mips/usr/include/sys/wait.h
@@ -33,6 +33,9 @@
#include <sys/resource.h>
#include <linux/wait.h>
#include <signal.h>
+#include <asm/unistd.h>
+#include <sys/syscall.h>
+
__BEGIN_DECLS
@@ -48,10 +51,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);
}
/* Posix states that idtype_t should be an enumeration type, but