CVS commit: src/tests/lib/libm

2011-09-17 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sat Sep 17 06:21:19 UTC 2011

Modified Files:
src/tests/lib/libm: t_ldexp.c

Log Message:
Reduce the powers.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libm/t_ldexp.c

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

Modified files:

Index: src/tests/lib/libm/t_ldexp.c
diff -u src/tests/lib/libm/t_ldexp.c:1.8 src/tests/lib/libm/t_ldexp.c:1.9
--- src/tests/lib/libm/t_ldexp.c:1.8	Fri Sep 16 04:54:46 2011
+++ src/tests/lib/libm/t_ldexp.c	Sat Sep 17 06:21:19 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ldexp.c,v 1.8 2011/09/16 04:54:46 jruoho Exp $ */
+/* $NetBSD: t_ldexp.c,v 1.9 2011/09/17 06:21:19 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: t_ldexp.c,v 1.8 2011/09/16 04:54:46 jruoho Exp $);
+__RCSID($NetBSD: t_ldexp.c,v 1.9 2011/09/17 06:21:19 jruoho Exp $);
 
 #include math.h
 #include limits.h
@@ -50,7 +50,7 @@
 ATF_TC_BODY(ldexp_exp2, tc)
 {
 #ifndef __vax__
-	const double n[] = { 1, 2, 3, 25, 50, 100, 123, 321, 500 };
+	const double n[] = { 1, 2, 3, 10, 50, 100 };
 	const double eps = 1.0e-40;
 	const double x = 12.0;
 	double y;
@@ -183,9 +183,9 @@
 ATF_TC_BODY(ldexpf_exp2f, tc)
 {
 #ifndef __vax__
-	const float n[] = { 1, 2, 3, 25, 50, 100, 123, 321, 500 };
+	const float n[] = { 1, 2, 3, 10, 50, 100 };
 	const float eps = 1.0e-9;
-	const float x = 12;
+	const float x = 12.0;
 	float y;
 	size_t i;
 



CVS commit: src/sys/netbt

2011-09-17 Thread Iain Hibbert
Module Name:src
Committed By:   plunky
Date:   Sat Sep 17 08:23:37 UTC 2011

Modified Files:
src/sys/netbt: hci.h hci_unit.c

Log Message:
const lookup argument


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/netbt/hci.h
cvs rdiff -u -r1.12 -r1.13 src/sys/netbt/hci_unit.c

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

Modified files:

Index: src/sys/netbt/hci.h
diff -u src/sys/netbt/hci.h:1.34 src/sys/netbt/hci.h:1.35
--- src/sys/netbt/hci.h:1.34	Mon Nov 22 19:56:51 2010
+++ src/sys/netbt/hci.h	Sat Sep 17 08:23:36 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: hci.h,v 1.34 2010/11/22 19:56:51 plunky Exp $	*/
+/*	$NetBSD: hci.h,v 1.35 2011/09/17 08:23:36 plunky Exp $	*/
 
 /*-
  * Copyright (c) 2005 Iain Hibbert.
@@ -54,7 +54,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $Id: hci.h,v 1.34 2010/11/22 19:56:51 plunky Exp $
+ * $Id: hci.h,v 1.35 2011/09/17 08:23:36 plunky Exp $
  * $FreeBSD: src/sys/netgraph/bluetooth/include/ng_hci.h,v 1.6 2005/01/07 01:45:43 imp Exp $
  */
 
@@ -2576,7 +2576,7 @@
 void hci_detach(struct hci_unit *);
 int hci_enable(struct hci_unit *);
 void hci_disable(struct hci_unit *);
-struct hci_unit *hci_unit_lookup(bdaddr_t *);
+struct hci_unit *hci_unit_lookup(const bdaddr_t *);
 int hci_send_cmd(struct hci_unit *, uint16_t, void *, uint8_t);
 void hci_num_cmds(struct hci_unit *, uint8_t);
 bool hci_input_event(struct hci_unit *, struct mbuf *);

Index: src/sys/netbt/hci_unit.c
diff -u src/sys/netbt/hci_unit.c:1.12 src/sys/netbt/hci_unit.c:1.13
--- src/sys/netbt/hci_unit.c:1.12	Thu Jun 26 14:17:27 2008
+++ src/sys/netbt/hci_unit.c	Sat Sep 17 08:23:37 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: hci_unit.c,v 1.12 2008/06/26 14:17:27 plunky Exp $	*/
+/*	$NetBSD: hci_unit.c,v 1.13 2011/09/17 08:23:37 plunky Exp $	*/
 
 /*-
  * Copyright (c) 2005 Iain Hibbert.
@@ -31,7 +31,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: hci_unit.c,v 1.12 2008/06/26 14:17:27 plunky Exp $);
+__KERNEL_RCSID(0, $NetBSD: hci_unit.c,v 1.13 2011/09/17 08:23:37 plunky Exp $);
 
 #include sys/param.h
 #include sys/conf.h
@@ -266,7 +266,7 @@
 }
 
 struct hci_unit *
-hci_unit_lookup(bdaddr_t *addr)
+hci_unit_lookup(const bdaddr_t *addr)
 {
 	struct hci_unit *unit;
 



CVS commit: src/external/bsd/file/dist/src

2011-09-17 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sat Sep 17 10:46:52 UTC 2011

Modified Files:
src/external/bsd/file/dist/src: readcdf.c

Log Message:
Define __arraycount if it doesn't exist.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/bsd/file/dist/src/readcdf.c

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

Modified files:

Index: src/external/bsd/file/dist/src/readcdf.c
diff -u src/external/bsd/file/dist/src/readcdf.c:1.4 src/external/bsd/file/dist/src/readcdf.c:1.5
--- src/external/bsd/file/dist/src/readcdf.c:1.4	Fri Sep 16 21:06:27 2011
+++ src/external/bsd/file/dist/src/readcdf.c	Sat Sep 17 10:46:52 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: readcdf.c,v 1.4 2011/09/16 21:06:27 christos Exp $	*/
+/*	$NetBSD: readcdf.c,v 1.5 2011/09/17 10:46:52 joerg Exp $	*/
 
 /*-
  * Copyright (c) 2008 Christos Zoulas
@@ -31,7 +31,7 @@
 #if 0
 FILE_RCSID(@(#)$File: readcdf.c,v 1.26 2011/08/26 13:38:28 christos Exp $)
 #else
-__RCSID($NetBSD: readcdf.c,v 1.4 2011/09/16 21:06:27 christos Exp $);
+__RCSID($NetBSD: readcdf.c,v 1.5 2011/09/17 10:46:52 joerg Exp $);
 #endif
 #endif
 
@@ -44,6 +44,10 @@
 #include cdf.h
 #include magic.h
 
+#ifndef __arraycount
+#define __arraycount(a) (sizeof(a) / sizeof(a[0]))
+#endif
+
 #define NOTMIME(ms) (((ms)-flags  MAGIC_MIME) == 0)
 
 private int



CVS commit: src/lib/libm

2011-09-17 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sat Sep 17 10:51:53 UTC 2011

Modified Files:
src/lib/libm: Makefile
Added Files:
src/lib/libm/man: pow.3

Log Message:
Split out pow(3) from exp(3).


To generate a diff of this commit:
cvs rdiff -u -r1.119 -r1.120 src/lib/libm/Makefile
cvs rdiff -u -r0 -r1.1 src/lib/libm/man/pow.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/libm/Makefile
diff -u src/lib/libm/Makefile:1.119 src/lib/libm/Makefile:1.120
--- src/lib/libm/Makefile:1.119	Tue Sep 13 05:26:47 2011
+++ src/lib/libm/Makefile	Sat Sep 17 10:51:52 2011
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.119 2011/09/13 05:26:47 jruoho Exp $
+#  $NetBSD: Makefile,v 1.120 2011/09/17 10:51:52 jruoho Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -211,7 +211,7 @@
 	erf.3 exp.3 \
 	fabs.3 finite.3 fmod.3 frexp.3 hypot.3 \
 	ieee_test.3 ilogb.3 isinff.3 j0.3 ldexp.3 lgamma.3 log.3 lrint.3 \
-	math.3 modf.3 nextafter.3 \
+	math.3 modf.3 nextafter.3 pow.3 \
 	remainder.3 rint.3 round.3 \
 	scalbn.3 sin.3 sinh.3 sqrt.3 \
 	tan.3 tanh.3 trunc.3 fmax.3 fdim.3
@@ -245,8 +245,7 @@
 MLINKS+=cosh.3 coshf.3
 MLINKS+=erf.3 erff.3 erf.3 erfc.3 erf.3 erfcf.3
 MLINKS+=exp.3 expf.3 exp.3 expm1.3 exp.3 expm1f.3 			\
-	exp.3 exp2.3 exp.3 exp2f.3 	\
-	exp.3 pow.3 exp.3 powf.3
+	exp.3 exp2.3 exp.3 exp2f.3
 MLINKS+=log.3 logf.3 \
 	log.3 log10.3 \
 	log.3 log10f.3 \
@@ -254,6 +253,7 @@
 	log.3 log1pf.3 \
 	log.3 log2.3 \
 	log.3 log2f.3
+MLINKS+=pow.3 powf.3
 MLINKS+=fabs.3 fabsf.3
 MLINKS+=finite.3 finitef.3
 MLINKS+=fmod.3 fmodf.3

Added files:

Index: src/lib/libm/man/pow.3
diff -u /dev/null src/lib/libm/man/pow.3:1.1
--- /dev/null	Sat Sep 17 10:51:53 2011
+++ src/lib/libm/man/pow.3	Sat Sep 17 10:51:53 2011
@@ -0,0 +1,80 @@
+.\ $NetBSD: pow.3,v 1.1 2011/09/17 10:51:53 jruoho Exp $
+.\
+.\ Copyright (c) 2011 Jukka Ruohonen jruoho...@iki.fi
+.\ All rights reserved.
+.\
+.\ Redistribution and use in source and binary forms, with or without
+.\ modification, are permitted provided that the following conditions
+.\ are met:
+.\ 1. Redistributions of source code must retain the above copyright
+.\notice, this list of conditions and the following disclaimer.
+.\ 2. Redistributions in binary form must reproduce the above copyright
+.\notice, this list of conditions and the following disclaimer in the
+.\documentation and/or other materials provided with the distribution.
+.\
+.\ THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+.\ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+.\ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+.\ PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+.\ BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+.\ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+.\ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+.\ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+.\ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+.\ POSSIBILITY OF SUCH DAMAGE.
+.\
+.Dd September 13, 2011
+.Dt POW 3
+.Os
+.Sh NAME
+.Nm pow ,
+.Nm powf
+.Nd power functions
+.Sh LIBRARY
+.Lb libm
+.Sh SYNOPSIS
+.In math.h
+.Ft double
+.Fn pow double x double y
+.Ft float
+.Fn powf float x float y
+.Sh DESCRIPTION
+The
+.Fn pow
+family of functions return
+.Fa x
+raised to the power of
+.Fa y .
+.Pp
+If
+.Fa x
+is negative and
+.Fa y
+is not an integer, the global variable
+.Va errno
+is set to
+.Er EDOM ,
+and on
+.Tn VAX
+a reserved operand fault is generated.
+A portable application should nevertheless ensure that
+.Fa y
+is an integer value whenever
+.Fa x
+is negative.
+.Sh RETURN VALUES
+.\
+.\ XXX: List also the special return values?
+.\
+Upon successful completion, the described functions return
+.Fa x^y .
+.Sh SEE ALSO
+.Xr exp 3 ,
+.Xr log 3
+.Sh STANDARDS
+The described functions conform to
+.St -isoC-99 .
+.Sh HISTORY
+The history of the power functions dates back to
+.At v6 .



CVS commit: src/lib/libm/man

2011-09-17 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sat Sep 17 10:52:52 UTC 2011

Modified Files:
src/lib/libm/man: exp.3

Log Message:
Remove rest of the NOTES and ERRORS and references to pow(3) family.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/lib/libm/man/exp.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/libm/man/exp.3
diff -u src/lib/libm/man/exp.3:1.27 src/lib/libm/man/exp.3:1.28
--- src/lib/libm/man/exp.3:1.27	Tue Sep 13 05:26:47 2011
+++ src/lib/libm/man/exp.3	Sat Sep 17 10:52:52 2011
@@ -27,7 +27,7 @@
 .\
 .\ from: @(#)exp.3	6.12 (Berkeley) 7/31/91
 .\ $FreeBSD: src/lib/msun/man/exp.3,v 1.24 2008/01/18 21:43:00 das Exp $
-.\	$NetBSD: exp.3,v 1.27 2011/09/13 05:26:47 jruoho Exp $
+.\	$NetBSD: exp.3,v 1.28 2011/09/17 10:52:52 jruoho Exp $
 .\
 .Dd September 13, 2011
 .Dt EXP 3
@@ -41,9 +41,7 @@
 .\ .Nm exp2l ,
 .Nm expm1 ,
 .Nm expm1f ,
-.Nm pow ,
-.Nm powf
-.Nd exponential and power functions
+.Nd exponential functions
 .Sh LIBRARY
 .Lb libm
 .Sh SYNOPSIS
@@ -62,10 +60,6 @@
 .Fn expm1 double x
 .Ft float
 .Fn expm1f float x
-.Ft double
-.Fn pow double x double y
-.Ft float
-.Fn powf float x float y
 .Sh DESCRIPTION
 The
 .Fn exp
@@ -92,24 +86,13 @@
 .Fn expm1f
 functions computes the value exp(x)\-1 accurately even for tiny argument
 .Fa x .
-.Pp
-The
-.Fn pow
-and
-.Fn powf
-functions compute the value
-of
-.Ar x
-to the exponent
-.Ar y .
 .Sh RETURN VALUES
 These functions will return the appropriate computation unless an error
 occurs or an argument is out of range.
 The functions
-.Fn exp ,
-.Fn expm1
+.Fn exp
 and
-.Fn pow
+.Fn expm1
 detect if the computed value will overflow,
 set the global variable
 .Va errno
@@ -117,127 +100,11 @@
 .Er ERANGE
 and cause a reserved operand fault on a
 .Tn VAX .
-The function
-.Fn pow x y
-checks to see if
-.Fa x
-\*[Lt] 0 and
-.Fa y
-is not an integer, in the event this is true,
-the global variable
-.Va errno
-is set to
-.Er EDOM
-and on the
-.Tn VAX
-generate a reserved operand fault.
-.Sh ERRORS
-The values of
-.Fn exp x ,
-.Fn expm1 x ,
-and
-.Fn exp2 x ,
-are exact provided that they are representable.
-Otherwise the error in these functions is generally below one
-.Em ulp .
-The error in
-.Fn pow x y
-is below about 2
-.Em ulps
-when its
-magnitude is moderate, but increases as
-.Fn pow x y
-approaches
-the over/underflow thresholds until almost as many bits could be
-lost as are occupied by the floating\-point format's exponent
-field; that is 8 bits for
-.Tn VAX D
-and 11 bits for IEEE 754 Double.
-No such drastic loss has been exposed by testing; the worst
-errors observed have been below 20
-.Em ulps
-for
-.Tn VAX D ,
-300
-.Em ulps
-for
-.Tn IEEE
-754 Double.
-Moderate values of
-.Fn pow x y
-are accurate enough that
-.Fn pow integer integer
-is exact until it is bigger than 2**56 on a
-.Tn VAX ,
-2**53 for
-.Tn IEEE
-754.
-.Sh NOTES
-The function
-.Fn pow x 0
-returns x**0 = 1 for all x including x = 0,
-.if n \
-Infinity
-.if t \
-\(if
-(not found on a
-.Tn VAX ) ,
-and
-.Em NaN
-(the reserved
-operand on a
-.Tn VAX ) .
-Previous implementations of pow may
-have defined x**0 to be undefined in some or all of these
-cases.
-Here are reasons for returning x**0 = 1 always:
-.Bl -enum -width indent
-.It
-Any program that already tests whether x is zero (or
-infinite or \*(Na) before computing x**0 cannot care
-whether 0**0 = 1 or not.
-Any program that depends
-upon 0**0 to be invalid is dubious anyway since that
-expression's meaning and, if invalid, its consequences
-vary from one computer system to another.
-.It
-Some Algebra texts (e.g. Sigler's) define x**0 = 1 for
-all x, including x = 0.
-This is compatible with the convention that accepts a[0]
-as the value of polynomial
-.Bd -literal -offset indent
-p(x) = a[0]\(**x**0 + a[1]\(**x**1 + a[2]\(**x**2 +...+ a[n]\(**x**n
-.Ed
-.Pp
-at x = 0 rather than reject a[0]\(**0**0 as invalid.
-.It
-Analysts will accept 0**0 = 1 despite that x**y can
-approach anything or nothing as x and y approach 0
-independently.
-The reason for setting 0**0 = 1 anyway is this:
-.Bd -filled -offset indent
-If x(z) and y(z) are
-.Em any
-functions analytic (expandable
-in power series) in z around z = 0, and if there
-x(0) = y(0) = 0, then x(z)**y(z) \(-\*[Gt] 1 as z \(-\*[Gt] 0.
-.Ed
-.It
-If 0**0 = 1, then
-.if n \
-infinity**0 = 1/0**0 = 1 too; and
-.if t \
-\(if**0 = 1/0**0 = 1 too; and
-then \*(Na**0 = 1 too because x**0 = 1 for all finite
-and infinite x, i.e., independently of x.
-.El
 .Sh SEE ALSO
 .Xr math 3
 .Sh STANDARDS
 The
 .Fn exp
-and
-.Fn pow
 functions conform to
 .St -ansiC .
 The
@@ -245,18 +112,14 @@
 .Fn exp2f ,
 .Fn expf ,
 .Fn expm1 ,
-.Fn expm1f ,
 and
-.Fn powf
+.Fn expm1f
 functions conform to
 .St -isoC-99 .
 .Sh HISTORY
-A
+The
 .Fn exp
-and
-.Fn pow
-functions
-appeared in
+functions appeared in
 .At v6 .
 The
 .Fn expm1



CVS commit: [jym-xensuspend] src/sys/arch/x86/x86

2011-09-17 Thread Jean-Yves Migeon
Module Name:src
Committed By:   jym
Date:   Sat Sep 17 10:59:58 UTC 2011

Modified Files:
src/sys/arch/x86/x86 [jym-xensuspend]: pmap.c

Log Message:
Fix comment, as noted by cherry@.


To generate a diff of this commit:
cvs rdiff -u -r1.77.2.12 -r1.77.2.13 src/sys/arch/x86/x86/pmap.c

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

Modified files:

Index: src/sys/arch/x86/x86/pmap.c
diff -u src/sys/arch/x86/x86/pmap.c:1.77.2.12 src/sys/arch/x86/x86/pmap.c:1.77.2.13
--- src/sys/arch/x86/x86/pmap.c:1.77.2.12	Sat Aug 27 15:37:30 2011
+++ src/sys/arch/x86/x86/pmap.c	Sat Sep 17 10:59:58 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.c,v 1.77.2.12 2011/08/27 15:37:30 jym Exp $	*/
+/*	$NetBSD: pmap.c,v 1.77.2.13 2011/09/17 10:59:58 jym Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
@@ -171,7 +171,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: pmap.c,v 1.77.2.12 2011/08/27 15:37:30 jym Exp $);
+__KERNEL_RCSID(0, $NetBSD: pmap.c,v 1.77.2.13 2011/09/17 10:59:58 jym Exp $);
 
 #include opt_user_ldt.h
 #include opt_lockdebug.h
@@ -4434,10 +4434,10 @@
  * handle them correctly during save/restore, leading to incorrect page
  * tracking and pinning during restore.
  * For save/restore to succeed, two functions are introduced:
- * - pmap_map_shadow_entries(), used by resume code to set the last entry
- *   of PDIR_SLOT_PTE so that it points to the correct L2 shadow page
- * - pmap_unmap_shadow_entries(), used by suspend code to clear all
- *   PDIR_SLOT_PTE entries pointing to L2 shadow entries
+ * - pmap_map_recursive_entries(), used by resume code to set the recursive
+ *   mapping entries to their correct value
+ * - pmap_unmap_recursive_entries(), used by suspend code to clear all
+ *   PDIR_SLOT_PTE entries
  */
 void
 pmap_map_recursive_entries(void)



