diff options
Diffstat (limited to 'usr/src/man/man3c')
-rw-r--r-- | usr/src/man/man3c/err.3c | 9 |
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) |