diff options
Diffstat (limited to 'ucspi-tcp-0.88/wait.h')
-rw-r--r-- | ucspi-tcp-0.88/wait.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ucspi-tcp-0.88/wait.h b/ucspi-tcp-0.88/wait.h new file mode 100644 index 0000000..cdb77c3 --- /dev/null +++ b/ucspi-tcp-0.88/wait.h @@ -0,0 +1,14 @@ +#ifndef WAIT_H +#define WAIT_H + +extern int wait_pid(); +extern int wait_nohang(); +extern int wait_stop(); +extern int wait_stopnohang(); + +#define wait_crashed(w) ((w) & 127) +#define wait_exitcode(w) ((w) >> 8) +#define wait_stopsig(w) ((w) >> 8) +#define wait_stopped(w) (((w) & 127) == 127) + +#endif |