CVS commit: src

2011-09-17 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sat Sep 17 12:00:51 UTC 2011

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/lib/libm: Makefile
Added Files:
src/tests/lib/libm: t_erf.c

Log Message:
Few tests for the error functions.


To generate a diff of this commit:
cvs rdiff -u -r1.386 -r1.387 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.10 -r1.11 src/tests/lib/libm/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/lib/libm/t_erf.c

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

Modified files:

Index: src/distrib/sets/lists/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.386 src/distrib/sets/lists/tests/mi:1.387
--- src/distrib/sets/lists/tests/mi:1.386	Sat Sep 17 08:15:43 2011
+++ src/distrib/sets/lists/tests/mi	Sat Sep 17 12:00:50 2011
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.386 2011/09/17 08:15:43 jruoho Exp $
+# $NetBSD: mi,v 1.387 2011/09/17 12:00:50 jruoho Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -548,6 +548,7 @@
 ./usr/libdata/debug/usr/tests/lib/libm	tests-lib-debug
 ./usr/libdata/debug/usr/tests/lib/libm/t_ceil.debug			tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libm/t_cos.debug			tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libm/t_erf.debug			tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libm/t_floor.debug			tests-obsolete		obsolete
 ./usr/libdata/debug/usr/tests/lib/libm/t_infinity.debug			tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libm/t_ldexp.debug			tests-lib-debug		debug,atf
@@ -2258,6 +2259,7 @@
 ./usr/tests/lib/libm/Atffile			tests-lib-tests		atf
 ./usr/tests/lib/libm/t_ceil			tests-lib-tests		atf
 ./usr/tests/lib/libm/t_cos			tests-lib-tests		atf
+./usr/tests/lib/libm/t_erf			tests-lib-tests		atf
 ./usr/tests/lib/libm/t_floor			tests-obsolete		obsolete
 ./usr/tests/lib/libm/t_infinity			tests-lib-tests		atf
 ./usr/tests/lib/libm/t_ldexp			tests-lib-tests		atf

Index: src/tests/lib/libm/Makefile
diff -u src/tests/lib/libm/Makefile:1.10 src/tests/lib/libm/Makefile:1.11
--- src/tests/lib/libm/Makefile:1.10	Sat Sep 17 08:15:43 2011
+++ src/tests/lib/libm/Makefile	Sat Sep 17 12:00:50 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2011/09/17 08:15:43 jruoho Exp $
+# $NetBSD: Makefile,v 1.11 2011/09/17 12:00:50 jruoho Exp $
 
 .include bsd.own.mk
 
@@ -6,6 +6,7 @@
 
 TESTS_C+=	t_ceil
 TESTS_C+=	t_cos
+TESTS_C+=	t_erf
 TESTS_C+=	t_infinity
 TESTS_C+=	t_ldexp
 TESTS_C+=	t_log

Added files:

Index: src/tests/lib/libm/t_erf.c
diff -u /dev/null src/tests/lib/libm/t_erf.c:1.1
--- /dev/null	Sat Sep 17 12:00:51 2011
+++ src/tests/lib/libm/t_erf.c	Sat Sep 17 12:00:50 2011
@@ -0,0 +1,331 @@
+/* $NetBSD: t_erf.c,v 1.1 2011/09/17 12:00:50 jruoho Exp $ */
+
+/*-
+ * Copyright (c) 2011 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Jukka Ruohonen.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+#include sys/cdefs.h
+__RCSID($NetBSD: t_erf.c,v 1.1 2011/09/17 12:00:50 jruoho Exp $);
+
+#include atf-c.h
+#include math.h
+
+/*
+ * erf(3)
+ */
+ATF_TC(erf_nan);
+ATF_TC_HEAD(erf_nan, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test erf(NaN) == NaN);
+}
+
+ATF_TC_BODY(erf_nan, tc)
+{
+#ifndef __vax__
+	const double x = 0.0L / 0.0L;
+
+	ATF_CHECK(isnan(erf(x)) != 0);
+#endif
+}
+
+ATF_TC(erf_inf_neg);
+ATF_TC_HEAD(erf_inf_neg, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test erf(-Inf) == -1.0);
+}
+
+ATF_TC_BODY(erf_inf_neg, tc)
+{
+#ifndef __vax__
+	const double x = -1.0L / 0.0L;
+
+	if (erf(x) != -1.0)
+		atf_tc_fail_nonfatal(erf(-Inf) != 

CVS commit: src/tests/lib/libm

2011-09-17 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sat Sep 17 12:12:19 UTC 2011

Modified Files:
src/tests/lib/libm: t_ceil.c

Log Message:
Add more cases.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libm/t_ceil.c

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

Modified files:

Index: src/tests/lib/libm/t_ceil.c
diff -u src/tests/lib/libm/t_ceil.c:1.6 src/tests/lib/libm/t_ceil.c:1.7
--- src/tests/lib/libm/t_ceil.c:1.6	Mon Sep 12 17:15:54 2011
+++ src/tests/lib/libm/t_ceil.c	Sat Sep 17 12:12:19 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ceil.c,v 1.6 2011/09/12 17:15:54 jruoho Exp $ */
+/* $NetBSD: t_ceil.c,v 1.7 2011/09/17 12:12:19 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: t_ceil.c,v 1.6 2011/09/12 17:15:54 jruoho Exp $);
+__RCSID($NetBSD: t_ceil.c,v 1.7 2011/09/17 12:12:19 jruoho Exp $);
 
 #include atf-c.h
 #include math.h
@@ -42,6 +42,9 @@
 #define SMALL_NUM	1.0e-40
 #endif
 
+/*
+ * ceil(3)
+ */
 ATF_TC(ceil_basic);
 ATF_TC_HEAD(ceil_basic, tc)
 {
@@ -57,6 +60,92 @@
 	ATF_CHECK(fabs(ceil(y) - 1)  SMALL_NUM);
 }
 
+ATF_TC(ceil_nan);
+ATF_TC_HEAD(ceil_nan, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test ceil(NaN) == NaN);
+}
+
+ATF_TC_BODY(ceil_nan, tc)
+{
+#ifndef __vax__
+	const double x = 0.0L / 0.0L;
+
+	ATF_CHECK(isnan(ceil(x)) != 0);
+#endif
+}
+
+ATF_TC(ceil_inf_neg);
+ATF_TC_HEAD(ceil_inf_neg, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test ceil(-Inf) == -Inf);
+}
+
+ATF_TC_BODY(ceil_inf_neg, tc)
+{
+#ifndef __vax__
+	const double x = -1.0L / 0.0L;
+	double y = ceil(x);
+
+	if (isinf(y) == 0 || signbit(y) == 0)
+		atf_tc_fail_nonfatal(ceil(-Inf) != -Inf);
+#endif
+}
+
+ATF_TC(ceil_inf_pos);
+ATF_TC_HEAD(ceil_inf_pos, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test ceil(+Inf) == +Inf);
+}
+
+ATF_TC_BODY(ceil_inf_pos, tc)
+{
+#ifndef __vax__
+	const double x = 1.0L / 0.0L;
+	double y = ceil(x);
+
+	if (isinf(y) == 0 || signbit(y) != 0)
+		atf_tc_fail_nonfatal(ceil(+Inf) != +Inf);
+#endif
+}
+
+ATF_TC(ceil_zero_neg);
+ATF_TC_HEAD(ceil_zero_neg, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test ceil(-0.0) == -0.0);
+}
+
+ATF_TC_BODY(ceil_zero_neg, tc)
+{
+#ifndef __vax__
+	const double x = -0.0L;
+	double y = ceil(x);
+
+	if (fabs(y)  0.0 || signbit(y) == 0)
+		atf_tc_fail_nonfatal(ceil(-0.0) != -0.0);
+#endif
+}
+
+ATF_TC(ceil_zero_pos);
+ATF_TC_HEAD(ceil_zero_pos, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test ceil(+0.0) == +0.0);
+}
+
+ATF_TC_BODY(ceil_zero_pos, tc)
+{
+#ifndef __vax__
+	const double x = 0.0L;
+	double y = ceil(x);
+
+	if (fabs(y)  0.0 || signbit(y) != 0)
+		atf_tc_fail_nonfatal(ceil(+0.0) != +0.0);
+#endif
+}
+
+/*
+ * ceilf(3)
+ */
 ATF_TC(ceilf_basic);
 ATF_TC_HEAD(ceilf_basic, tc)
 {
@@ -72,6 +161,92 @@
 	ATF_CHECK(fabsf(ceilf(y) - 1)  SMALL_NUM);
 }
 
+ATF_TC(ceilf_nan);
+ATF_TC_HEAD(ceilf_nan, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test ceilf(NaN) == NaN);
+}
+
+ATF_TC_BODY(ceilf_nan, tc)
+{
+#ifndef __vax__
+	const float x = 0.0L / 0.0L;
+
+	ATF_CHECK(isnan(ceilf(x)) != 0);
+#endif
+}
+
+ATF_TC(ceilf_inf_neg);
+ATF_TC_HEAD(ceilf_inf_neg, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test ceilf(-Inf) == -Inf);
+}
+
+ATF_TC_BODY(ceilf_inf_neg, tc)
+{
+#ifndef __vax__
+	const float x = -1.0L / 0.0L;
+	float y = ceilf(x);
+
+	if (isinf(y) == 0 || signbit(y) == 0)
+		atf_tc_fail_nonfatal(ceilf(-Inf) != -Inf);
+#endif
+}
+
+ATF_TC(ceilf_inf_pos);
+ATF_TC_HEAD(ceilf_inf_pos, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test ceilf(+Inf) == +Inf);
+}
+
+ATF_TC_BODY(ceilf_inf_pos, tc)
+{
+#ifndef __vax__
+	const float x = 1.0L / 0.0L;
+	float y = ceilf(x);
+
+	if (isinf(y) == 0 || signbit(y) != 0)
+		atf_tc_fail_nonfatal(ceilf(+Inf) != +Inf);
+#endif
+}
+
+ATF_TC(ceilf_zero_neg);
+ATF_TC_HEAD(ceilf_zero_neg, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test ceilf(-0.0) == -0.0);
+}
+
+ATF_TC_BODY(ceilf_zero_neg, tc)
+{
+#ifndef __vax__
+	const float x = -0.0L;
+	float y = ceilf(x);
+
+	if (fabsf(y)  0.0 || signbit(y) == 0)
+		atf_tc_fail_nonfatal(ceilf(-0.0) != -0.0);
+#endif
+}
+
+ATF_TC(ceilf_zero_pos);
+ATF_TC_HEAD(ceilf_zero_pos, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test ceilf(+0.0) == +0.0);
+}
+
+ATF_TC_BODY(ceilf_zero_pos, tc)
+{
+#ifndef __vax__
+	const float x = 0.0L;
+	float y = ceilf(x);
+
+	if (fabsf(y)  0.0 || signbit(y) != 0)
+		atf_tc_fail_nonfatal(ceilf(+0.0) != +0.0);
+#endif
+}
+
+/*
+ * floor(3)
+ */
 ATF_TC(floor_basic);
 ATF_TC_HEAD(floor_basic, tc)
 {
@@ -87,6 +262,92 @@
 	ATF_CHECK(floor(y)  SMALL_NUM);
 }
 
+ATF_TC(floor_nan);
+ATF_TC_HEAD(floor_nan, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test floor(NaN) == NaN);
+}
+
+ATF_TC_BODY(floor_nan, tc)
+{
+#ifndef __vax__
+	const double x = 0.0L / 0.0L;
+
+	ATF_CHECK(isnan(floor(x)) != 0);
+#endif
+}
+
+ATF_TC(floor_inf_neg);
+ATF_TC_HEAD(floor_inf_neg, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test floor(-Inf) == -Inf);
+}
+

CVS commit: src/lib/libm/man

2011-09-17 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sat Sep 17 13:28:51 UTC 2011

Modified Files:
src/lib/libm/man: math.3

Log Message:
Convert to mdoc.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/lib/libm/man/math.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/libm/man/math.3
diff -u src/lib/libm/man/math.3:1.22 src/lib/libm/man/math.3:1.23
--- src/lib/libm/man/math.3:1.22	Mon Feb 26 12:10:56 2007
+++ src/lib/libm/man/math.3	Sat Sep 17 13:28:51 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: math.3,v 1.22 2007/02/26 12:10:56 drochner Exp $
+.\	$NetBSD: math.3,v 1.23 2011/09/17 13:28:51 wiz Exp $
 .\
 .\ Copyright (c) 1985 Regents of the University of California.
 .\ All rights reserved.
