summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2012-04-11 13:47:32 +0000
committerjmc <jmc@openbsd.org>2012-04-11 13:47:32 +0000
commit6f2b369ca6f3d8ff599909d3d9a88759b577c73d (patch)
treef016a6c9548d068f1a843accd2079995ca495c2b
parentnow that sshd defaults to offering ECDSA keys, ssh-keyscan should also (diff)
downloadwireguard-openbsd-6f2b369ca6f3d8ff599909d3d9a88759b577c73d.tar.xz
wireguard-openbsd-6f2b369ca6f3d8ff599909d3d9a88759b577c73d.zip
tweak previous;
-rw-r--r--lib/libpthread/man/pthread_barrier_init.317
-rw-r--r--lib/libpthread/man/pthread_barrier_wait.321
-rw-r--r--lib/libpthread/man/pthread_barrierattr_getpshared.36
-rw-r--r--lib/libpthread/man/pthread_barrierattr_init.310
4 files changed, 28 insertions, 26 deletions
diff --git a/lib/libpthread/man/pthread_barrier_init.3 b/lib/libpthread/man/pthread_barrier_init.3
index 0f2162ac4da..0629b343e03 100644
--- a/lib/libpthread/man/pthread_barrier_init.3
+++ b/lib/libpthread/man/pthread_barrier_init.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthread_barrier_init.3,v 1.1 2012/04/11 10:18:46 pirofti Exp $
+.\" $OpenBSD: pthread_barrier_init.3,v 1.2 2012/04/11 13:47:32 jmc Exp $
.\"
.\" Copyright (c) 2012 Paul Irofti <pirofti@openbsd.org>
.\"
@@ -39,7 +39,8 @@ If
.Fa attr
is
.Dv NULL
-the default attributes are used. The
+the default attributes are used.
+The
.Fa count
argument is later used by the
.Fn pthread_barrier_wait
@@ -54,8 +55,8 @@ If successful,
.Fn pthread_barrier_init
and
.Fn pthread_barrier_destroy
-will return zero, otherwise an error number will be returned to
-indicate the error.
+return zero;
+otherwise an error number is returned to indicate the error.
.Sh ERRORS
.Fn pthread_barrier_init
will fail if:
@@ -86,8 +87,8 @@ There are still threads waiting on the barrier.
.El
.Sh SEE ALSO
.Xr pthread_barrier_wait 3 ,
-.Xr pthread_barrierattr_init 3 ,
-.Xr pthread_barrierattr_getpshared 3
+.Xr pthread_barrierattr_getpshared 3 ,
+.Xr pthread_barrierattr_init 3
.Sh STANDARDS
.Fn pthread_barrier_init
and
@@ -96,6 +97,6 @@ conform to
.St -p1003.1-2008 .
.Sh BUGS
Currently only private barriers are supported and the pshared attribute is
-always set that way.
-Any attempts to change that value will trigger
+always set that way.
+Any attempts to change that value will trigger
.Er ENOTSUP .
diff --git a/lib/libpthread/man/pthread_barrier_wait.3 b/lib/libpthread/man/pthread_barrier_wait.3
index e2f66137876..338f35b5eb1 100644
--- a/lib/libpthread/man/pthread_barrier_wait.3
+++ b/lib/libpthread/man/pthread_barrier_wait.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthread_barrier_wait.3,v 1.1 2012/04/11 10:18:46 pirofti Exp $
+.\" $OpenBSD: pthread_barrier_wait.3,v 1.2 2012/04/11 13:47:32 jmc Exp $
.\"
.\" Copyright (c) 2012 Paul Irofti <pirofti@openbsd.org>
.\"
@@ -20,7 +20,7 @@
.Os
.Sh NAME
.Nm pthread_barrier_wait
-.Nd synchornize at a barrier
+.Nd synchronize at a barrier
.Sh SYNOPSIS
.Fd #include <pthread.h>
.Ft int
@@ -28,17 +28,17 @@
.Sh DESCRIPTION
The
.Fn pthread_barrier_wait
-function will block the calling thread until the required number of threads
-will call
-.Fn pthread_barrier_wait
+function blocks the calling thread until the required number of threads
+call
+.Fn pthread_barrier_wait ,
as specified at the object's intialization.
.Sh RETURN VALUES
If successful,
.Fn pthread_barrier_wait
-will return
+returns
.Dv PTHREAD_BARRIER_SERIAL_THREAD
-for a single aribtrary thread and zero for each of the other threads,
-otherwise an error number will be returned to indicate the error.
+for a single arbitrary thread and zero for each of the other threads;
+otherwise an error number is returned to indicate the error.
.Sh ERRORS
.Fn pthread_barrier_wait
will fail if:
@@ -47,10 +47,11 @@ will fail if:
The value specified by
.Fa barrier
is invalid.
+.El
.Sh SEE ALSO
.Xr pthread_barrier_init 3 ,
-.Xr pthread_barrierattr_init 3 ,
-.Xr pthread_barrierattr_getpshared 3
+.Xr pthread_barrierattr_getpshared 3 ,
+.Xr pthread_barrierattr_init 3
.Sh STANDARDS
.Fn pthread_barrier_wait
conforms to
diff --git a/lib/libpthread/man/pthread_barrierattr_getpshared.3 b/lib/libpthread/man/pthread_barrierattr_getpshared.3
index 030a616b3a0..e6b60691c53 100644
--- a/lib/libpthread/man/pthread_barrierattr_getpshared.3
+++ b/lib/libpthread/man/pthread_barrierattr_getpshared.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthread_barrierattr_getpshared.3,v 1.1 2012/04/11 10:18:46 pirofti Exp $
+.\" $OpenBSD: pthread_barrierattr_getpshared.3,v 1.2 2012/04/11 13:47:32 jmc Exp $
.\"
.\" Copyright (c) 2012 Paul Irofti <pirofti@openbsd.org>
.\"
@@ -69,9 +69,9 @@ The value specified by
is not PTHREAD_PROCESS_PRIVATE.
.El
.Sh SEE ALSO
-.Xr pthread_barrierattr_init 3
-.Xr pthread_barrier_wait 3 ,
.Xr pthread_barrier_init 3 ,
+.Xr pthread_barrier_wait 3 ,
+.Xr pthread_barrierattr_init 3
.Sh STANDARDS
.Fn pthread_barrierattr_getpshared
and
diff --git a/lib/libpthread/man/pthread_barrierattr_init.3 b/lib/libpthread/man/pthread_barrierattr_init.3
index ee159897ded..ffecf475153 100644
--- a/lib/libpthread/man/pthread_barrierattr_init.3
+++ b/lib/libpthread/man/pthread_barrierattr_init.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthread_barrierattr_init.3,v 1.1 2012/04/11 10:18:46 pirofti Exp $
+.\" $OpenBSD: pthread_barrierattr_init.3,v 1.2 2012/04/11 13:47:32 jmc Exp $
.\"
.\" Copyright (c) 2012 Paul Irofti <pirofti@openbsd.org>
.\"
@@ -42,8 +42,8 @@ If successful,
.Fn pthread_barrierattr_init
and
.Fn pthread_barrierattr_destroy
-will return zero, otherwise an error number will be returned to
-indicate the error.
+return zero;
+otherwise an error number is returned to indicate the error.
.Sh ERRORS
.Fn pthread_barrierattr_init
will fail if:
@@ -66,9 +66,9 @@ The value specified by
is invalid.
.El
.Sh SEE ALSO
-.Xr pthread_barrierattr_getpshared 3
-.Xr pthread_barrier_wait 3 ,
.Xr pthread_barrier_init 3 ,
+.Xr pthread_barrier_wait 3 ,
+.Xr pthread_barrierattr_getpshared 3
.Sh STANDARDS
.Fn pthread_barrierattr_init
and