mirror of
https://github.com/JannisHeydemann/BoredOS.git
synced 2026-05-30 02:16:58 +00:00
feature: added third_party TCC into userland
This commit is contained in:
15
src/userland/sdk/include/sys/wait.h
Normal file
15
src/userland/sdk/include/sys/wait.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user