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/sys/arch/hppa/hppa

2011-10-01 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Sat Oct  1 15:50:46 UTC 2011

Modified Files:
src/sys/arch/hppa/hppa: copy.S

Log Message:
fix EXIT label for fusufault, caught by new binutils.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/hppa/hppa/copy.S

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/hppa/hppa/copy.S
diff -u src/sys/arch/hppa/hppa/copy.S:1.18 src/sys/arch/hppa/hppa/copy.S:1.19
--- src/sys/arch/hppa/hppa/copy.S:1.18	Wed Jul  7 01:18:39 2010
+++ src/sys/arch/hppa/hppa/copy.S	Sat Oct  1 15:50:46 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: copy.S,v 1.18 2010/07/07 01:18:39 chs Exp $	*/
+/*	$NetBSD: copy.S,v 1.19 2011/10/01 15:50:46 chs Exp $	*/
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -126,7 +126,7 @@ LEAF_ENTRY_NOPROFILE(fusufault)
 ALTENTRY(fusubadaddr)
 	bv	0(%rp)
 	ldi	-1, %ret0
-EXIT(fusuexit)
+EXIT(fusufault)
 
 FUX(fubyte,   ldb)
 FUX(fusword,  ldh)



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

2011-10-01 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Sat Oct  1 15:51:17 UTC 2011

Modified Files:
src/sys/arch/hp700/dev: pdc.c

Log Message:
PDC_CHASSIS_INFO needs a third parameter, the size of the LCD structure.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/hp700/dev/pdc.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/hp700/dev/pdc.c
diff -u src/sys/arch/hp700/dev/pdc.c:1.39 src/sys/arch/hp700/dev/pdc.c:1.40
--- src/sys/arch/hp700/dev/pdc.c:1.39	Sun Apr 24 16:26:55 2011
+++ src/sys/arch/hp700/dev/pdc.c	Sat Oct  1 15:51:17 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: pdc.c,v 1.39 2011/04/24 16:26:55 rmind Exp $	*/
+/*	$NetBSD: pdc.c,v 1.40 2011/10/01 15:51:17 chs Exp $	*/
 
 /*	$OpenBSD: pdc.c,v 1.14 2001/04/29 21:05:43 mickey Exp $	*/
 
@@ -29,7 +29,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: pdc.c,v 1.39 2011/04/24 16:26:55 rmind Exp $);
+__KERNEL_RCSID(0, $NetBSD: pdc.c,v 1.40 2011/10/01 15:51:17 chs Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -569,7 +569,7 @@ pdcproc_chassis_info(struct pdc_chassis_
 	int err;
 
 	err = pdc_call((iodcio_t)pdc, 0, PDC_CHASSIS, PDC_CHASSIS_INFO,
-	pdcret1, pdcret2);
+	pdcret1, pdcret2 , sizeof(*pcl));
 	if (err  0)
 		return err;
 



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

2011-10-01 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Sat Oct  1 15:51:36 UTC 2011

Modified Files:
src/sys/arch/hp700/dev: elroyreg.h

Log Message:
elroy regs don't need to be packed, makes this work with gcc 4.5.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/hp700/dev/elroyreg.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/hp700/dev/elroyreg.h
diff -u src/sys/arch/hp700/dev/elroyreg.h:1.2 src/sys/arch/hp700/dev/elroyreg.h:1.3
--- src/sys/arch/hp700/dev/elroyreg.h:1.2	Thu Apr 30 07:01:26 2009
+++ src/sys/arch/hp700/dev/elroyreg.h	Sat Oct  1 15:51:36 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: elroyreg.h,v 1.2 2009/04/30 07:01:26 skrll Exp $	*/
+/*	$NetBSD: elroyreg.h,v 1.3 2011/10/01 15:51:36 chs Exp $	*/
 
 /*	$OpenBSD: elroyreg.h,v 1.1 2007/05/21 22:43:38 kettenis Exp $	*/
 
@@ -126,7 +126,7 @@ struct elroy_regs {
 	uint32_t	pad850;
 	uint64_t	res14[123];	/* 0x858 */
 	/*0x1000 */
-} __packed;
+};
 
 /* APIC registers */
 #define	APIC_VERSION	0x01



CVS commit: src/sys

2011-10-01 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Sat Oct  1 15:59:01 UTC 2011

Modified Files:
src/sys/arch/atari/include: disklabel.h
src/sys/arch/atari/stand/edahdi: edahdi.c
src/sys/arch/atari/stand/installboot: disklabel.c
src/sys/arch/atari/stand/tostools/aptck: ahdilbl.h
src/sys/arch/atari/stand/tostools/libtos: ahdilbl.h elf.c
src/sys/arch/atari/vme: if_we_vme.c
src/sys/arch/next68k/next68k: nextrom.c
src/sys/arch/x68k/stand/mboot: mboot.c
src/sys/dev/ic: clmpcc.c

