diff options
author | Robert Mustacchi <rm@joyent.com> | 2013-11-01 02:09:06 +0000 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2013-11-14 15:57:13 -0800 |
commit | b5e595027fe431bb04a0f9b86ceb323a2d702dda (patch) | |
tree | a06a14d2789716dd3f199747078eb4058d24cbe8 /usr/src/man/man3c/fopen.3c | |
parent | 9e21aac0c45b9a278df2cfb9d5674c279cc542d2 (diff) | |
download | illumos-joyent-b5e595027fe431bb04a0f9b86ceb323a2d702dda.tar.gz |
4294 fopen could support 'x'
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Joshua M. Clulow <jmc@joyent.com>
Reviewed by: Jason King <jason.brian.king@gmail.com>
Reviewed by: Marcel Telka <marcel@telka.sk>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Approved by: Gordon Ross <gordon.ross@nexenta.com>
Diffstat (limited to 'usr/src/man/man3c/fopen.3c')
-rw-r--r-- | usr/src/man/man3c/fopen.3c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/usr/src/man/man3c/fopen.3c b/usr/src/man/man3c/fopen.3c index 648cd185ac..2eaaf4dd87 100644 --- a/usr/src/man/man3c/fopen.3c +++ b/usr/src/man/man3c/fopen.3c @@ -3,6 +3,7 @@ .\" Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved. .\" Portions Copyright (c) 1992, X/Open Company Limited. All Rights Reserved. .\" Portions Copyright (c) 2013, OmniTI Computer Consulting, Inc. All Rights Reserved. +.\" Portions Copyright (c) 2013, Joyent, Inc. 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 .\" 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. @@ -10,7 +11,7 @@ .\" 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 FOPEN 3C "Apr 18, 2006" +.TH FOPEN 3C "Nov 06, 2013" .SH NAME fopen \- open a stream .SH SYNOPSIS @@ -86,10 +87,10 @@ Append; open or create file for update, writing at end-of-file. .sp .LP -In addition to the base sequences for the \fImode\fR argument above, two -additional flags are supported via the \fBb\fR character and the \fBe\fR -character. Order of these additional flags (including the \fB+\fR) does -not matter. +In addition to the base sequences for the \fImode\fR argument above, +three additional flags are supported via the \fBb\fR character, the +\fBe\fR character, and the \fBx\fR character. Order of these additional +flags (including the \fB+\fR) does not matter. .sp .LP The character \fBb\fR has no effect, but is allowed for ISO C standard @@ -102,6 +103,11 @@ The character \fBe\fR will cause the underlying file descriptor to be opened with the O_CLOEXEC flag as described in \fBopen\fR(2). .sp .LP +The character \fBx\fR will attempt to open the specified file +exclusively. This is the same behavior as opening the underlying file +with the O_EXCL flag as described in \fBopen\fR(2). +.sp +.LP Opening a file with append mode (\fBa\fR as the first character in the \fImode\fR argument) causes all subsequent writes to the file to be forced to the then current end-of-file, regardless of intervening calls to |