OrionLibC
Barry Importing existing Orion LibC 03048a9 (2 years, 2 months ago)diff --git a/include/sys/wait.h b/include/sys/wait.h new file mode 100644 index 0000000..47ff26c --- /dev/null +++ b/include/sys/wait.h @@ -0,0 +1,22 @@ +#ifndef _SYS_INCLUDE_H +#define _SYS_INCLUDE_H + +#include <sys/types.h> + +#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