Date: Mon, 24 Jul 1995 05:38:50 +1000 From: Bruce Evans <bde@zeta.org.au> To: graichen@sirius.physik.fu-berlin.de, hackers@freebsd.org Subject: Re: man-pages ... Message-ID: <199507231938.FAA20837@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>i think we need some manpages for: >* matherr(3) - can somebody who knows how this function works write a page for >it (or maybe adapt a sun page) I'm surprised to see that we have it. It is currently broken (not even reachable). It allows you to replace the default error handling for the standard math functions by your own error handling. Unfortunately the default error handling forgets the correct (IEEE) return value and there is no reasonable way to recover. Forgetting the return value also breaks normal (IEEEish) error handling, e.g., acos(2.0) is 0 instead of NaN. The default error handling is actually unreachable because lib/msun is compiled with the wrong CFLAGS (should be CFLAGS += -D_POSIX_MODE). Math functions normally never return an error because in FreeBSD math errors normally generate a fatal SIGFPE. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199507231938.FAA20837>