Details

[Home]

Issue of the Standard # S0680

Brief

Incomplete set of MM_* constants for fmtmsg() at the LSB

Detailed Description

POSIX description of fmtmsg() and <fmtmsg.h> defines the following set of MM_* constants:

/* Values to be for CLASSIFICATION parameter of `fmtmsg': Major Classifications. */
MM_HARD
MM_SOFT
MM_FIRM

/* Values to be for CLASSIFICATION parameter of `fmtmsg': Message Source Subclassifications. */
MM_APPL
MM_UTIL
MM_OPSYS

/* Values to be for CLASSIFICATION parameter of `fmtmsg': Display Subclassifications. */
MM_PRINT
MM_CONSOLE

/* Values to be for CLASSIFICATION parameter of `fmtmsg': Status Subclassifications. */
MM_RECOVER
MM_NRECOV

/* Values to be for SEVERITY parameter of `fmtmsg'. */
MM_NOSEV
MM_HALT
MM_ERROR
MM_WARNING
MM_INFO

/* Possible return values of `fmtmsg'. */
MM_OK
MM_NOTOK
MM_NOMSG
MM_NOCON

/* Macroses which can be used as null values for the arguments of `fmtmsg'. */
MM_NULLLBL
MM_NULLSEV
MM_NULLMC
MM_NULLTXT
MM_NULLACT
MM_NULLTAG
LSB 3.2 provides only some of the MM_* constants. The following constants are absent:
MM_PRINT
MM_CONSOLE

MM_NULLSEV
MM_NULLMC
MM_NULLTXT
MM_NULLACT
MM_NULLTAG

MM_WARNING
MM_INFO

MM_OK
MM_NOTOK
MM_NOMSG
MM_NOCON
glibc provides all the constants from the very beginning.

Problem location(s) in the standard

Linux Standard Base Core Specification 3.2, Chapter 13. Base Libraries, 13.4. Data Definitions for libc. 13.4.8. fmtmsg.h

Possible solutions

Add the missing constants to the LSB.

Accepted

LSB Bugzilla, 2124

Status

Fixed in LSB 3.2 Update 2

[Home]