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: Thu, 31 Jul 2008 16:02:50 +0200 Message-ID: <4891C60A.5000103@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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 > 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. Cheers, Michael http://sources.redhat.com/bugzilla/show_bug.cgi?id=6759 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6776 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6777 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6778 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6779 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6780 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6781 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6782 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6783 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6783 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6783 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6785 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6786 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6787 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6788 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6792 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6793 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6794 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6795 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6796 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6797 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6798 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6799 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6801 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6801 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6803 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6803 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6804 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6805 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6806 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6807 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6808 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6809 http://sources.redhat.com/bugzilla/show_bug.cgi?id=6810 -- 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