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 applicationMM_UTILโ condition detected by utilityMM_OPSYSโ condition detected by operating systemMM_RECOVERโ recoverable error (we can fix this, bestie ๐ซถ)MM_NRECOVโ non-recoverable error (it's giving final boss ๐ญ)MM_HALTโ error causing application to haltMM_ERRORโ application has encountered a non-fatal faultMM_WARNINGโ application has detected unusual non-error conditionMM_INFOโ informative messageMM_NOSEVโ no severity level provided for the messageMM_PRINTโ display message on standard errorMM_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_NULLLBLseverityโ Type:int, Null-Value:0, Identifier:MM_NULLSEVclassโ Type:long, Null-Value:0L, Identifier:MM_NULLMCtextโ Type:char *, Null-Value:(char*)0, Identifier:MM_NULLTXTactionโ Type:char *, Null-Value:(char*)0, Identifier:MM_NULLACTtagโ 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 succeededMM_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()
๐ COPYRIGHT ๐
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
- alpine 3.22: man-pages-posix 2017a-r0 ยท custom
- alpine 3.23: man-pages-posix 2017a-r0 ยท custom
- alpine 3.24: man-pages-posix 2017a-r0 ยท custom
- arch rolling: man-pages 6.19-1
- arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages-posix 2017a
- opensuse-leap 16.0: man-pages-posix 2017a-160000.4.1 ยท SUSE-IEEE
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms