mirror of
https://github.com/BoredDevNL/BoredOS.git
synced 2026-05-15 10:48:38 +00:00
15 lines
387 B
C
15 lines
387 B
C
#ifndef BOREDOS_LIBC_SYS_WAIT_H
|
|
#define BOREDOS_LIBC_SYS_WAIT_H
|
|
|
|
#include "../sys/types.h"
|
|
|
|
#define WNOHANG 1
|
|
|
|
#define WEXITSTATUS(status) (((status) >> 8) & 0xff)
|
|
#define WIFEXITED(status) ((((status) & 0x7f) == 0) ? 1 : 0)
|
|
#define WTERMSIG(status) ((status) & 0x7f)
|
|
#define WIFSIGNALED(status) (((status) & 0x7f) != 0)
|
|
|
|
pid_t waitpid(pid_t pid, int *status, int options);
|
|
|
|
#endif
|