Back to index

glibc  2.9
Defines
waitstatus.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define __WEXITSTATUS(status)   (((status) & 0xff00) >> 8)
#define __WTERMSIG(status)   ((status) & 0x7f)
#define __WSTOPSIG(status)   __WEXITSTATUS(status)
#define __WIFEXITED(status)   (__WTERMSIG(status) == 0)
#define __WIFSIGNALED(status)   (((signed char) (((status) & 0x7f) + 1) >> 1) > 0)
#define __WIFSTOPPED(status)   (((status) & 0xff) == 0x7f)
#define __WCOREDUMP(status)   ((status) & __WCOREFLAG)
#define __W_EXITCODE(ret, sig)   ((ret) << 8 | (sig))
#define __W_STOPCODE(sig)   ((sig) << 8 | 0x7f)
#define __W_CONTINUED   0xffff
#define __WCOREFLAG   0x80

Define Documentation

#define __W_CONTINUED   0xffff

Definition at line 59 of file waitstatus.h.

#define __W_EXITCODE (   ret,
  sig 
)    ((ret) << 8 | (sig))

Definition at line 57 of file waitstatus.h.

#define __W_STOPCODE (   sig)    ((sig) << 8 | 0x7f)

Definition at line 58 of file waitstatus.h.

#define __WCOREDUMP (   status)    ((status) & __WCOREFLAG)

Definition at line 54 of file waitstatus.h.

#define __WCOREFLAG   0x80

Definition at line 60 of file waitstatus.h.

#define __WEXITSTATUS (   status)    (((status) & 0xff00) >> 8)

Definition at line 29 of file waitstatus.h.

#define __WIFEXITED (   status)    (__WTERMSIG(status) == 0)

Definition at line 38 of file waitstatus.h.

#define __WIFSIGNALED (   status)    (((signed char) (((status) & 0x7f) + 1) >> 1) > 0)

Definition at line 41 of file waitstatus.h.

#define __WIFSTOPPED (   status)    (((status) & 0xff) == 0x7f)

Definition at line 45 of file waitstatus.h.

#define __WSTOPSIG (   status)    __WEXITSTATUS(status)

Definition at line 35 of file waitstatus.h.

#define __WTERMSIG (   status)    ((status) & 0x7f)

Definition at line 32 of file waitstatus.h.