summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/imaxabs.3
diff options
context:
space:
mode:
authorschwarze <>2019-01-18 07:32:17 +0000
committerschwarze <>2019-01-18 07:32:17 +0000
commitf088490975411fdaef39d5aee455070b01b5440c (patch)
tree605e3717adf9d42d7e69449883b1199e84fdb429 /src/lib/libc/stdlib/imaxabs.3
parent0c5d69513c289e9ce0ad1d05ba2604b40af21910 (diff)
downloadopenbsd-f088490975411fdaef39d5aee455070b01b5440c.tar.gz
openbsd-f088490975411fdaef39d5aee455070b01b5440c.tar.bz2
openbsd-f088490975411fdaef39d5aee455070b01b5440c.zip
Replace the vague, incorrect, and confusing BUGS sections with CAVEATS
clearly stating which arguments have to be avoided, and mention the header files defining the constants required for the checks. Feedback and OK guenther@, OK bluhm@.
Diffstat (limited to '')
-rw-r--r--src/lib/libc/stdlib/imaxabs.313
1 files changed, 9 insertions, 4 deletions
diff --git a/src/lib/libc/stdlib/imaxabs.3 b/src/lib/libc/stdlib/imaxabs.3
index 6e280dda8a..340be61b6e 100644
--- a/src/lib/libc/stdlib/imaxabs.3
+++ b/src/lib/libc/stdlib/imaxabs.3
@@ -29,9 +29,9 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: imaxabs.3,v 1.7 2014/11/30 21:21:59 schwarze Exp $ 32.\" $OpenBSD: imaxabs.3,v 1.8 2019/01/18 07:32:17 schwarze Exp $
33.\" 33.\"
34.Dd $Mdocdate: November 30 2014 $ 34.Dd $Mdocdate: January 18 2019 $
35.Dt IMAXABS 3 35.Dt IMAXABS 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -39,6 +39,7 @@
39.Nd integer absolute value function 39.Nd integer absolute value function
40.Sh SYNOPSIS 40.Sh SYNOPSIS
41.In inttypes.h 41.In inttypes.h
42.In stdint.h
42.Ft intmax_t 43.Ft intmax_t
43.Fn imaxabs "intmax_t j" 44.Fn imaxabs "intmax_t j"
44.Sh DESCRIPTION 45.Sh DESCRIPTION
@@ -61,5 +62,9 @@ The
61.Fn imaxabs 62.Fn imaxabs
62function conforms to 63function conforms to
63.St -isoC-99 . 64.St -isoC-99 .
64.Sh BUGS 65.Sh CAVEATS
65The absolute value of the most negative integer remains negative. 66The result of applying
67.Fn imaxabs
68to
69.Dv INTMAX_MIN
70is undefined.