Merge commit 'b31320a79e2054c6739b5229259dbf98f3afc547' into merges
[unleashed.git] / share / man / man3head / fmtmsg.h.3head
blobe670a2da8762985502fc43b33b4c3d000e1e3c62
1 '\" te
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"
11 .SH NAME
12 fmtmsg.h, fmtmsg \- message display structures
13 .SH SYNOPSIS
14 .LP
15 .nf
16 #include <\fBfmtmsg.h\fR>
17 .fi
19 .SH DESCRIPTION
20 .sp
21 .LP
22 The <\fBfmtmsg.h\fR> header defines the following macros, which expand to
23 constant integer expressions:
24 .sp
25 .ne 2
26 .na
27 \fB\fBMM_HARD\fR\fR
28 .ad
29 .RS 14n
30 Source of the condition is hardware.
31 .RE
33 .sp
34 .ne 2
35 .na
36 \fB\fBMM_SOFT\fR\fR
37 .ad
38 .RS 14n
39 Source of the condition is software.
40 .RE
42 .sp
43 .ne 2
44 .na
45 \fB\fBMM_FIRM\fR\fR
46 .ad
47 .RS 14n
48 Source of the condition is firmware.
49 .RE
51 .sp
52 .ne 2
53 .na
54 \fB\fBMM_APPL\fR\fR
55 .ad
56 .RS 14n
57 Condition detected by application.
58 .RE
60 .sp
61 .ne 2
62 .na
63 \fB\fBMM_UTIL\fR\fR
64 .ad
65 .RS 14n
66 Condition detected by utility.
67 .RE
69 .sp
70 .ne 2
71 .na
72 \fB\fBMM_OPSYS\fR\fR
73 .ad
74 .RS 14n
75 Condition detected by operating system.
76 .RE
78 .sp
79 .ne 2
80 .na
81 \fB\fBMM_RECOVER\fR\fR
82 .ad
83 .RS 14n
84 Recoverable error.
85 .RE
87 .sp
88 .ne 2
89 .na
90 \fB\fBMM_NRECOV\fR\fR
91 .ad
92 .RS 14n
93 Non-recoverable error.
94 .RE
96 .sp
97 .ne 2
98 .na
99 \fB\fBMM_HALT\fR\fR
101 .RS 14n
102 Error causing application to halt.
106 .ne 2
108 \fB\fBMM_ERROR\fR\fR
110 .RS 14n
111 Application has encountered a non-fatal fault.
115 .ne 2
117 \fB\fBMM_WARNING\fR\fR
119 .RS 14n
120 Application has detected unusual non-error condition.
124 .ne 2
126 \fB\fBMM_INFO\fR\fR
128 .RS 14n
129 Informative message.
133 .ne 2
135 \fB\fBMM_NOSEV\fR\fR
137 .RS 14n
138 No severity level provided for the message.
142 .ne 2
144 \fB\fBMM_PRINT\fR\fR
146 .RS 14n
147 Display message on standard error.
151 .ne 2
153 \fB\fBMM_CONSOLE\fR\fR
155 .RS 14n
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:
169 l l l l
170 l l l l .
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:
185 .ne 2
187 \fB\fBMM_OK\fR\fR
189 .RS 12n
190 The function succeeded.
194 .ne 2
196 \fB\fBMM_NOTOK\fR\fR
198 .RS 12n
199 The function failed completely.
203 .ne 2
205 \fB\fBMM_NOMSG\fR\fR
207 .RS 12n
208 The function was unable to generate a message on standard error, but otherwise
209 succeeded.
213 .ne 2
215 \fB\fBMM_NOCON\fR\fR
217 .RS 12n
218 The function was unable to generate a console message, but otherwise succeeded.
221 .SH ATTRIBUTES
224 See \fBattributes\fR(5) for descriptions of the following attributes:
229 box;
230 c | c
231 l | l .
232 ATTRIBUTE TYPE  ATTRIBUTE VALUE
234 Interface Stability     Standard
237 .SH SEE ALSO
240 \fBfmtmsg\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5)