diff options
Diffstat (limited to 'usr/src/man/man3c')
| -rw-r--r-- | usr/src/man/man3c/err.3c | 9 | ||||
| -rw-r--r-- | usr/src/man/man3c/fgetattr.3c | 10 | ||||
| -rw-r--r-- | usr/src/man/man3c/fopen.3c | 13 |
3 files changed, 11 insertions, 21 deletions
diff --git a/usr/src/man/man3c/err.3c b/usr/src/man/man3c/err.3c index 05bf1df544..a82cca4a1b 100644 --- a/usr/src/man/man3c/err.3c +++ b/usr/src/man/man3c/err.3c @@ -1,11 +1,12 @@ '\" te +.\" Copyright 2014 Nexenta Systems, Inc. All Rights Reserved. .\" Copyright (c) 1996-2001 Wolfram Schneider. Berlin. .\" Copyright (c) 1993-1995 Berkeley Software Design, Inc. .\" Portions Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved. .\" 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 ERR 3C "Aug 20, 2007" +.TH ERR 3C "Nov 24, 2014" .SH NAME err, verr, errx, verrx, warn, vwarn, warnx, vwarnx \- formatted error messages .SH SYNOPSIS @@ -52,7 +53,6 @@ err, verr, errx, verrx, warn, vwarn, warnx, vwarnx \- formatted error messages .fi .SH DESCRIPTION -.sp .LP The \fBerr()\fR and \fBwarn()\fR family of functions display a formatted error message on the standard error output. In all cases, the last component of the @@ -68,7 +68,7 @@ newline character. The \fBerrx()\fR, \fBverrx()\fR, \fBwarnx()\fR, and .LP The \fBerr()\fR, \fBverr()\fR, \fBerrx()\fR, and \fBverrx()\fR functions do not return, but instead cause the program to terminate with the status value given -by the argument status. +by the argument \fIeval\fR. .SH EXAMPLES .LP \fBExample 1 \fRDisplay the current \fBerrno\fR information string and @@ -108,7 +108,6 @@ if ((fd = open(block_device, O_RDONLY, 0)) == -1) .in -2 .SH WARNINGS -.sp .LP It is important never to pass a string with user-supplied data as a format without using `%s'. An attacker can put format specifiers in the string to @@ -127,7 +126,6 @@ err(1, "%s", string); .in -2 .SH ATTRIBUTES -.sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp @@ -149,7 +147,6 @@ MT-Level Safe with Exceptions These functions are safe to use in multithreaded applications as long as \fBsetlocale\fR(3C) is not being called to change the locale. .SH SEE ALSO -.sp .LP \fBexit\fR(3C), \fBgetexecname\fR(3C), \fBsetlocale\fR(3C), \fBstrerror\fR(3C), \fBattributes\fR(5) diff --git a/usr/src/man/man3c/fgetattr.3c b/usr/src/man/man3c/fgetattr.3c index efae0e0ace..7b473bada4 100644 --- a/usr/src/man/man3c/fgetattr.3c +++ b/usr/src/man/man3c/fgetattr.3c @@ -1,9 +1,10 @@ '\" te +.\" Copyright 2014 Nexenta Systems, Inc. All rights reserved. .\" Copyright (c) 2008, Sun Microsystems Inc. All Rights Reserved. .\" 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 FGETATTR 3C "Aug 4, 2008" +.TH FGETATTR 3C "Nov 24, 2014" .SH NAME fgetattr, fsetattr, getattrat, setattrat \- get and set system attributes .SH SYNOPSIS @@ -35,7 +36,6 @@ fgetattr, fsetattr, getattrat, setattrat \- get and set system attributes .fi .SH DESCRIPTION -.sp .LP The \fBfgetattr()\fR function obtains an nvlist of system attribute information about an open file object specified by the file descriptor \fIfildes\fR, @@ -105,15 +105,15 @@ T} \fBA_GROUPSID\fR T{ nvlist composed of \fBuint32_value\fR and \fBstring\fR T} + \fBA_OFFLINE\fR \fBboolean_value\fR + \fBA_SPARSE\fR \fBboolean_value\fR .TE .SH RETURN VALUES -.sp .LP Upon successful completion, 0 is returned. Otherwise, -1 is returned and \fBerrno\fR is set to indicate the error. .SH ERRORS -.sp .LP The \fBfgetattr()\fR, \fBgetattrat()\fR, \fBfsetattr()\fR, and \fBsetattrat()\fR, functions will fail if: @@ -287,7 +287,6 @@ if (setattrat(fildes, XATTR_VIEW_READWRITE, "file", request)) { .in -2 .SH ATTRIBUTES -.sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp @@ -305,7 +304,6 @@ MT-Level Safe .TE .SH SEE ALSO -.sp .LP \fBcreat\fR(2), \fBdup\fR(2), \fBfcntl\fR(2), \fBfstat\fR(2), \fBfstatat\fR(2), \fBopen\fR(2), \fBpipe\fR(2), \fBlibnvpair\fR(3LIB), \fBattributes\fR(5), diff --git a/usr/src/man/man3c/fopen.3c b/usr/src/man/man3c/fopen.3c index 0dfdcb4cc0..906ee3532e 100644 --- a/usr/src/man/man3c/fopen.3c +++ b/usr/src/man/man3c/fopen.3c @@ -1,4 +1,5 @@ '\" te +.\" Copyright 2014 Nexenta Systems, Inc. All rights reserved. .\" Copyright 1989 AT&T. .\" Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved. .\" Portions Copyright (c) 1992, X/Open Company Limited. All Rights Reserved. @@ -11,7 +12,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 "Nov 06, 2013" +.TH FOPEN 3C "Nov 24, 2014" .SH NAME fopen \- open a stream .SH SYNOPSIS @@ -23,7 +24,6 @@ fopen \- open a stream .fi .SH DESCRIPTION -.sp .LP The \fBfopen()\fR function opens the file whose pathname is the string pointed to by \fIfilename\fR, and associates a stream with it. @@ -131,13 +131,13 @@ to refer to an interactive device. The error and end-of-file indicators for the stream are cleared. .sp .LP -If \fImode\fR begins with \fIw\fR or \fBa\fR and the file did not previously +If \fImode\fR begins with \fBw\fR or \fBa\fR and the file did not previously exist, upon successful completion, \fBfopen()\fR function will mark for update the \fBst_atime\fR, \fBst_ctime\fR and \fBst_mtime\fR fields of the file and the \fBst_ctime\fR and \fBst_mtime\fR fields of the parent directory. .sp .LP -If \fImode\fR begins with \fIw\fR and the file did previously exist, upon +If \fImode\fR begins with \fBw\fR and the file did previously exist, upon successful completion, \fBfopen()\fR will mark for update the \fBst_ctime\fR and \fBst_mtime\fR fields of the file. The \fBfopen()\fR function will allocate a file descriptor as \fBopen\fR(2) does. @@ -165,7 +165,6 @@ The largest value that can be represented correctly in an object of type \fBoff_t\fR will be established as the offset maximum in the open file description. .SH RETURN VALUES -.sp .LP Upon successful completion, \fBfopen()\fR returns a pointer to the object controlling the stream. Otherwise, a null pointer is returned and \fBerrno\fR @@ -175,7 +174,6 @@ is set to indicate the error. The \fBfopen()\fR function may fail and not set \fBerrno\fR if there are no free \fBstdio\fR streams. .SH ERRORS -.sp .LP The \fBfopen()\fR function will fail if: .sp @@ -358,7 +356,6 @@ The file is a pure procedure (shared text) file that is being executed and .RE .SH USAGE -.sp .LP A process is allowed to have at least {\fBFOPEN_MAX\fR} \fBstdio\fR streams open at a time. For 32-bit applications, however, the underlying ABIs formerly @@ -383,7 +380,6 @@ access \fBFILE\fR structure contents. The \fBfopen()\fR function has a transitional interface for 64-bit file offsets. See \fBlf64\fR(5). .SH ATTRIBUTES -.sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp @@ -405,7 +401,6 @@ MT-Level MT-Safe The \fBF\fR character in the \fImode\fR argument is Evolving. In all other respects this function is Standard. .SH SEE ALSO -.sp .LP \fBenable_extended_FILE_stdio\fR(3C), \fBfclose\fR(3C), \fBfdopen\fR(3C), \fBfflush\fR(3C), \fBfreopen\fR(3C), \fBfsetpos\fR(3C), \fBrewind\fR(3C), |