Log Message:
fix build errors with gcc 4.5.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/atari/include/disklabel.h
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/atari/stand/edahdi/edahdi.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/atari/stand/installboot/disklabel.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/atari/stand/tostools/aptck/ahdilbl.h
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/atari/stand/tostools/libtos/ahdilbl.h
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/atari/stand/tostools/libtos/elf.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/atari/vme/if_we_vme.c
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/next68k/next68k/nextrom.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/x68k/stand/mboot/mboot.c
cvs rdiff -u -r1.44 -r1.45 src/sys/dev/ic/clmpcc.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/atari/include/disklabel.h
diff -u src/sys/arch/atari/include/disklabel.h:1.9 src/sys/arch/atari/include/disklabel.h:1.10
--- src/sys/arch/atari/include/disklabel.h:1.9	Tue Aug 30 12:39:53 2011
+++ src/sys/arch/atari/include/disklabel.h	Sat Oct  1 15:59:00 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: disklabel.h,v 1.9 2011/08/30 12:39:53 bouyer Exp $	*/
+/*	$NetBSD: disklabel.h,v 1.10 2011/10/01 15:59:00 chs Exp $	*/
 
 /*
  * Copyright (c) 1995 Leo Weppelman.
@@ -71,7 +71,7 @@ struct bootblock {
 };
 
 struct disklabel;
-#define	BBGETLABEL(bb, dl)	*(dl) = *((struct disklabel *)(bb)-bb_label)
-#define	BBSETLABEL(bb, dl)	*((struct disklabel *)(bb)-bb_label) = *(dl)
+#define	BBGETLABEL(bb, dl)	memcpy((dl), (bb)-bb_label, sizeof (struct disklabel))
+#define	BBSETLABEL(bb, dl)	memcpy((bb)-bb_label, (dl), sizeof (struct disklabel))
 
 #endif /* _MACHINE_DISKLABEL_H_ */

