glibc/sysdeps/unix/sysv/linux/ia64
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
sys Add PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG etc. from Linux 6.4 to sys/ptrace.h 2023-08-08 14:38:22 +00:00
Implies
Makefile
Versions
____longjmp_chk.S
__ia64_longjmp.S
__longjmp.S
__sigstack_longjmp.c
__start_context.S
arch-syscall.h
brk.c
bsd-_setjmp.S
bsd-setjmp.S
c++-types.data
clone.S
clone2.S Fix misspellings in sysdeps/unix -- BZ 25337 2023-05-23 11:59:23 +00:00
configure configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
configure.ac
dl-cache.h
dl-sysdep.h
getclktck.c
getcontext.S
ioperm.c
kernel-features.h linux: Define __ASSUME_CLONE3 to 0 for alpha, ia64, nios2, sh, and sparc 2023-09-05 10:15:48 -03:00
ld.abilist
ldd-rewrite.sed
libBrokenLocale.abilist
libanl.abilist
libc.abilist linux: Add pidfd_getpid 2023-09-05 13:08:59 -03:00
libc_malloc_debug.abilist
libcrypt.abilist
libdl.abilist
libm.abilist
libnsl.abilist
libpthread.abilist
libresolv.abilist
librt.abilist
libthread_db.abilist
libutil.abilist
localplt.data
makecontext.c
mmap_internal.h
pointer_guard.h
readelflib.c
rt-sysdep.S
setcontext.S
setjmp.S
shlib-versions
sigaltstack-offsets.sym
sigcontext-offsets.sym
sigcontextinfo.h
startup.h
swapcontext.c
syscall.S
syscalls.list
sysconf-sigstksz.h
sysdep.S
sysdep.h Fix misspellings in sysdeps/unix -- BZ 25337 2023-05-23 11:59:23 +00:00
timer_t_was_int_compat.h
tst-setcontext2.c
tst-setcontext4.c
ucontext_i.h
unwind-dw2-fde.c
unwind_longjmp.c
vfork.S
wordexp.c
xstatver.h