mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
LibC: Add WIFSTOPPED() macro in <sys/wait.h>.
This commit is contained in:
parent
c9ee481cdf
commit
de03b72979
Notes:
sideshowbarker
2024-07-19 13:16:36 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/de03b72979b
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue