aboutsummaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-01-28 17:38:38 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-05-17 10:34:36 -0300
commitb3528b0048f24e1f3019860c951f17f09e54ff8b (patch)
treedede7fbbf5b9b6ed79e6c24554df5dc24cdeb13e /posix
parent56cf9e8eec3bdc0ce44efeda373de9d6b825ea1e (diff)
downloadglibc-b3528b0048f24e1f3019860c951f17f09e54ff8b.zip
glibc-b3528b0048f24e1f3019860c951f17f09e54ff8b.tar.gz
glibc-b3528b0048f24e1f3019860c951f17f09e54ff8b.tar.bz2
linux: Add P_PIDFD
It was added on Linux 5.4 (3695eae5fee0605f316fbaad0b9e3de791d7dfaf) to extend waitid to wait on pidfd. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'posix')
-rw-r--r--posix/Makefile2
-rw-r--r--posix/sys/wait.h7
2 files changed, 2 insertions, 7 deletions
diff --git a/posix/Makefile b/posix/Makefile
index 9b30b53..cfebb8e 100644
--- a/posix/Makefile
+++ b/posix/Makefile
@@ -32,7 +32,7 @@ headers := sys/utsname.h sys/times.h sys/wait.h sys/types.h unistd.h \
bits/waitflags.h bits/waitstatus.h sys/unistd.h sched.h \
bits/sched.h bits/cpu-set.h re_comp.h wait.h bits/environments.h \
cpio.h spawn.h bits/unistd.h bits/types/struct_sched_param.h \
- bits/unistd_ext.h
+ bits/unistd_ext.h bits/types/idtype_t.h
routines := \
uname \
diff --git a/posix/sys/wait.h b/posix/sys/wait.h
index 79bcdb0..4d649cd 100644
--- a/posix/sys/wait.h
+++ b/posix/sys/wait.h
@@ -71,12 +71,7 @@ typedef __pid_t pid_t;
/* The following values are used by the `waitid' function. */
#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
-typedef enum
-{
- P_ALL, /* Wait for any child. */
- P_PID, /* Wait for specified process. */
- P_PGID /* Wait for members of process group. */
-} idtype_t;
+# include <bits/types/idtype_t.h>
#endif