diff options
author | 2000-01-06 07:07:23 +0000 | |
---|---|---|
committer | 2000-01-06 07:07:23 +0000 | |
commit | 5a65e4128b031b3dd81714ff0b0aa077e20db621 (patch) | |
tree | c1108816178b21a3cec6e2efdd4baee79ea017ea /lib/libpthread/man | |
parent | volatile the spinlock (diff) | |
download | wireguard-openbsd-5a65e4128b031b3dd81714ff0b0aa077e20db621.tar.xz wireguard-openbsd-5a65e4128b031b3dd81714ff0b0aa077e20db621.zip |
document
Diffstat (limited to 'lib/libpthread/man')
-rw-r--r-- | lib/libpthread/man/pthread_set_name_np.3 | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/libpthread/man/pthread_set_name_np.3 b/lib/libpthread/man/pthread_set_name_np.3 new file mode 100644 index 00000000000..2fe43de7214 --- /dev/null +++ b/lib/libpthread/man/pthread_set_name_np.3 @@ -0,0 +1,35 @@ +.\" $OpenBSD: pthread_set_name_np.3,v 1.1 2000/01/06 07:07:23 d Exp $ +.\" David Leonard <d@openbsd.org>, 1999. Public domain. +.Dd December 19, 1999 +.Dt PTHREAD_SET_NAME_NP 3 +.Os +.Sh NAME +.Nm pthread_set_name_np +.Nd set the name of a thread +.Sh SYNOPSIS +.Fd #include <pthread.h> +.Fd #include <pthread_np.h> +.Ft void +.Fn pthread_set_name_np "pthread_t thread" "char *name" +.Sh DESCRIPTION +The +.Fn pthread_set_name_np +function associates +.Fa name +with +.Fa thread. +This can be useful for debugging, as the name is displayed in +the thread status as displayed when the process receives the +.Dv SIGINFO +signal. +.Pp +The string pointed to by +.Fa name +is copied, and so need not be valid for the life of the thread. +.Sh SEE ALSO +.Xr pthreads 3 +.Sh STANDARDS +The +.Fn pthread_set_name_np +function is non-portable and may not be supported with the above +semantics on other POSIX systems. |