CVS commit: src/lib/libutil

2011-09-14 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Wed Sep 14 11:43:29 UTC 2011

Modified Files:
src/lib/libutil: getlabelsector.3

Log Message:
Kill empty Dv macro.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/libutil/getlabelsector.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/libutil/getlabelsector.3
diff -u src/lib/libutil/getlabelsector.3:1.7 src/lib/libutil/getlabelsector.3:1.8
--- src/lib/libutil/getlabelsector.3:1.7	Mon Sep  5 18:25:57 2011
+++ src/lib/libutil/getlabelsector.3	Wed Sep 14 11:43:29 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: getlabelsector.3,v 1.7 2011/09/05 18:25:57 wiz Exp $
+.\	$NetBSD: getlabelsector.3,v 1.8 2011/09/14 11:43:29 njoly Exp $
 .\
 .\
 .\ Copyright 2002 Wasabi Systems, Inc.
@@ -71,7 +71,6 @@
 .Fn getlabelusesmbr
 returns 1 if the disklabel is located inside a MBR partition, 0 if it's stored
 relative to the start of the disk, or \-1 on error.
-.Dv
 .Sh SEE ALSO
 .Xr sysctl 3 ,
 .Xr disklabel 5



CVS commit: src/usr.bin/xlint/xlint

2011-09-18 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun Sep 18 09:07:35 UTC 2011

Modified Files:
src/usr.bin/xlint/xlint: xlint.c

Log Message:
Fix lseek(2) swapped arguments.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/usr.bin/xlint/xlint/xlint.c

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/xlint/xlint/xlint.c
diff -u src/usr.bin/xlint/xlint/xlint.c:1.43 src/usr.bin/xlint/xlint/xlint.c:1.44
--- src/usr.bin/xlint/xlint/xlint.c:1.43	Mon Mar 22 01:29:30 2010
+++ src/usr.bin/xlint/xlint/xlint.c	Sun Sep 18 09:07:35 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: xlint.c,v 1.43 2010/03/22 01:29:30 mrg Exp $ */
+/* $NetBSD: xlint.c,v 1.44 2011/09/18 09:07:35 njoly Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include sys/cdefs.h
 #if defined(__RCSID)  !defined(lint)
-__RCSID($NetBSD: xlint.c,v 1.43 2010/03/22 01:29:30 mrg Exp $);
+__RCSID($NetBSD: xlint.c,v 1.44 2011/09/18 09:07:35 njoly Exp $);
 #endif
 
 #include sys/param.h
@@ -680,7 +680,7 @@
 	appcstrg(args, name);
 
 	/* we reuse the same tmp file for cpp output, so rewind and truncate */
