1fmtmsg.h(3HEAD)                     Headers                    fmtmsg.h(3HEAD)
2
3
4

NAME

6       fmtmsg.h, fmtmsg - message display structures
7

SYNOPSIS

9       #include <fmtmsg.h>
10
11

DESCRIPTION

13       The  <fmtmsg.h>  header  defines  the following macros, which expand to
14       constant integer expressions:
15
16       MM_HARD       Source of the condition is hardware.
17
18
19       MM_SOFT       Source of the condition is software.
20
21
22       MM_FIRM       Source of the condition is firmware.
23
24
25       MM_APPL       Condition detected by application.
26
27
28       MM_UTIL       Condition detected by utility.
29
30
31       MM_OPSYS      Condition detected by operating system.
32
33
34       MM_RECOVER    Recoverable error.
35
36
37       MM_NRECOV     Non-recoverable error.
38
39
40       MM_HALT       Error causing application to halt.
41
42
43       MM_ERROR      Application has encountered a non-fatal fault.
44
45
46       MM_WARNING    Application has detected unusual non-error condition.
47
48
49       MM_INFO       Informative message.
50
51
52       MM_NOSEV      No severity level provided for the message.
53
54
55       MM_PRINT      Display message on standard error.
56
57
58       MM_CONSOLE    Display message on system console.
59
60
61
62       The  table  below  indicates  the  null  values  and  identifiers   for
63       fmtmsg(3C)  arguments.  The <fmtmsg.h> header defines the macros in the
64       Identifier column, which expand to constant expressions that expand  to
65       expressions of the type indicated in the Type column:
66
67
68
69
70       Argument         Type             Null-Value      Identifier
71       label            char*            (char*) NULL    MM_NULLLBL
72       severity         int              0               MM_NULLSEV
73       class            long             0L              MM_NULLMC
74       text             char*            (char*) NULL    MM_NULLTXT
75       action           char*            (char*) NULL    MM_NULLACT
76       tag              char*            (char*) NULL    MM_NULLTAG
77
78
79
80       The  <fmtmsg.h>  header  also  defines  the following macros for use as
81       return values for fmtmsg():
82
83       MM_OK       The function succeeded.
84
85
86       MM_NOTOK    The function failed completely.
87
88
89       MM_NOMSG    The function was unable to generate a message  on  standard
90                   error, but otherwise succeeded.
91
92
93       MM_NOCON    The  function was unable to generate a console message, but
94                   otherwise succeeded.
95
96

ATTRIBUTES

98       See attributes(5) for descriptions of the following attributes:
99
100
101
102
103       ┌─────────────────────────────┬─────────────────────────────┐
104       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
105       ├─────────────────────────────┼─────────────────────────────┤
106       │Interface Stability          │Standard                     │
107       └─────────────────────────────┴─────────────────────────────┘
108

SEE ALSO

110       fmtmsg(3C), attributes(5), standards(5)
111
112
113
114SunOS 5.11                        10 Sep 2004                  fmtmsg.h(3HEAD)
Impressum