glibc/sysdeps/unix/sysv/linux/mips/mips64
Adhemerval Zanella Netto e7190fc73d linux: Add pidfd_getpid
This interface allows to obtain the associated process ID from the
process file descriptor.  It is done by parsing the procps fdinfo
information.  Its prototype is:

   pid_t pidfd_getpid (int fd)

It returns the associated pid or -1 in case of an error and sets the
errno accordingly.  The possible errno values are those from open, read,
and close (used on procps parsing), along with:

   - EBADF if the FD is negative, does not have a PID associated, or if
     the fdinfo fields contain a value larger than pid_t.

   - EREMOTE if the PID is in a separate namespace.

   - ESRCH if the process is already terminated.

Checked on x86_64-linux-gnu on Linux 4.15 (no CLONE_PIDFD or waitid
support), Linux 5.4 (full support), and Linux 6.2.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
2023-09-05 13:08:59 -03:00
..
n32 linux: Add pidfd_getpid 2023-09-05 13:08:59 -03:00
n64 linux: Add pidfd_getpid 2023-09-05 13:08:59 -03:00
configure configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
configure.ac
fxstat64.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
fxstatat64.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
fxstatat.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getdents64.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ipc_priv.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
kstat_cp.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ldd-rewrite.sed
libBrokenLocale.abilist Ignore absolute symbols in ABI tests. 2018-05-04 15:46:32 +00:00
libcrypt.abilist Ignore absolute symbols in ABI tests. 2018-05-04 15:46:32 +00:00
libdl.abilist dlfcn: Move dlopen into libc 2021-06-03 08:26:04 +02:00
libm.abilist math: Remove the error handling wrapper from fmod and fmodf 2023-04-03 16:45:27 -03:00
libnsl.abilist Ignore absolute symbols in ABI tests. 2018-05-04 15:46:32 +00:00
libpthread.abilist nptl: Remove remaining code from libpthread 2021-05-21 22:35:01 +02:00
libthread_db.abilist Ignore absolute symbols in ABI tests. 2018-05-04 15:46:32 +00:00
libutil.abilist login: Move libutil into libc 2021-06-30 08:43:37 +02:00
lxstat64.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Makefile nptl: Fix tst-cancel4 sendto tests 2018-03-05 18:09:08 -03:00
msgctl.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
semctl.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
shmctl.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
syscall.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sysdep.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
xstat64.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00