diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-04-07 21:59:34 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-04-07 21:59:34 +0300 |
commit | b6fac528542ff95fa89e40a6a4c1da2a7346279b (patch) | |
tree | 74932f73f322a7719675f33e3699f61abde16e8c /nonposix.h | |
parent | 43a645fe05c57576d9d41a7f3b18bb55b1dbdc3e (diff) | |
parent | ea1c544208913c0871fb21d9a5d6277d83bf2ef2 (diff) | |
download | egawk-b6fac528542ff95fa89e40a6a4c1da2a7346279b.tar.gz egawk-b6fac528542ff95fa89e40a6a4c1da2a7346279b.tar.bz2 egawk-b6fac528542ff95fa89e40a6a4c1da2a7346279b.zip |
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'nonposix.h')
-rw-r--r-- | nonposix.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -29,3 +29,18 @@ */ #define FAKE_FD_VALUE 42 + +#ifdef __MINGW32__ +/* Replacements for sys/wait.h macros. */ +# define WEXITSTATUS(stv) (((unsigned)(stv)) & ~0xC0000000) +/* MS-Windows programs that crash due to a fatal exception exit with + an exit code whose 2 MSB bits are set. */ +# define WIFEXITED(stv) ((((unsigned)(stv)) & 0xC0000000) == 0) +# define WIFSIGNALED(stv) ((((unsigned)(stv)) & 0xC0000000) == 0xC0000000) +# define WTERMSIG(stv) w32_status_to_termsig ((unsigned)stv) +# define WIFSTOPPED(stv) (0) +# define WSTOPSIG(stv) (0) + +int w32_status_to_termsig (unsigned); + +#endif |