aboutsummaryrefslogtreecommitdiff
path: root/include/wait.h
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1992-02-28 06:07:16 +0000
committerPer Bothner <per@bothner.com>1992-02-28 06:07:16 +0000
commit93bd5493dc710e406877ef0e68cf7f5d2ec34c33 (patch)
tree4199d3846c65b41f37cc39f0fa900e89c50972e7 /include/wait.h
parent8537ba607b34d6142d98849e89fb42e1e0829c1a (diff)
downloadgdb-93bd5493dc710e406877ef0e68cf7f5d2ec34c33.zip
gdb-93bd5493dc710e406877ef0e68cf7f5d2ec34c33.tar.gz
gdb-93bd5493dc710e406877ef0e68cf7f5d2ec34c33.tar.bz2
* wait.h (WIFSTOPPED): Add IBM rs6000-specific version.
Diffstat (limited to 'include/wait.h')
-rw-r--r--include/wait.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/wait.h b/include/wait.h
index 8bf0676..4093258 100644
--- a/include/wait.h
+++ b/include/wait.h
@@ -12,7 +12,18 @@
#define WIFEXITED(w) (((w)&0377) == 0)
#define WIFSIGNALED(w) (((w)&0377) != 0177 && ((w)&~0377) == 0)
+#ifdef IBM6000
+
+/* Unfortunately, the above comment (about being compatible in all Unix
+ systems) is not quite correct for AIX, sigh. And AIX 3.2 can generate
+ status words like 0x57c (sigtrap received after load), and gdb would
+ choke on it. */
+
+#define WIFSTOPPED(w) ((w)&0x40)
+
+#else
#define WIFSTOPPED(w) (((w)&0377) == 0177)
+#endif
#define WEXITSTATUS(w) ((w) >> 8) /* same as WRETCODE */
#define WTERMSIG(w) ((w) & 0177)