diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-01-28 15:27:40 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-05-17 10:32:28 -0300 |
commit | 97f5d19c45799e3abedef771430b5562f1b8764f (patch) | |
tree | 9a7bad9c00dc71e570da10ff89bfccaf3bc09ea0 /sysdeps/unix/sysv/linux/Makefile | |
parent | 1da064c015dce624cb19fcdc0bace7af2bd8caec (diff) | |
download | glibc-97f5d19c45799e3abedef771430b5562f1b8764f.zip glibc-97f5d19c45799e3abedef771430b5562f1b8764f.tar.gz glibc-97f5d19c45799e3abedef771430b5562f1b8764f.tar.bz2 |
linux: Add pidfd_open
This was added on Linux 5.3 (32fcb426ec001cb6d5a4a195091a8486ea77e2df)
as a way to retrieve a pid file descriptors for process that has not
been created CLONE_PIDFD (by usual fork/clone).
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/Makefile')
-rw-r--r-- | sysdeps/unix/sysv/linux/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile index 89cb005..11c15ec 100644 --- a/sysdeps/unix/sysv/linux/Makefile +++ b/sysdeps/unix/sysv/linux/Makefile @@ -113,7 +113,8 @@ sysdep_headers += sys/mount.h sys/acct.h \ bits/types/struct_shmid64_ds.h \ bits/types/struct_shmid64_ds_helper.h \ bits/pthread_stack_min.h bits/pthread_stack_min-dynamic.h \ - sys/rseq.h bits/rseq.h + sys/rseq.h bits/rseq.h \ + sys/pidfd.h tests += tst-clone tst-clone2 tst-clone3 tst-fanotify tst-personality \ tst-quota tst-sync_file_range tst-sysconf-iov_max tst-ttyname \ @@ -240,6 +241,14 @@ $(objpfx)tst-mman-consts.out: ../sysdeps/unix/sysv/linux/tst-mman-consts.py < /dev/null > $@ 2>&1; $(evaluate-test) $(objpfx)tst-mman-consts.out: $(sysdeps-linux-python-deps) +tests-special += $(objpfx)tst-pidfd-consts.out +$(objpfx)tst-pidfd-consts.out: ../sysdeps/unix/sysv/linux/tst-pidfd-consts.py + $(sysdeps-linux-python) \ + ../sysdeps/unix/sysv/linux/tst-pidfd-consts.py \ + $(sysdeps-linux-python-cc) \ + < /dev/null > $@ 2>&1; $(evaluate-test) +$(objpfx)tst-pidfd-consts.out: $(sysdeps-linux-python-deps) + tst-rseq-disable-ENV = GLIBC_TUNABLES=glibc.pthread.rseq=0 endif # $(subdir) == misc |