This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Report bugs for variations in error handling in math functions?
- From: "Michael Kerrisk" <mtk dot manpages at googlemail dot com>
- To: libc-alpha at sourceware dot org
- Cc: "Andreas Jaeger" <aj at novell dot com>, "Andries Brouwer" <Andries dot Brouwer at cwi dot nl>, linux-man at vger dot kernel dot org
- Date: Fri, 25 Jul 2008 12:14:05 +0200
- Subject: Report bugs for variations in error handling in math functions?
Currently, I'm revising all of the math pages in man-pages, and in the
process testing the error handling (glibc 2.8) for each function.
I find the following:
a) on error, many (probably a majority of) functions set errno AND
raise an exception (fetestexcept()).
b) on error, a very few functions DO set errno but DON"T raise an
exception (fetestexcept()).
c) on error, a few functions DON'T set errno but DO raise an exception
(fetestexcept()).
d) on error, a very few functions pursue a mixture of all of the
above, depending on the error.
A math_error(7) page that I recently wrote (see
http://www.kernel.org/doc/man-pages/online/pages/man7/math_error.7.html
) currently implies that all functions should do a). Clearly I'll
need to amend that.
But the main question is, should I raise glibc bugs for the functions
in cases b), c), and d)?
Cheers,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html
Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html