fix AS-safety of close when aio is in use and fd map is expanded
[musl] / include / sys / wait.h
index c794f5d..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 *);
@@ -50,9 +51,16 @@ pid_t wait4 (pid_t, int *, int, struct rusage *);
 #define WCOREDUMP(s) ((s) & 0x80)
 #define WIFEXITED(s) (!WTERMSIG(s))
 #define WIFSTOPPED(s) ((short)((((s)&0xffff)*0x10001)>>8) > 0x7f00)
-#define WIFSIGNALED(s) (((s)&0xffff)-1 < 0xffu)
+#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