fmtmsg.h(7POSIX)
π fmtmsg.h β message display structures π
okay bestie, gather round, because we're reading the fmtmsg.h page from the POSIX Programmer's Manual (that's the <fmtmsg.h> header, section 7POSIX, and it's literally all about message display structures). pull up a chair, this one's short but it's got LORE π«Ά
πΈ PROLOG πΈ
okay so before we even get into it, real talk: this manual page is part of the POSIX Programmer's Manual. the Linux implementation of this interface may differ β so if you're on Linux, go consult the corresponding Linux manual page for details of Linux behavior. OR the interface may just... not be implemented on Linux at all. π yeah. read the room.
β¨ NAME β¨
fmtmsg.h β message display structures. that's it, that's the whole vibe. it's giving header file with main character energy. π
π SYNOPSIS π
#include <fmtmsg.h>
that's the whole thing. include it and you're in. periodt. π
π¦ DESCRIPTION π¦
so the <fmtmsg.h> header shall define the following symbolic constants, and bestie, we are listing ALL of them, no skips, no crumbs:
MM_HARDβ the source of the condition is hardware. like, the physical stuff. it's giving melted motherboard. π₯MM_SOFTβ the source of the condition is software. yes, the code. yes, probably yours. πMM_FIRMβ the source of the condition is firmware. the mysterious in-between. spooky. β¨MM_APPLβ condition detected by application.MM_UTILβ condition detected by utility.MM_OPSYSβ condition detected by operating system. the OS did this. not you. (it was maybe you.)MM_RECOVERβ recoverable error. we bounce back. πͺMM_NRECOVβ non-recoverable error. we do NOT bounce back. πMM_HALTβ error causing application to halt. rip bestie, it's over.MM_ERRORβ the application has encountered a non-fatal fault.MM_WARNINGβ the application has detected an unusual non-error condition. lowkey suspicious but not an error. π€¨MM_INFOβ informative message. just chatting. πMM_NOSEVβ no severity level provided for the message. the severity is... unspecified. mystery box. πMM_PRINTβ display message on standard error.MM_CONSOLEβ display message on system console.
okay now the table part, but we're doing it as a list because tables are not the vibe here. the table below indicates the null values and identifiers for fmtmsg() arguments, and the <fmtmsg.h> header shall define the symbolic constants in the Identifier column, which shall have the type indicated in the Type column:
- argument
labelβ typechar *, null-value(char*)0, identifierMM_NULLLBL - argument
severityβ typeint, null-value0, identifierMM_NULLSEV - argument
classβ typelong, null-value0L, identifierMM_NULLMC - argument
textβ typechar *, null-value(char*)0, identifierMM_NULLTXT - argument
actionβ typechar *, null-value(char*)0, identifierMM_NULLACT - argument
tagβ typechar *, null-value(char*)0, identifierMM_NULLTAG
and the <fmtmsg.h> header shall also define the following symbolic constants for use as return values for fmtmsg():
MM_OKβ the function succeeded. slay. βMM_NOTOKβ the function failed completely. not slay. πMM_NOMSGβ the function was unable to generate a message on standard error, but otherwise succeeded. partial win, we take those. π«ΆMM_NOCONβ the function was unable to generate a console message, but otherwise succeeded. also partial win. π«Ά
and then, the moment you've been waiting for: the following shall be declared as a function and may also be defined as a macro. a function prototype shall be provided. here it is, verbatim, don't touch it:
int fmtmsg(long, const char *, int,
const char *, const char *, const char *);
heads up bestie: the following sections are informative. meaning they're not normative requirements, they're just... here. being informative. β¨
π APPLICATION USAGE π
None. nothing. zero. the section is empty. we love a minimalist queen. π
π RATIONALE π
None. again nothing. the rationale said "no thoughts, head empty". π
π§ FUTURE DIRECTIONS π§
None. no plans. no changes coming. we stay exactly as we are. iconic behavior honestly. π
π₯ SEE ALSO π₯
- The System Interfaces volume of POSIX.1β2017,
fmtmsg()β go read that one too, that's where the actual function lives. iykyk. π«Ά
π COPYRIGHT π
okay legal bestie moment, but it matters, so here we go:
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 .
and that's the whole page, bestie!! ππβ¨ this iconic little number comes to you from IEEE/The Open Group, 2017 β fmtmsg.h(7POSIX). now go forth and display messages responsibly. love u, bye!! π¦π
πΈ
π¦ where this page comes from
- debian bookworm: manpages-posix-dev 2017a-2 Β· Other
- debian trixie: manpages-posix-dev 2017a-2 Β· Other
- ubuntu jammy: manpages-posix-dev 2017a-2 Β· Other
- ubuntu noble: manpages-posix-dev 2017a-2 Β· Other
- ubuntu resolute: manpages-posix-dev 2017a-2build1 Β· Other
- ubuntu stonking: manpages-posix-dev 2017a-2.1 Β· Other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms