about summary refs log tree commit diff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2019-08-05 21:30:20 +0000
committerJoseph Myers <joseph@codesourcery.com>2019-08-05 21:30:20 +0000
commit98013846ecc3fd195c19248ec1447d1d9a37654a (patch)
tree14ee9fb54b8405a7d0630fb90350986bc2bb25a9 /sysdeps/unix
parentd665367f596d3461dd3f434a98b8d9f9f7d7763f (diff)
downloadglibc-98013846ecc3fd195c19248ec1447d1d9a37654a.tar.gz
glibc-98013846ecc3fd195c19248ec1447d1d9a37654a.tar.xz
glibc-98013846ecc3fd195c19248ec1447d1d9a37654a.zip
Add CLONE_PIDFD from Linux 5.2 to bits/sched.h.
This patch adds the CLONE_PIDFD constant from Linux 5.2 to glibc's
bits/sched.h.

Tested for x86_64.

	* sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU] (CLONE_PIDFD):
	New macro.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/bits/sched.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/sched.h b/sysdeps/unix/sysv/linux/bits/sched.h
index 828b878696..b67820cb49 100644
--- a/sysdeps/unix/sysv/linux/bits/sched.h
+++ b/sysdeps/unix/sysv/linux/bits/sched.h
@@ -44,6 +44,8 @@
 # define CLONE_FS      0x00000200 /* Set if fs info shared between processes.  */
 # define CLONE_FILES   0x00000400 /* Set if open files shared between processes.  */
 # define CLONE_SIGHAND 0x00000800 /* Set if signal handlers shared.  */
+# define CLONE_PIDFD   0x00001000 /* Set if a pidfd should be placed
+				     in parent.  */
 # define CLONE_PTRACE  0x00002000 /* Set if tracing continues on the child.  */
 # define CLONE_VFORK   0x00004000 /* Set if the parent wants the child to
 				     wake it up on mm_release.  */