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
Notes: sideshowbarker 2024-07-19 13:16:36 +09:00

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