@@ -29,103 +29,90 @@
 .\
 .\	from: @(#)math.3	6.10 (Berkeley) 5/6/91
 .\
-.TH MATH 3 February 23, 2007
-.UC 4
-.ds up \fIulp\fR
-.ds nn \fINaN\fR
-.de If
-.if n \\
-\\$1Infinity\\$2
-.if t \\
-\\$1\\(if\\$2
-..
-.SH NAME
-math \- introduction to mathematical library functions
-.SH DESCRIPTION
-These functions constitute the C math library,
-.I libm.
-The link editor searches this library under the \*(lq\-lm\*(rq option.
+.Dd February 23, 2007
+.Dt MATH 3
+.Os
+.Sh NAME
+.Nm math
+.Nd introduction to mathematical library functions
+.Sh LIBRARY
+.Lb libm
+.Sh SYNOPSIS
+.In math.h
+.Sh DESCRIPTION
+These functions constitute the C
+.Lb libm .
 Declarations for these functions may be obtained from the include file
-.RI \*[Lt] math.h \*[Gt].
+.In math.h .
 .\ The Fortran math library is described in ``man 3f intro''.
-.SH LIST OF FUNCTIONS
-.sp 2
-.nf
-.ta \w'copysign'u+2n +\w'lgamma.3'u+10n +\w'inverse trigonometric func'u
-\fIName\fP	\fIAppears on Page\fP	\fIDescription\fP	\fIError Bound (ULPs)\fP
-.ta \w'copysign'u+4n +\w'lgamma.3'u+4n +\w'inverse trigonometric function'u+6nC
-.sp 5p
-acos	acos.3	inverse trigonometric function	3
-acosh	acosh.3	inverse hyperbolic function	3
-asin	asin.3	inverse trigonometric function	3
-asinh	asinh.3	inverse hyperbolic function	3
-atan	atan.3	inverse trigonometric function	1
-atanh	atanh.3	inverse hyperbolic function	3
-atan2	atan2.3	inverse trigonometric function	2
-cbrt	sqrt.3	cube root	1
-ceil	ceil.3	integer no less than	0
-copysign	ieee.3	copy sign bit	0
-cos	cos.3	trigonometric function	1
-cosh	cosh.3	hyperbolic function	3
-erf	erf.3	error function	???
-erfc	erf.3	complementary error function	???
-exp	exp.3	exponential	1
-expm1	exp.3	exp(x)\-1	1
-fabs	fabs.3	absolute value	0
-finite	ieee.3	test for finity	0
-floor	floor.3	integer no greater than	0
-fmod	fmod.3	remainder	???
-hypot	hypot.3	Euclidean distance	1
-ilogb	ieee.3	exponent extraction	0
-isinf	isinf.3	test for infinity	0
-isnan	isnan.3	test for not-a-number	0
-j0	j0.3	Bessel function	???
-j1	j0.3	Bessel function	???
-jn	j0.3	Bessel function	???
-lgamma	lgamma.3	log gamma function	???
-log	exp.3	natural logarithm	1
-log10	exp.3	logarithm to base 10	3
-log1p	exp.3	log(1+x)	1
-nan	nan.3	return quiet \*(nn	0
-nextafter	ieee.3	next representable number	0
-pow	exp.3	exponential x**y	60\-500
-remainder	ieee.3	remainder	0
-rint	rint.3	round to nearest integer	0
-scalbn	ieee.3	exponent adjustment	0
-sin	sin.3	trigonometric function	1
-sinh	sinh.3	hyperbolic function	3
-sqrt	sqrt.3	square root	1
-tan	tan.3	trigonometric function	3
-tanh	tanh.3	hyperbolic function	3
-trunc	trunc.3	nearest integral value	3
-y0	j0.3	Bessel function	???
-y1	j0.3	Bessel function	???
-yn	j0.3	Bessel function	???
-.ta
-.fi
-.SH LIST OF DEFINED VALUES
-.sp 2
-.nf
-.ta \w'M_2_SQRTPI'u+2n +\w'1.12837916709551257390'u+4n +\w'2/sqrt(pi)'u+6nC
-\fIName\fP	\fIValue\fP	\fIDescription\fP
-.ta \w'M_2_SQRTPI'u+2n +\w'1.12837916709551257390'u+4n +\w'2/sqrt(pi)'u+6nC
-.sp 3p
-M_E	2.7182818284590452354	e
-M_LOG2E	1.4426950408889634074	log 2e
-M_LOG10E	0.43429448190325182765	log 10e
-M_LN2	0.69314718055994530942	log e2
-M_LN10	2.30258509299404568402	log e10
-M_PI	3.14159265358979323846	pi
-M_PI_2	1.57079632679489661923	pi/2
-M_PI_4	0.78539816339744830962	pi/4
-M_1_PI	0.31830988618379067154	1/pi
-M_2_PI	0.63661977236758134308	2/pi
-M_2_SQRTPI	1.12837916709551257390	2/sqrt(pi)
-M_SQRT2	1.41421356237309504880	sqrt(2)
-M_SQRT1_2	0.70710678118654752440	1/sqrt(2)
-.ta
-.fi
-.SH NOTES
+.Ss List of Functions
+.Bl -column copysignX gammaX3XX inverse trigonometric funcX
+.It Sy Name Ta Sy Man page Ta Sy Description Ta Sy Error Bound Dv ( ULP Ns No s)
+.It acos	Xr acos 3	inverse trigonometric function	3
+.It acosh	Xr acosh 3	inverse hyperbolic function	3
+.It asin	Xr asin 3	inverse trigonometric function	3
+.It asinh	Xr asinh 3	inverse hyperbolic function	3
+.It atan	Xr atan 3	inverse trigonometric function	1
+.It atanh	Xr atanh 3	inverse hyperbolic function	3
+.It atan2	atan2.3	inverse trigonometric function	2
+.It cbrt	Xr sqrt 3	cube root	1
+.It ceil	Xr ceil 3	integer no less than	0
+.It copysign	Xr ieee 3	copy sign bit	0
+.It cos	Xr cos 3	trigonometric function	1

CVS commit: src/libexec/utmp_update

2011-09-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Sep 17 14:25:43 UTC 2011

Modified Files:
src/libexec/utmp_update: utmp_update.c

Log Message:
add printflike


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/libexec/utmp_update/utmp_update.c

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

Modified files:

Index: src/libexec/utmp_update/utmp_update.c
diff -u src/libexec/utmp_update/utmp_update.c:1.10 src/libexec/utmp_update/utmp_update.c:1.11
--- src/libexec/utmp_update/utmp_update.c:1.10	Fri Sep 16 21:50:54 2011
+++ src/libexec/utmp_update/utmp_update.c	Sat Sep 17 10:25:43 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: utmp_update.c,v 1.10 2011/09/17 01:50:54 christos Exp $	 */
+/*	$NetBSD: utmp_update.c,v 1.11 2011/09/17 14:25:43 christos Exp $	 */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 #include sys/cdefs.h
 
-__RCSID($NetBSD: utmp_update.c,v 1.10 2011/09/17 01:50:54 christos Exp $);
+__RCSID($NetBSD: utmp_update.c,v 1.11 2011/09/17 14:25:43 christos Exp $);
 
 #include sys/types.h
 #include sys/param.h
@@ -50,7 +50,7 @@
 #include errno.h
 #include syslog.h
 
-static __dead void
+static __dead __printflike(2, 3) void
 logerr(int e, const char *fmt, ...)
 {
 	va_list sap, eap;



CVS commit: src/etc/powerd/scripts

2011-09-17 Thread Jean-Yves Migeon
Module Name:src
Committed By:   jym
Date:   Sat Sep 17 14:44:18 UTC 2011

Modified Files:
src/etc/powerd/scripts: sleep_button

Log Message:
- use -q to test for presence of a sysctl(7) variable silently
- modify powerd(8) sleep_button script so it can handle the soon-to-be
Xen suspend command.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/etc/powerd/scripts/sleep_button

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

Modified files:

Index: src/etc/powerd/scripts/sleep_button
diff -u src/etc/powerd/scripts/sleep_button:1.8 src/etc/powerd/scripts/sleep_button:1.9
--- src/etc/powerd/scripts/sleep_button:1.8	Fri May 27 09:28:42 2011
+++ src/etc/powerd/scripts/sleep_button	Sat Sep 17 14:44:18 2011
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#	$NetBSD: sleep_button,v 1.8 2011/05/27 09:28:42 plunky Exp $
+#	$NetBSD: sleep_button,v 1.9 2011/09/17 14:44:18 jym Exp $
 #
 # Generic script for sleep button events.
 #
@@ -17,8 +17,10 @@
 	/etc/rc.d/network stop
 	/etc/rc.d/wpa_supplicant stop
 
-	if /sbin/sysctl hw.acpi.sleep.state /dev/null 21; then
+	if /sbin/sysctl -q hw.acpi.sleep.state; then
 		/sbin/sysctl -w hw.acpi.sleep.state=3
+	elif /sbin/sysctl -q machdep.xen.suspend; then
+		/sbin/sysctl -w machdep.xen.suspend=1
 	else
 		sleep 1
 		if /etc/rc.d/apmd onestatus /dev/null ; then



CVS commit: src/usr.bin/tftp

2011-09-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Sep 17 15:15:46 UTC 2011

Modified Files:
src/usr.bin/tftp: extern.h main.c tftp.c tftpsubs.c tftpsubs.h

Log Message:
ansify, const, knf


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/tftp/extern.h
cvs rdiff -u -r1.28 -r1.29 src/usr.bin/tftp/main.c
cvs rdiff -u -r1.31 -r1.32 src/usr.bin/tftp/tftp.c
cvs rdiff -u -r1.11 -r1.12 src/usr.bin/tftp/tftpsubs.c
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/tftp/tftpsubs.h

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

Modified files:

Index: src/usr.bin/tftp/extern.h
diff -u src/usr.bin/tftp/extern.h:1.6 src/usr.bin/tftp/extern.h:1.7
--- src/usr.bin/tftp/extern.h:1.6	Fri Jul 21 13:49:00 2006
+++ src/usr.bin/tftp/extern.h	Sat Sep 17 11:15:46 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: extern.h,v 1.6 2006/07/21 17:49:00 jmcneill Exp $	*/
+/*	$NetBSD: extern.h,v 1.7 2011/09/17 15:15:46 christos Exp $	*/
 
 /*
  * Copyright (c) 1993
@@ -47,5 +47,5 @@
 extern	ushort	mcmasterslave;
 extern  struct	sockaddr_storage peeraddr; /* filled in by main */
 
-void	recvfile __P((int, char *, char *));
-void	sendfile __P((int, char *, char *));
+void	recvfile(int, const char *, const char *);
+void	sendfile(int, const char *, const char *);

Index: src/usr.bin/tftp/main.c
diff -u src/usr.bin/tftp/main.c:1.28 src/usr.bin/tftp/main.c:1.29
--- src/usr.bin/tftp/main.c:1.28	Fri Sep 16 23:09:51 2011
+++ src/usr.bin/tftp/main.c	Sat Sep 17 11:15:46 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.28 2011/09/17 03:09:51 minskim Exp $	*/
+/*	$NetBSD: main.c,v 1.29 2011/09/17 15:15:46 christos Exp $	*/
 
 /*
  * Copyright (c) 1983, 1993
@@ -36,7 +36,7 @@
 #if 0
 static char sccsid[] = @(#)main.c	8.1 (Berkeley) 6/6/93;
 #else
-__RCSID($NetBSD: main.c,v 1.28 2011/09/17 03:09:51 minskim Exp $);
+__RCSID($NetBSD: main.c,v 1.29 2011/09/17 15:15:46 christos Exp $);
 #endif
 #endif /* not lint */
 
@@ -46,6 +46,7 @@
  * TFTP User Program -- Command Interface.
  */
 #include sys/types.h
+#include sys/param.h
 #include sys/socket.h
 
 #include netinet/in.h
@@ -77,74 +78,78 @@
 int	verbose;
 int	tsize=0;
 int	tout=0;
-size_t	def_blksize=SEGSIZE;
-size_t	blksize=SEGSIZE;
+size_t	def_blksize = SEGSIZE;
+size_t	blksize = SEGSIZE;
 in_addr_t	mcaddr = INADDR_NONE;
 uint16_t	mcport;
+u_int	def_rexmtval = TIMEOUT;
+u_int	rexmtval = TIMEOUT;
 ushort	mcmasterslave;
-int	connected;
-char	mode[32];
-char	line[LBUFLEN];
-int	margc;
-char	*margv[20];
-const	char *prompt = tftp;
-jmp_buf	toplevel;
-
-void	get __P((int, char **));
-void	help __P((int, char **));
-void	modecmd __P((int, char **));
-void	put __P((int, char **));
-__dead static void	quit __P((int, char **));
-void	setascii __P((int, char **));
-void	setbinary __P((int, char **));
-void	setpeer0 __P((const char *, const char *));
-void	setpeer __P((int, char **));
-void	setrexmt __P((int, char **));
-void	settimeout __P((int, char **));
-void	settrace __P((int, char **));
-void	setverbose __P((int, char **));
-void	setblksize __P((int, char **));
-void	settsize __P((int, char **));
-void	settimeoutopt __P((int, char **));
-void	status __P((int, char **));
-char	*tail __P((char *));
-int	main __P((int, char *[]));
-__dead static void	intr __P((int));
-const	struct cmd *getcmd __P((char *));
-
-static __dead void command __P((void));
-
-static void getusage __P((char *));
-static void makeargv __P((void));
-static void putusage __P((char *));
-static void settftpmode __P((const char *));
+int	maxtimeout = 5 * TIMEOUT;
+
+static int	connected;
+static char	mode[32];
+static char	line[LBUFLEN];
+static int	margc;
+static char	*margv[20];
+static const	char *prompt = tftp;
+static charhostname[MAXHOSTNAMELEN];
+static jmp_buf	toplevel;
+
+static void	get(int, char **);
+static void	help(int, char **);
+static void	modecmd(int, char **);
+static void	put(int, char **);
+static __dead void quit(int, char **);
+static void	setascii(int, char **);
+static void	setbinary(int, char **);
+static void	setpeer0(const char *, const char *);
+static void	setpeer(int, char **);
+static void	setrexmt(int, char **);
+static void	settimeout(int, char **);
+static void	settrace(int, char **);
+static void	setverbose(int, char **);
+static void	setblksize(int, char **);
+static void	settsize(int, char **);
+static void	settimeoutopt(int, char **);
+static void	status(int, char **);
+static char	*tail(char *);
+static __dead void intr(int);
+static const	struct cmd *getcmd(const char *);
+
+static __dead void command(void);
+
+static void getUsage(char *);
+static void makeargv(void);
+static void putUsage(const char *);
+static void settftpmode(const char *);
 
-#define HELPINDENT (sizeof(connect))
+#define HELPINDENT sizeof(connect)
 
 struct cmd {
 	const char *name;
 	const char *help;
-	void	(*handler) __P((int, char **));
+	void	(*handler)(int, char **);
 };
 
-const char vhelp[] = toggle verbose mode;
-const char thelp[] = 

CVS commit: src/lib/libc/stdlib

2011-09-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Sep 17 16:54:41 UTC 2011

Modified Files:
src/lib/libc/stdlib: hcreate.c

Log Message:
remove the advertising clause so it can be used by the OpenJDK.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/libc/stdlib/hcreate.c

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/hcreate.c
diff -u src/lib/libc/stdlib/hcreate.c:1.7 src/lib/libc/stdlib/hcreate.c:1.8
--- src/lib/libc/stdlib/hcreate.c:1.7	Wed Sep 14 19:33:51 2011
+++ src/lib/libc/stdlib/hcreate.c	Sat Sep 17 12:54:39 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: hcreate.c,v 1.7 2011/09/14 23:33:51 christos Exp $ */
+/* $NetBSD: hcreate.c,v 1.8 2011/09/17 16:54:39 christos Exp $ */
 
 /*
  * Copyright (c) 2001 Christopher G. Demetriou
@@ -12,12 +12,7 @@
  * 2. Redistributions in binary form must reproduce the above copyright
  *notice, this list of conditions and the following disclaimer in the
  *documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *must display the following acknowledgement:
- *  This product includes software developed for the
- *  NetBSD Project.  See http://www.NetBSD.org/ for
- *  information about NetBSD.
- * 4. The name of the author may not be used to endorse or promote products
+ * 3. The name of the author may not be used to endorse or promote products
  *derived from this software without specific prior written permission.
  * 
  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
@@ -48,7 +43,7 @@
 
 #include sys/cdefs.h
 #if defined(LIBC_SCCS)  !defined(lint)
-__RCSID($NetBSD: hcreate.c,v 1.7 2011/09/14 23:33:51 christos Exp $);
+__RCSID($NetBSD: hcreate.c,v 1.8 2011/09/17 16:54:39 christos Exp $);
 #endif /* LIBC_SCCS and not lint */
 
 #if !defined(lint)



CVS commit: src/sys/arch/amiga

2011-09-17 Thread Radoslaw Kujawa
Module Name:src
Committed By:   rkujawa
Date:   Sat Sep 17 16:55:34 UTC 2011

Modified Files:
src/sys/arch/amiga/conf: DRACO GENERIC GENERIC.in INSTALL files.amiga
src/sys/arch/amiga/dev: zbus.c
src/sys/arch/amiga/include: pci_machdep.h
Added Files:
src/sys/arch/amiga/pci: mppb.c mppbreg.h

Log Message:
Add driver for Prometheus PCI bridge.
Change approved by phx.


To generate a diff of this commit:
cvs rdiff -u -r1.140 -r1.141 src/sys/arch/amiga/conf/DRACO
cvs rdiff -u -r1.270 -r1.271 src/sys/arch/amiga/conf/GENERIC
cvs rdiff -u -r1.82 -r1.83 src/sys/arch/amiga/conf/GENERIC.in
cvs rdiff -u -r1.92 -r1.93 src/sys/arch/amiga/conf/INSTALL
cvs rdiff -u -r1.146 -r1.147 src/sys/arch/amiga/conf/files.amiga
cvs rdiff -u -r1.64 -r1.65 src/sys/arch/amiga/dev/zbus.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/amiga/include/pci_machdep.h
cvs rdiff -u -r0 -r1.1 src/sys/arch/amiga/pci/mppb.c \
src/sys/arch/amiga/pci/mppbreg.h

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

Modified files:

Index: src/sys/arch/amiga/conf/DRACO
diff -u src/sys/arch/amiga/conf/DRACO:1.140 src/sys/arch/amiga/conf/DRACO:1.141
--- src/sys/arch/amiga/conf/DRACO:1.140	Thu Aug  4 17:48:50 2011
+++ src/sys/arch/amiga/conf/DRACO	Sat Sep 17 16:55:34 2011
@@ -1,9 +1,9 @@
-# $NetBSD: DRACO,v 1.140 2011/08/04 17:48:50 rkujawa Exp $
+# $NetBSD: DRACO,v 1.141 2011/09/17 16:55:34 rkujawa Exp $
 #
 # This file was automatically created.
 # Changes will be lost when make is run in this directory.
 #
-# Created from: # NetBSD: GENERIC.in,v 1.81 2011/07/01 15:46:30 rkujawa Exp $
+# Created from: # NetBSD: GENERIC.in,v 1.82 2011/08/04 17:48:51 rkujawa Exp $
 #
 ##
 # GENERIC machine description file
@@ -29,7 +29,7 @@
 
 options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
 
-#ident 		GENERIC-$Revision: 1.140 $
+#ident 		GENERIC-$Revision: 1.141 $
 
 
 maxusers	8

Index: src/sys/arch/amiga/conf/GENERIC
diff -u src/sys/arch/amiga/conf/GENERIC:1.270 src/sys/arch/amiga/conf/GENERIC:1.271
--- src/sys/arch/amiga/conf/GENERIC:1.270	Thu Aug  4 17:48:51 2011
+++ src/sys/arch/amiga/conf/GENERIC	Sat Sep 17 16:55:34 2011
@@ -1,9 +1,9 @@
-# $NetBSD: GENERIC,v 1.270 2011/08/04 17:48:51 rkujawa Exp $
+# $NetBSD: GENERIC,v 1.271 2011/09/17 16:55:34 rkujawa Exp $
 #
 # This file was automatically created.
 # Changes will be lost when make is run in this directory.
 #
-# Created from: # NetBSD: GENERIC.in,v 1.81 2011/07/01 15:46:30 rkujawa Exp $
+# Created from: # NetBSD: GENERIC.in,v 1.82 2011/08/04 17:48:51 rkujawa Exp $
 #
 ##
 # GENERIC machine description file
@@ -29,7 +29,7 @@
 
 options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
 
-#ident 		GENERIC-$Revision: 1.270 $
+#ident 		GENERIC-$Revision: 1.271 $
 
 
 maxusers	8
@@ -468,6 +468,10 @@
 #options	PCI_CONFIG_DUMP
 p5pb0		at zbus0# Phase5 PCI bridge (CVPPC/BVPPC)
 pci*		at p5pb0
+mppb*   at zbus0# Matay Prometheus Zorro-PCI bridge
+pci*at mppb?
+
+ne* at pci? # NE2000 Ethernet
 
 # Bluetooth Controller and Device support
 # tested only with btuart on an A1200

Index: src/sys/arch/amiga/conf/GENERIC.in
diff -u src/sys/arch/amiga/conf/GENERIC.in:1.82 src/sys/arch/amiga/conf/GENERIC.in:1.83
--- src/sys/arch/amiga/conf/GENERIC.in:1.82	Thu Aug  4 17:48:51 2011
+++ src/sys/arch/amiga/conf/GENERIC.in	Sat Sep 17 16:55:34 2011
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC.in,v 1.82 2011/08/04 17:48:51 rkujawa Exp $
+# $NetBSD: GENERIC.in,v 1.83 2011/09/17 16:55:34 rkujawa Exp $
 #
 ##
 # GENERIC machine description file
@@ -57,7 +57,7 @@
 
 options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
 
-#ident 		GENERIC-$Revision: 1.82 $
+#ident 		GENERIC-$Revision: 1.83 $
 
 m4_ifdef(`INSTALL_CONFIGURATION', `m4_dnl
 makeoptions	COPTS=-Os
@@ -575,6 +575,10 @@
 #options	PCI_CONFIG_DUMP
 p5pb0		at zbus0# Phase5 PCI bridge (CVPPC/BVPPC)
 pci*		at p5pb0
+mppb*   at zbus0# Matay Prometheus Zorro-PCI bridge
+pci*at mppb?
+
+ne* at pci? # NE2000 Ethernet
 
 # Bluetooth Controller and Device support
 # tested only with btuart on an A1200

Index: src/sys/arch/amiga/conf/INSTALL
diff -u src/sys/arch/amiga/conf/INSTALL:1.92 src/sys/arch/amiga/conf/INSTALL:1.93
--- src/sys/arch/amiga/conf/INSTALL:1.92	Thu Aug  4 17:48:51 2011
+++ src/sys/arch/amiga/conf/INSTALL	Sat Sep 17 16:55:34 2011
@@ -1,9 +1,9 @@
-# $NetBSD: INSTALL,v 1.92 2011/08/04 17:48:51 rkujawa Exp $
+# $NetBSD: INSTALL,v 1.93 2011/09/17 16:55:34 rkujawa Exp $
 #
 # This file was automatically created.
 # Changes will be lost when make is run in this directory.
 #
-# Created from: # NetBSD: GENERIC.in,v 1.81 2011/07/01 15:46:30 rkujawa Exp $
+# Created from: # NetBSD: GENERIC.in,v 1.82 2011/08/04 17:48:51 rkujawa Exp $
 #
 ##
 # GENERIC machine description file
@@ -29,7 +29,7 @@
 
 options 	

CVS commit: src/doc

2011-09-17 Thread Radoslaw Kujawa
Module Name:src
Committed By:   rkujawa
Date:   Sat Sep 17 17:00:12 UTC 2011

Modified Files:
src/doc: CHANGES

Log Message:
Mention Prometheus driver.


To generate a diff of this commit:
cvs rdiff -u -r1.1607 -r1.1608 src/doc/CHANGES

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

Modified files:

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.1607 src/doc/CHANGES:1.1608
--- src/doc/CHANGES:1.1607	Fri Sep 16 21:08:32 2011
+++ src/doc/CHANGES	Sat Sep 17 17:00:12 2011
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			$Revision: 1.1607 $
+# LIST OF CHANGES FROM LAST RELEASE:			$Revision: 1.1608 $
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -1120,3 +1120,5 @@
 	traceroute(8): Updated to 1.4a12 [christos 20110910]
 	bind: Update to 9.9.0a1 [christos 20110911]
 	file: Update to 5.09 [christos 20110916]
+	mppb(4): Add driver for Prometheus Zorro III to PCI bridge.
+		[rkujawa 20110917]



CVS commit: src/share/man/man4/man4.amiga

2011-09-17 Thread Radoslaw Kujawa
Module Name:src
Committed By:   rkujawa
Date:   Sat Sep 17 17:04:22 UTC 2011

Modified Files:
src/share/man/man4/man4.amiga: Makefile
Added Files:
src/share/man/man4/man4.amiga: mppb.4

Log Message:
Add man page for mppb(4) - Prometheus PCI driver


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/share/man/man4/man4.amiga/Makefile
cvs rdiff -u -r0 -r1.1 src/share/man/man4/man4.amiga/mppb.4

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

Modified files:

Index: src/share/man/man4/man4.amiga/Makefile
diff -u src/share/man/man4/man4.amiga/Makefile:1.19 src/share/man/man4/man4.amiga/Makefile:1.20
--- src/share/man/man4/man4.amiga/Makefile:1.19	Thu Aug  4 19:30:11 2011
+++ src/share/man/man4/man4.amiga/Makefile	Sat Sep 17 17:04:22 2011
@@ -1,10 +1,10 @@
 # 	from: @(#)Makefile	8.2 (Berkeley) 2/16/94
-#	$NetBSD: Makefile,v 1.19 2011/08/04 19:30:11 martin Exp $
+#	$NetBSD: Makefile,v 1.20 2011/09/17 17:04:22 rkujawa Exp $
 
 MAN=	afsc.4 ahsc.4 amidisplaycc.4 atzsc.4 autoconf.4 console.4 bah.4 \
 	bppcsc.4 ed.4 es.4 fdc.4 grf.4 \
 	grfcl.4 grfcv.4 grfcv3d.4 grfet.4 grfrh.4 grfrt.4 grful.4 \
-	gtsc.4 intro.4 ite.4 mem.4 mfcs.4 mgnsc.4 p5pb.4 \
+	gtsc.4 intro.4 ite.4 mem.4 mfcs.4 mgnsc.4 mppb.4 p5pb.4 \
 	qn.4 ser.4 wesc.4 zssc.4
 MLINKS=	mem.4 kmem.4
 MANSUBDIR=/amiga

Added files:

Index: src/share/man/man4/man4.amiga/mppb.4
diff -u /dev/null src/share/man/man4/man4.amiga/mppb.4:1.1
--- /dev/null	Sat Sep 17 17:04:22 2011
+++ src/share/man/man4/man4.amiga/mppb.4	Sat Sep 17 17:04:22 2011
@@ -0,0 +1,70 @@
+.\ $NetBSD: mppb.4,v 1.1 2011/09/17 17:04:22 rkujawa Exp $
+.\
+.\ Copyright (c) 2011 The NetBSD Foundation, Inc.
+.\ All rights reserved.
+.\
+.\ This code is derived from software contributed to The NetBSD Foundation
+.\ by Radoslaw Kujawa.
+.\
+.\ Redistribution and use in source and binary forms, with or without
+.\ modification, are permitted provided that the following conditions
+.\ are met:
+.\ 1. Redistributions of source code must retain the above copyright
+.\notice, this list of conditions and the following disclaimer.
+.\ 2. Redistributions in binary form must reproduce the above copyright
+.\notice, this list of conditions and the following disclaimer in the
+.\documentation and/or other materials provided with the distribution.
+.\
+.\ THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+.\ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+.\ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+.\ PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+.\ BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+.\ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+.\ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+.\ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+.\ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+.\ POSSIBILITY OF SUCH DAMAGE.
+.\
+.Dd September 17, 2011
+.Dt MPPB 4 amiga
+.Os
+.Sh NAME
+.Nm mppb
+.Nd Prometheus PCI bridge driver
+.Sh SYNOPSIS
+.Cd mppb* at zbus0
+.Cd pci* at mppb?
+.Sh DESCRIPTION
+The
+.Nm
+driver provides support for the PCI bus present on Prometheus Zorro III to PCI
+bridge card.
+.Sh HARDWARE
+The
+.Nm
+driver supports the following hardware:
+.Bl -tag -width PROMETHEUS -offset indent
+.It Em PROMETHEUS
+Matay Prometheus.
+.El
+.Sh SEE ALSO
+.Xr pci 4
+.Sh HISTORY
+The
+.Nm
+device first appeared in
+.Nx 6.0 .
+.Sh AUTHORS
+.An -nosplit
+The
+.Nm
+driver was written by
+.An Radoslaw Kujawa Aq radoslaw.kuj...@gmail.com .
+.Sh BUGS
+Current version of this driver depends on PCI bus setup and enumeration
+done by the prometheus.library, therefore the Prometheus is usable only after
+AmigaOS boot.
+.Pp
+The hardware does not support DMA to host memory.



CVS commit: src/distrib

2011-09-17 Thread Radoslaw Kujawa
Module Name:src
Committed By:   rkujawa
Date:   Sat Sep 17 17:06:47 UTC 2011

Modified Files:
src/distrib/notes/amiga: hardware
src/distrib/sets/lists/man: mi

Log Message:
Add mppb man page to distrib lists, mention the new driver in install notes.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/distrib/notes/amiga/hardware
cvs rdiff -u -r1.1340 -r1.1341 src/distrib/sets/lists/man/mi

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

Modified files:

Index: src/distrib/notes/amiga/hardware
diff -u src/distrib/notes/amiga/hardware:1.47 src/distrib/notes/amiga/hardware:1.48
--- src/distrib/notes/amiga/hardware:1.47	Thu Aug  4 20:24:36 2011
+++ src/distrib/notes/amiga/hardware	Sat Sep 17 17:06:47 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: hardware,v 1.47 2011/08/04 20:24:36 rkujawa Exp $
+.\	$NetBSD: hardware,v 1.48 2011/09/17 17:06:47 rkujawa Exp $
 .
 .Nx \*V
 runs on any Amiga that has a 68020 or better CPU with
@@ -59,6 +59,8 @@
 .It
 PCI bridges
 .(bullet -compact
+Prometheus PCI bridge
+.It
 Phase5 PCI bridge: CyberVision PPC, BlizzardVision PPC
 .bullet)
 .It

Index: src/distrib/sets/lists/man/mi
diff -u src/distrib/sets/lists/man/mi:1.1340 src/distrib/sets/lists/man/mi:1.1341
--- src/distrib/sets/lists/man/mi:1.1340	Sun Sep 11 19:10:57 2011
+++ src/distrib/sets/lists/man/mi	Sat Sep 17 17:06:47 2011
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1340 2011/09/11 19:10:57 christos Exp $
+# $NetBSD: mi,v 1.1341 2011/09/17 17:06:47 rkujawa Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -743,6 +743,7 @@
 ./usr/share/man/cat4/amiga/mem.0		man-sys-catman		.cat
 ./usr/share/man/cat4/amiga/mfcs.0		man-sys-catman		.cat
 ./usr/share/man/cat4/amiga/mgnsc.0		man-sys-catman		.cat
+./usr/share/man/cat4/amiga/mppb.0		man-sys-catman		.cat
 ./usr/share/man/cat4/amiga/p5pb.0		man-sys-catman		.cat
 ./usr/share/man/cat4/amiga/qn.0			man-sys-catman		.cat
 ./usr/share/man/cat4/amiga/ser.0		man-sys-catman		.cat
@@ -3605,6 +3606,7 @@
 ./usr/share/man/html4/amiga/mem.html		man-sys-htmlman		html
 ./usr/share/man/html4/amiga/mfcs.html		man-sys-htmlman		html
 ./usr/share/man/html4/amiga/mgnsc.html		man-sys-htmlman		html
+./usr/share/man/html4/amiga/mppb.html		man-sys-htmlman		html
 ./usr/share/man/html4/amiga/p5pb.html		man-sys-htmlman		html
 ./usr/share/man/html4/amiga/qn.html		man-sys-htmlman		html
 ./usr/share/man/html4/amiga/ser.html		man-sys-htmlman		html
@@ -6166,6 +6168,7 @@
 ./usr/share/man/man4/amiga/mem.4		man-sys-man		.man
 ./usr/share/man/man4/amiga/mfcs.4		man-sys-man		.man
 ./usr/share/man/man4/amiga/mgnsc.4		man-sys-man		.man
+./usr/share/man/man4/amiga/mppb.4		man-sys-man		.man
 ./usr/share/man/man4/amiga/p5pb.4		man-sys-man		.man
 ./usr/share/man/man4/amiga/qn.4			man-sys-man		.man
 ./usr/share/man/man4/amiga/ser.4		man-sys-man		.man



CVS commit: src

2011-09-17 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sat Sep 17 18:08:36 UTC 2011

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/lib/libm: Makefile
Added Files:
src/tests/lib/libm: t_acos.c t_asin.c t_atan.c

Log Message:
IEEE checks for the arcus functions.


To generate a diff of this commit:
cvs rdiff -u -r1.387 -r1.388 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.11 -r1.12 src/tests/lib/libm/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/lib/libm/t_acos.c \
src/tests/lib/libm/t_asin.c src/tests/lib/libm/t_atan.c

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

Modified files:

Index: src/distrib/sets/lists/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.387 src/distrib/sets/lists/tests/mi:1.388
--- src/distrib/sets/lists/tests/mi:1.387	Sat Sep 17 12:00:50 2011
+++ src/distrib/sets/lists/tests/mi	Sat Sep 17 18:08:36 2011
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.387 2011/09/17 12:00:50 jruoho Exp $
+# $NetBSD: mi,v 1.388 2011/09/17 18:08:36 jruoho Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -546,6 +546,9 @@
 ./usr/libdata/debug/usr/tests/lib/libeventtests-lib-debug
 ./usr/libdata/debug/usr/tests/lib/libevent/h_event.debug		tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libm	tests-lib-debug
+./usr/libdata/debug/usr/tests/lib/libm/t_acos.debug			tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libm/t_asin.debug			tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libm/t_atan.debug			tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libm/t_ceil.debug			tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libm/t_cos.debug			tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libm/t_erf.debug			tests-lib-debug		debug,atf
@@ -2257,6 +2260,9 @@
 ./usr/tests/lib/libevent/t_event		tests-lib-tests		atf
 ./usr/tests/lib/libmtests-lib-tests		atf
 ./usr/tests/lib/libm/Atffile			tests-lib-tests		atf
+./usr/tests/lib/libm/t_acos			tests-lib-tests		atf
+./usr/tests/lib/libm/t_asin			tests-lib-tests		atf
+./usr/tests/lib/libm/t_atan			tests-lib-tests		atf
 ./usr/tests/lib/libm/t_ceil			tests-lib-tests		atf
 ./usr/tests/lib/libm/t_cos			tests-lib-tests		atf
 ./usr/tests/lib/libm/t_erf			tests-lib-tests		atf

Index: src/tests/lib/libm/Makefile
diff -u src/tests/lib/libm/Makefile:1.11 src/tests/lib/libm/Makefile:1.12
--- src/tests/lib/libm/Makefile:1.11	Sat Sep 17 12:00:50 2011
+++ src/tests/lib/libm/Makefile	Sat Sep 17 18:08:35 2011
@@ -1,9 +1,12 @@
-# $NetBSD: Makefile,v 1.11 2011/09/17 12:00:50 jruoho Exp $
+# $NetBSD: Makefile,v 1.12 2011/09/17 18:08:35 jruoho Exp $
 
 .include bsd.own.mk
 
 TESTSDIR=	${TESTSBASE}/lib/libm
 
+TESTS_C+=	t_acos
+TESTS_C+=	t_asin
+TESTS_C+=	t_atan
 TESTS_C+=	t_ceil
 TESTS_C+=	t_cos
 TESTS_C+=	t_erf

Added files:

Index: src/tests/lib/libm/t_acos.c
diff -u /dev/null src/tests/lib/libm/t_acos.c:1.1
--- /dev/null	Sat Sep 17 18:08:36 2011
+++ src/tests/lib/libm/t_acos.c	Sat Sep 17 18:08:35 2011
@@ -0,0 +1,277 @@
+/* $NetBSD: t_acos.c,v 1.1 2011/09/17 18:08:35 jruoho Exp $ */
+
+/*-
+ * Copyright (c) 2011 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Jukka Ruohonen.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include atf-c.h
+#include math.h
+
+/*
+ * acos(3)
+ */
+ATF_TC(acos_nan);
+ATF_TC_HEAD(acos_nan, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test acos(NaN) == NaN);
+}
+
+ATF_TC_BODY(acos_nan, tc)
+{
+#ifndef __vax__
+	const double x = 0.0L / 0.0L;
+
+	if (isnan(acos(x)) == 0)
+		

CVS commit: [netbsd-5] src

2011-09-17 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sat Sep 17 18:47:48 UTC 2011

Modified Files:
src/distrib/sets/lists/comp [netbsd-5]: mi
src/include [netbsd-5]: limits.h unistd.h
src/lib/libc/sys [netbsd-5]: Makefile.inc link.2
src/sys/kern [netbsd-5]: init_sysent.c syscalls.c syscalls.master
vfs_syscalls.c
src/sys/rump/librump/rumpkern [netbsd-5]: rump_syscalls.c
rump_syscalls.h
src/sys/sys [netbsd-5]: fcntl.h syscall.h syscallargs.h

Log Message:
Pull up following revision(s) (requested by manu in ticket #1658):
sys/rump/include/rump/rump_syscalls.h: revision 1.52 via patch
sys/kern/init_sysent.c: revision 1.257 via patch
sys/rump/include/rump/rumpvnode_if.h: revision 1.12 via patch
lib/libc/sys/Makefile.inc: revision 1.208 via patch
sys/sys/syscallargs.h: revision 1.227 via patch
sys/kern/kern_exec.c: revision 1.317 via patch
sys/rump/librump/rumpkern/rump_syscalls.c: revision 1.74 via patch
include/limits.h: revision 1.30 via patch
sys/kern/syscalls.master: revision 1.251 via patch
sys/sys/vnode_if.h: revision 1.83 via patch
sys/sys/fcntl.h: revision 1.40 via patch
sys/sys/fcntl.h: revision 1.41 via patch
sys/kern/vfs_syscalls.c: revision 1.433 via patch
sys/rump/librump/rumpvfs/rumpvnode_if.c: revision 1.11 via patch
sys/kern/syscalls.c: revision 1.248 via patch
sys/sys/syscall.h: revision 1.244 via patch
lib/libc/sys/link.2: revision 1.25 via patch
include/unistd.h: revision 1.127 via patch
distrib/sets/lists/comp/mi: revision 1.1659 via patch
sys/sys/stat.h: revision 1.61 via patch
First stage of support for Extended API set 2. Most of the think is
unimplemented, except enough of linkat(2) to hardlink to a symlink.
Everything new in headers is guarded #ifdef _INCOMPLETE_XOPEN_C063 since
some software (e.g.: xcvs in our own tree) will assume they can use openat(2)
when AT_FDCWD is defined. _INCOMPLETE_XOPEN_C063 will go away once support
will be completed.
regen
improve comment about AT_* defines: they are not only used by linkat(2)
Add macros to hide OpenGroup extened API set 2 from GNU configure. This
is a temporary  workaround until the implementation is completed.


To generate a diff of this commit:
cvs rdiff -u -r1.1201.2.16 -r1.1201.2.17 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.28 -r1.28.4.1 src/include/limits.h
cvs rdiff -u -r1.118.4.1 -r1.118.4.2 src/include/unistd.h
cvs rdiff -u -r1.196.2.2 -r1.196.2.3 src/lib/libc/sys/Makefile.inc
cvs rdiff -u -r1.22 -r1.22.32.1 src/lib/libc/sys/link.2
cvs rdiff -u -r1.229 -r1.229.4.1 src/sys/kern/init_sysent.c
cvs rdiff -u -r1.220 -r1.220.4.1 src/sys/kern/syscalls.c
cvs rdiff -u -r1.211 -r1.211.4.1 src/sys/kern/syscalls.master
cvs rdiff -u -r1.376.4.6 -r1.376.4.7 src/sys/kern/vfs_syscalls.c
cvs rdiff -u -r1.20 -r1.20.4.1 src/sys/rump/librump/rumpkern/rump_syscalls.c \
src/sys/rump/librump/rumpkern/rump_syscalls.h
cvs rdiff -u -r1.34.64.1 -r1.34.64.2 src/sys/sys/fcntl.h
cvs rdiff -u -r1.217 -r1.217.4.1 src/sys/sys/syscall.h
cvs rdiff -u -r1.199 -r1.199.4.1 src/sys/sys/syscallargs.h

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

Modified files:

Index: src/distrib/sets/lists/comp/mi
diff -u src/distrib/sets/lists/comp/mi:1.1201.2.16 src/distrib/sets/lists/comp/mi:1.1201.2.17
--- src/distrib/sets/lists/comp/mi:1.1201.2.16	Sun Jul 17 15:36:00 2011
+++ src/distrib/sets/lists/comp/mi	Sat Sep 17 18:47:43 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.1201.2.16 2011/07/17 15:36:00 riz Exp $
+#	$NetBSD: mi,v 1.1201.2.17 2011/09/17 18:47:43 bouyer Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -3874,6 +3874,7 @@
 ./usr/share/man/cat2/lfs_segclean.0		comp-c-catman		.cat
 ./usr/share/man/cat2/lfs_segwait.0		comp-c-catman		.cat
 ./usr/share/man/cat2/link.0			comp-c-catman		.cat
+./usr/share/man/cat2/linkat.0			comp-c-catman		.cat
 ./usr/share/man/cat2/listen.0			comp-c-catman		.cat
 ./usr/share/man/cat2/lseek.0			comp-c-catman		.cat
 ./usr/share/man/cat2/lstat.0			comp-c-catman		.cat
@@ -9284,6 +9285,7 @@
 ./usr/share/man/html2/lfs_segclean.html		comp-c-htmlman		html
 ./usr/share/man/html2/lfs_segwait.html		comp-c-htmlman		html
 ./usr/share/man/html2/link.html			comp-c-htmlman		html
+./usr/share/man/html2/linkat.html		comp-c-htmlman		html
 ./usr/share/man/html2/listen.html		comp-c-htmlman		html
 ./usr/share/man/html2/lseek.html		comp-c-htmlman		html
 ./usr/share/man/html2/lstat.html		comp-c-htmlman		html
@@ -14472,6 +14474,7 @@
 ./usr/share/man/man2/lfs_segclean.2		comp-c-man		.man
 ./usr/share/man/man2/lfs_segwait.2		comp-c-man		.man
 ./usr/share/man/man2/link.2			comp-c-man		.man
+./usr/share/man/man2/linkat.2			comp-c-man		.man
 ./usr/share/man/man2/listen.2			comp-c-man		.man
 ./usr/share/man/man2/lseek.2			

CVS commit: [netbsd-5] src/lib/librmt

2011-09-17 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sat Sep 17 18:50:46 UTC 2011

Modified Files:
src/lib/librmt [netbsd-5]: rmtlib.c

Log Message:
Pull up following revision(s) (requested by dholland in ticket #1660):
lib/librmt/rmtlib.c: revisions 1.23, 1.24
Improve isrmt() check: it cannot be a rmt fd if there are no pipes
open for the fd.  Prevents collision with rumphijack.
Also, prevent potential hyperspace memory access.
Does someone want to write tests for this facility?
PR/38413: Takahiro Kambe: mt(1) print some junk output when using remote tape
Not all fields are valid in the ioctl to get tape info in the rmt protocol.
Zero out the struct so that we don't print junk.
While here, KNF.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.21.26.1 src/lib/librmt/rmtlib.c

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

Modified files:

Index: src/lib/librmt/rmtlib.c
diff -u src/lib/librmt/rmtlib.c:1.21 src/lib/librmt/rmtlib.c:1.21.26.1
--- src/lib/librmt/rmtlib.c:1.21	Sun Mar 19 23:05:50 2006
+++ src/lib/librmt/rmtlib.c	Sat Sep 17 18:50:46 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: rmtlib.c,v 1.21 2006/03/19 23:05:50 christos Exp $	*/
+/*	$NetBSD: rmtlib.c,v 1.21.26.1 2011/09/17 18:50:46 bouyer Exp $	*/
 
 /*
  *	rmt --- remote tape emulator subroutines
@@ -28,7 +28,7 @@
  */
 
 #include sys/cdefs.h
-__RCSID($NetBSD: rmtlib.c,v 1.21 2006/03/19 23:05:50 christos Exp $);
+__RCSID($NetBSD: rmtlib.c,v 1.21.26.1 2011/09/17 18:50:46 bouyer Exp $);
 
 #define RMTIOCTL	1
 /* #define USE_REXEC	1 */	/* rexec code courtesy of Dan Kegel, srs!dan */
@@ -50,6 +50,7 @@
 #include stdlib.h
 #include string.h
 #include unistd.h
+#include err.h
 
 #ifdef USE_REXEC
 #include netdb.h
@@ -66,7 +67,7 @@
 static	int	_rmt_open(const char *, int, int);
 static	ssize_t	_rmt_read(int, void *, size_t);
 static	ssize_t	_rmt_write(int, const void *, size_t);
-static	int	command(int, char *);
+static	int	command(int, const char *);
 static	int	remdev(const char *);
 static	void	rmtabort(int);
 static	int	status(int);
@@ -102,10 +103,10 @@
  *	command --- attempt to perform a remote tape command
  */
 static int
-command(int fildes, char *buf)
+command(int fildes, const char *buf)
 {
 	size_t blen;
-	void (*pstat)(int);
+	sig_t pstat;
 
 	_DIAGASSERT(buf != NULL);
 
@@ -117,7 +118,7 @@
 	pstat = signal(SIGPIPE, SIG_IGN);
 	if (write(WRITE(fildes), buf, blen) == blen) {
 		signal(SIGPIPE, pstat);
-		return (0);
+		return 0;
 	}
 
 /*
@@ -128,7 +129,7 @@
 	rmtabort(fildes);
 
 	errno = EIO;
-	return (-1);
+	return -1;
 }
 
 
@@ -150,7 +151,7 @@
 		if (read(READ(fildes), cp, 1) != 1) {
 			rmtabort(fildes);
 			errno = EIO;
-			return (-1);
+			return -1;
 		}
 		if (*cp == '\n') {
 			*cp = 0;
@@ -161,7 +162,7 @@
 	if (i == BUFMAGIC) {
 		rmtabort(fildes);
 		errno = EIO;
-		return (-1);
+		return -1;
 	}
 
 /*
@@ -181,7 +182,7 @@
 		if (*cp == 'F')
 			rmtabort(fildes);
 
-		return (-1);
+		return -1;
 	}
 
 /*
@@ -191,10 +192,10 @@
 	if (*cp != 'A') {
 		rmtabort(fildes);
 		errno = EIO;
-		return (-1);
+		return -1;
 	}
 
-	return (atoi(cp + 1));
+	return atoi(cp + 1);
 }
 
 
@@ -224,14 +225,12 @@
 	/* user may be NULL */
 
 	rexecserv = getservbyname(exec, tcp);
-	if (rexecserv == NULL) {
-		fprintf(stderr, ? exec/tcp: service not available.);
-		exit(1);
-	}
+	if (rexecserv == NULL)
+		errx(1, exec/tcp: service not available.);
 	if ((user != NULL)  *user == '\0')
 		user = NULL;
-	return (rexec(host, rexecserv-s_port, user, NULL,
-	/etc/rmt, NULL));
+	return rexec(host, rexecserv-s_port, user, NULL,
+	/etc/rmt, NULL);
 }
 #endif /* USE_REXEC */
 
@@ -251,12 +250,13 @@
 /*ARGSUSED*/
 _rmt_open(const char *path, int oflag, int mode)
 {
-	int i, rc;
+	int i;
 	char buffer[BUFMAGIC];
 	char host[MAXHOSTLEN];
 	char device[BUFMAGIC];
 	char login[BUFMAGIC];
 	char *sys, *dev, *user;
+	char *rshpath, *rsh;
 
 	_DIAGASSERT(path != NULL);
 
@@ -274,7 +274,7 @@
 
 	if (i == MAXUNIT) {
 		errno = EMFILE;
-		return (-1);
+		return -1;
 	}
 
 /*
@@ -326,21 +326,20 @@
  */
 	READ(i) = WRITE(i) = _rmt_rexec(host, login);
 	if (READ(i)  0)
-		return (-1);
+		return -1;
 #else
 /*
  *	setup the pipes for the 'rsh' command and fork
  */
 
 	if (pipe(Ptc[i]) == -1 || pipe(Ctp[i]) == -1)
-		return (-1);
-
-	if ((rc = fork()) == -1)
-		return (-1);
+		return -1;
 
-	if (rc == 0) {
-		char	*rshpath, *rsh;
+	switch (fork()) {
+	case -1:
+		return -1;
 
+	case 0:
 		close(0);
 		dup(Ptc[i][0]);
 		close(Ptc[i][0]); close(Ptc[i][1]);
@@ -358,19 +357,19 @@
 			rsh++;
 
 		if (*login) {
-			execl(rshpath, rsh, host, -l, login,
-			_PATH_RMT, NULL);
+			execl(rshpath, rsh, host, -l, login, _PATH_RMT, NULL);
 		} else {
-			execl(rshpath, rsh, host,
-			_PATH_RMT, NULL);
+			execl(rshpath, rsh, host, _PATH_RMT, NULL);
 		}
 
 /*
  *	bad problems if we get here
  */
 
-		perror(exec);
-		exit(1);
+		err(1, Cannnot exec %s, rshpath);
+		/*FALLTHROUGH*/
+	

CVS commit: [netbsd-5] src/sys/ufs/ufs

2011-09-17 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sat Sep 17 18:51:34 UTC 2011

Modified Files:
src/sys/ufs/ufs [netbsd-5]: ufs_extattr.c

Log Message:
Pull up following revision(s) (requested by manu in ticket #1664):
sys/ufs/ufs/ufs_extattr.c: revision 1.35
Fix locking protocol to avoid a panic on extattrctl stop and on umount.


To generate a diff of this commit:
cvs rdiff -u -r1.21.14.3 -r1.21.14.4 src/sys/ufs/ufs/ufs_extattr.c

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

Modified files:

Index: src/sys/ufs/ufs/ufs_extattr.c
diff -u src/sys/ufs/ufs/ufs_extattr.c:1.21.14.3 src/sys/ufs/ufs/ufs_extattr.c:1.21.14.4
--- src/sys/ufs/ufs/ufs_extattr.c:1.21.14.3	Sun Jul 17 15:36:04 2011
+++ src/sys/ufs/ufs/ufs_extattr.c	Sat Sep 17 18:51:34 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: ufs_extattr.c,v 1.21.14.3 2011/07/17 15:36:04 riz Exp $	*/
+/*	$NetBSD: ufs_extattr.c,v 1.21.14.4 2011/09/17 18:51:34 bouyer Exp $	*/
 
 /*-
  * Copyright (c) 1999-2002 Robert N. M. Watson
@@ -48,7 +48,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: ufs_extattr.c,v 1.21.14.3 2011/07/17 15:36:04 riz Exp $);
+__KERNEL_RCSID(0, $NetBSD: ufs_extattr.c,v 1.21.14.4 2011/09/17 18:51:34 bouyer Exp $);
 
 #include opt_ffs.h
 
@@ -130,6 +130,7 @@
 	if (ump-um_extattr.uepm_lockcnt != 0) {
 		KASSERT(mutex_owned(ump-um_extattr.uepm_lock));
 		ump-um_extattr.uepm_lockcnt--;
+		return;
 	}
 	mutex_exit(ump-um_extattr.uepm_lock);
 }



CVS commit: src/tests/lib/libc/sys

2011-09-17 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sat Sep 17 18:52:21 UTC 2011

Modified Files:
src/tests/lib/libc/sys: Makefile t_timer_create.c

Log Message:
Simplify.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libc/sys/Makefile
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/sys/t_timer_create.c

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

Modified files:

Index: src/tests/lib/libc/sys/Makefile
diff -u src/tests/lib/libc/sys/Makefile:1.7 src/tests/lib/libc/sys/Makefile:1.8
--- src/tests/lib/libc/sys/Makefile:1.7	Mon Jul 18 23:16:11 2011
+++ src/tests/lib/libc/sys/Makefile	Sat Sep 17 18:52:21 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2011/07/18 23:16:11 jym Exp $
+# $NetBSD: Makefile,v 1.8 2011/09/17 18:52:21 jruoho Exp $
 
 MKMAN=	no
 
@@ -32,6 +32,7 @@
 TESTS_C+=		t_msync
 TESTS_C+=		t_nanosleep
 TESTS_C+=		t_poll
+TESTS_C+=		t_ptrace
 TESTS_C+=		t_revoke
 TESTS_C+=		t_select
 TESTS_C+=		t_setrlimit
@@ -46,7 +47,6 @@
 SRCS.t_mprotect=	t_mprotect.c ${SRCS_EXEC_PROT}
 
 LDADD.t_getpid+=-lpthread
-LDADD.t_timer_create+=  -lpthread
 
 WARNS=			4
 

Index: src/tests/lib/libc/sys/t_timer_create.c
diff -u src/tests/lib/libc/sys/t_timer_create.c:1.1 src/tests/lib/libc/sys/t_timer_create.c:1.2
--- src/tests/lib/libc/sys/t_timer_create.c:1.1	Thu Jul  7 06:57:54 2011
+++ src/tests/lib/libc/sys/t_timer_create.c	Sat Sep 17 18:52:21 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_timer_create.c,v 1.1 2011/07/07 06:57:54 jruoho Exp $ */
+/*	$NetBSD: t_timer_create.c,v 1.2 2011/09/17 18:52:21 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -26,320 +26,148 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include atf-c.h
 #include errno.h
-#include pthread.h
+#include stdio.h
 #include signal.h
 #include string.h
 #include time.h
 #include unistd.h
 
-#include atf-c.h
-
-#include ../../../h_macros.h
-
-static void	timer_signal_create(clockid_t, int);
-static void	timer_signal_handler(int, siginfo_t *, void *);
-static int	timer_wait(time_t);
-
-#if 0
-/*
- * XXX: SIGEV_THREAD is not yet supported.
- */
-static void	timer_thread_create(clockid_t);
-static void	timer_thread_handler(sigval_t);
-#endif
-
 static timer_t t;
-static bool error;
-static pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
-static pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER;
-
-ATF_TC(timer_create_bogus);
-ATF_TC_HEAD(timer_create_bogus, tc)
-{
-
-	/* Cf. PR lib/42434. */
-	atf_tc_set_md_var(tc, descr,
-	Checks timer_create(2)'s error checking);
-}
-
-ATF_TC_BODY(timer_create_bogus, tc)
-{
-	struct sigevent evt;
-
-	(void)memset(evt, 0, sizeof(struct sigevent));
-
-	evt.sigev_signo = -1;
-	evt.sigev_notify = SIGEV_SIGNAL;
-
-	if (timer_create(CLOCK_REALTIME, evt, t) == 0)
-		goto fail;
-
-	evt.sigev_signo = SIGUSR1;
-	evt.sigev_notify = SIGEV_THREAD + 100;
-
-	if (timer_create(CLOCK_REALTIME, evt, t) == 0)
-		goto fail;
-
-	evt.sigev_signo = SIGUSR1;
-	evt.sigev_value.sival_int = 0;
-	evt.sigev_notify = SIGEV_SIGNAL;
+static bool fail = true;
 
-	if (timer_create(CLOCK_REALTIME + 100, evt, t) == 0)
-		goto fail;
-
-	t = 0;
-
-	return;
-
-fail:
-	atf_tc_fail(timer_create() successful with bogus values);
-}
-
-ATF_TC(timer_create_signal_realtime);
-ATF_TC_HEAD(timer_create_signal_realtime, tc)
-{
-
-	atf_tc_set_md_var(tc, descr,
-	Checks timer_create(2) with CLOCK_REALTIME and sigevent(3), 
-	SIGEV_SIGNAL);
-}
+static void	timer_signal_handler(int, siginfo_t *, void *);
+static void	timer_signal_create(clockid_t);
 
-ATF_TC_BODY(timer_create_signal_realtime, tc)
+static void
+timer_signal_handler(int signo, siginfo_t *si, void *osi)
 {
-	int i, signals[6] = {
-		SIGALRM, SIGIO, SIGPROF, SIGUSR1, SIGUSR2, -1
-	};
+	timer_t *tp;
 
-	for (i = 0; signals[i]  0; i++)
-		timer_signal_create(CLOCK_REALTIME, signals[i]);
-}
+	tp = si-si_value.sival_ptr;
 
-ATF_TC(timer_create_signal_monotonic);
-ATF_TC_HEAD(timer_create_signal_monotonic, tc)
-{
+	if (*tp == t  signo == SIGALRM)
+		fail = false;
 
-	atf_tc_set_md_var(tc, descr,
-	Checks timer_create(2) with CLOCK_MONOTONIC and sigevent(3), 
-	SIGEV_SIGNAL);
-}
-
-ATF_TC_BODY(timer_create_signal_monotonic, tc)
-{
-	int i, signals[6] = {
-		SIGALRM, SIGIO, SIGPROF, SIGUSR1, SIGUSR2, -1
-	};
-
-	for (i = 0; signals[i]  0; i++)
-		timer_signal_create(CLOCK_MONOTONIC, signals[i]);
+	(void)fprintf(stderr, %s: %s\n, __func__, strsignal(signo));
 }
 
 static void
-timer_signal_create(clockid_t cid, int sig)
+timer_signal_create(clockid_t cid)
 {
 	struct itimerspec tim;
 	struct sigaction act;
 	struct sigevent evt;
-	const char *errstr;
 	sigset_t set;
 
-	error = true;
+	t = 0;
+	fail = true;
 
 	(void)memset(evt, 0, sizeof(struct sigevent));
 	(void)memset(act, 0, sizeof(struct sigaction));
 	(void)memset(tim, 0, sizeof(struct itimerspec));
 
+	/*
+	 * Set handler.
+	 */
 	act.sa_flags = SA_SIGINFO;
 	act.sa_sigaction = timer_signal_handler;
 
-	

CVS commit: src/tests/lib/libc/sys

2011-09-17 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sat Sep 17 18:53:31 UTC 2011

Modified Files:
src/tests/lib/libc/sys: Makefile

Log Message:
Remove ptrace(2) tests that are not yet ready but were accidentally
committed.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libc/sys/Makefile

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

Modified files:

Index: src/tests/lib/libc/sys/Makefile
diff -u src/tests/lib/libc/sys/Makefile:1.8 src/tests/lib/libc/sys/Makefile:1.9
--- src/tests/lib/libc/sys/Makefile:1.8	Sat Sep 17 18:52:21 2011
+++ src/tests/lib/libc/sys/Makefile	Sat Sep 17 18:53:31 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2011/09/17 18:52:21 jruoho Exp $
+# $NetBSD: Makefile,v 1.9 2011/09/17 18:53:31 jruoho Exp $
 
 MKMAN=	no
 
@@ -32,7 +32,6 @@
 TESTS_C+=		t_msync
 TESTS_C+=		t_nanosleep
 TESTS_C+=		t_poll
-TESTS_C+=		t_ptrace
 TESTS_C+=		t_revoke
 TESTS_C+=		t_select
 TESTS_C+=		t_setrlimit



CVS commit: [netbsd-5] src/sys/fs/union

2011-09-17 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sat Sep 17 18:54:39 UTC 2011

Modified Files:
src/sys/fs/union [netbsd-5]: union_vfsops.c

Log Message:
Pull up following revision(s) (requested by hannken in ticket #1667):
sys/fs/union/union_vfsops.c: revision 1.64
Print the warning message on mount once.
=20
Should fix PR #42795 (patch to make mounting union filesystems less =
obnoxious)
=20
=20


To generate a diff of this commit:
cvs rdiff -u -r1.57.6.1 -r1.57.6.2 src/sys/fs/union/union_vfsops.c

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

Modified files:

Index: src/sys/fs/union/union_vfsops.c
diff -u src/sys/fs/union/union_vfsops.c:1.57.6.1 src/sys/fs/union/union_vfsops.c:1.57.6.2
--- src/sys/fs/union/union_vfsops.c:1.57.6.1	Sat Apr  4 18:12:55 2009
+++ src/sys/fs/union/union_vfsops.c	Sat Sep 17 18:54:38 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: union_vfsops.c,v 1.57.6.1 2009/04/04 18:12:55 snj Exp $	*/
+/*	$NetBSD: union_vfsops.c,v 1.57.6.2 2011/09/17 18:54:38 bouyer Exp $	*/
 
 /*
  * Copyright (c) 1994 The Regents of the University of California.
@@ -77,7 +77,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: union_vfsops.c,v 1.57.6.1 2009/04/04 18:12:55 snj Exp $);
+__KERNEL_RCSID(0, $NetBSD: union_vfsops.c,v 1.57.6.2 2011/09/17 18:54:38 bouyer Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -101,6 +101,9 @@
 VFS_PROTOS(union);
 
 static struct sysctllog *union_sysctl_log;
+static const char *warn_user =
+WARNING: the union file system is experimental\n
+WARNING: it can cause crashes and file system corruption\n;
 
 /*
  * Mount union filesystem
@@ -149,8 +152,10 @@
 		goto bad;
 	}
 
-	printf(WARNING: the union file system is experimental\n
-	WARNING: it can cause crashes and file system corruption\n);
+	if (warn_user != NULL) {
+		printf(%s, warn_user);
+		warn_user = NULL;
+	}
 
 	lowerrootvp = mp-mnt_vnodecovered;
 	VREF(lowerrootvp);



CVS commit: [netbsd-5] src/external/ibm-public/postfix/dist

2011-09-17 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sat Sep 17 18:57:34 UTC 2011

Modified Files:
src/external/ibm-public/postfix/dist [netbsd-5]: HISTORY
src/external/ibm-public/postfix/dist/README_FILES [netbsd-5]:
MILTER_README
src/external/ibm-public/postfix/dist/html [netbsd-5]:
MILTER_README.html
src/external/ibm-public/postfix/dist/proto [netbsd-5]:
MILTER_README.html
src/external/ibm-public/postfix/dist/src/global [netbsd-5]:
mail_version.h
src/external/ibm-public/postfix/dist/src/milter [netbsd-5]: milter8.c
src/external/ibm-public/postfix/dist/src/smtpd [netbsd-5]:
smtpd_state.c

Log Message:
Apply patch, requested by tron in ticket #1669:
external/ibm-public/postfix/dist/HISTORYpatch
external/ibm-public/postfix/dist/README_FILES/MILTER_README patch
external/ibm-public/postfix/dist/html/MILTER_README.htmlpatch
external/ibm-public/postfix/dist/proto/MILTER_README.html   patch
external/ibm-public/postfix/dist/src/global/mail_version.h  patch
external/ibm-public/postfix/dist/src/milter/milter8.c   patch
external/ibm-public/postfix/dist/src/smtpd/smtpd_state.cpatch

Update Postfix to version 2.7.6. Changes since version 2.7.5:
- The Postfix Milter client logged a milter miltername: malformed
  reply error when a Milter sent an SMTP response without enhanced
  status code (i.e. XXX Text instead of XXX X.X.X Text).
- The Postfix Milter client sent a random {client_connections} macro
  value when the remote SMTP client was not subject to any
  smtpd_client_* limit. As a workaround, it now sends a zero value
  instead.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2.2.7 -r1.1.1.2.2.8 \
src/external/ibm-public/postfix/dist/HISTORY
cvs rdiff -u -r1.1.1.1.2.3 -r1.1.1.1.2.4 \
src/external/ibm-public/postfix/dist/README_FILES/MILTER_README
cvs rdiff -u -r1.1.1.1.2.3 -r1.1.1.1.2.4 \
src/external/ibm-public/postfix/dist/html/MILTER_README.html
cvs rdiff -u -r1.1.1.1.2.3 -r1.1.1.1.2.4 \
src/external/ibm-public/postfix/dist/proto/MILTER_README.html
cvs rdiff -u -r1.1.1.2.2.7 -r1.1.1.2.2.8 \
src/external/ibm-public/postfix/dist/src/global/mail_version.h
cvs rdiff -u -r1.1.1.2.2.5 -r1.1.1.2.2.6 \
src/external/ibm-public/postfix/dist/src/milter/milter8.c
cvs rdiff -u -r1.1.1.1.2.4 -r1.1.1.1.2.5 \
src/external/ibm-public/postfix/dist/src/smtpd/smtpd_state.c

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

Modified files:

Index: src/external/ibm-public/postfix/dist/HISTORY
diff -u src/external/ibm-public/postfix/dist/HISTORY:1.1.1.2.2.7 src/external/ibm-public/postfix/dist/HISTORY:1.1.1.2.2.8
--- src/external/ibm-public/postfix/dist/HISTORY:1.1.1.2.2.7	Tue Aug  9 18:58:15 2011
+++ src/external/ibm-public/postfix/dist/HISTORY	Sat Sep 17 18:57:32 2011
@@ -15942,3 +15942,17 @@
 	IP queries even if the name has an alphanumerical prefix.
 	We play safe, and skip RHSBL queries for names ending in a
 	numerical suffix.  File: smtpd/smtpd_check.c.
+
+20110811
+
+	Workaround: report a {client_connections} Milter macro value
+	of zero instead of garbage, when the remote SMTP client is
+	not subject to any smtpd_client_* limits. Problem reported
+	by Christian Roessner. File: smtpd/smtpd_state.c,
+	proto/MILTER_README.html.
+
+20110831
+
+	Bugfix: allow for Milters that send an SMTP server reply
+	without RFC 3463 enhanced status code. Reported by Vladimir
+	Vassiliev.  File: milter/milter8.c.

Index: src/external/ibm-public/postfix/dist/README_FILES/MILTER_README
diff -u src/external/ibm-public/postfix/dist/README_FILES/MILTER_README:1.1.1.1.2.3 src/external/ibm-public/postfix/dist/README_FILES/MILTER_README:1.1.1.1.2.4
--- src/external/ibm-public/postfix/dist/README_FILES/MILTER_README:1.1.1.1.2.3	Sun Nov 21 18:31:23 2010
+++ src/external/ibm-public/postfix/dist/README_FILES/MILTER_README	Sat Sep 17 18:57:33 2011
@@ -337,8 +337,11 @@
 |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
 |{client_addr}   |Always   |Client IP address |
 |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
-|{client_connections}|CONNECT  |Connection concurrency for|
-|| |this client   |
+|| |Connection concurrency for|
+|| |this client (zero if the  |
+

CVS commit: [netbsd-5] src/doc

2011-09-17 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sat Sep 17 18:58:20 UTC 2011

Modified Files:
src/doc [netbsd-5]: CHANGES-5.2

Log Message:
Tickets 1658, 1660, 1664, 1666, 1667, 1669


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.102 -r1.1.2.103 src/doc/CHANGES-5.2

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

Modified files:

Index: src/doc/CHANGES-5.2
diff -u src/doc/CHANGES-5.2:1.1.2.102 src/doc/CHANGES-5.2:1.1.2.103
--- src/doc/CHANGES-5.2:1.1.2.102	Mon Aug 22 17:48:28 2011
+++ src/doc/CHANGES-5.2	Sat Sep 17 18:58:20 2011
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-5.2,v 1.1.2.102 2011/08/22 17:48:28 riz Exp $
+# $NetBSD: CHANGES-5.2,v 1.1.2.103 2011/09/17 18:58:20 bouyer Exp $
 
 A complete list of changes from the NetBSD 5.1 release to the NetBSD 5.2
 release:
@@ -5539,3 +5539,92 @@
 	Address CVE-2011-2895, buffer overflow in decompression.
 	[joerg, ticket #1661]
 
+distrib/sets/lists/comp/mi			1.1659 via patch
+include/limits.h1.30 via patch
+include/unistd.h1.127 via patch
+lib/libc/sys/Makefile.inc			1.208 via patch
+lib/libc/sys/link.21.25 via patch
+sys/kern/init_sysent.c1.257 via patch
+sys/kern/syscalls.c1.248 via patch
+sys/kern/syscalls.master			1.251 via patch
+sys/kern/vfs_syscalls.c1.433 via patch
+sys/rump/include/rump/rump_syscalls.h		1.52 via patch
+sys/rump/include/rump/rumpvnode_if.h		1.12 via patch
+sys/rump/librump/rumpkern/rump_syscalls.c	1.74 via patch
+sys/rump/librump/rumpvfs/rumpvnode_if.c		1.11 via patch
+sys/sys/fcntl.h	1.40, 1.41 via patch
+sys/sys/stat.h	1.61 via patch
+sys/sys/syscall.h1.244 via patch
+sys/sys/syscallargs.h1.227 via patch
+sys/sys/vnode_if.h1.83 via patch
+
+	First stage of support for Extended API set 2. Most of the think is
+	unimplemented, except enough of linkat(2) to hardlink to a symlink.
+
+	Everything new in headers is guarded #ifdef _INCOMPLETE_XOPEN_C063
+	since some software (e.g.: xcvs in our own tree) will assume they
+	can use openat(2) when AT_FDCWD is defined. _INCOMPLETE_XOPEN_C063
+	will go away once support will be completed.
+
+	improve comment about AT_* defines: they are not only used by linkat(2)
+
+	Add macros to hide OpenGroup extened API set 2 from GNU configure. This
+	is a temporary  workaround until the implementation is completed.
+	[manu, ticket #1658]
+
+lib/librmt/rmtlib.c1.23, 1.24
+
+	Improve isrmt() check: it cannot be a rmt fd if there are no pipes
+	open for the fd.  Prevents collision with rumphijack.
+	Also, prevent potential hyperspace memory access.
+
+	PR/38413: Takahiro Kambe: mt(1) print some junk output when using
+	remote tape
+	Not all fields are valid in the ioctl to get tape info in the rmt
+	protocol.  Zero out the struct so that we don't print junk.
+	[dholland, ticket #1660]
+
+sys/ufs/ufs/ufs_extattr.c			1.35
+
+	Fix locking protocol to avoid a panic on extattrctl stop and on umount.
+	[manu, ticket #1664]
+
+sys/fs/puffs/puffs_node.c			1.20 via patch
+sys/fs/puffs/puffs_sys.h			1.78 via patch
+sys/fs/puffs/puffs_vnops.c			1.155 via patch
+
+	Add a mutex for operations that touch size
+	(setattr, getattr, write, fsync).
+
+	This is required to avoid data corruption bugs, where a getattr slices
+	itself within a setattr operation, and sets the size to the stall value
+	it got from the filesystem. That value is smaller than the one set by
+	setattr, and the call to uvm_vnp_setsize() trigged a spurious truncate.
+	The result is a chunk of zeroed data in the file.
+	[manu, ticket #1666]
+
+sys/fs/union/union_vfsops.c			1.64
+
+	Print the warning message on mount once.
+	Should fix PR #42795 (patch to make mounting union filesystems
+	less obnoxious)
+	[hannken, ticket #1667]
+
+external/ibm-public/postfix/dist/HISTORY			patch
+external/ibm-public/postfix/dist/README_FILES/MILTER_README	patch
+external/ibm-public/postfix/dist/html/MILTER_README.html	patch
+external/ibm-public/postfix/dist/proto/MILTER_README.html	patch
+external/ibm-public/postfix/dist/src/global/mail_version.h	patch
+external/ibm-public/postfix/dist/src/milter/milter8.c		patch
+external/ibm-public/postfix/dist/src/smtpd/smtpd_state.c	patch
+
+	Update Postfix to version 2.7.6. Changes since version 2.7.5:
+	- The Postfix Milter client logged a milter miltername: malformed
+	  reply error when a Milter sent an SMTP response without enhanced
+	  status code (i.e. XXX Text instead of XXX X.X.X Text).
+	- The Postfix Milter client sent a random {client_connections} macro
+	  value when the remote SMTP client was not subject to any
+	  smtpd_client_* limit. As a workaround, it now sends a zero value
+	  instead.
+	[tron, ticket #1669]
+



CVS commit: src/sys/arch/usermode/dev

2011-09-17 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Sat Sep 17 21:38:15 UTC 2011

Modified Files:
src/sys/arch/usermode/dev: clock.c

Log Message:
Transform the clock signal to a sigaction so we have the info i.e. the
context! and thus a good definition for a clockframe!


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/usermode/dev/clock.c

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

Modified files:

Index: src/sys/arch/usermode/dev/clock.c
diff -u src/sys/arch/usermode/dev/clock.c:1.19 src/sys/arch/usermode/dev/clock.c:1.20
--- src/sys/arch/usermode/dev/clock.c:1.19	Fri Sep 16 16:24:01 2011
+++ src/sys/arch/usermode/dev/clock.c	Sat Sep 17 21:38:15 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.19 2011/09/16 16:24:01 reinoud Exp $ */
+/* $NetBSD: clock.c,v 1.20 2011/09/17 21:38:15 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca
@@ -27,7 +27,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: clock.c,v 1.19 2011/09/16 16:24:01 reinoud Exp $);
+__KERNEL_RCSID(0, $NetBSD: clock.c,v 1.20 2011/09/17 21:38:15 reinoud Exp $);
 
 #include sys/param.h
 #include sys/proc.h
@@ -44,7 +44,7 @@
 static int	clock_match(device_t, cfdata_t, void *);
 static void	clock_attach(device_t, device_t, void *);
 
-static void	clock_signal(int sig);
+static void	clock_signal(int sig, siginfo_t *info, void *ctx);
 static unsigned int clock_getcounter(struct timecounter *);
 
 static int	clock_todr_gettime(struct todr_chip_handle *, struct timeval *);
@@ -101,8 +101,8 @@
 
 	memset(sa, 0, sizeof(sa));
 	thunk_sigemptyset(sa.sa_mask);
-	sa.sa_handler = clock_signal;
-	sa.sa_flags = SA_RESTART | SA_SIGINFO;
+	sa.sa_sigaction = clock_signal;
+	sa.sa_flags = SA_SIGINFO;
 	if (thunk_sigaction(SIGALRM, sa, NULL) == -1)
 		panic(couldn't register SIGALRM handler : %d,
 		thunk_geterrno());
@@ -116,7 +116,7 @@
 }
 
 static void
-clock_signal(int sig)
+clock_signal(int sig, siginfo_t *info, void *ctx)
 {
 	struct clockframe cf;
 



CVS commit: src/share/man/man8

2011-09-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 18 01:21:34 UTC 2011

Modified Files:
src/share/man/man8: sysinst.8

Log Message:
fix markup


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man8/sysinst.8

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

Modified files:

Index: src/share/man/man8/sysinst.8
diff -u src/share/man/man8/sysinst.8:1.3 src/share/man/man8/sysinst.8:1.4
--- src/share/man/man8/sysinst.8:1.3	Thu Sep  8 15:55:52 2011
+++ src/share/man/man8/sysinst.8	Sat Sep 17 21:21:34 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: sysinst.8,v 1.3 2011/09/08 19:55:52 wiz Exp $
+.\	$NetBSD: sysinst.8,v 1.4 2011/09/18 01:21:34 christos Exp $
 .\
 .\ Copyright (c) 2007 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -24,7 +24,7 @@
 .\ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\ POSSIBILITY OF SUCH DAMAGE.
 .\
-.Dd September 8, 2011
+.Dd September 17, 2011
 .Dt SYSINST 8
 .Os
 .Sh NAME
@@ -49,28 +49,28 @@
 .Nx
 system that has been fully installed.
 .Sh OPTIONS
-.Bl -tag
+.Bl -tag -width eleasename
 .It Fl D
 Switch on debugging.
+.It Fl r Ar releasename
+Set the releasename if it is different to the one compiled.
+Currently unused.
 .It Fl f Ar deffile
 Set a file for definitions other than the defaults.
 See
 .Sx DEFINITION FILE
 for its format.
-.It Fl r Ar releasename
-Set the releasename if it is different to the one compiled.
-Currently unused.
 .El
 .Sh DEFINITION FILE
-The definition file is used to set several other names and directories to search
-for.
+The definition file is used to set several other names and directories
+to search for.
 You can specify any of the options in the file.
-They are stored as
+They are stored as:
 .Dl option = value
 pairs.
 In this description, REL and MACH are the release and architecture
 respectively, determined by the image sysinst is used on.
-.Bl -column -offset indent .Sy option name .Sy default value .Sy description
+.Bl -column targetroot mount pub/NetBSD/NetBSD-REL
 .It Sy option name Ta Sy default value Ta Sy description
 .It release Ta REL Ta Release name (also set by Fl r Ar releasename ) .
 .It machine Ta MACH Ta Machine architecture
@@ -79,16 +79,16 @@
 .It ftp host Ta ftp.NetBSD.org Ta ftp host for fetching files
 .It ftp dir Ta pub/NetBSD/NetBSD-REL Ta ftp directory for fetching files
 .It ftp prefix Ta /MACH/binary/sets Ta directory to look for sets.
-Not that
-this is used for all kinds of fetching (CDs, local FS, ...), not only ftp.
+Note that this is used for all kinds of fetching (CDs, local FS, ...),
+not only ftp.
 .It ftp user Ta ftp Ta ftp user for connecting
-.It ftp pass Ta  Ta ftp password
-.It ftp proxy Ta  Ta ftp proxy
-.It nfs host Ta  Ta nfs host for fetching via nfs
+.It ftp pass Ta - Ta ftp password
+.It ftp proxy Ta - Ta ftp proxy
+.It nfs host Ta - Ta nfs host for fetching via nfs
 .It nfs dir Ta /bsd/release Ta nfs directory for fetching files
 .It cd dev Ta cd0a Ta name of the CD device for fetching files
 .It fd dev Ta /dev/fd0a Ta name of floppy for fetching files
-.It local dev Ta  Ta Other device to be mounted for fetching files
+.It local dev Ta - Ta Other device to be mounted for fetching files
 .It local fs Ta ffs Ta FS-type for local dev
 .It local dir Ta release Ta Directory to look for in the mounted local fs
 .It targetroot mount Ta /targetroot Ta Directory to mount target root dir to
@@ -99,9 +99,10 @@
 .Xr release 7 ,
 .Xr afterboot 8 ,
 .Xr boot 8 ,
-.Xr diskless 8 ,
+.Xr diskless 8
+.Pp
 .Em \*[Lt]machine\*[Gt] Ns Pa /INSTALL.*
-files on CD-ROM installation media,
+files on CD-ROM installation media
 .Pa .../NetBSD- Ns Em \*[Lt]rel\*[Gt] Ns Pa / Ns Em \*[Lt]machine\*[Gt] Ns Pa /INSTALL.*
 files in
 .Nx



CVS commit: src/tests/lib/libm

2011-09-17 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Sep 18 04:48:38 UTC 2011

Modified Files:
src/tests/lib/libm: t_acos.c

Log Message:
Reduce tolerance to see whether still acosf(cosf(x)) != x on i386/qemu.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_acos.c

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

Modified files:

Index: src/tests/lib/libm/t_acos.c
diff -u src/tests/lib/libm/t_acos.c:1.1 src/tests/lib/libm/t_acos.c:1.2
--- src/tests/lib/libm/t_acos.c:1.1	Sat Sep 17 18:08:35 2011
+++ src/tests/lib/libm/t_acos.c	Sun Sep 18 04:48:38 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_acos.c,v 1.1 2011/09/17 18:08:35 jruoho Exp $ */
+/* $NetBSD: t_acos.c,v 1.2 2011/09/18 04:48:38 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -241,7 +241,7 @@
 {
 #ifndef __vax__
 	const float x[] = { 0.0, 1.0, M_PI / 2, M_PI / 3, M_PI / 6 };
-	const float eps = 1.0e-15;
+	const float eps = 1.0e-5;
 	float y;
 	size_t i;
 



CVS commit: src/tests/lib/libm

2011-09-17 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Sep 18 04:49:11 UTC 2011

Modified Files:
src/tests/lib/libm: t_log.c

Log Message:
Add few basic checks.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libm/t_log.c

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

Modified files:

Index: src/tests/lib/libm/t_log.c
diff -u src/tests/lib/libm/t_log.c:1.4 src/tests/lib/libm/t_log.c:1.5
--- src/tests/lib/libm/t_log.c:1.4	Tue Sep 13 04:24:30 2011
+++ src/tests/lib/libm/t_log.c	Sun Sep 18 04:49:11 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_log.c,v 1.4 2011/09/13 04:24:30 jruoho Exp $ */
+/* $NetBSD: t_log.c,v 1.5 2011/09/18 04:49:11 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: t_log.c,v 1.4 2011/09/13 04:24:30 jruoho Exp $);
+__RCSID($NetBSD: t_log.c,v 1.5 2011/09/18 04:49:11 jruoho Exp $);
 
 #include atf-c.h
 #include stdio.h
@@ -38,6 +38,17 @@
 /*
  * log10(3)
  */
+ATF_TC(log10_base);
+ATF_TC_HEAD(log10_base, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test log10(10) == 1);
+}
+
+ATF_TC_BODY(log10_base, tc)
+{
+	ATF_CHECK(log10(10.0) == 1.0);
+}
+
 ATF_TC(log10_nan);
 ATF_TC_HEAD(log10_nan, tc)
 {
@@ -136,6 +147,17 @@
 /*
  * log10f(3)
  */
+ATF_TC(log10f_base);
+ATF_TC_HEAD(log10f_base, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test log10f(10) == 1);
+}
+
+ATF_TC_BODY(log10f_base, tc)
+{
+	ATF_CHECK(log10f(10.0) == 1.0);
+}
+
 ATF_TC(log10f_nan);
 ATF_TC_HEAD(log10f_nan, tc)
 {
@@ -436,6 +458,17 @@
 /*
  * log2(3)
  */
+ATF_TC(log2_base);
+ATF_TC_HEAD(log2_base, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test log2(2) == 1);
+}
+
+ATF_TC_BODY(log2_base, tc)
+{
+	ATF_CHECK(log2(2.0) == 1.0);
+}
+
 ATF_TC(log2_nan);
 ATF_TC_HEAD(log2_nan, tc)
 {
@@ -534,6 +567,17 @@
 /*
  * log2f(3)
  */
+ATF_TC(log2f_base);
+ATF_TC_HEAD(log2f_base, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test log2f(2) == 1);
+}
+
+ATF_TC_BODY(log2f_base, tc)
+{
+	ATF_CHECK(log2f(2.0) == 1.0);
+}
+
 ATF_TC(log2f_nan);
 ATF_TC_HEAD(log2f_nan, tc)
 {
@@ -632,6 +676,20 @@
 /*
  * log(3)
  */
+ATF_TC(log_base);
+ATF_TC_HEAD(log_base, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test log(e) == 1);
+}
+
+ATF_TC_BODY(log_base, tc)
+{
+	const double eps = 1.0e-40;
+
+	if (fabs(log(M_E) - 1.0)  eps)
+		atf_tc_fail_nonfatal(log(e) != 1);
+}
+
 ATF_TC(log_nan);
 ATF_TC_HEAD(log_nan, tc)
 {
@@ -727,10 +785,23 @@
 #endif
 }
 
-
 /*
  * logf(3)
  */
+ATF_TC(logf_base);
+ATF_TC_HEAD(logf_base, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test logf(e) == 1);
+}
+
+ATF_TC_BODY(logf_base, tc)
+{
+	const float eps = 1.0e-7;
+
+	if (fabsf(logf(M_E) - 1.0)  eps)
+		atf_tc_fail_nonfatal(logf(e) != 1);
+}
+
 ATF_TC(logf_nan);
 ATF_TC_HEAD(logf_nan, tc)
 {
@@ -829,6 +900,7 @@
 ATF_TP_ADD_TCS(tp)
 {
 
+	ATF_TP_ADD_TC(tp, log10_base);
 	ATF_TP_ADD_TC(tp, log10_nan);
 	ATF_TP_ADD_TC(tp, log10_inf_neg);
 	ATF_TP_ADD_TC(tp, log10_inf_pos);
@@ -836,6 +908,7 @@
 	ATF_TP_ADD_TC(tp, log10_zero_neg);
 	ATF_TP_ADD_TC(tp, log10_zero_pos);
 
+	ATF_TP_ADD_TC(tp, log10f_base);
 	ATF_TP_ADD_TC(tp, log10f_nan);
 	ATF_TP_ADD_TC(tp, log10f_inf_neg);
 	ATF_TP_ADD_TC(tp, log10f_inf_pos);
@@ -857,6 +930,7 @@
 	ATF_TP_ADD_TC(tp, log1pf_zero_neg);
 	ATF_TP_ADD_TC(tp, log1pf_zero_pos);
 
+	ATF_TP_ADD_TC(tp, log2_base);
 	ATF_TP_ADD_TC(tp, log2_nan);
 	ATF_TP_ADD_TC(tp, log2_inf_neg);
 	ATF_TP_ADD_TC(tp, log2_inf_pos);
@@ -864,6 +938,7 @@
 	ATF_TP_ADD_TC(tp, log2_zero_neg);
 	ATF_TP_ADD_TC(tp, log2_zero_pos);
 
+	ATF_TP_ADD_TC(tp, log2f_base);
 	ATF_TP_ADD_TC(tp, log2f_nan);
 	ATF_TP_ADD_TC(tp, log2f_inf_neg);
 	ATF_TP_ADD_TC(tp, log2f_inf_pos);
@@ -871,6 +946,7 @@
 	ATF_TP_ADD_TC(tp, log2f_zero_neg);
 	ATF_TP_ADD_TC(tp, log2f_zero_pos);
 
+	ATF_TP_ADD_TC(tp, log_base);
 	ATF_TP_ADD_TC(tp, log_nan);
 	ATF_TP_ADD_TC(tp, log_inf_neg);
 	ATF_TP_ADD_TC(tp, log_inf_pos);
@@ -878,6 +954,7 @@
 	ATF_TP_ADD_TC(tp, log_zero_neg);
 	ATF_TP_ADD_TC(tp, log_zero_pos);
 
+	ATF_TP_ADD_TC(tp, logf_base);
 	ATF_TP_ADD_TC(tp, logf_nan);
 	ATF_TP_ADD_TC(tp, logf_inf_neg);
 	ATF_TP_ADD_TC(tp, logf_inf_pos);



CVS commit: src

2011-09-17 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Sep 18 05:19:18 UTC 2011

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/lib/libm: Makefile
Added Files:
src/tests/lib/libm: t_exp.c

Log Message:
IEEE checks for the exponential family.


To generate a diff of this commit:
cvs rdiff -u -r1.388 -r1.389 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.12 -r1.13 src/tests/lib/libm/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/lib/libm/t_exp.c

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

Modified files:

Index: src/distrib/sets/lists/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.388 src/distrib/sets/lists/tests/mi:1.389
--- src/distrib/sets/lists/tests/mi:1.388	Sat Sep 17 18:08:36 2011
+++ src/distrib/sets/lists/tests/mi	Sun Sep 18 05:19:18 2011
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.388 2011/09/17 18:08:36 jruoho Exp $
+# $NetBSD: mi,v 1.389 2011/09/18 05:19:18 jruoho Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -552,6 +552,7 @@
 ./usr/libdata/debug/usr/tests/lib/libm/t_ceil.debug			tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libm/t_cos.debug			tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libm/t_erf.debug			tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libm/t_exp.debug			tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libm/t_floor.debug			tests-obsolete		obsolete
 ./usr/libdata/debug/usr/tests/lib/libm/t_infinity.debug			tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libm/t_ldexp.debug			tests-lib-debug		debug,atf
@@ -2266,6 +2267,7 @@
 ./usr/tests/lib/libm/t_ceil			tests-lib-tests		atf
 ./usr/tests/lib/libm/t_cos			tests-lib-tests		atf
 ./usr/tests/lib/libm/t_erf			tests-lib-tests		atf
+./usr/tests/lib/libm/t_exp			tests-lib-tests		atf
 ./usr/tests/lib/libm/t_floor			tests-obsolete		obsolete
 ./usr/tests/lib/libm/t_infinity			tests-lib-tests		atf
 ./usr/tests/lib/libm/t_ldexp			tests-lib-tests		atf

Index: src/tests/lib/libm/Makefile
diff -u src/tests/lib/libm/Makefile:1.12 src/tests/lib/libm/Makefile:1.13
--- src/tests/lib/libm/Makefile:1.12	Sat Sep 17 18:08:35 2011
+++ src/tests/lib/libm/Makefile	Sun Sep 18 05:19:18 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2011/09/17 18:08:35 jruoho Exp $
+# $NetBSD: Makefile,v 1.13 2011/09/18 05:19:18 jruoho Exp $
 
 .include bsd.own.mk
 
@@ -10,6 +10,7 @@
 TESTS_C+=	t_ceil
 TESTS_C+=	t_cos
 TESTS_C+=	t_erf
+TESTS_C+=	t_exp
 TESTS_C+=	t_infinity
 TESTS_C+=	t_ldexp
 TESTS_C+=	t_log

Added files:

Index: src/tests/lib/libm/t_exp.c
diff -u /dev/null src/tests/lib/libm/t_exp.c:1.1
--- /dev/null	Sun Sep 18 05:19:19 2011
+++ src/tests/lib/libm/t_exp.c	Sun Sep 18 05:19:18 2011
@@ -0,0 +1,684 @@
+/* $NetBSD: t_exp.c,v 1.1 2011/09/18 05:19:18 jruoho Exp $ */
+
+/*-
+ * Copyright (c) 2011 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Jukka Ruohonen.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include atf-c.h
+#include math.h
+
+/*
+ * exp2(3)
+ */
+ATF_TC(exp2_nan);
+ATF_TC_HEAD(exp2_nan, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test exp2(NaN) == NaN);
+}
+
+ATF_TC_BODY(exp2_nan, tc)
+{
+#ifndef __vax__
+	const double x = 0.0L / 0.0L;
+
+	if (isnan(exp2(x)) == 0)
+		atf_tc_fail_nonfatal(exp2(NaN) != NaN);
+#endif
+}
+
+ATF_TC(exp2_inf_neg);
+ATF_TC_HEAD(exp2_inf_neg, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test exp2(-Inf) == +0.0);
+}
+
+ATF_TC_BODY(exp2_inf_neg, tc)
+{
+#ifndef __vax__
+	const double x = -1.0L / 0.0L;
+	double y = exp2(x);
+
+	if (fabs(y)  0.0 || signbit(y) != 0)
+		

CVS commit: src/lib/libm/man

2011-09-17 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Sep 18 05:33:14 UTC 2011

Modified Files:
src/lib/libm/man: ceil.3 ldexp.3 nextafter.3 remainder.3 scalbn.3
tanh.3

Log Message:
Remove BUGS as per joerg@'s objection.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/lib/libm/man/ceil.3
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/man/ldexp.3 \
src/lib/libm/man/nextafter.3
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/man/remainder.3 \
src/lib/libm/man/scalbn.3
cvs rdiff -u -r1.13 -r1.14 src/lib/libm/man/tanh.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/libm/man/ceil.3
diff -u src/lib/libm/man/ceil.3:1.18 src/lib/libm/man/ceil.3:1.19
--- src/lib/libm/man/ceil.3:1.18	Sat Apr 16 05:48:50 2011
+++ src/lib/libm/man/ceil.3	Sun Sep 18 05:33:13 2011
@@ -26,9 +26,9 @@
 .\ SUCH DAMAGE.
 .\
 .\ from: @(#)ceil.3	5.1 (Berkeley) 5/2/91
-.\	$NetBSD: ceil.3,v 1.18 2011/04/16 05:48:50 jruoho Exp $
+.\	$NetBSD: ceil.3,v 1.19 2011/09/18 05:33:13 jruoho Exp $
 .\
-.Dd April 16, 2011
+.Dd September 18, 2011
 .Dt CEIL 3
 .Os
 .Sh NAME
@@ -73,7 +73,3 @@
 .Sh STANDARDS
 The described functions conform to
 .St -isoC-99 .
-.Sh BUGS
-The
-.Vt long double
-variants of the functions are not yet supported.

Index: src/lib/libm/man/ldexp.3
diff -u src/lib/libm/man/ldexp.3:1.3 src/lib/libm/man/ldexp.3:1.4
--- src/lib/libm/man/ldexp.3:1.3	Mon Sep 12 17:08:22 2011
+++ src/lib/libm/man/ldexp.3	Sun Sep 18 05:33:13 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: ldexp.3,v 1.3 2011/09/12 17:08:22 wiz Exp $
+.\	$NetBSD: ldexp.3,v 1.4 2011/09/18 05:33:13 jruoho Exp $
 .\
 .\ Copyright (c) 1991, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -33,7 +33,7 @@
 .\
 .\ @(#)ldexp.3	8.2 (Berkeley) 4/19/94
 .\
-.Dd September 12, 2011
+.Dd September 18, 2011
 .Dt LDEXP 3
 .Os
 .Sh NAME
@@ -100,8 +100,3 @@
 .Sh STANDARDS
 The described functions conform to
 .St -isoC-99 .
-.Sh BUGS
-The
-.Vt long double
-variant is not supported in
-.Nx .
Index: src/lib/libm/man/nextafter.3
diff -u src/lib/libm/man/nextafter.3:1.3 src/lib/libm/man/nextafter.3:1.4
--- src/lib/libm/man/nextafter.3:1.3	Tue Sep 13 07:11:43 2011
+++ src/lib/libm/man/nextafter.3	Sun Sep 18 05:33:14 2011
@@ -1,4 +1,4 @@
-.\ $NetBSD: nextafter.3,v 1.3 2011/09/13 07:11:43 njoly Exp $
+.\ $NetBSD: nextafter.3,v 1.4 2011/09/18 05:33:14 jruoho Exp $
 .\
 .\ Copyright (c) 2011 Jukka Ruohonen jruoho...@iki.fi
 .\ All rights reserved.
@@ -24,7 +24,7 @@
 .\ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\ POSSIBILITY OF SUCH DAMAGE.
 .\
-.Dd April 12, 2011
+.Dd September 18, 2011
 .Dt NEXTAFTER 3
 .Os
 .Sh NAME
@@ -124,25 +124,3 @@
 .Sh STANDARDS
 The described functions conform to
 .St -isoC-99 .
-.\
-.\ XXX: Verify this.
-.\
-.\ The
-.\ .Fn nextafter
-.\ function is also recommended by
-.\ .St -ieee754
-.\
-.\ .Sh HISTORY
-.\
-.\ XXX: Fill this.
-.\ These functions first appeared in
-.\ .Bx 4.3 .
-.Sh BUGS
-Currently the
-.Vt float
-and
-.Vt long double
-variants of
-.Fn nexttoward
-are not supported in
-.Nx .

Index: src/lib/libm/man/remainder.3
diff -u src/lib/libm/man/remainder.3:1.1 src/lib/libm/man/remainder.3:1.2
--- src/lib/libm/man/remainder.3:1.1	Wed Apr 13 04:57:10 2011
+++ src/lib/libm/man/remainder.3	Sun Sep 18 05:33:14 2011
@@ -1,4 +1,4 @@
-.\ $NetBSD: remainder.3,v 1.1 2011/04/13 04:57:10 jruoho Exp $
+.\ $NetBSD: remainder.3,v 1.2 2011/09/18 05:33:14 jruoho Exp $
 .\
 .\ Copyright (c) 2011 Jukka Ruohonen jruoho...@iki.fi
 .\ All rights reserved.
@@ -24,7 +24,7 @@
 .\ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\ POSSIBILITY OF SUCH DAMAGE.
 .\
-.Dd April 13, 2011
+.Dd September 18, 2011
 .Dt REMAINDER 3
 .Os
 .Sh NAME
@@ -142,8 +142,3 @@
 .Sh STANDARDS
 The described functions conform to
 .St -isoC-99 .
-.Sh BUGS
-The
-.Vt long double
-variants are not yet supported in
-.Nx .
Index: src/lib/libm/man/scalbn.3
diff -u src/lib/libm/man/scalbn.3:1.1 src/lib/libm/man/scalbn.3:1.2
--- src/lib/libm/man/scalbn.3:1.1	Sat Aug  6 10:51:26 2011
+++ src/lib/libm/man/scalbn.3	Sun Sep 18 05:33:14 2011
@@ -1,4 +1,4 @@
-.\ $NetBSD: scalbn.3,v 1.1 2011/08/06 10:51:26 jruoho Exp $
+.\ $NetBSD: scalbn.3,v 1.2 2011/09/18 05:33:14 jruoho Exp $
 .\
 .\ Copyright (c) 2011 Jukka Ruohonen jruoho...@iki.fi
 .\ All rights reserved.
@@ -24,7 +24,7 @@
 .\ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\ POSSIBILITY OF SUCH DAMAGE.
 .\
-.Dd May 31, 2011
+.Dd September 18, 2011
 .Dt SCALBN 3
 .Os
 .Sh NAME
@@ -106,9 +106,3 @@
 .Sh STANDARDS
 The described functions conform to
 .St -isoC-99 .
-.Sh BUGS
-.Nx
-does not support the variants where the type of
-.Fa n
-is
-.Ft long int .

Index: src/lib/libm/man/tanh.3
diff -u src/lib/libm/man/tanh.3:1.13 src/lib/libm/man/tanh.3:1.14
--- src/lib/libm/man/tanh.3:1.13	Mon Sep 12 16:08:42 2011
+++