diff options
author | David Leonard <d@cvs.openbsd.org> | 2000-01-06 07:07:24 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 2000-01-06 07:07:24 +0000 |
commit | 76a0ca37576cdab968be00e3de27bcd8203c3d8d (patch) | |
tree | 80d4598a12057a14e44d74171d91fae3280ceaba /lib | |
parent | 16ba6d793fa5cf44efca8a396982274f6b7bd40f (diff) |
document
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc_r/man/pthread_set_name_np.3 | 35 | ||||
-rw-r--r-- | lib/libpthread/man/pthread_set_name_np.3 | 35 |
2 files changed, 70 insertions, 0 deletions
diff --git a/lib/libc_r/man/pthread_set_name_np.3 b/lib/libc_r/man/pthread_set_name_np.3 new file mode 100644 index 00000000000..2fe43de7214 --- /dev/null +++ b/lib/libc_r/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. 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. |