Public Comment Number PC-UK0134 ISO/IEC CD 9899 (SC22N2620) Public Comment =========================================== Date: 1998-02-25 Author: N.M Maclaren Author Affiliation: Self Postal Address: University of Cambridge, Computer Laboratory, New Museums Site, Pembroke Street, Cambridge CB3 3QG, United Kingdom E-mail Address: Telephone Number: +44 1223 334761 Fax Number: +44 1223 334679 Number of individual comments: 1 Comment 1. Category: Normative change to existing feature retaining the original intent Committee Draft subsection: 7.6.4.1, 7.6.4.3, 7.6.4.4 Title: fegetenv, fesetenv and feupdateenv are often unimplementable Detailed description: These are unimplementable on many systems without system privilege (and sometimes not even then). While most systems that have the concept of a floating-point environment allow it to be interrogated, many do not allow it to be set to an arbitrary state by unprivileged code. Note that this differs from the exception flags, which are almost invariably resettable when they exist (though even that is not guaranteed.) I suggest changing the return type from void to int in all three of these, and adding the following paragraph (with the obvious variations): Returns The fe...env function returns zero if and only the floating-point environment was successfully stored/installed.