aboutsummaryrefslogtreecommitdiff
path: root/include/mingw.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2017-08-03 12:33:40 +0100
committerRon Yorston <rmy@pobox.com>2017-08-03 12:33:40 +0100
commitc3ca46e619744ccd6c597417cc8e373149608909 (patch)
treead00b2085cb7a5f64112f330225a3e776402d4a3 /include/mingw.h
parent8e20d4e9264a30dcc6d652943211668b1a6fe85b (diff)
downloadbusybox-w32-c3ca46e619744ccd6c597417cc8e373149608909.tar.gz
busybox-w32-c3ca46e619744ccd6c597417cc8e373149608909.tar.bz2
busybox-w32-c3ca46e619744ccd6c597417cc8e373149608909.zip
ash: fixes to wait status
Replace W* macros with versions from GNU C library. Change wait status values to match.
Diffstat (limited to 'include/mingw.h')
-rw-r--r--include/mingw.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/mingw.h b/include/mingw.h
index 5f1074160..574a77e7c 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -184,10 +184,10 @@ int winansi_get_terminal_width_height(struct winsize *win);
184/* 184/*
185 * stdlib.h 185 * stdlib.h
186 */ 186 */
187#define WIFEXITED(x) ((unsigned)(x) < 259) /* STILL_ACTIVE */
188#define WEXITSTATUS(x) ((x) & 0xff)
189#define WIFSIGNALED(x) ((unsigned)(x) > 259)
190#define WTERMSIG(x) ((x) & 0x7f) 187#define WTERMSIG(x) ((x) & 0x7f)
188#define WIFEXITED(x) (WTERMSIG(x) == 0)
189#define WEXITSTATUS(x) (((x) & 0xff00) >> 8)
190#define WIFSIGNALED(x) (((signed char) (((x) & 0x7f) + 1) >> 1) > 0)
191#define WCOREDUMP(x) 0 191#define WCOREDUMP(x) 0
192 192
193int mingw_system(const char *cmd); 193int mingw_system(const char *cmd);