This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Ping Re: [PATCH] Make bindresvport() function to multithread-safe
- From: Peng Haitao <penght at cn dot fujitsu dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Roland McGrath <roland at hack dot frob dot com>, libc-alpha at sourceware dot org
- Date: Wed, 10 Oct 2012 17:56:38 +0800
- Subject: Re: Ping Re: [PATCH] Make bindresvport() function to multithread-safe
- References: <4F3DED0D.7050504@cn.fujitsu.com> <5051764D.9070908@cn.fujitsu.com> <20120917194421.8FCD02C053@topped-with-meat.com> <5073E081.2040500@cn.fujitsu.com> <m2sj9o80g1.fsf@igel.home> <5074D254.9080308@cn.fujitsu.com> <m2d30q7r6y.fsf@igel.home>
On 10/10/2012 02:54 PM, Andreas Schwab wrote:
> Peng Haitao <penght@cn.fujitsu.com> writes:
>
>> Can you tell me where I find restriction for bindresvport is not used
>> in multithread circumstance?
>
> bindresvport is not specified by POSIX, so it cannot be assumed to be
> thread-safe, unless there is a document stating that.
>
That is, if a function is not specified by POSIX, the function can not
be used in multithread circumstance.
Right?
Or this is a rationale.
--
Best Regards,
Peng