Add {get,set}thrname(2) for putting thread names in the kernel and
authorguenther <guenther@openbsd.org>
Sat, 7 Jan 2023 05:24:58 +0000 (05:24 +0000)
committerguenther <guenther@openbsd.org>
Sat, 7 Jan 2023 05:24:58 +0000 (05:24 +0000)
commitcef5a146e600a27064f0ea2aa25fc5f8663cb9b7
treed32d49030d7c9b19219285e89b86f062850d7549
parent3374c67d44f9b75b98444cbf63020f777792342e
Add {get,set}thrname(2) for putting thread names in the kernel and
exposed in a new field returned by sysctl(KERN_PROC).  Update
pthread_{get,set}_name_np(3) to use the syscalls.  Show them, when
set, in ps -H and top -H output.

libc and libpthread minor bumps

ok mpi@, mvs@, deraadt@
15 files changed:
bin/ps/print.c
include/unistd.h
lib/libc/Symbols.list
lib/libc/shlib_version
lib/libc/sys/Makefile.inc
lib/librthread/rthread_np.c
lib/librthread/shlib_version
sys/kern/kern_exec.c
sys/kern/kern_fork.c
sys/kern/kern_pledge.c
sys/kern/kern_prot.c
sys/kern/syscalls.master
sys/sys/proc.h
sys/sys/sysctl.h
usr.bin/top/machine.c