From: Marko Myllynen <myllynen-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Peng Haitao <penght-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>,
mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
carlos-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
aoliva-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Subject: Re: [PATCH] iconv.3: Modify thread-safety information
Date: Tue, 14 Oct 2014 12:44:27 +0300 [thread overview]
Message-ID: <543CF07B.9070801@redhat.com> (raw)
In-Reply-To: <1413272397-8505-1-git-send-email-penght-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
Hi,
this looks good to me.
Thanks,
On 2014-10-14 10:39, Peng Haitao wrote:
> 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
>
--
Marko Myllynen
--
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
next prev parent reply other threads:[~2014-10-14 9:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2015-01-19 9:17 ` Michael Kerrisk (man-pages)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=543CF07B.9070801@redhat.com \
--to=myllynen-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=aoliva-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=carlos-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=penght-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.