OSDN Git Service

(split) LDP: Update original to LDP v3.52.
[linuxjm/LDP_man-pages.git] / original / man3 / fmtmsg.3
index f4b3d6f..2195ece 100644 (file)
@@ -10,7 +10,7 @@
 .\"  The function is quite complex and deserves an example
 .\"
 .\"  Polished, aeb, 2003-11-01
-.TH FMTMSG 3 2008-06-14 "" "Linux Programmer's Manual"
+.TH FMTMSG 3 2013-06-21 "" "Linux Programmer's Manual"
 .SH NAME
 fmtmsg \- print formatted error messages
 .SH SYNOPSIS
@@ -71,7 +71,7 @@ The values
 .BR MM_NULLACT ,
 .B MM_NULLTAG
 are synonyms for
-.IR "((char *) 0)" ,
+.IR "((char\ *)\ 0)" ,
 the empty string, and
 .B MM_NULLSEV
 is a synonym for
@@ -222,6 +222,18 @@ is the string printed when a message of this class is processed by
 .SH VERSIONS
 .BR fmtmsg ()
 is provided in glibc since version 2.1.
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+Before glibc 2.16, the
+.BR fmtmsg ()
+function uses a static variable that is not protected,
+so it is not thread-safe.
+
+Since glibc 2.16,
+.\" Modified in commit 7724defcf8873116fe4efab256596861eef21a94
+the
+.BR fmtmsg ()
+function uses a lock to protect the static variable, so it is thread-safe.
 .SH CONFORMING TO
 The functions
 .BR fmtmsg ()