Open System Services Library Calls Reference Manual (G06.27+, H06.04+)

fmtmsg(3) OSS Library Calls Reference Manual
NAME
fmtmsg - Displays message on standard error or system console in specied format
LIBRARY
G-series native OSS processes: /G/system/sysnn/zosshsrl
H-series OSS processes: /G/system/zdllnnn/zosshdll
SYNOPSIS
#include <fmtmsg.h>
int fmtmsg(
long classication,
const char *label,
int severity,
const char *text,
const char *action,
const char *tag);
PARAMETERS
classification Identies the source of the message and tells how to display the message.
label Is a pointer to a string that gives the source of the message.
severity Is the severity of the condition that prompted the message.
text Is a pointer to a string that describes the condition encountered.
action Is a pointer to a string that describes the rst step of error recovery.
tag Is a pointer to an identier that references online documentation.
DESCRIPTION
The fmtmsg() function displays a message using the specied format. This is an alternative to
printf(). Based on the value of the classication parameter, the message is written to the stan-
dard error, the console, or both.
The formatted message is specied as the following parameters:
classification Consists of identiers from the following groups of major classications and
subclasses. An identier from one subclass can be combined with one identier
from a different subclass. No more than one identier from a single subclass
should be included, with the exception of the display subclass.
Major Classifications
Identies the conditions source. It can be one of MM_HARD (hardware),
MM_SOFT (software), or MM_FIRM (rmware).
Message Source Subclass
Identies the software type in which the condition was detected. It can be one of
MM_APPL (application), MM_UTIL (utility), or MM_OPSYS (operating sys-
tem).
Display Subclass
Identies where to display the message. It can be one or both of MM_PRINT
(standard error) or MM_CONSOLE (system console).
246 Hewlett-Packard Company 527187-004