1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

LibC: Add WIFCONTINUED macro

Like other systems, we can encode the continued state with 0xffff in the
status value. This is needed for some ports.
This commit is contained in:
SeekingBlues 2022-06-17 00:21:02 +08:00 committed by Andreas Kling
parent 5a73bf1553
commit 8730e56e88
2 changed files with 2 additions and 1 deletions

View file

@ -18,6 +18,7 @@ extern "C" {
#define WIFEXITED(status) (WTERMSIG(status) == 0)
#define WIFSTOPPED(status) (((status)&0xff) == 0x7f)
#define WIFSIGNALED(status) (((char)(((status)&0x7f) + 1) >> 1) > 0)
#define WIFCONTINUED(status) ((status) == 0xffff)
#define WNOHANG 1
#define WUNTRACED 2