Blame src/api/sys_wait.c

nsz 6a2161
#include <sys/wait.h>
nsz 6a2161
#define T(t) (t*)0;
nsz 6a2161
#define F(t,n) {t *y = &x.;;}
nsz 6a2161
#define C(n) switch(n){case n:;}
nsz 6a2161
static void f()
nsz 6a2161
{
nsz 6a2161
T(id_t)
nsz 6a2161
T(pid_t)
nsz 6a2161
T(siginfo_t)
nsz 6a2161
C(WEXITSTATUS(0))
nsz 6a2161
C(WIFEXITED(0))
nsz 6a2161
C(WIFSIGNALED(0))
nsz 6a2161
C(WIFSTOPPED(0))
nsz 6a2161
C(WNOHANG)
nsz 6a2161
C(WSTOPSIG(0))
nsz 6a2161
C(WTERMSIG(0))
nsz 6a2161
C(WUNTRACED)
nsz 6a2161
#ifdef _XOPEN_SOURCE
nsz 6a2161
C(WCONTINUED)
nsz 6a2161
C(WIFCONTINUED(0))
nsz 6a2161
#endif
nsz 6a2161
C(WEXITED)
nsz 6a2161
C(WNOWAIT)
nsz 6a2161
C(WSTOPPED)
nsz 6a2161
{idtype_t x = P_ALL;}
nsz 6a2161
{idtype_t x = P_PGID;}
nsz 6a2161
{idtype_t x = P_PID;}
nsz 0ef264
{pid_t(*p)(int*) = wait;}
nsz 0ef264
{int(*p)(idtype_t,id_t,siginfo_t*,int) = waitid;}
nsz 0ef264
{pid_t(*p)(pid_t,int*,int) = waitpid;}
nsz 6a2161
}