summaryrefslogtreecommitdiff
path: root/usr/src/man/man3c
diff options
context:
space:
mode:
authorMarcel Telka <marcel.telka@nexenta.com>2014-11-24 20:59:25 +0100
committerDan McDonald <danmcd@omniti.com>2014-11-24 16:41:14 -0500
commit56df543bd1506bfa8639c4f131c22460558bf4af (patch)
tree5eb2503ef6385e82ccfba025f2e7f4201434fa3c /usr/src/man/man3c
parentc7b6bf90757979f50e793af7ea98d3120668214f (diff)
downloadillumos-gate-56df543bd1506bfa8639c4f131c22460558bf4af.tar.gz
3833 err(3c): 'status' should be changed to 'eval'
Reviewed by: Richard Lowe <richlowe@richlowe.net> Reviewed by: Gordon Ross <gordon.ross@nexenta.com> Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com> Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/man/man3c')
-rw-r--r--usr/src/man/man3c/err.3c9
1 files changed, 3 insertions, 6 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)