The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
wait_status.h File Reference

Go to the source code of this file.

Macros

#define WAIT_STATUS_EXITED(code)
 the status word waitpid reports for a child, encoded as on other Unix systems (the libc's <sys/wait.h> decodes it): exited with code c: (c & 0xff) << 8 killed by signal s: s (bits 0-6) stopped by signal s: (s << 8) | 0x7f continued: 0xffff
#define WAIT_STATUS_SIGNALED(sig)
#define WAIT_STATUS_STOPPED(sig)
#define WAIT_STATUS_CONTINUED   0xffff
#define WNOHANG   1
#define WUNTRACED   2
#define WCONTINUED   8

Macro Definition Documentation

◆ WAIT_STATUS_EXITED

#define WAIT_STATUS_EXITED ( code)
Value:
(((code) & 0xff) << 8)

the status word waitpid reports for a child, encoded as on other Unix systems (the libc's <sys/wait.h> decodes it): exited with code c: (c & 0xff) << 8 killed by signal s: s (bits 0-6) stopped by signal s: (s << 8) | 0x7f continued: 0xffff

◆ WAIT_STATUS_SIGNALED

#define WAIT_STATUS_SIGNALED ( sig)
Value:
((sig) & 0x7f)

◆ WAIT_STATUS_STOPPED

#define WAIT_STATUS_STOPPED ( sig)
Value:
((((sig) & 0xff) << 8) | 0x7f)

◆ WAIT_STATUS_CONTINUED

#define WAIT_STATUS_CONTINUED   0xffff

◆ WNOHANG

#define WNOHANG   1

◆ WUNTRACED

#define WUNTRACED   2

◆ WCONTINUED

#define WCONTINUED   8