On 07/15/2017 07:23 AM, Alex Henrie wrote: > The bug https://www.sourceware.org/bugzilla/show_bug.cgi?id=6792 > was fixed in glibc 2.22. Thanks, Alex. Applied. Cheers, Michael > Signed-off-by: Alex Henrie <alexhenrie24@xxxxxxxxx> > --- > man3/log1p.3 | 34 ++++++++++++++++++++++------------ > 1 file changed, 22 insertions(+), 12 deletions(-) > > diff --git a/man3/log1p.3 b/man3/log1p.3 > index ae647a0d2..a303007be 100644 > --- a/man3/log1p.3 > +++ b/man3/log1p.3 > @@ -115,26 +115,22 @@ when calling these functions. > The following errors can occur: > .TP > Domain error: \fIx\fP is less than \-1 > -.\" .I errno > -.\" is set to > -.\" .BR EDOM . > +.I errno > +is set to > +.BR EDOM > +(but see BUGS). > An invalid floating-point exception > .RB ( FE_INVALID ) > is raised. > .TP > Pole error: \fIx\fP is \-1 > -.\" .I errno > -.\" is set to > -.\" .BR ERANGE . > +.I errno > +is set to > +.BR ERANGE > +(but see BUGS). > A divide-by-zero floating-point exception > .RB ( FE_DIVBYZERO ) > is raised. > -.PP > -These functions do not set > -.IR errno . > -.\" FIXME . Is it intentional that these functions do not set errno? > -.\" log(), log2(), log10() do set errno > -.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6792 > .SH ATTRIBUTES > For an explanation of the terms used in this section, see > .BR attributes (7). > @@ -152,6 +148,20 @@ T} Thread safety MT-Safe > .SH CONFORMING TO > C99, POSIX.1-2001, POSIX.1-2008. > .\" BSD > +.SH BUGS > +Before version 2.22, the glibc implementation did not set > +.\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=6792 > +.I errno > +to > +.B EDOM > +when a domain error occurred. > + > +Before version 2.22, the glibc implementation did not set > +.\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=6792 > +.I errno > +to > +.B ERANGE > +when a range error occurred. > .SH SEE ALSO > .BR exp (3), > .BR expm1 (3), > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html