public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* Report bugs for variations in error handling in math functions?
@ 2008-07-25 10:14 Michael Kerrisk
       [not found] ` <cfd18e0f0807250314h5c063754gd672c04b2eeef2f6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Kerrisk @ 2008-07-25 10:14 UTC (permalink / raw)
  To: libc-alpha-9JcytcrH/bA+uJoB2kUjGw
  Cc: Andreas Jaeger, Andries Brouwer, linux-man-u79uwXL29TY76Z2rM5mHXA

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
--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-08-06  9:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-25 10:14 Report bugs for variations in error handling in math functions? Michael Kerrisk
     [not found] ` <cfd18e0f0807250314h5c063754gd672c04b2eeef2f6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-07-25 15:43   ` Joseph S. Myers
     [not found]     ` <Pine.LNX.4.64.0807251535040.7701-9YEB1lltEqivcGRMvF24k2I39yigxGEX@public.gmane.org>
2008-07-25 15:53       ` Michael Kerrisk
     [not found]         ` <cfd18e0f0807250853q636b8d2dx8cefd53bc672b7a9-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-07-25 17:06           ` Joseph S. Myers
2008-07-28  5:54       ` Michael Kerrisk
     [not found]         ` <cfd18e0f0807272254k54343bc3pdddde9afca423eec-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-07-28 17:05           ` Joseph S. Myers
2008-07-31 14:02       ` Michael Kerrisk
     [not found]         ` <4891C60A.5000103-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-08-04  5:48           ` Michael Kerrisk
     [not found]             ` <cfd18e0f0808032248l3f9d7ef4r2af2a989da4d9eb9-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-08-06  9:27               ` Michael Kerrisk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox