1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:47:45 +00:00

LibC: Add WIFSTOPPED() macro in <sys/wait.h>.

This commit is contained in:
Andreas Kling 2019-07-14 11:31:34 +02:00
parent c9ee481cdf
commit de03b72979

View file

@ -8,6 +8,7 @@ __BEGIN_DECLS
#define WEXITSTATUS(status) (((status)&0xff00) >> 8)
#define WTERMSIG(status) ((status)&0x7f)
#define WIFEXITED(status) (WTERMSIG(status) == 0)
#define WIFSTOPPED(status) (((status) & 0xff) == 0x7f)
#define WIFSIGNALED(status) (((char)(((status)&0x7f) + 1) >> 1) > 0)
#define WNOHANG 1