GDBserver
Macros
gdb_wait.h File Reference

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. */
 

Macro Definition Documentation

#define __WCLONE   0x80000000 /* Wait for cloned process. */

Definition at line 110 of file gdb_wait.h.

Referenced by kill_wait_lwp(), and my_waitpid().

#define WEXITSTATUS (   w)    (((w) >> 8) & 0377) /* same as WRETCODE */
#define WIFEXITED (   w)    (((w)&0377) == 0)
#define WIFSIGNALED (   w)    (((w)&0377) != 0177 && ((w)&~0377) == 0)
#define WIFSTOPPED (   w)    (((w)&0377) == 0177)
#define WNOHANG   1 /* Don't block waiting. */
#define WSETEXIT (   w,
  status 
)    ((w) = (0 | ((status) << 8)))

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
#define WTERMSIG (   w)    ((w) & 0177)
#define WUNTRACED   2 /* Report status of stopped children. */

Definition at line 106 of file gdb_wait.h.

Referenced by lynx_waitpid().