Module Name:    src
Committed By:   jruoho
Date:           Wed Apr 13 06:56:51 UTC 2011

Modified Files:
        src/lib/libc/stdlib: Makefile.inc abs.3
Removed Files:
        src/lib/libc/stdlib: imaxabs.3 labs.3 llabs.3

Log Message:
Collect abs(3), labs(3), llabs(3), and imaxabs(3) to a single small page.


To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/lib/libc/stdlib/Makefile.inc
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/stdlib/abs.3
cvs rdiff -u -r1.4 -r0 src/lib/libc/stdlib/imaxabs.3
cvs rdiff -u -r1.11 -r0 src/lib/libc/stdlib/labs.3
cvs rdiff -u -r1.7 -r0 src/lib/libc/stdlib/llabs.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/stdlib/Makefile.inc
diff -u src/lib/libc/stdlib/Makefile.inc:1.75 src/lib/libc/stdlib/Makefile.inc:1.76
--- src/lib/libc/stdlib/Makefile.inc:1.75	Sun Nov 14 18:11:43 2010
+++ src/lib/libc/stdlib/Makefile.inc	Wed Apr 13 06:56:50 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.75 2010/11/14 18:11:43 tron Exp $
+#	$NetBSD: Makefile.inc,v 1.76 2011/04/13 06:56:50 jruoho Exp $
 #	from: @(#)Makefile.inc	8.3 (Berkeley) 2/4/95
 
 # stdlib sources
@@ -43,9 +43,9 @@
 	exit.3 \
 	getenv.3 getopt.3 getopt_long.3 getsubopt.3 grantpt.3 \
 	hcreate.3 \
-	imaxabs.3 imaxdiv.3 insque.3 \
+	imaxdiv.3 insque.3 \
 	jemalloc.3 \
-	labs.3 ldiv.3 llabs.3 lldiv.3 lsearch.3 \
+	ldiv.3 lldiv.3 lsearch.3 \
 	malloc.3 memory.3 mi_vector_hash.3 \
 	posix_memalign.3 posix_openpt.3 ptsname.3 \
 	qabs.3 qdiv.3 qsort.3 \
@@ -56,6 +56,9 @@
 
 MLINKS+=a64l.3 l64a.3
 MLINKS+=a64l.3 l64a_r.3
+MLINKS+=abs.3 labs.3 \
+	abs.3 llabs.3 \
+	abs.3 imaxabs.3
 MLINKS+=getenv.3 setenv.3 getenv.3 unsetenv.3 getenv.3 putenv.3
 MLINKS+=getenv.3 getenv_r.3
 MLINKS+=hcreate.3 hdestroy.3 hcreate.3 hsearch.3

Index: src/lib/libc/stdlib/abs.3
diff -u src/lib/libc/stdlib/abs.3:1.13 src/lib/libc/stdlib/abs.3:1.14
--- src/lib/libc/stdlib/abs.3:1.13	Mon Aug  4 21:29:27 2008
+++ src/lib/libc/stdlib/abs.3	Wed Apr 13 06:56:50 2011
@@ -1,4 +1,4 @@
-.\"	$NetBSD: abs.3,v 1.13 2008/08/04 21:29:27 matt Exp $
+.\"	$NetBSD: abs.3,v 1.14 2011/04/13 06:56:50 jruoho Exp $
 .\"
 .\" Copyright (c) 1990, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -33,44 +33,41 @@
 .\"
 .\"     from: @(#)abs.3	8.1 (Berkeley) 6/4/93
 .\"
-.Dd June 4, 1993
+.Dd April 13, 2011
 .Dt ABS 3
 .Os
 .Sh NAME
-.Nm abs
-.Nd integer absolute value function
+.Nm abs ,
+.Nm labs ,
+.Nm llabs ,
+.Nm imaxabs
+.Nd functions for integer absolute value
 .Sh LIBRARY
 .Lb libc
 .Sh SYNOPSIS
 .In stdlib.h
 .Ft int
-.Fn abs "int j"
+.Fn abs "int x"
+.Ft long int
+.Fn labs "long int x"
+.Ft long long int
+.Fn llabs "long long int x"
+.In inttypes.h
+.Ft intmax_t
+.Fn imaxabs "intmax_t x"
 .Sh DESCRIPTION
-The
-.Fn abs
-function
-computes
-the absolute value of the integer
-.Ar j .
-.Sh RETURN VALUES
-The
-.Fn abs
-function
-returns
-the absolute value.
+These functions return the absolute value of the integer
+.Fa x .
+The listed functions differ only with respect
+to the type of the return value and
+.Fa x .
 .Sh SEE ALSO
 .Xr cabs 3 ,
 .Xr fabs 3 ,
 .Xr floor 3 ,
-.Xr hypot 3 ,
-.Xr imaxabs 3 ,
-.Xr labs 3 ,
-.Xr llabs 3 ,
 .Xr math 3
 .Sh STANDARDS
-The
-.Fn abs
-function conforms to
-.St -ansiC .
+The described functions conform to
+.St -isoC-99 .
 .Sh BUGS
 The absolute value of the most negative integer remains negative.

Reply via email to