diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2023-01-07 05:25:00 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2023-01-07 05:25:00 +0000 |
commit | 8be9c34a92bc776d065a7b50661bf7bd5c764567 (patch) | |
tree | 5227ec96081b287c582622735e28751d6e121c20 /include | |
parent | d16a8134fa033fab3a6bdf55d0b6953f87a06c3a (diff) |
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@
Diffstat (limited to 'include')
-rw-r--r-- | include/unistd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/unistd.h b/include/unistd.h index c9432eadb23..771347031e9 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: unistd.h,v 1.106 2018/07/13 09:25:22 beck Exp $ */ +/* $OpenBSD: unistd.h,v 1.107 2023/01/07 05:24:58 guenther Exp $ */ /* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */ /*- @@ -488,6 +488,7 @@ mode_t getmode(const void *, mode_t); int getresgid(gid_t *, gid_t *, gid_t *); int getresuid(uid_t *, uid_t *, uid_t *); pid_t getthrid(void); +int getthrname(pid_t, char *, size_t); char *getusershell(void); int initgroups(const char *, gid_t); int issetugid(void); @@ -517,6 +518,7 @@ void *setmode(const char *); int setpgrp(pid_t _pid, pid_t _pgrp); /* BSD compat version */ int setresgid(gid_t, gid_t, gid_t); int setresuid(uid_t, uid_t, uid_t); +int setthrname(pid_t, const char *); void setusershell(void); int strtofflags(char **, u_int32_t *, u_int32_t *); int swapctl(int cmd, const void *arg, int misc); |