Add WCOREDUMP.

This commit is contained in:
Jonas 'Sortie' Termansen 2024-06-23 23:22:50 +02:00
parent 85bad22f34
commit 0ff1b68c09
2 changed files with 6 additions and 2 deletions

View File

@ -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 | \

View File

@ -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)