I'm porting some BSD code to CentOS, and I find that the standard function fpsetmask() found in ieeefp.h has been used in the code.
I'm not yet aware of this function's behaviour, but is there a linux equivalent of this? Or should I create something that emulates this on linux?
I think the feraiseexcept() function is the equivalent – for details, look at the “Exception handling” subsection of its manpage.
According to the fpsetmask() manpage, the mapping of the individual flags is as follows:
Do remember that this is probably x87-only.