glibc/sysdeps/unix/sysv/linux/i386
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
..
i686
i786
Implies
Makefile
Versions
____longjmp_chk.S
arch-syscall.h
brk.c
c++-types.data
clone.S
clone3.S
configure configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
configure.ac
dl-procinfo.h
dl-sysdep.h
getcontext.S
kernel-features.h
kernel_stat.h
ld.abilist
ldconfig.h
libBrokenLocale.abilist
libanl.abilist
libc-do-syscall-int80.S
libc-do-syscall.S
libc.abilist linux: Add pidfd_getpid 2023-09-05 13:08:59 -03:00
libc_malloc_debug.abilist
libc_sigaction.c
libcrypt.abilist
libdl.abilist
libm.abilist
libnsl.abilist
libpthread.abilist
libresolv.abilist
librt.abilist
libthread_db.abilist
libutil.abilist
localplt.data
makecontext.S
pointer_guard.h
setcontext.S
shlib-versions
sigcontextinfo.h
startup.h
struct_kernel_msqid64_ds.h
struct_kernel_semid64_ds.h
struct_kernel_shmid64_ds.h
swapcontext.S
syscall.S
syscalls.list
sysdep.c
sysdep.h
time64-compat.h
tst-bz21269.c sysdeps: tst-bz21269: fix -Wreturn-type 2023-08-17 09:30:57 +01:00
ucontext_i.sym
vfork.S