glibc/sysdeps/unix/sysv/linux/mips
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 Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mips32 linux: Add pidfd_getpid 2023-09-05 13:08:59 -03:00
mips64 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
Versions Linux: Move wordsize-32 Version to default 2023-02-20 10:19:25 -03:00
____longjmp_chk.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
_test_and_set.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
clone.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
clone3.S mips: Add the clone3 wrapper 2023-09-05 10:15:48 -03:00
configure configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
configure.ac
dl-cache.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
errlist-compat-data.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
fxstat.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getcontext.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
kernel-features.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
kernel_rt_sigframe.h
kernel_sigaction.h
kernel_stat.h
kernel_termios.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ldsodefs.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
libc-abis
lxstat.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
mmap_info.h
readelflib.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
setrlimit64.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
socket-constants-time64.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
struct_kernel_msqid64_ds.h
struct_kernel_semid64_ds.h
struct_kernel_shmid64_ds.h
swapcontext.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
syscalls.list
sysdep.h mips: Add the clone3 wrapper 2023-09-05 10:15:48 -03:00
ucontext_i.sym
ustat.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
vfork.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
xstat.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
xstatver.h