#include <sys/wait.h>

sys/wait.h Kernel.framework

includes: sys/cdefs.h, sys/_types.h, Kernel/sys/_types/_pid_t.h, Kernel/sys/_types/_id_t.h, sys/signal.h, sys/resource.h, machine/endian.h
2 macros · 1 union

macroWEXITSTATUS

#define WEXITSTATUS(x) (_W_INT(x) >> 8)

unionwait

Deprecated: Structure of the information in the status word returned by wait4. If w_stopval==_WSTOPPED, then the second structure describes the information returned, else the first.
size 4, align 4
intw_statusused in syscall
unnamed struct at Kernel/sys/wait.h:199:2w_TTerminated process status.
unsigned int:7w_Termsigtermination signal
unsigned int:1w_Coredumpcore dump indicator
unsigned int:8w_Retcodeexit code if w_termsig==0
unsigned int:16w_Fillerupper bits filler
unnamed struct at Kernel/sys/wait.h:217:2w_SStopped process status. Returned only for traced children unless requested with the WUNTRACED option bit.
unsigned int:8w_Stopval== W_STOPPED if stopped
unsigned int:8w_Stopsigsignal that stopped us
unsigned int:16w_Fillerupper bits filler

macroWSTOPPED

Stopped state value; cannot use waitid() parameter of the same name in the same scope
#define WSTOPPED _WSTOPPED