#pragma once #include #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);