From b3528b0048f24e1f3019860c951f17f09e54ff8b Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 28 Jan 2022 17:38:38 -0300 Subject: linux: Add P_PIDFD It was added on Linux 5.4 (3695eae5fee0605f316fbaad0b9e3de791d7dfaf) to extend waitid to wait on pidfd. Reviewed-by: Carlos O'Donell Tested-by: Carlos O'Donell --- sysdeps/mach/hurd/bits/types/idtype_t.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sysdeps/mach/hurd/bits/types/idtype_t.h (limited to 'sysdeps/mach/hurd/bits') diff --git a/sysdeps/mach/hurd/bits/types/idtype_t.h b/sysdeps/mach/hurd/bits/types/idtype_t.h new file mode 100644 index 0000000000..207eb777ba --- /dev/null +++ b/sysdeps/mach/hurd/bits/types/idtype_t.h @@ -0,0 +1,12 @@ +#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. */ +} idtype_t; + +#endif -- cgit 1.4.1