diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2013-06-05 03:44:51 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2013-06-05 03:44:51 +0000 |
commit | 2c13d61d2c131b43a8a07820e3660aed49a6c153 (patch) | |
tree | 59be910b26625e0e5a1dca60e457e2e018dbe7d3 | |
parent | a14cf3f2d37ea5df9b795c5bec71e78504e57faf (diff) |
use fancy .In macro for includes. from Jan Klemkow. ok jmc schwarze
77 files changed, 233 insertions, 233 deletions
diff --git a/lib/libcompat/4.1/ftime.3 b/lib/libcompat/4.1/ftime.3 index 3849ef26e96..fe3e7bf21d2 100644 --- a/lib/libcompat/4.1/ftime.3 +++ b/lib/libcompat/4.1/ftime.3 @@ -27,15 +27,15 @@ .\" .\" @(#)ftime.3 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt FTIME 3 .Os .Sh NAME .Nm ftime .Nd get date and time .Sh SYNOPSIS -.Fd #include <sys/types.h> -.Fd #include <sys/timeb.h> +.In sys/types.h +.In sys/timeb.h .Ft int .Fn ftime "struct timeb *tp" .Sh DESCRIPTION diff --git a/lib/libcompat/4.1/stty.3 b/lib/libcompat/4.1/stty.3 index b6fedbcec6c..9ff3507962c 100644 --- a/lib/libcompat/4.1/stty.3 +++ b/lib/libcompat/4.1/stty.3 @@ -27,7 +27,7 @@ .\" .\" @(#)stty.3 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt STTY 3 .Os .Sh NAME @@ -35,7 +35,7 @@ .Nm gtty .Nd set and get terminal state (defunct) .Sh SYNOPSIS -.Fd #include <sgtty.h> +.In sgtty.h .Fn stty "int fd" "struct sgttyb *buf" .Fn gtty "int fd" "struct sgttyb *buf" .Sh DESCRIPTION diff --git a/lib/libcompat/4.3/re_comp.3 b/lib/libcompat/4.3/re_comp.3 index 6bb6c16f504..c840bb98288 100644 --- a/lib/libcompat/4.3/re_comp.3 +++ b/lib/libcompat/4.3/re_comp.3 @@ -27,7 +27,7 @@ .\" .\" @(#)re_comp.3 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt RE_COMP 3 .Os .Sh NAME @@ -35,7 +35,7 @@ .Nm re_exec .Nd regular expression handler .Sh SYNOPSIS -.Fd #include <unistd.h> +.In unistd.h .Ft char * .Fn re_comp "const char *s" .Ft int diff --git a/lib/libcompat/4.3/setruid.3 b/lib/libcompat/4.3/setruid.3 index d813da31c87..6a649a4f141 100644 --- a/lib/libcompat/4.3/setruid.3 +++ b/lib/libcompat/4.3/setruid.3 @@ -25,9 +25,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: setruid.3,v 1.3 2007/05/31 19:19:34 jmc Exp $ +.\" $OpenBSD: setruid.3,v 1.4 2013/06/05 03:44:50 tedu Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt SETRUID 3 .Os .Sh NAME @@ -35,7 +35,7 @@ .Nm setrgid .Nd set user and group ID .Sh SYNOPSIS -.Fd #include <sys/types.h> +.In sys/types.h .Ft int .Fn setruid "uid_t uid" .Ft int diff --git a/lib/libcompat/4.4/cuserid.3 b/lib/libcompat/4.4/cuserid.3 index ead781a6ef0..d3622034bf1 100644 --- a/lib/libcompat/4.4/cuserid.3 +++ b/lib/libcompat/4.4/cuserid.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: cuserid.3,v 1.6 2007/05/31 19:19:34 jmc Exp $ +.\" $OpenBSD: cuserid.3,v 1.7 2013/06/05 03:44:50 tedu Exp $ .\" Copyright (c) 1990, 1991 The Regents of the University of California. .\" All rights reserved. .\" @@ -28,14 +28,14 @@ .\" .\" from: @(#)ctermid.3 5.2 (Berkeley) 4/19/91 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt CUSERID 3 .Os .Sh NAME .Nm cuserid .Nd get user name .Sh SYNOPSIS -.Fd #include <stdio.h> +.In stdio.h .Ft char * .Fn cuserid "char *buf" .Sh DESCRIPTION diff --git a/lib/libcompat/regexp/regexp.3 b/lib/libcompat/regexp/regexp.3 index ad868967d41..f07f9ae7b7d 100644 --- a/lib/libcompat/regexp/regexp.3 +++ b/lib/libcompat/regexp/regexp.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: regexp.3,v 1.12 2010/09/20 07:41:17 jmc Exp $ +.\" $OpenBSD: regexp.3,v 1.13 2013/06/05 03:44:50 tedu Exp $ .\" Copyright (c) 1991, 1993 .\" The Regents of the University of California. All rights reserved. .\" @@ -28,14 +28,14 @@ .\" .\" @(#)regexp.3 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: September 20 2010 $ +.Dd $Mdocdate: June 5 2013 $ .Dt REGEXP 3 .Os .Sh NAME .Nm regexp .Nd obsolete regular expression routines .Sh SYNOPSIS -.Fd #include <regexp.h> +.In regexp.h .Ft regexp * .Fn regcomp "const char *exp" .Ft int diff --git a/lib/libpthread/man/flockfile.3 b/lib/libpthread/man/flockfile.3 index 57ee61e353e..6c136acac22 100644 --- a/lib/libpthread/man/flockfile.3 +++ b/lib/libpthread/man/flockfile.3 @@ -1,6 +1,6 @@ -.\" $OpenBSD: flockfile.3,v 1.10 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: flockfile.3,v 1.11 2013/06/05 03:44:50 tedu Exp $ .\" David Leonard <d@openbsd.org>, 1998. Public domain. -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt FLOCKFILE 3 .Os .Sh NAME @@ -9,7 +9,7 @@ .Nm funlockfile .Nd application level locking of stdio files .Sh SYNOPSIS -.Fd #include <stdio.h> +.In stdio.h .Ft void .Fn flockfile "FILE *file" .Ft int diff --git a/lib/libpthread/man/getc_unlocked.3 b/lib/libpthread/man/getc_unlocked.3 index 8eccb41b811..83184a7f9a9 100644 --- a/lib/libpthread/man/getc_unlocked.3 +++ b/lib/libpthread/man/getc_unlocked.3 @@ -1,6 +1,6 @@ -.\" $OpenBSD: getc_unlocked.3,v 1.4 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: getc_unlocked.3,v 1.5 2013/06/05 03:44:50 tedu Exp $ .\" David Leonard <d@openbsd.org>, 1999. Public domain. -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt GETC_UNLOCKED 3 .Os .Sh NAME @@ -8,7 +8,7 @@ .Nm getchar_unlocked .Nd get next character from stream, efficiently .Sh SYNOPSIS -.Fd #include <stdio.h> +.In stdio.h .Ft int .Fn getc_unlocked "FILE *stream" .Ft int diff --git a/lib/libpthread/man/pthread_atfork.3 b/lib/libpthread/man/pthread_atfork.3 index e3da495e376..7e9f962a4c7 100644 --- a/lib/libpthread/man/pthread_atfork.3 +++ b/lib/libpthread/man/pthread_atfork.3 @@ -1,15 +1,15 @@ -.\" $OpenBSD: pthread_atfork.3,v 1.9 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: pthread_atfork.3,v 1.10 2013/06/05 03:44:50 tedu Exp $ .\" .\" David Leonard <d@openbsd.org>, 1999. Public domain. .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_ATFORK 3 .Os .Sh NAME .Nm pthread_atfork .Nd specify handler functions to call when the process forks .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_atfork "void (*prepare)(void)" "void (*parent)(void)" "void (*child)(void)" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_attr_init.3 b/lib/libpthread/man/pthread_attr_init.3 index 7dff56d4b1e..6e41ab0c44a 100644 --- a/lib/libpthread/man/pthread_attr_init.3 +++ b/lib/libpthread/man/pthread_attr_init.3 @@ -1,9 +1,9 @@ -.\" $OpenBSD: pthread_attr_init.3,v 1.10 2008/12/18 09:30:32 guenther Exp $ +.\" $OpenBSD: pthread_attr_init.3,v 1.11 2013/06/05 03:44:50 tedu Exp $ .\" Manual page derived from TOG's UNIX98 documentation. .\" .\" David Leonard, 2000. Public Domain. .\" -.Dd $Mdocdate: December 18 2008 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_ATTR_INIT 3 .Os .Sh NAME @@ -11,7 +11,7 @@ .Nm pthread_attr_destroy .Nd initialise and destroy threads attribute object .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_attr_init "pthread_attr_t *attr" .Ft int diff --git a/lib/libpthread/man/pthread_attr_setdetachstate.3 b/lib/libpthread/man/pthread_attr_setdetachstate.3 index fa27a96e7c5..7a05efe672e 100644 --- a/lib/libpthread/man/pthread_attr_setdetachstate.3 +++ b/lib/libpthread/man/pthread_attr_setdetachstate.3 @@ -1,9 +1,9 @@ -.\" $OpenBSD: pthread_attr_setdetachstate.3,v 1.9 2008/12/18 09:30:32 guenther Exp $ +.\" $OpenBSD: pthread_attr_setdetachstate.3,v 1.10 2013/06/05 03:44:50 tedu Exp $ .\" Manual page derived from TOG's UNIX98 documentation. .\" .\" David Leonard, 2000. Public Domain. .\" -.Dd $Mdocdate: December 18 2008 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_ATTR_SETDETACHSTATE 3 .Os .Sh NAME @@ -11,7 +11,7 @@ .Nm pthread_attr_getdetachstate .Nd set and get detachstate attribute .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_attr_setdetachstate "pthread_attr_t *attr" "int detachstate" .Ft int diff --git a/lib/libpthread/man/pthread_attr_setguardsize.3 b/lib/libpthread/man/pthread_attr_setguardsize.3 index 471def58d61..e8a7b54f2f6 100644 --- a/lib/libpthread/man/pthread_attr_setguardsize.3 +++ b/lib/libpthread/man/pthread_attr_setguardsize.3 @@ -1,9 +1,9 @@ -.\" $OpenBSD: pthread_attr_setguardsize.3,v 1.1 2008/12/18 09:30:32 guenther Exp $ +.\" $OpenBSD: pthread_attr_setguardsize.3,v 1.2 2013/06/05 03:44:50 tedu Exp $ .\" Manual page derived from TOG's XPG6 documentation. .\" .\" David Leonard, 2000. Public Domain. .\" -.Dd $Mdocdate: December 18 2008 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_ATTR_SETGUARDSIZE 3 .Os .Sh NAME @@ -11,7 +11,7 @@ .Nm pthread_attr_getguardsize .Nd set and get guardsize attribute .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_attr_setguardsize "pthread_attr_t *attr" "size_t guardsize" .Ft int diff --git a/lib/libpthread/man/pthread_attr_setstack.3 b/lib/libpthread/man/pthread_attr_setstack.3 index ed4250eedbe..306dbdae8fd 100644 --- a/lib/libpthread/man/pthread_attr_setstack.3 +++ b/lib/libpthread/man/pthread_attr_setstack.3 @@ -1,9 +1,9 @@ -.\" $OpenBSD: pthread_attr_setstack.3,v 1.3 2008/12/18 09:30:32 guenther Exp $ +.\" $OpenBSD: pthread_attr_setstack.3,v 1.4 2013/06/05 03:44:50 tedu Exp $ .\" Manual page derived from TOG's UNIX98 documentation. .\" .\" David Leonard, 2000. Public Domain. .\" -.Dd $Mdocdate: December 18 2008 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_ATTR_SETSTACK 3 .Os .Sh NAME @@ -11,7 +11,7 @@ .Nm pthread_attr_getstack .Nd set and get stack attributes .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_attr_setstack "pthread_attr_t *attr" "void *stackaddr" "size_t stacksize" .Ft int diff --git a/lib/libpthread/man/pthread_attr_setstackaddr.3 b/lib/libpthread/man/pthread_attr_setstackaddr.3 index 0de282cd15b..18b8db4b580 100644 --- a/lib/libpthread/man/pthread_attr_setstackaddr.3 +++ b/lib/libpthread/man/pthread_attr_setstackaddr.3 @@ -1,9 +1,9 @@ -.\" $OpenBSD: pthread_attr_setstackaddr.3,v 1.10 2008/12/18 09:30:32 guenther Exp $ +.\" $OpenBSD: pthread_attr_setstackaddr.3,v 1.11 2013/06/05 03:44:50 tedu Exp $ .\" Manual page derived from TOG's UNIX98 documentation. .\" .\" David Leonard, 2000. Public Domain. .\" -.Dd $Mdocdate: December 18 2008 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_ATTR_SETSTACKADDR 3 .Os .Sh NAME @@ -11,7 +11,7 @@ .Nm pthread_attr_getstackaddr .Nd set and get stackaddr attribute .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_attr_setstackaddr "pthread_attr_t *attr" "void *stackaddr" .Ft int diff --git a/lib/libpthread/man/pthread_attr_setstacksize.3 b/lib/libpthread/man/pthread_attr_setstacksize.3 index 2189e0b1eb1..14f7e32a4c0 100644 --- a/lib/libpthread/man/pthread_attr_setstacksize.3 +++ b/lib/libpthread/man/pthread_attr_setstacksize.3 @@ -1,9 +1,9 @@ -.\" $OpenBSD: pthread_attr_setstacksize.3,v 1.9 2008/12/18 09:30:32 guenther Exp $ +.\" $OpenBSD: pthread_attr_setstacksize.3,v 1.10 2013/06/05 03:44:50 tedu Exp $ .\" Manual page derived from TOG's UNIX98 documentation. .\" .\" David Leonard, 2000. Public Domain. .\" -.Dd $Mdocdate: December 18 2008 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_ATTR_SETSTACKSIZE 3 .Os .Sh NAME @@ -11,7 +11,7 @@ .Nm pthread_attr_getstacksize .Nd set and get stacksize attribute .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_attr_setstacksize "pthread_attr_t *attr" "size_t stacksize" .Ft int diff --git a/lib/libpthread/man/pthread_barrier_init.3 b/lib/libpthread/man/pthread_barrier_init.3 index 0629b343e03..45b2e6725bc 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.2 2012/04/11 13:47:32 jmc Exp $ +.\" $OpenBSD: pthread_barrier_init.3,v 1.3 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 2012 Paul Irofti <pirofti@openbsd.org> .\" @@ -15,7 +15,7 @@ .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .\" -.Dd $Mdocdate: April 11 2012 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_BARRIER_INIT 3 .Os .Sh NAME @@ -23,7 +23,7 @@ .Nm pthread_barrier_destroy .Nd initialize and destroy a barrier object .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_barrier_init "pthread_barrier_t *barrier" "pthread_barrierattr_t *attr" "unsigned int count" .Ft int diff --git a/lib/libpthread/man/pthread_barrier_wait.3 b/lib/libpthread/man/pthread_barrier_wait.3 index 338f35b5eb1..5124e8a5e9c 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.2 2012/04/11 13:47:32 jmc Exp $ +.\" $OpenBSD: pthread_barrier_wait.3,v 1.3 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 2012 Paul Irofti <pirofti@openbsd.org> .\" @@ -15,14 +15,14 @@ .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .\" -.Dd $Mdocdate: April 11 2012 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_BARRIER_WAIT 3 .Os .Sh NAME .Nm pthread_barrier_wait .Nd synchronize at a barrier .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_barrier_wait "pthread_barrier_t *barrier" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_barrierattr_getpshared.3 b/lib/libpthread/man/pthread_barrierattr_getpshared.3 index e6b60691c53..c56975b21a4 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.2 2012/04/11 13:47:32 jmc Exp $ +.\" $OpenBSD: pthread_barrierattr_getpshared.3,v 1.3 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 2012 Paul Irofti <pirofti@openbsd.org> .\" @@ -15,7 +15,7 @@ .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .\" -.Dd $Mdocdate: April 11 2012 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_BARRIERATTR_GETPSHARED 3 .Os .Sh NAME @@ -23,7 +23,7 @@ .Nm pthread_barrierattr_setpshared .Nd get and set the process-shared attribute of the barrier attribute's object .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_barrierattr_getpshared "pthread_barrierattr_t *attr" "int *pshared" .Ft int diff --git a/lib/libpthread/man/pthread_barrierattr_init.3 b/lib/libpthread/man/pthread_barrierattr_init.3 index ffecf475153..55759fc2ffb 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.2 2012/04/11 13:47:32 jmc Exp $ +.\" $OpenBSD: pthread_barrierattr_init.3,v 1.3 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 2012 Paul Irofti <pirofti@openbsd.org> .\" @@ -15,7 +15,7 @@ .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .\" -.Dd $Mdocdate: April 11 2012 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_BARRIERATTR_INIT 3 .Os .Sh NAME @@ -23,7 +23,7 @@ .Nm pthread_barrierattr_destroy .Nd initialize and destroy a barrier attribute object .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_barrierattr_init "pthread_barrierattr_t *attr" .Ft int diff --git a/lib/libpthread/man/pthread_cancel.3 b/lib/libpthread/man/pthread_cancel.3 index 3f837bb3f9e..2bb3211ed90 100644 --- a/lib/libpthread/man/pthread_cancel.3 +++ b/lib/libpthread/man/pthread_cancel.3 @@ -1,16 +1,16 @@ -.\" $OpenBSD: pthread_cancel.3,v 1.12 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: pthread_cancel.3,v 1.13 2013/06/05 03:44:50 tedu Exp $ .\" .\" .\" David Leonard, 1999. Public Domain. .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_CANCEL 3 .Os .Sh NAME .Nm pthread_cancel .Nd cancel execution of a thread .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_cancel "pthread_t thread" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_cleanup_pop.3 b/lib/libpthread/man/pthread_cleanup_pop.3 index f6b68628833..5a67cd937c3 100644 --- a/lib/libpthread/man/pthread_cleanup_pop.3 +++ b/lib/libpthread/man/pthread_cleanup_pop.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_cleanup_pop.3,v 1.8 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: pthread_cleanup_pop.3,v 1.9 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1997 Brian Cully <shmit@kublai.com> .\" All rights reserved. @@ -29,14 +29,14 @@ .\" .\" $FreeBSD: pthread_cleanup_pop.3,v 1.4 1999/08/28 00:03:02 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_CLEANUP_POP 3 .Os .Sh NAME .Nm pthread_cleanup_pop .Nd call the first cleanup routine .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft void .Fn pthread_cleanup_pop "int execute" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_cleanup_push.3 b/lib/libpthread/man/pthread_cleanup_push.3 index cd88f7450cf..c0a964570ab 100644 --- a/lib/libpthread/man/pthread_cleanup_push.3 +++ b/lib/libpthread/man/pthread_cleanup_push.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_cleanup_push.3,v 1.6 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: pthread_cleanup_push.3,v 1.7 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1997 Brian Cully <shmit@kublai.com> .\" All rights reserved. @@ -29,14 +29,14 @@ .\" .\" $FreeBSD: pthread_cleanup_push.3,v 1.5 1999/08/28 00:03:02 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_CLEANUP_PUSH 3 .Os .Sh NAME .Nm pthread_cleanup_push .Nd add a cleanup function for thread exit .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft void .Fn pthread_cleanup_push "void (*cleanup_routine)(void *)" "void *arg" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_cond_broadcast.3 b/lib/libpthread/man/pthread_cond_broadcast.3 index 61116f4cac6..cede16858be 100644 --- a/lib/libpthread/man/pthread_cond_broadcast.3 +++ b/lib/libpthread/man/pthread_cond_broadcast.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_cond_broadcast.3,v 1.7 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: pthread_cond_broadcast.3,v 1.8 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1997 Brian Cully <shmit@kublai.com> .\" All rights reserved. @@ -29,14 +29,14 @@ .\" .\" $FreeBSD: pthread_cond_broadcast.3,v 1.5 1999/08/28 00:03:03 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_COND_BROADCAST 3 .Os .Sh NAME .Nm pthread_cond_broadcast .Nd unblock all threads waiting for a condition variable .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_cond_broadcast "pthread_cond_t *cond" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_cond_destroy.3 b/lib/libpthread/man/pthread_cond_destroy.3 index 32601df22f1..efd5b00cb4d 100644 --- a/lib/libpthread/man/pthread_cond_destroy.3 +++ b/lib/libpthread/man/pthread_cond_destroy.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_cond_destroy.3,v 1.8 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: pthread_cond_destroy.3,v 1.9 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1997 Brian Cully <shmit@kublai.com> .\" All rights reserved. @@ -29,14 +29,14 @@ .\" .\" $FreeBSD: pthread_cond_destroy.3,v 1.5 1999/08/28 00:03:03 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_COND_DESTROY 3 .Os .Sh NAME .Nm pthread_cond_destroy .Nd destroy a condition variable .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_cond_destroy "pthread_cond_t *cond" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_cond_init.3 b/lib/libpthread/man/pthread_cond_init.3 index 58a74985756..3a162cb726f 100644 --- a/lib/libpthread/man/pthread_cond_init.3 +++ b/lib/libpthread/man/pthread_cond_init.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_cond_init.3,v 1.10 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: pthread_cond_init.3,v 1.11 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1997 Brian Cully <shmit@kublai.com> .\" All rights reserved. @@ -29,14 +29,14 @@ .\" .\" $FreeBSD: pthread_cond_init.3,v 1.6 1999/08/28 00:03:03 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_COND_INIT 3 .Os .Sh NAME .Nm pthread_cond_init .Nd create a condition variable .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_cond_init "pthread_cond_t *cond" "const pthread_condattr_t *attr" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_cond_signal.3 b/lib/libpthread/man/pthread_cond_signal.3 index 9b667890d1d..a2ceb594b0a 100644 --- a/lib/libpthread/man/pthread_cond_signal.3 +++ b/lib/libpthread/man/pthread_cond_signal.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_cond_signal.3,v 1.7 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: pthread_cond_signal.3,v 1.8 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1997 Brian Cully <shmit@kublai.com> .\" All rights reserved. @@ -29,14 +29,14 @@ .\" .\" $FreeBSD: pthread_cond_signal.3,v 1.5 1999/08/28 00:03:04 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_COND_SIGNAL 3 .Os .Sh NAME .Nm pthread_cond_signal .Nd unblock a thread waiting for a condition variable .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_cond_signal "pthread_cond_t *cond" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_cond_timedwait.3 b/lib/libpthread/man/pthread_cond_timedwait.3 index 527803349db..c835af52c84 100644 --- a/lib/libpthread/man/pthread_cond_timedwait.3 +++ b/lib/libpthread/man/pthread_cond_timedwait.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_cond_timedwait.3,v 1.10 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: pthread_cond_timedwait.3,v 1.11 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1997 Brian Cully <shmit@kublai.com> .\" All rights reserved. @@ -29,14 +29,14 @@ .\" .\" $FreeBSD: pthread_cond_timedwait.3,v 1.6 1999/08/28 00:03:04 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_COND_TIMEDWAIT 3 .Os .Sh NAME .Nm pthread_cond_timedwait .Nd "wait on a condition variable for a specific amount of time" .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_cond_timedwait "pthread_cond_t *cond" "pthread_mutex_t *mutex" "const struct timespec *abstime" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_cond_wait.3 b/lib/libpthread/man/pthread_cond_wait.3 index 07546d1c1d7..f54bc9e2fcb 100644 --- a/lib/libpthread/man/pthread_cond_wait.3 +++ b/lib/libpthread/man/pthread_cond_wait.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_cond_wait.3,v 1.9 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: pthread_cond_wait.3,v 1.10 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1997 Brian Cully <shmit@kublai.com> .\" All rights reserved. @@ -29,14 +29,14 @@ .\" .\" $FreeBSD: pthread_cond_wait.3,v 1.6 1999/08/28 00:03:04 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_COND_WAIT 3 .Os .Sh NAME .Nm pthread_cond_wait .Nd wait on a condition variable .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_cond_wait "pthread_cond_t *cond" "pthread_mutex_t *mutex" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_condattr_init.3 b/lib/libpthread/man/pthread_condattr_init.3 index d52160ffd8e..1d51d95cadb 100644 --- a/lib/libpthread/man/pthread_condattr_init.3 +++ b/lib/libpthread/man/pthread_condattr_init.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_condattr_init.3,v 1.1 2012/02/24 06:37:33 guenther Exp $ +.\" $OpenBSD: pthread_condattr_init.3,v 1.2 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (C) 2000 Jason Evans <jasone@freebsd.org>. .\" All rights reserved. @@ -28,7 +28,7 @@ .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .\" $FreeBSD: pthread_mutexattr.3,v 1.5 2001/07/15 07:53:26 dd Exp $ -.Dd $Mdocdate: February 24 2012 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_CONDATTR_INIT 3 .Os .Sh NAME @@ -38,7 +38,7 @@ .Nm pthread_condattr_getclock .Nd condition variable attribute operations .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_condattr_init "pthread_condattr_t *attr" .Ft int diff --git a/lib/libpthread/man/pthread_create.3 b/lib/libpthread/man/pthread_create.3 index 8e9be64e3c6..0346df90f63 100644 --- a/lib/libpthread/man/pthread_create.3 +++ b/lib/libpthread/man/pthread_create.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_create.3,v 1.13 2008/12/18 09:30:32 guenther Exp $ +.\" $OpenBSD: pthread_create.3,v 1.14 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1996 John Birrell <jb@cimlogic.com.au>. .\" All rights reserved. @@ -32,14 +32,14 @@ .\" .\" $FreeBSD: pthread_create.3,v 1.8 1999/08/28 00:03:04 peter Exp $ .\" -.Dd $Mdocdate: December 18 2008 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_CREATE 3 .Os .Sh NAME .Nm pthread_create .Nd create a new thread .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_create "pthread_t *thread" "const pthread_attr_t *attr" "void *(*start_routine)(void *)" "void *arg" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_detach.3 b/lib/libpthread/man/pthread_detach.3 index 3db2b6a87c7..39bc7faa584 100644 --- a/lib/libpthread/man/pthread_detach.3 +++ b/lib/libpthread/man/pthread_detach.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_detach.3,v 1.11 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: pthread_detach.3,v 1.12 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1996-1998 John Birrell <jb@cimlogic.com.au>. .\" All rights reserved. @@ -32,14 +32,14 @@ .\" .\" $FreeBSD: pthread_detach.3,v 1.5 1999/08/28 00:03:05 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_DETACH 3 .Os .Sh NAME .Nm pthread_detach .Nd detach a thread .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_detach "pthread_t thread" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_equal.3 b/lib/libpthread/man/pthread_equal.3 index 976023e1f8e..0dbe1898de1 100644 --- a/lib/libpthread/man/pthread_equal.3 +++ b/lib/libpthread/man/pthread_equal.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_equal.3,v 1.9 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: pthread_equal.3,v 1.10 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1996 John Birrell <jb@cimlogic.com.au>. .\" All rights reserved. @@ -32,14 +32,14 @@ .\" .\" $FreeBSD: pthread_equal.3,v 1.4 1999/08/28 00:03:05 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_EQUAL 3 .Os .Sh NAME .Nm pthread_equal .Nd compare thread IDs .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_equal "pthread_t t1" "pthread_t t2" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_exit.3 b/lib/libpthread/man/pthread_exit.3 index 93aa1b0709e..4cddb73dcb4 100644 --- a/lib/libpthread/man/pthread_exit.3 +++ b/lib/libpthread/man/pthread_exit.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_exit.3,v 1.11 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: pthread_exit.3,v 1.12 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1996 John Birrell <jb@cimlogic.com.au>. .\" All rights reserved. @@ -32,14 +32,14 @@ .\" .\" $FreeBSD: pthread_exit.3,v 1.7 1999/08/28 00:03:06 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_EXIT 3 .Os .Sh NAME .Nm pthread_exit .Nd terminate the calling thread .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft void .Fn pthread_exit "void *value_ptr" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_getconcurrency.3 b/lib/libpthread/man/pthread_getconcurrency.3 index 815ba121988..218a05e6e2b 100644 --- a/lib/libpthread/man/pthread_getconcurrency.3 +++ b/lib/libpthread/man/pthread_getconcurrency.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_getconcurrency.3,v 1.3 2013/04/14 21:31:01 sthen Exp $ +.\" $OpenBSD: pthread_getconcurrency.3,v 1.4 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 2003 Sergey Osokin <osa@FreeBSD.org.ru> .\" All rights reserved. @@ -25,7 +25,7 @@ .\" SUCH DAMAGE. .\" .\" $FreeBSD: src/lib/libc_r/man/pthread_getconcurrency.3,v 1.2 2003/05/24 19:50:43 ru Exp $ -.Dd $Mdocdate: April 14 2013 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_GETCONCURRENCY 3 .Os .Sh NAME @@ -33,7 +33,7 @@ .Nm pthread_setconcurrency .Nd get or set level of concurrency .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_getconcurrency void .Ft int diff --git a/lib/libpthread/man/pthread_getspecific.3 b/lib/libpthread/man/pthread_getspecific.3 index cb1b5f3a3f1..0e0ecc9d04a 100644 --- a/lib/libpthread/man/pthread_getspecific.3 +++ b/lib/libpthread/man/pthread_getspecific.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_getspecific.3,v 1.6 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: pthread_getspecific.3,v 1.7 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1996 John Birrell <jb@cimlogic.com.au>. .\" All rights reserved. @@ -32,14 +32,14 @@ .\" .\" $FreeBSD: pthread_getspecific.3,v 1.6 1999/08/28 00:03:06 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_GETSPECIFIC 3 .Os .Sh NAME .Nm pthread_getspecific .Nd get a thread-specific data value .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft void * .Fn pthread_getspecific "pthread_key_t key" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_join.3 b/lib/libpthread/man/pthread_join.3 index 3c0033ea6e0..feb059b39d2 100644 --- a/lib/libpthread/man/pthread_join.3 +++ b/lib/libpthread/man/pthread_join.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_join.3,v 1.9 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: pthread_join.3,v 1.10 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1996-1998 John Birrell <jb@cimlogic.com.au>. .\" All rights reserved. @@ -32,14 +32,14 @@ .\" .\" $FreeBSD: pthread_join.3,v 1.6 1999/08/28 00:03:06 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_JOIN 3 .Os .Sh NAME .Nm pthread_join .Nd wait for thread termination .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_join "pthread_t thread" "void **value_ptr" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_key_create.3 b/lib/libpthread/man/pthread_key_create.3 index bfcbaa072af..ea76d2daede 100644 --- a/lib/libpthread/man/pthread_key_create.3 +++ b/lib/libpthread/man/pthread_key_create.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_key_create.3,v 1.8 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: pthread_key_create.3,v 1.9 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1996 John Birrell <jb@cimlogic.com.au>. .\" All rights reserved. @@ -32,14 +32,14 @@ .\" .\" $FreeBSD: pthread_key_create.3,v 1.5 1999/08/28 00:03:06 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_KEY_CREATE 3 .Os .Sh NAME .Nm pthread_key_create .Nd thread-specific data key creation .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_key_create "pthread_key_t *key" "void (*destructor)(void *)" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_key_delete.3 b/lib/libpthread/man/pthread_key_delete.3 index 8356fc80c5e..73dff42ef23 100644 --- a/lib/libpthread/man/pthread_key_delete.3 +++ b/lib/libpthread/man/pthread_key_delete.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_key_delete.3,v 1.9 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: pthread_key_delete.3,v 1.10 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1996 John Birrell <jb@cimlogic.com.au>. .\" All rights reserved. @@ -32,14 +32,14 @@ .\" .\" $FreeBSD: pthread_key_delete.3,v 1.5 1999/08/28 00:03:06 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_KEY_DELETE 3 .Os .Sh NAME .Nm pthread_key_delete .Nd delete a thread-specific data key .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_key_delete "pthread_key_t key" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_kill.3 b/lib/libpthread/man/pthread_kill.3 index 203872b6c1c..bf90d1ba3f2 100644 --- a/lib/libpthread/man/pthread_kill.3 +++ b/lib/libpthread/man/pthread_kill.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_kill.3,v 1.2 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: pthread_kill.3,v 1.3 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>. .\" All rights reserved. @@ -28,15 +28,15 @@ .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .\" $FreeBSD: src/lib/libc_r/man/pthread_kill.3,v 1.8 2001/10/01 16:09:09 ru Exp $ -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_KILL 3 .Os .Sh NAME .Nm pthread_kill .Nd send a signal to a specified thread .Sh SYNOPSIS -.Fd #include <pthread.h> -.Fd #include <signal.h> +.In pthread.h +.In signal.h .Ft int .Fn pthread_kill "pthread_t thread" "int sig" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_main_np.3 b/lib/libpthread/man/pthread_main_np.3 index 3f4d18e2d29..9929bed4895 100644 --- a/lib/libpthread/man/pthread_main_np.3 +++ b/lib/libpthread/man/pthread_main_np.3 @@ -1,16 +1,16 @@ -.\" $OpenBSD: pthread_main_np.3,v 1.5 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: pthread_main_np.3,v 1.6 2013/06/05 03:44:50 tedu Exp $ .\" .\" Peter Valchev <pvalchev@openbsd.org> Public Domain, 2001 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_MAIN_NP 3 .Os .Sh NAME .Nm pthread_main_np .Nd identify the main thread .Sh SYNOPSIS -.Fd #include <pthread.h> -.Fd #include <pthread_np.h> +.In pthread.h +.In pthread_np.h .Ft int .Fn pthread_main_np "void" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_mutex_destroy.3 b/lib/libpthread/man/pthread_mutex_destroy.3 index b0fe8e8922a..7b61fc5cfea 100644 --- a/lib/libpthread/man/pthread_mutex_destroy.3 +++ b/lib/libpthread/man/pthread_mutex_destroy.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_mutex_destroy.3,v 1.9 2012/02/24 06:35:27 jmc Exp $ +.\" $OpenBSD: pthread_mutex_destroy.3,v 1.10 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1997 Brian Cully <shmit@kublai.com> .\" All rights reserved. @@ -29,14 +29,14 @@ .\" .\" $FreeBSD: pthread_mutex_destroy.3,v 1.5 1999/08/28 00:03:07 peter Exp $ .\" -.Dd $Mdocdate: February 24 2012 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_MUTEX_DESTROY 3 .Os .Sh NAME .Nm pthread_mutex_destroy .Nd free resources allocated for a mutex .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_mutex_destroy "pthread_mutex_t *mutex" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_mutex_init.3 b/lib/libpthread/man/pthread_mutex_init.3 index cc7cfc4e6ac..5567248184b 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.11 2012/02/24 06:35:27 jmc Exp $ +.\" $OpenBSD: pthread_mutex_init.3,v 1.12 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1997 Brian Cully <shmit@kublai.com> .\" All rights reserved. @@ -29,14 +29,14 @@ .\" .\" $FreeBSD: pthread_mutex_init.3,v 1.6 1999/08/28 00:03:07 peter Exp $ .\" -.Dd $Mdocdate: February 24 2012 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_MUTEX_INIT 3 .Os .Sh NAME .Nm pthread_mutex_init .Nd create a mutex .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_mutex_init "pthread_mutex_t *mutex" "const pthread_mutexattr_t *attr" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_mutex_lock.3 b/lib/libpthread/man/pthread_mutex_lock.3 index 22c9a909025..7f304526a8c 100644 --- a/lib/libpthread/man/pthread_mutex_lock.3 +++ b/lib/libpthread/man/pthread_mutex_lock.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_mutex_lock.3,v 1.10 2012/02/24 04:58:22 guenther Exp $ +.\" $OpenBSD: pthread_mutex_lock.3,v 1.11 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1997 Brian Cully <shmit@kublai.com> .\" All rights reserved. @@ -29,7 +29,7 @@ .\" .\" $FreeBSD: pthread_mutex_lock.3,v 1.5 1999/08/28 00:03:07 peter Exp $ .\" -.Dd $Mdocdate: February 24 2012 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_MUTEX_LOCK 3 .Os .Sh NAME @@ -38,7 +38,7 @@ .Nm pthread_mutex_trylock .Nd lock a mutex .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_mutex_lock "pthread_mutex_t *mutex" .Ft int diff --git a/lib/libpthread/man/pthread_mutex_unlock.3 b/lib/libpthread/man/pthread_mutex_unlock.3 index 42f62732eca..2218040c3e9 100644 --- a/lib/libpthread/man/pthread_mutex_unlock.3 +++ b/lib/libpthread/man/pthread_mutex_unlock.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_mutex_unlock.3,v 1.9 2012/02/24 06:35:27 jmc Exp $ +.\" $OpenBSD: pthread_mutex_unlock.3,v 1.10 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1997 Brian Cully <shmit@kublai.com> .\" All rights reserved. @@ -29,14 +29,14 @@ .\" .\" $FreeBSD: pthread_mutex_unlock.3,v 1.5 1999/08/28 00:03:08 peter Exp $ .\" -.Dd $Mdocdate: February 24 2012 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_MUTEX_UNLOCK 3 .Os .Sh NAME .Nm pthread_mutex_unlock .Nd unlock a mutex .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_mutex_unlock "pthread_mutex_t *mutex" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_mutexattr.3 b/lib/libpthread/man/pthread_mutexattr.3 index cf535c354ad..be4baf99bc8 100644 --- a/lib/libpthread/man/pthread_mutexattr.3 +++ b/lib/libpthread/man/pthread_mutexattr.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_mutexattr.3,v 1.4 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: pthread_mutexattr.3,v 1.5 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (C) 2000 Jason Evans <jasone@freebsd.org>. .\" All rights reserved. @@ -28,7 +28,7 @@ .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .\" $FreeBSD: pthread_mutexattr.3,v 1.5 2001/07/15 07:53:26 dd Exp $ -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_MUTEXATTR 3 .Os .Sh NAME @@ -42,7 +42,7 @@ .Nm pthread_mutexattr_gettype .Nd mutex attribute operations .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_mutexattr_init "pthread_mutexattr_t *attr" .Ft int diff --git a/lib/libpthread/man/pthread_once.3 b/lib/libpthread/man/pthread_once.3 index 9eadba25f0a..17924d4d11f 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.12 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: pthread_once.3,v 1.13 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1996 John Birrell <jb@cimlogic.com.au>. .\" All rights reserved. @@ -32,14 +32,14 @@ .\" .\" $FreeBSD: pthread_once.3,v 1.5 1999/08/28 00:03:09 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_ONCE 3 .Os .Sh NAME .Nm pthread_once .Nd dynamic package initialization .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Pp .Ft pthread_once_t .Fa once_control diff --git a/lib/libpthread/man/pthread_rwlock_destroy.3 b/lib/libpthread/man/pthread_rwlock_destroy.3 index e6f404b5f05..4bf2fd904e3 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.8 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: pthread_rwlock_destroy.3,v 1.9 2013/06/05 03:44:50 tedu Exp $ .\" Copyright (c) 1998 Alex Nash .\" All rights reserved. .\" @@ -25,14 +25,14 @@ .\" .\" $FreeBSD: pthread_rwlock_destroy.3,v 1.3 1999/08/28 00:03:09 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_RWLOCK_DESTROY 3 .Os .Sh NAME .Nm pthread_rwlock_destroy .Nd destroy a read/write lock .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_rwlock_destroy "pthread_rwlock_t *lock" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_rwlock_init.3 b/lib/libpthread/man/pthread_rwlock_init.3 index d5d51bdfa04..ad1a97d1200 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.7 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: pthread_rwlock_init.3,v 1.8 2013/06/05 03:44:50 tedu Exp $ .\" Copyright (c) 1998 Alex Nash .\" All rights reserved. .\" @@ -25,14 +25,14 @@ .\" .\" $FreeBSD: pthread_rwlock_init.3,v 1.2 1999/08/28 00:03:09 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_RWLOCK_INIT 3 .Os .Sh NAME .Nm pthread_rwlock_init .Nd initialize a read/write lock .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_rwlock_init "pthread_rwlock_t *lock" "const pthread_rwlockattr_t *attr" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_rwlock_rdlock.3 b/lib/libpthread/man/pthread_rwlock_rdlock.3 index 8a3a45f48ab..72d6fb01a62 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.10 2010/05/03 20:43:24 jmc Exp $ +.\" $OpenBSD: pthread_rwlock_rdlock.3,v 1.11 2013/06/05 03:44:50 tedu Exp $ .\" Copyright (c) 1998 Alex Nash .\" All rights reserved. .\" @@ -25,7 +25,7 @@ .\" .\" $FreeBSD: pthread_rwlock_rdlock.3,v 1.2 1999/08/28 00:03:09 peter Exp $ .\" -.Dd $Mdocdate: May 3 2010 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_RWLOCK_RDLOCK 3 .Os .Sh NAME @@ -34,7 +34,7 @@ .Nm pthread_rwlock_tryrdlock .Nd acquire a read/write lock for reading .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_rwlock_rdlock "pthread_rwlock_t *lock" .Ft int diff --git a/lib/libpthread/man/pthread_rwlock_unlock.3 b/lib/libpthread/man/pthread_rwlock_unlock.3 index bc56643f091..eeffce521e2 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.7 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: pthread_rwlock_unlock.3,v 1.8 2013/06/05 03:44:50 tedu Exp $ .\" Copyright (c) 1998 Alex Nash .\" All rights reserved. .\" @@ -25,14 +25,14 @@ .\" .\" $FreeBSD: pthread_rwlock_unlock.3,v 1.2 1999/08/28 00:03:10 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_RWLOCK_UNLOCK 3 .Os .Sh NAME .Nm pthread_rwlock_unlock .Nd release a read/write lock .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_rwlock_unlock "pthread_rwlock_t *lock" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_rwlock_wrlock.3 b/lib/libpthread/man/pthread_rwlock_wrlock.3 index 0fbd2df3b6d..dd4942759ad 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.9 2010/05/03 20:43:24 jmc Exp $ +.\" $OpenBSD: pthread_rwlock_wrlock.3,v 1.10 2013/06/05 03:44:50 tedu Exp $ .\" Copyright (c) 1998 Alex Nash .\" All rights reserved. .\" @@ -25,7 +25,7 @@ .\" .\" $FreeBSD: pthread_rwlock_wrlock.3,v 1.2 1999/08/28 00:03:10 peter Exp $ .\" -.Dd $Mdocdate: May 3 2010 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_RWLOCK_WRLOCK 3 .Os .Sh NAME @@ -34,7 +34,7 @@ .Nm pthread_rwlock_trywrlock .Nd acquire a read/write lock for writing .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_rwlock_wrlock "pthread_rwlock_t *lock" .Ft int diff --git a/lib/libpthread/man/pthread_rwlockattr_destroy.3 b/lib/libpthread/man/pthread_rwlockattr_destroy.3 index 65a8fe61d70..dbd4bcfc917 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.9 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: pthread_rwlockattr_destroy.3,v 1.10 2013/06/05 03:44:50 tedu Exp $ .\" Copyright (c) 1998 Alex Nash .\" All rights reserved. .\" @@ -25,14 +25,14 @@ .\" .\" $FreeBSD: pthread_rwlockattr_destroy.3,v 1.3 1999/08/28 00:03:10 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_RWLOCKATTR_DESTROY 3 .Os .Sh NAME .Nm pthread_rwlockattr_destroy .Nd destroy a read/write lock .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_rwlockattr_destroy "pthread_rwlockattr_t *attr" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_rwlockattr_getpshared.3 b/lib/libpthread/man/pthread_rwlockattr_getpshared.3 index 900f5fcc34e..6e9e4c009e4 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.9 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: pthread_rwlockattr_getpshared.3,v 1.10 2013/06/05 03:44:50 tedu Exp $ .\" Copyright (c) 1998 Alex Nash .\" All rights reserved. .\" @@ -25,14 +25,14 @@ .\" .\" $FreeBSD: pthread_rwlockattr_getpshared.3,v 1.4 1999/08/28 00:03:10 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_RWLOCKATTR_GETPSHARED 3 .Os .Sh NAME .Nm pthread_rwlockattr_getpshared .Nd get the process shared attribute .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_rwlockattr_getpshared "const pthread_rwlockattr_t *attr" "int *pshared" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_rwlockattr_init.3 b/lib/libpthread/man/pthread_rwlockattr_init.3 index 0e7560c38b2..caf8069aa6f 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.8 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: pthread_rwlockattr_init.3,v 1.9 2013/06/05 03:44:50 tedu Exp $ .\" Copyright (c) 1998 Alex Nash .\" All rights reserved. .\" @@ -25,14 +25,14 @@ .\" .\" $FreeBSD: pthread_rwlockattr_init.3,v 1.3 1999/08/28 00:03:10 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_RWLOCKATTR_INIT 3 .Os .Sh NAME .Nm pthread_rwlockattr_init .Nd initialize a read/write lock .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_rwlockattr_init "pthread_rwlockattr_t *attr" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_rwlockattr_setpshared.3 b/lib/libpthread/man/pthread_rwlockattr_setpshared.3 index fcf984745a5..646d00ac3be 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.9 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: pthread_rwlockattr_setpshared.3,v 1.10 2013/06/05 03:44:50 tedu Exp $ .\" Copyright (c) 1998 Alex Nash .\" All rights reserved. .\" @@ -25,14 +25,14 @@ .\" .\" $FreeBSD: pthread_rwlockattr_setpshared.3,v 1.2 1999/08/28 00:03:11 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_RWLOCKATTR_SETPSHARED 3 .Os .Sh NAME .Nm pthread_rwlockattr_setpshared .Nd set the process shared attribute .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_rwlockattr_setpshared "pthread_rwlockattr_t *attr" "int pshared" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_schedparam.3 b/lib/libpthread/man/pthread_schedparam.3 index f8e10c3b765..8690905abfb 100644 --- a/lib/libpthread/man/pthread_schedparam.3 +++ b/lib/libpthread/man/pthread_schedparam.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_schedparam.3,v 1.4 2010/11/07 18:16:43 jmc Exp $ +.\" $OpenBSD: pthread_schedparam.3,v 1.5 2013/06/05 03:44:50 tedu Exp $ .\" Copyright (C) 2000 Jason Evans <jasone@freebsd.org>. .\" All rights reserved. .\" @@ -27,7 +27,7 @@ .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .\" $FreeBSD: src/lib/libc_r/man/pthread_schedparam.3,v 1.4 2001/07/15 07:53:27 dd Exp $ -.Dd $Mdocdate: November 7 2010 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_SCHEDPARAM 3 .Os .Sh NAME @@ -35,7 +35,7 @@ .Nm pthread_getschedparam .Nd thread scheduling parameter manipulation .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_setschedparam "pthread_t thread" "int policy" "const struct sched_param *param" .Ft int diff --git a/lib/libpthread/man/pthread_self.3 b/lib/libpthread/man/pthread_self.3 index 86e2784d172..7442d086cf8 100644 --- a/lib/libpthread/man/pthread_self.3 +++ b/lib/libpthread/man/pthread_self.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_self.3,v 1.7 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: pthread_self.3,v 1.8 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1996 John Birrell <jb@cimlogic.com.au>. .\" All rights reserved. @@ -32,14 +32,14 @@ .\" .\" $FreeBSD: pthread_self.3,v 1.4 1999/08/28 00:03:11 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_SELF 3 .Os .Sh NAME .Nm pthread_self .Nd get the calling thread's ID .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft pthread_t .Fn pthread_self "void" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_set_name_np.3 b/lib/libpthread/man/pthread_set_name_np.3 index d7fcdb4dd5f..23578638ff8 100644 --- a/lib/libpthread/man/pthread_set_name_np.3 +++ b/lib/libpthread/man/pthread_set_name_np.3 @@ -1,14 +1,14 @@ -.\" $OpenBSD: pthread_set_name_np.3,v 1.4 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: pthread_set_name_np.3,v 1.5 2013/06/05 03:44:50 tedu Exp $ .\" David Leonard <d@openbsd.org>, 1999. Public domain. -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_SET_NAME_NP 3 .Os .Sh NAME .Nm pthread_set_name_np .Nd set the name of a thread .Sh SYNOPSIS -.Fd #include <pthread.h> -.Fd #include <pthread_np.h> +.In pthread.h +.In pthread_np.h .Ft void .Fn pthread_set_name_np "pthread_t thread" "char *name" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_setspecific.3 b/lib/libpthread/man/pthread_setspecific.3 index 66474ddedea..7a4da15ba3a 100644 --- a/lib/libpthread/man/pthread_setspecific.3 +++ b/lib/libpthread/man/pthread_setspecific.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_setspecific.3,v 1.11 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: pthread_setspecific.3,v 1.12 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 1996 John Birrell <jb@cimlogic.com.au>. .\" All rights reserved. @@ -32,14 +32,14 @@ .\" .\" $FreeBSD: pthread_setspecific.3,v 1.5 1999/08/28 00:03:11 peter Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_SETSPECIFIC 3 .Os .Sh NAME .Nm pthread_setspecific .Nd set a thread-specific data value .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_setspecific "pthread_key_t key" "const void *value" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_sigmask.3 b/lib/libpthread/man/pthread_sigmask.3 index 6efdc8e1f5e..983ff4d3ee8 100644 --- a/lib/libpthread/man/pthread_sigmask.3 +++ b/lib/libpthread/man/pthread_sigmask.3 @@ -1,16 +1,16 @@ -.\" $OpenBSD: pthread_sigmask.3,v 1.9 2012/09/11 21:21:18 matthew Exp $ +.\" $OpenBSD: pthread_sigmask.3,v 1.10 2013/06/05 03:44:50 tedu Exp $ .\" .\" .\" David Leonard, 1999. Public Domain. .\" -.Dd $Mdocdate: September 11 2012 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_SIGMASK 3 .Os .Sh NAME .Nm pthread_sigmask .Nd examine and/or change a thread's signal mask .Sh SYNOPSIS -.Fd #include <signal.h> +.In signal.h .Ft int .Fn pthread_sigmask "int how" "const sigset_t *set" "sigset_t *oset" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_spin_init.3 b/lib/libpthread/man/pthread_spin_init.3 index fff74a90552..6ee06d9f6d4 100644 --- a/lib/libpthread/man/pthread_spin_init.3 +++ b/lib/libpthread/man/pthread_spin_init.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_spin_init.3,v 1.1 2012/05/03 09:07:17 pirofti Exp $ +.\" $OpenBSD: pthread_spin_init.3,v 1.2 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 2012 Paul Irofti <pirofti@openbsd.org> .\" @@ -15,7 +15,7 @@ .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .\" -.Dd $Mdocdate: May 3 2012 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_SPIN_INIT 3 .Os .Sh NAME @@ -23,7 +23,7 @@ .Nm pthread_spin_destroy .Nd initialize and destroy a spinlock object .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_spin_init "pthread_spinlock_t *lock" "int pshared" .Ft int diff --git a/lib/libpthread/man/pthread_spin_lock.3 b/lib/libpthread/man/pthread_spin_lock.3 index b12ed33f80f..dfb3f7ab57d 100644 --- a/lib/libpthread/man/pthread_spin_lock.3 +++ b/lib/libpthread/man/pthread_spin_lock.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_spin_lock.3,v 1.1 2012/05/03 09:07:17 pirofti Exp $ +.\" $OpenBSD: pthread_spin_lock.3,v 1.2 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 2012 Paul Irofti <pirofti@openbsd.org> .\" @@ -15,7 +15,7 @@ .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .\" -.Dd $Mdocdate: May 3 2012 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_SPIN_LOCK 3 .Os .Sh NAME @@ -23,7 +23,7 @@ .Nm pthread_spin_trylock .Nd lock a spinlock object .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_spin_lock "pthread_spinlock_t *lock" .Ft int diff --git a/lib/libpthread/man/pthread_spin_unlock.3 b/lib/libpthread/man/pthread_spin_unlock.3 index af443ce34a4..f400c7c6f80 100644 --- a/lib/libpthread/man/pthread_spin_unlock.3 +++ b/lib/libpthread/man/pthread_spin_unlock.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_spin_unlock.3,v 1.1 2012/05/03 09:07:17 pirofti Exp $ +.\" $OpenBSD: pthread_spin_unlock.3,v 1.2 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 2012 Paul Irofti <pirofti@openbsd.org> .\" @@ -15,14 +15,14 @@ .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .\" -.Dd $Mdocdate: May 3 2012 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_SPIN_UNLOCK 3 .Os .Sh NAME .Nm pthread_spin_unlock .Nd unlock a spinlock object .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_spin_unlock "pthread_spinlock_t *lock" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_stackseg_np.3 b/lib/libpthread/man/pthread_stackseg_np.3 index d95ca312ec5..c56b5ff4e30 100644 --- a/lib/libpthread/man/pthread_stackseg_np.3 +++ b/lib/libpthread/man/pthread_stackseg_np.3 @@ -1,16 +1,16 @@ -.\" $OpenBSD: pthread_stackseg_np.3,v 1.5 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: pthread_stackseg_np.3,v 1.6 2013/06/05 03:44:50 tedu Exp $ .\" .\" PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman <marc@snafu.org> .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_STACKSEG_NP 3 .Os .Sh NAME .Nm pthread_stackseg_np .Nd return stack size and location .Sh SYNOPSIS -.Fd #include <sys/signal.h> -.Fd #include <pthread_np.h> +.In sys/signal.h +.In pthread_np.h .Ft int .Fn pthread_stackseg_np "pthread_t thread" "stack_t *sinfo" .Sh DESCRIPTION diff --git a/lib/libpthread/man/pthread_testcancel.3 b/lib/libpthread/man/pthread_testcancel.3 index 245deda4d61..edcc90a5168 100644 --- a/lib/libpthread/man/pthread_testcancel.3 +++ b/lib/libpthread/man/pthread_testcancel.3 @@ -1,9 +1,9 @@ -.\" $OpenBSD: pthread_testcancel.3,v 1.14 2012/03/22 01:15:37 guenther Exp $ +.\" $OpenBSD: pthread_testcancel.3,v 1.15 2013/06/05 03:44:50 tedu Exp $ .\" .\" .\" David Leonard, 1999. Public Domain. .\" -.Dd $Mdocdate: March 22 2012 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_TESTCANCEL 3 .Os .Sh NAME @@ -12,7 +12,7 @@ .Nm pthread_testcancel .Nd set cancelability state .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft int .Fn pthread_setcancelstate "int state" "int *oldstate" .Ft int diff --git a/lib/libpthread/man/pthread_yield.3 b/lib/libpthread/man/pthread_yield.3 index c55be2f891d..1480b019aff 100644 --- a/lib/libpthread/man/pthread_yield.3 +++ b/lib/libpthread/man/pthread_yield.3 @@ -1,15 +1,15 @@ -.\" $OpenBSD: pthread_yield.3,v 1.4 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: pthread_yield.3,v 1.5 2013/06/05 03:44:50 tedu Exp $ .\" .\" PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman <marc@snafu.org> .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PTHREAD_YIELD 3 .Os .Sh NAME .Nm pthread_yield .Nd yield control of the current thread .Sh SYNOPSIS -.Fd #include <pthread.h> +.In pthread.h .Ft void .Fn pthread_yield "void" .Sh DESCRIPTION diff --git a/lib/libpthread/man/putc_unlocked.3 b/lib/libpthread/man/putc_unlocked.3 index 5a0dafb04c4..35912470d18 100644 --- a/lib/libpthread/man/putc_unlocked.3 +++ b/lib/libpthread/man/putc_unlocked.3 @@ -1,6 +1,6 @@ -.\" $OpenBSD: putc_unlocked.3,v 1.3 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: putc_unlocked.3,v 1.4 2013/06/05 03:44:50 tedu Exp $ .\" David Leonard <d@openbsd.org>, 1998. Public domain. -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt PUTC_UNLOCKED 3 .Os .Sh NAME @@ -8,7 +8,7 @@ .Nm putchar_unlocked .Nd put next character from stream, efficiently .Sh SYNOPSIS -.Fd #include <stdio.h> +.In stdio.h .Ft int .Fn putc_unlocked "int c" "FILE *stream" .Ft int diff --git a/lib/libpthread/man/sched_get_priority_min.3 b/lib/libpthread/man/sched_get_priority_min.3 index ffda9572314..320d205a181 100644 --- a/lib/libpthread/man/sched_get_priority_min.3 +++ b/lib/libpthread/man/sched_get_priority_min.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sched_get_priority_min.3,v 1.1 2010/11/07 20:18:22 deraadt Exp $ +.\" $OpenBSD: sched_get_priority_min.3,v 1.2 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 2010 Federico G. Schwindt <fgsch@openbsd.org> .\" @@ -16,7 +16,7 @@ .\" TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR .\" PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: November 7 2010 $ +.Dd $Mdocdate: June 5 2013 $ .Dt SCHED_GET_PRIORITY_MIN 3 .Os .Sh NAME @@ -24,7 +24,7 @@ .Nm sched_get_priority_min .Nd get priority limits .Sh SYNOPSIS -.Fd #include <sched.h> +.In sched.h .Ft int .Fn sched_get_priority_max "int policy" .Ft int diff --git a/lib/libpthread/man/sem_destroy.3 b/lib/libpthread/man/sem_destroy.3 index c48b447b483..75cab4dfba1 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.5 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: sem_destroy.3,v 1.6 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>. .\" All rights reserved. @@ -28,14 +28,14 @@ .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .\" $FreeBSD: src/lib/libc_r/man/sem_destroy.3,v 1.9 2001/10/01 16:09:09 ru Exp $ -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt SEM_DESTROY 3 .Os .Sh NAME .Nm sem_destroy .Nd destroy an unnamed semaphore .Sh SYNOPSIS -.Fd #include <semaphore.h> +.In semaphore.h .Ft int .Fn sem_destroy "sem_t *sem" .Sh DESCRIPTION diff --git a/lib/libpthread/man/sem_getvalue.3 b/lib/libpthread/man/sem_getvalue.3 index 4340cccbd92..1e75406cfa0 100644 --- a/lib/libpthread/man/sem_getvalue.3 +++ b/lib/libpthread/man/sem_getvalue.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sem_getvalue.3,v 1.5 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: sem_getvalue.3,v 1.6 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>. .\" All rights reserved. @@ -28,14 +28,14 @@ .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .\" $FreeBSD: src/lib/libc_r/man/sem_getvalue.3,v 1.9 2001/10/01 16:09:09 ru Exp $ -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt SEM_GETVALUE 3 .Os .Sh NAME .Nm sem_getvalue .Nd get the value of a semaphore .Sh SYNOPSIS -.Fd #include <semaphore.h> +.In semaphore.h .Ft int .Fn sem_getvalue "sem_t *sem" "int *sval" .Sh DESCRIPTION diff --git a/lib/libpthread/man/sem_init.3 b/lib/libpthread/man/sem_init.3 index eb72f438d72..e8595ebdbf7 100644 --- a/lib/libpthread/man/sem_init.3 +++ b/lib/libpthread/man/sem_init.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sem_init.3,v 1.4 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: sem_init.3,v 1.5 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>. .\" All rights reserved. @@ -28,14 +28,14 @@ .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .\" $FreeBSD: src/lib/libc_r/man/sem_init.3,v 1.11 2001/10/01 16:09:09 ru Exp $ -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt SEM_INIT 3 .Os .Sh NAME .Nm sem_init .Nd initialize an unnamed semaphore .Sh SYNOPSIS -.Fd #include <semaphore.h> +.In semaphore.h .Ft int .Fn sem_init "sem_t *sem" "int pshared" "unsigned int value" .Sh DESCRIPTION diff --git a/lib/libpthread/man/sem_open.3 b/lib/libpthread/man/sem_open.3 index 485a0694142..22fdeeab5af 100644 --- a/lib/libpthread/man/sem_open.3 +++ b/lib/libpthread/man/sem_open.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sem_open.3,v 1.4 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: sem_open.3,v 1.5 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>. .\" All rights reserved. @@ -28,7 +28,7 @@ .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .\" $FreeBSD: src/lib/libc_r/man/sem_open.3,v 1.7 2001/10/01 16:09:09 ru Exp $ -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt SEM_OPEN 3 .Os .Sh NAME @@ -37,7 +37,7 @@ .Nm sem_unlink .Nd named semaphore operations .Sh SYNOPSIS -.Fd #include <semaphore.h> +.In semaphore.h .Ft sem_t * .Fn sem_open "const char *name" "int oflag" "..." .Ft int diff --git a/lib/libpthread/man/sem_post.3 b/lib/libpthread/man/sem_post.3 index 3ead8c537d7..b05544ae55a 100644 --- a/lib/libpthread/man/sem_post.3 +++ b/lib/libpthread/man/sem_post.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sem_post.3,v 1.4 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: sem_post.3,v 1.5 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>. .\" All rights reserved. @@ -28,14 +28,14 @@ .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .\" $FreeBSD: src/lib/libc_r/man/sem_post.3,v 1.10 2001/10/01 16:09:09 ru Exp $ -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt SEM_POST 3 .Os .Sh NAME .Nm sem_post .Nd increment (unlock) a semaphore .Sh SYNOPSIS -.Fd #include <semaphore.h> +.In semaphore.h .Ft int .Fn sem_post "sem_t *sem" .Sh DESCRIPTION diff --git a/lib/libpthread/man/sem_wait.3 b/lib/libpthread/man/sem_wait.3 index 019994b006f..31c091eda89 100644 --- a/lib/libpthread/man/sem_wait.3 +++ b/lib/libpthread/man/sem_wait.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sem_wait.3,v 1.8 2012/03/04 07:23:55 jmc Exp $ +.\" $OpenBSD: sem_wait.3,v 1.9 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>. .\" All rights reserved. @@ -28,7 +28,7 @@ .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .\" $FreeBSD: src/lib/libc_r/man/sem_wait.3,v 1.8 2001/10/01 16:09:09 ru Exp $ -.Dd $Mdocdate: March 4 2012 $ +.Dd $Mdocdate: June 5 2013 $ .Dt SEM_WAIT 3 .Os .Sh NAME @@ -37,7 +37,7 @@ .Nm sem_trywait .Nd decrement (lock) a semaphore .Sh SYNOPSIS -.Fd #include <semaphore.h> +.In semaphore.h .Ft int .Fn sem_wait "sem_t *sem" .Ft int diff --git a/lib/libpthread/man/sigwait.3 b/lib/libpthread/man/sigwait.3 index 39c4d9cb443..bfafc55ebc8 100644 --- a/lib/libpthread/man/sigwait.3 +++ b/lib/libpthread/man/sigwait.3 @@ -1,14 +1,14 @@ -.\" $OpenBSD: sigwait.3,v 1.14 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: sigwait.3,v 1.15 2013/06/05 03:44:50 tedu Exp $ .\" .\" David Leonard <d@openbsd.org>, 1998. Public domain. -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 5 2013 $ .Dt SIGWAIT 3 .Os .Sh NAME .Nm sigwait .Nd synchronously accept a signal .Sh SYNOPSIS -.Fd #include <signal.h> +.In signal.h .Ft int .Fn sigwait "const sigset_t *set" "int *sig" .Sh DESCRIPTION diff --git a/lib/libsndio/mio_open.3 b/lib/libsndio/mio_open.3 index cd889f2dca3..38889eee2b0 100644 --- a/lib/libsndio/mio_open.3 +++ b/lib/libsndio/mio_open.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mio_open.3,v 1.11 2013/04/06 11:38:41 ratchov Exp $ +.\" $OpenBSD: mio_open.3,v 1.12 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 2007 Alexandre Ratchov <alex@caoua.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: April 6 2013 $ +.Dd $Mdocdate: June 5 2013 $ .Dt MIO_OPEN 3 .Os .Sh NAME @@ -28,7 +28,7 @@ .Nm mio_eof .Nd interface to MIDI streams .Sh SYNOPSIS -.Fd #include <sndio.h> +.In sndio.h .Ft "struct mio_hdl *" .Fn "mio_open" "const char *name" "unsigned int mode" "int nbio_flag" .Ft "void" diff --git a/lib/libsndio/sio_open.3 b/lib/libsndio/sio_open.3 index 2f90927cdb6..1ba08f81877 100644 --- a/lib/libsndio/sio_open.3 +++ b/lib/libsndio/sio_open.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sio_open.3,v 1.34 2013/04/06 11:38:41 ratchov Exp $ +.\" $OpenBSD: sio_open.3,v 1.35 2013/06/05 03:44:50 tedu Exp $ .\" .\" Copyright (c) 2007 Alexandre Ratchov <alex@caoua.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: April 6 2013 $ +.Dd $Mdocdate: June 5 2013 $ .Dt SIO_OPEN 3 .Os .Sh NAME @@ -37,7 +37,7 @@ .Nm sio_initpar .Nd interface to bidirectional audio streams .Sh SYNOPSIS -.Fd #include <sndio.h> +.In sndio.h .Ft "struct sio_hdl *" .Fn "sio_open" "const char *name" "unsigned int mode" "int nbio_flag" .Ft "void" |