diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-01-28 17:38:38 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-05-17 10:34:36 -0300 |
commit | b3528b0048f24e1f3019860c951f17f09e54ff8b (patch) | |
tree | dede7fbbf5b9b6ed79e6c24554df5dc24cdeb13e /sysdeps/unix/sysv | |
parent | 56cf9e8eec3bdc0ce44efeda373de9d6b825ea1e (diff) | |
download | glibc-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 'sysdeps/unix/sysv')
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/types/idtype_t.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/types/idtype_t.h b/sysdeps/unix/sysv/linux/bits/types/idtype_t.h new file mode 100644 index 0000000..fc084c7 --- /dev/null +++ b/sysdeps/unix/sysv/linux/bits/types/idtype_t.h @@ -0,0 +1,14 @@ +#ifndef __idtype_t_defined +#define __idtype_t_defined + +/* The following values are used by the `waitid' function. */ +typedef enum +{ + P_ALL, /* Wait for any child. */ + P_PID, /* Wait for specified process. */ + P_PGID, /* Wait for members of process group. */ + P_PIDFD, /* Wait for the child referred by the PID file + descriptor. */ +} idtype_t; + +#endif |