GDB (xrefs)
|
#include <sys/wait.h>
Go to the source code of this file.
Macros | |
#define | WIFEXITED(w) (((w)&0377) == 0) |
#define | WIFSIGNALED(w) (((w)&0377) != 0177 && ((w)&~0377) == 0) |
#define | WIFSTOPPED(w) (((w)&0377) == 0177) |
#define | WEXITSTATUS(w) (((w) >> 8) & 0377) /* same as WRETCODE */ |
#define | WTERMSIG(w) ((w) & 0177) |
#define | WSTOPSIG WEXITSTATUS |
#define | WSETEXIT(w, status) ((w) = (0 | ((status) << 8))) |
#define | WSETSTOP(w, sig) ((w) = (0177 | ((sig) << 8))) |
#define | WNOHANG 1 /* Don't block waiting. */ |
#define | WUNTRACED 2 /* Report status of stopped children. */ |
#define | __WCLONE 0x80000000 /* Wait for cloned process. */ |
#define __WCLONE 0x80000000 /* Wait for cloned process. */ |
Definition at line 110 of file gdb_wait.h.
Referenced by kill_wait_callback(), lin_lwp_attach_lwp(), linux_handle_extended_wait(), linux_nat_post_attach_wait(), linux_nat_wait_1(), my_waitpid(), spu_child_wait(), and wait_lwp().
#define WEXITSTATUS | ( | w | ) | (((w) >> 8) & 0377) /* same as WRETCODE */ |
Definition at line 67 of file gdb_wait.h.
Referenced by darwin_decode_message(), do_rmdir(), linux_nat_attach(), mnsh_maybe_mourn_peer(), procfs_wait(), remote_fileio_func_system(), status_to_str(), and store_waitstatus().
#define WIFEXITED | ( | w | ) | (((w)&0377) == 0) |
Definition at line 44 of file gdb_wait.h.
Referenced by darwin_decode_message(), do_rmdir(), linux_nat_attach(), linux_nat_filter_event(), mnsh_maybe_mourn_peer(), store_waitstatus(), and wait_lwp().
#define WIFSIGNALED | ( | w | ) | (((w)&0377) != 0177 && ((w)&~0377) == 0) |
Definition at line 48 of file gdb_wait.h.
Referenced by linux_nat_attach(), linux_nat_filter_event(), linux_ptrace_test_ret_to_nx(), mnsh_maybe_mourn_peer(), status_to_str(), and wait_lwp().
#define WIFSTOPPED | ( | w | ) | (((w)&0377) == 0177) |
Definition at line 62 of file gdb_wait.h.
Referenced by detach_callback(), ia64_linux_status_is_event(), inf_ptrace_wait(), lin_lwp_attach_lwp(), linux_check_ptrace_features(), linux_child_follow_fork(), linux_fork_killall(), linux_handle_extended_wait(), linux_nat_attach(), linux_nat_detach(), linux_nat_filter_event(), linux_nat_post_attach_wait(), linux_nat_resume(), linux_ptrace_test_ret_to_nx(), linux_test_for_tracefork(), linux_wstatus_maybe_breakpoint(), rs6000_wait(), set_ignore_sigint(), sigtrap_is_event(), spu_child_wait(), status_to_str(), stop_wait_callback(), store_waitstatus(), and wait_lwp().
#define WNOHANG 1 /* Don't block waiting. */ |
Definition at line 102 of file gdb_wait.h.
Referenced by lin_lwp_attach_lwp(), linux_nat_wait_1(), mnsh_maybe_mourn_peer(), my_waitpid(), procfs_wait(), wait_lwp(), and wait_to_die_with_timeout().
Definition at line 84 of file gdb_wait.h.
#define WSETSTOP | ( | w, | |
sig | |||
) | ((w) = (0177 | ((sig) << 8))) |
Definition at line 92 of file gdb_wait.h.
#define WSTOPSIG WEXITSTATUS |
Definition at line 75 of file gdb_wait.h.
Referenced by detach_callback(), get_pending_status(), ia64_linux_status_is_event(), lin_lwp_attach_lwp(), linux_child_follow_fork(), linux_handle_extended_wait(), linux_nat_detach(), linux_nat_filter_event(), linux_nat_post_attach_wait(), linux_nat_resume(), linux_nat_wait_1(), linux_ptrace_test_ret_to_nx(), linux_wstatus_maybe_breakpoint(), set_ignore_sigint(), sigtrap_is_event(), status_to_str(), stop_wait_callback(), store_waitstatus(), and wait_lwp().
#define WTERMSIG | ( | w | ) | ((w) & 0177) |
Definition at line 71 of file gdb_wait.h.
Referenced by darwin_decode_message(), linux_nat_attach(), linux_ptrace_test_ret_to_nx(), mnsh_maybe_mourn_peer(), status_to_str(), and store_waitstatus().
#define WUNTRACED 2 /* Report status of stopped children. */ |
Definition at line 106 of file gdb_wait.h.
Referenced by gnu_wait().