All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iconv.3: Modify thread-safety information
@ 2014-10-14  7:39 Peng Haitao
       [not found] ` <1413272397-8505-1-git-send-email-penght-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Peng Haitao @ 2014-10-14  7:39 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	myllynen-H+wXaHxf7aLQT0dZR+AlfA
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, carlos-H+wXaHxf7aLQT0dZR+AlfA,
	aoliva-H+wXaHxf7aLQT0dZR+AlfA

Signed-off-by: Peng Haitao <penght-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
---
 man3/iconv.3      | 10 ++++++++--
 man3/iconv_open.3 |  2 --
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/man3/iconv.3 b/man3/iconv.3
index 0dfcd7d..7a8d785 100644
--- a/man3/iconv.3
+++ b/man3/iconv.3
@@ -140,7 +140,6 @@ An incomplete multibyte sequence has been encountered in the input.
 .SH VERSIONS
 This function is available in glibc since version 2.1.
 .SH ATTRIBUTES
-.SS Multithreading (see pthreads(7))
 For an explanation of the terms used in this section, see
 .BR attributes (7).
 .TS
@@ -150,8 +149,15 @@ l l l.
 Interface	Attribute	Value
 T{
 .BR iconv ()
-T}	Thread safety	MT-Safe
+T}	Thread safety	MT-Safe race:cd
 .TE
+.PP
+The
+.BR iconv ()
+function is MT-Safe, as long as callers arrange for
+mutual exclusion on the
+.I cd
+argument.
 .SH CONFORMING TO
 POSIX.1-2001.
 .SH NOTES
diff --git a/man3/iconv_open.3 b/man3/iconv_open.3
index 40ceeec..61845ae 100644
--- a/man3/iconv_open.3
+++ b/man3/iconv_open.3
@@ -76,8 +76,6 @@ the state is in the initial state.
 Using
 .BR iconv (3)
 modifies the descriptor's conversion state.
-(This implies that a conversion
-descriptor can not be used in multiple threads simultaneously.)
 To bring the state back to the initial state, use
 .BR iconv (3)
 with NULL as
-- 
1.9.3

--
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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-01-19  9:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-14  7:39 [PATCH] iconv.3: Modify thread-safety information Peng Haitao
     [not found] ` <1413272397-8505-1-git-send-email-penght-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2014-10-14  9:44   ` Marko Myllynen
2015-01-19  9:17   ` Michael Kerrisk (man-pages)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.