Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/include/cygwin/wait.h')
-rw-r--r--winsup/cygwin/include/cygwin/wait.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/include/cygwin/wait.h b/winsup/cygwin/include/cygwin/wait.h
index 7e40c8d6c..0d42e8920 100644
--- a/winsup/cygwin/include/cygwin/wait.h
+++ b/winsup/cygwin/include/cygwin/wait.h
@@ -16,12 +16,13 @@ details. */
#define WUNTRACED 2
#define WCONTINUED 8
#define __W_CONTINUED 0xffff
+#define __WCOREFLAG 0x80
/* A status is 16 bits, and looks like:
<1 byte info> <1 byte code>
<code> == 0, child has exited, info is the exit value
- <code> == 1..7e, child has exited, info is the signal number.
+ <code> == 1..7e, child has exited, code is the signal number.
<code> == 7f, child has stopped, info was the signal number.
<code> == 80, there was a core dump.
*/
@@ -34,6 +35,6 @@ details. */
#define WEXITSTATUS(_w) (((_w) >> 8) & 0xff)
#define WTERMSIG(_w) ((_w) & 0x7f)
#define WSTOPSIG WEXITSTATUS
-#define WCOREDUMP(_w) (WIFSIGNALED(_w) && ((_w) & 0x80))
+#define WCOREDUMP(_w) (WIFSIGNALED(_w) && ((_w) & __WCOREFLAG))
#endif /* _CYGWIN_WAIT_H */