From efe294cb80ef104c8800c64bd953f87023c16b92 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 4 Aug 2008 16:00:58 +0000 Subject: [PATCH] grfix --- man3/acos.3 | 4 ++-- man3/acosh.3 | 2 +- man3/asin.3 | 2 +- man3/atanh.3 | 4 ++-- man3/ceil.3 | 2 +- man3/cos.3 | 2 +- man3/cosh.3 | 2 +- man3/erf.3 | 2 +- man3/erfc.3 | 2 +- man3/exp.3 | 4 ++-- man3/expm1.3 | 2 +- man3/fdim.3 | 2 +- man3/floor.3 | 2 +- man3/fma.3 | 10 +++++----- man3/fmod.3 | 4 ++-- man3/hypot.3 | 4 ++-- man3/ilogb.3 | 10 +++++----- man3/j0.3 | 2 +- man3/ldexp.3 | 4 ++-- man3/lgamma.3 | 4 ++-- man3/log.3 | 4 ++-- man3/log1p.3 | 4 ++-- man3/logb.3 | 2 +- man3/lrint.3 | 2 +- man3/lround.3 | 2 +- man3/nextafter.3 | 4 ++-- man3/pow.3 | 16 ++++++++-------- man3/remainder.3 | 4 ++-- man3/remquo.3 | 4 ++-- man3/rint.3 | 2 +- man3/round.3 | 2 +- man3/scalb.3 | 8 ++++---- man3/scalbln.3 | 4 ++-- man3/sin.3 | 2 +- man3/sincos.3 | 2 +- man3/sinh.3 | 2 +- man3/sqrt.3 | 2 +- man3/tan.3 | 4 ++-- man3/tgamma.3 | 8 ++++---- man3/y0.3 | 8 ++++---- 40 files changed, 78 insertions(+), 78 deletions(-) diff --git a/man3/acos.3 b/man3/acos.3 index c1c69e07f..39c74912b 100644 --- a/man3/acos.3 +++ b/man3/acos.3 @@ -77,13 +77,13 @@ is +1, If .I x is positive infinity or negative infinity, -a "domain error" occurs, +a domain error occurs, and a NaN is returned. If .I x is outside the range [\-1,\ 1], -a "domain error" occurs, +a domain error occurs, and a NaN is returned. .SH ERRORS See diff --git a/man3/acosh.3 b/man3/acosh.3 index 97a9a2598..31e438517 100644 --- a/man3/acosh.3 +++ b/man3/acosh.3 @@ -85,7 +85,7 @@ is positive infinity, positive infinity is returned. If .I x is less than 1, -a "domain error" occurs, +a domain error occurs, and the functions return a NaN. .SH ERRORS See diff --git a/man3/asin.3 b/man3/asin.3 index eea363a9e..a83d25515 100644 --- a/man3/asin.3 +++ b/man3/asin.3 @@ -79,7 +79,7 @@ is +0 (\-0), If .I x outside the range [\-1,\ 1], -a "domain error" occurs, +a domain error occurs, and a NaN is returned. .\" .\" POSIX.1-2001 documents an optional range error for subnormal x; diff --git a/man3/atanh.3 b/man3/atanh.3 index 153005c0e..3ecd79be8 100644 --- a/man3/atanh.3 +++ b/man3/atanh.3 @@ -81,7 +81,7 @@ is +0 (\-0), +0 (\-0) is returned. If .I x is +1 or \-1, -a "pole error" occurs, +a pole error occurs, and the functions return .BR HUGE_VAL , .BR HUGE_VALF , @@ -92,7 +92,7 @@ respectively, with the mathematically correct sign. If the absolute value of .I x is greater than 1, -a "domain error" occurs, +a domain error occurs, and a NaN is returned. .\" .\" POSIX.1-2001 documents an optional range error for subnormal x; diff --git a/man3/ceil.3 b/man3/ceil.3 index 26a9e2d55..7c50e53db 100644 --- a/man3/ceil.3 +++ b/man3/ceil.3 @@ -67,7 +67,7 @@ If \fIx\fP is integral, +0, \-0, NaN, or infinite, \fIx\fP itself is returned. .SH ERRORS No errors occur. -POSIX.1-2001 documents a "range error" for overflows, but see NOTES. +POSIX.1-2001 documents a range error for overflows, but see NOTES. .SH "CONFORMING TO" C99, POSIX.1-2001. The variant returning diff --git a/man3/cos.3 b/man3/cos.3 index c9255597c..bd176ddcd 100644 --- a/man3/cos.3 +++ b/man3/cos.3 @@ -72,7 +72,7 @@ is a NaN, a NaN is returned. If .I x is positive infinity or negative infinity, -a "domain error" occurs, +a domain error occurs, and a NaN is returned. .SH ERRORS See diff --git a/man3/cosh.3 b/man3/cosh.3 index 3d7ba3c16..6b89c0c9c 100644 --- a/man3/cosh.3 +++ b/man3/cosh.3 @@ -85,7 +85,7 @@ is positive infinity or negative infinity, positive infinity is returned. If the result overflows, -a "range error" occurs, +a range error occurs, and the functions return .RB + HUGE_VAL , .RB + HUGE_VALF , diff --git a/man3/erf.3 b/man3/erf.3 index 0b08c21bf..28b681477 100644 --- a/man3/erf.3 +++ b/man3/erf.3 @@ -87,7 +87,7 @@ is positive infinity (negative infinity), If .I x is subnormal, -a "range error" occurs, +a range error occurs, and the return value is 2*x/sqrt(pi). .SH ERRORS See diff --git a/man3/erfc.3 b/man3/erfc.3 index ef050cfd0..dea7cf131 100644 --- a/man3/erfc.3 +++ b/man3/erfc.3 @@ -86,7 +86,7 @@ If the function result underflows but produces a representable (i.e., subnormal) value, .\" e.g., erfc(27) on x86-32 that value is returned, and -a "range error" occurs. +a range error occurs. .SH ERRORS See .BR math_error (7) diff --git a/man3/exp.3 b/man3/exp.3 index 6062fe57b..856ebcb56 100644 --- a/man3/exp.3 +++ b/man3/exp.3 @@ -83,11 +83,11 @@ is negative infinity, +0 is returned. If the result underflows, -a "range error" occurs, +a range error occurs, and zero is returned. If the result overflows, -a "range error" occurs, +a range error occurs, and the functions return .RB + HUGE_VAL , .RB + HUGE_VALF , diff --git a/man3/expm1.3 b/man3/expm1.3 index a4aa28a09..640d57f62 100644 --- a/man3/expm1.3 +++ b/man3/expm1.3 @@ -92,7 +92,7 @@ If .I x is negative infinity, \-1 is returned. -If the result overflows, a "range error" occurs, +If the result overflows, a range error occurs, and the functions return .RB - HUGE_VAL , .RB - HUGE_VALF , diff --git a/man3/fdim.3 b/man3/fdim.3 index 99c531c5b..714dcc237 100644 --- a/man3/fdim.3 +++ b/man3/fdim.3 @@ -41,7 +41,7 @@ or is a NaN, a NaN is returned. If the result overflows, -a "range error" occurs, +a range error occurs, and the functions return .BR HUGE_VAL , .BR HUGE_VALF , diff --git a/man3/floor.3 b/man3/floor.3 index 826418e97..317c87c06 100644 --- a/man3/floor.3 +++ b/man3/floor.3 @@ -66,7 +66,7 @@ If \fIx\fP is integral, +0, \-0, NaN, or an infinity, \fIx\fP itself is returned. .SH ERRORS No errors occur. -POSIX.1-2001 documents a "range error" for overflows, but see NOTES. +POSIX.1-2001 documents a range error for overflows, but see NOTES. .SH "CONFORMING TO" C99, POSIX.1-2001. The variant returning diff --git a/man3/fma.3 b/man3/fma.3 index fa9c25f67..811787713 100644 --- a/man3/fma.3 +++ b/man3/fma.3 @@ -75,7 +75,7 @@ times is an exact infinity, and .I z is an infinity with the opposite sign, -a "domain error" occurs, +a domain error occurs, and a NaN is returned. If one of @@ -85,7 +85,7 @@ or is an infinity, the other is 0, and .I z is not a NaN, -a "domain error" occurs, and +a domain error occurs, and a NaN is returned. If one of @@ -96,7 +96,7 @@ is an infinity, and the other is 0, and .I z is a NaN, .\" POSIX.1 makes the domain error optional for this case. -a "domain error" occurs, and +a domain error occurs, and a NaN is returned. If @@ -109,11 +109,11 @@ is a NaN, a NaN is returned. If the result overflows, -a "range error" occurs, and +a range error occurs, and an infinity with the correct sign is returned. If the result underflows, -a "range error" occurs, and +a range error occurs, and a signed 0 is returned. .SH ERRORS See diff --git a/man3/fmod.3 b/man3/fmod.3 index feb86659f..7fa62ea41 100644 --- a/man3/fmod.3 +++ b/man3/fmod.3 @@ -82,13 +82,13 @@ is a NaN, a NaN is returned. If .I x is an infinity, -a "domain error" occurs, and +a domain error occurs, and a NaN is returned. If .I y is zero, -a "domain error" occurs, and +a domain error occurs, and a NaN is returned. If diff --git a/man3/hypot.3 b/man3/hypot.3 index 09db6cf76..f8da331be 100644 --- a/man3/hypot.3 +++ b/man3/hypot.3 @@ -100,7 +100,7 @@ and the other argument is not an infinity, a NaN is returned. If the result overflows, -a "range error" occurs, +a range error occurs, and the functions return .BR HUGE_VAL , .BR HUGE_VALF , @@ -111,7 +111,7 @@ respectively. If both arguments are subnormal, and the result is subnormal, .\" Actually, could the result not be subnormal if both arguments .\" are subnormal? I think not -- mtk, Jul 2008 -a "range error" occurs, +a range error occurs, and the correct result is returned. .SH ERRORS See diff --git a/man3/ilogb.3 b/man3/ilogb.3 index e7a6e9c42..d9172f47a 100644 --- a/man3/ilogb.3 +++ b/man3/ilogb.3 @@ -68,15 +68,15 @@ as a signed integer. If .I x -is zero, then a "domain error" occurs, and the functions return -.\" the POSIX.1 spec for logb() says logb() gives "pole error" for this -.\" case, but for ilogb() it says "domain error". +is zero, then a domain error occurs, and the functions return +.\" the POSIX.1 spec for logb() says logb() gives pole error for this +.\" case, but for ilogb() it says domain error. .BR FP_ILOGB0 . .\" glibc: The numeric value is either `INT_MIN' or `-INT_MAX'. If .I x -is a NaN, then a "domain error" occurs, and the functions return +is a NaN, then a domain error occurs, and the functions return .BR FP_ILOGBNAN . .\" glibc: The numeric value is either `INT_MIN' or `INT_MAX'. .\" On i386, FP_ILOGB0 and FP_ILOGBNAN have the same value. @@ -84,7 +84,7 @@ is a NaN, then a "domain error" occurs, and the functions return If .I x is negative infinity or positive infinity, then -a "domain error" occurs, and the functions return +a domain error occurs, and the functions return .BR INT_MAX . .\" .\" POSIX.1-2001 also says: diff --git a/man3/j0.3 b/man3/j0.3 index b093b0cc4..1205e0230 100644 --- a/man3/j0.3 +++ b/man3/j0.3 @@ -114,7 +114,7 @@ If .I x is too large in magnitude, or the result underflows, -a "range error" occurs, +a range error occurs, and the return value is 0. .SH ERRORS See diff --git a/man3/ldexp.3 b/man3/ldexp.3 index 9acdb110d..dafb62921 100644 --- a/man3/ldexp.3 +++ b/man3/ldexp.3 @@ -84,11 +84,11 @@ is positive infinity (negative infinity), positive infinity (negative infinity) is returned. If the result underflows, -an "range error" occurs, +an range error occurs, and zero is returned. If the result overflows, -a "range error" occurs, +a range error occurs, and the functions return .BR HUGE_VAL , .BR HUGE_VALF , diff --git a/man3/lgamma.3 b/man3/lgamma.3 index 8fa4510b4..8f9c48216 100644 --- a/man3/lgamma.3 +++ b/man3/lgamma.3 @@ -92,7 +92,7 @@ positive infinity is returned. If .I x is a non-positive integer, -a "pole error" occurs, +a pole error occurs, and the functions return .RB + HUGE_VAL , .RB + HUGE_VALF , @@ -101,7 +101,7 @@ or respectively. If the result overflows, -a "range error" occurs, +a range error occurs, .\" e.g., lgamma(DBL_MAX) and the functions return .BR HUGE_VAL , diff --git a/man3/log.3 b/man3/log.3 index 3afe3839f..e45788a0d 100644 --- a/man3/log.3 +++ b/man3/log.3 @@ -83,7 +83,7 @@ positive infinity is returned. If .I x is zero, -then a "pole error" occurs, and the functions return +then a pole error occurs, and the functions return .RB - HUGE_VAL , .RB - HUGE_VALF , or @@ -93,7 +93,7 @@ respectively. If .I x is negative (including negative infinity), then -a "domain error" occurs, and a NaN (not a number) is returned. +a domain error occurs, and a NaN (not a number) is returned. .SH ERRORS See .BR math_error (7) diff --git a/man3/log1p.3 b/man3/log1p.3 index ea8ae9631..10f863acd 100644 --- a/man3/log1p.3 +++ b/man3/log1p.3 @@ -80,7 +80,7 @@ is positive infinity, positive infinity is returned. If .I x -is \-1, a "pole error" occurs, +is \-1, a pole error occurs, and the functions return .RB - HUGE_VAL , .RB - HUGE_VALF , @@ -91,7 +91,7 @@ respectively. If .I x is less than \-1 (including negative infinity), -a "domain error" occurs, +a domain error occurs, and a NaN (not a number) is returned. .\" POSIX.1 specifies a possible range error if x is subnormal .\" glibc 2.8 doesn't do this diff --git a/man3/logb.3 b/man3/logb.3 index 80923584a..4540f9c4b 100644 --- a/man3/logb.3 +++ b/man3/logb.3 @@ -89,7 +89,7 @@ a NaN is returned. If .I x -is zero, then a "pole error" occurs, and the functions return +is zero, then a pole error occurs, and the functions return .RB - HUGE_VAL , .RB - HUGE_VALF , or diff --git a/man3/lrint.3 b/man3/lrint.3 index 3ea38a7f2..86f463766 100644 --- a/man3/lrint.3 +++ b/man3/lrint.3 @@ -75,7 +75,7 @@ or the rounded value is too large to be stored in a in the case of the .B ll* functions) -then a "domain error" occurs, and the return value is unspecified. +then a domain error occurs, and the return value is unspecified. .\" The return value is -(LONG_MAX - 1) or -(LLONG_MAX -1) .SH ERRORS See diff --git a/man3/lround.3 b/man3/lround.3 index 13a74cd2a..74688992e 100644 --- a/man3/lround.3 +++ b/man3/lround.3 @@ -76,7 +76,7 @@ or the rounded value is too large to be stored in a in the case of the .B ll* functions) -then a "domain error" occurs, and the return value is unspecified. +then a domain error occurs, and the return value is unspecified. .\" The return value is -(LONG_MAX - 1) or -(LLONG_MAX -1) .SH ERRORS See diff --git a/man3/nextafter.3 b/man3/nextafter.3 index cbf1f92a3..c8ac31f4d 100644 --- a/man3/nextafter.3 +++ b/man3/nextafter.3 @@ -97,7 +97,7 @@ If is finite, .\" e.g., DBL_MAX and the result would overflow, -a "range error" occurs, +a range error occurs, and the functions return .BR HUGE_VAL , .BR HUGE_VALF , @@ -110,7 +110,7 @@ If is not equal to .IR y , and the correct function result would be subnormal, zero, or underflow, -a "range error" occurs, +a range error occurs, and either the correct value (if it can be represented), or 0.0, is returned. .SH ERRORS diff --git a/man3/pow.3 b/man3/pow.3 index ec3685f45..077d15433 100644 --- a/man3/pow.3 +++ b/man3/pow.3 @@ -72,13 +72,13 @@ If .I x is a finite value less than 0, and .I y -is a finite non-integer, a "domain error" occurs, -.\" The "domain error" is generated at least as far back as glibc 2.4 +is a finite non-integer, a domain error occurs, +.\" The domain error is generated at least as far back as glibc 2.4 and a NaN is returned. If the result overflows, -a "range error" occurs, -.\" The "range error" is generated at least as far back as glibc 2.4 +a range error occurs, +.\" The range error is generated at least as far back as glibc 2.4 and the functions return .BR HUGE_VAL , .BR HUGE_VALF , @@ -87,7 +87,7 @@ or respectively, with the mathematically correct sign. If result underflows, and is not representable, -a "range error" occurs, +a range error occurs, and 0.0 is returned. .\" POSIX.1 does not specify the sign of the zero, .\" but http://sources.redhat.com/bugzilla/show_bug.cgi?id=2678 @@ -221,7 +221,7 @@ is +0 or -0, and .I y is an odd integer less than 0, -a "pole error" occurs and +a pole error occurs and .BR HUGE_VAL , .BR HUGE_VALF , or @@ -236,8 +236,8 @@ is +0 or -0, and .I y is less than 0 and not an odd integer, -a "pole error" occurs and -.\" The "pole error" is generated at least as far back as glibc 2.4 +a pole error occurs and +.\" The pole error is generated at least as far back as glibc 2.4 .RB + HUGE_VAL , .RB + HUGE_VALF , or diff --git a/man3/remainder.3 b/man3/remainder.3 index 54e3b32a6..6a1df57af 100644 --- a/man3/remainder.3 +++ b/man3/remainder.3 @@ -117,7 +117,7 @@ is an infinity, and .I y is not a NaN, -a "domain error" occurs, and +a domain error occurs, and a NaN is returned. If @@ -128,7 +128,7 @@ and .I x is not a NaN, .\" Interestingly, remquo(3) does not have the same problem. -a "domain error" occurs, and +a domain error occurs, and a NaN is returned. .SH ERRORS See diff --git a/man3/remquo.3 b/man3/remquo.3 index b01942a96..56ba77b11 100644 --- a/man3/remquo.3 +++ b/man3/remquo.3 @@ -77,7 +77,7 @@ is an infinity, and .I y is not a NaN, -a "domain error" occurs, and +a domain error occurs, and a NaN is returned. If @@ -86,7 +86,7 @@ is zero, and .I x is not a NaN, -a "domain error" occurs, and +a domain error occurs, and a NaN is returned. .SH ERRORS See diff --git a/man3/rint.3 b/man3/rint.3 index 6946539ab..d911be673 100644 --- a/man3/rint.3 +++ b/man3/rint.3 @@ -92,7 +92,7 @@ If \fIx\fP is integral, +0, \-0, NaN, or infinite, \fIx\fP itself is returned. .SH ERRORS No errors occur. -POSIX.1-2001 documents a "range error" for overflows, but see NOTES. +POSIX.1-2001 documents a range error for overflows, but see NOTES. .SH "CONFORMING TO" C99, POSIX.1-2001. .SH NOTES diff --git a/man3/round.3 b/man3/round.3 index 356ad763e..310887977 100644 --- a/man3/round.3 +++ b/man3/round.3 @@ -68,7 +68,7 @@ If \fIx\fP is integral, +0, \-0, NaN, or infinite, \fIx\fP itself is returned. .SH ERRORS No errors occur. -POSIX.1-2001 documents a "range error" for overflows, but see NOTES. +POSIX.1-2001 documents a range error for overflows, but see NOTES. .SH "CONFORMING TO" C99, POSIX.1-2001. .SH NOTES diff --git a/man3/scalb.3 b/man3/scalb.3 index 91eef7513..55f045659 100644 --- a/man3/scalb.3 +++ b/man3/scalb.3 @@ -97,7 +97,7 @@ If is zero, and .I exp is positive infinity, -a "domain error" occurs, and +a domain error occurs, and a NaN is returned. If @@ -106,11 +106,11 @@ is an infinity, and .I exp is negative infinity, -a "domain error" occurs, and +a domain error occurs, and a NaN is returned. If the result overflows, -a "range error" occurs, +a range error occurs, and the functions return .BR HUGE_VAL , .BR HUGE_VALF , @@ -120,7 +120,7 @@ respectively, with a sign the same as .IR x . If the result underflows, -a "range error" occurs, +a range error occurs, and the functions return zero, with a sign the same as .IR x . .SH ERRORS diff --git a/man3/scalbln.3 b/man3/scalbln.3 index e2c341bbb..d8ffbaaec 100644 --- a/man3/scalbln.3 +++ b/man3/scalbln.3 @@ -97,7 +97,7 @@ If is +0 (\-0), +0 (\-0) is returned. If the result overflows, -a "range error" occurs, +a range error occurs, and the functions return .BR HUGE_VAL , .BR HUGE_VALF , @@ -107,7 +107,7 @@ respectively, with a sign the same as .IR x . If the result underflows, -a "range error" occurs, +a range error occurs, and the functions return zero, with a sign the same as .IR x . .SH ERRORS diff --git a/man3/sin.3 b/man3/sin.3 index d2fa27979..578b561a9 100644 --- a/man3/sin.3 +++ b/man3/sin.3 @@ -72,7 +72,7 @@ is a NaN, a NaN is returned. If .I x is positive infinity or negative infinity, -a "domain error" occurs, +a domain error occurs, and a NaN is returned. .\" .\" POSIX.1 allows an optional range error for subnormal x diff --git a/man3/sincos.3 b/man3/sincos.3 index c7c36826e..9a76c1626 100644 --- a/man3/sincos.3 +++ b/man3/sincos.3 @@ -38,7 +38,7 @@ and If .I x is positive infinity or negative infinity, -a "domain error" occurs, and +a domain error occurs, and a NaN is returned in .I *sin and diff --git a/man3/sinh.3 b/man3/sinh.3 index a72392881..a59f516b1 100644 --- a/man3/sinh.3 +++ b/man3/sinh.3 @@ -85,7 +85,7 @@ is positive infinity (negative infinity), positive infinity (negative infinity) is returned. If the result overflows, -a "range error" occurs, +a range error occurs, and the functions return .BR HUGE_VAL , .BR HUGE_VALF , diff --git a/man3/sqrt.3 b/man3/sqrt.3 index c1f2bd9de..bb4a0a08d 100644 --- a/man3/sqrt.3 +++ b/man3/sqrt.3 @@ -79,7 +79,7 @@ is positive infinity, positive infinity is returned. If .I x is less than \-0, -a "domain error" occurs, +a domain error occurs, and a NaN is returned. .SH ERRORS See diff --git a/man3/tan.3 b/man3/tan.3 index 056619cbd..a45c3ad0a 100644 --- a/man3/tan.3 +++ b/man3/tan.3 @@ -73,11 +73,11 @@ is a NaN, a NaN is returned. If .I x is positive infinity or negative infinity, -a "domain error" occurs, +a domain error occurs, and a NaN is returned. If the correct result would overflow, -a "range error" occurs, +a range error occurs, and the functions return .BR HUGE_VAL , .BR HUGE_VALF , diff --git a/man3/tgamma.3 b/man3/tgamma.3 index b85d181e0..69c28b00c 100644 --- a/man3/tgamma.3 +++ b/man3/tgamma.3 @@ -64,11 +64,11 @@ is positive infinity, positive infinity is returned. If .I x is a negative integer, or is negative infinity, -a "domain error" occurs, +a domain error occurs, and a NaN is returned. If the result overflows, -a "range error" occurs, +a range error occurs, and the functions return .BR HUGE_VAL , .BR HUGE_VALF , @@ -77,13 +77,13 @@ or respectively, with the correct mathematical sign. If the result underflows, -a "range error" occurs, +a range error occurs, and the functions return 0, with the correct mathematical sign. If .I x is -0 or +0, -a "pole error" occurs, +a pole error occurs, and the functions return .BR HUGE_VAL , .BR HUGE_VALF , diff --git a/man3/y0.3 b/man3/y0.3 index 23b743750..56548d8e1 100644 --- a/man3/y0.3 +++ b/man3/y0.3 @@ -116,7 +116,7 @@ is a NaN, a NaN is returned. If .I x is negative, -a "domain error" occurs, +a domain error occurs, and the functions return .RB - HUGE_VAL , .RB - HUGE_VALF , @@ -128,7 +128,7 @@ respectively. If .I x is 0.0, -a "pole error" occurs, +a pole error occurs, and the functions return .RB - HUGE_VAL , .RB - HUGE_VALF , @@ -137,11 +137,11 @@ or respectively. If the result underflows, -a "range error" occurs, +a range error occurs, and the functions return 0.0 If the result overflows, -a "range error" occurs, +a range error occurs, and the functions return .RB - HUGE_VAL , .RB - HUGE_VALF ,