linux: Add tst-pidfd.c
commitd2a1ec20976e0c03c50e35b58c8a0b5093e3643b
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 28 Jan 2022 20:46:21 +0000 (28 17:46 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 17 May 2022 13:36:59 +0000 (17 10:36 -0300)
treea311331be07340a36de26179dd47aec1ba9596a7
parentb3528b0048f24e1f3019860c951f17f09e54ff8b
linux: Add tst-pidfd.c

To check for the pidfd functions pidfd_open, pidfd_getfd, pid_send_signal,
and waitid with P_PIDFD.

Checked on x86_64-linux-gnu and i686-linux-gnu.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/tst-pidfd.c [new file with mode: 0644]