linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* manpages-dev: please note thread safeness of %m in vfprintf(3)
@ 2015-03-07 10:38 Stéphane Aulery
       [not found] ` <20150307103821.GA2043-GANU6spQydw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Stéphane Aulery @ 2015-03-07 10:38 UTC (permalink / raw)
  To: Ma Shimiao, linux-man-u79uwXL29TY76Z2rM5mHXA
  Cc: Michael Kerrisk, 621057-forwarded-61a8vm9lEZVf4u+23C9RwQ

Hello Ma Shimiao,

A Debian user has applied to mention that strerror_r(3) is thread safe.

I quote his message [1]:

> Frome Martin Godisch <martin-AOktpf5JBruELgA04lAiVw@public.gmane.org>, Wed, 6 Apr 2011 09:30:30 +0200
> 
> Please add a note to vfprintf(3) telling users that the %m conversion
> specifier is thread safe.
>
> Rationale: errno(3) is thread local, strerror_r(3) is thread safe, and
> vfprintf(3) uses errno and strerror_r (in
> eglibc-2.11.2/stdio-common/vfprintf.c:974).

This is your area, it may interest you.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=621057

Regards,

-- 
Stéphane Aulery
--
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	[flat|nested] 4+ messages in thread

* Re: manpages-dev: please note thread safeness of %m in vfprintf(3)
       [not found] ` <20150307103821.GA2043-GANU6spQydw@public.gmane.org>
@ 2015-03-09  6:20   ` Ma Shimiao
       [not found]     ` <54FD3B97.5050400-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Ma Shimiao @ 2015-03-09  6:20 UTC (permalink / raw)
  To: Stéphane Aulery, linux-man-u79uwXL29TY76Z2rM5mHXA
  Cc: Michael Kerrisk, 621057-forwarded-61a8vm9lEZVf4u+23C9RwQ

Hello Stéphane,

On 03/07/2015 06:38 PM, Stéphane Aulery wrote:
> Hello Ma Shimiao,
> 
> A Debian user has applied to mention that strerror_r(3) is thread safe.
> 
> I quote his message [1]:
> 
>> Frome Martin Godisch <martin-AOktpf5JBruELgA04lAiVw@public.gmane.org>, Wed, 6 Apr 2011 09:30:30 +0200
>>
>> Please add a note to vfprintf(3) telling users that the %m conversion
>> specifier is thread safe.

I'm not sure why he need a note to indicate that the %m conversion specifier 
is thread safe.
From our research and glibc's document, vfprintf(3) is thread safe except when users pass float formatting,
custom formatting or single quota may cause locale dependency problem.
And I'm going to add thread safety information of vfprintf() into printf.3.
If there is something special about %m, we'd like to know.
And I'm willing to add it.

Best regards,
>>
>> Rationale: errno(3) is thread local, strerror_r(3) is thread safe, and
>> vfprintf(3) uses errno and strerror_r (in
>> eglibc-2.11.2/stdio-common/vfprintf.c:974).
> 
> This is your area, it may interest you.
> 
> [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=621057
> 
> Regards,
> 


-- 
Ma Shimiao
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
--
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	[flat|nested] 4+ messages in thread

* Re: manpages-dev: please note thread safeness of %m in vfprintf(3)
       [not found]     ` <54FD3B97.5050400-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
@ 2015-03-09  7:47       ` Stéphane Aulery
       [not found]         ` <20150309074735.GA1144-GANU6spQydw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Stéphane Aulery @ 2015-03-09  7:47 UTC (permalink / raw)
  To: Ma Shimiao
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, Michael Kerrisk,
	621057-forwarded-61a8vm9lEZVf4u+23C9RwQ

Hello Ma Shimiao,

Le lundi 09 mars 2015 à 02:20:07, Ma Shimiao a écrit :
> 
> On 03/07/2015 06:38 PM, Stéphane Aulery wrote:
> > 
> > A Debian user has applied to mention that strerror_r(3) is thread safe.
> > 
> >> Frome Martin Godisch <martin-AOktpf5JBruELgA04lAiVw@public.gmane.org>, Wed, 6 Apr 2011 09:30:30 +0200
> >>
> >> Please add a note to vfprintf(3) telling users that the %m conversion
> >> specifier is thread safe.
> 
> I'm not sure why he need a note to indicate that the %m conversion specifier 
> is thread safe.
> From our research and glibc's document, vfprintf(3) is thread safe except when users pass float formatting,
> custom formatting or single quota may cause locale dependency problem.
> And I'm going to add thread safety information of vfprintf() into printf.3.
> If there is something special about %m, we'd like to know.
> And I'm willing to add it.

I will send you answer to Martin Godisch, but I don't think there is something
special. I will wait your patch before closing this bug.

Thanks.

Regards,

-- 
Stéphane Aulery
--
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	[flat|nested] 4+ messages in thread

* Re: manpages-dev: please note thread safeness of %m in vfprintf(3)
       [not found]         ` <20150309074735.GA1144-GANU6spQydw@public.gmane.org>
@ 2015-03-09  8:23           ` Ma Shimiao
  0 siblings, 0 replies; 4+ messages in thread
From: Ma Shimiao @ 2015-03-09  8:23 UTC (permalink / raw)
  To: Stéphane Aulery
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, Michael Kerrisk,
	621057-forwarded-61a8vm9lEZVf4u+23C9RwQ

Hi Stéphane,

On 03/09/2015 03:47 PM, Stéphane Aulery wrote:
> Hello Ma Shimiao,
> 
> Le lundi 09 mars 2015 à 02:20:07, Ma Shimiao a écrit :
>>
>> On 03/07/2015 06:38 PM, Stéphane Aulery wrote:
>>>
>>> A Debian user has applied to mention that strerror_r(3) is thread safe.
>>>
>>>> Frome Martin Godisch <martin-AOktpf5JBruELgA04lAiVw@public.gmane.org>, Wed, 6 Apr 2011 09:30:30 +0200
>>>>
>>>> Please add a note to vfprintf(3) telling users that the %m conversion
>>>> specifier is thread safe.
>>
>> I'm not sure why he need a note to indicate that the %m conversion specifier 
>> is thread safe.
>> From our research and glibc's document, vfprintf(3) is thread safe except when users pass float formatting,
>> custom formatting or single quota may cause locale dependency problem.
>> And I'm going to add thread safety information of vfprintf() into printf.3.
>> If there is something special about %m, we'd like to know.
>> And I'm willing to add it.
> 
> I will send you answer to Martin Godisch, but I don't think there is something
> special. I will wait your patch before closing this bug.

OK. I will send my patch as soon as possible.

Best regards,
> 
> Thanks.
> 
> Regards,
> 


-- 
Ma Shimiao
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
--
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	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-03-09  8:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-07 10:38 manpages-dev: please note thread safeness of %m in vfprintf(3) Stéphane Aulery
     [not found] ` <20150307103821.GA2043-GANU6spQydw@public.gmane.org>
2015-03-09  6:20   ` Ma Shimiao
     [not found]     ` <54FD3B97.5050400-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2015-03-09  7:47       ` Stéphane Aulery
     [not found]         ` <20150309074735.GA1144-GANU6spQydw@public.gmane.org>
2015-03-09  8:23           ` Ma Shimiao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).