wait: Implement the stat_val functions
Implement the macros used to extract useful infrom from the Status Information of a wait
or waitpid
call. The spec and musl implementation may be useful references.
-
WIFEXITED
-
WEXITSTATUS
-
WIFSIGNALED
-
WTERMSIG
-
WIFSTOPPED
-
WSTOPSIG
-
WIFCONTINUED