#ifndef _SYS_INCLUDE_H #define _SYS_INCLUDE_H #include #define WIFEXITED(status) (status & (1 << 31)) #define WEXITSTATUS(status) (status & 0x0F) #define WIFSIGNALED(status) (!(status & (1 << 31))) #define WTERMSIG(status) (status & 0xFF) #ifdef __cplusplus extern "C" { #endif pid_t wait(int *wstatus); pid_t waitpid(pid_t pid, int *wstatus, int options); #ifdef __cplusplus } #endif #endif