diff options
author | Per Bothner <per@bothner.com> | 1992-02-28 06:07:16 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1992-02-28 06:07:16 +0000 |
commit | 93bd5493dc710e406877ef0e68cf7f5d2ec34c33 (patch) | |
tree | 4199d3846c65b41f37cc39f0fa900e89c50972e7 | |
parent | 8537ba607b34d6142d98849e89fb42e1e0829c1a (diff) | |
download | ppe42-binutils-93bd5493dc710e406877ef0e68cf7f5d2ec34c33.tar.gz ppe42-binutils-93bd5493dc710e406877ef0e68cf7f5d2ec34c33.zip |
* wait.h (WIFSTOPPED): Add IBM rs6000-specific version.
-rw-r--r-- | include/wait.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/wait.h b/include/wait.h index 8bf0676869..4093258a01 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) |