]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/nextafter.3
nextafter.3: Since glibc 2.23, these functions do set errno
[thirdparty/man-pages.git] / man3 / nextafter.3
index 723cab7b9ec2844171f9145f31fb01d8eabab857..551da5c9bdae893d02483a2b6d0738bc60a3fd37 100644 (file)
@@ -149,26 +149,21 @@ The following errors can occur:
 .TP
 Range error: result overflow
 .\" e.g., nextafter(DBL_MAX, HUGE_VAL);
-.\" .I errno
-.\" is set to
-.\" .BR ERANGE .
+.I errno
+is set to
+.BR ERANGE .
 An overflow floating-point exception
 .RB ( FE_OVERFLOW )
 is raised.
 .TP
 Range error: result is subnormal or underflows
 .\" e.g., nextafter(DBL_MIN, 0.0);
-.\" .I errno
-.\" is set to
-.\" .BR ERANGE .
+.I errno
+is set to
+.BR ERANGE .
 An underflow floating-point exception
 .RB ( FE_UNDERFLOW )
 is raised.
-.PP
-These functions do not set
-.IR errno .
-.\" FIXME . Is it intentional that these functions do not set errno?
-.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6799
 .SH ATTRIBUTES
 For an explanation of the terms used in this section, see
 .BR attributes (7).
@@ -197,5 +192,10 @@ In glibc version 2.5 and earlier, these functions do not raise an underflow
 floating-point
 .RB ( FE_UNDERFLOW )
 exception when an underflow occurs.
+.SH BUGS
+Before glibc version 2.23
+.\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=6799
+these functions did not set
+.IR errno .
 .SH SEE ALSO
 .BR nearbyint (3)