glibc/sysdeps/unix/sysv/linux/alpha
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
..
alpha
alphaev6/fpu
alphaev67/fpu
bits Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
fpu
sys Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Implies
Makefile
Versions
____longjmp_chk.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
a.out.h
adjtime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
adjtimex.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
aio_cancel.c
arch-syscall.h
brk_call.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
c++-types.data
clone.S 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
dl-auxv.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dl-support.c
dl-sysdep.c
errlist-compat-data.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
fraiseexcpt.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
fstatfs.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
fstatfs64.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
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
getclktck.c
getcontext.S Fix misspellings in sysdeps/unix -- BZ 25337 2023-05-23 11:59:23 +00:00
getdents.c
getdents64.c
getegid.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
geteuid.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gethostname.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getppid.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getrlimit64.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gettimeofday.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
glob-lstat-compat.c
globfree.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee_get_fp_control.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ieee_set_fp_control.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ioperm.c Fix misspellings in sysdeps/unix -- BZ 25337 2023-05-23 11:59:23 +00:00
ipc_priv.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
kernel-features.h linux: Define __ASSUME_CLONE3 to 0 for alpha, ia64, nios2, sh, and sparc 2023-09-05 10:15:48 -03:00
kernel_sigaction.h
kernel_stat.h
kernel_sysinfo.h
kernel_termios.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ld.abilist
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 math: Remove the error handling wrapper from fmod and fmodf 2023-04-03 16:45:27 -03:00
libnsl.abilist
libpthread.abilist
libresolv.abilist
librt-compat.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
librt.abilist
libthread_db.abilist
libutil.abilist
localplt.data elf: Rework exception handling in the dynamic loader [BZ #25486] 2022-11-03 09:39:31 +01:00
lxstat64.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
makecontext.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nldbl-abi.h
oldglob.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
osf_adjtime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
osf_getitimer.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
osf_getrusage.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
osf_gettimeofday.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
osf_setitimer.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
osf_settimeofday.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
osf_utimes.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
osf_wait4.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pointer_guard.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
rt_sigaction.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
select.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
setcontext.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
setfpucw.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
setrlimit64.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
settimeofday.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
shlib-versions
sigcontextinfo.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sizes.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
statfs.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
statfs64.c 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
syscall.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
syscalls.list
sysconf.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
timer_t_was_int_compat.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ucontext-offsets.sym
vfork.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
wait4.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
wordexp.c
xstat64.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
xstatconv.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
xstatconv.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
xstatver.h