diff options
-rw-r--r-- | lib/libpthread/man/getc_unlocked.3 | 4 | ||||
-rw-r--r-- | lib/libpthread/man/pthread_attr_init.3 | 4 | ||||
-rw-r--r-- | lib/libpthread/man/pthread_mutex_init.3 | 4 | ||||
-rw-r--r-- | lib/libpthread/man/pthread_once.3 | 7 | ||||
-rw-r--r-- | lib/libpthread/man/pthread_rwlock_destroy.3 | 6 | ||||
-rw-r--r-- | lib/libpthread/man/pthread_rwlock_init.3 | 6 | ||||
-rw-r--r-- | lib/libpthread/man/pthread_rwlock_rdlock.3 | 15 | ||||
-rw-r--r-- | lib/libpthread/man/pthread_rwlock_unlock.3 | 6 | ||||
-rw-r--r-- | lib/libpthread/man/pthread_rwlock_wrlock.3 | 10 | ||||
-rw-r--r-- | lib/libpthread/man/pthread_rwlockattr_setpshared.3 | 5 | ||||
-rw-r--r-- | lib/libpthread/man/pthread_sigmask.3 | 6 | ||||
-rw-r--r-- | lib/libpthread/man/pthreads.3 | 6 | ||||
-rw-r--r-- | lib/libpthread/man/sem_destroy.3 | 4 | ||||
-rw-r--r-- | lib/libpthread/man/sigwait.3 | 6 |
14 files changed, 44 insertions, 45 deletions
diff --git a/lib/libpthread/man/getc_unlocked.3 b/lib/libpthread/man/getc_unlocked.3 index 95c01e82af8..c0fa2841382 100644 --- a/lib/libpthread/man/getc_unlocked.3 +++ b/lib/libpthread/man/getc_unlocked.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getc_unlocked.3,v 1.2 1999/07/07 10:50:05 aaron Exp $ +.\" $OpenBSD: getc_unlocked.3,v 1.3 2003/05/18 13:06:33 jmc Exp $ .\" David Leonard <d@openbsd.org>, 1999. Public domain. .Dd March 20, 1999 .Dt GETC_UNLOCKED 3 @@ -26,7 +26,7 @@ However, .Fn getc_unlocked and .Fn getchar_unlocked -assume that the relevant stream has either been previous locked +assume that the relevant stream has either been previously locked with .Xr flockfile 3 , or that it will not be accessed by any other thread. diff --git a/lib/libpthread/man/pthread_attr_init.3 b/lib/libpthread/man/pthread_attr_init.3 index e40ce397211..a59c4349b49 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.5 2003/05/08 09:01:15 jmc Exp $ +.\" $OpenBSD: pthread_attr_init.3,v 1.6 2003/05/18 13:06:33 jmc Exp $ .\" Manual page derived from TOG's UNIX98 documentation. .\" .\" David Leonard, 2000. Public Domain. @@ -63,9 +63,9 @@ object. These functions will not return an error code of .Bq Er EINTR . .Sh SEE ALSO +.Xr pthread_attr_setdetachstate 3 , .Xr pthread_attr_setstackaddr 3 , .Xr pthread_attr_setstacksize 3 , -.Xr pthread_attr_setdetachstate 3 , .Xr pthread_create 3 , .Xr pthreads 3 .Sh STANDARDS diff --git a/lib/libpthread/man/pthread_mutex_init.3 b/lib/libpthread/man/pthread_mutex_init.3 index 55cb09bdf62..2083eace48a 100644 --- a/lib/libpthread/man/pthread_mutex_init.3 +++ b/lib/libpthread/man/pthread_mutex_init.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_mutex_init.3,v 1.7 2002/02/21 20:12:19 fgsch Exp $ +.\" $OpenBSD: pthread_mutex_init.3,v 1.8 2003/05/18 13:06:33 jmc Exp $ .\" .\" Copyright (c) 1997 Brian Cully <shmit@kublai.com> .\" All rights reserved. @@ -66,7 +66,7 @@ is invalid. .It Bq Er ENOMEM The process cannot allocate enough memory to create another mutex. .It Bq Er EAGAIN -The temporarily lacks the resources to create another mutex. +The system temporarily lacks the resources to create another mutex. .El .Sh SEE ALSO .Xr pthread_mutex_destroy 3 , diff --git a/lib/libpthread/man/pthread_once.3 b/lib/libpthread/man/pthread_once.3 index 83e40014787..77c9bcbee7d 100644 --- a/lib/libpthread/man/pthread_once.3 +++ b/lib/libpthread/man/pthread_once.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_once.3,v 1.10 2002/05/01 08:03:30 mpech Exp $ +.\" $OpenBSD: pthread_once.3,v 1.11 2003/05/18 13:06:33 jmc Exp $ .\" .\" Copyright (c) 1996 John Birrell <jb@cimlogic.com.au>. .\" All rights reserved. @@ -78,13 +78,14 @@ is not a cancellation point. However, if .Fn init_routine is a cancellation point and is cancelled, the effect on -.Fa once_control is as if +.Fa once_control +is as if .Fn pthread_once was never called. .Pp The constant .Dv PTHREAD_ONCE_INIT -is defined by header +is defined in the header file .Aq Pa pthread.h . .Pp The behavior of diff --git a/lib/libpthread/man/pthread_rwlock_destroy.3 b/lib/libpthread/man/pthread_rwlock_destroy.3 index 103d2efe5ff..c75bc870448 100644 --- a/lib/libpthread/man/pthread_rwlock_destroy.3 +++ b/lib/libpthread/man/pthread_rwlock_destroy.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_rwlock_destroy.3,v 1.5 1999/11/24 05:35:32 d Exp $ +.\" $OpenBSD: pthread_rwlock_destroy.3,v 1.6 2003/05/18 13:06:33 jmc Exp $ .\" Copyright (c) 1998 Alex Nash .\" All rights reserved. .\" @@ -43,8 +43,8 @@ function is used to destroy a read/write lock previously created with .Sh RETURN VALUES If successful, the .Fn pthread_rwlock_destroy -function will return zero. Otherwise an error number will be returned -to indicate the error. +function will return zero. +Otherwise an error number will be returned to indicate the error. .Sh SEE ALSO .Xr pthread_rwlock_init 3 .Sh STANDARDS diff --git a/lib/libpthread/man/pthread_rwlock_init.3 b/lib/libpthread/man/pthread_rwlock_init.3 index 87ca307fee6..f81e29ca68a 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.4 2000/04/12 21:48:02 aaron Exp $ +.\" $OpenBSD: pthread_rwlock_init.3,v 1.5 2003/05/18 13:06:33 jmc Exp $ .\" Copyright (c) 1998 Alex Nash .\" All rights reserved. .\" @@ -51,8 +51,8 @@ with an already initialized lock are undefined. .Sh RETURN VALUES If successful, the .Fn pthread_rwlock_init -function will return zero. Otherwise an error number will be returned -to indicate the error. +function will return zero. +Otherwise an error number will be returned to indicate the error. .Sh SEE ALSO .Xr pthread_rwlock_destroy 3 , .Xr pthread_rwlockattr_init 3 , diff --git a/lib/libpthread/man/pthread_rwlock_rdlock.3 b/lib/libpthread/man/pthread_rwlock_rdlock.3 index 56188fb9b91..40a08ed7505 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.5 2000/04/12 21:48:02 aaron Exp $ +.\" $OpenBSD: pthread_rwlock_rdlock.3,v 1.6 2003/05/18 13:06:33 jmc Exp $ .\" Copyright (c) 1998 Alex Nash .\" All rights reserved. .\" @@ -46,9 +46,9 @@ function acquires a read lock on provided that .Fa lock is not presently held for writing and no writer threads are -presently blocked on the lock. If the read lock cannot be -immediately acquired, the calling thread blocks until it can -acquire the lock. +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 .Fn pthread_rwlock_tryrdlock @@ -56,7 +56,8 @@ function performs the same action, but does not block if the lock cannot be immediately obtained (i.e., the lock is held for writing or there are waiting writers). .Pp -A thread may hold multiple concurrent read locks. If so, +A thread may hold multiple concurrent read locks. +If so, .Fn pthread_rwlock_unlock must be called once for each lock obtained. .Pp @@ -69,8 +70,8 @@ If successful, the .Fn pthread_rwlock_rdlock and .Fn pthread_rwlock_tryrdlock -functions will return zero. Otherwise an error number will be returned -to indicate the error. +functions will return zero. +Otherwise an error number will be returned to indicate the error. .Sh SEE ALSO .Xr pthread_rwlock_init 3 , .Xr pthread_rwlock_trywrlock 3 , diff --git a/lib/libpthread/man/pthread_rwlock_unlock.3 b/lib/libpthread/man/pthread_rwlock_unlock.3 index 797df36091b..577b9a2af7f 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.4 2000/04/12 21:48:02 aaron Exp $ +.\" $OpenBSD: pthread_rwlock_unlock.3,v 1.5 2003/05/18 13:06:33 jmc Exp $ .\" Copyright (c) 1998 Alex Nash .\" All rights reserved. .\" @@ -47,8 +47,8 @@ or .Sh RETURN VALUES If successful, the .Fn pthread_rwlock_unlock -function will return zero. Otherwise an error number will be returned -to indicate the error. +function will return zero. +Otherwise an error number will be returned to indicate the error. .Pp The results are undefined if .Fa lock diff --git a/lib/libpthread/man/pthread_rwlock_wrlock.3 b/lib/libpthread/man/pthread_rwlock_wrlock.3 index 31ce3902bc9..bb9eb316597 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.4 2000/04/12 21:48:02 aaron Exp $ +.\" $OpenBSD: pthread_rwlock_wrlock.3,v 1.5 2003/05/18 13:06:33 jmc Exp $ .\" Copyright (c) 1998 Alex Nash .\" All rights reserved. .\" @@ -57,12 +57,10 @@ If successful, the .Fn pthread_rwlock_wrlock and .Fn pthread_rwlock_trywrlock -functions will return zero. Otherwise an error number will be returned -to indicate the error. +functions will return zero. +Otherwise an error number will be returned to indicate the error. .Sh SEE ALSO -.Xr pthread_rwlock_trywrlock 3 , -.Xr pthread_rwlock_unlock 3 , -.Xr pthread_rwlock_wrlock 3 +.Xr pthread_rwlock_unlock 3 .Sh STANDARDS The .Fn pthread_rwlock_wrlock diff --git a/lib/libpthread/man/pthread_rwlockattr_setpshared.3 b/lib/libpthread/man/pthread_rwlockattr_setpshared.3 index 292940f15e4..7cd01c27747 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.6 2002/05/01 08:03:30 mpech Exp $ +.\" $OpenBSD: pthread_rwlockattr_setpshared.3,v 1.7 2003/05/18 13:06:33 jmc Exp $ .\" Copyright (c) 1998 Alex Nash .\" All rights reserved. .\" @@ -60,8 +60,7 @@ function will return zero. Otherwise an error number will be returned to indicate the error. .Sh SEE ALSO .Xr pthread_rwlock_init 3 , -.Xr pthread_rwlockattr_init 3 , -.Xr pthread_rwlockattr_setpshared 3 +.Xr pthread_rwlockattr_init 3 .Sh STANDARDS The .Fn pthread_rwlockattr_setpshared diff --git a/lib/libpthread/man/pthread_sigmask.3 b/lib/libpthread/man/pthread_sigmask.3 index 7dea9e92e90..2704850df97 100644 --- a/lib/libpthread/man/pthread_sigmask.3 +++ b/lib/libpthread/man/pthread_sigmask.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_sigmask.3,v 1.6 2003/02/20 18:59:12 jmc Exp $ +.\" $OpenBSD: pthread_sigmask.3,v 1.7 2003/05/18 13:06:33 jmc Exp $ .\" .\" .\" David Leonard, 1999. Public Domain. @@ -64,8 +64,8 @@ is not one of the defined values. .Xr sigpending 2 , .Xr sigprocmask 2 , .Xr sigsuspend 2 , -.Xr sigsetops 3 , -.Xr pthreads 3 +.Xr pthreads 3 , +.Xr sigsetops 3 .Sh STANDARDS .Fn pthread_sigmask conforms to diff --git a/lib/libpthread/man/pthreads.3 b/lib/libpthread/man/pthreads.3 index daa8cd929a8..00f716c9564 100644 --- a/lib/libpthread/man/pthreads.3 +++ b/lib/libpthread/man/pthreads.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthreads.3,v 1.18 2002/05/01 08:03:30 mpech Exp $ +.\" $OpenBSD: pthreads.3,v 1.19 2003/05/18 13:06:33 jmc Exp $ .\" David Leonard <d@openbsd.org>, 1998. Public domain. .Dd August 17, 1998 .Dt PTHREADS 3 @@ -9,7 +9,7 @@ .Sh DESCRIPTION A thread is a flow of control within a process. Each thread represents a minimal amount of state; -normally just the cpu state and a signal mask. +normally just the CPU state and a signal mask. All other process state (such as memory, file descriptors) is shared among all of the threads in the process. .Pp @@ -187,7 +187,7 @@ signal output. .It Ev LIBC_R_DEBUG Display thread status every time the garbage collection thread runs, approximately once every 10 seconds. -The status display verbosity is controled by the +The status display verbosity is controlled by the .Ev PTHREAD_DEBUG environment variable. .El diff --git a/lib/libpthread/man/sem_destroy.3 b/lib/libpthread/man/sem_destroy.3 index 692ed5a23b8..8749f3fa399 100644 --- a/lib/libpthread/man/sem_destroy.3 +++ b/lib/libpthread/man/sem_destroy.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sem_destroy.3,v 1.2 2002/02/20 05:29:37 fgsch Exp $ +.\" $OpenBSD: sem_destroy.3,v 1.3 2003/05/18 13:06:33 jmc Exp $ .\" .\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>. .\" All rights reserved. @@ -46,7 +46,7 @@ function destroys the unnamed semaphore pointed to by After a successful call to .Fn sem_destroy , .Fa sem -is unuseable until re-initialized by another call to +is unusable until re-initialized by another call to .Fn sem_init . .Sh RETURN VALUES .Rv -std sem_destroy diff --git a/lib/libpthread/man/sigwait.3 b/lib/libpthread/man/sigwait.3 index 8bb2c0d08af..4f48b110215 100644 --- a/lib/libpthread/man/sigwait.3 +++ b/lib/libpthread/man/sigwait.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sigwait.3,v 1.12 2003/03/14 10:22:33 jmc Exp $ +.\" $OpenBSD: sigwait.3,v 1.13 2003/05/18 13:06:33 jmc Exp $ .\" .\" David Leonard <d@openbsd.org>, 1998. Public domain. .Dd August 20, 1998 @@ -49,7 +49,7 @@ Which thread returns from .Fn sigwait if more than a single thread is waiting is unspecified. .Pp -.Sy Note: +.Sy Note : Code using the .Fn sigwait function must be compiled and linked with the @@ -70,7 +70,7 @@ returns one of these error values: .It Bq Er EINVAL The .Fa set -argument contains an invalid or unsupported signal number +argument contains an invalid or unsupported signal number. .El .Sh SEE ALSO .Xr sigaction 2 , |