fmtmsg.h(0P)

๐Ÿฆ‹ fmtmsg.h(0P) โ€” message display structures ๐Ÿ’Œ

okay bestie, so this one lives in the POSIX Programmer's Manual (yes, that manual, the 0P girlies know) โœจ

๐ŸŒธ PROLOG ๐ŸŒธ

This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.

not me warning you upfront that Linux might be doing its own little thing here ๐Ÿ’€ the vibes are portable, the behavior is implementation-defined, periodt.

๐Ÿ‘‘ NAME ๐Ÿ‘‘

fmtmsg.h โ€” message display structures


โœจ SYNOPSIS โœจ

#include <fmtmsg.h>

๐Ÿ’– DESCRIPTION ๐Ÿ’–

The <fmtmsg.h> header shall define the following symbolic constants:

  • MM_HARD โ€” source of the condition is hardware ๐Ÿ”ง
  • MM_SOFT โ€” source of the condition is software ๐Ÿ’ป
  • MM_FIRM โ€” source of the condition is firmware ๐Ÿงš
  • MM_APPL โ€” condition detected by application
  • MM_UTIL โ€” condition detected by utility
  • MM_OPSYS โ€” condition detected by operating system
  • MM_RECOVER โ€” recoverable error (we can fix this, bestie ๐Ÿซถ)
  • MM_NRECOV โ€” non-recoverable error (it's giving final boss ๐Ÿ˜ญ)
  • MM_HALT โ€” error causing application to halt
  • MM_ERROR โ€” application has encountered a non-fatal fault
  • MM_WARNING โ€” application has detected unusual non-error condition
  • MM_INFO โ€” informative message
  • MM_NOSEV โ€” no severity level provided for the message
  • MM_PRINT โ€” display message on standard error
  • MM_CONSOLE โ€” display message on system console

The table below indicates the null values and identifiers for fmtmsg() arguments. The <fmtmsg.h> header shall define the symbolic constants in the Identifier column, which shall have the type indicated in the Type column:

  • label โ€” Type: char *, Null-Value: (char*)0, Identifier: MM_NULLLBL
  • severity โ€” Type: int, Null-Value: 0, Identifier: MM_NULLSEV
  • class โ€” Type: long, Null-Value: 0L, Identifier: MM_NULLMC
  • text โ€” Type: char *, Null-Value: (char*)0, Identifier: MM_NULLTXT
  • action โ€” Type: char *, Null-Value: (char*)0, Identifier: MM_NULLACT
  • tag โ€” Type: char *, Null-Value: (char*)0, Identifier: MM_NULLTAG

The <fmtmsg.h> header shall also define the following symbolic constants for use as return values for fmtmsg():

  • MM_OK โ€” the function succeeded ๐ŸŽ‰
  • MM_NOTOK โ€” the function failed completely ๐Ÿ’€
  • MM_NOMSG โ€” the function was unable to generate a message on standard error, but otherwise succeeded
  • MM_NOCON โ€” the function was unable to generate a console message, but otherwise succeeded

The following shall be declared as a function and may also be defined as a macro. A function prototype shall be provided.

int fmtmsg(long, const char *, int,
    const char *, const char *, const char *);

The following sections are informative. (iykyk ๐ŸŽ€)


๐Ÿซถ APPLICATION USAGE ๐Ÿซถ

None.


๐Ÿง  RATIONALE ๐Ÿง 

None.


๐Ÿ”ฎ FUTURE DIRECTIONS ๐Ÿ”ฎ

None.


๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

The System Interfaces volume of POSIX.1โ€2017, fmtmsg()


Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version 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 .

Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .


okay that's the whole page, bestie, and the โœจ cute lil sign-off โœจ at the bottom says this iconic piece of lore is brought to you by IEEE/The Open Group, 2017 โ€” yeah, 2017, she's vintage, she's timeless, she's fmtmsg.h(0P) and she ATE ๐Ÿ’…๐Ÿ‘‘๐ŸŒˆ

๐Ÿ“ฆ where this page comes from