CVS commit: xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/mach64

2012-03-25 Thread Joerg Sonnenberger
Module Name:xsrc
Committed By:   joerg
Date:   Sun Mar 25 06:52:42 UTC 2012

Modified Files:
xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/mach64: mach64_dd.c

Log Message:
Be UTF8 clean with the source code.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r1.2 \
xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/mach64/mach64_dd.c

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

Modified files:

Index: xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/mach64/mach64_dd.c
diff -u xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/mach64/mach64_dd.c:1.1.1.3 xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/mach64/mach64_dd.c:1.2
--- xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/mach64/mach64_dd.c:1.1.1.3	Sun May 23 21:22:25 2010
+++ xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/mach64/mach64_dd.c	Sun Mar 25 06:52:42 2012
@@ -66,7 +66,7 @@ static const GLubyte *mach64DDGetString(
 
switch ( name ) {
case GL_VENDOR:
-  return (GLubyte*)Gareth Hughes, Leif Delgass, José Fonseca;
+  return (GLubyte*)Gareth Hughes, Leif Delgass, Jos\xe9 Fonseca;
 
case GL_RENDERER:
  



CVS commit: src

2012-03-25 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sun Mar 25 06:55:20 UTC 2012

Modified Files:
src/lib/csu/common: Makefile.inc
src/sys/conf: Makefile.kern.inc
src/sys/modules: Makefile.assym

Log Message:
Don't pass assembler flags to genassym, it doesn't compile.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/csu/common/Makefile.inc
cvs rdiff -u -r1.154 -r1.155 src/sys/conf/Makefile.kern.inc
cvs rdiff -u -r1.1 -r1.2 src/sys/modules/Makefile.assym

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

Modified files:

Index: src/lib/csu/common/Makefile.inc
diff -u src/lib/csu/common/Makefile.inc:1.6 src/lib/csu/common/Makefile.inc:1.7
--- src/lib/csu/common/Makefile.inc:1.6	Tue Jan 31 20:08:28 2012
+++ src/lib/csu/common/Makefile.inc	Sun Mar 25 06:55:19 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.6 2012/01/31 20:08:28 uwe Exp $
+#	$NetBSD: Makefile.inc,v 1.7 2012/03/25 06:55:19 joerg Exp $
 
 .include bsd.own.mk
 
@@ -68,7 +68,7 @@ gcrt0.o: crt0.S crt0-common.c
 sysident_assym.h: ${GENASSYM_CONF} ${GENASSYM_EXTRAS}
 	${_MKTARGET_CREATE}
 	cat ${COMMON_DIR}/sysident_assym.cf | \
-	${TOOL_GENASSYM} -- ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
+	${TOOL_GENASSYM} -- ${CC} ${CFLAGS:N-Wa,*} ${CPPFLAGS} ${PROF} \
 	 sysident_assym.h.tmp  \
 	mv -f sysident_assym.h.tmp sysident_assym.h
 

Index: src/sys/conf/Makefile.kern.inc
diff -u src/sys/conf/Makefile.kern.inc:1.154 src/sys/conf/Makefile.kern.inc:1.155
--- src/sys/conf/Makefile.kern.inc:1.154	Sun Mar 25 01:56:02 2012
+++ src/sys/conf/Makefile.kern.inc	Sun Mar 25 06:55:20 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.kern.inc,v 1.154 2012/03/25 01:56:02 uebayasi Exp $
+#	$NetBSD: Makefile.kern.inc,v 1.155 2012/03/25 06:55:20 joerg Exp $
 #
 # This file contains common `MI' targets and definitions and it is included
 # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -322,7 +322,7 @@ SYSTEM_LD_TAIL+=${SYSTEM_LD_TAIL_EXTRA}
 assym.h: ${GENASSYM_CONF} ${GENASSYM_EXTRAS}
 	${_MKTARGET_CREATE}
 	cat ${GENASSYM_CONF} ${GENASSYM_EXTRAS} | \
-	${GENASSYM} -- ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
+	${GENASSYM} -- ${CC} ${CFLAGS:N-Wa,*} ${CPPFLAGS} ${PROF} \
 	 assym.h.tmp  \
 	mv -f assym.h.tmp assym.h
 ${MD_SFILES:C/\.[Ss]/.o/} ${SFILES:C/\.[Ss]/.o/}: assym.h
@@ -428,7 +428,7 @@ assym.d: assym.h
 	${_MKTARGET_CREATE}
 	cat ${GENASSYM_CONF} ${GENASSYM_EXTRAS} | \
 	${GENASSYM} -- ${MKDEP} -f assym.dep -- \
-	${CFLAGS} ${CPPFLAGS}
+	${CFLAGS:N-Wa,*} ${CPPFLAGS}
 	${TOOL_SED} -e 's/.*\.o:.*\.c/assym.h:/'  assym.dep ${.TARGET}
 	rm -f assym.dep
 

Index: src/sys/modules/Makefile.assym
diff -u src/sys/modules/Makefile.assym:1.1 src/sys/modules/Makefile.assym:1.2
--- src/sys/modules/Makefile.assym:1.1	Wed Jan 16 12:34:56 2008
+++ src/sys/modules/Makefile.assym	Sun Mar 25 06:55:20 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.assym,v 1.1 2008/01/16 12:34:56 ad Exp $
+#	$NetBSD: Makefile.assym,v 1.2 2012/03/25 06:55:20 joerg Exp $
 
 DPSRCS+=	assym.h
 CLEANFILES+=	assym.h
@@ -22,6 +22,6 @@ GENASSYM_DIR?=
 assym.h:
 #	 ${GENASSYM_DIR}/genassym.cf
 	@echo ${S}
-	${TOOL_GENASSYM} -- ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
+	${TOOL_GENASSYM} -- ${CC} ${CFLAGS:N-Wa,*} ${CPPFLAGS} ${PROF} \
 		 ${GENASSYM_DIR}/genassym.cf  assym.h.tmp  \
 	mv -f assym.h.tmp assym.h



CVS commit: src/tests/lib/libc

2012-03-25 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sun Mar 25 08:17:54 UTC 2012

Modified Files:
src/tests/lib/libc/gen: t_setdomainname.c t_sethostname.c
src/tests/lib/libc/string: t_strcmp.c

Log Message:
Be UTF8 clean.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/gen/t_setdomainname.c
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/gen/t_sethostname.c
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/string/t_strcmp.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/gen/t_setdomainname.c
diff -u src/tests/lib/libc/gen/t_setdomainname.c:1.1 src/tests/lib/libc/gen/t_setdomainname.c:1.2
--- src/tests/lib/libc/gen/t_setdomainname.c:1.1	Fri Jun  3 05:42:09 2011
+++ src/tests/lib/libc/gen/t_setdomainname.c	Sun Mar 25 08:17:54 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: t_setdomainname.c,v 1.1 2011/06/03 05:42:09 jruoho Exp $ */
+/* $NetBSD: t_setdomainname.c,v 1.2 2012/03/25 08:17:54 joerg Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: t_setdomainname.c,v 1.1 2011/06/03 05:42:09 jruoho Exp $);
+__RCSID($NetBSD: t_setdomainname.c,v 1.2 2012/03/25 08:17:54 joerg Exp $);
 
 #include sys/param.h
 
@@ -43,7 +43,7 @@ static char domain[MAXHOSTNAMELEN];
 static const char domains[][MAXHOSTNAMELEN] = {
 	1234567890,
 	abcdefghijklmnopqrst,
-	!#¤%/(..xasS812=!=!(I(!;X;;X.as.dasa=?;,..|**^¨,
+	!#\xa4%/(..xasS812=!=!(I(!;X;;X.as.dasa=?;,..|**^\xa8,
 	
 };
 

Index: src/tests/lib/libc/gen/t_sethostname.c
diff -u src/tests/lib/libc/gen/t_sethostname.c:1.2 src/tests/lib/libc/gen/t_sethostname.c:1.3
--- src/tests/lib/libc/gen/t_sethostname.c:1.2	Thu Jun  2 12:42:27 2011
+++ src/tests/lib/libc/gen/t_sethostname.c	Sun Mar 25 08:17:54 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: t_sethostname.c,v 1.2 2011/06/02 12:42:27 jruoho Exp $ */
+/* $NetBSD: t_sethostname.c,v 1.3 2012/03/25 08:17:54 joerg Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: t_sethostname.c,v 1.2 2011/06/02 12:42:27 jruoho Exp $);
+__RCSID($NetBSD: t_sethostname.c,v 1.3 2012/03/25 08:17:54 joerg Exp $);
 
 #include sys/param.h
 
@@ -43,7 +43,7 @@ static char host[MAXHOSTNAMELEN];
 static const char hosts[][MAXHOSTNAMELEN] = {
 	1234567890,
 	abcdefghijklmnopqrst,
-	!#¤%/(..xasS812=!=!(I(!;X;;X.as.dasa=?;,..|**^¨,
+	!#\xa4%/(..xasS812=!=!(I(!;X;;X.as.dasa=?;,..|**^\xa8,
 	
 };
 

Index: src/tests/lib/libc/string/t_strcmp.c
diff -u src/tests/lib/libc/string/t_strcmp.c:1.3 src/tests/lib/libc/string/t_strcmp.c:1.4
--- src/tests/lib/libc/string/t_strcmp.c:1.3	Thu Jul 14 07:33:20 2011
+++ src/tests/lib/libc/string/t_strcmp.c	Sun Mar 25 08:17:54 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: t_strcmp.c,v 1.3 2011/07/14 07:33:20 jruoho Exp $ */
+/* $NetBSD: t_strcmp.c,v 1.4 2012/03/25 08:17:54 joerg Exp $ */
 
 /*
  * Written by J.T. Conklin j...@acorntoolworks.com
@@ -111,7 +111,7 @@ ATF_TC_BODY(strcmp_simple, tc)
 	ATF_CHECK(strcmp(buf1, buf1) == 0);
 	ATF_CHECK(strcmp(buf2, buf2) == 0);
 
-	ATF_CHECK(strcmp(xöx, xox)  0);
+	ATF_CHECK(strcmp(x\xf6x, xox)  0);
 	ATF_CHECK(strcmp(xxx, xxxyyy)  0);
 	ATF_CHECK(strcmp(xxxyyy, xxx)  0);
 



CVS commit: src/share/man/man4

2012-03-25 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sun Mar 25 08:42:21 UTC 2012

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

Log Message:
Bump date for previous.


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/share/man/man4/usb.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/usb.4
diff -u src/share/man/man4/usb.4:1.97 src/share/man/man4/usb.4:1.98
--- src/share/man/man4/usb.4:1.97	Sun Mar 25 00:11:17 2012
+++ src/share/man/man4/usb.4	Sun Mar 25 08:42:21 2012
@@ -1,6 +1,6 @@
-.\ $NetBSD: usb.4,v 1.97 2012/03/25 00:11:17 nonaka Exp $
+.\ $NetBSD: usb.4,v 1.98 2012/03/25 08:42:21 wiz Exp $
 .\
-.\ Copyright (c) 1999-2008 The NetBSD Foundation, Inc.
+.\ Copyright (c) 1999-2012 The NetBSD Foundation, Inc.
 .\ All rights reserved.
 .\
 .\ This code is derived from software contributed to The NetBSD Foundation
@@ -27,7 +27,7 @@
 .\ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\ POSSIBILITY OF SUCH DAMAGE.
 .\
-.Dd January 22, 2012
+.Dd March 25, 2012
 .Dt USB 4
 .Os
 .Sh NAME



CVS commit: src/share/man/man4

2012-03-25 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sun Mar 25 08:45:02 UTC 2012

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

Log Message:
Fix Dd argument, add serial comma, capitalize NetBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/share/man/man4/urtwn.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/urtwn.4
diff -u src/share/man/man4/urtwn.4:1.1 src/share/man/man4/urtwn.4:1.2
--- src/share/man/man4/urtwn.4:1.1	Sun Mar 25 00:11:17 2012
+++ src/share/man/man4/urtwn.4	Sun Mar 25 08:45:02 2012
@@ -1,4 +1,4 @@
-.\ $NetBSD: urtwn.4,v 1.1 2012/03/25 00:11:17 nonaka Exp $
+.\ $NetBSD: urtwn.4,v 1.2 2012/03/25 08:45:02 wiz Exp $
 .\ $OpenBSD: urtwn.4,v 1.15 2011/11/26 06:39:33 ckuethe Exp $
 .\
 .\ Copyright (c) 2010 Damien Bergamini damien.bergam...@free.fr
@@ -15,7 +15,7 @@
 .\ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 .\ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 .\
-.Dd $Mdocdate: November 26 2011 $
+.Dd March 25, 2012
 .Dt URTWN 4
 .Os
 .Sh NAME
@@ -27,7 +27,7 @@
 The
 .Nm
 driver supports USB 2.0 wireless network devices based on Realtek
-RTL8188CUS, RTL8188CE-VAU, RTL8188RU and RTL8192CU chipsets.
+RTL8188CUS, RTL8188CE-VAU, RTL8188RU, and RTL8192CU chipsets.
 .Pp
 The RTL8188CUS is a highly integrated 802.11n adapter that combines
 a MAC, a 1T1R capable baseband and an RF in a single chip.
@@ -181,7 +181,7 @@ and ported to
 .Nx
 by
 .An NONAKA Kimihiro
-.Aq non...@netbsd.org .
+.Aq non...@netbsd.org .
 .Sh CAVEATS
 The
 .Nm



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

2012-03-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar 25 08:48:40 UTC 2012

Modified Files:
src/sys/arch/sparc/dev: tctrl.c

Log Message:
Make explicitly clear that we mean raw I/O on device passthru, not just
generic passthru.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/arch/sparc/dev/tctrl.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/sparc/dev/tctrl.c
diff -u src/sys/arch/sparc/dev/tctrl.c:1.54 src/sys/arch/sparc/dev/tctrl.c:1.55
--- src/sys/arch/sparc/dev/tctrl.c:1.54	Tue Mar 13 18:40:28 2012
+++ src/sys/arch/sparc/dev/tctrl.c	Sun Mar 25 08:48:40 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: tctrl.c,v 1.54 2012/03/13 18:40:28 elad Exp $	*/
+/*	$NetBSD: tctrl.c,v 1.55 2012/03/25 08:48:40 martin Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2005, 2006 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: tctrl.c,v 1.54 2012/03/13 18:40:28 elad Exp $);
+__KERNEL_RCSID(0, $NetBSD: tctrl.c,v 1.55 2012/03/25 08:48:40 martin Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -1150,7 +1150,7 @@ tctrlioctl(dev_t dev, u_long cmd, void *
 	case TCTRL_CMD_REQ:
 		reqn = (struct tctrl_req *)data;
 		if ((i = kauth_authorize_device_passthru(l-l_cred,
-		dev, KAUTH_REQ_DEVICE_PASSTHRU_ALL, data)) != 0 
+		dev, KAUTH_REQ_DEVICE_RAWIO_PASSTHRU_ALL, data)) != 0 
 		(reqn-cmdbuf[0] == TS102_OP_CTL_BITPORT ||
 		(reqn-cmdbuf[0] = TS102_OP_CTL_WATCHDOG 
 		reqn-cmdbuf[0] = TS102_OP_CTL_SECURITY_KEY) ||



CVS commit: src/sys/conf

2012-03-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar 25 09:15:20 UTC 2012

Modified Files:
src/sys/conf: Makefile.kern.inc

Log Message:
Redo rev 1.154 by using an explicit MKSHNOECHO that does not output anything.


To generate a diff of this commit:
cvs rdiff -u -r1.155 -r1.156 src/sys/conf/Makefile.kern.inc

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

Modified files:

Index: src/sys/conf/Makefile.kern.inc
diff -u src/sys/conf/Makefile.kern.inc:1.155 src/sys/conf/Makefile.kern.inc:1.156
--- src/sys/conf/Makefile.kern.inc:1.155	Sun Mar 25 06:55:20 2012
+++ src/sys/conf/Makefile.kern.inc	Sun Mar 25 09:15:20 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.kern.inc,v 1.155 2012/03/25 06:55:20 joerg Exp $
+#	$NetBSD: Makefile.kern.inc,v 1.156 2012/03/25 09:15:20 martin Exp $
 #
 # This file contains common `MI' targets and definitions and it is included
 # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -37,6 +37,7 @@ GENASSYM?=	${TOOL_GENASSYM:Ugenassym}
 _MKMSG?=		@\#
 _MKSHMSG?=		echo
 _MKSHECHO?=		echo
+_MKSHNOECHO=		:
 _MKMSG_CREATE?=		:
 _MKTARGET_COMPILE?=	:
 _MKTARGET_CREATE?=	:
@@ -136,7 +137,7 @@ COMPILE_CTFCONVERT=	${_MKSHECHO}\
 			${CTFCONVERT} ${CTFFLAGS} ${.TARGET}  \
 			${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
 .else
-COMPILE_CTFCONVERT=
+COMPILE_CTFCONVERT=	${_MKSHNOECHO}
 .endif
 
 # compile rules: rules are named ${TYPE}_${SUFFIX} where TYPE is NORMAL or



CVS commit: src/external/bsd/ipf/dist/lib

2012-03-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar 25 09:50:45 UTC 2012

Modified Files:
src/external/bsd/ipf/dist/lib: printaps.c

Log Message:
PRIu64 is not the right format string for unsigned long long.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/bsd/ipf/dist/lib/printaps.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/ipf/dist/lib/printaps.c
diff -u src/external/bsd/ipf/dist/lib/printaps.c:1.1.1.1 src/external/bsd/ipf/dist/lib/printaps.c:1.2
--- src/external/bsd/ipf/dist/lib/printaps.c:1.1.1.1	Fri Mar 23 21:20:09 2012
+++ src/external/bsd/ipf/dist/lib/printaps.c	Sun Mar 25 09:50:45 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: printaps.c,v 1.1.1.1 2012/03/23 21:20:09 christos Exp $	*/
+/*	$NetBSD: printaps.c,v 1.2 2012/03/25 09:50:45 martin Exp $	*/
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -35,7 +35,7 @@ printaps(aps, opts, proto)
 	PRINTF(\tproxy %s/%d use %d flags %x\n, apr.apr_label,
 		apr.apr_p, apr.apr_ref, apr.apr_flags);
 #ifdef	USE_QUAD_T
-	PRINTF(%PRIu64 pkts %PRIu64, (unsigned long long)ap.aps_bytes,
+	PRINTF(%llu pkts %llu, (unsigned long long)ap.aps_bytes,
 		(unsigned long long)ap.aps_pkts);
 #else
 	PRINTF(%lu pkts %lu, ap.aps_bytes, ap.aps_pkts);



CVS commit: src/doc

2012-03-25 Thread NONAKA Kimihiro
Module Name:src
Committed By:   nonaka
Date:   Sun Mar 25 10:01:06 UTC 2012

Modified Files:
src/doc: CHANGES

Log Message:
fix style.


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

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

Modified files:

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.1688 src/doc/CHANGES:1.1689
--- src/doc/CHANGES:1.1688	Sun Mar 25 00:16:30 2012
+++ src/doc/CHANGES	Sun Mar 25 10:01:06 2012
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			$Revision: 1.1688 $
+# LIST OF CHANGES FROM LAST RELEASE:			$Revision: 1.1689 $
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -35,5 +35,5 @@ Changes from NetBSD 6.0 to NetBSD 7.0:
 	ipf: upgrade to 5.1.1 with new build framework, no module and
 		test support yet [christos 20120323]
 	urtwn(4): Add a driver for Realtek RTL8188CU/RTL8192CU USB IEEE
-	  802.11b/g/n wireless network device, ported from OpenBSD.
-	  [nonaka 20120325]
+		802.11b/g/n wireless network device, ported from OpenBSD.
+		[nonaka 20120325]



CVS commit: [netbsd-6] src/sys/compat/linux/arch/i386

2012-03-25 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Mar 25 11:25:26 UTC 2012

Modified Files:
src/sys/compat/linux/arch/i386 [netbsd-6]: linux_exec.h

Log Message:
Pull up following revision(s) (requested by chs in ticket #140):
sys/compat/linux/arch/i386/linux_exec.h: revision 1.11
define LINUX_DEBUGLINK_SIGNATURE for i386 too.
this allows linux ldd to work.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.10.22.1 src/sys/compat/linux/arch/i386/linux_exec.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/i386/linux_exec.h
diff -u src/sys/compat/linux/arch/i386/linux_exec.h:1.10 src/sys/compat/linux/arch/i386/linux_exec.h:1.10.22.1
--- src/sys/compat/linux/arch/i386/linux_exec.h:1.10	Mon Nov 17 13:03:42 2008
+++ src/sys/compat/linux/arch/i386/linux_exec.h	Sun Mar 25 11:25:26 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_exec.h,v 1.10 2008/11/17 13:03:42 ad Exp $	*/
+/*	$NetBSD: linux_exec.h,v 1.10.22.1 2012/03/25 11:25:26 bouyer Exp $	*/
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -39,6 +39,8 @@
 #define LINUX_ELF_AUX_ARGSIZ 	\
 	(howmany(LINUX_ELF_AUX_ENTRIES * sizeof(Aux32Info), sizeof(Elf32_Addr)))
 
+#define LINUX_DEBUGLINK_SIGNATURE
+
 #ifdef _KERNEL
 int linux_exec_setup_stack(struct lwp *, struct exec_package *);
 #endif



CVS commit: [netbsd-6] src

2012-03-25 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Mar 25 11:29:59 UTC 2012

Modified Files:
src/sys/rump/librump/rumpkern [netbsd-6]: vm.c
src/tests/rump/rumpkern [netbsd-6]: t_vm.c

Log Message:
Pull up following revision(s) (requested by hannken in ticket #141):
tests/rump/rumpkern/t_vm.c: revision 1.3
sys/rump/librump/rumpkern/vm.c: revision 1.125
Don't take a mutex we already took 6 lines above.
Starting with Rev. 1.191 of kern/subr_pool.c a pool has to be inactive
for at least 10 seconds before it can be reclaimed.
Change the uvmwait test timeout from 10 to 30 seconds so it has a chance
to reclaim memory and succeed.


To generate a diff of this commit:
cvs rdiff -u -r1.122 -r1.122.2.1 src/sys/rump/librump/rumpkern/vm.c
cvs rdiff -u -r1.2 -r1.2.8.1 src/tests/rump/rumpkern/t_vm.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/rumpkern/vm.c
diff -u src/sys/rump/librump/rumpkern/vm.c:1.122 src/sys/rump/librump/rumpkern/vm.c:1.122.2.1
--- src/sys/rump/librump/rumpkern/vm.c:1.122	Sun Jan 29 14:57:31 2012
+++ src/sys/rump/librump/rumpkern/vm.c	Sun Mar 25 11:29:59 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: vm.c,v 1.122 2012/01/29 14:57:31 njoly Exp $	*/
+/*	$NetBSD: vm.c,v 1.122.2.1 2012/03/25 11:29:59 bouyer Exp $	*/
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -41,7 +41,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: vm.c,v 1.122 2012/01/29 14:57:31 njoly Exp $);
+__KERNEL_RCSID(0, $NetBSD: vm.c,v 1.122.2.1 2012/03/25 11:29:59 bouyer Exp $);
 
 #include sys/param.h
 #include sys/atomic.h
@@ -1110,7 +1110,6 @@ uvm_pageout(void *arg)
 			rumpuser_dprintf(pagedaemoness: failed to reclaim 
 			memory ... sleeping (deadlock?)\n);
 			cv_timedwait(pdaemoncv, pdaemonmtx, hz);
-			mutex_enter(pdaemonmtx);
 		}
 	}
 

Index: src/tests/rump/rumpkern/t_vm.c
diff -u src/tests/rump/rumpkern/t_vm.c:1.2 src/tests/rump/rumpkern/t_vm.c:1.2.8.1
--- src/tests/rump/rumpkern/t_vm.c:1.2	Mon Jun 14 21:06:09 2010
+++ src/tests/rump/rumpkern/t_vm.c	Sun Mar 25 11:29:59 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_vm.c,v 1.2 2010/06/14 21:06:09 pooka Exp $	*/
+/*	$NetBSD: t_vm.c,v 1.2.8.1 2012/03/25 11:29:59 bouyer Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@ ATF_TC_HEAD(uvmwait, tc)
 {
 
 	atf_tc_set_md_var(tc, descr, Tests that uvm_wait works);
-	atf_tc_set_md_var(tc, timeout, 10);
+	atf_tc_set_md_var(tc, timeout, 30);
 }
 
 #define UVMWAIT_LIMIT 1024*1024



CVS commit: [netbsd-6] src/doc

2012-03-25 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Mar 25 11:30:36 UTC 2012

Modified Files:
src/doc [netbsd-6]: CHANGES-6.0

Log Message:
Tickets 140,141


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.60 -r1.1.2.61 src/doc/CHANGES-6.0

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

Modified files:

Index: src/doc/CHANGES-6.0
diff -u src/doc/CHANGES-6.0:1.1.2.60 src/doc/CHANGES-6.0:1.1.2.61
--- src/doc/CHANGES-6.0:1.1.2.60	Sat Mar 24 16:55:54 2012
+++ src/doc/CHANGES-6.0	Sun Mar 25 11:30:36 2012
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-6.0,v 1.1.2.60 2012/03/24 16:55:54 bouyer Exp $
+# $NetBSD: CHANGES-6.0,v 1.1.2.61 2012/03/25 11:30:36 bouyer Exp $
 
 A complete list of changes from the initial NetBSD 6.0 branch on 15 Feb 2012
 until the 6.0 release:
@@ -1510,3 +1510,16 @@ etc/etc.sparc/Makefile.inc			1.43
 	floppy disks anymore, to unbreak the build.
 	[martin, ticket #139]
 
+sys/compat/linux/arch/i386/linux_exec.h		1.11
+
+	define LINUX_DEBUGLINK_SIGNATURE for i386 too.
+	this allows linux ldd to work.
+	[chs, ticket #140]
+
+sys/rump/librump/rumpkern/vm.c			1.125
+tests/rump/rumpkern/t_vm.c			1.3
+
+	Fix a locking bug in rumpkern.
+	Increase uvmwait test timeout so it has a chance to succeed.
+	[hannken, ticket #141]
+



CVS commit: src/sys/arch/sparc64/sparc64

2012-03-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar 25 13:44:05 UTC 2012

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

Log Message:
Make 32bit kernels compilable


To generate a diff of this commit:
cvs rdiff -u -r1.172 -r1.173 src/sys/arch/sparc64/sparc64/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/sparc64/sparc64/trap.c
diff -u src/sys/arch/sparc64/sparc64/trap.c:1.172 src/sys/arch/sparc64/sparc64/trap.c:1.173
--- src/sys/arch/sparc64/sparc64/trap.c:1.172	Sun Mar 25 01:41:03 2012
+++ src/sys/arch/sparc64/sparc64/trap.c	Sun Mar 25 13:44:04 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: trap.c,v 1.172 2012/03/25 01:41:03 mrg Exp $ */
+/*	$NetBSD: trap.c,v 1.173 2012/03/25 13:44:04 martin Exp $ */
 
 /*
  * Copyright (c) 1996-2002 Eduardo Horvath.  All rights reserved.
@@ -50,7 +50,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: trap.c,v 1.172 2012/03/25 01:41:03 mrg Exp $);
+__KERNEL_RCSID(0, $NetBSD: trap.c,v 1.173 2012/03/25 13:44:04 martin Exp $);
 
 #include opt_ddb.h
 #include opt_multiprocessor.h
@@ -1158,7 +1158,7 @@ kfault:
 /* Disable traptrace for printf */
 trap_trace_dis = 1;
 (void) splhigh();
-printf(cpu%d: data fault: pc=%lx rpc=%lx addr=%lx\n,
+printf(cpu%d: data fault: pc=%lx rpc=%PRIu64 addr=%lx\n,
 cpu_number(), pc, tf-tf_in[7], addr);
 DEBUGGER(type, tf);
 panic(kernel fault);



CVS commit: src/usr.sbin/mtree

2012-03-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 25 16:07:04 UTC 2012

Modified Files:
src/usr.sbin/mtree: verify.c

Log Message:
PR/41061: Steven Drake: mtree -d complains about extra symlinks


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/usr.sbin/mtree/verify.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.sbin/mtree/verify.c
diff -u src/usr.sbin/mtree/verify.c:1.39 src/usr.sbin/mtree/verify.c:1.40
--- src/usr.sbin/mtree/verify.c:1.39	Sat Oct  7 11:35:51 2006
+++ src/usr.sbin/mtree/verify.c	Sun Mar 25 12:07:04 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: verify.c,v 1.39 2006/10/07 15:35:51 elad Exp $	*/
+/*	$NetBSD: verify.c,v 1.40 2012/03/25 16:07:04 christos Exp $	*/
 
 /*-
  * Copyright (c) 1990, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = @(#)verify.c	8.1 (Berkeley) 6/6/93;
 #else
-__RCSID($NetBSD: verify.c,v 1.39 2006/10/07 15:35:51 elad Exp $);
+__RCSID($NetBSD: verify.c,v 1.40 2012/03/25 16:07:04 christos Exp $);
 #endif
 #endif /* not lint */
 
@@ -141,7 +141,7 @@ vwalk(void)
 		if (ep)
 			continue;
  extra:
-		if (!eflag) {
+		if (!eflag  !(dflag  p-fts_info == FTS_SL)) {
 			printf(extra: %s, RP(p));
 			if (rflag) {
 if ((S_ISDIR(p-fts_statp-st_mode)



CVS commit: src/lib/libc/gen

2012-03-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 25 16:31:23 UTC 2012

Modified Files:
src/lib/libc/gen: fnmatch.c

Log Message:
PR/41558: Stathis Kamperis: Treat a backslash followed by NUL as NUL, instead
of a backslash if FNM_NOESCAPE is not set. According to TOG: a backslash in
a pattern followed by any other character, will match that second character
in the string.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/lib/libc/gen/fnmatch.c

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

Modified files:

Index: src/lib/libc/gen/fnmatch.c
diff -u src/lib/libc/gen/fnmatch.c:1.24 src/lib/libc/gen/fnmatch.c:1.25
--- src/lib/libc/gen/fnmatch.c:1.24	Mon Jan 31 14:10:18 2011
+++ src/lib/libc/gen/fnmatch.c	Sun Mar 25 12:31:23 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: fnmatch.c,v 1.24 2011/01/31 19:10:18 christos Exp $	*/
+/*	$NetBSD: fnmatch.c,v 1.25 2012/03/25 16:31:23 christos Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993, 1994
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = @(#)fnmatch.c	8.2 (Berkeley) 4/16/94;
 #else
-__RCSID($NetBSD: fnmatch.c,v 1.24 2011/01/31 19:10:18 christos Exp $);
+__RCSID($NetBSD: fnmatch.c,v 1.25 2012/03/25 16:31:23 christos Exp $);
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -192,7 +192,7 @@ fnmatchx(const char *pattern, const char
 		case '\\':
 			if (!(flags  FNM_NOESCAPE)) {
 if ((c = FOLDCASE(*pattern++, flags)) == EOS) {
-	c = '\\';
+	c = '\0';
 	--pattern;
 }
 			}



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

2012-03-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 25 16:31:51 UTC 2012

Modified Files:
src/tests/lib/libc/gen: t_fnmatch.c

Log Message:
PR/41558 has been fixed.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/gen/t_fnmatch.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/gen/t_fnmatch.c
diff -u src/tests/lib/libc/gen/t_fnmatch.c:1.1 src/tests/lib/libc/gen/t_fnmatch.c:1.2
--- src/tests/lib/libc/gen/t_fnmatch.c:1.1	Sun Mar 18 04:52:07 2012
+++ src/tests/lib/libc/gen/t_fnmatch.c	Sun Mar 25 12:31:51 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: t_fnmatch.c,v 1.1 2012/03/18 08:52:07 jruoho Exp $ */
+/* $NetBSD: t_fnmatch.c,v 1.2 2012/03/25 16:31:51 christos Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: t_fnmatch.c,v 1.1 2012/03/18 08:52:07 jruoho Exp $);
+__RCSID($NetBSD: t_fnmatch.c,v 1.2 2012/03/25 16:31:51 christos Exp $);
 
 #include atf-c.h
 #include fnmatch.h
@@ -50,8 +50,6 @@ ATF_TC_BODY(fnmatch_backslashes, tc)
 {
 	const int rv = fnmatch(/* pattern */ \\, \\, 0);
 
-	atf_tc_expect_fail(PR lib/41558);
-
 	if (rv != FNM_NOMATCH)
 		atf_tc_fail(fnmatch(3) did not translate '\\');
 }



CVS commit: src/bin/ksh

2012-03-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 25 17:23:49 UTC 2012

Modified Files:
src/bin/ksh: exec.c

Log Message:
PR/6764: Charles M. Hannum: `trap 0' does not work in ksh subshells. When
subshells exit normally, use unwind(LEXIT) instead of unwind(LLEAVE) so that
traps get executed.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/bin/ksh/exec.c

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

Modified files:

Index: src/bin/ksh/exec.c
diff -u src/bin/ksh/exec.c:1.14 src/bin/ksh/exec.c:1.15
--- src/bin/ksh/exec.c:1.14	Sun Oct 16 13:12:11 2011
+++ src/bin/ksh/exec.c	Sun Mar 25 13:23:48 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: exec.c,v 1.14 2011/10/16 17:12:11 joerg Exp $	*/
+/*	$NetBSD: exec.c,v 1.15 2012/03/25 17:23:48 christos Exp $	*/
 
 /*
  * execute command tree
@@ -6,7 +6,7 @@
 #include sys/cdefs.h
 
 #ifndef lint
-__RCSID($NetBSD: exec.c,v 1.14 2011/10/16 17:12:11 joerg Exp $);
+__RCSID($NetBSD: exec.c,v 1.15 2012/03/25 17:23:48 christos Exp $);
 #endif
 
 
@@ -457,6 +457,7 @@ comexec(t, tp, ap, flags)
 	int volatile flags;
 {
 	int i;
+	int leave = LLEAVE;
 	volatile int rv = 0;
 	register char *cp;
 	register char **lastp;
@@ -745,10 +746,11 @@ comexec(t, tp, ap, flags)
 		rv = exchild(texec, flags, -1);
 		break;
 	}
+	leave = LEXIT;
   Leave:
 	if (flags  XEXEC) {
 		exstat = rv;
-		unwind(LLEAVE);
+		unwind(leave);
 	}
 	return rv;
 }



CVS commit: src/tests/bin/sh

2012-03-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 25 17:30:59 UTC 2012

Modified Files:
src/tests/bin/sh: t_exit.sh

Log Message:
ksh trap has been fixed.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/bin/sh/t_exit.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/bin/sh/t_exit.sh
diff -u src/tests/bin/sh/t_exit.sh:1.1 src/tests/bin/sh/t_exit.sh:1.2
--- src/tests/bin/sh/t_exit.sh:1.1	Sat Mar 17 12:33:11 2012
+++ src/tests/bin/sh/t_exit.sh	Sun Mar 25 13:30:59 2012
@@ -1,4 +1,4 @@
-# $NetBSD: t_exit.sh,v 1.1 2012/03/17 16:33:11 jruoho Exp $
+# $NetBSD: t_exit.sh,v 1.2 2012/03/25 17:30:59 christos Exp $
 #
 # Copyright (c) 2007 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -64,9 +64,9 @@ trap_subshell_body() {
 
 atf_test_case trap_zero__implicit_exit
 trap_zero__implicit_exit_body() {
+	# PR bin/6764: sh works but ksh does not
 	echo '( trap echo exiting 0 )' helper.sh
 	atf_check -s eq:0 -o match:exiting -e empty /bin/sh helper.sh
-	atf_expect_fail PR bin/6764: sh works but ksh does not
 	atf_check -s eq:0 -o match:exiting -e empty /bin/ksh helper.sh
 }
 



CVS commit: src/bin/sh

2012-03-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 25 18:49:14 UTC 2012

Modified Files:
src/bin/sh: parser.c

Log Message:
PR/43597: Don't break from parsing word tokens in we are in double quotes.
Fixes: sh -c 'echo ${foo:=first-word} second-word'


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/bin/sh/parser.c

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

Modified files:

Index: src/bin/sh/parser.c
diff -u src/bin/sh/parser.c:1.80 src/bin/sh/parser.c:1.81
--- src/bin/sh/parser.c:1.80	Wed Aug 31 12:24:55 2011
+++ src/bin/sh/parser.c	Sun Mar 25 14:49:13 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: parser.c,v 1.80 2011/08/31 16:24:55 plunky Exp $	*/
+/*	$NetBSD: parser.c,v 1.81 2012/03/25 18:49:13 christos Exp $	*/
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = @(#)parser.c	8.7 (Berkeley) 5/16/95;
 #else
-__RCSID($NetBSD: parser.c,v 1.80 2011/08/31 16:24:55 plunky Exp $);
+__RCSID($NetBSD: parser.c,v 1.81 2012/03/25 18:49:13 christos Exp $);
 #endif
 #endif /* not lint */
 
@@ -1108,7 +1108,7 @@ readtoken1(int firstc, char const *syn, 
 			case CEOF:
 goto endword;		/* exit outer loop */
 			default:
-if (varnest == 0)
+if (varnest == 0  !ISDBLQUOTE())
 	goto endword;	/* exit outer loop */
 USTPUTC(c, out);
 			}



CVS commit: src/tests/bin/sh

2012-03-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 25 18:50:19 UTC 2012

Modified Files:
src/tests/bin/sh: t_varquote.sh

Log Message:
PR/43597 was fixed


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/bin/sh/t_varquote.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/bin/sh/t_varquote.sh
diff -u src/tests/bin/sh/t_varquote.sh:1.1 src/tests/bin/sh/t_varquote.sh:1.2
--- src/tests/bin/sh/t_varquote.sh:1.1	Sat Mar 17 12:33:11 2012
+++ src/tests/bin/sh/t_varquote.sh	Sun Mar 25 14:50:19 2012
@@ -1,4 +1,4 @@
-# $NetBSD: t_varquote.sh,v 1.1 2012/03/17 16:33:11 jruoho Exp $
+# $NetBSD: t_varquote.sh,v 1.2 2012/03/25 18:50:19 christos Exp $
 #
 # Copyright (c) 2007 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -68,10 +68,9 @@ all_body() {
 atf_test_case nested_quotes_multiword
 nested_quotes_multiword_head() {
 	atf_set descr Tests that having nested quoting in a multi-word \
-	string works
+	string works (PR bin/43597)
 }
 nested_quotes_multiword_body() {
-	atf_expect_fail PR bin/43597
 	atf_check -s eq:0 -o match:first-word second-word -e empty \
 	/bin/sh -c 'echo ${foo:=first-word} second-word'
 }



CVS commit: src/lib/libc/quad

2012-03-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 25 19:53:19 UTC 2012

Modified Files:
src/lib/libc/quad: floatunditf_ieee754.c

Log Message:
- change from size_t to unsigned int because we don't need the extra width
- cast to unsigned int results of quad ops


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/quad/floatunditf_ieee754.c

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

Modified files:

Index: src/lib/libc/quad/floatunditf_ieee754.c
diff -u src/lib/libc/quad/floatunditf_ieee754.c:1.2 src/lib/libc/quad/floatunditf_ieee754.c:1.3
--- src/lib/libc/quad/floatunditf_ieee754.c:1.2	Fri Jul  8 23:16:40 2011
+++ src/lib/libc/quad/floatunditf_ieee754.c	Sun Mar 25 15:53:18 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: floatunditf_ieee754.c,v 1.2 2011/07/09 03:16:40 matt Exp $	*/
+/*	$NetBSD: floatunditf_ieee754.c,v 1.3 2012/03/25 19:53:18 christos Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = @(#)floatunsdidf.c	8.1 (Berkeley) 6/4/93;
 #else
-__RCSID($NetBSD: floatunditf_ieee754.c,v 1.2 2011/07/09 03:16:40 matt Exp $);
+__RCSID($NetBSD: floatunditf_ieee754.c,v 1.3 2012/03/25 19:53:18 christos Exp $);
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -66,8 +66,8 @@ __floatunditf(u_quad_t x)
 #else
 	union ieee_ext_u extu;
 	quad_t tmp = x;		/* must be signed */
-	size_t width = 64;
-	size_t bit = 0;
+	unsigned int width = 64;
+	unsigned int bit = 0;
 	quad_t mask = ~(quad_t)0;
 
 	if (x == 0)
@@ -87,17 +87,17 @@ __floatunditf(u_quad_t x)
 	x = (bit + 1);
 	extu.extu_sign = 0;
 	extu.extu_exp = EXT_EXP_BIAS + (64 - (bit + 1));
-	extu.extu_frach = x  (64 - EXT_FRACHBITS);
+	extu.extu_frach = (unsigned int)(x  (64 - EXT_FRACHBITS));
 	x = EXT_FRACHBITS;
 #ifdef EXT_FRACHMBITS
-	extu.extu_frachm = x  (64 - EXT_FRACHMBITS);
+	extu.extu_frachm =(unsigned int)(x  (64 - EXT_FRACHMBITS));
 	x = EXT_FRACHMBITS;
 #endif
 #ifdef EXT_FRACLMBITS
-	extu.extu_fraclm = x  (64 - EXT_FRACLMBITS);
+	extu.extu_fraclm =(unsigned int)(x  (64 - EXT_FRACLMBITS));
 	x = EXT_FRACLMBITS;
 #endif
-	extu.extu_fracl = x  (64 - EXT_FRACLBITS);
+	extu.extu_fracl =(unsigned int)(x  (64 - EXT_FRACLBITS));
 
 	return extu.extu_ld;
 #endif



CVS commit: src/lib/libc/gen

2012-03-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 25 19:53:42 UTC 2012

Modified Files:
src/lib/libc/gen: fixunsgen_ieee754.c

Log Message:
cast RHS of = operation to unsigned int


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/gen/fixunsgen_ieee754.c

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

Modified files:

Index: src/lib/libc/gen/fixunsgen_ieee754.c
diff -u src/lib/libc/gen/fixunsgen_ieee754.c:1.2 src/lib/libc/gen/fixunsgen_ieee754.c:1.3
--- src/lib/libc/gen/fixunsgen_ieee754.c:1.2	Wed Aug 31 18:36:36 2011
+++ src/lib/libc/gen/fixunsgen_ieee754.c	Sun Mar 25 15:53:41 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: fixunsgen_ieee754.c,v 1.2 2011/08/31 22:36:36 matt Exp $	*/
+/*	$NetBSD: fixunsgen_ieee754.c,v 1.3 2012/03/25 19:53:41 christos Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993
@@ -36,7 +36,7 @@
 #include sys/cdefs.h
 
 #if !defined(FIXUNSNAME)  defined(LIBC_SCCS)  !defined(lint)
-__RCSID($NetBSD: fixunsgen_ieee754.c,v 1.2 2011/08/31 22:36:36 matt Exp $);
+__RCSID($NetBSD: fixunsgen_ieee754.c,v 1.3 2012/03/25 19:53:41 christos Exp $);
 #endif /* LIBC_SCCS and not lint */
 
 #include stddef.h
@@ -83,7 +83,7 @@ FIXUNSNAME(__fixunsgen)(int exp, bool si
 			 * Shift the current value over and insert the bits
 			 * we want.  We're done.
 			 */
-			tmp = ebits;
+			tmp = (unsigned int)ebits;
 			tmp |= *frac  (fracbits - ebits);
 			break;
 		}
@@ -94,7 +94,7 @@ FIXUNSNAME(__fixunsgen)(int exp, bool si
 			 */
 			tmp = *frac--;
 		} else {
-			tmp = fracbits;
+			tmp = (unsigned int)fracbits;
 			tmp |= *frac--;
 		}
 		ebits -= fracbits;



CVS commit: src/bin/cp

2012-03-25 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sun Mar 25 22:37:08 UTC 2012

Modified Files:
src/bin/cp: cp.1

Log Message:
From patch by Bug Hunting:
- bump the manpage's date (because of the next change);
- note that cp(1) does not preserve hard links (even with `-R'),
  and refer to pax(1) there as well as in the `SEE ALSO' section
  for such functionality (this change is based upon a similar note
  in FreeBSD's version of the manpage);
- change a wording, for more overall consistency.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/bin/cp/cp.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/cp/cp.1
diff -u src/bin/cp/cp.1:1.41 src/bin/cp/cp.1:1.42
--- src/bin/cp/cp.1:1.41	Wed Aug  3 15:44:15 2011
+++ src/bin/cp/cp.1	Sun Mar 25 22:37:08 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: cp.1,v 1.41 2011/08/03 15:44:15 dholland Exp $
+.\	$NetBSD: cp.1,v 1.42 2012/03/25 22:37:08 wiz Exp $
 .\
 .\ Copyright (c) 1989, 1990, 1993, 1994
 .\	The Regents of the University of California.  All rights reserved.
@@ -32,7 +32,7 @@
 .\
 .\	@(#)cp.1	8.3 (Berkeley) 4/18/94
 .\
-.Dd August 3, 2011
+.Dd March 25, 2012
 .Dt CP 1
 .Os
 .Sh NAME
@@ -151,8 +151,15 @@ followed, and for
 to create special files rather than copying them as normal files.
 Created directories have the same mode as the corresponding source
 directory, unmodified by the process's umask.
+.Pp
+Note that
+.Nm
+copies hard linked files as separate files.
+If you need to preserve hard links, consider using a utility like
+.Xr pax 1
+instead.
 .It Fl v
-Cause
+Causes
 .Nm
 to be verbose, showing files as they are copied.
 .El
@@ -219,6 +226,7 @@ discouraged, as it does not correctly co
 or fifo's.
 .Sh SEE ALSO
 .Xr mv 1 ,
+.Xr pax 1 ,
 .Xr rcp 1 ,
 .Xr umask 2 ,
 .Xr fts 3 ,