Commit 57614a3
authored
[libc][sys/wait][linux] add missing and clean up existing macros (#125572)
This patch does a few things:
- replace macro definitions with an inclusion of the linux/wait.h kernel
header.
- WNOHANG
- WUNTRACED
- WEXITED
- WCONTINUED
- WSTOPPED
- P_ALL
- P_PID
- P_PGID
- P_PIDFD
- Add missing macro definitions mandated by POSIX. Some are needed to
build LLVM.
- WCOREDUMP
- WIFCONTINUED
- WIFSIGNALELD
- WIFSTOPPED
- WSTOPSIG
- Remove glibc style __W* macros. Users should stick with the POSIX
macros. We can re-add them if necessary.
- __WEXITSTATUS
- __WTERMSIG
- __WIFEXITED
- __WIFSIGNALED
- __WIFSTOPPED
- __WIFCONTINUED
- __WCOREDUMP
- __W_EXITCODE
- __W_STOPCODE
- __W_CONTINUED
- __WCOREFLAG
Fixes: #1249441 parent 5b98be4 commit 57614a3
1 file changed
+14
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
43 | 26 | | |
44 | 27 | | |
0 commit comments