Module Name: src
Committed By: jruoho
Date: Thu May 20 04:47:38 UTC 2010
Modified Files:
src/lib/libpthread: pthread_once.3
Log Message:
Use similar markup than in pthread_mutex_init(3) etc. with the initializer
macro. Improve wording slightly.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libpthread/pthread_once.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libpthread/pthread_once.3
diff -u src/lib/libpthread/pthread_once.3:1.5 src/lib/libpthread/pthread_once.3:1.6
--- src/lib/libpthread/pthread_once.3:1.5 Sun May 16 12:36:32 2010
+++ src/lib/libpthread/pthread_once.3 Thu May 20 04:47:38 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_once.3,v 1.5 2010/05/16 12:36:32 jruoho Exp $
+.\" $NetBSD: pthread_once.3,v 1.6 2010/05/20 04:47:38 jruoho Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -55,7 +55,7 @@
.\"
.\" $FreeBSD: src/lib/libpthread/man/pthread_once.3,v 1.14 2002/09/16 19:29:29 mini Exp $
.\"
-.Dd May 16, 2010
+.Dd May 20, 2010
.Dt PTHREAD_ONCE 3
.Os
.Sh NAME
@@ -65,12 +65,10 @@
.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
-.Pp
-pthread_once_t
-.Fa once_control
-= PTHREAD_ONCE_INIT;
.Ft int
.Fn pthread_once "pthread_once_t *once_control" "void (*init_routine)(void)"
+.Pp
+.Va pthread_once_t once_control = Dv PTHREAD_ONCE_INIT;
.Sh DESCRIPTION
The first call to
.Fn pthread_once
@@ -108,9 +106,10 @@
.Pp
The constant
.Dv PTHREAD_ONCE_INIT
-is defined by header
-.In pthread.h .
-.Pp
+initializes the static once synchronization control structure
+.Fa once_control
+to be used with
+.Fn pthread_once .
The behavior of
.Fn pthread_once
is undefined if