summaryrefslogtreecommitdiffstats
path: root/man3/fmtmsg.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/fmtmsg.3')
-rw-r--r--man3/fmtmsg.344
1 files changed, 22 insertions, 22 deletions
diff --git a/man3/fmtmsg.3 b/man3/fmtmsg.3
index e497c98d3..1ed982487 100644
--- a/man3/fmtmsg.3
+++ b/man3/fmtmsg.3
@@ -9,7 +9,7 @@
.\" The function is quite complex and deserves an example
.\"
.\" Polished, aeb, 2003-11-01
-.TH fmtmsg 3 2023-02-05 "Linux man-pages 6.03"
+.TH fmtmsg 3 2023-07-20 "Linux man-pages 6.05.01"
.SH NAME
fmtmsg \- print formatted error messages
.SH LIBRARY
@@ -218,28 +218,25 @@ any of the predefined classes.
The printstring
is the string printed when a message of this class is processed by
.BR fmtmsg ().
-.SH VERSIONS
-.BR fmtmsg ()
-is provided since glibc 2.1.
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
.BR attributes (7).
-.ad l
-.nh
.TS
allbox;
lb lb lbx
l l l.
Interface Attribute Value
T{
+.na
+.nh
.BR fmtmsg ()
T} Thread safety T{
+.na
+.nh
glibc\ >=\ 2.16: MT-Safe;
glibc\ <\ 2.16: MT-Unsafe
T}
.TE
-.hy
-.ad
.sp 1
.PP
Before glibc 2.16, the
@@ -253,22 +250,25 @@ the
.BR fmtmsg ()
function uses a lock to protect the static variable, so it is thread-safe.
.SH STANDARDS
-The functions
+.TP
.BR fmtmsg ()
-and
-.BR addseverity (3),
-and environment variables
+.TQ
.B MSGVERB
-and
-.B SEV_LEVEL
-come from System V.
-.PP
-The function
+POSIX.1-2008.
+.SH HISTORY
+.TP
.BR fmtmsg ()
-and the environment variable
+System V.
+POSIX.1-2001 and POSIX.1-2008.
+glibc 2.1.
+.TP
.B MSGVERB
-are described in POSIX.1-2001 and POSIX.1-2008.
-.SH NOTES
+System V.
+POSIX.1-2001 and POSIX.1-2008.
+.TP
+.B SEV_LEVEL
+System V.
+.PP
System V and UnixWare man pages tell us that these functions
have been replaced by "pfmt() and addsev()" or by "pfmt(),
vpfmt(), lfmt(), and vlfmt()", and will be removed later.
@@ -278,13 +278,13 @@ vpfmt(), lfmt(), and vlfmt()", and will be removed later.
#include <fmtmsg.h>
#include <stdio.h>
#include <stdlib.h>
-
+\&
int
main(void)
{
long class = MM_PRINT | MM_SOFT | MM_OPSYS | MM_RECOVER;
int err;
-
+\&
err = fmtmsg(class, "util\-linux:mount", MM_ERROR,
"unknown mount option", "See mount(8).",
"util\-linux:mount:017");