Skip to content

Commit c52b9ec

Browse files
Replace macros defined by linux/wait.h. Just include that kernel header.
1 parent 02de82e commit c52b9ec

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

libc/include/llvm-libc-macros/linux/sys-wait-macros.h

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@
99
#ifndef LLVM_LIBC_MACROS_LINUX_SYS_WAIT_MACROS_H
1010
#define LLVM_LIBC_MACROS_LINUX_SYS_WAIT_MACROS_H
1111

12-
// Wait flags
13-
#define WNOHANG 1 // Do not block
14-
#define WUNTRACED 2 // Report is a child has stopped even if untraced
15-
#define WEXITED 4 // Report dead child
16-
#define WCONTINUED 8 // Report if a stopped child has been resumed by SIGCONT
17-
#define WSTOPPED WUNTRACED
12+
#include <linux/wait.h>
1813

1914
// Wait status info macros
2015
#define __WEXITSTATUS(status) (((status)&0xff00) >> 8)
@@ -35,10 +30,4 @@
3530
#define W_EXITCODE(ret, sig) __W_EXITCODE(ret, sig)
3631
#define W_STOPCODE(sig) __W_STOPCODE(sig)
3732

38-
// First argument to waitid:
39-
#define P_ALL 0
40-
#define P_PID 1
41-
#define P_PGID 2
42-
#define P_PIDFD 3
43-
4433
#endif // LLVM_LIBC_MACROS_LINUX_SYS_WAIT_MACROS_H

0 commit comments

Comments
 (0)