Commit | Line | Data |
---|---|---|
8f7dda83 FF |
1 | diff -u -r /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm64/usr/include/sys/wait.h ./usr/include/sys/wait.h |
2 | --- /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm64/usr/include/sys/wait.h 2014-10-14 22:53:49.000000000 -0400 | |
3 | +++ ./usr/include/sys/wait.h 2015-06-25 06:32:11.975176739 -0400 | |
4 | @@ -44,10 +44,13 @@ | |
59f0d218 FF |
5 | #define WIFEXITED(s) (WTERMSIG(s) == 0) |
6 | #define WIFSTOPPED(s) (WTERMSIG(s) == 0x7f) | |
7 | #define WIFSIGNALED(s) (WTERMSIG((s)+1) >= 2) | |
8 | +#define WIFCONTINUED(x) (WIFSTOPPED(x) && WSTOPSIG(x) == 0x13) | |
8f7dda83 | 9 | |
59f0d218 FF |
10 | extern pid_t wait(int *); |
11 | extern pid_t waitpid(pid_t, int *, int); | |
8f7dda83 FF |
12 | extern pid_t wait4(pid_t, int *, int, struct rusage *); |
13 | +/* Termux addition: Add wait3() declaration used by busybox. Available in libc for 32-bit only. */ | |
14 | +static pid_t wait3(int* status, int options, struct rusage* rusage) { wait4(-1, status, options, rusage); } | |
15 | ||
16 | /* Posix states that idtype_t should be an enumeration type, but | |
17 | * the kernel headers define P_ALL, P_PID and P_PGID as constant macros |