fmtmsg(5) fmtmsg(5)
NAME
fmtmsg - message display structures
SYNOPSIS
#include <fmtmsg.h>
DESCRIPTION
The <fmtmsg.h> header defines the following macros, which expand to
constant integral expressions:
MMHARD Source of the condition is hardware.
MMSOFT Source of the condition is software.
MMFIRM Source of the condition is firmware.
MMAPPL Condition detected by application.
MMUTIL Condition detected by utility.
MMOPSYS Condition detected by operating system.
MMRECOVER Recoverable error.
MMNRECOV Non-recoverable error.
MMHALT Error causing application to halt.
MMERROR Application has encountered a non-fatal fault.
MMWARNING Application has detected unusual non-error condition.
MMINFO Informative message.
MMNOSEV No severity level provided for the message.
MMPRINT Display message on standard error.
MMCONSOLE Display message on system console.
The table below indicates the null values and identifiers for fmtmsg()
arguments. The <fmtmsg.h> header defines the macros in the Identifier
column, which expand to constant expressions that expand to expres-
sions of the type indicated in the Type column:
Argument Type Null-Value Identifier
_____________________________________________
label char* (char*)0 MMNULLLBL
severity int 0 MMNULLSEV
class long int 0L MMNULLMC
text char* (char*)0 MMNULLTXT
action char* (char*)0 MMNULLACT
tag char* (char*)0 MMNULLTAG
Page 1 Reliant UNIX 5.44 Printed 11/98
fmtmsg(5) fmtmsg(5)
The <fmtmsg.h> header also defines the following macros for use as
return values for fmtmsg(3C):
MMOK The function succeeded.
MMNOTOK The function failed completely.
MMNOMSG The function was unable to generate a message on stan-
dard error, but otherwise succeeded.
MMNOCON The function was unable to generate a console message,
but otherwise succeeded.
The following is declared as a function and may also be defined as a
macro:
int fmtmsg(long classification, const char *label, int severity,
const char *text, const char *action, const char *tag);
SEE ALSO
fmtmsg(3C).
Page 2 Reliant UNIX 5.44 Printed 11/98