#ifndef _LIBC_SYS_WAIT_H #define _LIBC_SYS_WAIT_H #pragma once #include #ifdef __cplusplus extern "C" { #endif /* Status decoding. The Montauk kernel does not yet report exit codes through SYS_WAITPID, so waited children always decode as exit 0. */ #define WIFEXITED(s) (((s) & 0x7F) == 0) #define WEXITSTATUS(s) (((s) >> 8) & 0xFF) #define WIFSIGNALED(s) (0) #define WTERMSIG(s) (0) #define WIFSTOPPED(s) (0) #define WSTOPSIG(s) (0) #define WNOHANG 1 #define WUNTRACED 2 pid_t wait(int *status); pid_t waitpid(pid_t pid, int *status, int options); #ifdef __cplusplus } #endif #endif /* _LIBC_SYS_WAIT_H */