Add WCOREDUMP.
This commit is contained in:
parent
85bad22f34
commit
0ff1b68c09
2 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2014 Jonas 'Sortie' Termansen.
|
||||
* Copyright (c) 2014, 2024 Jonas 'Sortie' Termansen.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
|
@ -42,6 +42,8 @@ extern "C" {
|
|||
|
||||
#define __WSTOPSIG(status) __WTERMSIG(status)
|
||||
|
||||
#define __WCOREDUMP(status) ((status) & 0)
|
||||
|
||||
#define __WCONSTRUCT(nature, exitcode, signal) \
|
||||
(((nature) & 0xFF) << 16 | \
|
||||
((exitcode) & 0xFF) << 8 | \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2014 Jonas 'Sortie' Termansen.
|
||||
* Copyright (c) 2012, 2014, 2024 Jonas 'Sortie' Termansen.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
|
@ -48,6 +48,8 @@ extern "C" {
|
|||
|
||||
#define WSTOPSIG(status) __WSTOPSIG(status)
|
||||
|
||||
#define WCOREDUMP(status) __WCOREDUMP(status)
|
||||
|
||||
#define WCONSTRUCT(nature, exitcode, signal) \
|
||||
__WCONSTRUCT(nature, exitcode, signal)
|
||||
|
||||
|
|
Loading…
Reference in a new issue