sys/wait.h: add P_PIDFD from linux v5.4
[musl] / include / sys / wait.h
index 50c5c70..d4b1f2e 100644 (file)
@@ -13,7 +13,8 @@ extern "C" {
 typedef enum {
        P_ALL = 0,
        P_PID = 1,
-       P_PGID = 2
+       P_PGID = 2,
+       P_PIDFD = 3
 } idtype_t;
 
 pid_t wait (int *);
@@ -53,6 +54,13 @@ pid_t wait4 (pid_t, int *, int, struct rusage *);
 #define WIFSIGNALED(s) (((s)&0xffff)-1U < 0xffu)
 #define WIFCONTINUED(s) ((s) == 0xffff)
 
+#if _REDIR_TIME64
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
+__REDIR(wait3, __wait3_time64);
+__REDIR(wait4, __wait4_time64);
+#endif
+#endif
+
 #ifdef __cplusplus
 }
 #endif