Skip to contentSkip to conversation

localeconv.3: Add description of the function is not thread-safe

PATCH New Peng Haitao 1 participant 1 message Dec 23, 2010 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 localeconv.3: Add description of the function is not thread-safe

Hi Michael,

The function "localeconv" returns a pointer to a structure which might be overwritten by subsequent calls to localeconv' or by calls to setlocale', so it is not thread-safe.

---
 man3/localeconv.3 |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
man3/localeconv.3 +8 -1
index 7b6a1da..86b2624 100644
@@ -21,7 +21,7 @@
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" License.
 .\" Modified Sat Jul 24 19:01:20 1993 by Rik Faith ([email protected])
-.TH LOCALECONV 3  1993-04-25 "GNU" "Linux Programmer's Manual"
+.TH LOCALECONV 3  2010-12-23 "GNU" "Linux Programmer's Manual"
 .SH NAME
 localeconv \- get numeric formatting information
 .SH SYNOPSIS
@@ -47,6 +47,13 @@ Programs may also use the functions
 and
 .BR strfmon (3),
 which behave according to the actual locale in use.
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR localeconv ()
+function is not thread-safe, since it returns a pointer to a structure which
+might be overwritten by subsequent calls to `localeconv' or by calls to
+`setlocale'.
 .SH "CONFORMING TO"
 C89, C99.
 .SH BUGS
Signature · 11 lines
1.7.0.1


-- 
Best Regards,
Peng Haitao

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html