This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Consensus on MT-, AS- and AC-Safety docs.


On Fri, 22 Nov 2013, Alexandre Oliva wrote:

> And what is it that makes it better than e.g. fpenv?  Not to mention

You could say fenv, as that's a standard abbreviation in the name of the 
standard header <fenv.h>.  But not a made-up non-standard non-word such as 
fpresenv.

> that both are *equally* insufficient *and* misleading in conveying
> information about what the problem is: that the function modifies the
> floating point environment but does not restore it, but signal handlers
> ought to restore it, so callers should beware.

Both reading it and writing it are problematic in signal handlers.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]