This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Thread-, Signal- and Cancellation-safety documentation
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: OndÅej BÃlka <neleai at seznam dot cz>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 17 May 2013 12:15:26 -0300
- Subject: Re: Thread-, Signal- and Cancellation-safety documentation
- References: <orppym7okv dot fsf at livre dot home> <20130326072338 dot GA7548 at domone dot kolej dot mff dot cuni dot cz>
On Mar 26, 2013, OndÅej BÃlka <neleai@seznam.cz> wrote:
> On Tue, Mar 26, 2013 at 01:49:20AM -0300, Alexandre Oliva wrote:
>> @deftypefun int fesetround (int @var{round})
>> +@safety{@mtsafe{FIXME: unsafe ppc-nofpu-sim}@assafe{}@acsafe{}}
>> Changes the currently selected rounding mode to @var{round}. If
>> @var{round} does not correspond to one of the supported rounding modes
>> nothing is changed. @code{fesetround} returns zero if it changed the
> Documentation does not say if state is thread local or not. C11 says it
> should be thread local.
POSIX also states each thread has its own FP environment.
> Could we document it is always thread local or are incompatible
> implementations in the wild?
The only incompatible implementation I'm aware of is the ppc-nofpu
emulation.
--
Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/ FSF Latin America board member
Free Software Evangelist Red Hat Brazil Compiler Engineer