diff options
author | Yuri Pankov <yuri.pankov@nexenta.com> | 2011-10-03 04:36:40 -0700 |
---|---|---|
committer | Yuri Pankov <yuri.pankov@nexenta.com> | 2011-10-03 04:36:40 -0700 |
commit | ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2ab (patch) | |
tree | 3b2f488c4a03bda877119449bd63c01fa32aa6f2 /usr/src/man/man3c/cond_init.3c | |
parent | af8dc4373b25cce2c0bbb80f24e791f99eccbb6f (diff) | |
download | illumos-joyent-ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2ab.tar.gz |
1502 Remove conversion cruft from manpages
Reviewed by: Alexander Eremin <alexander.eremin@nexenta.com>
Reviewed by: Gordon Ross <gordon.w.ross@gmail.com>
Reviewed by: Garrett D'Amore <garrett.damore@gmail.com>
Diffstat (limited to 'usr/src/man/man3c/cond_init.3c')
-rw-r--r-- | usr/src/man/man3c/cond_init.3c | 37 |
1 files changed, 10 insertions, 27 deletions
diff --git a/usr/src/man/man3c/cond_init.3c b/usr/src/man/man3c/cond_init.3c index 3f17dcabce..47e1910e9d 100644 --- a/usr/src/man/man3c/cond_init.3c +++ b/usr/src/man/man3c/cond_init.3c @@ -2,14 +2,14 @@ .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved. .\" Portions Copyright (c) 2001, the Institute of Electrical and Electronics Engineers, Inc. and The Open Group. All Rights Reserved. .\" Portions Copyright (c) 1995 IEEE. All Rights Reserved. -.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at +.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at .\" http://www.opengroup.org/bookstore/. .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html. .\" This notice shall appear on any product containing this material. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH cond_init 3C "5 Jun 2007" "SunOS 5.11" "Standard C Library Functions" +.TH COND_INIT 3C "Jun 5, 2007" .SH NAME cond_init, cond_wait, cond_timedwait, cond_reltimedwait, cond_signal, cond_broadcast, cond_destroy \- condition variables @@ -17,8 +17,8 @@ cond_broadcast, cond_destroy \- condition variables .LP .nf cc -mt [ \fIflag\fR... ] \fIfile\fR... [ \fIlibrary\fR... ] -#include <thread.h> -#include <synch.h> +#include <thread.h> +#include <synch.h> \fBint\fR \fBcond_init\fR(\fBcond_t *\fR\fIcvp\fR, \fBint\fR \fItype\fR, \fBvoid *\fR\fIarg\fR); .fi @@ -89,24 +89,20 @@ may specify additional behavior parameters with \fIarg\fR. The \fItype\fR argument c take one of the following values: .sp .ne 2 -.mk .na \fB\fBUSYNC_THREAD\fR\fR .ad .RS 17n -.rt The condition variable can synchronize threads only in this process. This is the default. .RE .sp .ne 2 -.mk .na \fB\fBUSYNC_PROCESS\fR\fR .ad .RS 17n -.rt The condition variable can synchronize threads in this process and other processes. Only one process should initialize the condition variable. The object initialized with this attribute must be allocated in memory shared @@ -131,7 +127,7 @@ Default condition variable initialization (intra-process): .nf cond_t cvp; -cond_init(&cvp, NULL, NULL); /*initialize condition variable +cond_init(&cvp, NULL, NULL); /*initialize condition variable with default*/ .fi .in -2 @@ -238,12 +234,10 @@ The \fBcond_timedwait()\fR and \fBcond_reltimedwait()\fR functions will fail if: .sp .ne 2 -.mk .na \fB\fBETIME\fR\fR .ad .RS 9n -.rt The time specified by \fIabstime\fR or \fIreltime\fR has passed. .RE @@ -253,12 +247,10 @@ The \fBcond_wait()\fR, \fBcond_timedwait()\fR, and \fBcond_reltimedwait()\fR functions will fail if: .sp .ne 2 -.mk .na \fB\fBEINTR\fR\fR .ad .RS 9n -.rt Interrupted. The calling thread was awakened by the delivery of a UNIX signal. .RE @@ -272,24 +264,20 @@ description of the \fBmutex_lock()\fR function on the \fBmutex_init\fR(3C) manual page. .sp .ne 2 -.mk .na \fB\fBENOTRECOVERABLE\fR\fR .ad .RS 19n -.rt The mutex was protecting the state that has now been left irrecoverable. The mutex has not been acquired. .RE .sp .ne 2 -.mk .na \fB\fBEOWNERDEAD\fR\fR .ad .RS 19n -.rt The last owner of the mutex died while holding the mutex, possibly leaving the state it was protecting inconsistent. The mutex is now owned by the caller. .RE @@ -299,24 +287,20 @@ state it was protecting inconsistent. The mutex is now owned by the caller. These functions may fail if: .sp .ne 2 -.mk .na \fB\fBEFAULT\fR\fR .ad .RS 10n -.rt The \fIcond\fR, \fIattr\fR, \fIcvp\fR, \fIarg\fR, \fIabstime\fR, or \fImutex\fR argument points to an illegal address. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 10n -.rt Invalid argument. For \fBcond_init()\fR, \fItype\fR is not a recognized type. For \fBcond_timedwait()\fR, the number of nanoseconds is greater than or equal to 1,000,000,000. @@ -401,13 +385,12 @@ See \fBattributes\fR(5) for descriptions of the following attributes: .sp .TS -tab() box; -cw(2.75i) |cw(2.75i) -lw(2.75i) |lw(2.75i) -. -ATTRIBUTE TYPEATTRIBUTE VALUE +box; +c | c +l | l . +ATTRIBUTE TYPE ATTRIBUTE VALUE _ -MT-LevelMT-Safe +MT-Level MT-Safe .TE .SH SEE ALSO |