2 .\" Copyright (c) 2001, The IEEE and The Open Group. All Rights Reserved. Portions Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.
3 .\" 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
4 .\" http://www.opengroup.org/bookstore/.
5 .\" 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.
6 .\" This notice shall appear on any product containing this material.
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.
8 .\" 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.
9 .\" 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]
10 .TH FMTMSG.H 3HEAD "Sep 10, 2004"
12 fmtmsg.h, fmtmsg \- message display structures
16 #include <\fBfmtmsg.h\fR>
22 The <\fBfmtmsg.h\fR> header defines the following macros, which expand to
23 constant integer expressions:
30 Source of the condition is hardware.
39 Source of the condition is software.
48 Source of the condition is firmware.
57 Condition detected by application.
66 Condition detected by utility.
75 Condition detected by operating system.
81 \fB\fBMM_RECOVER\fR\fR
93 Non-recoverable error.
102 Error causing application to halt.
111 Application has encountered a non-fatal fault.
117 \fB\fBMM_WARNING\fR\fR
120 Application has detected unusual non-error condition.
138 No severity level provided for the message.
147 Display message on standard error.
153 \fB\fBMM_CONSOLE\fR\fR
156 Display message on system console.
161 The table below indicates the null values and identifiers for \fBfmtmsg\fR(3C)
162 arguments. The <\fBfmtmsg.h\fR> header defines the macros in the Identifier
163 column, which expand to constant expressions that expand to expressions of the
164 type indicated in the Type column:
171 Argument Type Null-Value Identifier
172 \fIlabel\fR \fBchar*\fR \fB(char*) NULL\fR \fBMM_NULLLBL\fR
173 \fIseverity\fR \fBint\fR \fB0\fR \fBMM_NULLSEV\fR
174 \fIclass\fR \fBlong\fR \fB0L\fR \fBMM_NULLMC\fR
175 \fItext\fR \fBchar*\fR \fB(char*) NULL\fR \fBMM_NULLTXT\fR
176 \fIaction\fR \fBchar*\fR \fB(char*) NULL\fR \fBMM_NULLACT\fR
177 \fItag\fR \fBchar*\fR \fB(char*) NULL\fR \fBMM_NULLTAG\fR
182 The <\fBfmtmsg.h\fR> header also defines the following macros for use as return
183 values for \fBfmtmsg()\fR:
190 The function succeeded.
199 The function failed completely.
208 The function was unable to generate a message on standard error, but otherwise
218 The function was unable to generate a console message, but otherwise succeeded.
224 See \fBattributes\fR(5) for descriptions of the following attributes:
232 ATTRIBUTE TYPE ATTRIBUTE VALUE
234 Interface Stability Standard
240 \fBfmtmsg\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5)