glibc/sysdeps/unix/sysv/linux/or1k
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
..
bits Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sys Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Implies Linux: Remove generic Implies 2023-02-20 10:21:19 -03:00
Makefile or1k: Build Infrastructure 2022-01-05 06:40:06 +09:00
arch-syscall.h Update syscall lists for Linux 5.17 2022-03-23 17:11:56 +00:00
c++-types.data or1k: ABI lists 2022-01-05 06:40:06 +09:00
clone.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
configure configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
configure.ac or1k: Build Infrastructure 2022-01-05 06:40:06 +09:00
getcontext.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ld.abilist or1k: ABI lists 2022-01-05 06:40:06 +09:00
libBrokenLocale.abilist or1k: ABI lists 2022-01-05 06:40:06 +09:00
libc.abilist linux: Add pidfd_getpid 2023-09-05 13:08:59 -03:00
libc_malloc_debug.abilist or1k: ABI lists 2022-01-05 06:40:06 +09:00
libcrypt.abilist or1k: ABI lists 2022-01-05 06:40:06 +09:00
libm.abilist or1k: ABI lists 2022-01-05 06:40:06 +09:00
libresolv.abilist or1k: ABI lists 2022-01-05 06:40:06 +09:00
libthread_db.abilist or1k: ABI lists 2022-01-05 06:40:06 +09:00
localplt.data elf: Rework exception handling in the dynamic loader [BZ #25486] 2022-11-03 09:39:31 +01:00
makecontext.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mmap_internal.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
or1k_clone.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
setcontext.S Fix misspellings in sysdeps/unix -- BZ 25337 2023-05-23 11:59:23 +00:00
shlib-versions or1k: Build Infrastructure 2022-01-05 06:40:06 +09:00
sigcontextinfo.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
swapcontext.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sysdep.c 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
ucontext_i.sym