diff options
| -rw-r--r-- | src/sys/wait/WEXITSTATUS.c | 3 | ||||
| -rw-r--r-- | src/sys/wait/WSTOPSIG.c | 3 | ||||
| -rw-r--r-- | src/sys/wait/WTERMSIG.c | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/src/sys/wait/WEXITSTATUS.c b/src/sys/wait/WEXITSTATUS.c index f0fcafc6..4256e805 100644 --- a/src/sys/wait/WEXITSTATUS.c +++ b/src/sys/wait/WEXITSTATUS.c @@ -1,6 +1,5 @@ #include <sys/wait.h> - -#define WEXITSTATUS 1 +#define WEXITSTATUS(__stat_val) (__stat_val & 0xff) /* POSIX(1) */ diff --git a/src/sys/wait/WSTOPSIG.c b/src/sys/wait/WSTOPSIG.c index 721179c8..467729e4 100644 --- a/src/sys/wait/WSTOPSIG.c +++ b/src/sys/wait/WSTOPSIG.c @@ -1,6 +1,5 @@ #include <sys/wait.h> - -#define WSTOPSIG 6 +#define WSTOPSIG(__stat_val) (__stat_val & 0xff) /* POSIX(1) */ diff --git a/src/sys/wait/WTERMSIG.c b/src/sys/wait/WTERMSIG.c index 6d47fea2..d3990ec7 100644 --- a/src/sys/wait/WTERMSIG.c +++ b/src/sys/wait/WTERMSIG.c @@ -1,6 +1,5 @@ #include <sys/wait.h> - -#define WTERMSIG 7 +#define WTERMSIG(__stat_val) (__stat_val & 0xff) /* POSIX(1) */ |
