summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2003-07-04 08:36:06 +0000
committerwiz <wiz@NetBSD.org>2003-07-04 08:36:06 +0000
commitba587118af62d6d2113f1eab45bfb00a0caae7c1 (patch)
tree92dad12b68c15fcb0aad70e6806555b9df43fad5 /lib
parent3c3799a827593f01541ce3ed6e56cd0a0f92e8fc (diff)
Drop trailing whitespace.
Diffstat (limited to 'lib')
-rw-r--r--lib/libpthread/pthread_barrier_init.38
-rw-r--r--lib/libpthread/pthread_barrier_wait.36
-rw-r--r--lib/libpthread/pthread_cleanup_push.34
-rw-r--r--lib/libpthread/pthread_cond_broadcast.310
-rw-r--r--lib/libpthread/pthread_cond_init.34
-rw-r--r--lib/libpthread/pthread_cond_wait.34
-rw-r--r--lib/libpthread/pthread_mutex_lock.36
-rw-r--r--lib/libpthread/pthread_mutexattr.36
-rw-r--r--lib/libpthread/pthread_rwlock_rdlock.34
-rw-r--r--lib/libpthread/pthread_rwlock_unlock.34
-rw-r--r--lib/libpthread/pthread_rwlock_wrlock.36
-rw-r--r--lib/libpthread/pthread_rwlockattr.34
-rw-r--r--lib/libpthread/pthread_spin_init.36
13 files changed, 36 insertions, 36 deletions
diff --git a/lib/libpthread/pthread_barrier_init.3 b/lib/libpthread/pthread_barrier_init.3
index 281364ffe2b..375ba817a45 100644
--- a/lib/libpthread/pthread_barrier_init.3
+++ b/lib/libpthread/pthread_barrier_init.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_barrier_init.3,v 1.3 2003/07/01 10:23:52 wiz Exp $
+.\" $NetBSD: pthread_barrier_init.3,v 1.4 2003/07/04 08:36:06 wiz Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -41,10 +41,10 @@
The
.Fn pthread_barrier_init
function creates a new barrier, with attributes specified with
-.Fa attr
-and
+.Fa attr
+and
.Fa count .
-The
+The
.Fa count
parameter indicates the number of threads which will participate in the barrier.
If
diff --git a/lib/libpthread/pthread_barrier_wait.3 b/lib/libpthread/pthread_barrier_wait.3
index db691fb06e6..e10a568e0fb 100644
--- a/lib/libpthread/pthread_barrier_wait.3
+++ b/lib/libpthread/pthread_barrier_wait.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_barrier_wait.3,v 1.2 2003/06/08 06:44:28 thorpej Exp $
+.\" $NetBSD: pthread_barrier_wait.3,v 1.3 2003/07/04 08:36:06 wiz Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -41,7 +41,7 @@
The
.Fn pthread_barrier_wait
function causes the current thread to wait on the barrier specified.
-Once as many threads as specified by the
+Once as many threads as specified by the
.Fa count
parameter to the corresponding
.Fn pthread_barrier_init
@@ -54,7 +54,7 @@ calls and continue execution.
If successful,
.Fn pthread_barrier_wait
will return zero for all waiting threads except for one. One thread will
-receive status
+receive status
.Dv PTHREAD_BARRIER_SERIAL_THREAD ,
which is intended to indicate that this thead may be used to update
shared data. It is the responsibilty of this thread to insure the visibility and atomicity of any updates to shared data with respect to the other threads participating in the barrier.
diff --git a/lib/libpthread/pthread_cleanup_push.3 b/lib/libpthread/pthread_cleanup_push.3
index ec9c17e655d..26f8c1bf6fc 100644
--- a/lib/libpthread/pthread_cleanup_push.3
+++ b/lib/libpthread/pthread_cleanup_push.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_cleanup_push.3,v 1.2 2003/06/08 06:44:29 thorpej Exp $
+.\" $NetBSD: pthread_cleanup_push.3,v 1.3 2003/07/04 08:36:06 wiz Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -94,7 +94,7 @@ as its only argument.
These functions may be implemented as macros which contain scope delimiters;
therefore, there must be a matching
.Fn pthread_cleanup_pop
-for every
+for every
.Fn pthread_cleanup_push
at the same level of lexical scoping.
.Pp
diff --git a/lib/libpthread/pthread_cond_broadcast.3 b/lib/libpthread/pthread_cond_broadcast.3
index f3b6a992efb..3389a4cba18 100644
--- a/lib/libpthread/pthread_cond_broadcast.3
+++ b/lib/libpthread/pthread_cond_broadcast.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_cond_broadcast.3,v 1.2 2003/06/08 06:44:29 thorpej Exp $
+.\" $NetBSD: pthread_cond_broadcast.3,v 1.3 2003/07/04 08:36:06 wiz Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -76,7 +76,7 @@ function unblocks all threads waiting for the condition variable
.Fa cond .
If no threads are waiting on
.Fa cond ,
-the
+the
.Fn pthead_cond_broadcast
function has no effect.
.Pp
@@ -86,19 +86,19 @@ function unblocks one thread waiting for the condition variable
.Fa cond .
If no threads are waiting on
.Fa cond ,
-the
+the
.Fn pthead_cond_signal
function has no effect.
.Sh RETURN VALUES
If successful, the
.Fn pthread_cond_broadcast
-and
+and
.Fn pthread_cond_signal
functions will return zero, otherwise an error number will be returned
to indicate the error.
.Sh ERRORS
.Fn pthread_cond_broadcast
-and
+and
.Fn pthread_cond_signal
may fail if:
.Bl -tag -width Er
diff --git a/lib/libpthread/pthread_cond_init.3 b/lib/libpthread/pthread_cond_init.3
index 1d77eb57cdd..98d3ee598e9 100644
--- a/lib/libpthread/pthread_cond_init.3
+++ b/lib/libpthread/pthread_cond_init.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_cond_init.3,v 1.2 2003/06/08 06:44:30 thorpej Exp $
+.\" $NetBSD: pthread_cond_init.3,v 1.3 2003/07/04 08:36:06 wiz Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -79,7 +79,7 @@ Condition variables are intended to be used to communicate changes in
the state of data shared between threads. Condition variables are
always associated with a mutex to provide syncronized access to the
shared data. A single predicate should always be assocateed with a
-condition variable. The predicate should identify a state of the
+condition variable. The predicate should identify a state of the
shared data that must be true before the thread proceeds.
.Sh RETURN VALUES
If successful, the
diff --git a/lib/libpthread/pthread_cond_wait.3 b/lib/libpthread/pthread_cond_wait.3
index 57ae79efe74..13e1b52d4c5 100644
--- a/lib/libpthread/pthread_cond_wait.3
+++ b/lib/libpthread/pthread_cond_wait.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_cond_wait.3,v 1.2 2003/06/08 06:44:30 thorpej Exp $
+.\" $NetBSD: pthread_cond_wait.3,v 1.3 2003/07/04 08:36:06 wiz Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -83,7 +83,7 @@ or
.Xr pthread_cond_broadcast 3
with the same condition variable. The current thread holds the lock
on
-.Fa mutex
+.Fa mutex
upon return from the
.Fa pthread_cond_wait
call.
diff --git a/lib/libpthread/pthread_mutex_lock.3 b/lib/libpthread/pthread_mutex_lock.3
index 55217ce9fd4..9d3358a3bed 100644
--- a/lib/libpthread/pthread_mutex_lock.3
+++ b/lib/libpthread/pthread_mutex_lock.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_mutex_lock.3,v 1.3 2003/07/01 10:23:53 wiz Exp $
+.\" $NetBSD: pthread_mutex_lock.3,v 1.4 2003/07/04 08:36:06 wiz Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -87,7 +87,7 @@ will not block waiting for the mutex, but will return an error condition.
.Sh RETURN VALUES
If successful,
.Fn pthread_mutex_lock
-and
+and
.Fn pthread_mutex_trylock
will return zero, otherwise an error number will be returned to
indicate the error.
@@ -126,7 +126,7 @@ is invalid.
.Xr pthread_mutex_unlock 3
.Sh STANDARDS
.Fn pthread_mutex_lock
-and
+and
.Fn pthread_mutex_trylock
conform to
.St -p1003.1-96 .
diff --git a/lib/libpthread/pthread_mutexattr.3 b/lib/libpthread/pthread_mutexattr.3
index c8b26bebb4d..57b09a02168 100644
--- a/lib/libpthread/pthread_mutexattr.3
+++ b/lib/libpthread/pthread_mutexattr.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_mutexattr.3,v 1.2 2003/06/08 06:44:32 thorpej Exp $
+.\" $NetBSD: pthread_mutexattr.3,v 1.3 2003/07/04 08:36:06 wiz Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -118,7 +118,7 @@ is
.Dv PTHREAD_MUTEX_DEFAULT .
.Pp
.Dv PTHREAD_MUXEX_NORMAL
-mutexes do not check for usage errors.
+mutexes do not check for usage errors.
.Dv PTHREAD_MUTEX_NORMAL
mutexes will deadlock if reentered, and result in undefined behavior if a
locked mutex is unlocked by another thread. Attempts to unlock an already
@@ -222,7 +222,7 @@ is invalid.
.\" .Pp
.Pp
.Fn pthread_mutexattr_destroy ,
-.Fn pthread_mutexattr_settype ,
+.Fn pthread_mutexattr_settype ,
and
.Fn pthread_mutexattr_gettype
may fail if:
diff --git a/lib/libpthread/pthread_rwlock_rdlock.3 b/lib/libpthread/pthread_rwlock_rdlock.3
index ec91655fa00..61e03428f83 100644
--- a/lib/libpthread/pthread_rwlock_rdlock.3
+++ b/lib/libpthread/pthread_rwlock_rdlock.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_rwlock_rdlock.3,v 1.3 2003/07/01 10:23:53 wiz Exp $
+.\" $NetBSD: pthread_rwlock_rdlock.3,v 1.4 2003/07/04 08:36:06 wiz Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -81,7 +81,7 @@ presently blocked on the lock. If the read lock cannot be
immediately acquired, the calling thread blocks until it can
acquire the lock.
.Pp
-The
+The
.Fn pthread_rwlock_timedrdlock
performs the same action, with but will not wait beyond
.Fa abstime
diff --git a/lib/libpthread/pthread_rwlock_unlock.3 b/lib/libpthread/pthread_rwlock_unlock.3
index 5e76d4bd397..a0bbd7f93de 100644
--- a/lib/libpthread/pthread_rwlock_unlock.3
+++ b/lib/libpthread/pthread_rwlock_unlock.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_rwlock_unlock.3,v 1.3 2003/07/01 10:23:53 wiz Exp $
+.\" $NetBSD: pthread_rwlock_unlock.3,v 1.4 2003/07/04 08:36:06 wiz Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -97,7 +97,7 @@ The current thread does not own the read/write lock.
.Xr pthread_rwlock_init 3 ,
.Xr pthread_rwlock_destroy 3 ,
.Xr pthread_rwlock_rdlock 3 ,
-.Xr pthread_rwlock_wrlock 3
+.Xr pthread_rwlock_wrlock 3
.Sh STANDARDS
.Fn pthread_rwlock_unlock
conforms to
diff --git a/lib/libpthread/pthread_rwlock_wrlock.3 b/lib/libpthread/pthread_rwlock_wrlock.3
index c8ac5709bc6..f8f172f7994 100644
--- a/lib/libpthread/pthread_rwlock_wrlock.3
+++ b/lib/libpthread/pthread_rwlock_wrlock.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_rwlock_wrlock.3,v 1.2 2003/06/08 06:44:33 thorpej Exp $
+.\" $NetBSD: pthread_rwlock_wrlock.3,v 1.3 2003/07/04 08:36:06 wiz Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -75,7 +75,7 @@ The
function blocks until a write lock can be acquired against
.Fa lock .
.Pp
-The
+The
.Fn pthread_rwlock_timedwrlock
performs the same action, with but will not wait beyond
.Fa abstime
@@ -83,7 +83,7 @@ to obtain the lock before returning.
.Pp
The
.Fn pthread_rwlock_trywrlock
-function performs the same action as
+function performs the same action as
.Fn pthread_rwlock_wrlock ,
but does not block if the lock cannot be immediately obtained.
.Pp
diff --git a/lib/libpthread/pthread_rwlockattr.3 b/lib/libpthread/pthread_rwlockattr.3
index 0d875371a88..f673ba2e5a4 100644
--- a/lib/libpthread/pthread_rwlockattr.3
+++ b/lib/libpthread/pthread_rwlockattr.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_rwlockattr.3,v 1.3 2003/07/01 10:23:53 wiz Exp $
+.\" $NetBSD: pthread_rwlockattr.3,v 1.4 2003/07/04 08:36:06 wiz Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -79,7 +79,7 @@ previously created with
.Sh RETURN VALUES
If successful, the
.Fn pthread_rwlockattr_init
-and
+and
.Fn pthread_rwlockattr_destroy
functions return zero. Otherwise an error number will be returned
to indicate the error.
diff --git a/lib/libpthread/pthread_spin_init.3 b/lib/libpthread/pthread_spin_init.3
index 475f459a2a1..83a10a7e333 100644
--- a/lib/libpthread/pthread_spin_init.3
+++ b/lib/libpthread/pthread_spin_init.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_spin_init.3,v 1.2 2003/06/08 06:44:34 thorpej Exp $
+.\" $NetBSD: pthread_spin_init.3,v 1.3 2003/07/04 08:36:06 wiz Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -42,7 +42,7 @@ The
.Fn pthread_spin_init
function is used to initialize a spinlock. The
.Fa pshared
-parameter is currently unused and all spinlocks exhibit the
+parameter is currently unused and all spinlocks exhibit the
.Dv PTHREAD_PROCESS_SHARED
property.
.Pp
@@ -72,7 +72,7 @@ The
.Fa lock
parameter was NULL or the
.Fa pshared
-parameter was neither
+parameter was neither
.Dv PTHREAD_PROCESS_SHARED
nor
.Dv PTHREAD_PROCESS_PRIVATE .