From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael Kerrisk" Subject: Re: Report bugs for variations in error handling in math functions? Date: Wed, 6 Aug 2008 11:27:55 +0200 Message-ID: References: <4891C60A.5000103@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "Joseph S. Myers" Cc: Michael Kerrisk , libc-alpha-9JcytcrH/bA+uJoB2kUjGw@public.gmane.org, Andreas Jaeger , Andries Brouwer , linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-man@vger.kernel.org On Mon, Aug 4, 2008 at 7:48 AM, Michael Kerrisk wrote: > On Thu, Jul 31, 2008 at 4:02 PM, Michael Kerrisk > wrote: >>> I think the correct approach is to consider it a bug if functions do not >>> set errno, or do not raise exceptions - that is, all of (b), (c) and (d) are >>> bugs. This would allow math_errhandling to be MATH_ERRNO|MATH_ERREXCEPT >>> unless translation units are compiled with options preventing this, and make >>> the error handling options available consistent across the math.h functions >>> supported by glibc. To conform with C99, at least one approach (errno or >>> exceptions) must be consistently supported across all the functions, in any >>> case. >> >> I've reported bugs for all of the non-conformances I found. > > What I really should have said here is "non-conformances and > deviations from the/my ideal that all errors would be reported both > via errno and exceptions". Anyway, one for the list: > > http://sources.redhat.com/bugzilla/show_bug.cgi?id=6814 A tabular summary of what I found is provided here: http://linux-man-pages.blogspot.com/2008/08/math-functions-and-error-reporting.html 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 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html