mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix missing parenthesizes in <sys/wait.h> macros.
This commit is contained in:
parent
840c8e6b02
commit
6cf07034d5
1 changed files with 3 additions and 3 deletions
|
@ -34,9 +34,9 @@ __BEGIN_DECLS
|
|||
#define __WNATURE_STOPPED 2
|
||||
#define __WNATURE_CONTINUED 3
|
||||
|
||||
#define __WEXITSTATUS(status) ((status >> 8) & 0xFF)
|
||||
#define __WTERMSIG(status) ((status >> 0) & 0x7F)
|
||||
#define __WNATURE(status) ((status >> 16) & 0xFF)
|
||||
#define __WEXITSTATUS(status) (((status) >> 8) & 0xFF)
|
||||
#define __WTERMSIG(status) (((status) >> 0) & 0x7F)
|
||||
#define __WNATURE(status) (((status) >> 16) & 0xFF)
|
||||
|
||||
#define __WIFEXITED(status) (__WNATURE(status) == __WNATURE_EXITED)
|
||||
#define __WIFSIGNALED(status) (__WNATURE(status) == __WNATURE_SIGNALED)
|
||||
|
|
Loading…
Reference in a new issue