pid_t wait (int *);
int waitid (idtype_t, id_t, siginfo_t *, int);
pid_t wait (int *);
int waitid (idtype_t, id_t, siginfo_t *, int);
#define WEXITSTATUS(s) (((s) & 0xff00) >> 8)
#define WTERMSIG(s) ((s) & 0x7f)
#define WSTOPSIG(s) WEXITSTATUS(s)
#define WEXITSTATUS(s) (((s) & 0xff00) >> 8)
#define WTERMSIG(s) ((s) & 0x7f)
#define WSTOPSIG(s) WEXITSTATUS(s)