Index: src/sys/arch/atari/stand/edahdi/edahdi.c
diff -u src/sys/arch/atari/stand/edahdi/edahdi.c:1.10 src/sys/arch/atari/stand/edahdi/edahdi.c:1.11
--- src/sys/arch/atari/stand/edahdi/edahdi.c:1.10	Wed Feb 10 14:48:26 2010
+++ src/sys/arch/atari/stand/edahdi/edahdi.c	Sat Oct  1 15:59:00 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: edahdi.c,v 1.10 2010/02/10 14:48:26 roy Exp $	*/
+/*	$NetBSD: edahdi.c,v 1.11 2011/10/01 15:59:00 chs Exp $	*/
 
 /*
  * Copyright (c) 1996 Leo Weppelman, Waldi Ravens.
@@ -413,7 +413,9 @@ ahdi_getparts(fd, ptable, rsec, esec)
 		end = root-ar_parts[AHDI_MAXRPD];
 	else end = root-ar_parts[AHDI_MAXARPD];
 	for (part = root-ar_parts; part  end; ++part) {
-		u_int	id = *((u_int32_t *)part-ap_flg);
+		u_int	id;
+
+		memcpy(id, part-ap_flg, sizeof (id));
 		if (!(id  0x0100))
 			continue;
 		if ((id = 0x00ff) == AHDI_PID_XGM) {
@@ -433,7 +435,7 @@ ahdi_getparts(fd, ptable, rsec, esec)
 goto done;
 			}
 			p = ptable-parts[--i];
-			*((u_int32_t *)p-id) = id  8;
+			memcpy(p-id, id, sizeof (id));
 			p-start = part-ap_st + rsec;
 			p-end   = p-start + part-ap_size - 1;
 			p-rsec  = rsec;

Index: src/sys/arch/atari/stand/installboot/disklabel.c
diff -u src/sys/arch/atari/stand/installboot/disklabel.c:1.5 src/sys/arch/atari/stand/installboot/disklabel.c:1.6
--- src/sys/arch/atari/stand/installboot/disklabel.c:1.5	Sat Mar 14 21:04:07 2009
+++ src/sys/arch/atari/stand/installboot/disklabel.c	Sat Oct  1 15:59:00 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: disklabel.c,v 1.5 2009/03/14 21:04:07 dsl Exp $	*/
+/*	$NetBSD: disklabel.c,v 1.6 2011/10/01 15:59:00 chs Exp $	*/
 
 /*
  * Copyright (c) 1995 Waldi Ravens
@@ -173,8 +173,9 @@ ahdi_label (int fd, u_int32_t *bbsec, st
 	 */
 	for (i = 0; i  al.nparts; ++i) {
 		struct ahdi_part *pd = al.parts[i];
-		u_int id = *((u_int32_t *)pd-ap_flg);
+		u_int id;
 
+		memcpy(id, pd-ap_flg, sizeof (id));
 		if (id == AHDI_PID_NBD || id == AHDI_PID_RAW) {
 			off_t	offs = pd-ap_st * AHDI_BSIZE;
 			if ((e = bsd_label(fd, offs, label))  0)
@@ -214,7 +215,9 @@ ahdi_getparts(fd, rsec, esec, alab)
 		end = root.ar_parts[AHDI_MAXRPD];
 	else end = root.ar_parts[AHDI_MAXARPD];
 	for (part = root.ar_parts; part  end; ++part) {
-		u_int	id = *((u_int32_t *)part-ap_flg);
+		u_int	id;
+
+		memcpy(id, part-ap_flg, sizeof (id));
 		if (!(id  0x0100))
 			continue;
 		if ((id = 0x00ff) == AHDI_PID_XGM) {
@@ -232,7 +235,7 @@ ahdi_getparts(fd, rsec, esec, alab)
 			alab-parts = realloc(alab-parts,
 	(alab-nparts + 1) * sizeof(*alab-parts));
 			p = alab-parts[alab-nparts++];
-			*((u_int32_t *)p-ap_flg) = id;
+			memcpy(p-ap_flg, id, sizeof (id));
 			p-ap_st = part-ap_st + rsec;
 	

CVS commit: src/sys/arch/ia64

2011-10-01 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Sat Oct  1 15:59:28 UTC 2011

Modified Files:
src/sys/arch/ia64/conf: files.ia64
src/sys/arch/ia64/ia64: cpu.c exception.S genassym.cf interrupt.c
locore.S machdep.c sal.c
src/sys/arch/ia64/include: cpu.h param.h types.h

Log Message:
fix build errors with gcc 4.5.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/ia64/conf/files.ia64
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/ia64/ia64/cpu.c \
src/sys/arch/ia64/ia64/genassym.cf
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/ia64/ia64/exception.S
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/ia64/ia64/interrupt.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/ia64/ia64/locore.S
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/ia64/ia64/machdep.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/ia64/ia64/sal.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/ia64/include/cpu.h
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/ia64/include/param.h
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/ia64/include/types.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/ia64/conf/files.ia64
diff -u src/sys/arch/ia64/conf/files.ia64:1.6 src/sys/arch/ia64/conf/files.ia64:1.7
--- src/sys/arch/ia64/conf/files.ia64:1.6	Sun Jun 12 03:35:42 2011
+++ src/sys/arch/ia64/conf/files.ia64	Sat Oct  1 15:59:27 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: files.ia64,v 1.6 2011/06/12 03:35:42 rmind Exp $
+#	$NetBSD: files.ia64,v 1.7 2011/10/01 15:59:27 chs Exp $
 #
 # new style config file for ia64 architecture
 #
@@ -73,6 +73,9 @@ file	dev/md_root.c			memory_disk_hooks
 defpseudo ssccons
 file	arch/ia64/ia64/ssc.c		ssccons			needs-flag
 
+include	dev/i2o/files.i2o
+include	dev/pci/files.pci
+include dev/pci/files.agp
 
 include dev/isa/files.isa		# XXX: Oops, required by acpi
 include dev/apm/files.apm		# XXX: Oops, required by acpi

Index: src/sys/arch/ia64/ia64/cpu.c
diff -u src/sys/arch/ia64/ia64/cpu.c:1.9 src/sys/arch/ia64/ia64/cpu.c:1.10
--- src/sys/arch/ia64/ia64/cpu.c:1.9	Mon Jun 28 12:08:13 2010
+++ src/sys/arch/ia64/ia64/cpu.c	Sat Oct  1 15:59:27 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpu.c,v 1.9 2010/06/28 12:08:13 kiyohara Exp $	*/
+/*	$NetBSD: cpu.c,v 1.10 2011/10/01 15:59:27 chs Exp $	*/
 
 /*
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: cpu.c,v 1.9 2010/06/28 12:08:13 kiyohara Exp $);
+__KERNEL_RCSID(0, $NetBSD: cpu.c,v 1.10 2011/10/01 15:59:27 chs Exp $);
 
 #include sys/param.h
 #include sys/proc.h
@@ -45,6 +45,7 @@ __KERNEL_RCSID(0, $NetBSD: cpu.c,v 1.9 
 #define GHz	(1000L * MHz)
 
 struct cpu_info cpu_info_primary __aligned(CACHE_LINE_SIZE);
+struct cpu_info *cpu_info_list = cpu_info_primary;
 
 struct cpu_softc {
 	device_t sc_dev;		/* device tree glue */
Index: src/sys/arch/ia64/ia64/genassym.cf
diff -u src/sys/arch/ia64/ia64/genassym.cf:1.9 src/sys/arch/ia64/ia64/genassym.cf:1.10
--- src/sys/arch/ia64/ia64/genassym.cf:1.9	Mon Dec 20 00:25:35 2010
+++ src/sys/arch/ia64/ia64/genassym.cf	Sat Oct  1 15:59:28 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: genassym.cf,v 1.9 2010/12/20 00:25:35 matt Exp $
+#	$NetBSD: genassym.cf,v 1.10 2011/10/01 15:59:28 chs Exp $
 
 #
 # Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -90,6 +90,7 @@ include machine/vmparam.h
 include machine/intr.h
 include machine/frame.h
 include machine/types.h
+include machine/pcb.h
 
 ifdef COMPAT_LINUX
 include compat/linux/common/linux_signal.h
@@ -108,6 +109,10 @@ ifdef MULTIPROCESSOR
 include machine/cpu.h
 endif
 
+define	PAGE_SIZE		PAGE_SIZE
+define	PAGE_SHIFT		PAGE_SHIFT
+define	KSTACK_PAGES		KSTACK_PAGES
+
 define	DT_NULL			DT_NULL
 define	DT_RELA			DT_RELA
 define	DT_RELAENT		DT_RELAENT

Index: src/sys/arch/ia64/ia64/exception.S
diff -u src/sys/arch/ia64/ia64/exception.S:1.4 src/sys/arch/ia64/ia64/exception.S:1.5
--- src/sys/arch/ia64/ia64/exception.S:1.4	Mon Jul 20 04:41:37 2009
+++ src/sys/arch/ia64/ia64/exception.S	Sat Oct  1 15:59:27 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: exception.S,v 1.4 2009/07/20 04:41:37 kiyohara Exp $ */
+/*	$NetBSD: exception.S,v 1.5 2011/10/01 15:59:27 chs Exp $ */
 
 /*-
  * Copyright (c) 2003,2004 Marcel Moolenaar
@@ -29,7 +29,6 @@
 
 #include machine/asm.h
 #include machine/pte.h
-#include machine/vmparam.h
 
 #include assym.h
 	

Index: src/sys/arch/ia64/ia64/interrupt.c
diff -u src/sys/arch/ia64/ia64/interrupt.c:1.5 src/sys/arch/ia64/ia64/interrupt.c:1.6
--- src/sys/arch/ia64/ia64/interrupt.c:1.5	Mon Dec 20 00:25:35 2010
+++ src/sys/arch/ia64/ia64/interrupt.c	Sat Oct  1 15:59:28 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: interrupt.c,v 1.5 2010/12/20 00:25:35 matt Exp $ */
+/* $NetBSD: interrupt.c,v 1.6 2011/10/01 15:59:28 chs Exp $ */
 
 /*-
  * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -33,13 +33,14 @@
  */
 
 #include sys/cdefs.h			/* RCS ID  Copyright macro defns */
-__KERNEL_RCSID(0, $NetBSD: interrupt.c,v 1.5 2010/12/20 00:25:35 matt Exp $);

CVS commit: src/sys/arch/evbarm/conf

2011-10-01 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Sat Oct  1 16:02:21 UTC 2011

Modified Files:
src/sys/arch/evbarm/conf: std.iq80310

Log Message:
add missing KERNEL_BASE_EXT.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/evbarm/conf/std.iq80310

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/evbarm/conf/std.iq80310
diff -u src/sys/arch/evbarm/conf/std.iq80310:1.20 src/sys/arch/evbarm/conf/std.iq80310:1.21
--- src/sys/arch/evbarm/conf/std.iq80310:1.20	Sun Jan 27 12:37:11 2008
+++ src/sys/arch/evbarm/conf/std.iq80310	Sat Oct  1 16:02:21 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: std.iq80310,v 1.20 2008/01/27 12:37:11 chris Exp $
+#	$NetBSD: std.iq80310,v 1.21 2011/10/01 16:02:21 chs Exp $
 #
 # standard NetBSD/evbarm for IQ80310 options
 
@@ -16,6 +16,7 @@ options 	EXEC_SCRIPT
 # To support easy transit to ../arch/arm/arm32
 options 	ARM32
 
+options 	KERNEL_BASE_EXT=0xc000
 makeoptions	BOARDTYPE=iq80310
 makeoptions	BOARDMKFRAG=${THISARM}/conf/mk.iq80310
 



CVS commit: src/sys

2011-10-01 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Sat Oct  1 16:06:25 UTC 2011

Modified Files:
src/sys/arch/vax/include: macros.h
src/sys/lib/libkern: libkern.h

Log Message:
use gcc builtin for memset() on vax too.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/vax/include/macros.h
cvs rdiff -u -r1.102 -r1.103 src/sys/lib/libkern/libkern.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/vax/include/macros.h
diff -u src/sys/arch/vax/include/macros.h:1.44 src/sys/arch/vax/include/macros.h:1.45
--- src/sys/arch/vax/include/macros.h:1.44	Thu Nov 22 23:02:05 2007
+++ src/sys/arch/vax/include/macros.h	Sat Oct  1 16:06:24 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: macros.h,v 1.44 2007/11/22 23:02:05 plunky Exp $	*/
+/*	$NetBSD: macros.h,v 1.45 2011/10/01 16:06:24 chs Exp $	*/
 
 /*
  * Copyright (c) 1994, 1998, 2000 Ludd, University of Lule}, Sweden.
@@ -106,7 +106,6 @@ vax_memmove(void *to, const void *from, 
 	return to;
 }
 #define memmove vax_memmove
-#endif
 
 static __inline void *__attribute__((__unused__))
 vax_memset(void *block, int c, size_t len)
@@ -122,6 +121,7 @@ vax_memset(void *block, int c, size_t le
 	return block;
 }
 #define memset vax_memset
+#endif
 
 #ifdef notdef 
 /* XXX - the return syntax of memcmp is wrong */

Index: src/sys/lib/libkern/libkern.h
diff -u src/sys/lib/libkern/libkern.h:1.102 src/sys/lib/libkern/libkern.h:1.103
--- src/sys/lib/libkern/libkern.h:1.102	Thu Sep 29 20:50:09 2011
+++ src/sys/lib/libkern/libkern.h	Sat Oct  1 16:06:24 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: libkern.h,v 1.102 2011/09/29 20:50:09 christos Exp $	*/
+/*	$NetBSD: libkern.h,v 1.103 2011/10/01 16:06:24 chs Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993
@@ -257,12 +257,11 @@ struct mtprng_state {
 void	*memcpy(void *, const void *, size_t);
 int	 memcmp(const void *, const void *, size_t);
 void	*memset(void *, int, size_t);
-#if __GNUC_PREREQ__(2, 95)  (__GNUC_PREREQ__(4, 0) || !defined(__vax__))  \
-!defined(_STANDALONE)
+#if __GNUC_PREREQ__(2, 95)  !defined(_STANDALONE)
 #define	memcpy(d, s, l)		__builtin_memcpy(d, s, l)
 #define	memcmp(a, b, l)		__builtin_memcmp(a, b, l)
 #endif
-#if __GNUC_PREREQ__(2, 95)  !defined(__vax__)  !defined(_STANDALONE)
+#if __GNUC_PREREQ__(2, 95)  !defined(_STANDALONE)
 #define	memset(d, v, l)		__builtin_memset(d, v, l)
 #endif
 



CVS commit: src/sys/sys

2011-10-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct  1 17:39:14 UTC 2011

Modified Files:
src/sys/sys: float_ieee754.h

Log Message:
Define a macro we can use to detect if a port has support for ieeefp


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/sys/float_ieee754.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/sys/float_ieee754.h
diff -u src/sys/sys/float_ieee754.h:1.9 src/sys/sys/float_ieee754.h:1.10
--- src/sys/sys/float_ieee754.h:1.9	Thu Jul  7 14:23:18 2011
+++ src/sys/sys/float_ieee754.h	Sat Oct  1 13:39:14 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: float_ieee754.h,v 1.9 2011/07/07 18:23:18 matt Exp $	*/
+/*	$NetBSD: float_ieee754.h,v 1.10 2011/10/01 17:39:14 christos Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993
@@ -42,6 +42,11 @@
 #include sys/cdefs.h
 #include sys/featuretest.h
 
+/*
+ * feature macro to test for IEEE754
+ */
+#define _FLOAT_IEEE754	1
+
 #ifndef FLT_ROUNDS
 __BEGIN_DECLS
 extern int __flt_rounds(void);



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

2011-10-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct  1 17:54:13 UTC 2011

Modified Files:
src/tests/lib/libc/locale: t_wcstod.c

Log Message:
no more ifdef vax


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/locale/t_wcstod.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/locale/t_wcstod.c
diff -u src/tests/lib/libc/locale/t_wcstod.c:1.1 src/tests/lib/libc/locale/t_wcstod.c:1.2
--- src/tests/lib/libc/locale/t_wcstod.c:1.1	Sat Apr  9 13:45:25 2011
+++ src/tests/lib/libc/locale/t_wcstod.c	Sat Oct  1 13:54:13 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_wcstod.c,v 1.1 2011/04/09 17:45:25 pgoyette Exp $ */
+/* $NetBSD: t_wcstod.c,v 1.2 2011/10/01 17:54:13 christos Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -56,13 +56,14 @@
 #include sys/cdefs.h
 __COPYRIGHT(@(#) Copyright (c) 2011\
  The NetBSD Foundation, inc. All rights reserved.);
-__RCSID($NetBSD: t_wcstod.c,v 1.1 2011/04/09 17:45:25 pgoyette Exp $);
+__RCSID($NetBSD: t_wcstod.c,v 1.2 2011/10/01 17:54:13 christos Exp $);
 
 #include errno.h
 #include math.h
 #include stdlib.h
 #include string.h
 #include wchar.h
+#include float.h
 
 #include atf-c.h
 
@@ -70,7 +71,7 @@ __RCSID($NetBSD: t_wcstod.c,v 1.1 2011/
 #define	ALT_MINUS_HUGE_VAL	-2
 #define	ALT_NAN			-3
 
-#if !defined(__vax__)
+#ifdef _FLOAT_IEEE754
 static struct test {
 	const wchar_t *wcs;
 	size_t len;
@@ -382,7 +383,7 @@ static struct test {
 
 { NULL, 0, 0, 0 }
 };
-#endif /* !defined(__vax__) */
+#endif /* defined(_FLOAT_IEEE754) */
 
 ATF_TC(wcstod);
 ATF_TC_HEAD(wcstod, tc)
@@ -391,12 +392,9 @@ ATF_TC_HEAD(wcstod, tc)
 }
 ATF_TC_BODY(wcstod, tc)
 {
-#if defined(__vax__)
-#else
+#ifdef _FLOAT_IEEE754
 	struct test *t;
-#endif
 
-#if !defined(__vax__)
 	for (t = tests[0]; t-wcs != NULL; ++t) {
 		double d;
 		size_t n;
@@ -443,9 +441,9 @@ ATF_TC_BODY(wcstod, tc)
 
 		(void)printf(\n);
 	}
-#else /* !defined(__vax__) */
-	atf_tc_skip(Test is unavailable on vax.);
-#endif /* !defined(__vax__) */
+#else /* !_FLOAT_IEEE754 */
+	atf_tc_skip(Test is unavailable on this architecture.);
+#endif /* _FLOAT_IEEE754 */
 }
 
 ATF_TP_ADD_TCS(tp)



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

2011-10-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct  1 17:56:11 UTC 2011

Modified Files:
src/tests/lib/libc/locale: t_wcstod.c

Log Message:
Undo previous, Checking for vax is more appropriate.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/locale/t_wcstod.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/locale/t_wcstod.c
diff -u src/tests/lib/libc/locale/t_wcstod.c:1.2 src/tests/lib/libc/locale/t_wcstod.c:1.3
--- src/tests/lib/libc/locale/t_wcstod.c:1.2	Sat Oct  1 13:54:13 2011
+++ src/tests/lib/libc/locale/t_wcstod.c	Sat Oct  1 13:56:11 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_wcstod.c,v 1.2 2011/10/01 17:54:13 christos Exp $ */
+/* $NetBSD: t_wcstod.c,v 1.3 2011/10/01 17:56:11 christos Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -56,14 +56,13 @@
 #include sys/cdefs.h
 __COPYRIGHT(@(#) Copyright (c) 2011\
  The NetBSD Foundation, inc. All rights reserved.);
-__RCSID($NetBSD: t_wcstod.c,v 1.2 2011/10/01 17:54:13 christos Exp $);
+__RCSID($NetBSD: t_wcstod.c,v 1.3 2011/10/01 17:56:11 christos Exp $);
 
 #include errno.h
 #include math.h
 #include stdlib.h
 #include string.h
 #include wchar.h
-#include float.h
 
 #include atf-c.h
 
@@ -71,7 +70,7 @@ __RCSID($NetBSD: t_wcstod.c,v 1.2 2011/
 #define	ALT_MINUS_HUGE_VAL	-2
 #define	ALT_NAN			-3
 
-#ifdef _FLOAT_IEEE754
+#if !defined(__vax__)
 static struct test {
 	const wchar_t *wcs;
 	size_t len;
@@ -383,7 +382,7 @@ static struct test {
 
 { NULL, 0, 0, 0 }
 };
-#endif /* defined(_FLOAT_IEEE754) */
+#endif /* !defined(__vax__) */
 
 ATF_TC(wcstod);
 ATF_TC_HEAD(wcstod, tc)
@@ -392,9 +391,12 @@ ATF_TC_HEAD(wcstod, tc)
 }
 ATF_TC_BODY(wcstod, tc)
 {
-#ifdef _FLOAT_IEEE754
+#if defined(__vax__)
+#else
 	struct test *t;
+#endif
 
+#if !defined(__vax__)
 	for (t = tests[0]; t-wcs != NULL; ++t) {
 		double d;
 		size_t n;
@@ -441,9 +443,9 @@ ATF_TC_BODY(wcstod, tc)
 
 		(void)printf(\n);
 	}
-#else /* !_FLOAT_IEEE754 */
-	atf_tc_skip(Test is unavailable on this architecture.);
-#endif /* _FLOAT_IEEE754 */
+#else /* !defined(__vax__) */
+	atf_tc_skip(Test is unavailable on vax.);
+#endif /* !defined(__vax__) */
 }
 
 ATF_TP_ADD_TCS(tp)



CVS commit: src/tests/include/sys

2011-10-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct  1 18:38:39 UTC 2011

Modified Files:
src/tests/include/sys: t_bitops.c

Log Message:
disable test on the vax until we fix it.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/tests/include/sys/t_bitops.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/include/sys/t_bitops.c
diff -u src/tests/include/sys/t_bitops.c:1.11 src/tests/include/sys/t_bitops.c:1.12
--- src/tests/include/sys/t_bitops.c:1.11	Fri Sep 30 10:50:20 2011
+++ src/tests/include/sys/t_bitops.c	Sat Oct  1 14:38:39 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_bitops.c,v 1.11 2011/09/30 14:50:20 jruoho Exp $ */
+/*	$NetBSD: t_bitops.c,v 1.12 2011/10/01 18:38:39 christos Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: t_bitops.c,v 1.11 2011/09/30 14:50:20 jruoho Exp $);
+__RCSID($NetBSD: t_bitops.c,v 1.12 2011/10/01 18:38:39 christos Exp $);
 
 #include atf-c.h
 
@@ -165,6 +165,9 @@ ATF_TC_HEAD(ilog2_log2, tc)
 
 ATF_TC_BODY(ilog2_log2, tc)
 {
+#ifdef __vax___
+	atf_tc_skip(Test is unavailable on vax because of lack of log2());
+#else
 	double  x, y;
 	uint64_t i;
 
@@ -184,6 +187,7 @@ ATF_TC_BODY(ilog2_log2, tc)
 			ilog2(%PRIu64), i, i);
 		}
 	}
+#endif
 }
 
 ATF_TP_ADD_TCS(tp)



CVS commit: src/external/gpl3/binutils/dist/gas/config

2011-10-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct  1 19:25:25 UTC 2011

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-arm.c

Log Message:
The arm .arm.atpcs section does not have segment information, so skip it.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/binutils/dist/gas/config/tc-arm.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/gpl3/binutils/dist/gas/config/tc-arm.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-arm.c:1.3 src/external/gpl3/binutils/dist/gas/config/tc-arm.c:1.4
--- src/external/gpl3/binutils/dist/gas/config/tc-arm.c:1.3	Sun Sep 25 00:32:37 2011
+++ src/external/gpl3/binutils/dist/gas/config/tc-arm.c	Sat Oct  1 15:25:24 2011
@@ -16133,12 +16133,16 @@ check_it_blocks_finished (void)
   asection *sect;
 
   for (sect = stdoutput-sections; sect != NULL; sect = sect-next)
-if (seg_info (sect)-tc_segment_info_data.current_it.state
-	== MANUAL_IT_BLOCK)
-  {
-	as_warn (_(section '%s' finished with an open IT block.),
-		 sect-name);
-  }
+{
+  segment_info_type *seginfo = seg_info (sect);
+
+  if (seginfo  seginfo-tc_segment_info_data.current_it.state
+	  == MANUAL_IT_BLOCK)
+{
+	  as_warn (_(section '%s' finished with an open IT block.),
+		   sect-name);
+}
+}
 #else
   if (now_it.state == MANUAL_IT_BLOCK)
 as_warn (_(file finished with an open IT block.));



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

2011-10-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct  1 21:47:08 UTC 2011

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

Log Message:
add a missing E


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/gen/t_fpclassify.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_fpclassify.c
diff -u src/tests/lib/libc/gen/t_fpclassify.c:1.2 src/tests/lib/libc/gen/t_fpclassify.c:1.3
--- src/tests/lib/libc/gen/t_fpclassify.c:1.2	Sat Oct  1 13:46:10 2011
+++ src/tests/lib/libc/gen/t_fpclassify.c	Sat Oct  1 17:47:08 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_fpclassify.c,v 1.2 2011/10/01 17:46:10 christos Exp $ */
+/* $NetBSD: t_fpclassify.c,v 1.3 2011/10/01 21:47:08 christos Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 #include stdio.h
 #include string.h
 
-#ifndef _FLOAT_IEE754
+#ifndef _FLOAT_IEEE754
 
 ATF_TC(no_test);
 ATF_TC_HEAD(no_test, tc)



CVS commit: src/usr.bin/time

2011-10-01 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sun Oct  2 01:47:27 UTC 2011

Modified Files:
src/usr.bin/time: time.1

Log Message:
Fix ambiguous/confusing wording.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/usr.bin/time/time.1

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/time/time.1
diff -u src/usr.bin/time/time.1:1.21 src/usr.bin/time/time.1:1.22
--- src/usr.bin/time/time.1:1.21	Sun May 16 07:40:53 2010
+++ src/usr.bin/time/time.1	Sun Oct  2 01:47:27 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: time.1,v 1.21 2010/05/16 07:40:53 dholland Exp $
+.\	$NetBSD: time.1,v 1.22 2011/10/02 01:47:27 dholland Exp $
 .\
 .\ Copyright (c) 1980, 1991, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\
 .\ @(#)time.1	8.1 (Berkeley) 6/6/93
 .\
-.Dd May 16, 2010
+.Dd October 1, 2011
 .Dt TIME 1
 .Os
 .Sh NAME
@@ -38,7 +38,7 @@
 .Sh SYNOPSIS
 .Nm
 .Op Fl clp
-.Ar utility
+.Ar command
 .Op Ar argument ...
 .Sh DESCRIPTION
 The
@@ -46,15 +46,13 @@ The
 utility
 executes and
 times
-.Ar utility .
-After the
-.Ar utility
-finishes,
+.Ar command .
+After the command finishes,
 .Nm
 writes the total time elapsed,
 the time consumed by system overhead,
 and the time used to execute
-.Ar utility
+the command
 to the standard error stream.
 Times are reported in seconds.
 .Pp
@@ -68,8 +66,8 @@ builtin of
 .It Fl l
 Lists resource utilization information.
 The contents of the
-.Ar utility
-process'
+.Ar command
+process's
 .Em rusage
 structure are printed; see below.
 .It Fl p
@@ -124,7 +122,7 @@ voluntary context switches
 involuntary context switches
 .El
 Resource usage is the total for the execution of
-.Ar utility
+.Ar command
 and any child processes it spawns, as per
 .Xr wait4 2 .
 .Sh EXIT STATUS
@@ -138,18 +136,18 @@ An error occurred in the
 utility.
 .It 126
 The
-.Ar utility
+.Ar command
 was found but could not be invoked.
 .It 127
 The
-.Ar utility
+.Ar command
 could not be found.
 .El
 .Pp
 Otherwise, the exit status of
 .Nm
 will be that of
-.Ar utility .
+.Ar command .
 .Sh FILES
 .Bl -tag -width \*[Lt]sys/resource.h\*[Gt] -compact
 .It \*[Lt]sys/resource.h\*[Gt]



CVS commit: src/usr.bin/time

2011-10-01 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sun Oct  2 01:51:00 UTC 2011

Modified Files:
src/usr.bin/time: time.1

Log Message:
Describe the output more accurately, and in the correct order. Noted by
Snader_LB on freenode.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/time/time.1

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/time/time.1
diff -u src/usr.bin/time/time.1:1.22 src/usr.bin/time/time.1:1.23
--- src/usr.bin/time/time.1:1.22	Sun Oct  2 01:47:27 2011
+++ src/usr.bin/time/time.1	Sun Oct  2 01:51:00 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: time.1,v 1.22 2011/10/02 01:47:27 dholland Exp $
+.\	$NetBSD: time.1,v 1.23 2011/10/02 01:51:00 dholland Exp $
 .\
 .\ Copyright (c) 1980, 1991, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -49,10 +49,14 @@ times
 .Ar command .
 After the command finishes,
 .Nm
-writes the total time elapsed,
-the time consumed by system overhead,
-and the time used to execute
-the command
+writes the total elapsed time
+.Pq Dq real ,
+the time spent executing
+.Ar command
+at user level
+.Pq Dq user ,
+and the time spent executing in the operating system kernel
+.Pq Dq sys ,
 to the standard error stream.
 Times are reported in seconds.
 .Pp