glibc/sysdeps/unix/sysv/linux/loongarch
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 LoongArch: Add vector implementation for _dl_runtime_resolve. 2023-07-11 10:56:01 +08:00
lp64 linux: Add pidfd_getpid 2023-09-05 13:08:59 -03:00
sys Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Implies
Makefile
arch-syscall.h
atomic-machine.h Fix misspellings in sysdeps/unix -- BZ 25337 2023-05-23 11:59:23 +00:00
clone.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
clone3.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
cpu-features.h Loongarch: Add ifunc support and add different versions of strlen 2023-08-14 09:47:09 +08:00
dl-cache.h LoongArch: Add support for ldconfig. 2023-03-13 09:20:28 +08:00
getcontext.S 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
ldd-rewrite.sed
localplt.data
makecontext.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pointer_guard.h LoongArch: Micro-optimize LD_PCREL 2023-08-29 10:35:38 +08:00
readelflib.c LoongArch: ldconfig: Add comments for using EF_LARCH_OBJABI_V1 2023-03-28 09:55:48 +08:00
setcontext.S 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
swapcontext.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sysdep.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sysdep.h Fix misspellings in sysdeps/unix -- BZ 25337 2023-05-23 11:59:23 +00:00
ucontext-macros.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ucontext_i.sym
vfork.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00