summaryrefslogtreecommitdiff
path: root/src/libc/include/sys/wait.h
blob: cc8b9a85f6935dfc81f3809cb2bb2c7215329b50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once
#include <sys/types.h>

#define WIFSTOPPED(x) 0
#define WEXITSTATUS(x) ((x)&0xFF)
#define WIFEXITED(x) 1
#define WIFSIGNALED(x) 0
#define WSTOPSIG(x) 0
#define WTERMSIG(x) 0

#define WNOHANG 0
#define WUNTRACED 0

pid_t wait(int *wstatus);
pid_t wait3(int *wstatus, int opts, struct rusage *rusage);
pid_t waitpid(pid_t pid, int *wstatus, int opts);