aboutsummaryrefslogtreecommitdiffstats
path: root/libc/include/sys/wait.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-06-16 16:04:35 -0700
committerElliott Hughes <enh@google.com>2015-06-16 16:59:49 -0700
commitd49850d6abb1b70c34be99a46e383a6a878ae19e (patch)
tree4624cfeaeee8dc953c53694f3c405e5dad5f7329 /libc/include/sys/wait.h
parent848276051a24266e1eacf2e508692c62d5a6176d (diff)
downloadandroid_bionic-d49850d6abb1b70c34be99a46e383a6a878ae19e.tar.gz
android_bionic-d49850d6abb1b70c34be99a46e383a6a878ae19e.tar.bz2
android_bionic-d49850d6abb1b70c34be99a46e383a6a878ae19e.zip
Fixes for building gdbserver (and gdb) out of the box.
Bug: http://b/21695943 Change-Id: Iadb600b2ae619515d7038a4db9bf464ba31adb36 (cherry picked from commit 895241efbba344c1590b76fcada89c48f4743cf2)
Diffstat (limited to 'libc/include/sys/wait.h')
-rw-r--r--libc/include/sys/wait.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/include/sys/wait.h b/libc/include/sys/wait.h
index 8d9a5f650..12b73082c 100644
--- a/libc/include/sys/wait.h
+++ b/libc/include/sys/wait.h
@@ -45,6 +45,9 @@ __BEGIN_DECLS
#define WIFSTOPPED(s) (WTERMSIG(s) == 0x7f)
#define WIFSIGNALED(s) (WTERMSIG((s)+1) >= 2)
+#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
+#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
+
extern pid_t wait(int *);
extern pid_t waitpid(pid_t, int *, int);
extern pid_t wait4(pid_t, int *, int, struct rusage *);