From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael Kerrisk (man-pages)" Subject: Re: [PATCH] wctomb.3: ATTRIBUTES: Note function that is not thread-safe Date: Fri, 13 Sep 2013 06:42:23 +0200 Message-ID: <523297AF.5010301@gmail.com> References: <1378710782-22523-1-git-send-email-penght@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1378710782-22523-1-git-send-email-penght-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org> Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Peng Haitao Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, carlos-v2tUB8YBRSi3e3T8WW9gsA@public.gmane.org, aoliva-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-man@vger.kernel.org Thanks! Applied. Cheers, Michael On 09.09.2013 09:13, Peng Haitao wrote: > The function wctomb() is not thread safe. > > Signed-off-by: Peng Haitao > --- > man3/wctomb.3 | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/man3/wctomb.3 b/man3/wctomb.3 > index e8684e4..389c59f 100644 > --- a/man3/wctomb.3 > +++ b/man3/wctomb.3 > @@ -13,7 +13,7 @@ > .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html > .\" ISO/IEC 9899:1999 > .\" > -.TH WCTOMB 3 1999-07-25 "GNU" "Linux Programmer's Manual" > +.TH WCTOMB 3 2013-09-09 "GNU" "Linux Programmer's Manual" > .SH NAME > wctomb \- convert a wide character to a multibyte sequence > .SH SYNOPSIS > @@ -81,6 +81,11 @@ is NULL, the > .BR wctomb () > function returns nonzero if the > encoding has nontrivial shift state, or zero if the encoding is stateless. > +.SH ATTRIBUTES > +.SS Multithreading (see pthreads(7)) > +The > +.BR wctomb () > +function is not thread-safe. > .SH CONFORMING TO > C99. > .SH NOTES > @@ -91,7 +96,6 @@ depends on the > category of the > current locale. > .PP > -This function is not multithread safe. > The function > .BR wcrtomb (3) > provides > -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html