summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2019-02-04 18:06:32 +0000
committerjmc <jmc@openbsd.org>2019-02-04 18:06:32 +0000
commitcbc203c2342cad25c36cab2a7f220b3873c2ba6c (patch)
treeb5a886d0345d78e3203d822556e810ffe6773190
parentsync (diff)
downloadwireguard-openbsd-cbc203c2342cad25c36cab2a7f220b3873c2ba6c.tar.xz
wireguard-openbsd-cbc203c2342cad25c36cab2a7f220b3873c2ba6c.zip
tweak previous;
-rw-r--r--lib/libpthread/man/pthread_set_name_np.311
-rw-r--r--lib/libpthread/man/pthreads.34
2 files changed, 8 insertions, 7 deletions
diff --git a/lib/libpthread/man/pthread_set_name_np.3 b/lib/libpthread/man/pthread_set_name_np.3
index 5c797b05ac3..19b61258466 100644
--- a/lib/libpthread/man/pthread_set_name_np.3
+++ b/lib/libpthread/man/pthread_set_name_np.3
@@ -1,10 +1,11 @@
-.\" $OpenBSD: pthread_set_name_np.3,v 1.7 2019/02/04 17:18:08 tedu Exp $
+.\" $OpenBSD: pthread_set_name_np.3,v 1.8 2019/02/04 18:06:32 jmc Exp $
.\" David Leonard <d@openbsd.org>, 1999. Public domain.
.Dd $Mdocdate: February 4 2019 $
.Dt PTHREAD_SET_NAME_NP 3
.Os
.Sh NAME
-.Nm pthread_set_name_np
+.Nm pthread_set_name_np ,
+.Nm pthread_get_name_np
.Nd set the name of a thread
.Sh SYNOPSIS
.In pthread.h
@@ -28,6 +29,8 @@ signal.
The string pointed to by
.Fa name
is copied, and so need not be valid for the life of the thread.
+.Pp
+The
.Fn pthread_get_name_np
function retrieves
.Fa name
@@ -36,7 +39,5 @@ associated with
.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
+These functions are non-portable and may not be supported with the above
semantics on other POSIX systems.
diff --git a/lib/libpthread/man/pthreads.3 b/lib/libpthread/man/pthreads.3
index 000ddd3ca22..94e86227874 100644
--- a/lib/libpthread/man/pthreads.3
+++ b/lib/libpthread/man/pthreads.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthreads.3,v 1.42 2019/02/04 17:18:08 tedu Exp $
+.\" $OpenBSD: pthreads.3,v 1.43 2019/02/04 18:06:32 jmc Exp $
.\" David Leonard <d@openbsd.org>, 1998. Public domain.
.Dd $Mdocdate: February 4 2019 $
.Dt PTHREADS 3
@@ -170,7 +170,7 @@ Identify the main thread.
.It Fn pthread_set_name_np
Set the name of a thread.
.It Fn pthread_get_name_np
-Get the name of a thread
+Get the name of a thread.
.It Fn pthread_stackseg_np
Return stack size and location.
.It Fn pthread_yield