1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 12:17:44 +00:00

LibC: Move wait-related stuff to <sys/wait.h>. #POSIX

This commit is contained in:
Andreas Kling 2019-05-30 15:12:09 +02:00
parent ed58abb911
commit 07c3cc01ec
4 changed files with 34 additions and 27 deletions

View file

@ -5,7 +5,17 @@
__BEGIN_DECLS
#define WEXITSTATUS(status) (((status)&0xff00) >> 8)
#define WTERMSIG(status) ((status)&0x7f)
#define WIFEXITED(status) (WTERMSIG(status) == 0)
#define WIFSIGNALED(status) (((char)(((status)&0x7f) + 1) >> 1) > 0)
#define WNOHANG 1
#define WUNTRACED 2
#define WSTOPPED WUNTRACED
#define WEXITED 4
#define WCONTINUED 8
pid_t wait(int* wstatus);
__END_DECLS