summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-04-12 21:48:06 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-04-12 21:48:06 +0000
commit92dcc59984c834e34afcdaac99c0197d63a33ac8 (patch)
treeeb25de6f69d8162ab25e130d8aa6b85c3bce5624 /lib/libpthread
parente264389dcab269557e4c11a85d01749c8069c994 (diff)
Trailing whitespace begone!
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/man/pthread_attr_init.38
-rw-r--r--lib/libpthread/man/pthread_attr_setdetachstate.310
-rw-r--r--lib/libpthread/man/pthread_attr_setstackaddr.310
-rw-r--r--lib/libpthread/man/pthread_attr_setstacksize.310
-rw-r--r--lib/libpthread/man/pthread_rwlock_init.34
-rw-r--r--lib/libpthread/man/pthread_rwlock_rdlock.34
-rw-r--r--lib/libpthread/man/pthread_rwlock_unlock.34
-rw-r--r--lib/libpthread/man/pthread_rwlock_wrlock.34
-rw-r--r--lib/libpthread/man/pthread_rwlockattr_destroy.34
-rw-r--r--lib/libpthread/man/pthread_rwlockattr_getpshared.34
-rw-r--r--lib/libpthread/man/pthread_rwlockattr_init.34
-rw-r--r--lib/libpthread/man/pthread_rwlockattr_setpshared.34
-rw-r--r--lib/libpthread/man/pthread_set_name_np.34
-rw-r--r--lib/libpthread/man/pthreads.312
14 files changed, 43 insertions, 43 deletions
diff --git a/lib/libpthread/man/pthread_attr_init.3 b/lib/libpthread/man/pthread_attr_init.3
index 12be2137e69..742012783a4 100644
--- a/lib/libpthread/man/pthread_attr_init.3
+++ b/lib/libpthread/man/pthread_attr_init.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthread_attr_init.3,v 1.1 2000/01/06 06:15:29 d Exp $
+.\" $OpenBSD: pthread_attr_init.3,v 1.2 2000/04/12 21:48:02 aaron Exp $
.\" Manual page derived from TOG's UNIX98 documentation.
.Dd January 6, 2000
.Dt PTHREAD_ATTR_INIT 3
@@ -17,7 +17,7 @@
The function
.Fn pthread_attr_init
initialises a thread attributes
-object
+object
.Fa attr
with the default value for all of the individual
attributes used by a given implementation.
@@ -34,13 +34,13 @@ The
function is used to destroy a thread
attributes object. An implementation may cause
.Fn pthread_attr_destroy
-to set
+to set
.Fa attr
to an implementation-dependent
invalid value. The behaviour of using the attribute after it has
been destroyed is undefined.
.Sh RETURN VALUE
-Upon successful completion,
+Upon successful completion,
.Fn pthread_attr_init
and
.Fn pthread_attr_destroy
diff --git a/lib/libpthread/man/pthread_attr_setdetachstate.3 b/lib/libpthread/man/pthread_attr_setdetachstate.3
index 0f9513f9e88..ad0a12d3814 100644
--- a/lib/libpthread/man/pthread_attr_setdetachstate.3
+++ b/lib/libpthread/man/pthread_attr_setdetachstate.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthread_attr_setdetachstate.3,v 1.1 2000/01/06 06:15:29 d Exp $
+.\" $OpenBSD: pthread_attr_setdetachstate.3,v 1.2 2000/04/12 21:48:02 aaron Exp $
.\" Manual page derived from TOG's UNIX98 documentation.
.Dd January 6, 2000
.Dt PTHREAD_ATTR_SETDETACHSTATE 3
@@ -18,7 +18,7 @@ The
.Va detachstate
attribute controls whether the thread is created in
a detached state. If the thread is created detached, then use of
-the ID of the newly created thread by the
+the ID of the newly created thread by the
.Xr pthread_detach 3
or
.Xr pthread_join 3
@@ -46,7 +46,7 @@ causes
all threads created with
.Fa attr
to be in the detached state, whereas
-using a value of
+using a value of
.Dv PTHREAD_CREATE_JOINABLE
causes all threads created
with
@@ -66,9 +66,9 @@ error number is returned to indicate the error.
.Pp
The
.Fn pthread_attr_getdetachstate
-function stores the value of the
+function stores the value of the
.Va detachstate
-attribute in
+attribute in
.Fa detachstate
if successful.
.Sh ERRORS
diff --git a/lib/libpthread/man/pthread_attr_setstackaddr.3 b/lib/libpthread/man/pthread_attr_setstackaddr.3
index 1ca3f85ddd2..03bed1a9a89 100644
--- a/lib/libpthread/man/pthread_attr_setstackaddr.3
+++ b/lib/libpthread/man/pthread_attr_setstackaddr.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthread_attr_setstackaddr.3,v 1.1 2000/01/06 06:15:29 d Exp $
+.\" $OpenBSD: pthread_attr_setstackaddr.3,v 1.2 2000/04/12 21:48:02 aaron Exp $
.\" Manual page derived from TOG's UNIX98 documentation.
.Dd January 6, 2000
.Dt PTHREAD_ATTR_SETSTACKADDR 3
@@ -14,14 +14,14 @@
.Ft int
.Fn pthread_attr_getstackaddr "pthread_attr_t *attr" "void **stackaddr"
.Sh DESCRIPTION
-The functions
+The functions
.Fn pthread_attr_setstackaddr
and
.Fn pthread_attr_getstackaddr ,
respectively, set and get the thread
creation
-.Va stackaddr
-attribute in the
+.Va stackaddr
+attribute in the
.Fa attr
object.
.Pp
@@ -32,7 +32,7 @@ used for the created thread's stack. The size of the storage is at
least
.Dv PTHREAD_STACK_MIN.
.Sh RETURN VALUE
-Upon successful completion,
+Upon successful completion,
.Fn pthread_attr_setstackaddr
and
.Fn pthread_attr_getstackaddr
diff --git a/lib/libpthread/man/pthread_attr_setstacksize.3 b/lib/libpthread/man/pthread_attr_setstacksize.3
index bc3eff8d438..f5c0b343af1 100644
--- a/lib/libpthread/man/pthread_attr_setstacksize.3
+++ b/lib/libpthread/man/pthread_attr_setstacksize.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthread_attr_setstacksize.3,v 1.1 2000/01/06 06:15:30 d Exp $
+.\" $OpenBSD: pthread_attr_setstacksize.3,v 1.2 2000/04/12 21:48:02 aaron Exp $
.\" Manual page derived from TOG's UNIX98 documentation.
.Dd January 6, 2000
.Dt PTHREAD_ATTR_SETSTACKSIZE 3
@@ -14,14 +14,14 @@
.Ft int
.Fn pthread_attr_getstacksize "pthread_attr_t *attr" "size_t *stacksize"
.Sh DESCRIPTION
-The functions
+The functions
.Fn pthread_attr_setstacksize
and
.Fn pthread_attr_getstacksize ,
respectively, set and get the thread
creation
-.Va stacksize
-attribute in the
+.Va stacksize
+attribute in the
.Fa attr
object.
.Pp
@@ -30,7 +30,7 @@ The
attribute defines the minimum stack size (in bytes)
allocated for the created threads stack.
.Sh RETURN VALUE
-Upon successful completion,
+Upon successful completion,
.Fn pthread_attr_setstacksize
and
.Fn pthread_attr_getstacksize
diff --git a/lib/libpthread/man/pthread_rwlock_init.3 b/lib/libpthread/man/pthread_rwlock_init.3
index 617897c338f..87ca307fee6 100644
--- a/lib/libpthread/man/pthread_rwlock_init.3
+++ b/lib/libpthread/man/pthread_rwlock_init.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthread_rwlock_init.3,v 1.3 1999/11/24 05:35:32 d Exp $
+.\" $OpenBSD: pthread_rwlock_init.3,v 1.4 2000/04/12 21:48:02 aaron Exp $
.\" Copyright (c) 1998 Alex Nash
.\" All rights reserved.
.\"
@@ -95,7 +95,7 @@ is invalid.
The
.Fn pthread_rwlock_init
function first appeared in
-.Fx 3.0
+.Fx 3.0
and
.Ox 2.5 .
.Sh BUGS
diff --git a/lib/libpthread/man/pthread_rwlock_rdlock.3 b/lib/libpthread/man/pthread_rwlock_rdlock.3
index eca23295ce0..56188fb9b91 100644
--- a/lib/libpthread/man/pthread_rwlock_rdlock.3
+++ b/lib/libpthread/man/pthread_rwlock_rdlock.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthread_rwlock_rdlock.3,v 1.4 2000/03/14 21:31:40 aaron Exp $
+.\" $OpenBSD: pthread_rwlock_rdlock.3,v 1.5 2000/04/12 21:48:02 aaron Exp $
.\" Copyright (c) 1998 Alex Nash
.\" All rights reserved.
.\"
@@ -120,6 +120,6 @@ statically initialized locks only).
The
.Fn pthread_rwlock_rdlock
function first appeared in
-.Fx 3.0
+.Fx 3.0
and
.Ox 2.5 .
diff --git a/lib/libpthread/man/pthread_rwlock_unlock.3 b/lib/libpthread/man/pthread_rwlock_unlock.3
index 1fc67cb10a4..797df36091b 100644
--- a/lib/libpthread/man/pthread_rwlock_unlock.3
+++ b/lib/libpthread/man/pthread_rwlock_unlock.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthread_rwlock_unlock.3,v 1.3 1999/11/24 05:35:33 d Exp $
+.\" $OpenBSD: pthread_rwlock_unlock.3,v 1.4 2000/04/12 21:48:02 aaron Exp $
.\" Copyright (c) 1998 Alex Nash
.\" All rights reserved.
.\"
@@ -77,6 +77,6 @@ The current thread does not own the read/write lock.
The
.Fn pthread_rwlock_unlock
function first appeared in
-.Fx 3.0
+.Fx 3.0
and
.Ox 2.5 .
diff --git a/lib/libpthread/man/pthread_rwlock_wrlock.3 b/lib/libpthread/man/pthread_rwlock_wrlock.3
index e3a7ec0df60..31ce3902bc9 100644
--- a/lib/libpthread/man/pthread_rwlock_wrlock.3
+++ b/lib/libpthread/man/pthread_rwlock_wrlock.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthread_rwlock_wrlock.3,v 1.3 1999/11/24 05:35:33 d Exp $
+.\" $OpenBSD: pthread_rwlock_wrlock.3,v 1.4 2000/04/12 21:48:02 aaron Exp $
.\" Copyright (c) 1998 Alex Nash
.\" All rights reserved.
.\"
@@ -100,6 +100,6 @@ statically initialized locks only).
The
.Fn pthread_rwlock_wrlock
function first appeared in
-.Fx 3.0
+.Fx 3.0
and
.Ox 2.5 .
diff --git a/lib/libpthread/man/pthread_rwlockattr_destroy.3 b/lib/libpthread/man/pthread_rwlockattr_destroy.3
index a77f3592d53..90d99791832 100644
--- a/lib/libpthread/man/pthread_rwlockattr_destroy.3
+++ b/lib/libpthread/man/pthread_rwlockattr_destroy.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthread_rwlockattr_destroy.3,v 1.5 1999/11/24 05:35:33 d Exp $
+.\" $OpenBSD: pthread_rwlockattr_destroy.3,v 1.6 2000/04/12 21:48:02 aaron Exp $
.\" Copyright (c) 1998 Alex Nash
.\" All rights reserved.
.\"
@@ -66,6 +66,6 @@ is invalid.
The
.Fn pthread_rwlockattr_destroy
function first appeared in
-.Fx 3.0
+.Fx 3.0
and
.Ox 2.5 .
diff --git a/lib/libpthread/man/pthread_rwlockattr_getpshared.3 b/lib/libpthread/man/pthread_rwlockattr_getpshared.3
index 6003fec5368..e4398ad892d 100644
--- a/lib/libpthread/man/pthread_rwlockattr_getpshared.3
+++ b/lib/libpthread/man/pthread_rwlockattr_getpshared.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthread_rwlockattr_getpshared.3,v 1.5 1999/11/24 05:35:33 d Exp $
+.\" $OpenBSD: pthread_rwlockattr_getpshared.3,v 1.6 2000/04/12 21:48:03 aaron Exp $
.\" Copyright (c) 1998 Alex Nash
.\" All rights reserved.
.\"
@@ -78,6 +78,6 @@ is invalid.
The
.Fn pthread_rwlockattr_getpshared
function first appeared in
-.Fx 3.0
+.Fx 3.0
and
.Ox 2.5 .
diff --git a/lib/libpthread/man/pthread_rwlockattr_init.3 b/lib/libpthread/man/pthread_rwlockattr_init.3
index b7132f9ca0c..a9e13090d08 100644
--- a/lib/libpthread/man/pthread_rwlockattr_init.3
+++ b/lib/libpthread/man/pthread_rwlockattr_init.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthread_rwlockattr_init.3,v 1.4 1999/11/24 05:35:33 d Exp $
+.\" $OpenBSD: pthread_rwlockattr_init.3,v 1.5 2000/04/12 21:48:03 aaron Exp $
.\" Copyright (c) 1998 Alex Nash
.\" All rights reserved.
.\"
@@ -65,6 +65,6 @@ Insufficient memory exists to initialize the attribute object.
The
.Fn pthread_rwlockattr_init
function first appeared in
-.Fx 3.0
+.Fx 3.0
and
.Ox 2.5 .
diff --git a/lib/libpthread/man/pthread_rwlockattr_setpshared.3 b/lib/libpthread/man/pthread_rwlockattr_setpshared.3
index b4dbc67d6f3..d44cdcdfbc6 100644
--- a/lib/libpthread/man/pthread_rwlockattr_setpshared.3
+++ b/lib/libpthread/man/pthread_rwlockattr_setpshared.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthread_rwlockattr_setpshared.3,v 1.4 1999/12/24 00:15:08 alex Exp $
+.\" $OpenBSD: pthread_rwlockattr_setpshared.3,v 1.5 2000/04/12 21:48:03 aaron Exp $
.\" Copyright (c) 1998 Alex Nash
.\" All rights reserved.
.\"
@@ -82,7 +82,7 @@ is invalid.
The
.Fn pthread_rwlockattr_setpshared
function first appeared in
-.Fx 3.0
+.Fx 3.0
and
.Ox 2.5 .
.Sh BUGS
diff --git a/lib/libpthread/man/pthread_set_name_np.3 b/lib/libpthread/man/pthread_set_name_np.3
index 2fe43de7214..8079a230c5c 100644
--- a/lib/libpthread/man/pthread_set_name_np.3
+++ b/lib/libpthread/man/pthread_set_name_np.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthread_set_name_np.3,v 1.1 2000/01/06 07:07:23 d Exp $
+.\" $OpenBSD: pthread_set_name_np.3,v 1.2 2000/04/12 21:48:03 aaron Exp $
.\" David Leonard <d@openbsd.org>, 1999. Public domain.
.Dd December 19, 1999
.Dt PTHREAD_SET_NAME_NP 3
@@ -9,7 +9,7 @@
.Sh SYNOPSIS
.Fd #include <pthread.h>
.Fd #include <pthread_np.h>
-.Ft void
+.Ft void
.Fn pthread_set_name_np "pthread_t thread" "char *name"
.Sh DESCRIPTION
The
diff --git a/lib/libpthread/man/pthreads.3 b/lib/libpthread/man/pthreads.3
index 4e4b1c6822a..b925cb9fcf6 100644
--- a/lib/libpthread/man/pthreads.3
+++ b/lib/libpthread/man/pthreads.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthreads.3,v 1.8 2000/03/14 21:31:40 aaron Exp $
+.\" $OpenBSD: pthreads.3,v 1.9 2000/04/12 21:48:03 aaron Exp $
.\" David Leonard <d@openbsd.org>, 1998. Public domain.
.Dd August 17, 1998
.Dt PTHREADS 3
@@ -24,10 +24,10 @@ The
.Dv SIGINFO
signal can be sent to a threaded process to have the library show the state of
all of its threads. The information is sent to the process'
-controlling tty and descrbes each thread's
-ID,
+controlling tty and descrbes each thread's
+ID,
state (see
-.Sx Thread states ) ,
+.Sx Thread states ) ,
current priority,
flags (see
.Sx Thread flags )
@@ -153,12 +153,12 @@ the process terminates with an exit code of zero.
Each thread has (or should have) a different stack, whether it be provided by a
user attribute, or provided automatically by the system.
If a thread overflows its stack, unpredictable results may occur.
-System-allocated stacks (including that of the initial thread)
+System-allocated stacks (including that of the initial thread)
are typically allocated in such a way that a
.Dv SIGSEGV
signal is deliverred to the process when a stack overflows.
.Pp
-Signals handlers are normally run on the stack of the currently executing
+Signals handlers are normally run on the stack of the currently executing
thread.
Hence, if you want to handle the
.Dv SIGSEGV