-	if (lseek(cppoutfd, SEEK_SET, (off_t)0) != 0) {
+	if (lseek(cppoutfd, (off_t)0, SEEK_SET) != 0) {
 		warn(lseek);
 		terminate(-1);
 	}



CVS commit: src/lib/libm/man

2011-09-18 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun Sep 18 10:58:29 UTC 2011

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

Log Message:
Fix a few xrefs.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 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.23 src/lib/libm/man/math.3:1.24
--- src/lib/libm/man/math.3:1.23	Sat Sep 17 13:28:51 2011
+++ src/lib/libm/man/math.3	Sun Sep 18 10:58:28 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: math.3,v 1.23 2011/09/17 13:28:51 wiz Exp $
+.\	$NetBSD: math.3,v 1.24 2011/09/18 10:58:28 njoly Exp $
 .\
 .\ Copyright (c) 1985 Regents of the University of California.
 .\ All rights reserved.
@@ -54,10 +54,10 @@
 .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 atan2	Xr 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 copysign	Xr copysign 3	copy sign bit	0
 .It cos	Xr cos 3	trigonometric function	1
 .It cosh	Xr cosh 3	hyperbolic function	3
 .It erf	Xr erf 3	error function	???
@@ -65,26 +65,26 @@
 .It exp	Xr exp 3	exponential	1
 .It expm1	Xr exp 3	exp(x)\-1	1
 .It fabs	Xr fabs 3	absolute value	0
-.It finite	Xr ieee 3	test for finity	0
+.It finite	Xr finite 3	test for finity	0
 .It floor	Xr floor 3	integer no greater than	0
 .It fmod	Xr fmod 3	remainder	???
 .It hypot	Xr hypot 3	Euclidean distance	1
-.It ilogb	Xr ieee 3	exponent extraction	0
+.It ilogb	Xr ilogb 3	exponent extraction	0
 .It isinf	Xr isinf 3	test for infinity	0
 .It isnan	Xr isnan 3	test for not-a-number	0
 .It j0	Xr j0 3	Bessel function	???
 .It j1	Xr j0 3	Bessel function	???
 .It jn	Xr j0 3	Bessel function	???
 .It lgamma	Xr lgamma 3	log gamma function	???
-.It log	Xr exp 3	natural logarithm	1
-.It log10	Xr exp 3	logarithm to base 10	3
-.It log1p	Xr exp 3	log(1+x)	1
+.It log	Xr log 3	natural logarithm	1
+.It log10	Xr log 3	logarithm to base 10	3
+.It log1p	Xr log 3	log(1+x)	1
 .It nan	Xr nan 3	return quiet \*(Na	0
-.It nextafter	Xr ieee 3	next representable number	0
-.It pow	Xr exp 3	exponential x**y	60\-500
-.It remainder	Xr ieee 3	remainder	0
+.It nextafter	Xr nextafter 3	next representable number	0
+.It pow	Xr pow 3	exponential x**y	60\-500
+.It remainder	Xr remainder 3	remainder	0
 .It rint	Xr rint 3	round to nearest integer	0
-.It scalbn	Xr ieee 3	exponent adjustment	0
+.It scalbn	Xr scalbn 3	exponent adjustment	0
 .It sin	Xr sin 3	trigonometric function	1
 .It sinh	Xr sinh 3	hyperbolic function	3
 .It sqrt	Xr sqrt 3	square root	1



CVS commit: src/distrib/sets/lists/tests

2011-09-19 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Sep 19 11:57:11 UTC 2011

Modified Files:
src/distrib/sets/lists/tests: mi

Log Message:
Small typo (t_fpsclassify - t_fpclassify).


To generate a diff of this commit:
cvs rdiff -u -r1.392 -r1.393 src/distrib/sets/lists/tests/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/sets/lists/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.392 src/distrib/sets/lists/tests/mi:1.393
--- src/distrib/sets/lists/tests/mi:1.392	Mon Sep 19 11:04:33 2011
+++ src/distrib/sets/lists/tests/mi	Mon Sep 19 11:57:11 2011
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.392 2011/09/19 11:04:33 jruoho Exp $
+# $NetBSD: mi,v 1.393 2011/09/19 11:57:11 njoly Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -1890,7 +1890,7 @@
 ./usr/tests/lib/libc/gen/t_closefrom		tests-lib-tests		atf
 ./usr/tests/lib/libc/gen/t_dir			tests-lib-tests		atf
 ./usr/tests/lib/libc/gen/t_fmtcheck		tests-lib-tests		atf
-./usr/tests/lib/libc/gen/t_fpsclassify		tests-lib-tests		atf
+./usr/tests/lib/libc/gen/t_fpclassify		tests-lib-tests		atf
 ./usr/tests/lib/libc/gen/t_fpsetmask		tests-lib-tests		atf
 ./usr/tests/lib/libc/gen/t_fpsetround		tests-lib-tests		atf
 ./usr/tests/lib/libc/gen/t_getcwd		tests-lib-tests		atf



CVS commit: src/lib/libm/man

2011-09-22 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Thu Sep 22 18:14:09 UTC 2011

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

Log Message:
In functions list, switch from tab characters to Ta macro. Makes
nroff properly handle xrefs.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 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.24 src/lib/libm/man/math.3:1.25
--- src/lib/libm/man/math.3:1.24	Sun Sep 18 10:58:28 2011
+++ src/lib/libm/man/math.3	Thu Sep 22 18:14:09 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: math.3,v 1.24 2011/09/18 10:58:28 njoly Exp $
+.\	$NetBSD: math.3,v 1.25 2011/09/22 18:14:09 njoly Exp $
 .\
 .\ Copyright (c) 1985 Regents of the University of California.
 .\ All rights reserved.
@@ -48,52 +48,52 @@
 .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	Xr 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 copysign 3	copy sign bit	0
-.It cos	Xr cos 3	trigonometric function	1
-.It cosh	Xr cosh 3	hyperbolic function	3
-.It erf	Xr erf 3	error function	???
-.It erfc	Xr erf 3	complementary error function	???
-.It exp	Xr exp 3	exponential	1
-.It expm1	Xr exp 3	exp(x)\-1	1
-.It fabs	Xr fabs 3	absolute value	0
-.It finite	Xr finite 3	test for finity	0
-.It floor	Xr floor 3	integer no greater than	0
-.It fmod	Xr fmod 3	remainder	???
-.It hypot	Xr hypot 3	Euclidean distance	1
-.It ilogb	Xr ilogb 3	exponent extraction	0
-.It isinf	Xr isinf 3	test for infinity	0
-.It isnan	Xr isnan 3	test for not-a-number	0
-.It j0	Xr j0 3	Bessel function	???
-.It j1	Xr j0 3	Bessel function	???
-.It jn	Xr j0 3	Bessel function	???
-.It lgamma	Xr lgamma 3	log gamma function	???
-.It log	Xr log 3	natural logarithm	1
-.It log10	Xr log 3	logarithm to base 10	3
-.It log1p	Xr log 3	log(1+x)	1
-.It nan	Xr nan 3	return quiet \*(Na	0
-.It nextafter	Xr nextafter 3	next representable number	0
-.It pow	Xr pow 3	exponential x**y	60\-500
-.It remainder	Xr remainder 3	remainder	0
-.It rint	Xr rint 3	round to nearest integer	0
-.It scalbn	Xr scalbn 3	exponent adjustment	0
-.It sin	Xr sin 3	trigonometric function	1
-.It sinh	Xr sinh 3	hyperbolic function	3
-.It sqrt	Xr sqrt 3	square root	1
-.It tan	Xr tan 3	trigonometric function	3
-.It tanh	Xr tanh 3	hyperbolic function	3
-.It trunc	Xr trunc 3	nearest integral value	3
-.It y0	Xr j0 3	Bessel function	???
-.It y1	Xr j0 3	Bessel function	???
-.It yn	Xr j0 3	Bessel function	???
+.It acos Ta Xr acos 3 Ta inverse trigonometric function Ta 3
+.It acosh Ta Xr acosh 3 Ta inverse hyperbolic function Ta 3
+.It asin Ta Xr asin 3 Ta inverse trigonometric function Ta 3
+.It asinh Ta Xr asinh 3 Ta inverse hyperbolic function Ta 3
+.It atan Ta Xr atan 3 Ta inverse trigonometric function Ta 1
+.It atanh Ta Xr atanh 3 Ta inverse hyperbolic function Ta 3
+.It atan2 Ta Xr atan2 3 Ta inverse trigonometric function Ta 2
+.It cbrt Ta Xr sqrt 3 Ta cube root Ta 1
+.It ceil Ta Xr ceil 3 Ta integer no less than Ta 0
+.It copysign Ta Xr copysign 3 Ta copy sign bit Ta 0
+.It cos Ta Xr cos 3 Ta trigonometric function Ta 1
+.It cosh Ta Xr cosh 3 Ta hyperbolic function Ta 3
+.It erf Ta Xr erf 3 Ta error function Ta ???
+.It erfc Ta Xr erf 3 Ta complementary error function Ta ???
+.It exp Ta Xr exp 3 Ta exponential Ta 1
+.It expm1 Ta Xr exp 3 Ta exp(x)\-1 Ta 1
+.It fabs Ta Xr fabs 3 Ta absolute value Ta 0
+.It finite Ta Xr finite 3 Ta test for finity Ta 0
+.It floor Ta Xr floor 3 Ta integer no greater than Ta 0
+.It fmod Ta Xr fmod 3 Ta remainder Ta ???
+.It hypot Ta Xr hypot 3 Ta Euclidean distance Ta 1
+.It ilogb Ta Xr ilogb 3 Ta exponent extraction Ta 0
+.It isinf Ta Xr isinf 3 Ta test for infinity Ta 0
+.It isnan Ta Xr isnan 3 Ta test for not-a-number Ta 0
+.It j0 Ta Xr j0 3 Ta Bessel function Ta ???
+.It j1 Ta Xr j0 3 Ta Bessel function Ta ???
+.It jn Ta Xr j0 3 Ta Bessel function Ta ???
+.It lgamma Ta Xr lgamma 3 Ta log gamma function Ta ???
+.It log Ta Xr log 3 Ta natural logarithm Ta 1
+.It log10 Ta Xr log 3 Ta logarithm to base 10 Ta 3
+.It log1p Ta Xr log 3 Ta log(1+x) Ta 1
+.It nan Ta Xr nan 3 Ta return quiet \*(Na Ta 0
+.It nextafter Ta Xr nextafter 3 Ta next representable number Ta 0
+.It pow Ta Xr pow 3 Ta exponential x**y Ta 60\-500
+.It remainder Ta Xr remainder 3 Ta remainder Ta 0
+.It rint Ta Xr rint 3 Ta round to nearest integer Ta 0
+.It scalbn Ta Xr scalbn 3 Ta exponent adjustment Ta 0
+.It sin Ta 

CVS commit: src/sys/dev/pci

2011-09-23 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Sep 23 14:25:13 UTC 2011

Modified Files:
src/sys/dev/pci: pcidevs

Log Message:
Add NVIDIA GeForce 210.


To generate a diff of this commit:
cvs rdiff -u -r1.1097 -r1.1098 src/sys/dev/pci/pcidevs

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

Modified files:

Index: src/sys/dev/pci/pcidevs
diff -u src/sys/dev/pci/pcidevs:1.1097 src/sys/dev/pci/pcidevs:1.1098
--- src/sys/dev/pci/pcidevs:1.1097	Mon Sep  5 04:31:43 2011
+++ src/sys/dev/pci/pcidevs	Fri Sep 23 14:25:13 2011
@@ -1,4 +1,4 @@
-$NetBSD: pcidevs,v 1.1097 2011/09/05 04:31:43 msaitoh Exp $
+$NetBSD: pcidevs,v 1.1098 2011/09/23 14:25:13 njoly Exp $
 
 /*
  * Copyright (c) 1995, 1996 Christopher G. Demetriou
@@ -3784,6 +3784,7 @@
 product NVIDIA	MCP73_HDA_1	0x07fc	nForce MCP73 High Definition Audio Controller
 product NVIDIA	MCP73_HDA_2	0x07fd	nForce MCP73 High Definition Audio Controller
 product NVIDIA	MCP78S_SMB	0x0752	nForce MCP78S SMBus Controller
+product NVIDIA	GEFORCE_210	0x0a65	GeForce 210
 product NVIDIA	MCP79_SMB	0x0aa2	nForce MCP79 SMBus Controller
 product NVIDIA	MCP79_LAN1	0x0ab0	nForce MCP79 Gigabit Ethernet Controller
 product NVIDIA	MCP79_LAN2	0x0ab1	nForce MCP79 Gigabit Ethernet Controller



CVS commit: src/share/man/man8

2011-09-24 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sat Sep 24 08:39:39 UTC 2011

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

Log Message:
Regen after recent i386/ - x86/ fdc(4) and lpt(4) moves.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/share/man/man8/MAKEDEV.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/MAKEDEV.8
diff -u src/share/man/man8/MAKEDEV.8:1.40 src/share/man/man8/MAKEDEV.8:1.41
--- src/share/man/man8/MAKEDEV.8:1.40	Tue Sep  6 10:27:07 2011
+++ src/share/man/man8/MAKEDEV.8	Sat Sep 24 08:39:39 2011
@@ -6,7 +6,7 @@
 .\ *** DO NOT EDIT - any changes will be lost!!!
 .\ *** --
 .\
-.\ $NetBSD: MAKEDEV.8,v 1.40 2011/09/06 10:27:07 apb Exp $
+.\ $NetBSD: MAKEDEV.8,v 1.41 2011/09/24 08:39:39 njoly Exp $
 .\
 .\ Copyright (c) 2001, 2003, 2007, 2008 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -310,8 +310,8 @@
 . It Ar fd#
 ``floppy'' disk drives (3 1/2, 5 1/4), see
 .Xr \amiga/fdc 4 ,
-.Xr \i386/fdc 4 ,
-.Xr \sparc64/fdc 4
+.Xr \sparc64/fdc 4 ,
+.Xr \x86/fdc 4
 . It Ar fss#
 Files system snapshot devices, see
 .Xr \fss 4
@@ -547,8 +547,8 @@
 Stock lp, see
 .Xr \lpt 4 ,
 .Xr \acorn32/lpt 4 ,
-.Xr \i386/lpt 4 ,
-.Xr \mvme68k/lpt 4
+.Xr \mvme68k/lpt 4 ,
+.Xr \x86/lpt 4
 . It Ar lpa#
 Interruptless lp
 . It Ar par#



CVS commit: src/share/man/man9

2011-09-30 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Sep 30 15:47:20 UTC 2011

Modified Files:
src/share/man/man9: Makefile

Log Message:
There's no stand alone vpanic.9 man page.


To generate a diff of this commit:
cvs rdiff -u -r1.352 -r1.353 src/share/man/man9/Makefile

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/man9/Makefile
diff -u src/share/man/man9/Makefile:1.352 src/share/man/man9/Makefile:1.353
--- src/share/man/man9/Makefile:1.352	Thu Sep 29 20:55:49 2011
+++ src/share/man/man9/Makefile	Fri Sep 30 15:47:20 2011
@@ -1,4 +1,4 @@
-#   $NetBSD: Makefile,v 1.352 2011/09/29 20:55:49 christos Exp $
+#   $NetBSD: Makefile,v 1.353 2011/09/30 15:47:20 njoly Exp $
 
 #	Makefile for section 9 (kernel function and variable) manual pages.
 
@@ -53,7 +53,7 @@ MAN=	accept_filter.9 accf_data.9 accf_ht
 	uiomove.9 ucom.9 userret.9 \
 	vattr.9 veriexec.9 vcons.9 vfs.9 vfs_hooks.9 vfsops.9 vfssubr.9 \
 	video.9 vme.9 \
-	vnfileops.9 vnode.9 vnodeops.9 vnsubr.9 vpanic.9 \
+	vnfileops.9 vnode.9 vnodeops.9 vnsubr.9 \
 	ubc.9 usbdi.9 uvm.9 uvm_km.9 uvm_map.9 vmem.9 \
 	wdc.9 workqueue.9 \
 	wscons.9 wsdisplay.9 wsfont.9 wskbd.9 wsmouse.9 \



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

2011-09-30 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Sep 30 21:08:19 UTC 2011

Modified Files:
src/tests/lib/libc/sys: t_dup.c

Log Message:
Do not try to open files up to the RLIMIT_NOFILE limit, which fails
when process limit is identical to the whole system limit. Just do it
for a small fixed value, and adjust the limit accordingly instead.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libc/sys/t_dup.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/t_dup.c
diff -u src/tests/lib/libc/sys/t_dup.c:1.5 src/tests/lib/libc/sys/t_dup.c:1.6
--- src/tests/lib/libc/sys/t_dup.c:1.5	Mon Jul 18 04:29:37 2011
+++ src/tests/lib/libc/sys/t_dup.c	Fri Sep 30 21:08:19 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_dup.c,v 1.5 2011/07/18 04:29:37 jruoho Exp $ */
+/* $NetBSD: t_dup.c,v 1.6 2011/09/30 21:08:19 njoly Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,13 +29,14 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: t_dup.c,v 1.5 2011/07/18 04:29:37 jruoho Exp $);
+__RCSID($NetBSD: t_dup.c,v 1.6 2011/09/30 21:08:19 njoly Exp $);
 
 #include sys/resource.h
 #include sys/stat.h
 #include sys/wait.h
 
 #include atf-c.h
+#include err.h
 #include errno.h
 #include fcntl.h
 #include limits.h
@@ -300,13 +301,11 @@ ATF_TC_BODY(dup_max, tc)
 		(void)closefrom(0);
 		(void)memset(res, 0, sizeof(struct rlimit));
 
-		if (getrlimit(RLIMIT_NOFILE, res) != 0)
+		n = 10;
+		res.rlim_cur = res.rlim_max = n;
+		if (setrlimit(RLIMIT_NOFILE, res) != 0)
 			_exit(EX_OSERR);
 
-		if (res.rlim_cur == 0 || res.rlim_max == 0)
-			_exit(EX_OSERR);
-
-		n = res.rlim_cur;
 		buf = calloc(n, sizeof(int));
 
 		if (buf == NULL)



CVS commit: src/share/man/man4

2011-10-01 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sat Oct  1 08:50:29 UTC 2011

Modified Files:
src/share/man/man4: termios.4

Log Message:
Fix sub-section reference.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/share/man/man4/termios.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/termios.4
diff -u src/share/man/man4/termios.4:1.35 src/share/man/man4/termios.4:1.36
--- src/share/man/man4/termios.4:1.35	Tue Jun 14 13:19:32 2011
+++ src/share/man/man4/termios.4	Sat Oct  1 08:50:28 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: termios.4,v 1.35 2011/06/14 13:19:32 njoly Exp $
+.\	$NetBSD: termios.4,v 1.36 2011/10/01 08:50:28 njoly Exp $
 .\
 .\ Copyright (c) 1991, 1992, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -349,8 +349,8 @@ the
 and
 .Dv KILL
 characters (see the
-.Sx Special Characters section ) ,
-is received.
+.Sx Special Characters
+section), is received.
 This processing affects data in the input queue that has not yet been
 delimited by a newline
 .Dv NL ,



CVS commit: src/distrib/sets/lists/comp

2011-10-03 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Oct  3 09:52:24 UTC 2011

Modified Files:
src/distrib/sets/lists/comp: mi

Log Message:
+i2cscan.debug


To generate a diff of this commit:
cvs rdiff -u -r1.1685 -r1.1686 src/distrib/sets/lists/comp/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/sets/lists/comp/mi
diff -u src/distrib/sets/lists/comp/mi:1.1685 src/distrib/sets/lists/comp/mi:1.1686
--- src/distrib/sets/lists/comp/mi:1.1685	Sun Oct  2 21:19:35 2011
+++ src/distrib/sets/lists/comp/mi	Mon Oct  3 09:52:23 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.1685 2011/10/02 21:19:35 pgoyette Exp $
+#	$NetBSD: mi,v 1.1686 2011/10/03 09:52:23 njoly Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -4077,6 +4077,7 @@
 ./usr/libdata/debug/usr/sbin/hostapd.debug	comp-sysutil-debug	debug
 ./usr/libdata/debug/usr/sbin/hostapd_cli.debug	comp-sysutil-debug	debug
 ./usr/libdata/debug/usr/sbin/hprop.debug	comp-krb5-debug		kerberos,debug
+./usr/libdata/debug/usr/sbin/i2cscan.debug	comp-sysutil-debug	debug
 ./usr/libdata/debug/usr/sbin/ifmcstat.debug	comp-netutil-debug	inet6,debug
 ./usr/libdata/debug/usr/sbin/ifwatchd.debug	comp-netutil-debug	debug
 ./usr/libdata/debug/usr/sbin/inetd.debug	comp-netutil-debug	debug



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

2011-10-03 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Oct  3 15:43:55 UTC 2011

Modified Files:
src/external/bsd/file/dist/doc: libmagic.3

Log Message:
Fix magic_descriptor/magic_file quoting in SYNOPSIS.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/bsd/file/dist/doc/libmagic.3

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/doc/libmagic.3
diff -u src/external/bsd/file/dist/doc/libmagic.3:1.7 src/external/bsd/file/dist/doc/libmagic.3:1.8
--- src/external/bsd/file/dist/doc/libmagic.3:1.7	Fri Sep 16 21:06:25 2011
+++ src/external/bsd/file/dist/doc/libmagic.3	Mon Oct  3 15:43:55 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: libmagic.3,v 1.7 2011/09/16 21:06:25 christos Exp $
+.\	$NetBSD: libmagic.3,v 1.8 2011/10/03 15:43:55 njoly Exp $
 .\
 .\ $File: libmagic.man,v 1.24 2011/05/13 22:11:44 christos Exp $
 .\
@@ -54,9 +54,9 @@
 .Ft int
 .Fn magic_errno magic_t cookie
 .Ft const char *
-.Fn magic_descriptor magic_t cookie, int fd
+.Fn magic_descriptor magic_t cookie int fd
 .Ft const char *
-.Fn magic_file magic_t cookie, const char *filename
+.Fn magic_file magic_t cookie const char *filename
 .Ft const char *
 .Fn magic_buffer magic_t cookie const void *buffer size_t length
 .Ft int



CVS commit: src/lib/libc/sys

2011-10-03 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Oct  3 15:49:02 UTC 2011

Modified Files:
src/lib/libc/sys: getitimer.2

Log Message:
Note functions failure for unknown timer type.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/lib/libc/sys/getitimer.2

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/sys/getitimer.2
diff -u src/lib/libc/sys/getitimer.2:1.26 src/lib/libc/sys/getitimer.2:1.27
--- src/lib/libc/sys/getitimer.2:1.26	Mon May  2 17:14:20 2011
+++ src/lib/libc/sys/getitimer.2	Mon Oct  3 15:49:02 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: getitimer.2,v 1.26 2011/05/02 17:14:20 jruoho Exp $
+.\	$NetBSD: getitimer.2,v 1.27 2011/10/03 15:49:02 njoly Exp $
 .\
 .\ Copyright (c) 1983, 1991, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\
 .\ @(#)getitimer.2	8.3 (Berkeley) 5/16/95
 .\
-.Dd May 2, 2011
+.Dd October 3, 2011
 .Dt GETITIMER 2
 .Os
 .Sh NAME
@@ -150,7 +150,9 @@ The
 .Fa value
 parameter specified a bad address.
 .It Bq Er EINVAL
-A
+The
+.Fa which
+parameter was not a known timer type, or the
 .Fa value
 parameter specified a time that was too large
 to be handled.



CVS commit: src/sys/arch/x86/include

2011-10-03 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Oct  3 17:31:35 UTC 2011

Modified Files:
src/sys/arch/x86/include: specialreg.h

Log Message:
Do not redefine CPUID_LAHF.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/sys/arch/x86/include/specialreg.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/x86/include/specialreg.h
diff -u src/sys/arch/x86/include/specialreg.h:1.52 src/sys/arch/x86/include/specialreg.h:1.53
--- src/sys/arch/x86/include/specialreg.h:1.52	Tue Jul 26 12:59:41 2011
+++ src/sys/arch/x86/include/specialreg.h	Mon Oct  3 17:31:35 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: specialreg.h,v 1.52 2011/07/26 12:59:41 yamt Exp $	*/
+/*	$NetBSD: specialreg.h,v 1.53 2011/10/03 17:31:35 njoly Exp $	*/
 
 /*-
  * Copyright (c) 1991 The Regents of the University of California.
@@ -178,7 +178,7 @@
 			\36LONG\0373DNOW2\0403DNOW \
 
 /* AMD Fn8001 extended features - %ecx */
-#define CPUID_LAHF	0x0001	/* LAHF/SAHF instruction */
+/* 	CPUID_LAHF			   LAHF/SAHF instruction */
 #define CPUID_CMPLEGACY	0x0002	/* Compare Legacy */
 #define CPUID_SVM	0x0004	/* Secure Virtual Machine */
 #define CPUID_EAPIC	0x0008	/* Extended APIC space */



CVS commit: src/sys/dev/pci

2011-10-04 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Tue Oct  4 09:16:24 UTC 2011

Modified Files:
src/sys/dev/pci: pcidevs

Log Message:
Add 3WARE 9750 Series RAID.


To generate a diff of this commit:
cvs rdiff -u -r1.1098 -r1.1099 src/sys/dev/pci/pcidevs

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

Modified files:

Index: src/sys/dev/pci/pcidevs
diff -u src/sys/dev/pci/pcidevs:1.1098 src/sys/dev/pci/pcidevs:1.1099
--- src/sys/dev/pci/pcidevs:1.1098	Fri Sep 23 14:25:13 2011
+++ src/sys/dev/pci/pcidevs	Tue Oct  4 09:16:23 2011
@@ -1,4 +1,4 @@
-$NetBSD: pcidevs,v 1.1098 2011/09/23 14:25:13 njoly Exp $
+$NetBSD: pcidevs,v 1.1099 2011/10/04 09:16:23 njoly Exp $
 
 /*
  * Copyright (c) 1995, 1996 Christopher G. Demetriou
@@ -748,6 +748,7 @@ product 3WARE 9000		0x1002	9000 Series R
 product 3WARE 9550		0x1003	9550 Series RAID
 product 3WARE 9650		0x1004	9650 Series RAID
 product 3WARE 9690		0x1005	9690 Series RAID
+product 3WARE 9750		0x1010	9750 Series RAID
 
 /* AboCom products */
 product ABOCOM FE2500		0xab02	FE2500 10/100 Ethernet



CVS commit: src/sys/kern

2011-10-05 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Wed Oct  5 20:37:40 UTC 2011

Modified Files:
src/sys/kern: kern_synch.c

Log Message:
Include sys/syslog.h for log(9).


To generate a diff of this commit:
cvs rdiff -u -r1.294 -r1.295 src/sys/kern/kern_synch.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/kern/kern_synch.c
diff -u src/sys/kern/kern_synch.c:1.294 src/sys/kern/kern_synch.c:1.295
--- src/sys/kern/kern_synch.c:1.294	Wed Oct  5 14:28:08 2011
+++ src/sys/kern/kern_synch.c	Wed Oct  5 20:37:40 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_synch.c,v 1.294 2011/10/05 14:28:08 apb Exp $	*/
+/*	$NetBSD: kern_synch.c,v 1.295 2011/10/05 20:37:40 njoly Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2000, 2004, 2006, 2007, 2008, 2009
@@ -69,7 +69,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: kern_synch.c,v 1.294 2011/10/05 14:28:08 apb Exp $);
+__KERNEL_RCSID(0, $NetBSD: kern_synch.c,v 1.295 2011/10/05 20:37:40 njoly Exp $);
 
 #include opt_kstack.h
 #include opt_perfctrs.h
@@ -99,6 +99,7 @@ __KERNEL_RCSID(0, $NetBSD: kern_synch.c
 #include sys/lwpctl.h
 #include sys/atomic.h
 #include sys/simplelock.h
+#include sys/syslog.h
 
 #include uvm/uvm_extern.h
 



CVS commit: src/sys/arch/amd64/amd64

2011-10-05 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Wed Oct  5 20:39:24 UTC 2011

Modified Files:
src/sys/arch/amd64/amd64: trap.c

Log Message:
Remove extra space.


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sys/arch/amd64/amd64/trap.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/amd64/amd64/trap.c
diff -u src/sys/arch/amd64/amd64/trap.c:1.66 src/sys/arch/amd64/amd64/trap.c:1.67
--- src/sys/arch/amd64/amd64/trap.c:1.66	Sun Apr  3 22:29:25 2011
+++ src/sys/arch/amd64/amd64/trap.c	Wed Oct  5 20:39:24 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: trap.c,v 1.66 2011/04/03 22:29:25 dyoung Exp $	*/
+/*	$NetBSD: trap.c,v 1.67 2011/10/05 20:39:24 njoly Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: trap.c,v 1.66 2011/04/03 22:29:25 dyoung Exp $);
+__KERNEL_RCSID(0, $NetBSD: trap.c,v 1.67 2011/10/05 20:39:24 njoly Exp $);
 
 #include opt_ddb.h
 #include opt_kgdb.h
@@ -275,7 +275,7 @@ trap(struct trapframe *frame)
 		else
 			printf(unknown trap %ld, (u_long)frame-tf_trapno);
 		printf( in %s mode\n, (type  T_USER) ? user : supervisor);
-		printf(trap type %d code %lx rip %lx cs %lx rflags %lx cr2 
+		printf(trap type %d code %lx rip %lx cs %lx rflags %lx cr2
 		%lx cpl %x rsp %lx\n,
 		type, frame-tf_err, (u_long)frame-tf_rip, frame-tf_cs,
 		frame-tf_rflags, rcr2(), curcpu()-ci_ilevel, frame-tf_rsp);



CVS commit: src/tests/util/xlint/lint1

2011-10-05 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Wed Oct  5 21:30:50 UTC 2011

Modified Files:
src/tests/util/xlint/lint1: d_c99_decls_after_stmt.c

Log Message:
Fix lint unrelated set but not used warning, to unbreak test.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/util/xlint/lint1/d_c99_decls_after_stmt.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/util/xlint/lint1/d_c99_decls_after_stmt.c
diff -u src/tests/util/xlint/lint1/d_c99_decls_after_stmt.c:1.1 src/tests/util/xlint/lint1/d_c99_decls_after_stmt.c:1.2
--- src/tests/util/xlint/lint1/d_c99_decls_after_stmt.c:1.1	Tue Oct  4 16:24:27 2011
+++ src/tests/util/xlint/lint1/d_c99_decls_after_stmt.c	Wed Oct  5 21:30:50 2011
@@ -1,5 +1,5 @@
 void sample(void)
 {
   int i = 0; i += 1;
-  int j = 0; i += 1;
+  int j = 0; j += 1;
 }



CVS commit: src/external/bsd/top/dist/machine

2011-10-08 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sat Oct  8 08:45:37 UTC 2011

Modified Files:
src/external/bsd/top/dist/machine: m_netbsd.c

Log Message:
Adjust UID header position, to be aligned with the datas.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/external/bsd/top/dist/machine/m_netbsd.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/top/dist/machine/m_netbsd.c
diff -u src/external/bsd/top/dist/machine/m_netbsd.c:1.15 src/external/bsd/top/dist/machine/m_netbsd.c:1.16
--- src/external/bsd/top/dist/machine/m_netbsd.c:1.15	Fri Apr 15 02:05:53 2011
+++ src/external/bsd/top/dist/machine/m_netbsd.c	Sat Oct  8 08:45:37 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: m_netbsd.c,v 1.15 2011/04/15 02:05:53 christos Exp $	*/
+/*	$NetBSD: m_netbsd.c,v 1.16 2011/10/08 08:45:37 njoly Exp $	*/
 
 /*
  * top - a top users display for Unix
@@ -37,12 +37,12 @@
  *		Andrew Doran a...@netbsd.org
  *
  *
- * $Id: m_netbsd.c,v 1.15 2011/04/15 02:05:53 christos Exp $
+ * $Id: m_netbsd.c,v 1.16 2011/10/08 08:45:37 njoly Exp $
  */
 #include sys/cdefs.h
 
 #ifndef lint
-__RCSID($NetBSD: m_netbsd.c,v 1.15 2011/04/15 02:05:53 christos Exp $);
+__RCSID($NetBSD: m_netbsd.c,v 1.16 2011/10/08 08:45:37 njoly Exp $);
 #endif
 
 #include sys/param.h
@@ -413,7 +413,7 @@ format_process_header(struct process_sel
 {
 	char *header;
 	char *ptr;
-	const char *uname_field = sel-usernames ? USERNAME :UID  ;
+	const char *uname_field = sel-usernames ? USERNAME : UID ;
 
 	if (sel-threads) {
 		header = Thread_header;



CVS commit: src/tests/fs/vfs

2011-10-08 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sat Oct  8 13:00:55 UTC 2011

Modified Files:
src/tests/fs/vfs: t_unpriv.c

Log Message:
USE_OWNER - USES_OWNER for consistency with other macros.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/fs/vfs/t_unpriv.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/fs/vfs/t_unpriv.c
diff -u src/tests/fs/vfs/t_unpriv.c:1.1 src/tests/fs/vfs/t_unpriv.c:1.2
--- src/tests/fs/vfs/t_unpriv.c:1.1	Thu Jan  6 15:19:10 2011
+++ src/tests/fs/vfs/t_unpriv.c	Sat Oct  8 13:00:55 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_unpriv.c,v 1.1 2011/01/06 15:19:10 njoly Exp $	*/
+/*	$NetBSD: t_unpriv.c,v 1.2 2011/10/08 13:00:55 njoly Exp $	*/
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 #include ../common/h_fsmacros.h
 #include ../../h_macros.h
 
-#define USE_OWNER			 \
+#define USES_OWNER			 \
 	if (FSTYPE_SYSVBFS(tc) || FSTYPE_MSDOS(tc) || FSTYPE_RUMPFS(tc)) \
 	atf_tc_skip(owner not supported by file system)
 
@@ -43,7 +43,7 @@ static void
 owner(const atf_tc_t *tc, const char *mp)
 {
 
-	USE_OWNER;
+	USES_OWNER;
 
 	FSTEST_ENTER();
 



CVS commit: src/tests/fs/vfs

2011-10-08 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sat Oct  8 13:08:54 UTC 2011

Modified Files:
src/tests/fs/vfs: t_renamerace.c t_rmdirrace.c t_vnops.c

Log Message:
Slightly adjust skipped messages, makes output more consistent.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/tests/fs/vfs/t_renamerace.c
cvs rdiff -u -r1.7 -r1.8 src/tests/fs/vfs/t_rmdirrace.c
cvs rdiff -u -r1.28 -r1.29 src/tests/fs/vfs/t_vnops.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/fs/vfs/t_renamerace.c
diff -u src/tests/fs/vfs/t_renamerace.c:1.23 src/tests/fs/vfs/t_renamerace.c:1.24
--- src/tests/fs/vfs/t_renamerace.c:1.23	Mon Jul 18 06:47:08 2011
+++ src/tests/fs/vfs/t_renamerace.c	Sat Oct  8 13:08:54 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_renamerace.c,v 1.23 2011/07/18 06:47:08 dholland Exp $	*/
+/*	$NetBSD: t_renamerace.c,v 1.24 2011/10/08 13:08:54 njoly Exp $	*/
 
 /*
  * Modified for rump and atf from a program supplied
@@ -85,7 +85,7 @@ renamerace(const atf_tc_t *tc, const cha
 		atf_tc_expect_signal(-1, PR kern/43582);
 
 	if (FSTYPE_RUMPFS(tc))
-		atf_tc_skip(rename not supported by fs);
+		atf_tc_skip(rename not supported by file system);
 
 	RZ(rump_pub_lwproc_rfork(RUMP_RFCFDG));
 	RL(wrkpid = rump_sys_getpid());
@@ -133,10 +133,10 @@ renamerace_dirs(const atf_tc_t *tc, cons
 	pthread_t pt1, pt2;
 
 	if (FSTYPE_SYSVBFS(tc))
-		atf_tc_skip(directories not supported);
+		atf_tc_skip(directories not supported by file system);
 
 	if (FSTYPE_RUMPFS(tc))
-		atf_tc_skip(rename not supported by fs);
+		atf_tc_skip(rename not supported by file system);
 
 	/* XXX: msdosfs also sometimes hangs */
 	if (FSTYPE_EXT2FS(tc) || FSTYPE_LFS(tc) || FSTYPE_MSDOS(tc))

Index: src/tests/fs/vfs/t_rmdirrace.c
diff -u src/tests/fs/vfs/t_rmdirrace.c:1.7 src/tests/fs/vfs/t_rmdirrace.c:1.8
--- src/tests/fs/vfs/t_rmdirrace.c:1.7	Mon Jul 19 16:00:45 2010
+++ src/tests/fs/vfs/t_rmdirrace.c	Sat Oct  8 13:08:54 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_rmdirrace.c,v 1.7 2010/07/19 16:00:45 pooka Exp $	*/
+/*	$NetBSD: t_rmdirrace.c,v 1.8 2011/10/08 13:08:54 njoly Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@ race(const atf_tc_t *tc, const char *pat
 	if (FSTYPE_LFS(tc))
 		atf_tc_expect_signal(-1, PR kern/43582);
 	if (FSTYPE_SYSVBFS(tc))
-		atf_tc_skip(rmdir(2) not supported by file system);
+		atf_tc_skip(directories not supported by file system);
 
 	fd = rump_sys_open(., O_RDONLY, 0666);
 	if (fd == -1)

Index: src/tests/fs/vfs/t_vnops.c
diff -u src/tests/fs/vfs/t_vnops.c:1.28 src/tests/fs/vfs/t_vnops.c:1.29
--- src/tests/fs/vfs/t_vnops.c:1.28	Fri Aug 19 01:25:27 2011
+++ src/tests/fs/vfs/t_vnops.c	Sat Oct  8 13:08:54 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_vnops.c,v 1.28 2011/08/19 01:25:27 riastradh Exp $	*/
+/*	$NetBSD: t_vnops.c,v 1.29 2011/10/08 13:08:54 njoly Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -45,8 +45,9 @@
 
 #define TESTFILE afile
 
-#define USES_DIRS \
-if (FSTYPE_SYSVBFS(tc)) atf_tc_skip(dirs not supported by file system)
+#define USES_DIRS	\
+if (FSTYPE_SYSVBFS(tc))\
+	atf_tc_skip(directories not supported by file system)
 
 #define USES_SYMLINKS	\
 if (FSTYPE_SYSVBFS(tc) || FSTYPE_MSDOS(tc))		\
@@ -205,7 +206,7 @@ rename_dir(const atf_tc_t *tc, const cha
 	struct stat ref, sb;
 
 	if (FSTYPE_RUMPFS(tc))
-		atf_tc_skip(rename not supported by fs);
+		atf_tc_skip(rename not supported by file system);
 
 	USES_DIRS;
 
@@ -307,7 +308,7 @@ rename_dotdot(const atf_tc_t *tc, const 
 {
 
 	if (FSTYPE_RUMPFS(tc))
-		atf_tc_skip(rename not supported by fs);
+		atf_tc_skip(rename not supported by file system);
 
 	USES_DIRS;
 
@@ -345,7 +346,7 @@ rename_reg_nodir(const atf_tc_t *tc, con
 	ino_t f1ino, f2ino;
 
 	if (FSTYPE_RUMPFS(tc))
-		atf_tc_skip(rename not supported by fs);
+		atf_tc_skip(rename not supported by file system);
 
 	if (rump_sys_chdir(mp) == -1)
 		atf_tc_fail_errno(chdir mountpoint);
@@ -482,7 +483,7 @@ rename_nametoolong(const atf_tc_t *tc, c
 	size_t len;
 
 	if (FSTYPE_RUMPFS(tc))
-		atf_tc_skip(rename not supported by fs);
+		atf_tc_skip(rename not supported by file system);
 
 	if (rump_sys_chdir(mp) == -1)
 		atf_tc_fail_errno(chdir mountpoint);



CVS commit: src/external/mit/xorg/bin/luit

2011-10-10 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Oct 10 09:41:47 UTC 2011

Modified Files:
src/external/mit/xorg/bin/luit: Makefile

Log Message:
Fix locale alias file substitution in man page.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/mit/xorg/bin/luit/Makefile

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

Modified files:

Index: src/external/mit/xorg/bin/luit/Makefile
diff -u src/external/mit/xorg/bin/luit/Makefile:1.3 src/external/mit/xorg/bin/luit/Makefile:1.4
--- src/external/mit/xorg/bin/luit/Makefile:1.3	Sun Nov 21 02:33:40 2010
+++ src/external/mit/xorg/bin/luit/Makefile	Mon Oct 10 09:41:47 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.3 2010/11/21 02:33:40 mrg Exp $
+#	$NetBSD: Makefile,v 1.4 2011/10/10 09:41:47 njoly Exp $
 
 .include bsd.own.mk
 
@@ -8,7 +8,7 @@ SRCS=	luit.c iso2022.c charset.c parser.
 CPPFLAGS+=-DLOCALE_ALIAS_FILE=\${X11LIBDIR}/locale/locale.alias\
 CPPFLAGS+=-DHAVE_CONFIG_H -I${X11SRCDIR.${PROG}}/../include
 
-X11EXTRAMANDEFS+= -e 's,__localealiasfile__,${X11LIBDIR}/locale/locale.alias,g'
+X11EXTRAMANDEFS+= -e 's,__locale_alias__,${X11LIBDIR}/locale/locale.alias,g'
 
 LDADD+=	-lfontenc -lz
 DPADD+=	${LIBFONTENC} ${LIBZ}



CVS commit: src/sys/dev/ic

2011-10-10 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Oct 10 11:15:24 UTC 2011

Modified Files:
src/sys/dev/ic: bwi.c

Log Message:
Kill local definition of __unused attribute.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/ic/bwi.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/dev/ic/bwi.c
diff -u src/sys/dev/ic/bwi.c:1.17 src/sys/dev/ic/bwi.c:1.18
--- src/sys/dev/ic/bwi.c:1.17	Fri Jan 28 20:36:06 2011
+++ src/sys/dev/ic/bwi.c	Mon Oct 10 11:15:24 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: bwi.c,v 1.17 2011/01/28 20:36:06 pooka Exp $	*/
+/*	$NetBSD: bwi.c,v 1.18 2011/10/10 11:15:24 njoly Exp $	*/
 /*	$OpenBSD: bwi.c,v 1.74 2008/02/25 21:13:30 mglocker Exp $	*/
 
 /*
@@ -48,7 +48,7 @@
 
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: bwi.c,v 1.17 2011/01/28 20:36:06 pooka Exp $);
+__KERNEL_RCSID(0, $NetBSD: bwi.c,v 1.18 2011/10/10 11:15:24 njoly Exp $);
 
 #include sys/param.h
 #include sys/callout.h
@@ -119,8 +119,6 @@ do {	\
 #define IEEE80211_DUR_SHSLOT9   /* ERP short slottime */
 #define IEEE80211_DUR_OFDM_SLOT 9   /* OFDM slottime */
 
-#define __unused __attribute__((__unused__))
-
 /* XXX end porting goop */
 
 /* MAC */



CVS commit: src/share/man/man4

2011-10-10 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Oct 10 11:30:41 UTC 2011

Modified Files:
src/share/man/man4: bwi.4

Log Message:
Add missing SYNOPSIS.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/share/man/man4/bwi.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/bwi.4
diff -u src/share/man/man4/bwi.4:1.6 src/share/man/man4/bwi.4:1.7
--- src/share/man/man4/bwi.4:1.6	Sun Jan 30 23:29:24 2011
+++ src/share/man/man4/bwi.4	Mon Oct 10 11:30:41 2011
@@ -1,4 +1,4 @@
-.\ $NetBSD: bwi.4,v 1.6 2011/01/30 23:29:24 njoly Exp $
+.\ $NetBSD: bwi.4,v 1.7 2011/10/10 11:30:41 njoly Exp $
 .\
 .\ Copyright (c) 2007 The DragonFly Project.  All rights reserved.
 .\
@@ -37,6 +37,8 @@
 .Sh NAME
 .Nm bwi
 .Nd Broadcom BCM430x/4318 IEEE 802.11b/g wireless network driver
+.Sh SYNOPSIS
+.Cd bwi* at pci? dev ? function ?
 .Sh DESCRIPTION
 The
 .Nm



CVS commit: src/share/man/man4

2011-10-11 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Tue Oct 11 17:53:28 UTC 2011

Modified Files:
src/share/man/man4: sdtemp.4

Log Message:
Do not use sdtemp0 for all addresses in SYNOPSIS, switch to sdtemp*
instead.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man4/sdtemp.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/sdtemp.4
diff -u src/share/man/man4/sdtemp.4:1.3 src/share/man/man4/sdtemp.4:1.4
--- src/share/man/man4/sdtemp.4:1.3	Sat Jan  8 20:13:01 2011
+++ src/share/man/man4/sdtemp.4	Tue Oct 11 17:53:27 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: sdtemp.4,v 1.3 2011/01/08 20:13:01 jruoho Exp $
+.\	$NetBSD: sdtemp.4,v 1.4 2011/10/11 17:53:27 njoly Exp $
 .\
 .\ Copyright (c) 2008 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -34,14 +34,14 @@
 .Nm sdtemp
 .Nd JEDEC JC-42.4 compatible memory module temperature sensors
 .Sh SYNOPSIS
-.Cd sdtemp0 at iic? addr 0x18
-.Cd sdtemp0 at iic? addr 0x19
-.Cd sdtemp0 at iic? addr 0x1a
-.Cd sdtemp0 at iic? addr 0x1b
-.Cd sdtemp0 at iic? addr 0x1c
-.Cd sdtemp0 at iic? addr 0x1d
-.Cd sdtemp0 at iic? addr 0x1e
-.Cd sdtemp0 at iic? addr 0x1f
+.Cd sdtemp* at iic? addr 0x18
+.Cd sdtemp* at iic? addr 0x19
+.Cd sdtemp* at iic? addr 0x1a
+.Cd sdtemp* at iic? addr 0x1b
+.Cd sdtemp* at iic? addr 0x1c
+.Cd sdtemp* at iic? addr 0x1d
+.Cd sdtemp* at iic? addr 0x1e
+.Cd sdtemp* at iic? addr 0x1f
 .Sh DESCRIPTION
 The
 .Nm



CVS commit: src/external/bsd/mdocml

2011-10-12 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Wed Oct 12 15:33:38 UTC 2011

Modified Files:
src/external/bsd/mdocml: Makefile.inc

Log Message:
define HAVE_STRPTIME needed for date parsing.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/external/bsd/mdocml/Makefile.inc

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/mdocml/Makefile.inc
diff -u src/external/bsd/mdocml/Makefile.inc:1.13 src/external/bsd/mdocml/Makefile.inc:1.14
--- src/external/bsd/mdocml/Makefile.inc:1.13	Fri Apr 15 14:36:30 2011
+++ src/external/bsd/mdocml/Makefile.inc	Wed Oct 12 15:33:38 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.13 2011/04/15 14:36:30 joerg Exp $
+# $NetBSD: Makefile.inc,v 1.14 2011/10/12 15:33:38 njoly Exp $
 
 .include bsd.own.mk
 
@@ -7,7 +7,7 @@ VERSION!=	cd ${.PARSEDIR}/dist  ${MAKE
 CPPFLAGS+=	-DVERSION=\${VERSION}\ -DUGLY
 
 .if (${HOSTPROG:U} == )
-CPPFLAGS+=	-DHAVE_STRLCAT -DHAVE_STRLCPY
+CPPFLAGS+=	-DHAVE_STRLCAT -DHAVE_STRLCPY -DHAVE_STRPTIME
 .endif
 
 DISTDIR:=	${.PARSEDIR}/dist



CVS commit: src/share/man/man4

2011-10-12 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Wed Oct 12 16:59:20 UTC 2011

Modified Files:
src/share/man/man4: chipsfb.4

Log Message:
Fix ampersand special character.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/man/man4/chipsfb.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/chipsfb.4
diff -u src/share/man/man4/chipsfb.4:1.2 src/share/man/man4/chipsfb.4:1.3
--- src/share/man/man4/chipsfb.4:1.2	Sun Dec  2 19:03:16 2007
+++ src/share/man/man4/chipsfb.4	Wed Oct 12 16:59:20 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: chipsfb.4,v 1.2 2007/12/02 19:03:16 wiz Exp $
+.\	$NetBSD: chipsfb.4,v 1.3 2011/10/12 16:59:20 njoly Exp $
 .\
 .\ Copyright (c) 2007 Michael Lorenz
 .\ All rights reserved.
@@ -31,14 +31,14 @@
 .Os
 .Sh NAME
 .Nm chipsfb
-.Nd Chips \*[Amp] Technologies 6555x based graphics chips
+.Nd Chips \*[Am] Technologies 6555x based graphics chips
 .Sh SYNOPSIS
 .Cd chipsfb* at pci?
 .Cd wsdisplay* at chipsfb?
 .Sh DESCRIPTION
 The
 .Nm
-driver provides support for the C\*[Amp]T 65550 and 65554 graphics controllers.
+driver provides support for the C\*[Am]T 65550 and 65554 graphics controllers.
 Currently it depends on the firmware (usually Open Firmware) to set up the
 framebuffer, but all graphics operations used by wsdisplay use the blitter.
 .Sh SEE ALSO



CVS commit: src/etc/etc.vax

2011-10-12 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Wed Oct 12 17:03:49 UTC 2011

Modified Files:
src/etc/etc.vax: MAKEDEV.conf

Log Message:
PR/45452: Fix pasto (found by tsutsui@) which prevented ra* device
special files creation.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/etc/etc.vax/MAKEDEV.conf

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

Modified files:

Index: src/etc/etc.vax/MAKEDEV.conf
diff -u src/etc/etc.vax/MAKEDEV.conf:1.12 src/etc/etc.vax/MAKEDEV.conf:1.13
--- src/etc/etc.vax/MAKEDEV.conf:1.12	Tue Sep  6 14:40:11 2011
+++ src/etc/etc.vax/MAKEDEV.conf	Wed Oct 12 17:03:49 2011
@@ -1,4 +1,4 @@
-# $NetBSD: MAKEDEV.conf,v 1.12 2011/09/06 14:40:11 apb Exp $
+# $NetBSD: MAKEDEV.conf,v 1.13 2011/10/12 17:03:49 njoly Exp $
 
 all_md)
 	makedev mt0 mt1 ts0 ts1 st0 st1 uk0 ss0 cd0 vt0
@@ -60,7 +60,7 @@ ht[0-9]*|tm[0-9]*|mt[0-9]*|ts[0-9]*|ut[0
 	esac
 	;;
 
-hp[0-9]*|hk[0-9]*|up[0-9]*|ra[0-9][0-9]*|rl[0-9]*|rb[0-9]*|rd[0-9]*|rx[0-9]*)
+hp[0-9]*|hk[0-9]*|up[0-9]*|ra[0-9]*|rl[0-9]*|rb[0-9]*|rd[0-9]*|rx[0-9]*)
 	case $i in
 	hp*) name=hp;	unit=${i#hp};	blk=0; chr=4;;
 	hk*) name=hk;	unit=${i#hk};	blk=3; chr=11;;



CVS commit: src/distrib/sets/lists/tests

2011-10-13 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Thu Oct 13 07:47:30 UTC 2011

Modified Files:
src/distrib/sets/lists/tests: mi

Log Message:
Do not delete nul.in line, but tag it as obsolete.


To generate a diff of this commit:
cvs rdiff -u -r1.400 -r1.401 src/distrib/sets/lists/tests/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/sets/lists/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.400 src/distrib/sets/lists/tests/mi:1.401
--- src/distrib/sets/lists/tests/mi:1.400	Tue Oct 11 23:04:21 2011
+++ src/distrib/sets/lists/tests/mi	Thu Oct 13 07:47:30 2011
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.400 2011/10/11 23:04:21 dholland Exp $
+# $NetBSD: mi,v 1.401 2011/10/13 07:47:30 njoly Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -2006,6 +2006,7 @@
 ./usr/tests/lib/libc/regex/data/error.in	tests-lib-tests		atf
 ./usr/tests/lib/libc/regex/data/meta.in		tests-lib-tests		atf
 ./usr/tests/lib/libc/regex/data/nospec.in	tests-lib-tests		atf
+./usr/tests/lib/libc/regex/data/nul.in		tests-obsolete		obsolete
 ./usr/tests/lib/libc/regex/data/paren.in	tests-lib-tests		atf
 ./usr/tests/lib/libc/regex/data/regress.in	tests-lib-tests		atf
 ./usr/tests/lib/libc/regex/data/repet_bounded.in tests-lib-tests	atf



CVS commit: src/share/man/man4

2011-10-13 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Thu Oct 13 11:12:05 UTC 2011

Modified Files:
src/share/man/man4: bwi.4

Log Message:
Fix wiconfig section in xref.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/share/man/man4/bwi.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/bwi.4
diff -u src/share/man/man4/bwi.4:1.7 src/share/man/man4/bwi.4:1.8
--- src/share/man/man4/bwi.4:1.7	Mon Oct 10 11:30:41 2011
+++ src/share/man/man4/bwi.4	Thu Oct 13 11:12:05 2011
@@ -1,4 +1,4 @@
-.\ $NetBSD: bwi.4,v 1.7 2011/10/10 11:30:41 njoly Exp $
+.\ $NetBSD: bwi.4,v 1.8 2011/10/13 11:12:05 njoly Exp $
 .\
 .\ Copyright (c) 2007 The DragonFly Project.  All rights reserved.
 .\
@@ -102,9 +102,9 @@ node.
 .Xr arp 4 ,
 .Xr ifmedia 4 ,
 .Xr pci 4 ,
-.Xr wiconfig 4 ,
 .Xr ifconfig 8 ,
 .Xr sysctl 8 ,
+.Xr wiconfig 8 ,
 .Xr wpa_supplicant 8
 .Sh HISTORY
 The



CVS commit: src/distrib/sets/lists/comp

2011-10-14 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Oct 14 12:53:23 UTC 2011

Modified Files:
src/distrib/sets/lists/comp: mi shl.mi

Log Message:
Add missing .debug entries for sqlite3.


To generate a diff of this commit:
cvs rdiff -u -r1.1692 -r1.1693 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.196 -r1.197 src/distrib/sets/lists/comp/shl.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/sets/lists/comp/mi
diff -u src/distrib/sets/lists/comp/mi:1.1692 src/distrib/sets/lists/comp/mi:1.1693
--- src/distrib/sets/lists/comp/mi:1.1692	Thu Oct 13 22:08:18 2011
+++ src/distrib/sets/lists/comp/mi	Fri Oct 14 12:53:21 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.1692 2011/10/13 22:08:18 joerg Exp $
+#	$NetBSD: mi,v 1.1693 2011/10/14 12:53:21 njoly Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -3800,6 +3800,7 @@
 ./usr/libdata/debug/usr/bin/soelim.debug	comp-groff-debug	debug
 ./usr/libdata/debug/usr/bin/sort.debug		comp-util-debug		debug
 ./usr/libdata/debug/usr/bin/split.debug		comp-util-debug		debug
+./usr/libdata/debug/usr/bin/sqlite3.debug	comp-util-debug		debug
 ./usr/libdata/debug/usr/bin/ssh-add.debug	comp-secsh-debug	crypto,debug
 ./usr/libdata/debug/usr/bin/ssh-agent.debug	comp-secsh-debug	crypto,debug
 ./usr/libdata/debug/usr/bin/ssh-keygen.debug	comp-secsh-debug	crypto,debug

Index: src/distrib/sets/lists/comp/shl.mi
diff -u src/distrib/sets/lists/comp/shl.mi:1.196 src/distrib/sets/lists/comp/shl.mi:1.197
--- src/distrib/sets/lists/comp/shl.mi:1.196	Thu Oct 13 22:08:19 2011
+++ src/distrib/sets/lists/comp/shl.mi	Fri Oct 14 12:53:23 2011
@@ -1,4 +1,4 @@
-# $NetBSD: shl.mi,v 1.196 2011/10/13 22:08:19 joerg Exp $
+# $NetBSD: shl.mi,v 1.197 2011/10/14 12:53:23 njoly Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -402,6 +402,7 @@
 ./usr/libdata/debug/usr/lib/libsaslc.so.0.0.debug	comp-sys-debug	crypto,debug
 ./usr/libdata/debug/usr/lib/libskey.so.2.0.debug	comp-sys-debug	skey,debug
 ./usr/libdata/debug/usr/lib/libsl.so.5.0.debug		comp-krb5-debug	kerberos,debug
+./usr/libdata/debug/usr/lib/libsqlite3.so.1.0.debug	comp-sys-debug	debug
 ./usr/libdata/debug/usr/lib/libssh.so.18.0.debug	comp-secsh-debug	crypto,debug
 ./usr/libdata/debug/usr/lib/libssl.so.9.0.debug		comp-crypto-debug	crypto,debug
 ./usr/libdata/debug/usr/lib/libstdc++.so.5.0.debug	comp-sys-debug	gcc=3,cxx,debug



CVS commit: src/sys/dev/usb

2011-10-14 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Oct 14 13:12:41 UTC 2011

Modified Files:
src/sys/dev/usb: ukyopon.c

Log Message:
Void function ukyopon_get_status should not return a value.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/usb/ukyopon.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/dev/usb/ukyopon.c
diff -u src/sys/dev/usb/ukyopon.c:1.12 src/sys/dev/usb/ukyopon.c:1.13
--- src/sys/dev/usb/ukyopon.c:1.12	Wed Nov  3 22:34:24 2010
+++ src/sys/dev/usb/ukyopon.c	Fri Oct 14 13:12:41 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: ukyopon.c,v 1.12 2010/11/03 22:34:24 dyoung Exp $	*/
+/*	$NetBSD: ukyopon.c,v 1.13 2011/10/14 13:12:41 njoly Exp $	*/
 
 /*
  * Copyright (c) 1998, 2005 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: ukyopon.c,v 1.12 2010/11/03 22:34:24 dyoung Exp $);
+__KERNEL_RCSID(0, $NetBSD: ukyopon.c,v 1.13 2011/10/14 13:12:41 njoly Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -147,7 +147,7 @@ ukyopon_get_status(void *addr, int portn
 	if ((sc-sc_umodem.sc_msr  UMSR_DCD) == 0)
 		sc-sc_umodem.sc_msr |= UMSR_DCD;
 
-	return umodem_get_status(addr, portno, lsr, msr);
+	umodem_get_status(addr, portno, lsr, msr);
 }
 
 Static int



CVS commit: src/share/man/man9

2012-10-01 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Oct  1 18:16:36 UTC 2012

Modified Files:
src/share/man/man9: vnodeops.9

Log Message:
Update _PC_NO_TRUNC description to add the returned value, and
replace non-existant KERN_NAME_MAX with {NAME_MAX}.


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/share/man/man9/vnodeops.9

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/man9/vnodeops.9
diff -u src/share/man/man9/vnodeops.9:1.85 src/share/man/man9/vnodeops.9:1.86
--- src/share/man/man9/vnodeops.9:1.85	Thu Jun  7 01:01:12 2012
+++ src/share/man/man9/vnodeops.9	Mon Oct  1 18:16:36 2012
@@ -1,4 +1,4 @@
-.\ $NetBSD: vnodeops.9,v 1.85 2012/06/07 01:01:12 agc Exp $
+.\ $NetBSD: vnodeops.9,v 1.86 2012/10/01 18:16:36 njoly Exp $
 .\
 .\ Copyright (c) 2001, 2005, 2006 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -1179,7 +1179,9 @@ return 1 if appropriate privileges are r
 .Xr chown 2
 system call, otherwise zero
 .It _PC_NO_TRUNC
-return if file names longer than KERN_NAME_MAX are truncated
+return 0 if file names longer than
+.Brq NAME_MAX
+are silently truncated
 .El
 .Pp
 If



CVS commit: src/external/cddl/osnet/dist/uts/common/fs/zfs

2012-10-01 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Oct  1 18:19:18 UTC 2012

Modified Files:
src/external/cddl/osnet/dist/uts/common/fs/zfs: zfs_vnops.c

Log Message:
Add _PC_NO_TRUNC support in zfs_netbsd_pathconf().


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 \
src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.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/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c
diff -u src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c:1.10 src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c:1.11
--- src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c:1.10	Sat Sep  1 16:19:00 2012
+++ src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c	Mon Oct  1 18:19:18 2012
@@ -5414,6 +5414,9 @@ zfs_netbsd_pathconf(void *v)
 		case _PC_CHOWN_RESTRICTED:
 			*ap-a_retval = 1;
 			return (0);
+		case _PC_NO_TRUNC:
+			*ap-a_retval = 1;
+			return (0);
 		case _PC_VDISABLE:
 			*ap-a_retval = _POSIX_VDISABLE;
 			return (0);



CVS commit: src/share/man/man8

2012-10-05 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Oct  5 18:03:54 UTC 2012

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

Log Message:
Add missing close to display block, and add a paragraph break to
follow other similar blocks.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/share/man/man8/afterboot.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/afterboot.8
diff -u src/share/man/man8/afterboot.8:1.50 src/share/man/man8/afterboot.8:1.51
--- src/share/man/man8/afterboot.8:1.50	Tue Oct  2 17:43:53 2012
+++ src/share/man/man8/afterboot.8	Fri Oct  5 18:03:54 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: afterboot.8,v 1.50 2012/10/02 17:43:53 roy Exp $
+.\	$NetBSD: afterboot.8,v 1.51 2012/10/05 18:03:54 njoly Exp $
 .\	$OpenBSD: afterboot.8,v 1.72 2002/02/22 02:02:33 miod Exp $
 .\
 .\ Originally created by Marshall M. Midden -- 1997-10-20, m...@umn.edu
@@ -341,6 +341,8 @@ If you run
 you will have to kill it by running
 .Bd -literal -offset indent
 .Ic /etc/rc.d/dhclient stop
+.Pp
+.Ed
 If you run
 .Xr dhcpcd 8
 you will have to kill it by running



CVS commit: src/sbin/fdisk

2012-10-05 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Oct  5 18:07:47 UTC 2012

Modified Files:
src/sbin/fdisk: fdisk.8

Log Message:
Fix indented blocks rendering with mandoc. Switch from .in unsupported
macro to .Bd/.Ed ones. While here kill some unneeded .Pp/.br macros.


To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 src/sbin/fdisk/fdisk.8

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

Modified files:

Index: src/sbin/fdisk/fdisk.8
diff -u src/sbin/fdisk/fdisk.8:1.77 src/sbin/fdisk/fdisk.8:1.78
--- src/sbin/fdisk/fdisk.8:1.77	Sun Apr  8 22:00:37 2012
+++ src/sbin/fdisk/fdisk.8	Fri Oct  5 18:07:46 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: fdisk.8,v 1.77 2012/04/08 22:00:37 wiz Exp $
+.\	$NetBSD: fdisk.8,v 1.78 2012/10/05 18:07:46 njoly Exp $
 .\
 .Dd April 6, 2012
 .Dt FDISK 8
@@ -138,7 +138,6 @@ Only if you reply affirmatively to this 
 write anything to the disk.
 .Pp
 Available options:
-.Pp
 .Bl -tag -width Ds
 .It Fl 0
 Specify partition slot 0 to be printed or updated.
@@ -431,13 +430,12 @@ In this case there is no free space in e
 partition.
 .Pp
 The various fields in each partition entry are:
-.br
-.in +4
+.Bd -filled -offset 4n -compact
 .Em ptn_number : id_name
 (sysid
 .Em id_number )
-.br
-.in +4
+.Ed
+.Bd -filled -offset 8n -compact
 bootmenu:
 .Em bootmenu
 .br
@@ -448,8 +446,7 @@ size
 MB, Cyls
 .Em first Ns No - Ns Em next )
 .Op , Active
-.in -4
-.in -4
+.Ed
 .Bl -tag -width bootmenu
 .It Em ptn_number
 is the number of the partition.
@@ -490,7 +487,7 @@ If the
 .Fl v
 flag is specified, the beginning and end of each partition are also
 displayed as follows:
-.in +4
+.Bd -filled -offset 4n -compact
 beg: cylinder
 .Em cylinder ,
 head
@@ -504,7 +501,7 @@ head
 .Em head ,
 sector
 .Em sector
-.in -4
+.Ed
 .Bl -tag -width bootmenu
 .It Em cylinder , Em head , Em sector
 are the beginning or ending address of a partition.



CVS commit: src/share/man/man4

2012-10-08 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Oct  8 17:56:59 UTC 2012

Modified Files:
src/share/man/man4: lmtemp.4

Log Message:
In columnated list, adjust address column size to match reality and
remove extra Ta macro in first It line.
While here kill a superfuous Pp.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/man/man4/lmtemp.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/lmtemp.4
diff -u src/share/man/man4/lmtemp.4:1.2 src/share/man/man4/lmtemp.4:1.3
--- src/share/man/man4/lmtemp.4:1.2	Fri Apr  4 10:09:07 2008
+++ src/share/man/man4/lmtemp.4	Mon Oct  8 17:56:59 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: lmtemp.4,v 1.2 2008/04/04 10:09:07 xtraeme Exp $
+.\	$NetBSD: lmtemp.4,v 1.3 2012/10/08 17:56:59 njoly Exp $
 .\
 .\ Copyright (c) 2005 KIYOHARA Takashi
 .\ All rights reserved.
@@ -46,8 +46,8 @@ The
 supports ranges of the temperature between +125 from -55.
 .Pp
 Each device is specified by the value of the address and flags.
-.Bl -column Temperature addr flags -offset indent
-.It Sy Temperature Ta Sy addr Ta Ta Sy flags
+.Bl -column Temperature 0x48 - 0x4f flags -offset indent
+.It Sy Temperature Ta Sy addr Ta Sy flags
 .It Li LM75 Ta 0x48 - 0x4f Ta 0x
 .It Li DS75 Ta 0x48 - 0x4f Ta 0x0001
 .It Li LM77 Ta 0x48 - 0x4b Ta 0x0002
@@ -56,7 +56,6 @@ Each device is specified by the value of
 Chips supported by the
 .Nm
 driver include:
-.Pp
 .Bl -item -offset indent
 .It
 .Tn National Semiconductor



CVS commit: src/lib/libc/sys

2012-10-08 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Oct  8 18:08:41 UTC 2012

Modified Files:
src/lib/libc/sys: nanosleep.2

Log Message:
Function argument Fa macro expects its name on the same line.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/sys/nanosleep.2

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/sys/nanosleep.2
diff -u src/lib/libc/sys/nanosleep.2:1.12 src/lib/libc/sys/nanosleep.2:1.13
--- src/lib/libc/sys/nanosleep.2:1.12	Tue Oct  2 01:46:40 2012
+++ src/lib/libc/sys/nanosleep.2	Mon Oct  8 18:08:40 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: nanosleep.2,v 1.12 2012/10/02 01:46:40 christos Exp $
+.\	$NetBSD: nanosleep.2,v 1.13 2012/10/08 18:08:40 njoly Exp $
 .\
 .\ Copyright (c) 1986, 1991, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -148,8 +148,7 @@ is not supported by this implementation.
 for
 .Fn clock_nanosleep ,
 the clock specified in the
-.Fa
-clock_id
+.Fa clock_id
 argument is not supported.
 .El
 .Sh SEE ALSO



CVS commit: src/share/man/man3

2012-10-08 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Oct  8 18:20:34 UTC 2012

Modified Files:
src/share/man/man3: queue.3

Log Message:
Remove a tab character in non-literal context.
While here, replace all sp macros with Pp.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/share/man/man3/queue.3

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/man3/queue.3
diff -u src/share/man/man3/queue.3:1.42 src/share/man/man3/queue.3:1.43
--- src/share/man/man3/queue.3:1.42	Mon Apr 20 09:56:07 2009
+++ src/share/man/man3/queue.3	Mon Oct  8 18:20:34 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: queue.3,v 1.42 2009/04/20 09:56:07 mschuett Exp $
+.\	$NetBSD: queue.3,v 1.43 2012/10/08 18:20:34 njoly Exp $
 .\
 .\ Copyright (c) 2000, 2002 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -154,7 +154,7 @@
 .Nd implementations of singly-linked lists, simple queues, lists, tail queues, and circular queues
 .Sh SYNOPSIS
 .In sys/queue.h
-.sp
+.Pp
 .Fn SLIST_HEAD HEADNAME TYPE
 .Fn SLIST_HEAD_INITIALIZER head
 .Fn SLIST_ENTRY TYPE
@@ -171,7 +171,7 @@
 .Fn SLIST_FIRST SLIST_HEAD *head
 .Ft TYPE *
 .Fn SLIST_NEXT TYPE *elm SLIST_ENTRY NAME
-.sp
+.Pp
 .Fn SIMPLEQ_HEAD HEADNAME TYPE
 .Fn SIMPLEQ_HEAD_INITIALIZER head
 .Fn SIMPLEQ_ENTRY TYPE
@@ -192,7 +192,7 @@
 .Ft TYPE *
 .Fn SIMPLEQ_LAST SIMPLEQ_HEAD *head TYPE *elm SIMPLEQ_ENTRY NAME
 .Fn SIMPLEQ_CONCAT SIMPLEQ_HEAD *head1 SIMPLEQ_HEAD *head2
-.sp
+.Pp
 .Fn STAILQ_HEAD HEADNAME TYPE
 .Fn STAILQ_HEAD_INITIALIZER head
 .Fn STAILQ_ENTRY TYPE
@@ -213,7 +213,7 @@
 .Ft TYPE *
 .Fn STAILQ_LAST STAILQ_HEAD *head TYPE *elm STAILQ_ENTRY NAME
 .Fn STAILQ_CONCAT STAILQ_HEAD *head1 STAILQ_HEAD *head2
-.sp
+.Pp
 .Fn LIST_HEAD HEADNAME TYPE
 .Fn LIST_HEAD_INITIALIZER head
 .Fn LIST_ENTRY TYPE
@@ -229,7 +229,7 @@
 .Fn LIST_FIRST LIST_HEAD *head
 .Ft TYPE *
 .Fn LIST_NEXT TYPE *elm LIST_ENTRY NAME
-.sp
+.Pp
 .Fn TAILQ_HEAD HEADNAME TYPE
 .Fn TAILQ_HEAD_INITIALIZER head
 .Fn TAILQ_ENTRY TYPE
@@ -254,7 +254,7 @@
 .Ft TYPE *
 .Fn TAILQ_PREV TYPE *elm HEADNAME TAILQ_ENTRY NAME
 .Fn TAILQ_CONCAT TAILQ_HEAD *head1 TAILQ_HEAD *head2 TAILQ_ENTRY NAME
-.sp
+.Pp
 .Fn CIRCLEQ_HEAD HEADNAME TYPE
 .Fn CIRCLEQ_HEAD_INITIALIZER head
 .Fn CIRCLEQ_ENTRY TYPE
@@ -319,7 +319,7 @@ Each head entry requires two pointers ra
 .El
 .Pp
 Simple queues are ideal for applications with large datasets and few or
-no removals, or for implementing a FIFO	queue.
+no removals, or for implementing a FIFO queue.
 .Pp
 All doubly linked types of data structures (lists, tail queues, and circle
 queues) additionally allow:
@@ -588,7 +588,7 @@ structure is declared as follows:
 .Bd -literal -offset indent
 SIMPLEQ_HEAD(HEADNAME, TYPE) head;
 .Ed
-.sp
+.Pp
 where
 .Li HEADNAME
 is the name of the structure to be defined, and
@@ -598,7 +598,7 @@ A pointer to the head of the simple queu
 .Bd -literal -offset indent
 struct HEADNAME *headp;
 .Ed
-.sp
+.Pp
 (The names
 .Li head
 and
@@ -771,7 +771,7 @@ structure is declared as follows:
 .Bd -literal -offset indent
 LIST_HEAD(HEADNAME, TYPE) head;
 .Ed
-.sp
+.Pp
 where
 .Fa HEADNAME
 is the name of the structure to be defined, and
@@ -781,7 +781,7 @@ A pointer to the head of the list can la
 .Bd -literal -offset indent
 struct HEADNAME *headp;
 .Ed
-.sp
+.Pp
 (The names
 .Li head
 and
@@ -902,7 +902,7 @@ structure is declared as follows:
 .Bd -literal -offset indent
 TAILQ_HEAD(HEADNAME, TYPE) head;
 .Ed
-.sp
+.Pp
 where
 .Li HEADNAME
 is the name of the structure to be defined, and
@@ -912,7 +912,7 @@ A pointer to the head of the tail queue 
 .Bd -literal -offset indent
 struct HEADNAME *headp;
 .Ed
-.sp
+.Pp
 (The names
 .Li head
 and
@@ -1063,7 +1063,7 @@ structure is declared as follows:
 .Bd -literal -offset indent
 CIRCLEQ_HEAD(HEADNAME, TYPE) head;
 .Ed
-.sp
+.Pp
 where
 .Li HEADNAME
 is the name of the structure to be defined, and
@@ -1073,7 +1073,7 @@ A pointer to the head of the circular qu
 .Bd -literal -offset indent
 struct HEADNAME *headp;
 .Ed
-.sp
+.Pp
 (The names
 .Li head
 and



CVS commit: src/share/man/man4

2012-10-10 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Wed Oct 10 18:06:41 UTC 2012

Modified Files:
src/share/man/man4: smscmon.4

Log Message:
Adjust column width to match reality.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man4/smscmon.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/smscmon.4
diff -u src/share/man/man4/smscmon.4:1.3 src/share/man/man4/smscmon.4:1.4
--- src/share/man/man4/smscmon.4:1.3	Fri Jan  7 18:00:12 2011
+++ src/share/man/man4/smscmon.4	Wed Oct 10 18:06:41 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: smscmon.4,v 1.3 2011/01/07 18:00:12 njoly Exp $
+.\	$NetBSD: smscmon.4,v 1.4 2012/10/10 18:06:41 njoly Exp $
 .\
 .\ Copyright (c) 2009 Takahiro Hayashi
 .\ All rights reserved.
@@ -43,7 +43,7 @@ LPC47M192 and LPC47M997 Super I/O chips 
 API.
 .Pp
 The chip supports 11 sensor inputs:
-.Bl -column Sensor Units Typical -offset indent
+.Bl -column Remote Temp1 Units Typical -offset indent
 .It Sy Sensor Ta Sy Units Ta Sy Typical Use
 .It Li +2.5V Ta uV DC Ta 2.5V Supply
 .It Li Vccp Ta uV DC Ta CPU Vcore



CVS commit: src/share/man/man4

2012-10-10 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Wed Oct 10 18:14:14 UTC 2012

Modified Files:
src/share/man/man4: bt3c.4 btbc.4

Log Message:
Remove empty BUGS section.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man4/bt3c.4
cvs rdiff -u -r1.5 -r1.6 src/share/man/man4/btbc.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/bt3c.4
diff -u src/share/man/man4/bt3c.4:1.4 src/share/man/man4/bt3c.4:1.5
--- src/share/man/man4/bt3c.4:1.4	Fri Apr 10 15:15:10 2009
+++ src/share/man/man4/bt3c.4	Wed Oct 10 18:14:14 2012
@@ -1,4 +1,4 @@
-.\ $NetBSD: bt3c.4,v 1.4 2009/04/10 15:15:10 joerg Exp $
+.\ $NetBSD: bt3c.4,v 1.5 2012/10/10 18:14:14 njoly Exp $
 .\
 .\ Copyright (c) 2006 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -84,4 +84,3 @@ using
 .Fx
 and BlueZ drivers as a reference.  It first appeared in
 .Nx 4.0 .
-.Sh BUGS

Index: src/share/man/man4/btbc.4
diff -u src/share/man/man4/btbc.4:1.5 src/share/man/man4/btbc.4:1.6
--- src/share/man/man4/btbc.4:1.5	Tue Jan 12 09:26:26 2010
+++ src/share/man/man4/btbc.4	Wed Oct 10 18:14:14 2012
@@ -1,4 +1,4 @@
-.\ $NetBSD: btbc.4,v 1.5 2010/01/12 09:26:26 wiz Exp $
+.\ $NetBSD: btbc.4,v 1.6 2012/10/10 18:14:14 njoly Exp $
 .\
 .\ Copyright (c) 2007 KIYOHARA Takashi
 .\ All rights reserved.
@@ -49,4 +49,3 @@ using
 Linux bluecard_cs driver as a reference.
 It first appeared in
 .Nx 4.0 .
-.Sh BUGS



CVS commit: src/external/cddl/osnet/sys/kern

2012-10-11 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Thu Oct 11 08:01:23 UTC 2012

Modified Files:
src/external/cddl/osnet/sys/kern: kobj.c

Log Message:
No need to include files more than once.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/cddl/osnet/sys/kern/kobj.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/cddl/osnet/sys/kern/kobj.c
diff -u src/external/cddl/osnet/sys/kern/kobj.c:1.3 src/external/cddl/osnet/sys/kern/kobj.c:1.4
--- src/external/cddl/osnet/sys/kern/kobj.c:1.3	Thu Apr 26 23:34:09 2012
+++ src/external/cddl/osnet/sys/kern/kobj.c	Thu Oct 11 08:01:23 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: kobj.c,v 1.3 2012/04/26 23:34:09 christos Exp $	*/
+/*	$NetBSD: kobj.c,v 1.4 2012/10/11 08:01:23 njoly Exp $	*/
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -57,19 +57,17 @@
 
 #include sys/cdefs.h
 /* __FBSDID($FreeBSD: src/sys/compat/opensolaris/kern/opensolaris_kobj.c,v 1.4 2007/05/31 11:51:49 kib Exp $); */
-__KERNEL_RCSID(0, $NetBSD: kobj.c,v 1.3 2012/04/26 23:34:09 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: kobj.c,v 1.4 2012/10/11 08:01:23 njoly Exp $);
 
 #include sys/types.h
 #include sys/systm.h
 #include sys/kernel.h
-#include sys/systm.h
 #include sys/kthread.h
 #include sys/namei.h
 #include sys/proc.h
 #include sys/filedesc.h
 #include sys/fcntl.h
 #include sys/kobj.h
-#include sys/namei.h
 
 void
 kobj_free(void *address, size_t size)



CVS commit: src

2012-10-13 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sat Oct 13 14:18:17 UTC 2012

Modified Files:
src/bin/rm: rm.1
src/usr.bin/find: find.1
src/usr.bin/indent: indent.1
src/usr.bin/xargs: xargs.1

Log Message:
Remove a few unneeded Pp macros.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/bin/rm/rm.1
cvs rdiff -u -r1.78 -r1.79 src/usr.bin/find/find.1
cvs rdiff -u -r1.21 -r1.22 src/usr.bin/indent/indent.1
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/xargs/xargs.1

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

Modified files:

Index: src/bin/rm/rm.1
diff -u src/bin/rm/rm.1:1.24 src/bin/rm/rm.1:1.25
--- src/bin/rm/rm.1:1.24	Sat Sep  2 23:28:32 2006
+++ src/bin/rm/rm.1	Sat Oct 13 14:18:16 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: rm.1,v 1.24 2006/09/02 23:28:32 wiz Exp $
+.\	$NetBSD: rm.1,v 1.25 2012/10/13 14:18:16 njoly Exp $
 .\
 .\ Copyright (c) 1990, 1993, 1994, 2003
 .\	The Regents of the University of California.  All rights reserved.
@@ -99,7 +99,6 @@ each directory's contents are processed 
 is made to remove the directory).
 If the user does not respond affirmatively, the file hierarchy rooted in
 that directory is skipped.
-.Pp
 .It Fl r
 Equivalent to
 .Fl R .

Index: src/usr.bin/find/find.1
diff -u src/usr.bin/find/find.1:1.78 src/usr.bin/find/find.1:1.79
--- src/usr.bin/find/find.1:1.78	Sun Aug 26 14:26:07 2012
+++ src/usr.bin/find/find.1	Sat Oct 13 14:18:17 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: find.1,v 1.78 2012/08/26 14:26:07 wiz Exp $
+.\	$NetBSD: find.1,v 1.79 2012/10/13 14:18:17 njoly Exp $
 .\
 .\ Copyright (c) 1990, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -698,13 +698,11 @@ The operators are listed in order of dec
 .It Cm \( Ar expression Cm \)
 This evaluates to true if the parenthesized expression evaluates to
 true.
-.Pp
 .It Cm \! Ar expression
 This is the unary
 .Tn NOT
 operator.
 It evaluates to true if the expression is false.
-.Pp
 .It Ar expression Cm -and Ar expression
 .It Ar expression expression
 The
@@ -716,7 +714,6 @@ As it is implied by the juxtaposition of
 have to be specified.
 The expression evaluates to true if both expressions are true.
 The second expression is not evaluated if the first expression is false.
-.Pp
 .It Ar expression Cm -or Ar expression
 The
 .Cm -or

Index: src/usr.bin/indent/indent.1
diff -u src/usr.bin/indent/indent.1:1.21 src/usr.bin/indent/indent.1:1.22
--- src/usr.bin/indent/indent.1:1.21	Sun Apr  8 22:00:38 2012
+++ src/usr.bin/indent/indent.1	Sat Oct 13 14:18:17 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: indent.1,v 1.21 2012/04/08 22:00:38 wiz Exp $
+.\	$NetBSD: indent.1,v 1.22 2012/10/13 14:18:17 njoly Exp $
 .\
 .\ Copyright (c) 1980, 1990, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -193,7 +193,6 @@ if (...) {
   code
 }
 .Ed
-.Pp
 .It Fl bs , Fl nbs
 If
 .Fl bs

Index: src/usr.bin/xargs/xargs.1
diff -u src/usr.bin/xargs/xargs.1:1.22 src/usr.bin/xargs/xargs.1:1.23
--- src/usr.bin/xargs/xargs.1:1.22	Wed Dec 22 09:05:07 2010
+++ src/usr.bin/xargs/xargs.1	Sat Oct 13 14:18:17 2012
@@ -1,4 +1,4 @@
-.\ $NetBSD: xargs.1,v 1.22 2010/12/22 09:05:07 wiz Exp $
+.\ $NetBSD: xargs.1,v 1.23 2012/10/13 14:18:17 njoly Exp $
 .\
 .\ Copyright (c) 1990, 1991, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -166,7 +166,6 @@ directory to
 .Pa destdir :
 .Pp
 .Dl /bin/ls -1d [A-Z]* | xargs -J % cp -rp % destdir
-.Pp
 .It Fl L Ar number
 Call
 .Ar utility



CVS commit: src

2012-10-13 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sat Oct 13 15:28:34 UTC 2012

Modified Files:
src/lib/libc/db/man: btree.3
src/share/man/man1/man1.x68k: bellctrl.1
src/share/man/man4: adv.4 clnp.4 isdntel.4 lmc.4 mca.4 pci.4

Log Message:
Remove some more unneeded Pp macros.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/db/man/btree.3
cvs rdiff -u -r1.12 -r1.13 src/share/man/man1/man1.x68k/bellctrl.1
cvs rdiff -u -r1.9 -r1.10 src/share/man/man4/adv.4 src/share/man/man4/clnp.4
cvs rdiff -u -r1.4 -r1.5 src/share/man/man4/isdntel.4
cvs rdiff -u -r1.19 -r1.20 src/share/man/man4/lmc.4 src/share/man/man4/mca.4
cvs rdiff -u -r1.92 -r1.93 src/share/man/man4/pci.4

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/db/man/btree.3
diff -u src/lib/libc/db/man/btree.3:1.12 src/lib/libc/db/man/btree.3:1.13
--- src/lib/libc/db/man/btree.3:1.12	Mon Mar 22 19:30:53 2010
+++ src/lib/libc/db/man/btree.3	Sat Oct 13 15:28:33 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: btree.3,v 1.12 2010/03/22 19:30:53 joerg Exp $
+.\	$NetBSD: btree.3,v 1.13 2012/10/13 15:28:33 njoly Exp $
 .\
 .\ Copyright (c) 1990, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -225,7 +225,6 @@ for any of the errors specified for the 
 .Xr hash 3 ,
 .Xr mpool 3 ,
 .Xr recno 3
-.Pp
 .Rs
 .%T The Ubiquitous B-tree
 .%A Douglas Comer

Index: src/share/man/man1/man1.x68k/bellctrl.1
diff -u src/share/man/man1/man1.x68k/bellctrl.1:1.12 src/share/man/man1/man1.x68k/bellctrl.1:1.13
--- src/share/man/man1/man1.x68k/bellctrl.1:1.12	Fri May 14 21:50:05 2010
+++ src/share/man/man1/man1.x68k/bellctrl.1	Sat Oct 13 15:28:34 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: bellctrl.1,v 1.12 2010/05/14 21:50:05 joerg Exp $
+.\	$NetBSD: bellctrl.1,v 1.13 2012/10/13 15:28:34 njoly Exp $
 .\
 .\ Copyright (c) 1995 Takuya Harakawa.
 .\ All rights reserved.
@@ -63,12 +63,10 @@ set to that value, as a percentage of it
 Like wise, the second numerical parameter specifies the bell pitch,
 in hertz, and the third numerical parameter specifies the duration
 in milliseconds.
-.Pp
 .It Sy v Ar default
 The
 .Ar default
 argument cause the voice parameter to be reset to the system default.
-.Pp
 .It Fl v Ar voicefile
 The
 .Fl v

Index: src/share/man/man4/adv.4
diff -u src/share/man/man4/adv.4:1.9 src/share/man/man4/adv.4:1.10
--- src/share/man/man4/adv.4:1.9	Tue Mar 13 19:25:39 2012
+++ src/share/man/man4/adv.4	Sat Oct 13 15:28:34 2012
@@ -1,4 +1,4 @@
-.\ $NetBSD: adv.4,v 1.9 2012/03/13 19:25:39 njoly Exp $
+.\ $NetBSD: adv.4,v 1.10 2012/10/13 15:28:34 njoly Exp $
 .\
 .\ Copyright (c) 1999 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -42,7 +42,6 @@ driver supports the following
 .Tn AdvanSys
 .Tn SCSI
 host adapters
-.Pp
 .\ .It Tn AdvanSys 1200[A,B]
 .Ss PCI bus
 Connectivity Products:
Index: src/share/man/man4/clnp.4
diff -u src/share/man/man4/clnp.4:1.9 src/share/man/man4/clnp.4:1.10
--- src/share/man/man4/clnp.4:1.9	Thu Aug  7 10:31:01 2003
+++ src/share/man/man4/clnp.4	Sat Oct 13 15:28:34 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: clnp.4,v 1.9 2003/08/07 10:31:01 agc Exp $
+.\	$NetBSD: clnp.4,v 1.10 2012/10/13 15:28:34 njoly Exp $
 .\
 .\ Copyright (c) 1990, 1991, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -96,7 +96,6 @@ Do not generate the
 .Tn CLNP
 checksum
 .El
-.Pp
 .It Dv CLNPOPT_OPTS
 Sets
 .Tn CLNP

Index: src/share/man/man4/isdntel.4
diff -u src/share/man/man4/isdntel.4:1.4 src/share/man/man4/isdntel.4:1.5
--- src/share/man/man4/isdntel.4:1.4	Mon Oct  4 19:12:52 2004
+++ src/share/man/man4/isdntel.4	Sat Oct 13 15:28:34 2012
@@ -1,4 +1,4 @@
-.\ $NetBSD: isdntel.4,v 1.4 2004/10/04 19:12:52 rumble Exp $
+.\ $NetBSD: isdntel.4,v 1.5 2012/10/13 15:28:34 njoly Exp $
 .\
 .\ Copyright (c) 1997, 1999 Hellmuth Michaelis. All rights reserved.
 .\
@@ -23,7 +23,7 @@
 .\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\ SUCH DAMAGE.
 .\
-.\	$Id: isdntel.4,v 1.4 2004/10/04 19:12:52 rumble Exp $
+.\	$Id: isdntel.4,v 1.5 2012/10/13 15:28:34 njoly Exp $
 .\
 .\ $FreeBSD$
 .\
@@ -120,7 +120,6 @@ and the
 conversion path looks like this:
 .Pp
 USER --\*[Gt] A-law/mu-law --\*[Gt] bitreversing --\*[Gt] ISDN-line
-.Pp
 .El
 .Sh SEE ALSO
 .Xr isdnd.rc 5 ,

Index: src/share/man/man4/lmc.4
diff -u src/share/man/man4/lmc.4:1.19 src/share/man/man4/lmc.4:1.20
--- src/share/man/man4/lmc.4:1.19	Tue Mar 13 19:25:40 2012
+++ src/share/man/man4/lmc.4	Sat Oct 13 15:28:34 2012
@@ -53,7 +53,7 @@
 .\   *  PLEASE DO NOT UN-IFDEF THIS FILE!  *
 .\   * * * * * * * * * * * * * * * * * * * * *
 .\
-.\ $NetBSD: lmc.4,v 1.19 2012/03/13 19:25:40 njoly Exp $
+.\ $NetBSD: lmc.4,v 1.20 2012/10/13 15:28:34 njoly Exp $
 .\
 .Dd April 11, 2006
 .Dt LMC 4
@@ -229,7 +229,6 @@ as well as
 .Ic ifconfig -m lmc0
 .Ed
 lists the available media options.
-.Pp
 .Bd -unfilled -offset 

CVS commit: src/share/man/man4

2012-10-14 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun Oct 14 10:03:47 UTC 2012

Modified Files:
src/share/man/man4: ses.4

Log Message:
Quote .Cd argument.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/share/man/man4/ses.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/ses.4
diff -u src/share/man/man4/ses.4:1.9 src/share/man/man4/ses.4:1.10
--- src/share/man/man4/ses.4:1.9	Mon Mar 22 18:58:31 2010
+++ src/share/man/man4/ses.4	Sun Oct 14 10:03:47 2012
@@ -1,4 +1,4 @@
-.\ $NetBSD: ses.4,v 1.9 2010/03/22 18:58:31 joerg Exp $
+.\ $NetBSD: ses.4,v 1.10 2012/10/14 10:03:47 njoly Exp $
 .\ Copyright (c) 2001 The NetBSD Foundation, Inc.
 .\ All rights reserved.
 .\
@@ -34,7 +34,7 @@
 .Nm ses
 .Nd SCSI Environmental Services Driver
 .Sh SYNOPSIS
-.Cd ses* at scsibus? target ? lun ?
+.Cd ses* at scsibus? target ? lun ?
 .Sh DESCRIPTION
 The
 .Nm ses



CVS commit: src/share/man/man4

2012-10-14 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun Oct 14 10:05:55 UTC 2012

Modified Files:
src/share/man/man4: icp.4

Log Message:
Add a width argument to tag list, otherwise mandoc output is just
unreadable.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man4/icp.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/icp.4
diff -u src/share/man/man4/icp.4:1.5 src/share/man/man4/icp.4:1.6
--- src/share/man/man4/icp.4:1.5	Mon Nov 13 16:33:57 2006
+++ src/share/man/man4/icp.4	Sun Oct 14 10:05:55 2012
@@ -1,4 +1,4 @@
-.\ $NetBSD: icp.4,v 1.5 2006/11/13 16:33:57 ad Exp $
+.\ $NetBSD: icp.4,v 1.6 2012/10/14 10:05:55 njoly Exp $
 .\
 .\ from OpenBSD: gdt.4,v 1.14 2001/10/05 14:45:53 mpech Exp
 .\
@@ -31,7 +31,7 @@ The
 driver provides direct access to other SCSI devices attached to the
 controller, such as tape or CD-ROM drives.
 .Sh DIAGNOSTICS
-.Bl -tag
+.Bl -tag -width indent
 .It pci_mem_find: expected mem type , found 0002
 This message may be displayed during autoconfiguration if the controller's
 memory is mapped below 1MB in physical address space.



CVS commit: src/tests/usr.bin/unifdef

2012-10-15 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Oct 15 17:49:59 UTC 2012

Modified Files:
src/tests/usr.bin/unifdef: t_basic.sh

Log Message:
Add a small testcase for PR/47068.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/unifdef/t_basic.sh

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

Modified files:

Index: src/tests/usr.bin/unifdef/t_basic.sh
diff -u src/tests/usr.bin/unifdef/t_basic.sh:1.5 src/tests/usr.bin/unifdef/t_basic.sh:1.6
--- src/tests/usr.bin/unifdef/t_basic.sh:1.5	Sun Mar 18 09:46:50 2012
+++ src/tests/usr.bin/unifdef/t_basic.sh	Mon Oct 15 17:49:58 2012
@@ -1,4 +1,4 @@
-# $NetBSD: t_basic.sh,v 1.5 2012/03/18 09:46:50 jruoho Exp $
+# $NetBSD: t_basic.sh,v 1.6 2012/10/15 17:49:58 njoly Exp $
 #
 # Copyright (c) 2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -40,6 +40,23 @@ basic_body() {
 		-x unifdef -U__FreeBSD__ $(atf_get_srcdir)/d_basic.in
 }
 
+atf_test_case lastline
+lastline_head() {
+	atf_set descr Checks with directive on last line (PR bin/47068)
+}
+
+lastline_body() {
+
+	# With newline after cpp directive
+	printf '#ifdef foo\n#endif\n' input
+	atf_check -o file:input unifdef -Ubar input
+
+	# Without newline after cpp directive
+	printf '#ifdef foo\n#endif' input
+	atf_check -o file:input unifdef -Ubar input
+}
+
 atf_init_test_cases() {
 	atf_add_test_case basic
+	atf_add_test_case lastline
 }



CVS commit: src/sys

2012-11-03 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sat Nov  3 23:22:23 UTC 2012

Modified Files:
src/sys/compat/common: kern_time_50.c
src/sys/compat/netbsd32: netbsd32_compat_50.c netbsd32_wait.c
src/sys/compat/osf1: osf1_resource.c
src/sys/kern: kern_resource.c
src/sys/sys: resourcevar.h

Log Message:
Move rusage computation to a new getrusage1() function. Adjust all
compat/emulations to make use of it.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/compat/common/kern_time_50.c
cvs rdiff -u -r1.21 -r1.22 src/sys/compat/netbsd32/netbsd32_compat_50.c \
src/sys/compat/netbsd32/netbsd32_wait.c
cvs rdiff -u -r1.14 -r1.15 src/sys/compat/osf1/osf1_resource.c
cvs rdiff -u -r1.169 -r1.170 src/sys/kern/kern_resource.c
cvs rdiff -u -r1.53 -r1.54 src/sys/sys/resourcevar.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/compat/common/kern_time_50.c
diff -u src/sys/compat/common/kern_time_50.c:1.23 src/sys/compat/common/kern_time_50.c:1.24
--- src/sys/compat/common/kern_time_50.c:1.23	Tue Oct  2 01:44:27 2012
+++ src/sys/compat/common/kern_time_50.c	Sat Nov  3 23:22:21 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_time_50.c,v 1.23 2012/10/02 01:44:27 christos Exp $	*/
+/*	$NetBSD: kern_time_50.c,v 1.24 2012/11/03 23:22:21 njoly Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: kern_time_50.c,v 1.23 2012/10/02 01:44:27 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: kern_time_50.c,v 1.24 2012/11/03 23:22:21 njoly Exp $);
 
 #ifdef _KERNEL_OPT
 #include opt_aio.h
@@ -509,27 +509,15 @@ compat_50_sys_getrusage(struct lwp *l,
 		syscallarg(int) who;
 		syscallarg(struct rusage50 *) rusage;
 	} */
+	int error;
 	struct rusage ru;
 	struct rusage50 ru50;
 	struct proc *p = l-l_proc;
 
-	switch (SCARG(uap, who)) {
-	case RUSAGE_SELF:
-		mutex_enter(p-p_lock);
-		memcpy(ru, p-p_stats-p_ru, sizeof(ru));
-		calcru(p, ru.ru_utime, ru.ru_stime, NULL, NULL);
-		mutex_exit(p-p_lock);
-		break;
-
-	case RUSAGE_CHILDREN:
-		mutex_enter(p-p_lock);
-		memcpy(ru, p-p_stats-p_cru, sizeof(ru));
-		mutex_exit(p-p_lock);
-		break;
+	error = getrusage1(p, SCARG(uap, who), ru);
+	if (error != 0)
+		return error;
 
-	default:
-		return EINVAL;
-	}
 	rusage_to_rusage50(ru, ru50);
 	return copyout(ru50, SCARG(uap, rusage), sizeof(ru50));
 }

Index: src/sys/compat/netbsd32/netbsd32_compat_50.c
diff -u src/sys/compat/netbsd32/netbsd32_compat_50.c:1.21 src/sys/compat/netbsd32/netbsd32_compat_50.c:1.22
--- src/sys/compat/netbsd32/netbsd32_compat_50.c:1.21	Tue Oct  2 01:44:28 2012
+++ src/sys/compat/netbsd32/netbsd32_compat_50.c	Sat Nov  3 23:22:22 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: netbsd32_compat_50.c,v 1.21 2012/10/02 01:44:28 christos Exp $	*/
+/*	$NetBSD: netbsd32_compat_50.c,v 1.22 2012/11/03 23:22:22 njoly Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: netbsd32_compat_50.c,v 1.21 2012/10/02 01:44:28 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: netbsd32_compat_50.c,v 1.22 2012/11/03 23:22:22 njoly Exp $);
 
 #if defined(_KERNEL_OPT)
 #include opt_sysv.h
@@ -840,28 +840,17 @@ compat_50_netbsd32_getrusage(struct lwp 
 		syscallarg(int) who;
 		syscallarg(netbsd32_rusage50p_t) rusage;
 	} */
+	int error;
 	struct proc *p = l-l_proc;
-	struct rusage *rup;
-	struct netbsd32_rusage50 ru;
-
-	switch (SCARG(uap, who)) {
-
-	case RUSAGE_SELF:
-		rup = p-p_stats-p_ru;
-		mutex_enter(p-p_lock);
-		calcru(p, rup-ru_utime, rup-ru_stime, NULL, NULL);
-		mutex_exit(p-p_lock);
-		break;
+	struct rusage ru;
+	struct netbsd32_rusage50 ru32;
 
-	case RUSAGE_CHILDREN:
-		rup = p-p_stats-p_cru;
-		break;
+	error = getrusage1(p, SCARG(uap, who), ru);
+	if (error != 0)
+		return error;
 
-	default:
-		return (EINVAL);
-	}
-	netbsd32_from_rusage50(rup, ru);
-	return copyout(ru, SCARG_P32(uap, rusage), sizeof(ru));
+	netbsd32_from_rusage50(ru, ru32);
+	return copyout(ru32, SCARG_P32(uap, rusage), sizeof(ru32));
 }
 
 int
Index: src/sys/compat/netbsd32/netbsd32_wait.c
diff -u src/sys/compat/netbsd32/netbsd32_wait.c:1.21 src/sys/compat/netbsd32/netbsd32_wait.c:1.22
--- src/sys/compat/netbsd32/netbsd32_wait.c:1.21	Wed Nov  4 21:23:03 2009
+++ src/sys/compat/netbsd32/netbsd32_wait.c	Sat Nov  3 23:22:22 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: netbsd32_wait.c,v 1.21 2009/11/04 21:23:03 rmind Exp $	*/
+/*	$NetBSD: netbsd32_wait.c,v 1.22 2012/11/03 23:22:22 njoly Exp $	*/
 
 /*
  * Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: netbsd32_wait.c,v 1.21 2009/11/04 21:23:03 rmind Exp $);
+__KERNEL_RCSID(0, $NetBSD: netbsd32_wait.c,v 1.22 2012/11/03 23:22:22 njoly Exp $);
 
 #include sys/param.h
 #include 

CVS commit: src/lib/libm/man

2012-11-10 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sat Nov 10 15:59:58 UTC 2012

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

Log Message:
Add No macro to ensure that and word is not taken as function
argument.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 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.25 src/lib/libm/man/math.3:1.26
--- src/lib/libm/man/math.3:1.25	Thu Sep 22 18:14:09 2011
+++ src/lib/libm/man/math.3	Sat Nov 10 15:59:58 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: math.3,v 1.25 2011/09/22 18:14:09 njoly Exp $
+.\	$NetBSD: math.3,v 1.26 2012/11/10 15:59:58 njoly Exp $
 .\
 .\ Copyright (c) 1985 Regents of the University of California.
 .\ All rights reserved.
@@ -535,7 +535,7 @@ They signal no inappropriate exception e
 .Bl -ohang -offset indent
 .It Over/Underflow
 when a result, if properly computed, might have lain barely within range, and
-.It Inexact in Fn cbrt , Fn hypot , Fn log10 and Fn pow
+.It Inexact in Fn cbrt , Fn hypot , Fn log10 No and Fn pow
 when it happens to be exact, thanks to fortuitous cancellation of errors.
 .El
 Otherwise, ...



CVS commit: src

2012-11-12 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Nov 12 09:03:52 UTC 2012

Modified Files:
src/distrib/sets/lists/tests: mi
src/etc/mtree: NetBSD.dist.tests

Log Message:
Adjust for tests/lib/{libbpfjit,libsljit} debug entries.


To generate a diff of this commit:
cvs rdiff -u -r1.503 -r1.504 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.86 -r1.87 src/etc/mtree/NetBSD.dist.tests

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.503 src/distrib/sets/lists/tests/mi:1.504
--- src/distrib/sets/lists/tests/mi:1.503	Sun Nov 11 17:41:32 2012
+++ src/distrib/sets/lists/tests/mi	Mon Nov 12 09:03:52 2012
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.503 2012/11/11 17:41:32 alnsn Exp $
+# $NetBSD: mi,v 1.504 2012/11/12 09:03:52 njoly Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -368,6 +368,8 @@
 ./usr/libdata/debug/usr/tests/lib/libbluetooth/t_sdp_match.debug	tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libbluetooth/t_sdp_put.debug		tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libbluetooth/t_sdp_set.debug		tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libbpfjittests-lib-debug
+./usr/libdata/debug/usr/tests/lib/libbpfjit/t_bpfjit.debug		tests-lib-debug		debug,atf,sljit
 ./usr/libdata/debug/usr/tests/lib/libc	tests-lib-debug
 ./usr/libdata/debug/usr/tests/lib/libc/dbtests-lib-debug
 ./usr/libdata/debug/usr/tests/lib/libc/db/h_db.debug			tests-lib-debug		debug,atf
@@ -695,6 +697,8 @@
 ./usr/libdata/debug/usr/tests/lib/librumphijack/h_netget.debug			tests-lib-debug		debug,atf,rump
 ./usr/libdata/debug/usr/tests/lib/libskeytests-lib-debug
 ./usr/libdata/debug/usr/tests/lib/libskey/t_algorithms.debug		tests-lib-debug		debug,atf,skey
+./usr/libdata/debug/usr/tests/lib/libsljittests-lib-debug
+./usr/libdata/debug/usr/tests/lib/libsljit/h_sljit.debug		tests-lib-debug		debug,atf,sljit
 ./usr/libdata/debug/usr/tests/lib/libtretests-lib-debug
 ./usr/libdata/debug/usr/tests/lib/libtre/h_regex_att.debug		tests-obsolete		obsolete
 ./usr/libdata/debug/usr/tests/lib/libtre/t_exhaust.debug		tests-lib-debug		debug,atf

Index: src/etc/mtree/NetBSD.dist.tests
diff -u src/etc/mtree/NetBSD.dist.tests:1.86 src/etc/mtree/NetBSD.dist.tests:1.87
--- src/etc/mtree/NetBSD.dist.tests:1.86	Sun Nov 11 17:41:32 2012
+++ src/etc/mtree/NetBSD.dist.tests	Mon Nov 12 09:03:52 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: NetBSD.dist.tests,v 1.86 2012/11/11 17:41:32 alnsn Exp $
+#	$NetBSD: NetBSD.dist.tests,v 1.87 2012/11/12 09:03:52 njoly Exp $
 
 ./usr/libdata/debug/usr/tests
 ./usr/libdata/debug/usr/tests/atf
@@ -50,6 +50,7 @@
 ./usr/libdata/debug/usr/tests/lib
 ./usr/libdata/debug/usr/tests/lib/csu
 ./usr/libdata/debug/usr/tests/lib/libbluetooth
+./usr/libdata/debug/usr/tests/lib/libbpfjit
 ./usr/libdata/debug/usr/tests/lib/libc
 ./usr/libdata/debug/usr/tests/lib/libc/db
 ./usr/libdata/debug/usr/tests/lib/libc/gen
@@ -91,6 +92,7 @@
 ./usr/libdata/debug/usr/tests/lib/librumpclient
 ./usr/libdata/debug/usr/tests/lib/librumphijack
 ./usr/libdata/debug/usr/tests/lib/libskey
+./usr/libdata/debug/usr/tests/lib/libsljit
 ./usr/libdata/debug/usr/tests/lib/libtre
 ./usr/libdata/debug/usr/tests/lib/libutil
 ./usr/libdata/debug/usr/tests/libexec



CVS commit: src/share/man/man8/man8.vax

2012-11-13 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Tue Nov 13 17:40:56 UTC 2012

Modified Files:
src/share/man/man8/man8.vax: format.8

Log Message:
Use mdoc macros for literal display block.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/share/man/man8/man8.vax/format.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/man8.vax/format.8
diff -u src/share/man/man8/man8.vax/format.8:1.11 src/share/man/man8/man8.vax/format.8:1.12
--- src/share/man/man8/man8.vax/format.8:1.11	Wed Sep 24 18:19:13 2008
+++ src/share/man/man8/man8.vax/format.8	Tue Nov 13 17:40:56 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: format.8,v 1.11 2008/09/24 18:19:13 reed Exp $
+.\	$NetBSD: format.8,v 1.12 2012/11/13 17:40:56 njoly Exp $
 .\
 .\ Copyright (c) 1980, 1983, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -187,10 +187,7 @@ As usual,
 and
 .Dq @
 may be used to edit input.
-.nf
-.in +0.5i
-.ta  1i
-.sp 1
+.Bd -literal -offset 0.5i
 \*[Gt]\*[Gt]\*[Gt]\fBL FORMAT\fP
 	LOAD DONE, 4400 BYTES LOADED
 \*[Gt]\*[Gt]\*[Gt]\fBS 2\fP
@@ -206,12 +203,14 @@ Starting track (0):
 Ending cylinder (841):
 Ending track (19):
 Available test patterns are:
-.in +1.0i
+.Ed
+.Bd -literal -offset 1.5i -compact
 1 - (f00f) RH750 worst case
 2 - (ec6d) media worst case
 3 - (a5a5) alternating 1's and 0's
 4 - () Severe burnin (up to 48 passes)
-.in -1.0i
+.Ed
+.Bd -literal -offset 0.5i -compact
 Pattern (one of the above, other to restart)? \fB2\fP
 Maximum number of bit errors to allow for soft ECC (3):
 Start formatting...make sure the drive is online
@@ -233,8 +232,7 @@ Writing bad sector table at block 808272
 Done
 (\fI...program restarts to allow formatting other disks\fP)
 (\fI...to abort halt machine with ^P\fP)
-.fi
-.sp 1
+.Ed
 .Sh DIAGNOSTICS
 The diagnostics are intended to be self explanatory.
 .Sh USING DEC SOFTWARE TO FORMAT



CVS commit: src/external/bsd/ntp/bin/ntptrace

2012-11-14 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Wed Nov 14 08:26:29 UTC 2012

Modified Files:
src/external/bsd/ntp/bin/ntptrace: ntptrace.8

Log Message:
Use mdoc macro for literal block display.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/bsd/ntp/bin/ntptrace/ntptrace.8

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/ntp/bin/ntptrace/ntptrace.8
diff -u src/external/bsd/ntp/bin/ntptrace/ntptrace.8:1.1 src/external/bsd/ntp/bin/ntptrace/ntptrace.8:1.2
--- src/external/bsd/ntp/bin/ntptrace/ntptrace.8:1.1	Sat Aug 28 15:42:45 2010
+++ src/external/bsd/ntp/bin/ntptrace/ntptrace.8	Wed Nov 14 08:26:29 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: ntptrace.8,v 1.1 2010/08/28 15:42:45 kardel Exp $
+.\	$NetBSD: ntptrace.8,v 1.2 2012/11/14 08:26:29 njoly Exp $
 .\ Converted from HTML to mandoc by ntp-html2mdoc.pl
 .\
 .Dd March 29, 2000
@@ -21,13 +21,12 @@ their master time source. If given no ar
 .Pa localhost .
 Here is an example of the output from
 .Nm :
-.Pp
-.nf
+.Bd -literal
 % ntptrace
 localhost: stratum 4, offset 0.0019529, synch distance 0.144135
 server2ozo.com: stratum 2, offset 0.0124263, synch distance 0.115784
 usndh.edu: stratum 1, offset 0.0019298, synch distance 0.011993, refid 'WWVB'
-.fi
+.Ed
 .Pp
 On each line, the fields are (left to right): the host name, the host stratum,
 the time offset between that host and the local host (as measured by



CVS commit: src/usr.sbin/puffs/rump_syspuffs

2012-11-14 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Wed Nov 14 23:11:28 UTC 2012

Modified Files:
src/usr.sbin/puffs/rump_syspuffs: rump_syspuffs.8

Log Message:
Fix mandoc(1) output, use right arrow special character.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/puffs/rump_syspuffs/rump_syspuffs.8

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

Modified files:

Index: src/usr.sbin/puffs/rump_syspuffs/rump_syspuffs.8
diff -u src/usr.sbin/puffs/rump_syspuffs/rump_syspuffs.8:1.3 src/usr.sbin/puffs/rump_syspuffs/rump_syspuffs.8:1.4
--- src/usr.sbin/puffs/rump_syspuffs/rump_syspuffs.8:1.3	Tue Jun  9 14:27:17 2009
+++ src/usr.sbin/puffs/rump_syspuffs/rump_syspuffs.8	Wed Nov 14 23:11:27 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: rump_syspuffs.8,v 1.3 2009/06/09 14:27:17 pooka Exp $
+.\	$NetBSD: rump_syspuffs.8,v 1.4 2012/11/14 23:11:27 njoly Exp $
 .\
 .\ Copyright (c) 2008 Antti Kantee. All rights reserved.
 .\
@@ -46,8 +46,8 @@ puffs code in userspace as well.
 Therefore the approximate callgraph looks a little like the following,
 where k and u denote code running in the kernel space and userspace,
 respectively:
-puffs vfs (k) \(-\*[Gt] libpuffs (u) \(-\*[Gt] p2k (u) \(-\*[Gt] puffs vfs (u) \(-\*[Gt]
-libpuffs (u) \(-\*[Gt] file server (u).
+puffs vfs (k) \(- libpuffs (u) \(- p2k (u) \(- puffs vfs (u) \(-
+libpuffs (u) \(- file server (u).
 The response path is the same, but in reverse.
 .Pp
 In its current state,



CVS commit: src/dist/pppd/chat

2012-11-19 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Nov 19 22:31:34 UTC 2012

Modified Files:
src/dist/pppd/chat: chat.8

Log Message:
Protect a few more quotes in chat script examples.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/dist/pppd/chat/chat.8

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

Modified files:

Index: src/dist/pppd/chat/chat.8
diff -u src/dist/pppd/chat/chat.8:1.7 src/dist/pppd/chat/chat.8:1.8
--- src/dist/pppd/chat/chat.8:1.7	Tue Mar 30 14:26:16 2010
+++ src/dist/pppd/chat/chat.8	Mon Nov 19 22:31:34 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: chat.8,v 1.7 2010/03/30 14:26:16 joerg Exp $
+.\	$NetBSD: chat.8,v 1.8 2012/11/19 22:31:34 njoly Exp $
 .\
 .\ -*- nroff -*-
 .\ manual page [] for chat 1.8
@@ -342,7 +342,7 @@ ABORT   'BUSY'
 .br
 ABORT   'NO CARRIER'
 .br
-''  ATZ
+\''  ATZ
 .br
 OK\er\en  ATD1234567
 .br
@@ -375,7 +375,7 @@ Here is an (simple) example script:
 .IP
 ABORT   'BUSY'
 .br
-''  ATZ
+\''  ATZ
 .br
 OK\er\en  ATD1234567
 .br



CVS commit: src

2012-11-23 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Nov 23 08:36:48 UTC 2012

Modified Files:
src/distrib/sets/lists/tests: mi
src/etc/mtree: NetBSD.dist.tests

Log Message:
Adjust for usr/tests/lib/libc/c063 debug entries.


To generate a diff of this commit:
cvs rdiff -u -r1.508 -r1.509 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.89 -r1.90 src/etc/mtree/NetBSD.dist.tests

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.508 src/distrib/sets/lists/tests/mi:1.509
--- src/distrib/sets/lists/tests/mi:1.508	Tue Nov 20 16:18:50 2012
+++ src/distrib/sets/lists/tests/mi	Fri Nov 23 08:36:48 2012
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.508 2012/11/20 16:18:50 agc Exp $
+# $NetBSD: mi,v 1.509 2012/11/23 08:36:48 njoly Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -372,6 +372,23 @@
 ./usr/libdata/debug/usr/tests/lib/libbpfjittests-lib-debug
 ./usr/libdata/debug/usr/tests/lib/libbpfjit/t_bpfjit.debug		tests-lib-debug		debug,atf,sljit
 ./usr/libdata/debug/usr/tests/lib/libc	tests-lib-debug
+./usr/libdata/debug/usr/tests/lib/libc/c063tests-lib-debug
+./usr/libdata/debug/usr/tests/lib/libc/c063/t_faccessat.debug		tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libc/c063/t_fchmodat.debug		tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libc/c063/t_fchownat.debug		tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libc/c063/t_fexecve.debug		tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libc/c063/t_fstatat.debug		tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libc/c063/t_linkat.debug		tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libc/c063/t_mkdirat.debug		tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libc/c063/t_mkfifoat.debug		tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libc/c063/t_mknodat.debug		tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libc/c063/t_o_search.debug		tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libc/c063/t_openat.debug		tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libc/c063/t_readlinkat.debug		tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libc/c063/t_renameat.debug		tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libc/c063/t_symlinkat.debug		tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libc/c063/t_unlinkat.debug		tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libc/c063/t_utimensat.debug		tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libc/dbtests-lib-debug
 ./usr/libdata/debug/usr/tests/lib/libc/db/h_db.debug			tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libc/gentests-lib-debug

Index: src/etc/mtree/NetBSD.dist.tests
diff -u src/etc/mtree/NetBSD.dist.tests:1.89 src/etc/mtree/NetBSD.dist.tests:1.90
--- src/etc/mtree/NetBSD.dist.tests:1.89	Tue Nov 20 15:41:43 2012
+++ src/etc/mtree/NetBSD.dist.tests	Fri Nov 23 08:36:47 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: NetBSD.dist.tests,v 1.89 2012/11/20 15:41:43 pgoyette Exp $
+#	$NetBSD: NetBSD.dist.tests,v 1.90 2012/11/23 08:36:47 njoly Exp $
 
 ./usr/libdata/debug/usr/tests
 ./usr/libdata/debug/usr/tests/atf
@@ -52,6 +52,7 @@
 ./usr/libdata/debug/usr/tests/lib/libbluetooth
 ./usr/libdata/debug/usr/tests/lib/libbpfjit
 ./usr/libdata/debug/usr/tests/lib/libc
+./usr/libdata/debug/usr/tests/lib/libc/c063
 ./usr/libdata/debug/usr/tests/lib/libc/db
 ./usr/libdata/debug/usr/tests/lib/libc/gen
 ./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn



CVS commit: src/sys/kern

2012-11-30 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Nov 30 13:26:37 UTC 2012

Modified Files:
src/sys/kern: vfs_syscalls.c

Log Message:
Apply fix from hannken to ensure that VOP_ACCESS() is called on a
locked vnode for fd_nameiat(), fd_nameiat_simple() and do_sys_openat().
Fix both PR/47226 and PR/47255.


To generate a diff of this commit:
cvs rdiff -u -r1.461 -r1.462 src/sys/kern/vfs_syscalls.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/kern/vfs_syscalls.c
diff -u src/sys/kern/vfs_syscalls.c:1.461 src/sys/kern/vfs_syscalls.c:1.462
--- src/sys/kern/vfs_syscalls.c:1.461	Mon Nov 19 15:01:17 2012
+++ src/sys/kern/vfs_syscalls.c	Fri Nov 30 13:26:37 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_syscalls.c,v 1.461 2012/11/19 15:01:17 martin Exp $	*/
+/*	$NetBSD: vfs_syscalls.c,v 1.462 2012/11/30 13:26:37 njoly Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: vfs_syscalls.c,v 1.461 2012/11/19 15:01:17 martin Exp $);
+__KERNEL_RCSID(0, $NetBSD: vfs_syscalls.c,v 1.462 2012/11/30 13:26:37 njoly Exp $);
 
 #ifdef _KERNEL_OPT
 #include opt_fileassoc.h
@@ -182,7 +182,9 @@ fd_nameiat(struct lwp *l, int fdat, stru
 			goto out;
 
 		if (!(dfp-f_flag  FSEARCH)) {
+			vn_lock(dfp-f_data, LK_EXCLUSIVE);
 			error = VOP_ACCESS(dfp-f_data, VEXEC, l-l_cred);
+			VOP_UNLOCK(dfp-f_data);
 			if (error)
 goto cleanup;
 		}
@@ -212,7 +214,9 @@ fd_nameiat_simple_user(struct lwp *l, in
 			goto out;
 
 		if (!(dfp-f_flag  FSEARCH)) {
+			vn_lock(dfp-f_data, LK_EXCLUSIVE);
 			error = VOP_ACCESS(dfp-f_data, VEXEC, l-l_cred);
+			VOP_UNLOCK(dfp-f_data);
 			if (error)
 goto cleanup;
 		}
@@ -1660,7 +1664,9 @@ do_sys_openat(lwp_t *l, int fdat, const 
 		dvp = dfp-f_data;
 
 		if (!(dfp-f_flag  FSEARCH)) {
+			vn_lock(dfp-f_data, LK_EXCLUSIVE);
 			error = VOP_ACCESS(dfp-f_data, VEXEC, l-l_cred);
+			VOP_UNLOCK(dfp-f_data);
 			if (error)
 goto cleanup;
 		}



CVS commit: src/distrib/sets/lists/comp

2012-12-07 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Dec  7 18:36:25 UTC 2012

Modified Files:
src/distrib/sets/lists/comp: ad.mips64eb ad.mips64el md.amd64
md.sparc64 shl.mi

Log Message:
Adjust libraries debug entries following recent bind update.


To generate a diff of this commit:
cvs rdiff -u -r1.93 -r1.94 src/distrib/sets/lists/comp/ad.mips64eb
cvs rdiff -u -r1.95 -r1.96 src/distrib/sets/lists/comp/ad.mips64el
cvs rdiff -u -r1.183 -r1.184 src/distrib/sets/lists/comp/md.amd64
cvs rdiff -u -r1.160 -r1.161 src/distrib/sets/lists/comp/md.sparc64
cvs rdiff -u -r1.239 -r1.240 src/distrib/sets/lists/comp/shl.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/sets/lists/comp/ad.mips64eb
diff -u src/distrib/sets/lists/comp/ad.mips64eb:1.93 src/distrib/sets/lists/comp/ad.mips64eb:1.94
--- src/distrib/sets/lists/comp/ad.mips64eb:1.93	Mon Nov 26 08:05:47 2012
+++ src/distrib/sets/lists/comp/ad.mips64eb	Fri Dec  7 18:36:24 2012
@@ -1,4 +1,4 @@
-# $NetBSD: ad.mips64eb,v 1.93 2012/11/26 08:05:47 alnsn Exp $
+# $NetBSD: ad.mips64eb,v 1.94 2012/12/07 18:36:24 njoly Exp $
 ./usr/bin/elf2aoutcomp-obsolete		obsolete
 ./usr/bin/elf2ecoffcomp-sysutil-bin
 ./usr/include/gcc-4.5/loongson.h		comp-c-include		gcccmds,gcc=45
@@ -1303,7 +1303,7 @@
 ./usr/libdata/debug/usr/lib/64/libatf-c++.so.0.0.debug		comp-compat-shlib	compat,pic,atf,debug
 ./usr/libdata/debug/usr/lib/64/libavl.so.0.0.debug		comp-zfs-debug	zfs,dynamicroot,debug,compat
 ./usr/libdata/debug/usr/lib/64/libbfd.so.12.0.debug	comp-sys-debug	binutils,debug,compat
-./usr/libdata/debug/usr/lib/64/libbind9.so.5.7.debug	comp-bind-debug	debug,compat
+./usr/libdata/debug/usr/lib/64/libbind9.so.5.8.debug	comp-bind-debug	debug,compat
 ./usr/libdata/debug/usr/lib/64/libbluetooth.so.4.2.debug	comp-sys-debug	debug,compat
 ./usr/libdata/debug/usr/lib/64/libbsdmalloc.so.0.0.debug	comp-sys-debug	debug,compat
 ./usr/libdata/debug/usr/lib/64/libbz2.so.1.1.debug		comp-sys-debug	debug,compat
@@ -1317,7 +1317,7 @@
 ./usr/libdata/debug/usr/lib/64/libdes.so.8.1.debug		comp-crypto-debug	crypto,debug,compat
 ./usr/libdata/debug/usr/lib/64/libdevmapper.so.1.0.debug	comp-lvm-debug	lvm,debug,compat
 ./usr/libdata/debug/usr/lib/64/libdm.so.0.0.debug 		comp-sys-debug	debug,compat
-./usr/libdata/debug/usr/lib/64/libdns.so.5.7.debug		comp-bind-debug	debug,compat
+./usr/libdata/debug/usr/lib/64/libdns.so.5.8.debug		comp-bind-debug	debug,compat
 ./usr/libdata/debug/usr/lib/64/libdns_sd.so.0.0.debug	comp-mdns-debug	mdns,debug,compat
 ./usr/libdata/debug/usr/lib/64/libdtrace.so.2.0.debug	comp-sys-debug	dtrace,debug,compat
 ./usr/libdata/debug/usr/lib/64/libdwarf.so.0.0.debug	comp-sys-debug	debug,compat
@@ -1343,9 +1343,9 @@
 ./usr/libdata/debug/usr/lib/64/libhx509.so.5.0.debug	comp-krb5-debug	kerberos,debug,compat
 ./usr/libdata/debug/usr/lib/64/libintl.so.1.0.debug	comp-sys-debug	debug,compat
 ./usr/libdata/debug/usr/lib/64/libipsec.so.3.0.debug	comp-net-debug	debug,compat
-./usr/libdata/debug/usr/lib/64/libisc.so.5.7.debug		comp-bind-debug	debug,compat
-./usr/libdata/debug/usr/lib/64/libisccc.so.5.7.debug	comp-bind-debug	debug,compat
-./usr/libdata/debug/usr/lib/64/libisccfg.so.5.7.debug	comp-bind-debug	debug,compat
+./usr/libdata/debug/usr/lib/64/libisc.so.5.8.debug		comp-bind-debug	debug,compat
+./usr/libdata/debug/usr/lib/64/libisccc.so.5.8.debug	comp-bind-debug	debug,compat
+./usr/libdata/debug/usr/lib/64/libisccfg.so.5.8.debug	comp-bind-debug	debug,compat
 ./usr/libdata/debug/usr/lib/64/libiscsi.so.2.0.debug	comp-iscsi-debug	iscsi,debug,compat
 ./usr/libdata/debug/usr/lib/64/libisns.so.0.0.debug	comp-isns-debug	debug,compat
 ./usr/libdata/debug/usr/lib/64/libkadm5clnt.so.12.0.debug	 comp-compat-shlib	 compat,pic,kerberos,debug,obsolete
@@ -1362,7 +1362,7 @@
 ./usr/libdata/debug/usr/lib/64/libldap.so.4.2.debug	comp-ldap-debug	ldap,debug,compat
 ./usr/libdata/debug/usr/lib/64/libldap_r.so.4.2.debug	comp-ldap-debug	ldap,debug,compat
 ./usr/libdata/debug/usr/lib/64/liblua.so.1.0.debug		comp-sys-debug	debug,compat
-./usr/libdata/debug/usr/lib/64/liblwres.so.5.7.debug	comp-bind-debug	debug,compat
+./usr/libdata/debug/usr/lib/64/liblwres.so.5.8.debug	comp-bind-debug	debug,compat
 ./usr/libdata/debug/usr/lib/64/liblzf.so.1.0.debug		comp-sys-debug	debug,compat
 ./usr/libdata/debug/usr/lib/64/liblzma.so.1.1.debug	comp-sys-debug	debug,compat
 ./usr/libdata/debug/usr/lib/64/libm.so.0.10.debug		comp-sys-debug	debug,compat
@@ -1460,7 +1460,7 @@
 ./usr/libdata/debug/usr/lib/o32/libatf-c++.so.0.0.debug		comp-compat-shlib	compat,pic,atf,debug
 ./usr/libdata/debug/usr/lib/o32/libavl.so.0.0.debug		comp-zfs-debug	zfs,dynamicroot,debug,compat
 ./usr/libdata/debug/usr/lib/o32/libbfd.so.12.0.debug	comp-sys-debug	binutils,debug,compat
-./usr/libdata/debug/usr/lib/o32/libbind9.so.5.7.debug	comp-bind-debug	debug,compat
+./usr/libdata/debug/usr/lib/o32/libbind9.so.5.8.debug	

CVS commit: src/distrib/sets/lists/comp

2012-12-07 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Dec  7 18:48:56 UTC 2012

Modified Files:
src/distrib/sets/lists/comp: mi

Log Message:
+dnssec-verify.debug


To generate a diff of this commit:
cvs rdiff -u -r1.1795 -r1.1796 src/distrib/sets/lists/comp/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/sets/lists/comp/mi
diff -u src/distrib/sets/lists/comp/mi:1.1795 src/distrib/sets/lists/comp/mi:1.1796
--- src/distrib/sets/lists/comp/mi:1.1795	Fri Dec  7 01:54:27 2012
+++ src/distrib/sets/lists/comp/mi	Fri Dec  7 18:48:54 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.1795 2012/12/07 01:54:27 christos Exp $
+#	$NetBSD: mi,v 1.1796 2012/12/07 18:48:54 njoly Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -4127,6 +4127,7 @@
 ./usr/libdata/debug/usr/sbin/dnssec-revoke.debug	comp-bind-debug		debug
 ./usr/libdata/debug/usr/sbin/dnssec-settime.debug	comp-bind-debug		debug
 ./usr/libdata/debug/usr/sbin/dnssec-signzone.debug	comp-bind-debug		debug
+./usr/libdata/debug/usr/sbin/dnssec-verify.debug	comp-bind-debug		debug
 ./usr/libdata/debug/usr/sbin/dtmfdecode.debug	comp-isdn-debug		debug
 ./usr/libdata/debug/usr/sbin/dtrace.debug	comp-util-debug		dtrace,debug
 ./usr/libdata/debug/usr/sbin/dumpfs.debug	comp-sysutil-debug	debug



CVS commit: src/external/public-domain/sqlite/dist

2012-12-21 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Dec 21 19:26:40 UTC 2012

Modified Files:
src/external/public-domain/sqlite/dist: sqlite3.1

Log Message:
Fix unknown Fi macro.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/public-domain/sqlite/dist/sqlite3.1

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

Modified files:

Index: src/external/public-domain/sqlite/dist/sqlite3.1
diff -u src/external/public-domain/sqlite/dist/sqlite3.1:1.4 src/external/public-domain/sqlite/dist/sqlite3.1:1.5
--- src/external/public-domain/sqlite/dist/sqlite3.1:1.4	Mon Dec 17 16:26:38 2012
+++ src/external/public-domain/sqlite/dist/sqlite3.1	Fri Dec 21 19:26:39 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: sqlite3.1,v 1.4 2012/12/17 16:26:38 christos Exp $
+.\	$NetBSD: sqlite3.1,v 1.5 2012/12/21 19:26:39 njoly Exp $
 .Dd December 16, 2012
 .Dt SQLITE3 1
 .Os
@@ -168,7 +168,7 @@ continue prompt =... 
 .Ed
 .It
 If the file
-.Fi ~/.sqliterc
+.Pa ~/.sqliterc
 exists, it is processed first.
 can be found in the user's home directory, it is
 read and processed.



CVS commit: src/sys/kern

2012-12-21 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Dec 21 19:39:48 UTC 2012

Modified Files:
src/sys/kern: kern_resource.c

Log Message:
One semi-column is enough.


To generate a diff of this commit:
cvs rdiff -u -r1.170 -r1.171 src/sys/kern/kern_resource.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/kern/kern_resource.c
diff -u src/sys/kern/kern_resource.c:1.170 src/sys/kern/kern_resource.c:1.171
--- src/sys/kern/kern_resource.c:1.170	Sat Nov  3 23:22:22 2012
+++ src/sys/kern/kern_resource.c	Fri Dec 21 19:39:48 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_resource.c,v 1.170 2012/11/03 23:22:22 njoly Exp $	*/
+/*	$NetBSD: kern_resource.c,v 1.171 2012/12/21 19:39:48 njoly Exp $	*/
 
 /*-
  * Copyright (c) 1982, 1986, 1991, 1993
@@ -37,7 +37,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: kern_resource.c,v 1.170 2012/11/03 23:22:22 njoly Exp $);
+__KERNEL_RCSID(0, $NetBSD: kern_resource.c,v 1.171 2012/12/21 19:39:48 njoly Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -171,7 +171,7 @@ sys_getpriority(struct lwp *l, const str
 	mutex_enter(proc_lock);
 	switch (SCARG(uap, which)) {
 	case PRIO_PROCESS:
-		p = who ? proc_find(who) : curp;;
+		p = who ? proc_find(who) : curp;
 		if (p != NULL)
 			low = p-p_nice;
 		break;



CVS commit: src/sys/rump/kern/lib/libsys_linux

2014-01-10 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Jan 10 19:44:47 UTC 2014

Modified Files:
src/sys/rump/kern/lib/libsys_linux: linux_rump.c syscalls.master

Log Message:
Do not redefine linux syscalls arguments, just use compat ones
instead.
Include linux_socketcall.h to bring missing socket syscall
arguments/prototypes on arches that have socketcall(2).
Finally, cleanup rump linux syscall wrapper, to remove linux syscall
argument/prototype local copy.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/rump/kern/lib/libsys_linux/linux_rump.c
cvs rdiff -u -r1.10 -r1.11 src/sys/rump/kern/lib/libsys_linux/syscalls.master

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

Modified files:

Index: src/sys/rump/kern/lib/libsys_linux/linux_rump.c
diff -u src/sys/rump/kern/lib/libsys_linux/linux_rump.c:1.1 src/sys/rump/kern/lib/libsys_linux/linux_rump.c:1.2
--- src/sys/rump/kern/lib/libsys_linux/linux_rump.c:1.1	Sat Dec 14 10:29:45 2013
+++ src/sys/rump/kern/lib/libsys_linux/linux_rump.c	Fri Jan 10 19:44:47 2014
@@ -1,28 +1,13 @@
-/*	$NetBSD: linux_rump.c,v 1.1 2013/12/14 10:29:45 njoly Exp $	*/
+/*	$NetBSD: linux_rump.c,v 1.2 2014/01/10 19:44:47 njoly Exp $	*/
 
 #include sys/param.h
 
 #include compat/linux/common/linux_types.h
 #include compat/linux/common/linux_signal.h
+#include compat/linux/linux_syscallargs.h
 
 #include rump_linux_syscallargs.h
 
-/*
-compat/linux/arch/.../syscallargs.h and rump_linux_syscallargs.h
-define the same syscall arguments and prototypes, thus cannot be
-both used. Just copy needed linux stuff for now to avoid conflicts.
-*/
-
-struct linux_sys_mknodat_args {
-syscallarg(int) fd;
-syscallarg(const char *) path;
-syscallarg(mode_t) mode;
-syscallarg(unsigned) dev;
-};
-check_syscall_args(linux_sys_mknodat)
-
-int linux_sys_mknodat(struct lwp *, const struct linux_sys_mknodat_args *, register_t *);
-
 int
 rump_linux_sys_mknodat(struct lwp *l,
 const struct rump_linux_sys_mknodat_args *uap, register_t *retval)

Index: src/sys/rump/kern/lib/libsys_linux/syscalls.master
diff -u src/sys/rump/kern/lib/libsys_linux/syscalls.master:1.10 src/sys/rump/kern/lib/libsys_linux/syscalls.master:1.11
--- src/sys/rump/kern/lib/libsys_linux/syscalls.master:1.10	Sat Dec 14 17:34:47 2013
+++ src/sys/rump/kern/lib/libsys_linux/syscalls.master	Fri Jan 10 19:44:47 2014
@@ -1,4 +1,4 @@
-	$NetBSD: syscalls.master,v 1.10 2013/12/14 17:34:47 njoly Exp $
+	$NetBSD: syscalls.master,v 1.11 2014/01/10 19:44:47 njoly Exp $
 
 ;	@(#)syscalls.master	8.2 (Berkeley) 1/13/94
 
@@ -34,6 +34,12 @@
 
 #include compat/linux/common/linux_types.h
 #include compat/linux/common/linux_signal.h
+#include compat/linux/linux_syscallargs.h
+#include compat/linux/linux_syscall.h
+
+#ifdef LINUX_SYS_socketcall
+#include compat/linux/common/linux_socketcall.h
+#endif
 
 #include rump_linux_syscallargs.h
 
@@ -45,13 +51,13 @@
 3	NOARGS		{ ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
 4	NOARGS		{ ssize_t|sys||write(int fd, const void *buf, \
 			size_t nbyte); }
-5	NODEF		{ int|linux_sys||open(const char *path, \
+5	NOARGS		{ int|linux_sys||open(const char *path, \
 			int flags, int mode); }
 6	NOARGS	 	{ int|sys||close(int fd); }
 7	UNIMPL		wait4
 8	UNIMPL		creat
 9	NOARGS 		{ int|sys||link(const char *path, const char *link); }
-10	NODEF 	 	{ int|linux_sys||unlink(const char *path); }
+10	NOARGS 	 	{ int|linux_sys||unlink(const char *path); }
 11	UNIMPL		execv
 12	NOARGS 	 	{ int|sys||chdir(const char *path); }
 13	NOARGS 	 	{ int|sys||fchdir(int fd); }
@@ -69,18 +75,18 @@
 24	NOARGS		{ uid_t|sys||getuid_with_euid(void); } getuid
 25	NOARGS		{ uid_t|sys||geteuid(void); }
 26	UNIMPL 		ptrace
-27	NODEF 		{ ssize_t|linux_sys||recvmsg(int s, \
+27	NOARGS 		{ ssize_t|linux_sys||recvmsg(int s, \
 			struct linux_msghdr *msg, int flags); }
-28	NODEF 		{ ssize_t|linux_sys||sendmsg(int s, \
+28	NOARGS 		{ ssize_t|linux_sys||sendmsg(int s, \
 			const struct linux_msghdr *msg, int flags); }
-29	NODEF 		{ ssize_t|linux_sys||recvfrom(int s, void *buf, \
+29	NOARGS 		{ ssize_t|linux_sys||recvfrom(int s, void *buf, \
 			int len, int flags, struct osockaddr *from, \
 			int *fromlenaddr); }
-30	NODEF		{ int|linux_sys||accept(int s, struct osockaddr *name, \
+30	NOARGS		{ int|linux_sys||accept(int s, struct osockaddr *name, \
 			int *anamelen); }
-31	NODEF		{ int|linux_sys||getpeername(int fdes, \
+31	NOARGS		{ int|linux_sys||getpeername(int fdes, \
 			struct osockaddr *asa, int *alen); }
-32	NODEF		{ int|linux_sys||getsockname(int fdes, \
+32	NOARGS		{ int|linux_sys||getsockname(int fdes, \
 			struct osockaddr *asa, int *alen); }
 33	NOARGS 		{ int|sys||access(const char *path, int flags); }
 34	UNIMPL		chflags
@@ -106,7 +112,7 @@
 51	UNIMPL		acct
 52	UNIMPL  	sigpending
 53	UNIMPL  	sigaltstack
-54	NODEF		{ int|linux_sys||ioctl(int fd, \
+54	

CVS commit: src/sys/rump/kern/lib/libsys_linux

2014-01-10 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Jan 10 20:10:43 UTC 2014

Modified Files:
src/sys/rump/kern/lib/libsys_linux: rump_linux_syscall.h
rump_linux_syscallargs.h rump_linux_syscalls.c rump_linux_sysent.c

Log Message:
Regen.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 \
src/sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h
cvs rdiff -u -r1.12 -r1.13 \
src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h \
src/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c \
src/sys/rump/kern/lib/libsys_linux/rump_linux_sysent.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/rump/kern/lib/libsys_linux/rump_linux_syscall.h
diff -u src/sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h:1.9 src/sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h:1.10
--- src/sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h:1.9	Fri Jan 10 19:45:43 2014
+++ src/sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h	Fri Jan 10 20:10:43 2014
@@ -1,10 +1,10 @@
-/* $NetBSD: rump_linux_syscall.h,v 1.9 2014/01/10 19:45:43 njoly Exp $ */
+/* $NetBSD: rump_linux_syscall.h,v 1.10 2014/01/10 20:10:43 njoly Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.11 2014/01/10 19:44:47 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.12 2014/01/10 20:10:23 njoly Exp
  */
 
 #ifndef _RUMP_LINUX_SYS_SYSCALL_H_
@@ -243,6 +243,12 @@
 /* syscall: utimes ret: int args: const char * struct linux_timeval * */
 #define	RUMP_LINUX_SYS_utimes	420
 
+/* syscall: __futimes50 ret: int args: int const struct timeval * */
+#define	RUMP_LINUX_SYS___futimes50	423
+
+/* syscall: __lutimes50 ret: int args: const char * const struct timeval * */
+#define	RUMP_LINUX_SYS___lutimes50	424
+
 /* syscall: ppoll ret: int args: struct pollfd * u_int const struct linux_timespec * const linux_sigset_t * */
 #define	RUMP_LINUX_SYS_ppoll	437
 

Index: src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h
diff -u src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h:1.12 src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h:1.13
--- src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h:1.12	Fri Jan 10 19:45:43 2014
+++ src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h	Fri Jan 10 20:10:43 2014
@@ -1,10 +1,10 @@
-/* $NetBSD: rump_linux_syscallargs.h,v 1.12 2014/01/10 19:45:43 njoly Exp $ */
+/* $NetBSD: rump_linux_syscallargs.h,v 1.13 2014/01/10 20:10:43 njoly Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.11 2014/01/10 19:44:47 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.12 2014/01/10 20:10:23 njoly Exp
  */
 
 #ifndef _RUMP_LINUX_SYS_SYSCALLARGS_H_
@@ -167,6 +167,10 @@ struct linux_sys_select_args;
 
 struct linux_sys_utimes_args;
 
+struct sys___futimes50_args;
+
+struct sys___lutimes50_args;
+
 struct linux_sys_ppoll_args;
 
 struct linux_sys_stat64_args;
@@ -370,6 +374,10 @@ int	linux_sys_select(struct lwp *, const
 
 int	linux_sys_utimes(struct lwp *, const struct linux_sys_utimes_args *, register_t *);
 
+int	sys___futimes50(struct lwp *, const struct sys___futimes50_args *, register_t *);
+
+int	sys___lutimes50(struct lwp *, const struct sys___lutimes50_args *, register_t *);
+
 int	linux_sys_ppoll(struct lwp *, const struct linux_sys_ppoll_args *, register_t *);
 
 int	linux_sys_stat64(struct lwp *, const struct linux_sys_stat64_args *, register_t *);
Index: src/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c
diff -u src/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c:1.12 src/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c:1.13
--- src/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c:1.12	Fri Jan 10 19:45:43 2014
+++ src/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c	Fri Jan 10 20:10:43 2014
@@ -1,14 +1,14 @@
-/* $NetBSD: rump_linux_syscalls.c,v 1.12 2014/01/10 19:45:43 njoly Exp $ */
+/* $NetBSD: rump_linux_syscalls.c,v 1.13 2014/01/10 20:10:43 njoly Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.11 2014/01/10 19:44:47 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.12 2014/01/10 20:10:23 njoly Exp
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: rump_linux_syscalls.c,v 1.12 2014/01/10 19:45:43 njoly Exp $);
+__KERNEL_RCSID(0, $NetBSD: rump_linux_syscalls.c,v 1.13 2014/01/10 20:10:43 njoly Exp $);
 
 #if defined(_KERNEL_OPT)
 #include sys/param.h
@@ -452,8 +452,8 @@ const char *const rump_linux_syscallname
 	/* 420 */	utimes,
 	/* 421 */	#421 (unimplemented adjtime),
 	/* 422 */	#422 (unimplemented lfs_segwait),
-	/* 423 */	#423 (unimplemented futimes),
-	/* 424 */	#424 (unimplemented lutimes),
+	/* 423 */	

CVS commit: src/sys/rump/kern/lib/libsys_linux

2014-01-10 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Jan 10 20:10:24 UTC 2014

Modified Files:
src/sys/rump/kern/lib/libsys_linux: syscalls.master

Log Message:
Add NetBSD futimes/lutimes syscalls which does not exists on Linux.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/rump/kern/lib/libsys_linux/syscalls.master

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

Modified files:

Index: src/sys/rump/kern/lib/libsys_linux/syscalls.master
diff -u src/sys/rump/kern/lib/libsys_linux/syscalls.master:1.11 src/sys/rump/kern/lib/libsys_linux/syscalls.master:1.12
--- src/sys/rump/kern/lib/libsys_linux/syscalls.master:1.11	Fri Jan 10 19:44:47 2014
+++ src/sys/rump/kern/lib/libsys_linux/syscalls.master	Fri Jan 10 20:10:23 2014
@@ -1,4 +1,4 @@
-	$NetBSD: syscalls.master,v 1.11 2014/01/10 19:44:47 njoly Exp $
+	$NetBSD: syscalls.master,v 1.12 2014/01/10 20:10:23 njoly Exp $
 
 ;	@(#)syscalls.master	8.2 (Berkeley) 1/13/94
 
@@ -548,8 +548,10 @@
 			struct linux_timeval *tv); }
 421	UNIMPL		adjtime
 422	UNIMPL		lfs_segwait
-423	UNIMPL		futimes
-424	UNIMPL		lutimes
+423	NOARGS		{ int|sys|50|futimes(int fd, \
+			const struct timeval *tptr); }
+424	NOARGS		{ int|sys|50|lutimes(const char *path, \
+			const struct timeval *tptr); }
 425	UNIMPL		setitimer
 426	UNIMPL		getitimer
 427	UNIMPL		clock_gettime



CVS commit: src/sys/compat/linux/arch/alpha

2014-01-13 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Jan 13 10:33:23 UTC 2014

Modified Files:
src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c

Log Message:
Regen.


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/compat/linux/arch/alpha/linux_syscall.h \
src/sys/compat/linux/arch/alpha/linux_sysent.c
cvs rdiff -u -r1.87 -r1.88 \
src/sys/compat/linux/arch/alpha/linux_syscallargs.h
cvs rdiff -u -r1.89 -r1.90 src/sys/compat/linux/arch/alpha/linux_syscalls.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/compat/linux/arch/alpha/linux_syscall.h
diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.88 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.89
--- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.88	Fri Dec 27 14:17:32 2013
+++ src/sys/compat/linux/arch/alpha/linux_syscall.h	Mon Jan 13 10:33:23 2014
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.88 2013/12/27 14:17:32 njoly Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.89 2014/01/13 10:33:23 njoly Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.82 2013/12/27 14:17:11 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.83 2014/01/13 10:33:03 njoly Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALL_H_
@@ -492,7 +492,7 @@
 /* syscall: gettimeofday ret: int args: struct timeval50 * struct timezone * */
 #define	LINUX_SYS_gettimeofday	359
 
-/* syscall: settimeofday ret: int args: const struct timeval50 * const struct timezone * */
+/* syscall: settimeofday ret: int args: struct timeval50 * struct timezone * */
 #define	LINUX_SYS_settimeofday	360
 
 /* syscall: getitimer ret: int args: int struct itimerval50 * */
Index: src/sys/compat/linux/arch/alpha/linux_sysent.c
diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.88 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.89
--- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.88	Fri Dec 27 14:17:32 2013
+++ src/sys/compat/linux/arch/alpha/linux_sysent.c	Mon Jan 13 10:33:23 2014
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.88 2013/12/27 14:17:32 njoly Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.89 2014/01/13 10:33:23 njoly Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.82 2013/12/27 14:17:11 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.83 2014/01/13 10:33:03 njoly Exp
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.88 2013/12/27 14:17:32 njoly Exp $);
+__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.89 2014/01/13 10:33:23 njoly Exp $);
 
 #if defined(_KERNEL_OPT)
 #include opt_sysv.h
@@ -788,10 +788,10 @@ struct sysent linux_sysent[] = {
 	(sy_call_t *)linux_sys_rt_sigsuspend },/* 357 = rt_sigsuspend */
 	{ ns(struct linux_sys_select_args), SYCALL_ARG_PTR,
 	(sy_call_t *)linux_sys_select },	/* 358 = select */
-	{ ns(struct compat_50_sys_gettimeofday_args), SYCALL_ARG_PTR,
-	(sy_call_t *)compat_50_sys_gettimeofday },/* 359 = gettimeofday */
-	{ ns(struct compat_50_sys_settimeofday_args), SYCALL_ARG_PTR,
-	(sy_call_t *)compat_50_sys_settimeofday },/* 360 = settimeofday */
+	{ ns(struct linux_sys_gettimeofday_args), SYCALL_ARG_PTR,
+	(sy_call_t *)linux_sys_gettimeofday },/* 359 = gettimeofday */
+	{ ns(struct linux_sys_settimeofday_args), SYCALL_ARG_PTR,
+	(sy_call_t *)linux_sys_settimeofday },/* 360 = settimeofday */
 	{ ns(struct compat_50_sys_getitimer_args), SYCALL_ARG_PTR,
 	(sy_call_t *)compat_50_sys_getitimer },/* 361 = getitimer */
 	{ ns(struct compat_50_sys_setitimer_args), SYCALL_ARG_PTR,

Index: src/sys/compat/linux/arch/alpha/linux_syscallargs.h
diff -u src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.87 src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.88
--- src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.87	Fri Dec 27 14:17:32 2013
+++ src/sys/compat/linux/arch/alpha/linux_syscallargs.h	Mon Jan 13 10:33:23 2014
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.87 2013/12/27 14:17:32 njoly Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.88 2014/01/13 10:33:23 njoly Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.82 2013/12/27 14:17:11 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.83 2014/01/13 10:33:03 njoly Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -776,9 +776,17 @@ struct linux_sys_select_args {
 };
 check_syscall_args(linux_sys_select)
 
-struct compat_50_sys_gettimeofday_args;
+struct linux_sys_gettimeofday_args {
+	syscallarg(struct timeval50 *) tp;
+	syscallarg(struct timezone *) tzp;
+};
+check_syscall_args(linux_sys_gettimeofday)
 
-struct compat_50_sys_settimeofday_args;
+struct 

CVS commit: src/sys/compat/linux

2014-01-13 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Jan 13 10:33:03 UTC 2014

Modified Files:
src/sys/compat/linux/arch/alpha: syscalls.master
src/sys/compat/linux/common: linux_time.c

Log Message:
Cleanup, and reduce diffs between arches. Make alpha use
linux_sys_{get,set}timeofday like others.


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/sys/compat/linux/arch/alpha/syscalls.master
cvs rdiff -u -r1.36 -r1.37 src/sys/compat/linux/common/linux_time.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/compat/linux/arch/alpha/syscalls.master
diff -u src/sys/compat/linux/arch/alpha/syscalls.master:1.82 src/sys/compat/linux/arch/alpha/syscalls.master:1.83
--- src/sys/compat/linux/arch/alpha/syscalls.master:1.82	Fri Dec 27 14:17:11 2013
+++ src/sys/compat/linux/arch/alpha/syscalls.master	Mon Jan 13 10:33:03 2014
@@ -1,4 +1,4 @@
-	$NetBSD: syscalls.master,v 1.82 2013/12/27 14:17:11 njoly Exp $
+	$NetBSD: syscalls.master,v 1.83 2014/01/13 10:33:03 njoly Exp $
 ;
 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
 
@@ -580,11 +580,10 @@
 358	STD		{ int|linux_sys||select(int nfds, fd_set *readfds, \
 			fd_set *writefds, fd_set *exceptfds, \
 			struct timeval50 *timeout); }
-359	NOARGS		{ int|compat_50_sys||gettimeofday( \
-			struct timeval50 *tp, struct timezone *tzp); }
-360	NOARGS		{ int|compat_50_sys||settimeofday( \
-			const struct timeval50 *tp, \
-			const struct timezone *tzp); }
+359	STD		{ int|linux_sys||gettimeofday(struct timeval50 *tp, \
+			struct timezone *tzp); }
+360	STD		{ int|linux_sys||settimeofday(struct timeval50 *tp, \
+			struct timezone *tzp); }
 361	NOARGS		{ int|compat_50_sys||getitimer(int which, \
 			struct itimerval50 *itv); }
 362	NOARGS		{ int|compat_50_sys||setitimer(int which, \

Index: src/sys/compat/linux/common/linux_time.c
diff -u src/sys/compat/linux/common/linux_time.c:1.36 src/sys/compat/linux/common/linux_time.c:1.37
--- src/sys/compat/linux/common/linux_time.c:1.36	Tue Oct  2 01:44:28 2012
+++ src/sys/compat/linux/common/linux_time.c	Mon Jan 13 10:33:03 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_time.c,v 1.36 2012/10/02 01:44:28 christos Exp $ */
+/*	$NetBSD: linux_time.c,v 1.37 2014/01/13 10:33:03 njoly Exp $ */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: linux_time.c,v 1.36 2012/10/02 01:44:28 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: linux_time.c,v 1.37 2014/01/13 10:33:03 njoly Exp $);
 
 #include sys/param.h
 #include sys/ucred.h
@@ -57,13 +57,6 @@ __KERNEL_RCSID(0, $NetBSD: linux_time.c
 #include compat/common/compat_util.h
 
 /*
- * This is not implemented for alpha yet
- */
-#if defined (__i386__) || defined (__m68k__) || \
-defined (__powerpc__) || defined (__mips__) || \
-defined(__arm__) || defined(__amd64__)
-
-/*
  * Linux keeps track of a system timezone in the kernel. It is readen
  * by gettimeofday and set by settimeofday. This emulates this behavior
  * See linux/kernel/time.c
@@ -122,8 +115,6 @@ linux_sys_settimeofday(struct lwp *l, co
 	return (0);
 }
 
-#endif /* __i386__ || __m68k__ || __powerpc__ || __mips__ || __arm__ */
-
 void
 native_to_linux_timespec(struct linux_timespec *ltp, struct timespec *ntp)
 {



CVS commit: src/sys/compat/linux/common

2014-01-23 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Thu Jan 23 19:18:08 UTC 2014

Modified Files:
src/sys/compat/linux/common: linux_sched.c

Log Message:
Fix inverted pid/lid arguments in do_sched_{get,set}param calls.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/compat/linux/common/linux_sched.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/compat/linux/common/linux_sched.c
diff -u src/sys/compat/linux/common/linux_sched.c:1.65 src/sys/compat/linux/common/linux_sched.c:1.66
--- src/sys/compat/linux/common/linux_sched.c:1.65	Thu Aug 18 02:26:38 2011
+++ src/sys/compat/linux/common/linux_sched.c	Thu Jan 23 19:18:08 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_sched.c,v 1.65 2011/08/18 02:26:38 christos Exp $	*/
+/*	$NetBSD: linux_sched.c,v 1.66 2014/01/23 19:18:08 njoly Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: linux_sched.c,v 1.65 2011/08/18 02:26:38 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: linux_sched.c,v 1.66 2014/01/23 19:18:08 njoly Exp $);
 
 #include sys/param.h
 #include sys/mount.h
@@ -418,7 +418,7 @@ linux_sys_sched_setparam(struct lwp *l, 
 		goto out;
 
 	/* We need the current policy in Linux terms. */
-	error = do_sched_getparam(0, SCARG(uap, pid), policy, NULL);
+	error = do_sched_getparam(SCARG(uap, pid), 0, policy, NULL);
 	if (error)
 		goto out;
 	error = sched_native2linux(policy, NULL, policy, NULL);
@@ -429,7 +429,7 @@ linux_sys_sched_setparam(struct lwp *l, 
 	if (error)
 		goto out;
 
-	error = do_sched_setparam(0, SCARG(uap, pid), policy, sp);
+	error = do_sched_setparam(SCARG(uap, pid), 0, policy, sp);
 	if (error)
 		goto out;
 
@@ -453,7 +453,7 @@ linux_sys_sched_getparam(struct lwp *l, 
 		goto out;
 	}
 
-	error = do_sched_getparam(0, SCARG(uap, pid), policy, sp);
+	error = do_sched_getparam(SCARG(uap, pid), 0, policy, sp);
 	if (error)
 		goto out;
 	DPRINTF((%s: native: policy %d, priority %d\n,
@@ -502,7 +502,7 @@ linux_sys_sched_setscheduler(struct lwp 
 	DPRINTF((%s: native: policy %d, priority %d\n,
 	__func__, policy, sp.sched_priority));
 
-	error = do_sched_setparam(0, SCARG(uap, pid), policy, sp);
+	error = do_sched_setparam(SCARG(uap, pid), 0, policy, sp);
 	if (error)
 		goto out;
 
@@ -520,7 +520,7 @@ linux_sys_sched_getscheduler(struct lwp 
 
 	*retval = -1;
 
-	error = do_sched_getparam(0, SCARG(uap, pid), policy, NULL);
+	error = do_sched_getparam(SCARG(uap, pid), 0, policy, NULL);
 	if (error)
 		goto out;
 



CVS commit: src/sys/compat/linux/common

2014-01-27 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Jan 27 13:23:33 UTC 2014

Modified Files:
src/sys/compat/linux/common: linux_socket.c

Log Message:
Add SO_SNDLOWAT, SO_RCVLOWAT and SO_ACCEPTCONN support for socket
options.


To generate a diff of this commit:
cvs rdiff -u -r1.115 -r1.116 src/sys/compat/linux/common/linux_socket.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/compat/linux/common/linux_socket.c
diff -u src/sys/compat/linux/common/linux_socket.c:1.115 src/sys/compat/linux/common/linux_socket.c:1.116
--- src/sys/compat/linux/common/linux_socket.c:1.115	Fri Jan 11 19:01:36 2013
+++ src/sys/compat/linux/common/linux_socket.c	Mon Jan 27 13:23:33 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_socket.c,v 1.115 2013/01/11 19:01:36 christos Exp $	*/
+/*	$NetBSD: linux_socket.c,v 1.116 2014/01/27 13:23:33 njoly Exp $	*/
 
 /*-
  * Copyright (c) 1995, 1998, 2008 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: linux_socket.c,v 1.115 2013/01/11 19:01:36 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: linux_socket.c,v 1.116 2014/01/27 13:23:33 njoly Exp $);
 
 #if defined(_KERNEL_OPT)
 #include opt_inet.h
@@ -873,12 +873,18 @@ linux_to_bsd_so_sockopt(int lopt)
 		return SO_SNDBUF;
 	case LINUX_SO_RCVBUF:
 		return SO_RCVBUF;
+	case LINUX_SO_SNDLOWAT:
+		return SO_SNDLOWAT;
+	case LINUX_SO_RCVLOWAT:
+		return SO_RCVLOWAT;
 	case LINUX_SO_KEEPALIVE:
 		return SO_KEEPALIVE;
 	case LINUX_SO_OOBINLINE:
 		return SO_OOBINLINE;
 	case LINUX_SO_LINGER:
 		return SO_LINGER;
+	case LINUX_SO_ACCEPTCONN:
+		return SO_ACCEPTCONN;
 	case LINUX_SO_PRIORITY:
 	case LINUX_SO_NO_CHECK:
 	default:



CVS commit: src/sys/compat/linux/common

2014-01-27 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Jan 27 19:19:15 UTC 2014

Modified Files:
src/sys/compat/linux/common: linux_socket.c linux_socket.h

Log Message:
Add basic IPV6 level socket options support (IPV6_V6ONLY).


To generate a diff of this commit:
cvs rdiff -u -r1.116 -r1.117 src/sys/compat/linux/common/linux_socket.c
cvs rdiff -u -r1.21 -r1.22 src/sys/compat/linux/common/linux_socket.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/compat/linux/common/linux_socket.c
diff -u src/sys/compat/linux/common/linux_socket.c:1.116 src/sys/compat/linux/common/linux_socket.c:1.117
--- src/sys/compat/linux/common/linux_socket.c:1.116	Mon Jan 27 13:23:33 2014
+++ src/sys/compat/linux/common/linux_socket.c	Mon Jan 27 19:19:15 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_socket.c,v 1.116 2014/01/27 13:23:33 njoly Exp $	*/
+/*	$NetBSD: linux_socket.c,v 1.117 2014/01/27 19:19:15 njoly Exp $	*/
 
 /*-
  * Copyright (c) 1995, 1998, 2008 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: linux_socket.c,v 1.116 2014/01/27 13:23:33 njoly Exp $);
+__KERNEL_RCSID(0, $NetBSD: linux_socket.c,v 1.117 2014/01/27 19:19:15 njoly Exp $);
 
 #if defined(_KERNEL_OPT)
 #include opt_inet.h
@@ -114,6 +114,7 @@ static int bsd_to_linux_domain(int);
 int linux_to_bsd_sopt_level(int);
 int linux_to_bsd_so_sockopt(int);
 int linux_to_bsd_ip_sockopt(int);
+int linux_to_bsd_ipv6_sockopt(int);
 int linux_to_bsd_tcp_sockopt(int);
 int linux_to_bsd_udp_sockopt(int);
 int linux_getifname(struct lwp *, register_t *, void *);
@@ -833,6 +834,10 @@ linux_to_bsd_sopt_level(int llevel)
 		return SOL_SOCKET;
 	case LINUX_SOL_IP:
 		return IPPROTO_IP;
+#ifdef INET6
+	case LINUX_SOL_IPV6:
+		return IPPROTO_IPV6;
+#endif
 	case LINUX_SOL_TCP:
 		return IPPROTO_TCP;
 	case LINUX_SOL_UDP:
@@ -922,6 +927,23 @@ linux_to_bsd_ip_sockopt(int lopt)
 }
 
 /*
+ * Convert Linux IPV6 level socket option number to NetBSD values.
+ */
+#ifdef INET6
+int
+linux_to_bsd_ipv6_sockopt(int lopt)
+{
+
+	switch (lopt) {
+	case LINUX_IPV6_V6ONLY:
+		return IPV6_V6ONLY;
+	default:
+		return -1;
+	}
+}
+#endif
+
+/*
  * Convert Linux TCP level socket option number to NetBSD values.
  */
 int
@@ -1000,6 +1022,11 @@ linux_sys_setsockopt(struct lwp *l, cons
 	case IPPROTO_IP:
 		name = linux_to_bsd_ip_sockopt(SCARG(uap, optname));
 		break;
+#ifdef INET6
+	case IPPROTO_IPV6:
+		name = linux_to_bsd_ipv6_sockopt(SCARG(uap, optname));
+		break;
+#endif
 	case IPPROTO_TCP:
 		name = linux_to_bsd_tcp_sockopt(SCARG(uap, optname));
 		break;
@@ -1045,6 +1072,11 @@ linux_sys_getsockopt(struct lwp *l, cons
 	case IPPROTO_IP:
 		name = linux_to_bsd_ip_sockopt(SCARG(uap, optname));
 		break;
+#ifdef INET6
+	case IPPROTO_IPV6:
+		name = linux_to_bsd_ipv6_sockopt(SCARG(uap, optname));
+		break;
+#endif
 	case IPPROTO_TCP:
 		name = linux_to_bsd_tcp_sockopt(SCARG(uap, optname));
 		break;

Index: src/sys/compat/linux/common/linux_socket.h
diff -u src/sys/compat/linux/common/linux_socket.h:1.21 src/sys/compat/linux/common/linux_socket.h:1.22
--- src/sys/compat/linux/common/linux_socket.h:1.21	Thu Jun 30 20:09:39 2011
+++ src/sys/compat/linux/common/linux_socket.h	Mon Jan 27 19:19:15 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_socket.h,v 1.21 2011/06/30 20:09:39 wiz Exp $	*/
+/*	$NetBSD: linux_socket.h,v 1.22 2014/01/27 19:19:15 njoly Exp $	*/
 
 /*-
  * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -78,8 +78,8 @@
 #define LINUX_SOL_IP		0
 #define LINUX_SOL_TCP		6
 #define LINUX_SOL_UDP		17
-/* Unused for now: */
 #define LINUX_SOL_IPV6		41
+/* Unused for now: */
 #define LINUX_SOL_ICMPV6	58
 #define LINUX_SOL_RAW		255
 #define LINUX_SOL_IPX		256
@@ -111,6 +111,12 @@
 #define	LINUX_IP_DROP_MEMBERSHIP 36
 
 /*
+ * Options for [gs]etsockopt(2), IPV6 level.
+ */
+
+#define LINUX_IPV6_V6ONLY		26
+
+/*
  * Options for [gs]etsockopt(2), TCP level.
  */
 



CVS commit: src/sys/rump/kern/lib/libsys_linux

2014-01-28 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Tue Jan 28 10:54:45 UTC 2014

Modified Files:
src/sys/rump/kern/lib/libsys_linux: Makefile

Log Message:
Build with IPv6 support.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/rump/kern/lib/libsys_linux/Makefile

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

Modified files:

Index: src/sys/rump/kern/lib/libsys_linux/Makefile
diff -u src/sys/rump/kern/lib/libsys_linux/Makefile:1.4 src/sys/rump/kern/lib/libsys_linux/Makefile:1.5
--- src/sys/rump/kern/lib/libsys_linux/Makefile:1.4	Sat Jan 25 10:40:40 2014
+++ src/sys/rump/kern/lib/libsys_linux/Makefile	Tue Jan 28 10:54:45 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.4 2014/01/25 10:40:40 njoly Exp $
+#	$NetBSD: Makefile,v 1.5 2014/01/28 10:54:45 njoly Exp $
 #
 
 .PATH:	${.CURDIR}/../../../../compat/linux/common
@@ -15,6 +15,7 @@ SRCS+=	rump_linux_sysent.c component.c l
 
 # XXX
 CPPFLAGS+= -I${.CURDIR} -I${RUMPTOP}/librump/rumpkern
+CPPFLAGS+= -DINET6
 
 .include bsd.lib.mk
 .include bsd.klinks.mk



CVS commit: src

2014-02-04 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Tue Feb  4 08:08:59 UTC 2014

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/usr.bin/xlint/lint1: Makefile t_integration.sh
src/usr.bin/xlint/lint1: cgram.y
Added Files:
src/tests/usr.bin/xlint/lint1: d_c99_decls_after_stmt3.c

Log Message:
Handle another declaration after statement case for lint in c99 mode.
Add the corresponding testcase.


To generate a diff of this commit:
cvs rdiff -u -r1.561 -r1.562 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/Makefile \
src/tests/usr.bin/xlint/lint1/t_integration.sh
cvs rdiff -u -r0 -r1.1 \
src/tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt3.c
cvs rdiff -u -r1.56 -r1.57 src/usr.bin/xlint/lint1/cgram.y

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.561 src/distrib/sets/lists/tests/mi:1.562
--- src/distrib/sets/lists/tests/mi:1.561	Sat Feb  1 20:49:11 2014
+++ src/distrib/sets/lists/tests/mi	Tue Feb  4 08:08:59 2014
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.561 2014/02/01 20:49:11 jmmv Exp $
+# $NetBSD: mi,v 1.562 2014/02/04 08:08:59 njoly Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -3101,6 +3101,7 @@
 ./usr/tests/usr.bin/xlint/lint1/d_c99_complex_num.c		tests-usr.bin-tests	atf
 ./usr/tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt.c	tests-usr.bin-tests	atf
 ./usr/tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt2.c	tests-usr.bin-tests	atf
+./usr/tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt3.c	tests-usr.bin-tests	atf
 ./usr/tests/usr.bin/xlint/lint1/d_c99_for_loops.c		tests-usr.bin-tests	atf
 ./usr/tests/usr.bin/xlint/lint1/d_c99_func.c			tests-usr.bin-tests	atf
 ./usr/tests/usr.bin/xlint/lint1/d_c99_recursive_init.c		tests-usr.bin-tests	atf

Index: src/tests/usr.bin/xlint/lint1/Makefile
diff -u src/tests/usr.bin/xlint/lint1/Makefile:1.1 src/tests/usr.bin/xlint/lint1/Makefile:1.2
--- src/tests/usr.bin/xlint/lint1/Makefile:1.1	Sat Mar 17 16:33:15 2012
+++ src/tests/usr.bin/xlint/lint1/Makefile	Tue Feb  4 08:08:59 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2012/03/17 16:33:15 jruoho Exp $
+# $NetBSD: Makefile,v 1.2 2014/02/04 08:08:59 njoly Exp $
 
 NOMAN=		# defined
 
@@ -13,6 +13,7 @@ FILES+=		d_alignof.c
 FILES+=		d_c99_complex_num.c
 FILES+=		d_c99_decls_after_stmt.c
 FILES+=		d_c99_decls_after_stmt2.c
+FILES+=		d_c99_decls_after_stmt3.c
 FILES+=		d_c99_for_loops.c
 FILES+=		d_c99_func.c
 FILES+=		d_c99_recursive_init.c
Index: src/tests/usr.bin/xlint/lint1/t_integration.sh
diff -u src/tests/usr.bin/xlint/lint1/t_integration.sh:1.1 src/tests/usr.bin/xlint/lint1/t_integration.sh:1.2
--- src/tests/usr.bin/xlint/lint1/t_integration.sh:1.1	Sat Mar 17 16:33:16 2012
+++ src/tests/usr.bin/xlint/lint1/t_integration.sh	Tue Feb  4 08:08:59 2014
@@ -1,4 +1,4 @@
-# $NetBSD: t_integration.sh,v 1.1 2012/03/17 16:33:16 jruoho Exp $
+# $NetBSD: t_integration.sh,v 1.2 2014/02/04 08:08:59 njoly Exp $
 #
 # Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -82,6 +82,7 @@ test_case check_valid gcc_variable_array
 initializers
 test_case check_valid c9x_array_init Checks C9X array initializers
 test_case check_valid c99_decls_after_stmt Checks C99 decls after statements
+test_case check_valid c99_decls_after_stmt3 Checks C99 decls after statements
 test_case check_valid nolimit_init Checks no limit initializers
 test_case check_valid zero_sized_arrays Checks zero sized arrays
 

Index: src/usr.bin/xlint/lint1/cgram.y
diff -u src/usr.bin/xlint/lint1/cgram.y:1.56 src/usr.bin/xlint/lint1/cgram.y:1.57
--- src/usr.bin/xlint/lint1/cgram.y:1.56	Thu Jan 16 00:43:43 2014
+++ src/usr.bin/xlint/lint1/cgram.y	Tue Feb  4 08:08:59 2014
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.56 2014/01/16 00:43:43 christos Exp $ */
+/* $NetBSD: cgram.y,v 1.57 2014/02/04 08:08:59 njoly Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -35,7 +35,7 @@
 
 #include sys/cdefs.h
 #if defined(__RCSID)  !defined(lint)
-__RCSID($NetBSD: cgram.y,v 1.56 2014/01/16 00:43:43 christos Exp $);
+__RCSID($NetBSD: cgram.y,v 1.57 2014/02/04 08:08:59 njoly Exp $);
 #endif
 
 #include stdlib.h
@@ -1340,7 +1340,7 @@ stmnt_d_list:
 
 comp_stmnt:
 	  comp_stmnt_lbrace comp_stmnt_rbrace
-	| comp_stmnt_lbrace stmnt_list comp_stmnt_rbrace
+	| comp_stmnt_lbrace stmnt_d_list comp_stmnt_rbrace
 	| comp_stmnt_lbrace declaration_list comp_stmnt_rbrace
 	| comp_stmnt_lbrace declaration_list stmnt_d_list comp_stmnt_rbrace
 	;

Added files:

Index: src/tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt3.c
diff -u /dev/null src/tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt3.c:1.1
--- /dev/null	Tue Feb  4 08:08:59 2014
+++ src/tests/usr.bin/xlint/lint1/d_c99_decls_after_stmt3.c	Tue Feb  4 08:08:59 2014
@@ -0,0 +1,5 @@

CVS commit: src/sys/dev/pci/ixgbe

2014-02-09 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun Feb  9 12:27:37 UTC 2014

Modified Files:
src/sys/dev/pci/ixgbe: ixgbe.c

Log Message:
Remove a few noisy debug printf.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/pci/ixgbe/ixgbe.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/dev/pci/ixgbe/ixgbe.c
diff -u src/sys/dev/pci/ixgbe/ixgbe.c:1.5 src/sys/dev/pci/ixgbe/ixgbe.c:1.6
--- src/sys/dev/pci/ixgbe/ixgbe.c:1.5	Mon Jun 18 06:21:11 2012
+++ src/sys/dev/pci/ixgbe/ixgbe.c	Sun Feb  9 12:27:37 2014
@@ -59,7 +59,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 /*$FreeBSD: src/sys/dev/ixgbe/ixgbe.c,v 1.51 2011/04/25 23:34:21 jfv Exp $*/
-/*$NetBSD: ixgbe.c,v 1.5 2012/06/18 06:21:11 dsl Exp $*/
+/*$NetBSD: ixgbe.c,v 1.6 2014/02/09 12:27:37 njoly Exp $*/
 
 #include opt_inet.h
 
@@ -2551,8 +2551,6 @@ ixgbe_free_pci_resources(struct adapter 
 	device_t	dev = adapter-dev;
 	int		rid, memrid;
 
-	printf(%s: enter %s\n, device_xname(dev), __func__);
-
 	if (adapter-hw.mac.type == ixgbe_mac_82598EB)
 		memrid = PCI_BAR(MSIX_82598_BAR);
 	else
@@ -4115,8 +4113,6 @@ ixgbe_initialize_receive_units(struct ad
 	for (i = 0; i  adapter-num_queues; i++, rxr++) {
 		u64 rdba = rxr-rxdma.dma_paddr;
 
-		printf(%s: queue %d rdba % PRIx64 \n, __func__, i, rdba);
-
 		/* Setup the Base and Length of the Rx Descriptor Ring */
 		IXGBE_WRITE_REG(hw, IXGBE_RDBAL(i),
 			   (rdba  0xULL));
@@ -4342,8 +4338,6 @@ ixgbe_rx_discard(struct rx_ring *rxr, in
 
 	rbuf = rxr-rx_buffers[i];
 
-	printf(%s: enter\n, __func__);
-
 if (rbuf-fmp != NULL) {/* Partial chain ? */
 		rbuf-fmp-m_flags |= M_PKTHDR;
 m_freem(rbuf-fmp);
@@ -4767,8 +4761,6 @@ ixgbe_setup_vlan_hw_support(struct adapt
 	struct ixgbe_hw *hw = adapter-hw;
 	u32		ctrl;
 
-	printf(%s: %s enter\n, device_xname(adapter-dev), __func__);
-
 	/*
 	** We get here thru init_locked, meaning
 	** a soft reset, this has already cleared
@@ -4776,7 +4768,6 @@ ixgbe_setup_vlan_hw_support(struct adapt
 	** have been no vlan's registered do nothing.
 	*/
 	if (!VLAN_ATTACHED(adapter-osdep.ec)) {
-		printf(%s: no VLANs attached\n, device_xname(adapter-dev));
 		return;
 	}
 
@@ -4794,8 +4785,6 @@ ixgbe_setup_vlan_hw_support(struct adapt
 	if (ec-ec_capenable  ETHERCAP_VLAN_HWFILTER) {
 		ctrl = ~IXGBE_VLNCTRL_CFIEN;
 		ctrl |= IXGBE_VLNCTRL_VFE;
-		printf(%s: enabled h/w VLAN filter\n,
-		device_xname(adapter-dev));
 	}
 	if (hw-mac.type == ixgbe_mac_82598EB)
 		ctrl |= IXGBE_VLNCTRL_VME;
@@ -4807,8 +4796,6 @@ ixgbe_setup_vlan_hw_support(struct adapt
 			ctrl = IXGBE_READ_REG(hw, IXGBE_RXDCTL(i));
 ctrl |= IXGBE_RXDCTL_VME;
 			IXGBE_WRITE_REG(hw, IXGBE_RXDCTL(i), ctrl);
-			printf(%s: enabled VLAN queue %d\n,
-			device_xname(adapter-dev), i);
 		}
 }
 



CVS commit: src/sys/lib/libkern

2014-02-09 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun Feb  9 12:53:30 UTC 2014

Modified Files:
src/sys/lib/libkern: Makefile

Log Message:
Revert previous revision. It bkeaks profiling kernel builds.
LIBISPRIVATE unconditionnally set MKPROFILE to no, preventing
profiling kernel library.


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/sys/lib/libkern/Makefile

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

Modified files:

Index: src/sys/lib/libkern/Makefile
diff -u src/sys/lib/libkern/Makefile:1.96 src/sys/lib/libkern/Makefile:1.97
--- src/sys/lib/libkern/Makefile:1.96	Wed Aug 21 05:50:14 2013
+++ src/sys/lib/libkern/Makefile	Sun Feb  9 12:53:30 2014
@@ -1,7 +1,8 @@
-#	$NetBSD: Makefile,v 1.96 2013/08/21 05:50:14 matt Exp $
+#	$NetBSD: Makefile,v 1.97 2014/02/09 12:53:30 njoly Exp $
 
 LIB=		kern
-LIBISPRIVATE?=	yes
+NOPIC=		# defined
+LLIBS=		# defined
 
 .include Makefile.libkern
 .ifndef ARCHSUBDIR
@@ -10,6 +11,10 @@ LIBISPRIVATE?=	yes
 	@false
 .endif
 
+# only needed during build
+libinstall::
+
+.undef DESTDIR
 .include bsd.lib.mk
 
 lib${LIB}.o:: ${OBJS}



CVS commit: src/sys/dev/pci

2014-02-14 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Feb 14 13:25:19 UTC 2014

Modified Files:
src/sys/dev/pci: pcidevs.h pcidevs_data.h

Log Message:
Regen for GeForce 210 High Definition Audio Controller.


To generate a diff of this commit:
cvs rdiff -u -r1.1175 -r1.1176 src/sys/dev/pci/pcidevs.h
cvs rdiff -u -r1.1174 -r1.1175 src/sys/dev/pci/pcidevs_data.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/dev/pci/pcidevs.h
diff -u src/sys/dev/pci/pcidevs.h:1.1175 src/sys/dev/pci/pcidevs.h:1.1176
--- src/sys/dev/pci/pcidevs.h:1.1175	Sun Jan 26 10:19:37 2014
+++ src/sys/dev/pci/pcidevs.h	Fri Feb 14 13:25:19 2014
@@ -1,10 +1,10 @@
-/*	$NetBSD: pcidevs.h,v 1.1175 2014/01/26 10:19:37 msaitoh Exp $	*/
+/*	$NetBSD: pcidevs.h,v 1.1176 2014/02/14 13:25:19 njoly Exp $	*/
 
 /*
  * THIS FILE AUTOMATICALLY GENERATED.  DO NOT EDIT.
  *
  * generated from:
- *	NetBSD: pcidevs,v 1.1182 2014/01/26 10:19:07 msaitoh Exp
+ *	NetBSD: pcidevs,v 1.1183 2014/02/14 13:24:46 njoly Exp
  */
 
 /*
@@ -4530,6 +4530,7 @@
 #define	PCI_PRODUCT_NVIDIA_MCP79_AHCI_10	0x0abd		/* nForce MCP79 AHCI Controller */
 #define	PCI_PRODUCT_NVIDIA_MCP79_AHCI_11	0x0abe		/* nForce MCP79 AHCI Controller */
 #define	PCI_PRODUCT_NVIDIA_MCP79_AHCI_12	0x0abf		/* nForce MCP79 AHCI Controller */
+#define	PCI_PRODUCT_NVIDIA_GEFORCE_210_HDA	0x0be3		/* GeForce 210 High Definition Audio Controller */
 #define	PCI_PRODUCT_NVIDIA_GF116	0x1244		/* GeForce GTX 550 Ti */
 
 /* Nvidia  SGS-Thomson Microelectronics */

Index: src/sys/dev/pci/pcidevs_data.h
diff -u src/sys/dev/pci/pcidevs_data.h:1.1174 src/sys/dev/pci/pcidevs_data.h:1.1175
--- src/sys/dev/pci/pcidevs_data.h:1.1174	Sun Jan 26 10:19:37 2014
+++ src/sys/dev/pci/pcidevs_data.h	Fri Feb 14 13:25:19 2014
@@ -1,10 +1,10 @@
-/*	$NetBSD: pcidevs_data.h,v 1.1174 2014/01/26 10:19:37 msaitoh Exp $	*/
+/*	$NetBSD: pcidevs_data.h,v 1.1175 2014/02/14 13:25:19 njoly Exp $	*/
 
 /*
  * THIS FILE AUTOMATICALLY GENERATED.  DO NOT EDIT.
  *
  * generated from:
- *	NetBSD: pcidevs,v 1.1182 2014/01/26 10:19:07 msaitoh Exp
+ *	NetBSD: pcidevs,v 1.1183 2014/02/14 13:24:46 njoly Exp
  */
 
 /*
@@ -7579,6 +7579,8 @@ static const uint16_t pci_products[] = {
 	23830, 24197, 8268, 6239, 0,
 	PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP79_AHCI_12, 
 	23830, 24197, 8268, 6239, 0,
+	PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_GEFORCE_210_HDA, 
+	23569, 24193, 19683, 19688, 6838, 6239, 0,
 	PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_GF116, 
 	23569, 24203, 24207, 23867, 0,
 	PCI_VENDOR_NVIDIA_SGS, PCI_PRODUCT_NVIDIA_SGS_RIVA128, 
@@ -10312,7 +10314,7 @@ static const char pci_words[] = { . 
 	Escalade\0 /* 2 refs @ 6221 */
 	ATA\0 /* 51 refs @ 6230 */
 	RAID\0 /* 43 refs @ 6234 */
-	Controller\0 /* 865 refs @ 6239 */
+	Controller\0 /* 866 refs @ 6239 */
 	7000/8000\0 /* 1 refs @ 6250 */
 	Series\0 /* 116 refs @ 6260 */
 	9000\0 /* 5 refs @ 6267 */
@@ -10400,7 +10402,7 @@ static const char pci_words[] = { . 
 	SATA/Raid\0 /* 1 refs @ 6814 */
 	M5451\0 /* 1 refs @ 6824 */
 	AC-Link\0 /* 3 refs @ 6830 */
-	Audio\0 /* 91 refs @ 6838 */
+	Audio\0 /* 92 refs @ 6838 */
 	M5453\0 /* 1 refs @ 6844 */
 	M5455\0 /* 1 refs @ 6850 */
 	M7101\0 /* 1 refs @ 6856 */
@@ -12193,8 +12195,8 @@ static const char pci_words[] = { . 
 	82801FR\0 /* 1 refs @ 19661 */
 	82801FB/FR\0 /* 13 refs @ 19669 */
 	#2\0 /* 7 refs @ 19680 */
-	High\0 /* 22 refs @ 19683 */
-	Definition\0 /* 22 refs @ 19688 */
+	High\0 /* 23 refs @ 19683 */
+	Definition\0 /* 23 refs @ 19688 */
 	63xxESB\0 /* 20 refs @ 19699 */
 	#3\0 /* 6 refs @ 19707 */
 	#4\0 /* 5 refs @ 19710 */
@@ -12717,7 +12719,7 @@ static const char pci_words[] = { . 
 	Model\0 /* 1 refs @ 23554 */
 	64\0 /* 1 refs @ 23560 */
 	MCP04\0 /* 7 refs @ 23563 */
-	GeForce\0 /* 40 refs @ 23569 */
+	GeForce\0 /* 41 refs @ 23569 */
 	6800\0 /* 4 refs @ 23577 */
 	GT\0 /* 4 refs @ 23582 */
 	nForce4\0 /* 14 refs @ 23585 */
@@ -12821,7 +12823,7 @@ static const char pci_words[] = { . 
 	8400\0 /* 1 refs @ 24175 */
 	MCP77\0 /* 21 refs @ 24180 */
 	MCP78S\0 /* 1 refs @ 24186 */
-	210\0 /* 1 refs @ 24193 */
+	210\0 /* 2 refs @ 24193 */
 	MCP79\0 /* 17 refs @ 24197 */
 	GTX\0 /* 1 refs @ 24203 */
 	550\0 /* 2 refs @ 24207 */



CVS commit: src/sys/dev/pci

2014-02-14 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Feb 14 13:24:46 UTC 2014

Modified Files:
src/sys/dev/pci: pcidevs

Log Message:
Add GeForce 210 High Definition Audio Controller.


To generate a diff of this commit:
cvs rdiff -u -r1.1182 -r1.1183 src/sys/dev/pci/pcidevs

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

Modified files:

Index: src/sys/dev/pci/pcidevs
diff -u src/sys/dev/pci/pcidevs:1.1182 src/sys/dev/pci/pcidevs:1.1183
--- src/sys/dev/pci/pcidevs:1.1182	Sun Jan 26 10:19:07 2014
+++ src/sys/dev/pci/pcidevs	Fri Feb 14 13:24:46 2014
@@ -1,4 +1,4 @@
-$NetBSD: pcidevs,v 1.1182 2014/01/26 10:19:07 msaitoh Exp $
+$NetBSD: pcidevs,v 1.1183 2014/02/14 13:24:46 njoly Exp $
 
 /*
  * Copyright (c) 1995, 1996 Christopher G. Demetriou
@@ -4523,6 +4523,7 @@ product NVIDIA	MCP79_AHCI_9	0x0abc	nForc
 product NVIDIA	MCP79_AHCI_10	0x0abd	nForce MCP79 AHCI Controller
 product NVIDIA	MCP79_AHCI_11	0x0abe	nForce MCP79 AHCI Controller
 product NVIDIA	MCP79_AHCI_12	0x0abf	nForce MCP79 AHCI Controller
+product NVIDIA	GEFORCE_210_HDA	0x0be3	GeForce 210 High Definition Audio Controller
 product NVIDIA	GF116		0x1244	GeForce GTX 550 Ti
 
 /* Nvidia  SGS-Thomson Microelectronics */



CVS commit: src/sys/kern

2014-02-15 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sat Feb 15 22:32:16 UTC 2014

Modified Files:
src/sys/kern: vfs_syscalls.c

Log Message:
Remove argument name from prototype.


To generate a diff of this commit:
cvs rdiff -u -r1.475 -r1.476 src/sys/kern/vfs_syscalls.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/kern/vfs_syscalls.c
diff -u src/sys/kern/vfs_syscalls.c:1.475 src/sys/kern/vfs_syscalls.c:1.476
--- src/sys/kern/vfs_syscalls.c:1.475	Sat Jan 25 17:24:45 2014
+++ src/sys/kern/vfs_syscalls.c	Sat Feb 15 22:32:16 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_syscalls.c,v 1.475 2014/01/25 17:24:45 christos Exp $	*/
+/*	$NetBSD: vfs_syscalls.c,v 1.476 2014/02/15 22:32:16 njoly Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: vfs_syscalls.c,v 1.475 2014/01/25 17:24:45 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: vfs_syscalls.c,v 1.476 2014/02/15 22:32:16 njoly Exp $);
 
 #ifdef _KERNEL_OPT
 #include opt_fileassoc.h
@@ -117,7 +117,7 @@ __KERNEL_RCSID(0, $NetBSD: vfs_syscalls
 #include nfs/nfs_var.h
 
 static int change_flags(struct vnode *, u_long, struct lwp *);
-static int change_mode(struct vnode *, int, struct lwp *l);
+static int change_mode(struct vnode *, int, struct lwp *);
 static int change_owner(struct vnode *, uid_t, gid_t, struct lwp *, int);
 static int do_sys_openat(lwp_t *, int, const char *, int, int, int *);
 static int do_sys_mkdirat(struct lwp *l, int, const char *, mode_t,



CVS commit: src/sys/compat/linux/arch/m68k

2014-02-15 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sat Feb 15 22:36:27 UTC 2014

Modified Files:
src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c

Log Message:
Regen.


To generate a diff of this commit:
cvs rdiff -u -r1.86 -r1.87 src/sys/compat/linux/arch/m68k/linux_syscall.h \
src/sys/compat/linux/arch/m68k/linux_syscalls.c \
src/sys/compat/linux/arch/m68k/linux_sysent.c
cvs rdiff -u -r1.85 -r1.86 src/sys/compat/linux/arch/m68k/linux_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/sys/compat/linux/arch/m68k/linux_syscall.h
diff -u src/sys/compat/linux/arch/m68k/linux_syscall.h:1.86 src/sys/compat/linux/arch/m68k/linux_syscall.h:1.87
--- src/sys/compat/linux/arch/m68k/linux_syscall.h:1.86	Tue Dec 24 13:41:55 2013
+++ src/sys/compat/linux/arch/m68k/linux_syscall.h	Sat Feb 15 22:36:26 2014
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.86 2013/12/24 13:41:55 njoly Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.87 2014/02/15 22:36:26 njoly Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.80 2013/12/24 13:41:25 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.81 2014/02/15 22:35:08 njoly Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALL_H_
@@ -615,6 +615,12 @@
 /* syscall: futex ret: int args: int * int int const struct linux_timespec * int * int */
 #define	LINUX_SYS_futex	235
 
+/* syscall: mincore ret: int args: void * size_t char * */
+#define	LINUX_SYS_mincore	237
+
+/* syscall: madvise ret: int args: void * size_t int */
+#define	LINUX_SYS_madvise	238
+
 /* syscall: fcntl64 ret: int args: int int void * */
 #define	LINUX_SYS_fcntl64	239
 
Index: src/sys/compat/linux/arch/m68k/linux_syscalls.c
diff -u src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.86 src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.87
--- src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.86	Tue Dec 24 13:41:55 2013
+++ src/sys/compat/linux/arch/m68k/linux_syscalls.c	Sat Feb 15 22:36:26 2014
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.86 2013/12/24 13:41:55 njoly Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.87 2014/02/15 22:36:26 njoly Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.80 2013/12/24 13:41:25 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.81 2014/02/15 22:35:08 njoly Exp
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: linux_syscalls.c,v 1.86 2013/12/24 13:41:55 njoly Exp $);
+__KERNEL_RCSID(0, $NetBSD: linux_syscalls.c,v 1.87 2014/02/15 22:36:26 njoly Exp $);
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -289,8 +289,8 @@ const char *const linux_syscallnames[] =
 	/* 234 */	fremovexattr,
 	/* 235 */	futex,
 	/* 236 */	#236 (unimplemented sendfile64),
-	/* 237 */	#237 (unimplemented mincore),
-	/* 238 */	#238 (unimplemented madvise),
+	/* 237 */	mincore,
+	/* 238 */	madvise,
 	/* 239 */	fcntl64,
 	/* 240 */	#240 (unimplemented readahead),
 	/* 241 */	#241 (unimplemented io_setup),
Index: src/sys/compat/linux/arch/m68k/linux_sysent.c
diff -u src/sys/compat/linux/arch/m68k/linux_sysent.c:1.86 src/sys/compat/linux/arch/m68k/linux_sysent.c:1.87
--- src/sys/compat/linux/arch/m68k/linux_sysent.c:1.86	Tue Dec 24 13:41:55 2013
+++ src/sys/compat/linux/arch/m68k/linux_sysent.c	Sat Feb 15 22:36:26 2014
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.86 2013/12/24 13:41:55 njoly Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.87 2014/02/15 22:36:26 njoly Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.80 2013/12/24 13:41:25 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.81 2014/02/15 22:35:08 njoly Exp
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.86 2013/12/24 13:41:55 njoly Exp $);
+__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.87 2014/02/15 22:36:26 njoly Exp $);
 
 #if defined(_KERNEL_OPT)
 #include opt_compat_netbsd.h
@@ -533,10 +533,10 @@ struct sysent linux_sysent[] = {
 	(sy_call_t *)linux_sys_futex },	/* 235 = futex */
 	{ 0, 0, 0,
 	linux_sys_nosys },			/* 236 = unimplemented sendfile64 */
-	{ 0, 0, 0,
-	linux_sys_nosys },			/* 237 = unimplemented mincore */
-	{ 0, 0, 0,
-	linux_sys_nosys },			/* 238 = unimplemented madvise */
+	{ ns(struct sys_mincore_args), SYCALL_ARG_PTR,
+	(sy_call_t *)sys_mincore },		/* 237 = mincore */
+	{ ns(struct sys_madvise_args), SYCALL_ARG_PTR,
+	(sy_call_t *)sys_madvise },		/* 238 = madvise */
 	{ ns(struct linux_sys_fcntl64_args), SYCALL_ARG_PTR,
 	(sy_call_t *)linux_sys_fcntl64 },	/* 239 = fcntl64 */
 	{ 0, 0, 0,

Index: src/sys/compat/linux/arch/m68k/linux_syscallargs.h
diff -u 

CVS commit: src/sys/compat/linux/arch/m68k

2014-02-15 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sat Feb 15 22:35:08 UTC 2014

Modified Files:
src/sys/compat/linux/arch/m68k: syscalls.master

Log Message:
Reduce diffs between archs, add mincore/madvise to m68k.


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/sys/compat/linux/arch/m68k/syscalls.master

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

Modified files:

Index: src/sys/compat/linux/arch/m68k/syscalls.master
diff -u src/sys/compat/linux/arch/m68k/syscalls.master:1.80 src/sys/compat/linux/arch/m68k/syscalls.master:1.81
--- src/sys/compat/linux/arch/m68k/syscalls.master:1.80	Tue Dec 24 13:41:25 2013
+++ src/sys/compat/linux/arch/m68k/syscalls.master	Sat Feb 15 22:35:08 2014
@@ -1,4 +1,4 @@
-	$NetBSD: syscalls.master,v 1.80 2013/12/24 13:41:25 njoly Exp $
+	$NetBSD: syscalls.master,v 1.81 2014/02/15 22:35:08 njoly Exp $
 
 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
 
@@ -424,8 +424,8 @@
 			const struct linux_timespec *timeout, int *uaddr2, \
 			int val3); }
 236	UNIMPL		sendfile64
-237	UNIMPL		mincore
-238	UNIMPL		madvise
+237	NOARGS		{ int|sys||mincore(void *addr, size_t len, char *vec); }
+238	NOARGS		{ int|sys||madvise(void *addr, size_t len, int behav); }
 239	STD		{ int|linux_sys||fcntl64(int fd, int cmd, void *arg); }
 240	UNIMPL		readahead
 241	UNIMPL		io_setup



CVS commit: src/sys/compat

2014-02-23 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun Feb 23 11:09:42 UTC 2014

Modified Files:
src/sys/compat/linux/common: linux_exec_elf32.c
src/sys/compat/linux32/common: linux32_exec_elf32.c

Log Message:
Fix wrong KASSERTs. Do not compare size vs. entries count.


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/sys/compat/linux/common/linux_exec_elf32.c
cvs rdiff -u -r1.15 -r1.16 src/sys/compat/linux32/common/linux32_exec_elf32.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/compat/linux/common/linux_exec_elf32.c
diff -u src/sys/compat/linux/common/linux_exec_elf32.c:1.89 src/sys/compat/linux/common/linux_exec_elf32.c:1.90
--- src/sys/compat/linux/common/linux_exec_elf32.c:1.89	Fri Feb 21 07:53:53 2014
+++ src/sys/compat/linux/common/linux_exec_elf32.c	Sun Feb 23 11:09:42 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_exec_elf32.c,v 1.89 2014/02/21 07:53:53 maxv Exp $	*/
+/*	$NetBSD: linux_exec_elf32.c,v 1.90 2014/02/23 11:09:42 njoly Exp $	*/
 
 /*-
  * Copyright (c) 1995, 1998, 2000, 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: linux_exec_elf32.c,v 1.89 2014/02/21 07:53:53 maxv Exp $);
+__KERNEL_RCSID(0, $NetBSD: linux_exec_elf32.c,v 1.90 2014/02/23 11:09:42 njoly Exp $);
 
 #ifndef ELFSIZE
 /* XXX should die */
@@ -495,7 +495,7 @@ ELFNAME2(linux,copyargs)(struct lwp *l, 
 	*stackp += len;
 
 	len = (a - ai) * sizeof(AuxInfo);
-	KASSERT(len = LINUX_ELF_AUX_ENTRIES);
+	KASSERT(len = LINUX_ELF_AUX_ENTRIES * sizeof(AuxInfo));
 	if ((error = copyout(ai, *stackp, len)) != 0)
 		return error;
 	*stackp += len;

Index: src/sys/compat/linux32/common/linux32_exec_elf32.c
diff -u src/sys/compat/linux32/common/linux32_exec_elf32.c:1.15 src/sys/compat/linux32/common/linux32_exec_elf32.c:1.16
--- src/sys/compat/linux32/common/linux32_exec_elf32.c:1.15	Fri Feb 21 07:53:53 2014
+++ src/sys/compat/linux32/common/linux32_exec_elf32.c	Sun Feb 23 11:09:42 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux32_exec_elf32.c,v 1.15 2014/02/21 07:53:53 maxv Exp $ */
+/*	$NetBSD: linux32_exec_elf32.c,v 1.16 2014/02/23 11:09:42 njoly Exp $ */
 
 /*- 
  * Copyright (c) 1995, 1998, 2000, 2001,2006 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: linux32_exec_elf32.c,v 1.15 2014/02/21 07:53:53 maxv Exp $);
+__KERNEL_RCSID(0, $NetBSD: linux32_exec_elf32.c,v 1.16 2014/02/23 11:09:42 njoly Exp $);
 
 #define	ELFSIZE		32
 
@@ -241,7 +241,7 @@ linux32_elf32_copyargs(struct lwp *l, st
 #endif
 
 	len = (a - ai) * sizeof(AuxInfo);
-	KASSERT(len = LINUX32_ELF_AUX_ENTRIES);
+	KASSERT(len = LINUX32_ELF_AUX_ENTRIES * sizeof(AuxInfo));
 	if ((error = copyout(ai, *stackp, len)) != 0)
 		return error;
 	*stackp += len;



CVS commit: src/sys/compat/linux/arch/amd64

2014-02-23 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun Feb 23 12:01:51 UTC 2014

Modified Files:
src/sys/compat/linux/arch/amd64: linux_exec_machdep.c

Log Message:
Use cprng_strong32 for LINUX_AT_RANDOM on amd64 too.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 \
src/sys/compat/linux/arch/amd64/linux_exec_machdep.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/compat/linux/arch/amd64/linux_exec_machdep.c
diff -u src/sys/compat/linux/arch/amd64/linux_exec_machdep.c:1.21 src/sys/compat/linux/arch/amd64/linux_exec_machdep.c:1.22
--- src/sys/compat/linux/arch/amd64/linux_exec_machdep.c:1.21	Fri Feb 21 07:53:53 2014
+++ src/sys/compat/linux/arch/amd64/linux_exec_machdep.c	Sun Feb 23 12:01:51 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_exec_machdep.c,v 1.21 2014/02/21 07:53:53 maxv Exp $ */
+/*	$NetBSD: linux_exec_machdep.c,v 1.22 2014/02/23 12:01:51 njoly Exp $ */
 
 /*-
  * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved
@@ -32,7 +32,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: linux_exec_machdep.c,v 1.21 2014/02/21 07:53:53 maxv Exp $);
+__KERNEL_RCSID(0, $NetBSD: linux_exec_machdep.c,v 1.22 2014/02/23 12:01:51 njoly Exp $);
 
 #define ELFSIZE 64
 
@@ -49,6 +49,7 @@ __KERNEL_RCSID(0, $NetBSD: linux_exec_m
 #include sys/exec.h
 #include sys/stat.h
 #include sys/kauth.h
+#include sys/cprng.h
 
 #include sys/cpu.h
 #include machine/vmparam.h
@@ -225,10 +226,10 @@ ELFNAME2(linux,copyargs)(struct lwp *l, 
 
 	esd.ai[i].a_type = LINUX_AT_RANDOM;
 	esd.ai[i++].a_v = (Elf_Addr)esdp-randbytes[0];
-	esd.randbytes[0] = random();
-	esd.randbytes[1] = random();
-	esd.randbytes[2] = random();
-	esd.randbytes[3] = random();
+	esd.randbytes[0] = cprng_strong32();
+	esd.randbytes[1] = cprng_strong32();
+	esd.randbytes[2] = cprng_strong32();
+	esd.randbytes[3] = cprng_strong32();
 
 	esd.ai[i].a_type = AT_NULL;
 	esd.ai[i++].a_v = 0;



CVS commit: src/sys/compat/linux32/common

2014-02-23 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun Feb 23 16:07:40 UTC 2014

Modified Files:
src/sys/compat/linux32/common: linux32_exec_elf32.c

Log Message:
Use Aux32Info not AuxInfo. Noticed by Maxime Villard.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/compat/linux32/common/linux32_exec_elf32.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/compat/linux32/common/linux32_exec_elf32.c
diff -u src/sys/compat/linux32/common/linux32_exec_elf32.c:1.16 src/sys/compat/linux32/common/linux32_exec_elf32.c:1.17
--- src/sys/compat/linux32/common/linux32_exec_elf32.c:1.16	Sun Feb 23 11:09:42 2014
+++ src/sys/compat/linux32/common/linux32_exec_elf32.c	Sun Feb 23 16:07:40 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux32_exec_elf32.c,v 1.16 2014/02/23 11:09:42 njoly Exp $ */
+/*	$NetBSD: linux32_exec_elf32.c,v 1.17 2014/02/23 16:07:40 njoly Exp $ */
 
 /*- 
  * Copyright (c) 1995, 1998, 2000, 2001,2006 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: linux32_exec_elf32.c,v 1.16 2014/02/23 11:09:42 njoly Exp $);
+__KERNEL_RCSID(0, $NetBSD: linux32_exec_elf32.c,v 1.17 2014/02/23 16:07:40 njoly Exp $);
 
 #define	ELFSIZE		32
 
@@ -240,8 +240,8 @@ linux32_elf32_copyargs(struct lwp *l, st
 	*stackp += sizeof(esd);
 #endif
 
-	len = (a - ai) * sizeof(AuxInfo);
-	KASSERT(len = LINUX32_ELF_AUX_ENTRIES * sizeof(AuxInfo));
+	len = (a - ai) * sizeof(Aux32Info);
+	KASSERT(len = LINUX32_ELF_AUX_ENTRIES * sizeof(Aux32Info));
 	if ((error = copyout(ai, *stackp, len)) != 0)
 		return error;
 	*stackp += len;



CVS commit: src/distrib/sets/lists/comp

2014-03-12 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Wed Mar 12 12:26:40 UTC 2014

Modified Files:
src/distrib/sets/lists/comp: mi

Log Message:
Add a few dwarf/elf cat pages. Sort list.


To generate a diff of this commit:
cvs rdiff -u -r1.1879 -r1.1880 src/distrib/sets/lists/comp/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/sets/lists/comp/mi
diff -u src/distrib/sets/lists/comp/mi:1.1879 src/distrib/sets/lists/comp/mi:1.1880
--- src/distrib/sets/lists/comp/mi:1.1879	Mon Mar 10 00:23:22 2014
+++ src/distrib/sets/lists/comp/mi	Wed Mar 12 12:26:40 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.1879 2014/03/10 00:23:22 htodd Exp $
+#	$NetBSD: mi,v 1.1880 2014/03/12 12:26:40 njoly Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -3049,8 +3049,8 @@
 ./usr/include/rump/rump_syscalls.h		comp-c-include	rump
 ./usr/include/rump/rump_syscalls_compat.h	comp-c-include	rump
 ./usr/include/rump/rumpclient.h			comp-c-include	rump
-./usr/include/rump/rumperr.h			comp-c-include	rump
 ./usr/include/rump/rumpdefs.h			comp-c-include	rump
+./usr/include/rump/rumperr.h			comp-c-include	rump
 ./usr/include/rump/rumpkern_if_pub.h		comp-c-include	rump
 ./usr/include/rump/rumpnet_if_pub.h		comp-c-include	rump
 ./usr/include/rump/rumpuser.h			comp-c-include	rump
@@ -6016,6 +6016,227 @@
 ./usr/share/man/cat3/dsa.0			comp-obsolete		obsolete
 ./usr/share/man/cat3/dup_field.0		comp-c-catman		.cat
 ./usr/share/man/cat3/dupwin.0			comp-c-catman		.cat
+./usr/share/man/cat3/dwarf.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_AT_comp_dir.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_AT_const_value_signedint.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_AT_const_value_string.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_AT_const_value_unsignedint.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_AT_dataref.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_AT_flag.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_AT_location_expr.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_AT_name.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_AT_producer.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_AT_ref_address.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_AT_reference.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_AT_signed_const.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_AT_string.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_AT_targ_address.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_AT_targ_address_b.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_AT_unsigned_const.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_arange.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_arange_b.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_die_to_debug.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_directory_decl.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_expr_addr.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_expr_addr_b.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_expr_gen.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_fde_inst.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_file_decl.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_frame_cie.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_frame_fde.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_frame_fde_b.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_funcname.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_line_entry.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_pubname.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_typename.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_varname.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_add_weakname.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_arrayorder.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_attr.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_attrlist.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_attrval_flag.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_attrval_signed.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_attrval_string.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_attrval_unsigned.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_bitoffset.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_bitsize.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_bytesize.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_child.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_dealloc.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_def_macro.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_die_CU_offset.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_die_CU_offset_range.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_die_abbrev_code.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_die_link.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_diename.0	comp-c-catman	.cat
+./usr/share/man/cat3/dwarf_dieoffset.0	

CVS commit: src/sys/rump/librump/rumpvfs

2014-03-16 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun Mar 16 10:16:15 UTC 2014

Modified Files:
src/sys/rump/librump/rumpvfs: rumpfs.c

Log Message:
When trying to extend a file, don't wait until the underlying memory
allocation succeed. Return ENOSPC upon failure.


To generate a diff of this commit:
cvs rdiff -u -r1.125 -r1.126 src/sys/rump/librump/rumpvfs/rumpfs.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/rump/librump/rumpvfs/rumpfs.c
diff -u src/sys/rump/librump/rumpvfs/rumpfs.c:1.125 src/sys/rump/librump/rumpvfs/rumpfs.c:1.126
--- src/sys/rump/librump/rumpvfs/rumpfs.c:1.125	Mon Feb 24 11:43:33 2014
+++ src/sys/rump/librump/rumpvfs/rumpfs.c	Sun Mar 16 10:16:15 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: rumpfs.c,v 1.125 2014/02/24 11:43:33 pooka Exp $	*/
+/*	$NetBSD: rumpfs.c,v 1.126 2014/03/16 10:16:15 njoly Exp $	*/
 
 /*
  * Copyright (c) 2009, 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: rumpfs.c,v 1.125 2014/02/24 11:43:33 pooka Exp $);
+__KERNEL_RCSID(0, $NetBSD: rumpfs.c,v 1.126 2014/03/16 10:16:15 njoly Exp $);
 
 #include sys/param.h
 #include sys/atomic.h
@@ -971,7 +971,9 @@ rump_vop_setattr(void *v)
 		size_t copylen, newlen;
 
 		newlen = vap-va_size;
-		newdata = rump_hypermalloc(newlen, 0, true, rumpfs);
+		newdata = rump_hypermalloc(newlen, 0, false, rumpfs);
+		if (newdata == NULL)
+			return ENOSPC;
 
 		copylen = MIN(rn-rn_dlen, newlen);
 		memset(newdata, 0, newlen);
@@ -1465,7 +1467,9 @@ rump_vop_write(void *v)
 		oldlen = rn-rn_dlen;
 		olddata = rn-rn_data;
 
-		rn-rn_data = rump_hypermalloc(newlen, 0, true, rumpfs);
+		rn-rn_data = rump_hypermalloc(newlen, 0, false, rumpfs);
+		if (rn-rn_data == NULL)
+			return ENOSPC;
 		rn-rn_dlen = newlen;
 		memset(rn-rn_data, 0, newlen);
 		memcpy(rn-rn_data, olddata, oldlen);



CVS commit: src/lib/librumpuser

2014-03-16 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun Mar 16 10:23:59 UTC 2014

Modified Files:
src/lib/librumpuser: rumpuser.c

Log Message:
Do not use uninitialized pointer if posix_memalign() fails.


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/lib/librumpuser/rumpuser.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/librumpuser/rumpuser.c
diff -u src/lib/librumpuser/rumpuser.c:1.57 src/lib/librumpuser/rumpuser.c:1.58
--- src/lib/librumpuser/rumpuser.c:1.57	Thu Feb 20 00:44:20 2014
+++ src/lib/librumpuser/rumpuser.c	Sun Mar 16 10:23:59 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: rumpuser.c,v 1.57 2014/02/20 00:44:20 pooka Exp $	*/
+/*	$NetBSD: rumpuser.c,v 1.58 2014/03/16 10:23:59 njoly Exp $	*/
 
 /*
  * Copyright (c) 2007-2010 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
 #include rumpuser_port.h
 
 #if !defined(lint)
-__RCSID($NetBSD: rumpuser.c,v 1.57 2014/02/20 00:44:20 pooka Exp $);
+__RCSID($NetBSD: rumpuser.c,v 1.58 2014/03/16 10:23:59 njoly Exp $);
 #endif /* !lint */
 
 #include sys/ioctl.h
@@ -217,7 +217,7 @@ rumpuser_getfileinfo(const char *path, u
 int
 rumpuser_malloc(size_t howmuch, int alignment, void **memp)
 {
-	void *mem;
+	void *mem = NULL;
 	int rv;
 
 	if (alignment == 0)



CVS commit: src/tests/fs/common

2014-03-16 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun Mar 16 10:28:03 UTC 2014

Modified Files:
src/tests/fs/common: fstest_rumpfs.c

Log Message:
Retrict rumpfs to the provided size, like other filesystems.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/fs/common/fstest_rumpfs.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/fs/common/fstest_rumpfs.c
diff -u src/tests/fs/common/fstest_rumpfs.c:1.1 src/tests/fs/common/fstest_rumpfs.c:1.2
--- src/tests/fs/common/fstest_rumpfs.c:1.1	Thu Nov 11 17:39:29 2010
+++ src/tests/fs/common/fstest_rumpfs.c	Sun Mar 16 10:28:03 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: fstest_rumpfs.c,v 1.1 2010/11/11 17:39:29 pooka Exp $	*/
+/*	$NetBSD: fstest_rumpfs.c,v 1.2 2014/03/16 10:28:03 njoly Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -47,6 +47,13 @@ int
 rumpfs_fstest_newfs(const atf_tc_t *tc, void **buf, const char *image,
 off_t size, void *fspriv)
 {
+	char tmp[64];
+	int res;
+
+	snprintf(tmp, sizeof(tmp), %PRId64, size);
+	res = setenv(RUMP_MEMLIMIT, tmp, 0);
+	if (res == -1)
+		return res;
 
 	return rump_init();
 }



CVS commit: src/distrib/sets/lists/xcomp

2014-03-22 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sat Mar 22 13:40:55 UTC 2014

Modified Files:
src/distrib/sets/lists/xcomp: mi

Log Message:
Add a few xorg lint libraries.


To generate a diff of this commit:
cvs rdiff -u -r1.149 -r1.150 src/distrib/sets/lists/xcomp/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/sets/lists/xcomp/mi
diff -u src/distrib/sets/lists/xcomp/mi:1.149 src/distrib/sets/lists/xcomp/mi:1.150
--- src/distrib/sets/lists/xcomp/mi:1.149	Thu Mar 20 09:05:28 2014
+++ src/distrib/sets/lists/xcomp/mi	Sat Mar 22 13:40:55 2014
@@ -1,4 +1,4 @@
-#	 $NetBSD: mi,v 1.149 2014/03/20 09:05:28 mrg Exp $
+#	 $NetBSD: mi,v 1.150 2014/03/22 13:40:55 njoly Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -9320,12 +9320,15 @@
 ./usr/libdata/lint/llib-loldX.ln			-unknown-	lint,x11
 ./usr/libdata/lint/llib-lpciaccess.ln			-unknown-	lint,xorg
 ./usr/libdata/lint/llib-lpsres.ln			-unknown-	lint,x11
+./usr/libdata/lint/llib-lpthread-stubs.ln		-unknown-	lint,xorg
 ./usr/libdata/lint/llib-lre.ln-unknown-	lint,xorg
 ./usr/libdata/lint/llib-lxcb-composite.ln		-unknown-	lint,xorg
 ./usr/libdata/lint/llib-lxcb-damage.ln			-unknown-	lint,xorg
 ./usr/libdata/lint/llib-lxcb-dpms.ln			-unknown-	lint,xorg
 ./usr/libdata/lint/llib-lxcb-dri2.ln			-unknown-	lint,xorg
+./usr/libdata/lint/llib-lxcb-dri3.ln			-unknown-	lint,xorg
 ./usr/libdata/lint/llib-lxcb-glx.ln			-unknown-	lint,xorg
+./usr/libdata/lint/llib-lxcb-present.ln			-unknown-	lint,xorg
 ./usr/libdata/lint/llib-lxcb-randr.ln			-unknown-	lint,xorg
 ./usr/libdata/lint/llib-lxcb-record.ln			-unknown-	lint,xorg
 ./usr/libdata/lint/llib-lxcb-render.ln			-unknown-	lint,xorg
@@ -9338,6 +9341,7 @@
 ./usr/libdata/lint/llib-lxcb-xf86dri.ln			-unknown-	lint,xorg
 ./usr/libdata/lint/llib-lxcb-xfixes.ln			-unknown-	lint,xorg
 ./usr/libdata/lint/llib-lxcb-xinerama.ln		-unknown-	lint,xorg
+./usr/libdata/lint/llib-lxcb-xkb.ln			-unknown-	lint,xorg
 ./usr/libdata/lint/llib-lxcb-xtest.ln			-unknown-	lint,xorg
 ./usr/libdata/lint/llib-lxcb-xv.ln			-unknown-	lint,xorg
 ./usr/libdata/lint/llib-lxcb-xvmc.ln			-unknown-	lint,xorg



CVS commit: src/sys/rump/net/lib/libnpf

2014-04-04 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Apr  4 13:57:33 UTC 2014

Modified Files:
src/sys/rump/net/lib/libnpf: Makefile

Log Message:
No lint for rumpnet npf library.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/rump/net/lib/libnpf/Makefile

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

Modified files:

Index: src/sys/rump/net/lib/libnpf/Makefile
diff -u src/sys/rump/net/lib/libnpf/Makefile:1.12 src/sys/rump/net/lib/libnpf/Makefile:1.13
--- src/sys/rump/net/lib/libnpf/Makefile:1.12	Thu Mar 13 02:07:24 2014
+++ src/sys/rump/net/lib/libnpf/Makefile	Fri Apr  4 13:57:33 2014
@@ -1,8 +1,10 @@
-#	$NetBSD: Makefile,v 1.12 2014/03/13 02:07:24 pooka Exp $
+#	$NetBSD: Makefile,v 1.13 2014/04/04 13:57:33 njoly Exp $
 #
 # Public Domain.
 #
 
+NOLINT=		# defined
+
 .PATH:	${.CURDIR}/../../../../net/npf
 
 LIB=	rumpnet_npf



CVS commit: src/sys

2014-04-04 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Apr  4 18:17:36 UTC 2014

Modified Files:
src/sys/compat/common: Makefile kern_time_50.c
src/sys/modules/compat: Makefile
Added Files:
src/sys/compat/common: kern_50.c

Log Message:
Move a few compat 50 syscalls, not applicable to rump kernels, out of
kern_time_50.c to a new source module.


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/compat/common/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/compat/common/kern_50.c
cvs rdiff -u -r1.26 -r1.27 src/sys/compat/common/kern_time_50.c
cvs rdiff -u -r1.9 -r1.10 src/sys/modules/compat/Makefile

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

Modified files:

Index: src/sys/compat/common/Makefile
diff -u src/sys/compat/common/Makefile:1.51 src/sys/compat/common/Makefile:1.52
--- src/sys/compat/common/Makefile:1.51	Fri Mar 29 01:02:49 2013
+++ src/sys/compat/common/Makefile	Fri Apr  4 18:17:36 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.51 2013/03/29 01:02:49 christos Exp $
+#	$NetBSD: Makefile,v 1.52 2014/04/04 18:17:36 njoly Exp $
 
 LIB=		compat
 NOPIC=		# defined
@@ -40,7 +40,7 @@ SRCS+=	kern_time_30.c vfs_syscalls_30.c 
 SRCS+=	vfs_syscalls_40.c uipc_syscalls_40.c
 
 # Compatibility code for NetBSD 5.0
-SRCS+=	kern_time_50.c kern_select_50.c rndpseudo_50.c rtsock_50.c \
+SRCS+=	kern_50.c kern_time_50.c kern_select_50.c rndpseudo_50.c rtsock_50.c \
 	sysv_ipc_50.c sysv_msg_50.c sysv_sem_50.c sysv_shm_50.c \
 	vfs_syscalls_50.c  uipc_syscalls_50.c
 

Index: src/sys/compat/common/kern_time_50.c
diff -u src/sys/compat/common/kern_time_50.c:1.26 src/sys/compat/common/kern_time_50.c:1.27
--- src/sys/compat/common/kern_time_50.c:1.26	Fri Mar 29 01:02:49 2013
+++ src/sys/compat/common/kern_time_50.c	Fri Apr  4 18:17:36 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_time_50.c,v 1.26 2013/03/29 01:02:49 christos Exp $	*/
+/*	$NetBSD: kern_time_50.c,v 1.27 2014/04/04 18:17:36 njoly Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: kern_time_50.c,v 1.26 2013/03/29 01:02:49 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: kern_time_50.c,v 1.27 2014/04/04 18:17:36 njoly Exp $);
 
 #ifdef _KERNEL_OPT
 #include opt_aio.h
@@ -350,39 +350,6 @@ out:
 }
 
 int
-compat_50_sys__lwp_park(struct lwp *l,
-const struct compat_50_sys__lwp_park_args *uap, register_t *retval)
-{
-	/* {
-		syscallarg(const struct timespec50 *)	ts;
-		syscallarg(lwpid_t)			unpark;
-		syscallarg(const void *)		hint;
-		syscallarg(const void *)		unparkhint;
-	} */
-	struct timespec ts, *tsp;
-	struct timespec50 ts50;
-	int error;
-
-	if (SCARG(uap, ts) == NULL)
-		tsp = NULL;
-	else {
-		error = copyin(SCARG(uap, ts), ts50, sizeof(ts50));
-		if (error != 0)
-			return error;
-		timespec50_to_timespec(ts50, ts);
-		tsp = ts;
-	}
-
-	if (SCARG(uap, unpark) != 0) {
-		error = lwp_unpark(SCARG(uap, unpark), SCARG(uap, unparkhint));
-		if (error != 0)
-			return error;
-	}
-
-	return lwp_park(CLOCK_REALTIME, TIMER_ABSTIME, tsp, SCARG(uap, hint));
-}
-
-int
 compat_50_sys_mq_timedsend(struct lwp *l,
 const struct compat_50_sys_mq_timedsend_args *uap, register_t *retval)
 {
@@ -456,44 +423,6 @@ compat_50_sys_mq_timedreceive(struct lwp
 #endif
 }
 
-static int
-tscopyin(const void *u, void *s, size_t len)
-{
-	struct timespec50 ts50;
-	int error;
-
-	KASSERT(len == sizeof(struct timespec));
-	error = copyin(u, ts50, sizeof(ts50));
-	if (error)
-		return error;
-	timespec50_to_timespec(ts50, s);
-	return 0;
-}
-
-static int
-tscopyout(const void *s, void *u, size_t len)
-{
-	struct timespec50 ts50;
-
-	KASSERT(len == sizeof(struct timespec));
-	timespec_to_timespec50(s, ts50);
-	return copyout(ts50, u, sizeof(ts50));
-}
-
-int
-compat_50_sys___sigtimedwait(struct lwp *l,
-const struct compat_50_sys___sigtimedwait_args *uap, register_t *retval)
-{
-	int res;
-
-	res = sigtimedwait1(l,
-	(const struct sys_sigtimedwait50_args *)uap, retval, copyin,
-	copyout, tscopyin, tscopyout);
-	if (!res)
-		*retval = 0; /* XXX NetBSD=5 was not POSIX compliant */
-	return res;
-}
-
 void
 rusage_to_rusage50(const struct rusage *ru, struct rusage50 *ru50)
 {
@@ -679,37 +608,6 @@ compat50_clockctlioctl(dev_t dev, u_long
 
 	return (error);
 }
-int
-compat_50_sys_wait4(struct lwp *l, const struct compat_50_sys_wait4_args *uap,
-register_t *retval)
-{
-	/* {
-		syscallarg(int)			pid;
-		syscallarg(int *)		status;
-		syscallarg(int)			options;
-		syscallarg(struct rusage50 *)	rusage;
-	} */
-	int status, error, pid = SCARG(uap, pid);
-	struct rusage50 ru50;
-	struct rusage ru;
-
-	error = do_sys_wait(pid, status, SCARG(uap, options),
-	SCARG(uap, rusage) != NULL ? ru : NULL);
-
-	retval[0] = pid;
-	if (pid == 0)
-		return error;
-
-	if (SCARG(uap, rusage)) {
-		rusage_to_rusage50(ru, ru50);
-		error = copyout(ru50, 

CVS commit: src/sys/rump/librump/rumpkern

2014-04-04 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Apr  4 18:20:28 UTC 2014

Modified Files:
src/sys/rump/librump/rumpkern: Makefile.rumpkern

Log Message:
Add compat 50 time syscalls, needed by rump sys_linux.


To generate a diff of this commit:
cvs rdiff -u -r1.142 -r1.143 src/sys/rump/librump/rumpkern/Makefile.rumpkern

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

Modified files:

Index: src/sys/rump/librump/rumpkern/Makefile.rumpkern
diff -u src/sys/rump/librump/rumpkern/Makefile.rumpkern:1.142 src/sys/rump/librump/rumpkern/Makefile.rumpkern:1.143
--- src/sys/rump/librump/rumpkern/Makefile.rumpkern:1.142	Wed Apr  2 19:37:17 2014
+++ src/sys/rump/librump/rumpkern/Makefile.rumpkern	Fri Apr  4 18:20:28 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.rumpkern,v 1.142 2014/04/02 19:37:17 pooka Exp $
+#	$NetBSD: Makefile.rumpkern,v 1.143 2014/04/04 18:20:28 njoly Exp $
 #
 
 .include ${RUMPTOP}/Makefile.rump
@@ -153,6 +153,7 @@ SRCS+=	rijndael.c	
 
 # compat
 SRCS+=	kern_select_50.c
+SRCS+=	kern_time_50.c
 
 # Set RUMP_UNREAL_ALLOCATORS to yes to use memory allocation hypercalls
 # directly instead of the kmem/pool allocators backed by hypercalls.



CVS commit: src/sys/rump/kern/lib/libsys_linux

2014-04-04 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Apr  4 18:24:12 UTC 2014

Modified Files:
src/sys/rump/kern/lib/libsys_linux: sys_linux_component.c
syscalls.master

Log Message:
Add support for timing syscalls.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/sys/rump/kern/lib/libsys_linux/sys_linux_component.c
cvs rdiff -u -r1.13 -r1.14 src/sys/rump/kern/lib/libsys_linux/syscalls.master

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

Modified files:

Index: src/sys/rump/kern/lib/libsys_linux/sys_linux_component.c
diff -u src/sys/rump/kern/lib/libsys_linux/sys_linux_component.c:1.1 src/sys/rump/kern/lib/libsys_linux/sys_linux_component.c:1.2
--- src/sys/rump/kern/lib/libsys_linux/sys_linux_component.c:1.1	Thu Mar 13 02:03:47 2014
+++ src/sys/rump/kern/lib/libsys_linux/sys_linux_component.c	Fri Apr  4 18:24:12 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: sys_linux_component.c,v 1.1 2014/03/13 02:03:47 pooka Exp $	*/
+/*	$NetBSD: sys_linux_component.c,v 1.2 2014/04/04 18:24:12 njoly Exp $	*/
 
 #include sys/param.h
 #include sys/proc.h
@@ -58,14 +58,6 @@ linux_fakedev(dev_t in, int raw)
 void rumplinux__stub(void);
 void rumplinux__stub(void) {panic(unavailable);}
 
-/* timing */
-__weak_alias(clock_gettime1,rumplinux__stub);
-__weak_alias(clock_settime1,rumplinux__stub);
-__weak_alias(clock_getres1,rumplinux__stub);
-__weak_alias(compat_50_sys_gettimeofday,rumplinux__stub);
-__weak_alias(compat_50_sys_settimeofday,rumplinux__stub);
-__weak_alias(nanosleep1,rumplinux__stub);
-
 /* vm-related */
 __weak_alias(sys_mmap,rumplinux__stub);
 __weak_alias(vm_map_unlock,rumplinux__stub);

Index: src/sys/rump/kern/lib/libsys_linux/syscalls.master
diff -u src/sys/rump/kern/lib/libsys_linux/syscalls.master:1.13 src/sys/rump/kern/lib/libsys_linux/syscalls.master:1.14
--- src/sys/rump/kern/lib/libsys_linux/syscalls.master:1.13	Sat Jan 25 10:30:22 2014
+++ src/sys/rump/kern/lib/libsys_linux/syscalls.master	Fri Apr  4 18:24:12 2014
@@ -1,4 +1,4 @@
-	$NetBSD: syscalls.master,v 1.13 2014/01/25 10:30:22 njoly Exp $
+	$NetBSD: syscalls.master,v 1.14 2014/04/04 18:24:12 njoly Exp $
 
 ;	@(#)syscalls.master	8.2 (Berkeley) 1/13/94
 
@@ -540,11 +540,13 @@
 414	UNIMPL		pset_assign
 415	UNIMPL		_pset_bind
 416	UNIMPL		fadvise
-417	NOARGS  		{ int|linux_sys||select(int nd, \
+417	NOARGS  	{ int|linux_sys||select(int nd, \
 			fd_set *in, fd_set *ou, fd_set *ex, \
 			struct timeval50 *tv); }
-418	UNIMPL		gettimeofday
-419	UNIMPL		settimeofday
+418	NOARGS		{ int|linux_sys||gettimeofday(struct timeval50 *tp, \
+			struct timezone *tzp); }
+419	NOARGS		{ int|linux_sys||settimeofday(struct timeval50 *tp, \
+			struct timezone *tzp); }
 420	NOARGS		{ int|linux_sys||utimes(const char *path, \
 			struct linux_timeval *tv); }
 421	UNIMPL		adjtime
@@ -555,10 +557,15 @@
 			const struct timeval *tptr); }
 425	UNIMPL		setitimer
 426	UNIMPL		getitimer
-427	UNIMPL		clock_gettime
-428	UNIMPL		clock_settime
-429	UNIMPL		clock_getres
-430	UNIMPL		nanosleep
+427	NOARGS		{ int|linux_sys||clock_gettime(clockid_t which, \
+			struct linux_timespec *tp); }
+428	NOARGS		{ int|linux_sys||clock_settime(clockid_t which, \
+			struct linux_timespec *tp); }
+429	NOARGS		{ int|linux_sys||clock_getres(clockid_t which, \
+			struct linux_timespec *tp); }
+430	NOARGS		{ int|linux_sys||nanosleep( \
+			   const struct linux_timespec *rqtp, \
+			   struct linux_timespec *rmtp); }
 431	UNIMPL		__sigtimedwait
 432	UNIMPL		mq_timedsend
 433	UNIMPL		mq_timedreceive
@@ -626,3 +633,6 @@
 474	UNIMPL		posix_spawn
 475	UNIMPL		recvmmsg
 476	UNIMPL		sendmmsg
+477	NOARGS		{ int|linux_sys||clock_nanosleep(clockid_t which, \
+			int flags, struct linux_timespec *rqtp, \
+			struct linux_timespec *rmtp); }



CVS commit: src/sys/rump/kern/lib/libsys_linux

2014-04-04 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Fri Apr  4 18:25:41 UTC 2014

Modified Files:
src/sys/rump/kern/lib/libsys_linux: rump_linux_syscall.h
rump_linux_syscallargs.h rump_linux_syscalls.c rump_linux_sysent.c

Log Message:
Regen.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 \
src/sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h
cvs rdiff -u -r1.14 -r1.15 \
src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h \
src/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c \
src/sys/rump/kern/lib/libsys_linux/rump_linux_sysent.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/rump/kern/lib/libsys_linux/rump_linux_syscall.h
diff -u src/sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h:1.11 src/sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h:1.12
--- src/sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h:1.11	Sat Jan 25 10:31:01 2014
+++ src/sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h	Fri Apr  4 18:25:41 2014
@@ -1,10 +1,10 @@
-/* $NetBSD: rump_linux_syscall.h,v 1.11 2014/01/25 10:31:01 njoly Exp $ */
+/* $NetBSD: rump_linux_syscall.h,v 1.12 2014/04/04 18:25:41 njoly Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.13 2014/01/25 10:30:22 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.14 2014/04/04 18:24:12 njoly Exp
  */
 
 #ifndef _RUMP_LINUX_SYS_SYSCALL_H_
@@ -243,6 +243,12 @@
 /* syscall: select ret: int args: int fd_set * fd_set * fd_set * struct timeval50 * */
 #define	RUMP_LINUX_SYS_select	417
 
+/* syscall: gettimeofday ret: int args: struct timeval50 * struct timezone * */
+#define	RUMP_LINUX_SYS_gettimeofday	418
+
+/* syscall: settimeofday ret: int args: struct timeval50 * struct timezone * */
+#define	RUMP_LINUX_SYS_settimeofday	419
+
 /* syscall: utimes ret: int args: const char * struct linux_timeval * */
 #define	RUMP_LINUX_SYS_utimes	420
 
@@ -252,6 +258,18 @@
 /* syscall: __lutimes50 ret: int args: const char * const struct timeval * */
 #define	RUMP_LINUX_SYS___lutimes50	424
 
+/* syscall: clock_gettime ret: int args: clockid_t struct linux_timespec * */
+#define	RUMP_LINUX_SYS_clock_gettime	427
+
+/* syscall: clock_settime ret: int args: clockid_t struct linux_timespec * */
+#define	RUMP_LINUX_SYS_clock_settime	428
+
+/* syscall: clock_getres ret: int args: clockid_t struct linux_timespec * */
+#define	RUMP_LINUX_SYS_clock_getres	429
+
+/* syscall: nanosleep ret: int args: const struct linux_timespec * struct linux_timespec * */
+#define	RUMP_LINUX_SYS_nanosleep	430
+
 /* syscall: ppoll ret: int args: struct pollfd * u_int const struct linux_timespec * const linux_sigset_t * */
 #define	RUMP_LINUX_SYS_ppoll	437
 
@@ -312,6 +330,9 @@
 /* syscall: unlinkat ret: int args: int const char * int */
 #define	RUMP_LINUX_SYS_unlinkat	471
 
-#define	RUMP_LINUX_SYS_MAXSYSCALL	477
+/* syscall: clock_nanosleep ret: int args: clockid_t int struct linux_timespec * struct linux_timespec * */
+#define	RUMP_LINUX_SYS_clock_nanosleep	477
+
+#define	RUMP_LINUX_SYS_MAXSYSCALL	478
 #define	RUMP_LINUX_SYS_NSYSENT	512
 #endif /* _RUMP_LINUX_SYS_SYSCALL_H_ */

Index: src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h
diff -u src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h:1.14 src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h:1.15
--- src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h:1.14	Sat Jan 25 10:31:01 2014
+++ src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h	Fri Apr  4 18:25:41 2014
@@ -1,10 +1,10 @@
-/* $NetBSD: rump_linux_syscallargs.h,v 1.14 2014/01/25 10:31:01 njoly Exp $ */
+/* $NetBSD: rump_linux_syscallargs.h,v 1.15 2014/04/04 18:25:41 njoly Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.13 2014/01/25 10:30:22 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.14 2014/04/04 18:24:12 njoly Exp
  */
 
 #ifndef _RUMP_LINUX_SYS_SYSCALLARGS_H_
@@ -167,12 +167,24 @@ struct linux_sys_socket_args;
 
 struct linux_sys_select_args;
 
+struct linux_sys_gettimeofday_args;
+
+struct linux_sys_settimeofday_args;
+
 struct linux_sys_utimes_args;
 
 struct sys___futimes50_args;
 
 struct sys___lutimes50_args;
 
+struct linux_sys_clock_gettime_args;
+
+struct linux_sys_clock_settime_args;
+
+struct linux_sys_clock_getres_args;
+
+struct linux_sys_nanosleep_args;
+
 struct linux_sys_ppoll_args;
 
 struct linux_sys_stat64_args;
@@ -220,6 +232,8 @@ struct sys_symlinkat_args;
 
 struct linux_sys_unlinkat_args;
 
+struct linux_sys_clock_nanosleep_args;
+
 /*
  * System call prototypes.
  */
@@ -378,12 +392,24 @@ int	linux_sys_socket(struct lwp *, const
 
 int	linux_sys_select(struct lwp *, const struct linux_sys_select_args *, register_t *);
 
+int	linux_sys_gettimeofday(struct 

CVS commit: src/sys/dev/pci/hdaudio

2014-04-07 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Apr  7 21:35:41 UTC 2014

Modified Files:
src/sys/dev/pci/hdaudio: hdaudio_ids.c

Log Message:
Use 0x prefix when printing hexadecimal numbers.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/pci/hdaudio/hdaudio_ids.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/dev/pci/hdaudio/hdaudio_ids.c
diff -u src/sys/dev/pci/hdaudio/hdaudio_ids.c:1.7 src/sys/dev/pci/hdaudio/hdaudio_ids.c:1.8
--- src/sys/dev/pci/hdaudio/hdaudio_ids.c:1.7	Tue Dec 17 17:13:46 2013
+++ src/sys/dev/pci/hdaudio/hdaudio_ids.c	Mon Apr  7 21:35:41 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: hdaudio_ids.c,v 1.7 2013/12/17 17:13:46 jakllsch Exp $ */
+/* $NetBSD: hdaudio_ids.c,v 1.8 2014/04/07 21:35:41 njoly Exp $ */
 
 /*
  * Copyright (c) 2010 Jared D. McNeill jmcne...@invisible.ca
@@ -29,7 +29,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: hdaudio_ids.c,v 1.7 2013/12/17 17:13:46 jakllsch Exp $);
+__KERNEL_RCSID(0, $NetBSD: hdaudio_ids.c,v 1.8 2014/04/07 21:35:41 njoly Exp $);
 
 #include sys/types.h
 #include sys/param.h
@@ -267,7 +267,7 @@ hdaudio_id2name(uint16_t vendor, uint16_
 	if (name)
 		snprintf(buf, len - 1, %s, name);
 	else if (product == HDA_PRODUCT_ANY)
-		snprintf(buf, len - 1, vendor %04x, vendor);
+		snprintf(buf, len - 1, vendor 0x%04x, vendor);
 	else
-		snprintf(buf, len - 1, product %04x, product);
+		snprintf(buf, len - 1, product 0x%04x, product);
 }



CVS commit: src/sys/dev/pci

2014-04-07 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Apr  7 21:37:42 UTC 2014

Modified Files:
src/sys/dev/pci: pcidevs

Log Message:
Add Intel Ivy Bridge PCI Express Root Port


To generate a diff of this commit:
cvs rdiff -u -r1.1184 -r1.1185 src/sys/dev/pci/pcidevs

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

Modified files:

Index: src/sys/dev/pci/pcidevs
diff -u src/sys/dev/pci/pcidevs:1.1184 src/sys/dev/pci/pcidevs:1.1185
--- src/sys/dev/pci/pcidevs:1.1184	Sat Mar 15 10:30:41 2014
+++ src/sys/dev/pci/pcidevs	Mon Apr  7 21:37:42 2014
@@ -1,4 +1,4 @@
-$NetBSD: pcidevs,v 1.1184 2014/03/15 10:30:41 kiyohara Exp $
+$NetBSD: pcidevs,v 1.1185 2014/04/07 21:37:42 njoly Exp $
 
 /*
  * Copyright (c) 1995, 1996 Christopher G. Demetriou
@@ -2544,6 +2544,7 @@ product INTEL SANDYBRIDGE_M_IGD_2	0x0126
 product INTEL SANDYBRIDGE_S_HB	0x0108	Sandy Bridge Host Bridge
 product INTEL SANDYBRIDGE_S_IGD	0x010A	Sandy Bridge Integrated Graphics Device
 product INTEL IVYBRIDGE_HB	0x0150	Ivy Bridge Host Bridge
+product INTEL IVYBRIDGE_PCIE	0x0151	Ivy Bridge PCI Express Root Port
 product INTEL IVYBRIDGE_IGD	0x0152	Ivy Bridge Integrated Graphics Device
 product INTEL IVYBRIDGE_IGD_1	0x0162	Ivy Bridge Integrated Graphics Device
 product INTEL IVYBRIDGE_M_HB	0x0154	Ivy Bridge Host Bridge



CVS commit: src/sys/dev/pci

2014-04-07 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Apr  7 21:38:29 UTC 2014

Modified Files:
src/sys/dev/pci: pcidevs.h pcidevs_data.h

Log Message:
Regen for Intel Ivy Bridge PCI Express Root Port.


To generate a diff of this commit:
cvs rdiff -u -r1.1177 -r1.1178 src/sys/dev/pci/pcidevs.h
cvs rdiff -u -r1.1176 -r1.1177 src/sys/dev/pci/pcidevs_data.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/dev/pci/pcidevs.h
diff -u src/sys/dev/pci/pcidevs.h:1.1177 src/sys/dev/pci/pcidevs.h:1.1178
--- src/sys/dev/pci/pcidevs.h:1.1177	Sat Mar 15 10:32:36 2014
+++ src/sys/dev/pci/pcidevs.h	Mon Apr  7 21:38:28 2014
@@ -1,10 +1,10 @@
-/*	$NetBSD: pcidevs.h,v 1.1177 2014/03/15 10:32:36 kiyohara Exp $	*/
+/*	$NetBSD: pcidevs.h,v 1.1178 2014/04/07 21:38:28 njoly Exp $	*/
 
 /*
  * THIS FILE AUTOMATICALLY GENERATED.  DO NOT EDIT.
  *
  * generated from:
- *	NetBSD: pcidevs,v 1.1184 2014/03/15 10:30:41 kiyohara Exp
+ *	NetBSD: pcidevs,v 1.1185 2014/04/07 21:37:42 njoly Exp
  */
 
 /*
@@ -2551,6 +2551,7 @@
 #define	PCI_PRODUCT_INTEL_SANDYBRIDGE_S_HB	0x0108		/* Sandy Bridge Host Bridge */
 #define	PCI_PRODUCT_INTEL_SANDYBRIDGE_S_IGD	0x010A		/* Sandy Bridge Integrated Graphics Device */
 #define	PCI_PRODUCT_INTEL_IVYBRIDGE_HB	0x0150		/* Ivy Bridge Host Bridge */
+#define	PCI_PRODUCT_INTEL_IVYBRIDGE_PCIE	0x0151		/* Ivy Bridge PCI Express Root Port */
 #define	PCI_PRODUCT_INTEL_IVYBRIDGE_IGD	0x0152		/* Ivy Bridge Integrated Graphics Device */
 #define	PCI_PRODUCT_INTEL_IVYBRIDGE_IGD_1	0x0162		/* Ivy Bridge Integrated Graphics Device */
 #define	PCI_PRODUCT_INTEL_IVYBRIDGE_M_HB	0x0154		/* Ivy Bridge Host Bridge */

Index: src/sys/dev/pci/pcidevs_data.h
diff -u src/sys/dev/pci/pcidevs_data.h:1.1176 src/sys/dev/pci/pcidevs_data.h:1.1177
--- src/sys/dev/pci/pcidevs_data.h:1.1176	Sat Mar 15 10:32:36 2014
+++ src/sys/dev/pci/pcidevs_data.h	Mon Apr  7 21:38:28 2014
@@ -1,10 +1,10 @@
-/*	$NetBSD: pcidevs_data.h,v 1.1176 2014/03/15 10:32:36 kiyohara Exp $	*/
+/*	$NetBSD: pcidevs_data.h,v 1.1177 2014/04/07 21:38:28 njoly Exp $	*/
 
 /*
  * THIS FILE AUTOMATICALLY GENERATED.  DO NOT EDIT.
  *
  * generated from:
- *	NetBSD: pcidevs,v 1.1184 2014/03/15 10:30:41 kiyohara Exp
+ *	NetBSD: pcidevs,v 1.1185 2014/04/07 21:37:42 njoly Exp
  */
 
 /*
@@ -3857,6 +3857,8 @@ static const uint16_t pci_products[] = {
 	17075, 6347, 692, 1716, 2427, 0,
 	PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_IVYBRIDGE_HB, 
 	17081, 6347, 6743, 6347, 0,
+	PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_IVYBRIDGE_PCIE, 
+	17081, 6347, 615, 4329, 7835, 7901, 0,
 	PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_IVYBRIDGE_IGD, 
 	17081, 6347, 692, 1716, 2427, 0,
 	PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_IVYBRIDGE_IGD_1, 
@@ -9574,7 +9576,7 @@ static const char pci_words[] = { . 
 	TMC\0 /* 1 refs @ 601 */
 	Miro\0 /* 1 refs @ 605 */
 	(2nd\0 /* 14 refs @ 610 */
-	PCI\0 /* 322 refs @ 615 */
+	PCI\0 /* 323 refs @ 615 */
 	Vendor\0 /* 16 refs @ 619 */
 	ID)\0 /* 19 refs @ 626 */
 	NEC\0 /* 2 refs @ 630 */
@@ -10070,7 +10072,7 @@ static const char pci_words[] = { . 
 	Transmeta\0 /* 1 refs @ 4302 */
 	Rockwell\0 /* 1 refs @ 4312 */
 	Davicom\0 /* 1 refs @ 4321 */
-	Express\0 /* 103 refs @ 4329 */
+	Express\0 /* 104 refs @ 4329 */
 	TriTech\0 /* 1 refs @ 4337 */
 	Kofax\0 /* 1 refs @ 4345 */
 	Image\0 /* 1 refs @ 4351 */
@@ -10336,7 +10338,7 @@ static const char pci_words[] = { . 
 	ACCM\0 /* 1 refs @ 6330 */
 	2188\0 /* 1 refs @ 6335 */
 	VL-PCI\0 /* 3 refs @ 6340 */
-	Bridge\0 /* 608 refs @ 6347 */
+	Bridge\0 /* 609 refs @ 6347 */
 	2051\0 /* 2 refs @ 6354 */
 	Single\0 /* 7 refs @ 6359 */
 	Solution\0 /* 2 refs @ 6366 */
@@ -10529,7 +10531,7 @@ static const char pci_words[] = { . 
 	Link\0 /* 19 refs @ 7810 */
 	Family11h\0 /* 5 refs @ 7815 */
 	Family14h\0 /* 1 refs @ 7825 */
-	Root\0 /* 18 refs @ 7835 */
+	Root\0 /* 19 refs @ 7835 */
 	Complex\0 /* 2 refs @ 7840 */
 	Family15h\0 /* 6 refs @ 7848 */
 	North\0 /* 11 refs @ 7858 */
@@ -10537,7 +10539,7 @@ static const char pci_words[] = { . 
 	C-state\0 /* 1 refs @ 7878 */
 	Family12h\0 /* 2 refs @ 7886 */
 	GPP0\0 /* 1 refs @ 7896 */
-	Port\0 /* 131 refs @ 7901 */
+	Port\0 /* 132 refs @ 7901 */
 	Misc.\0 /* 1 refs @ 7906 */
 	PCnet-PCI\0 /* 1 refs @ 7912 */
 	PCnet-Home\0 /* 1 refs @ 7922 */
@@ -11853,7 +11855,7 @@ static const char pci_words[] = { . 
 	1030\0 /* 2 refs @ 17065 */
 	6230\0 /* 2 refs @ 17070 */
 	Sandy\0 /* 10 refs @ 17075 */
-	Ivy\0 /* 9 refs @ 17081 */
+	Ivy\0 /* 10 refs @ 17081 */
 	80312\0 /* 1 refs @ 17085 */
 	80321\0 /* 1 refs @ 17091 */
 	6700PXH\0 /* 2 refs @ 17097 */



CVS commit: src/sys/compat/linux/arch

2014-04-08 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Tue Apr  8 11:39:57 UTC 2014

Modified Files:
src/sys/compat/linux/arch/alpha: Makefile
src/sys/compat/linux/arch/amd64: Makefile
src/sys/compat/linux/arch/arm: Makefile
src/sys/compat/linux/arch/i386: Makefile
src/sys/compat/linux/arch/m68k: Makefile
src/sys/compat/linux/arch/mips: Makefile
src/sys/compat/linux/arch/powerpc: Makefile
src/sys/compat/linux/arch/sparc: Makefile
src/sys/compat/linux/arch/sparc64: Makefile

Log Message:
Do not include bsd.kinc.mk in each arch Makefile, it's already pulled
by bsd.syscall.mk (from Makefile.inc).


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/alpha/Makefile
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/amd64/Makefile
cvs rdiff -u -r1.1 -r1.2 src/sys/compat/linux/arch/arm/Makefile
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/i386/Makefile
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/m68k/Makefile
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/mips/Makefile
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/powerpc/Makefile
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/sparc/Makefile
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/sparc64/Makefile

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

Modified files:

Index: src/sys/compat/linux/arch/alpha/Makefile
diff -u src/sys/compat/linux/arch/alpha/Makefile:1.2 src/sys/compat/linux/arch/alpha/Makefile:1.3
--- src/sys/compat/linux/arch/alpha/Makefile:1.2	Sat Oct  3 20:17:37 1998
+++ src/sys/compat/linux/arch/alpha/Makefile	Tue Apr  8 11:39:57 2014
@@ -1,4 +1,3 @@
-#	$NetBSD: Makefile,v 1.2 1998/10/03 20:17:37 christos Exp $
+#	$NetBSD: Makefile,v 1.3 2014/04/08 11:39:57 njoly Exp $
 
 .include ../../Makefile.inc
-.include bsd.kinc.mk

Index: src/sys/compat/linux/arch/amd64/Makefile
diff -u src/sys/compat/linux/arch/amd64/Makefile:1.2 src/sys/compat/linux/arch/amd64/Makefile:1.3
--- src/sys/compat/linux/arch/amd64/Makefile:1.2	Sun Dec 11 12:20:14 2005
+++ src/sys/compat/linux/arch/amd64/Makefile	Tue Apr  8 11:39:57 2014
@@ -1,4 +1,3 @@
-#	$NetBSD: Makefile,v 1.2 2005/12/11 12:20:14 christos Exp $ 
+#	$NetBSD: Makefile,v 1.3 2014/04/08 11:39:57 njoly Exp $ 
 
 .include ../../Makefile.inc
-.include bsd.kinc.mk

Index: src/sys/compat/linux/arch/arm/Makefile
diff -u src/sys/compat/linux/arch/arm/Makefile:1.1 src/sys/compat/linux/arch/arm/Makefile:1.2
--- src/sys/compat/linux/arch/arm/Makefile:1.1	Mon Jan 14 23:14:35 2002
+++ src/sys/compat/linux/arch/arm/Makefile	Tue Apr  8 11:39:57 2014
@@ -1,4 +1,3 @@
-#	$NetBSD: Makefile,v 1.1 2002/01/14 23:14:35 bjh21 Exp $
+#	$NetBSD: Makefile,v 1.2 2014/04/08 11:39:57 njoly Exp $
 
 .include ../../Makefile.inc
-.include bsd.kinc.mk

Index: src/sys/compat/linux/arch/i386/Makefile
diff -u src/sys/compat/linux/arch/i386/Makefile:1.2 src/sys/compat/linux/arch/i386/Makefile:1.3
--- src/sys/compat/linux/arch/i386/Makefile:1.2	Sat Oct  3 20:17:38 1998
+++ src/sys/compat/linux/arch/i386/Makefile	Tue Apr  8 11:39:57 2014
@@ -1,4 +1,3 @@
-#	$NetBSD: Makefile,v 1.2 1998/10/03 20:17:38 christos Exp $
+#	$NetBSD: Makefile,v 1.3 2014/04/08 11:39:57 njoly Exp $
 
 .include ../../Makefile.inc
-.include bsd.kinc.mk

Index: src/sys/compat/linux/arch/m68k/Makefile
diff -u src/sys/compat/linux/arch/m68k/Makefile:1.2 src/sys/compat/linux/arch/m68k/Makefile:1.3
--- src/sys/compat/linux/arch/m68k/Makefile:1.2	Sat Oct  3 20:17:39 1998
+++ src/sys/compat/linux/arch/m68k/Makefile	Tue Apr  8 11:39:57 2014
@@ -1,4 +1,3 @@
-#	$NetBSD: Makefile,v 1.2 1998/10/03 20:17:39 christos Exp $
+#	$NetBSD: Makefile,v 1.3 2014/04/08 11:39:57 njoly Exp $
 
 .include ../../Makefile.inc
-.include bsd.kinc.mk

Index: src/sys/compat/linux/arch/mips/Makefile
diff -u src/sys/compat/linux/arch/mips/Makefile:1.2 src/sys/compat/linux/arch/mips/Makefile:1.3
--- src/sys/compat/linux/arch/mips/Makefile:1.2	Sat Oct  3 20:17:39 1998
+++ src/sys/compat/linux/arch/mips/Makefile	Tue Apr  8 11:39:57 2014
@@ -1,4 +1,3 @@
-#	$NetBSD: Makefile,v 1.2 1998/10/03 20:17:39 christos Exp $
+#	$NetBSD: Makefile,v 1.3 2014/04/08 11:39:57 njoly Exp $
 
 .include ../../Makefile.inc
-.include bsd.kinc.mk

Index: src/sys/compat/linux/arch/powerpc/Makefile
diff -u src/sys/compat/linux/arch/powerpc/Makefile:1.2 src/sys/compat/linux/arch/powerpc/Makefile:1.3
--- src/sys/compat/linux/arch/powerpc/Makefile:1.2	Sat Oct  3 20:17:39 1998
+++ src/sys/compat/linux/arch/powerpc/Makefile	Tue Apr  8 11:39:57 2014
@@ -1,4 +1,3 @@
-#	$NetBSD: Makefile,v 1.2 1998/10/03 20:17:39 christos Exp $
+#	$NetBSD: Makefile,v 1.3 2014/04/08 11:39:57 njoly Exp $
 
 .include ../../Makefile.inc
-.include bsd.kinc.mk

Index: src/sys/compat/linux/arch/sparc/Makefile
diff -u src/sys/compat/linux/arch/sparc/Makefile:1.2 src/sys/compat/linux/arch/sparc/Makefile:1.3
--- src/sys/compat/linux/arch/sparc/Makefile:1.2	Sat Oct  3 

CVS commit: src/sys/compat/linux/arch

2014-04-08 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Tue Apr  8 16:48:01 UTC 2014

Modified Files:
src/sys/compat/linux/arch/alpha: syscalls.master
src/sys/compat/linux/arch/amd64: syscalls.master
src/sys/compat/linux/arch/arm: syscalls.master
src/sys/compat/linux/arch/i386: syscalls.master
src/sys/compat/linux/arch/m68k: syscalls.master
src/sys/compat/linux/arch/mips: syscalls.master
src/sys/compat/linux/arch/powerpc: syscalls.master

Log Message:
Adjust read/write/readv/writev signature to match native versions.


To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 src/sys/compat/linux/arch/alpha/syscalls.master
cvs rdiff -u -r1.46 -r1.47 src/sys/compat/linux/arch/amd64/syscalls.master
cvs rdiff -u -r1.54 -r1.55 src/sys/compat/linux/arch/arm/syscalls.master
cvs rdiff -u -r1.112 -r1.113 src/sys/compat/linux/arch/i386/syscalls.master
cvs rdiff -u -r1.81 -r1.82 src/sys/compat/linux/arch/m68k/syscalls.master
cvs rdiff -u -r1.49 -r1.50 src/sys/compat/linux/arch/mips/syscalls.master
cvs rdiff -u -r1.58 -r1.59 src/sys/compat/linux/arch/powerpc/syscalls.master

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

Modified files:

Index: src/sys/compat/linux/arch/alpha/syscalls.master
diff -u src/sys/compat/linux/arch/alpha/syscalls.master:1.83 src/sys/compat/linux/arch/alpha/syscalls.master:1.84
--- src/sys/compat/linux/arch/alpha/syscalls.master:1.83	Mon Jan 13 10:33:03 2014
+++ src/sys/compat/linux/arch/alpha/syscalls.master	Tue Apr  8 16:48:01 2014
@@ -1,4 +1,4 @@
-	$NetBSD: syscalls.master,v 1.83 2014/01/13 10:33:03 njoly Exp $
+	$NetBSD: syscalls.master,v 1.84 2014/04/08 16:48:01 njoly Exp $
 ;
 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
 
@@ -84,8 +84,9 @@
 0	NOARGS		{ int|linux_sys||nosys(void); } syscall
 1	STD		{ int|linux_sys||exit(int rval); }
 2	NOARGS		{ int|sys||fork(void); }
-3	NOARGS		{ int|sys||read(int fd, void *buf, size_t nbyte); }
-4	NOARGS		{ int|sys||write(int fd, const void *buf, size_t nbyte); }
+3	NOARGS		{ ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
+4	NOARGS		{ ssize_t|sys||write(int fd, const void *buf, \
+			size_t nbyte); }
 5	UNIMPL
 6	NOARGS		{ int|sys||close(int fd); }
 7	NODEF		{ int|osf1_sys||wait4(int pid, int *status, \

Index: src/sys/compat/linux/arch/amd64/syscalls.master
diff -u src/sys/compat/linux/arch/amd64/syscalls.master:1.46 src/sys/compat/linux/arch/amd64/syscalls.master:1.47
--- src/sys/compat/linux/arch/amd64/syscalls.master:1.46	Sun Dec  8 15:55:10 2013
+++ src/sys/compat/linux/arch/amd64/syscalls.master	Tue Apr  8 16:48:01 2014
@@ -1,4 +1,4 @@
-	$NetBSD: syscalls.master,v 1.46 2013/12/08 15:55:10 njoly Exp $
+	$NetBSD: syscalls.master,v 1.47 2014/04/08 16:48:01 njoly Exp $
 
 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
 
@@ -64,8 +64,9 @@
 
 %%
 
-0	NOARGS		{ int|sys||read(int fd, char *buf, u_int nbyte); }
-1	NOARGS		{ int|sys||write(int fd, char *buf, u_int nbyte); }
+0	NOARGS		{ ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
+1	NOARGS		{ ssize_t|sys||write(int fd, const void *buf, \
+			int nbyte); }
 2	STD		{ int|linux_sys||open(const char *path, int flags, \
 			linux_umode_t mode); }
 3	NOARGS		{ int|sys||close(int fd); }
@@ -101,10 +102,10 @@
 			size_t nbyte, linux_off_t offset); }
 18	STD		{ int|linux_sys||pwrite(int fd, char *buf, \
 			size_t nbyte, linux_off_t offset); }
-19	NOARGS		{ int|sys||readv(int fd, struct iovec *iovp, \
-u_int iovcnt); }
-20	NOARGS		{ int|sys||writev(int fd, struct iovec *iovp, \
-u_int iovcnt); }
+19	NOARGS		{ ssize_t|sys||readv(int fd, \
+			const struct iovec *iovp, int iovcnt); }
+20	NOARGS		{ ssize_t|sys||writev(int fd, \
+			const struct iovec *iovp, int iovcnt); }
 21	NOARGS		{ int|sys||access(const char *path, int flags); }
 22	STD		{ int|linux_sys||pipe(int *pfds); }
 23	STD		{ int|linux_sys||select(int nfds, fd_set *readfds, \

Index: src/sys/compat/linux/arch/arm/syscalls.master
diff -u src/sys/compat/linux/arch/arm/syscalls.master:1.54 src/sys/compat/linux/arch/arm/syscalls.master:1.55
--- src/sys/compat/linux/arch/arm/syscalls.master:1.54	Sun Dec  8 15:55:10 2013
+++ src/sys/compat/linux/arch/arm/syscalls.master	Tue Apr  8 16:48:01 2014
@@ -1,4 +1,4 @@
-	$NetBSD: syscalls.master,v 1.54 2013/12/08 15:55:10 njoly Exp $
+	$NetBSD: syscalls.master,v 1.55 2014/04/08 16:48:01 njoly Exp $
 
 ; Derived from sys/compat/linux/arch/*/syscalls.master
 ; and from Linux 2.4.12 arch/arm/kernel/calls.S
@@ -56,8 +56,9 @@
 0	NOARGS		{ int|linux_sys||nosys(void); }
 1	STD		{ int|linux_sys||exit(int rval); }
 2	NOARGS		{ int|sys||fork(void); }
-3	NOARGS		{ int|sys||read(int fd, char *buf, u_int nbyte); }
-4	NOARGS		{ int|sys||write(int fd, char *buf, u_int nbyte); }
+3	NOARGS		{ ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
+4	NOARGS		{ ssize_t|sys||write(int fd, const void *buf, \
+			size_t nbyte); }
 5	STD		{ 

CVS commit: src/sys/compat/linux/arch

2014-04-08 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Tue Apr  8 16:49:26 UTC 2014

Modified Files:
src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c
src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c
src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c
src/sys/compat/linux/arch/i386: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c
src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c
src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c
src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c

Log Message:
Regen.


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/sys/compat/linux/arch/alpha/linux_syscall.h \
src/sys/compat/linux/arch/alpha/linux_sysent.c
cvs rdiff -u -r1.88 -r1.89 \
src/sys/compat/linux/arch/alpha/linux_syscallargs.h
cvs rdiff -u -r1.90 -r1.91 src/sys/compat/linux/arch/alpha/linux_syscalls.c
cvs rdiff -u -r1.48 -r1.49 src/sys/compat/linux/arch/amd64/linux_syscall.h \
src/sys/compat/linux/arch/amd64/linux_syscallargs.h \
src/sys/compat/linux/arch/amd64/linux_syscalls.c \
src/sys/compat/linux/arch/amd64/linux_sysent.c
cvs rdiff -u -r1.57 -r1.58 src/sys/compat/linux/arch/arm/linux_syscall.h \
src/sys/compat/linux/arch/arm/linux_syscallargs.h \
src/sys/compat/linux/arch/arm/linux_syscalls.c \
src/sys/compat/linux/arch/arm/linux_sysent.c
cvs rdiff -u -r1.97 -r1.98 src/sys/compat/linux/arch/i386/linux_syscall.h \
src/sys/compat/linux/arch/i386/linux_syscallargs.h \
src/sys/compat/linux/arch/i386/linux_sysent.c
cvs rdiff -u -r1.98 -r1.99 src/sys/compat/linux/arch/i386/linux_syscalls.c
cvs rdiff -u -r1.87 -r1.88 src/sys/compat/linux/arch/m68k/linux_syscall.h \
src/sys/compat/linux/arch/m68k/linux_syscalls.c \
src/sys/compat/linux/arch/m68k/linux_sysent.c
cvs rdiff -u -r1.86 -r1.87 src/sys/compat/linux/arch/m68k/linux_syscallargs.h
cvs rdiff -u -r1.54 -r1.55 src/sys/compat/linux/arch/mips/linux_syscall.h
cvs rdiff -u -r1.53 -r1.54 src/sys/compat/linux/arch/mips/linux_syscallargs.h \
src/sys/compat/linux/arch/mips/linux_syscalls.c \
src/sys/compat/linux/arch/mips/linux_sysent.c
cvs rdiff -u -r1.64 -r1.65 src/sys/compat/linux/arch/powerpc/linux_syscall.h \
src/sys/compat/linux/arch/powerpc/linux_sysent.c
cvs rdiff -u -r1.63 -r1.64 \
src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \
src/sys/compat/linux/arch/powerpc/linux_syscalls.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/compat/linux/arch/alpha/linux_syscall.h
diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.89 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.90
--- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.89	Mon Jan 13 10:33:23 2014
+++ src/sys/compat/linux/arch/alpha/linux_syscall.h	Tue Apr  8 16:49:25 2014
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.89 2014/01/13 10:33:23 njoly Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.90 2014/04/08 16:49:25 njoly Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.83 2014/01/13 10:33:03 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.84 2014/04/08 16:48:01 njoly Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALL_H_
@@ -21,10 +21,10 @@
 /* syscall: fork ret: int args: */
 #define	LINUX_SYS_fork	2
 
-/* syscall: read ret: int args: int void * size_t */
+/* syscall: read ret: ssize_t args: int void * size_t */
 #define	LINUX_SYS_read	3
 
-/* syscall: write ret: int args: int const void * size_t */
+/* syscall: write ret: ssize_t args: int const void * size_t */
 #define	LINUX_SYS_write	4
 
 /* syscall: close ret: int args: int */
Index: src/sys/compat/linux/arch/alpha/linux_sysent.c
diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.89 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.90
--- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.89	Mon Jan 13 10:33:23 2014
+++ src/sys/compat/linux/arch/alpha/linux_sysent.c	Tue Apr  8 16:49:25 2014
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.89 2014/01/13 10:33:23 njoly Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.90 2014/04/08 16:49:25 njoly Exp $ */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.83 2014/01/13 10:33:03 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.84 2014/04/08 16:48:01 njoly Exp
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.89 2014/01/13 10:33:23 njoly Exp $);

CVS commit: src/usr.bin/kdump

2014-04-30 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Wed Apr 30 11:51:51 UTC 2014

Modified Files:
src/usr.bin/kdump: kdump.c

Log Message:
Fix compat netbsd32 syscall return values display by calling
output_long() instead of printf().


To generate a diff of this commit:
cvs rdiff -u -r1.117 -r1.118 src/usr.bin/kdump/kdump.c

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/kdump/kdump.c
diff -u src/usr.bin/kdump/kdump.c:1.117 src/usr.bin/kdump/kdump.c:1.118
--- src/usr.bin/kdump/kdump.c:1.117	Wed Nov 27 20:27:58 2013
+++ src/usr.bin/kdump/kdump.c	Wed Apr 30 11:51:51 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: kdump.c,v 1.117 2013/11/27 20:27:58 christos Exp $	*/
+/*	$NetBSD: kdump.c,v 1.118 2014/04/30 11:51:51 njoly Exp $	*/
 
 /*-
  * Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT(@(#) Copyright (c) 1988, 19
 #if 0
 static char sccsid[] = @(#)kdump.c	8.4 (Berkeley) 4/28/95;
 #else
-__RCSID($NetBSD: kdump.c,v 1.117 2013/11/27 20:27:58 christos Exp $);
+__RCSID($NetBSD: kdump.c,v 1.118 2014/04/30 11:51:51 njoly Exp $);
 #endif
 #endif /* not lint */
 
@@ -652,14 +652,13 @@ rprint(register_t ret)
 {
 
 	if (!plain) {
-		(void)printf(%ld, (long)ret);
-		if (!small(ret))
-			(void)printf(/%#lx, (long)ret);
+		output_long(ret, 0);
+		if (!small(ret)) {
+			putchar('/');
+			output_long(ret, 1);
+		}
 	} else {
-		if (decimal || small(ret))
-			(void)printf(%ld, (long)ret);
-		else
-			(void)printf(%#lx, (long)ret);
+		output_long(ret, !(decimal || small(ret)));
 	}
 }
 



CVS commit: src/sys/compat/netbsd32

2014-04-30 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Wed Apr 30 17:23:45 UTC 2014

Modified Files:
src/sys/compat/netbsd32: netbsd32.h netbsd32_fs.c netbsd32_netbsd.c
syscalls.master

Log Message:
Do not use native off_t type under compat netbsd32, but a new
netbsd32_off_t that provide the expected alignment for 64bit types.


To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/sys/compat/netbsd32/netbsd32.h
cvs rdiff -u -r1.69 -r1.70 src/sys/compat/netbsd32/netbsd32_fs.c
cvs rdiff -u -r1.185 -r1.186 src/sys/compat/netbsd32/netbsd32_netbsd.c
cvs rdiff -u -r1.98 -r1.99 src/sys/compat/netbsd32/syscalls.master

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

Modified files:

Index: src/sys/compat/netbsd32/netbsd32.h
diff -u src/sys/compat/netbsd32/netbsd32.h:1.99 src/sys/compat/netbsd32/netbsd32.h:1.100
--- src/sys/compat/netbsd32/netbsd32.h:1.99	Mon Feb  3 17:03:16 2014
+++ src/sys/compat/netbsd32/netbsd32.h	Wed Apr 30 17:23:45 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: netbsd32.h,v 1.99 2014/02/03 17:03:16 manu Exp $	*/
+/*	$NetBSD: netbsd32.h,v 1.100 2014/04/30 17:23:45 njoly Exp $	*/
 
 /*
  * Copyright (c) 1998, 2001, 2008 Matthew R. Green
@@ -166,6 +166,7 @@ typedef netbsd32_pointer_t netbsd32_fd_s
 typedef netbsd32_intptr_t netbsd32_semid_t;
 typedef netbsd32_pointer_t netbsd32_semidp_t;
 typedef netbsd32_uint64 netbsd32_dev_t;
+typedef netbsd32_int64 netbsd32_off_t;
 
 /* from sys/uio.h */
 typedef netbsd32_pointer_t netbsd32_iovecp_t;

Index: src/sys/compat/netbsd32/netbsd32_fs.c
diff -u src/sys/compat/netbsd32/netbsd32_fs.c:1.69 src/sys/compat/netbsd32/netbsd32_fs.c:1.70
--- src/sys/compat/netbsd32/netbsd32_fs.c:1.69	Thu Oct 17 18:01:11 2013
+++ src/sys/compat/netbsd32/netbsd32_fs.c	Wed Apr 30 17:23:45 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: netbsd32_fs.c,v 1.69 2013/10/17 18:01:11 njoly Exp $	*/
+/*	$NetBSD: netbsd32_fs.c,v 1.70 2014/04/30 17:23:45 njoly Exp $	*/
 
 /*
  * Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: netbsd32_fs.c,v 1.69 2013/10/17 18:01:11 njoly Exp $);
+__KERNEL_RCSID(0, $NetBSD: netbsd32_fs.c,v 1.70 2014/04/30 17:23:45 njoly Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -634,7 +634,7 @@ netbsd32_preadv(struct lwp *l, const str
 		syscallarg(const netbsd32_iovecp_t) iovp;
 		syscallarg(int) iovcnt;
 		syscallarg(int) pad;
-		syscallarg(off_t) offset;
+		syscallarg(netbsd32_off_t) offset;
 	} */
 	file_t *fp;
 	struct vnode *vp;
@@ -680,7 +680,7 @@ netbsd32_pwritev(struct lwp *l, const st
 		syscallarg(const netbsd32_iovecp_t) iovp;
 		syscallarg(int) iovcnt;
 		syscallarg(int) pad;
-		syscallarg(off_t) offset;
+		syscallarg(netbsd32_off_t) offset;
 	} */
 	file_t *fp;
 	struct vnode *vp;

Index: src/sys/compat/netbsd32/netbsd32_netbsd.c
diff -u src/sys/compat/netbsd32/netbsd32_netbsd.c:1.185 src/sys/compat/netbsd32/netbsd32_netbsd.c:1.186
--- src/sys/compat/netbsd32/netbsd32_netbsd.c:1.185	Sat Mar 22 08:15:25 2014
+++ src/sys/compat/netbsd32/netbsd32_netbsd.c	Wed Apr 30 17:23:45 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: netbsd32_netbsd.c,v 1.185 2014/03/22 08:15:25 maxv Exp $	*/
+/*	$NetBSD: netbsd32_netbsd.c,v 1.186 2014/04/30 17:23:45 njoly Exp $	*/
 
 /*
  * Copyright (c) 1998, 2001, 2008 Matthew R. Green
@@ -27,7 +27,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: netbsd32_netbsd.c,v 1.185 2014/03/22 08:15:25 maxv Exp $);
+__KERNEL_RCSID(0, $NetBSD: netbsd32_netbsd.c,v 1.186 2014/04/30 17:23:45 njoly Exp $);
 
 #if defined(_KERNEL_OPT)
 #include opt_ddb.h
@@ -1363,7 +1363,7 @@ netbsd32_pread(struct lwp *l, const stru
 		syscallarg(netbsd32_voidp) buf;
 		syscallarg(netbsd32_size_t) nbyte;
 		syscallarg(int) PAD;
-		syscallarg(off_t) offset;
+		syscallarg(netbsd32_off_t) offset;
 	} */
 	struct sys_pread_args ua;
 
@@ -1383,7 +1383,7 @@ netbsd32_pwrite(struct lwp *l, const str
 		syscallarg(const netbsd32_voidp) buf;
 		syscallarg(netbsd32_size_t) nbyte;
 		syscallarg(int) PAD;
-		syscallarg(off_t) offset;
+		syscallarg(netbsd32_off_t) offset;
 	} */
 	struct sys_pwrite_args ua;
 
@@ -1519,7 +1519,7 @@ netbsd32_mmap(struct lwp *l, const struc
 		syscallarg(int) flags;
 		syscallarg(int) fd;
 		syscallarg(netbsd32_long) PAD;
-		syscallarg(off_t) pos;
+		syscallarg(netbsd32_off_t) pos;
 	} */
 	struct sys_mmap_args ua;
 	int error;
@@ -1582,7 +1582,7 @@ netbsd32_lseek(struct lwp *l, const stru
 	/* {
 		syscallarg(int) fd;
 		syscallarg(int) PAD;
-		syscallarg(off_t) offset;
+		syscallarg(netbsd32_off_t) offset;
 		syscallarg(int) whence;
 	} */
 	struct sys_lseek_args ua;
@@ -1617,7 +1617,7 @@ netbsd32_truncate(struct lwp *l, const s
 	/* {
 		syscallarg(const netbsd32_charp) path;
 		syscallarg(int) PAD;
-		syscallarg(off_t) length;
+		syscallarg(netbsd32_off_t) length;
 	} */
 	struct sys_truncate_args ua;
 
@@ -1633,7 +1633,7 @@ netbsd32_ftruncate(struct lwp *l, const 
 	/* {
 		syscallarg(int) fd;
 

CVS commit: src/sys/compat/netbsd32

2014-04-30 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Wed Apr 30 17:24:20 UTC 2014

Modified Files:
src/sys/compat/netbsd32: netbsd32_syscall.h netbsd32_syscallargs.h
netbsd32_syscalls.c netbsd32_sysent.c

Log Message:
Regen for netbsd32_off_t.


To generate a diff of this commit:
cvs rdiff -u -r1.106 -r1.107 src/sys/compat/netbsd32/netbsd32_syscall.h \
src/sys/compat/netbsd32/netbsd32_syscallargs.h
cvs rdiff -u -r1.105 -r1.106 src/sys/compat/netbsd32/netbsd32_syscalls.c \
src/sys/compat/netbsd32/netbsd32_sysent.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/compat/netbsd32/netbsd32_syscall.h
diff -u src/sys/compat/netbsd32/netbsd32_syscall.h:1.106 src/sys/compat/netbsd32/netbsd32_syscall.h:1.107
--- src/sys/compat/netbsd32/netbsd32_syscall.h:1.106	Thu Oct 17 18:04:40 2013
+++ src/sys/compat/netbsd32/netbsd32_syscall.h	Wed Apr 30 17:24:20 2014
@@ -1,10 +1,10 @@
-/* $NetBSD: netbsd32_syscall.h,v 1.106 2013/10/17 18:04:40 njoly Exp $ */
+/* $NetBSD: netbsd32_syscall.h,v 1.107 2014/04/30 17:24:20 njoly Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.98 2013/10/17 18:01:11 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.99 2014/04/30 17:23:45 njoly Exp
  */
 
 #ifndef _NETBSD32_SYS_SYSCALL_H_
@@ -486,10 +486,10 @@
 #else
 /* 171 is excluded netbsd32_shmsys */
 #endif
-/* syscall: netbsd32_pread ret: netbsd32_ssize_t args: int netbsd32_voidp netbsd32_size_t int off_t */
+/* syscall: netbsd32_pread ret: netbsd32_ssize_t args: int netbsd32_voidp netbsd32_size_t int netbsd32_off_t */
 #define	NETBSD32_SYS_netbsd32_pread	173
 
-/* syscall: netbsd32_pwrite ret: netbsd32_ssize_t args: int netbsd32_voidp netbsd32_size_t int off_t */
+/* syscall: netbsd32_pwrite ret: netbsd32_ssize_t args: int netbsd32_voidp netbsd32_size_t int netbsd32_off_t */
 #define	NETBSD32_SYS_netbsd32_pwrite	174
 
 #if defined(NTP) || !defined(_KERNEL_OPT)
@@ -540,19 +540,19 @@
 /* syscall: compat_12_netbsd32_getdirentries ret: int args: int netbsd32_charp u_int netbsd32_longp */
 #define	NETBSD32_SYS_compat_12_netbsd32_getdirentries	196
 
-/* syscall: netbsd32_mmap ret: netbsd32_voidp args: netbsd32_voidp netbsd32_size_t int int int netbsd32_long off_t */
+/* syscall: netbsd32_mmap ret: netbsd32_voidp args: netbsd32_voidp netbsd32_size_t int int int netbsd32_long netbsd32_off_t */
 #define	NETBSD32_SYS_netbsd32_mmap	197
 
 /* syscall: netbsd32syscall ret: quad_t args: quad_t ... */
 #define	NETBSD32_SYS_netbsd32syscall	198
 
-/* syscall: netbsd32_lseek ret: off_t args: int int off_t int */
+/* syscall: netbsd32_lseek ret: netbsd32_off_t args: int int netbsd32_off_t int */
 #define	NETBSD32_SYS_netbsd32_lseek	199
 
-/* syscall: netbsd32_truncate ret: int args: netbsd32_charp int off_t */
+/* syscall: netbsd32_truncate ret: int args: netbsd32_charp int netbsd32_off_t */
 #define	NETBSD32_SYS_netbsd32_truncate	200
 
-/* syscall: netbsd32_ftruncate ret: int args: int int off_t */
+/* syscall: netbsd32_ftruncate ret: int args: int int netbsd32_off_t */
 #define	NETBSD32_SYS_netbsd32_ftruncate	201
 
 /* syscall: netbsd32___sysctl ret: int args: netbsd32_intp u_int netbsd32_voidp netbsd32_size_tp netbsd32_voidp netbsd32_size_t */
@@ -762,10 +762,10 @@
 /* syscall: netbsd32_fktrace ret: int args: int int int int */
 #define	NETBSD32_SYS_netbsd32_fktrace	288
 
-/* syscall: netbsd32_preadv ret: netbsd32_ssize_t args: int netbsd32_iovecp_t int int off_t */
+/* syscall: netbsd32_preadv ret: netbsd32_ssize_t args: int netbsd32_iovecp_t int int netbsd32_off_t */
 #define	NETBSD32_SYS_netbsd32_preadv	289
 
-/* syscall: netbsd32_pwritev ret: netbsd32_ssize_t args: int netbsd32_iovecp_t int int off_t */
+/* syscall: netbsd32_pwritev ret: netbsd32_ssize_t args: int netbsd32_iovecp_t int int netbsd32_off_t */
 #define	NETBSD32_SYS_netbsd32_pwritev	290
 
 /* syscall: netbsd32___sigaction14 ret: int args: int netbsd32_sigactionp_t netbsd32_sigactionp_t */
@@ -919,7 +919,7 @@
 /* syscall: sched_yield ret: int args: */
 #define	NETBSD32_SYS_sched_yield	350
 
-/* syscall: netbsd32_fsync_range ret: int args: int int off_t off_t */
+/* syscall: netbsd32_fsync_range ret: int args: int int netbsd32_off_t netbsd32_off_t */
 #define	NETBSD32_SYS_netbsd32_fsync_range	354
 
 /* syscall: netbsd32_uuidgen ret: int args: netbsd32_uuidp_t int */
@@ -1062,7 +1062,7 @@
 /* syscall: netbsd32_mremap ret: netbsd32_voidp args: netbsd32_voidp netbsd32_size_t netbsd32_voidp netbsd32_size_t int */
 #define	NETBSD32_SYS_netbsd32_mremap	411
 
-/* syscall: netbsd32___posix_fadvise50 ret: int args: int int off_t off_t int */
+/* syscall: netbsd32___posix_fadvise50 ret: int args: int int netbsd32_off_t netbsd32_off_t int */
 #define	NETBSD32_SYS_netbsd32___posix_fadvise50	416
 
 /* syscall: netbsd32___select50 ret: int args: int netbsd32_fd_setp_t 

CVS commit: src/sys/compat/linux32/arch/amd64

2014-05-04 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun May  4 10:03:55 UTC 2014

Modified Files:
src/sys/compat/linux32/arch/amd64: Makefile

Log Message:
Remove now unneeded bsd.kinc.mk.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/compat/linux32/arch/amd64/Makefile

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

Modified files:

Index: src/sys/compat/linux32/arch/amd64/Makefile
diff -u src/sys/compat/linux32/arch/amd64/Makefile:1.1 src/sys/compat/linux32/arch/amd64/Makefile:1.2
--- src/sys/compat/linux32/arch/amd64/Makefile:1.1	Thu Feb  9 19:18:57 2006
+++ src/sys/compat/linux32/arch/amd64/Makefile	Sun May  4 10:03:55 2014
@@ -1,4 +1,3 @@
-#	$NetBSD: Makefile,v 1.1 2006/02/09 19:18:57 manu Exp $
+#	$NetBSD: Makefile,v 1.2 2014/05/04 10:03:55 njoly Exp $
 
 .include ../../Makefile.inc
-.include bsd.kinc.mk



<    2   3   4   5   6   7   8   9   >