1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

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>
This commit is contained in:
Adhemerval Zanella
2022-01-28 17:38:38 -03:00
parent 56cf9e8eec
commit b3528b0048
4 changed files with 28 additions and 7 deletions

View File

@ -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