diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-07 22:22:16 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-07 22:22:16 +0100 |
| commit | 8f9e448b2ef6db7cd905540c21f3c5b190e7a1e7 (patch) | |
| tree | ae0285dd15042d1e9236a5ce2e60daf65acbdca0 /include/sys/wait.h | |
| parent | fc00c656c96528112d05cf0edf8631bd5eaea446 (diff) | |
Add bin/true and bin/false implementations
- Added assembly implementations for `true` and `false` commands.
- Updated Kbuild files to include new binaries.
- Removed unused libraries and headers.
- Cleaned up makefile and unused code.
Diffstat (limited to 'include/sys/wait.h')
| -rw-r--r-- | include/sys/wait.h | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/include/sys/wait.h b/include/sys/wait.h index bbe8a8fe..2a7438d7 100644 --- a/include/sys/wait.h +++ b/include/sys/wait.h @@ -1,20 +1,13 @@ #ifndef __WAIT_H #define __WAIT_H -#define WCONTINUED 0x00000008 -#define WNOHANG 0x00000001 -#define WUNTRACED 0x00000002 -#define WCOREDUMP(__s) ((__s) & 0x80) -#define WIFCONTINUED(__s) ((__s) == 0xffff) -#define WIFEXITED(__s) (!WTERMSIG(__s)) -#define WIFSIGNALED(__s) (((s) & 0xffff) - 1U < 0xffu) -#define WIFSTOPPED(__s) ((short)((((__s) & 0xffff) * 0x10001U) >> 8) > 0x7f00) -#define WSTOPSIG(__s) WEXITSTATUS(__s) -#define WTERMSIG(__s) ((__s) & 0x7f) - -#define WEXITED -#define WNOWAIT -#define WSTOPPED +#define __BITS_WAIT_H_ +#include <bits/wait.h> + +#define WCONTINUED 0x00000008 +#define WEXITED 0x00000004 +#define WNOWAIT 0x01000000 +#define WSTOPPED WUNTRACED typedef __UINT32_TYPE__ id_t; typedef __INT64_TYPE__ pid_t; |
