glibc/sysdeps/unix/sysv/linux/powerpc
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 io: Fix F_GETLK, F_SETLK, and F_SETLKW for powerpc64 2023-05-31 15:31:02 -03:00
powerpc32 linux: Add pidfd_getpid 2023-09-05 13:08:59 -03:00
powerpc64 linux: Add pidfd_getpid 2023-09-05 13:08:59 -03:00
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 PowerPC: Influence cpu/arch hwcap features via GLIBC_TUNABLES 2023-08-01 07:41:17 -05:00
Versions
configure configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
configure.ac
cpu-features.c PowerPC: Influence cpu/arch hwcap features via GLIBC_TUNABLES 2023-08-01 07:41:17 -05:00
cpu-features.h PowerPC: Influence cpu/arch hwcap features via GLIBC_TUNABLES 2023-08-01 07:41:17 -05:00
dl-auxv.h
dl-cache.h
dl-support.c
elision-conf.c Fix misspellings in sysdeps/unix -- BZ 25337 2023-05-23 11:59:23 +00:00
elision-conf.h
elision-lock.c
elision-timed.c
elision-trylock.c
elision-unlock.c
get_timebase_freq.c Fix misspellings in sysdeps/unix -- BZ 25337 2023-05-23 11:59:23 +00:00
gettimeofday.c
htm.h
internal-ioctl.h
ipc_priv.h
kernel-features.h Linux: Assume and consolidate getpeername wire-up syscall 2023-02-20 10:20:44 -03:00
kernel_sigaction.h
kernel_termios.h
ldd-rewrite.sed
libc-start.c
libc-start.h
libc-vdso.h
libpthread-compat.c
nldbl-abi.h
pointer_guard.h
pthread_attr_setstack.c
pthread_attr_setstacksize.c
readelflib.c
rt-sysdep.c
rtld_static_init.h
sigcontextinfo.h
socket-constants-time64.h
struct_kernel_shmid64_ds.h
syscall.S
sysconf.c
sysdep.c
sysdep.h
test-gettimebasefreq-static.c
test-gettimebasefreq.c
test-powerpc-linux-sysconf.c
time.c
tst-hwcap-tunables.c PowerPC: Influence cpu/arch hwcap features via GLIBC_TUNABLES 2023-08-01 07:41:17 -05:00
xstatver.h