DragonFlyBSD/src 33b81dclib/libc/gen waitid.c Symbol.map, lib/libc/include namespace.h un-namespace.h

system - Add wait6(), waitid(), and si_pid/si_uid siginfo support

* Add the wait6() system call (header definitions taken from FreeBSD).
  This required rearranging kern_wait() a bit.  In particular, we now
  maintain a hold count of 1 on the process during processing instead
  of releasing the hold count early.

* Add waitid() to libc (waitid.c taken from FreeBSD).

* Adjust manual pages (taken from FreeBSD).

* Add siginfo si_pid and si_uid support.  This basically allows a process
  taking a signal to determine where the signal came from.  The fields
  already existed in siginfo but were not implemented.

  Implemented using a non-queued per-process array of signal numbers.
  The last originator sending any given signal is recorded and passed
  through to userland in the siginfo.

* Fixes the 'lightdm' X display manager.  lightdm relies on si_pid
  support.  In addition, note that avoiding long lightdm related
  latencies and timeouts require a softlink from libmozjs-52.so to
  libmozjs-52.so.0 (must be addressed in dports, not addressed in this
  commit).

Loosely-taken-from: FreeBSD (wait6, waitid support only)
Reviewed-by: swildner
DeltaFile
+439-71lib/libc/sys/wait.2
+217-50sys/kern/kern_exit.c
+68-0lib/libc/gen/waitid.c
+57-4sys/sys/wait.h
+29-0sys/kern/kern_sig.c
+11-7sys/kern/kern_proc.c
+12-0sys/sys/sysproto.h
+7-0sys/sys/resource.h
+5-2sys/sys/kern_syscall.h
+6-0lib/libc/sys/Symbol.map
+6-0sys/sys/procctl.h
+4-0sys/sys/signalvar.h
+2-1sys/sys/syscall.mk
+2-1sys/sys/syscall.h
+3-0lib/libc/gen/Symbol.map
+1-1lib/libc/gen/Makefile.inc
+2-0lib/libc/include/namespace.h
+2-0lib/libc/include/un-namespace.h
+2-0lib/libc/sys/Makefile.inc
+2-0sys/kern/syscalls.master
+2-0sys/platform/pc64/x86_64/machdep.c
+2-0sys/platform/vkernel64/x86_64/cpu_regs.c
+1-0sys/kern/syscalls.c
+1-0sys/sys/sysunion.h
+1-0sys/kern/init_sysent.c
+884-13725 files

UnifiedSplitRaw