From: schwarze Date: Tue, 29 Jun 2021 14:47:33 +0000 (+0000) Subject: function args must not use .Ar and EDOM and ERANGE require .Er; X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1c7c1e02dc27bdb87a106695fcd64d107e077f53;p=openbsd function args must not use .Ar and EDOM and ERANGE require .Er; mostly mechanical diff similar to what Emil Engler just sent for sqrt(3) --- diff --git a/lib/libm/man/acos.3 b/lib/libm/man/acos.3 index b99783f1f6f..c6eedb7ceb7 100644 --- a/lib/libm/man/acos.3 +++ b/lib/libm/man/acos.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: acos.3,v 1.15 2016/04/26 19:49:22 tb Exp $ +.\" $OpenBSD: acos.3,v 1.16 2021/06/29 14:47:33 schwarze Exp $ .\" Copyright (c) 1991 The Regents of the University of California. .\" All rights reserved. .\" @@ -28,7 +28,7 @@ .\" .\" from: @(#)acos.3 5.1 (Berkeley) 5/2/91 .\" -.Dd $Mdocdate: April 26 2016 $ +.Dd $Mdocdate: June 29 2021 $ .Dt ACOS 3 .Os .Sh NAME @@ -67,7 +67,8 @@ and .Fn acosl "x" set the global variable .Va errno -to EDOM. +to +.Er EDOM . .Sh SEE ALSO .Xr asin 3 , .Xr atan 3 , diff --git a/lib/libm/man/acosh.3 b/lib/libm/man/acosh.3 index 884946167a5..a1b3523ac73 100644 --- a/lib/libm/man/acosh.3 +++ b/lib/libm/man/acosh.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: acosh.3,v 1.17 2016/04/26 19:49:22 tb Exp $ +.\" $OpenBSD: acosh.3,v 1.18 2021/06/29 14:47:33 schwarze Exp $ .\" Copyright (c) 1991 Regents of the University of California. .\" All rights reserved. .\" @@ -28,7 +28,7 @@ .\" .\" from: @(#)acosh.3 5.2 (Berkeley) 5/6/91 .\" -.Dd $Mdocdate: April 26 2016 $ +.Dd $Mdocdate: June 29 2021 $ .Dt ACOSH 3 .Os .Sh NAME @@ -50,7 +50,7 @@ The function computes the inverse hyperbolic cosine of the real argument -.Ar x . +.Fa x . The .Fn acoshf function is a single precision version of @@ -60,14 +60,17 @@ The function is an extended precision version of .Fn acosh . .Sh RETURN VALUES -If x is less than one, +If +.Fa x +is less than one, .Fn acosh "x" , .Fn acoshf "x" and .Fn acoshl "x" return NaN and set the global variable .Va errno -to EDOM. +to +.Er EDOM . .Sh SEE ALSO .Xr asinh 3 , .Xr atanh 3 , diff --git a/lib/libm/man/asin.3 b/lib/libm/man/asin.3 index 7a2bb20ecb8..202acfe5451 100644 --- a/lib/libm/man/asin.3 +++ b/lib/libm/man/asin.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: asin.3,v 1.16 2016/04/26 19:49:22 tb Exp $ +.\" $OpenBSD: asin.3,v 1.17 2021/06/29 14:47:33 schwarze Exp $ .\" Copyright (c) 1991 The Regents of the University of California. .\" All rights reserved. .\" @@ -28,7 +28,7 @@ .\" .\" from: @(#)asin.3 5.1 (Berkeley) 5/2/91 .\" -.Dd $Mdocdate: April 26 2016 $ +.Dd $Mdocdate: June 29 2021 $ .Dt ASIN 3 .Os .Sh NAME @@ -69,7 +69,8 @@ and .Fn asinl "x" return NaN and set the global variable .Va errno -to EDOM. +to +.Er EDOM . .Sh SEE ALSO .Xr acos 3 , .Xr atan 3 , diff --git a/lib/libm/man/asinh.3 b/lib/libm/man/asinh.3 index cfcf6c6eb2c..59b951441dc 100644 --- a/lib/libm/man/asinh.3 +++ b/lib/libm/man/asinh.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: asinh.3,v 1.15 2016/03/10 11:45:37 jmc Exp $ +.\" $OpenBSD: asinh.3,v 1.16 2021/06/29 14:47:33 schwarze Exp $ .\" Copyright (c) 1985, 1991 Regents of the University of California. .\" All rights reserved. .\" @@ -28,7 +28,7 @@ .\" .\" from: @(#)asinh.3 6.4 (Berkeley) 5/6/91 .\" -.Dd $Mdocdate: March 10 2016 $ +.Dd $Mdocdate: June 29 2021 $ .Dt ASINH 3 .Os .Sh NAME @@ -64,7 +64,7 @@ The and .Fn asinhl functions return the inverse hyperbolic sine of -.Ar x . +.Fa x . .Sh SEE ALSO .Xr acosh 3 , .Xr atanh 3 , diff --git a/lib/libm/man/atan2.3 b/lib/libm/man/atan2.3 index 263b3f646c5..14b4ab99230 100644 --- a/lib/libm/man/atan2.3 +++ b/lib/libm/man/atan2.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: atan2.3,v 1.19 2016/04/26 19:49:22 tb Exp $ +.\" $OpenBSD: atan2.3,v 1.20 2021/06/29 14:47:33 schwarze Exp $ .\" Copyright (c) 1991 The Regents of the University of California. .\" All rights reserved. .\" @@ -28,7 +28,7 @@ .\" .\" from: @(#)atan2.3 5.1 (Berkeley) 5/2/91 .\" -.Dd $Mdocdate: April 26 2016 $ +.Dd $Mdocdate: June 29 2021 $ .Dt ATAN2 3 .Os .Sh NAME @@ -48,7 +48,7 @@ The .Fn atan2 function computes the principal value of the arc tangent of -.Ar y/ Ns Ar x , +.Fa y Ns / Ns Fa x , using the signs of both arguments to determine the quadrant of the return value. The @@ -67,16 +67,16 @@ and .Fn atan2l functions, if successful, return the arc tangent of -.Ar y/ Ns Ar x +.Fa y Ns / Ns Fa x in the range .Bk -words .Bq \&- Ns pi , \&+ Ns pi .Ek radians. If both -.Ar x +.Fa x and -.Ar y +.Fa y are zero, the global variable .Va errno is set to diff --git a/lib/libm/man/atanh.3 b/lib/libm/man/atanh.3 index 36b3ea28d97..a7fa92e50dd 100644 --- a/lib/libm/man/atanh.3 +++ b/lib/libm/man/atanh.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: atanh.3,v 1.18 2016/04/27 06:44:54 jmc Exp $ +.\" $OpenBSD: atanh.3,v 1.19 2021/06/29 14:47:33 schwarze Exp $ .\" Copyright (c) 1985, 1991 Regents of the University of California. .\" All rights reserved. .\" @@ -28,7 +28,7 @@ .\" .\" from: @(#)atanh.3 5.2 (Berkeley) 5/6/91 .\" -.Dd $Mdocdate: April 27 2016 $ +.Dd $Mdocdate: June 29 2021 $ .Dt ATANH 3 .Os .Sh NAME @@ -50,7 +50,7 @@ The function computes the inverse hyperbolic tangent of the real argument -.Ar x . +.Fa x . The .Fn atanhf function is a single precision version of @@ -67,7 +67,8 @@ and .Fn atanhl "x" return +infinity, -infinity or NaN, and set the global variable .Va errno -to EDOM. +to +.Er EDOM . .Sh SEE ALSO .Xr acosh 3 , .Xr asinh 3 , diff --git a/lib/libm/man/cosh.3 b/lib/libm/man/cosh.3 index 67475a03be1..c74d4ebef05 100644 --- a/lib/libm/man/cosh.3 +++ b/lib/libm/man/cosh.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: cosh.3,v 1.16 2016/04/26 19:49:22 tb Exp $ +.\" $OpenBSD: cosh.3,v 1.17 2021/06/29 14:47:33 schwarze Exp $ .\" Copyright (c) 1989, 1991 The Regents of the University of California. .\" All rights reserved. .\" @@ -28,7 +28,7 @@ .\" .\" from: @(#)cosh.3 5.1 (Berkeley) 5/2/91 .\" -.Dd $Mdocdate: April 26 2016 $ +.Dd $Mdocdate: June 29 2021 $ .Dt COSH 3 .Os .Sh NAME @@ -65,7 +65,8 @@ and .Fn coshl "x" return infinity and set the global variable .Va errno -to ERANGE. +to +.Er ERANGE . .Sh SEE ALSO .Xr acos 3 , .Xr asin 3 , diff --git a/lib/libm/man/exp.3 b/lib/libm/man/exp.3 index 46273c714fd..17f272c3b2a 100644 --- a/lib/libm/man/exp.3 +++ b/lib/libm/man/exp.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: exp.3,v 1.34 2016/06/01 13:43:54 tb Exp $ +.\" $OpenBSD: exp.3,v 1.35 2021/06/29 14:47:33 schwarze Exp $ .\" .\" Copyright (c) 1985, 1991 Regents of the University of California. .\" All rights reserved. @@ -29,7 +29,7 @@ .\" .\" from: @(#)exp.3 6.12 (Berkeley) 7/31/91 .\" -.Dd $Mdocdate: June 1 2016 $ +.Dd $Mdocdate: June 29 2021 $ .Dt EXP 3 .Os .Sh NAME @@ -208,9 +208,9 @@ function is an extended precision version of The .Fn pow function computes the value of -.Ar x +.Fa x to the exponent -.Ar y . +.Fa y . The .Fn powf function is a single precision version of diff --git a/lib/libm/man/hypot.3 b/lib/libm/man/hypot.3 index 61660d6a8ea..3a7d360ba7d 100644 --- a/lib/libm/man/hypot.3 +++ b/lib/libm/man/hypot.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: hypot.3,v 1.25 2020/02/08 01:09:57 jsg Exp $ +.\" $OpenBSD: hypot.3,v 1.26 2021/06/29 14:47:33 schwarze Exp $ .\" Copyright (c) 1985, 1991 Regents of the University of California. .\" All rights reserved. .\" @@ -28,7 +28,7 @@ .\" .\" from: @(#)hypot.3 6.7 (Berkeley) 5/6/91 .\" -.Dd $Mdocdate: February 8 2020 $ +.Dd $Mdocdate: June 29 2021 $ .Dt HYPOT 3 .Os .Sh NAME @@ -68,7 +68,7 @@ occurs only if the final result deserves it. .Pp .Fn hypot "infinity" "v" No = Fn hypot "v" "infinity" No = +infinity for all -.Ar v , +.Fa v , including NaN. .Pp The @@ -93,19 +93,19 @@ and .Fn hypot "NaN" "v" are NaN for all .Em finite -.Ar v . +.Fa v . Programmers might be surprised at first to discover that .Fn hypot "\(+-infinity" "NaN" No = +infinity . This is intentional; it happens because .Fn hypot "infinity" "v" No = +infinity for .Em all -.Ar v , +.Fa v , finite or infinite. Hence .Fn hypot "infinity" "v" is independent of -.Ar v . +.Fa v . The IEEE NaN is designed to disappear when it turns out to be irrelevant, as it does in .Fn hypot "infinity" "NaN" . diff --git a/lib/libm/man/j0.3 b/lib/libm/man/j0.3 index 7ae9fb9d898..d1e6ad9a598 100644 --- a/lib/libm/man/j0.3 +++ b/lib/libm/man/j0.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: j0.3,v 1.16 2016/04/26 19:49:22 tb Exp $ +.\" $OpenBSD: j0.3,v 1.17 2021/06/29 14:47:33 schwarze Exp $ .\" Copyright (c) 1985, 1991 Regents of the University of California. .\" All rights reserved. .\" @@ -28,7 +28,7 @@ .\" .\" from: @(#)j0.3 6.7 (Berkeley) 4/19/91 .\" -.Dd $Mdocdate: April 26 2016 $ +.Dd $Mdocdate: June 29 2021 $ .Dt J0 3 .Os .Sh NAME @@ -143,7 +143,10 @@ respectively. If these functions are successful, the computed value is returned, otherwise the global variable .Va errno -is set to EDOM or ERANGE. +is set to +.Er EDOM +or +.Er ERANGE . .Sh HISTORY The functions .Fn j0 , diff --git a/lib/libm/man/sincos.3 b/lib/libm/man/sincos.3 index 81c73c9dc21..aecf26dc7bf 100644 --- a/lib/libm/man/sincos.3 +++ b/lib/libm/man/sincos.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sincos.3,v 1.1 2018/03/10 20:52:58 kettenis Exp $ +.\" $OpenBSD: sincos.3,v 1.2 2021/06/29 14:47:34 schwarze Exp $ .\" Copyright (c) 2011 Steven G. Kargl. .\" .\" Redistribution and use in source and binary forms, with or without @@ -24,7 +24,7 @@ .\" .\" $FreeBSD: head/lib/msun/man/sincos.3 319047 2017-05-28 06:13:38Z mmel $ .\" -.Dd $Mdocdate: March 10 2018 $ +.Dd $Mdocdate: June 29 2021 $ .Dt SINCOS 3 .Os .Sh NAME @@ -66,9 +66,9 @@ Upon returning from and .Fn sincosl , the objects pointed to by -.Ar "*s" +.Fa s and -.Ar "*c" +.Fa c are assigned the values of sine and cosine, respectively. .Sh SEE ALSO .Xr cos 3 ,