fehQlibs 26
Qlibs
Loading...
Searching...
No Matches
Macros | Functions
wait.h File Reference

Go to the source code of this file.

Macros

#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)
 

Functions

int wait_pid (int *, int)
 
int wait_nohang (int *)
 
int wait_stop ()
 
int wait_stopnohang ()
 

Detailed Description

Author
djb s/qmail

Definition in file wait.h.

Macro Definition Documentation

◆ wait_crashed

#define wait_crashed (   w)    ((w) & 127)

Definition at line 15 of file wait.h.

◆ wait_exitcode

#define wait_exitcode (   w)    ((w) >> 8)

Definition at line 16 of file wait.h.

◆ wait_stopped

#define wait_stopped (   w)    (((w) & 127) == 127)

Definition at line 18 of file wait.h.

◆ wait_stopsig

#define wait_stopsig (   w)    ((w) >> 8)

Definition at line 17 of file wait.h.

Function Documentation

◆ wait_nohang()

int wait_nohang ( int *  wstat)

Definition at line 12 of file wait.c.

◆ wait_pid()

int wait_pid ( int *  wstat,
int  pid 
)

Definition at line 17 of file wait.c.

◆ wait_stop()

int wait_stop ( )

◆ wait_stopnohang()

int wait_stopnohang ( )