CVS commit: src/sys/dev

2015-08-17 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Tue Aug 18 04:20:25 UTC 2015

Modified Files:
src/sys/dev: ld.c

Log Message:
Use ENODEV to show that an operation is not supported.


To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/sys/dev/ld.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/ld.c
diff -u src/sys/dev/ld.c:1.90 src/sys/dev/ld.c:1.91
--- src/sys/dev/ld.c:1.90	Mon Aug 17 19:47:21 2015
+++ src/sys/dev/ld.c	Tue Aug 18 04:20:25 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: ld.c,v 1.90 2015/08/17 19:47:21 jakllsch Exp $	*/
+/*	$NetBSD: ld.c,v 1.91 2015/08/18 04:20:25 mlelstv Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: ld.c,v 1.90 2015/08/17 19:47:21 jakllsch Exp $);
+__KERNEL_RCSID(0, $NetBSD: ld.c,v 1.91 2015/08/18 04:20:25 mlelstv Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -495,7 +495,7 @@ ld_dumpblocks(device_t dev, void *va, da
 	struct ld_softc *sc = device_private(dev);
 
 	if (sc-sc_dump == NULL)
-		return (ENXIO);
+		return (ENODEV);
 
 	return (*sc-sc_dump)(sc, va, blkno, nblk);
 }
@@ -588,7 +588,7 @@ ld_discard(device_t dev, off_t pos, off_
 	struct ld_softc *sc = device_private(dev);
 
 	if (sc-sc_discard == NULL)
-		return (ENXIO);
+		return (ENODEV);
 
 	return (*sc-sc_discard)(sc, pos, len);
 }



CVS commit: src/external/gpl3/gdb/dist/gdb

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 08:53:33 UTC 2015

Modified Files:
src/external/gpl3/gdb/dist/gdb: sparcnbsd-nat.c

Log Message:
fix sparc


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gdb/dist/gdb/sparcnbsd-nat.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/gdb/dist/gdb/sparcnbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/sparcnbsd-nat.c:1.7 src/external/gpl3/gdb/dist/gdb/sparcnbsd-nat.c:1.8
--- src/external/gpl3/gdb/dist/gdb/sparcnbsd-nat.c:1.7	Sun Aug 16 05:58:29 2015
+++ src/external/gpl3/gdb/dist/gdb/sparcnbsd-nat.c	Mon Aug 17 04:53:33 2015
@@ -45,25 +45,25 @@ typedef struct fpreg fpregset_t;
 void
 supply_gregset (struct regcache *regcache, const gregset_t *gregs)
 {
-  sparc_supply_gregset (sparc_gregset, regcache, -1, gregs);
+  sparc_supply_gregset (sparc_gregmap, regcache, -1, gregs);
 }
 
 void
 supply_fpregset (struct regcache *regcache, const fpregset_t *fpregs)
 {
-  sparc_supply_fpregset (sparc_fpregset, regcache, -1, fpregs);
+  sparc_supply_fpregset (sparc_fpregmap, regcache, -1, fpregs);
 }
 
 void
 fill_gregset (const struct regcache *regcache, gregset_t *gregs, int regnum)
 {
-  sparc_collect_gregset (sparc_gregset, regcache, regnum, gregs);
+  sparc_collect_gregset (sparc_gregmap, regcache, regnum, gregs);
 }
 
 void
 fill_fpregset (const struct regcache *regcache, fpregset_t *fpregs, int regnum)
 {
-  sparc_collect_fpregset (sparc_fpregset, regcache, regnum, fpregs);
+  sparc_collect_fpregset (sparc_fpregmap, regcache, regnum, fpregs);
 }
 
 static int
@@ -98,12 +98,8 @@ void
 _initialize_sparcnbsd_nat (void)
 {
   struct target_ops *t;
-  sparc_gregset = sparc32nbsd_gregset;
-  sparc_fpregset = sparc32_bsd_fpregset;
-#if 0
   sparc_gregmap = sparc32nbsd_gregmap;
   sparc_fpregmap = sparc32_bsd_fpregmap;
-#endif
 
   /* Add some extra features to the generic SPARC target.  */
   t = sparc_target ();



CVS commit: src/external/gpl3/gdb/dist/gdb

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 09:57:32 UTC 2015

Modified Files:
src/external/gpl3/gdb/dist/gdb: alphanbsd-tdep.c

Log Message:
fix alpha


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/dist/gdb/alphanbsd-tdep.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/gdb/dist/gdb/alphanbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/alphanbsd-tdep.c:1.8 src/external/gpl3/gdb/dist/gdb/alphanbsd-tdep.c:1.9
--- src/external/gpl3/gdb/dist/gdb/alphanbsd-tdep.c:1.8	Sun Aug 16 05:58:29 2015
+++ src/external/gpl3/gdb/dist/gdb/alphanbsd-tdep.c	Mon Aug 17 05:57:31 2015
@@ -341,16 +341,12 @@ alphanbsd_init_abi (struct gdbarch_info 
   tdep-jb_pc = 2;
   tdep-jb_elt_size = 8;
 
-  set_gdbarch_regset_from_core_section
-(gdbarch, alphanbsd_regset_from_core_section);
-
   tramp_frame_prepend_unwinder (gdbarch, alphanbsd_sigtramp_sc1);
   tramp_frame_prepend_unwinder (gdbarch, alphanbsd_sigtramp_si2);
   tramp_frame_prepend_unwinder (gdbarch, alphanbsd_sigtramp_si4);
-#if 0
+
   set_gdbarch_iterate_over_regset_sections
 (gdbarch, alphanbsd_iterate_over_regset_sections);
-#endif
 }
 
 



CVS commit: src/external/gpl3/gdb/dist/gdb

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 10:06:50 UTC 2015

Modified Files:
src/external/gpl3/gdb/dist/gdb: sparc64nbsd-nat.c

Log Message:
fix sparc64


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/dist/gdb/sparc64nbsd-nat.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/gdb/dist/gdb/sparc64nbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/sparc64nbsd-nat.c:1.8 src/external/gpl3/gdb/dist/gdb/sparc64nbsd-nat.c:1.9
--- src/external/gpl3/gdb/dist/gdb/sparc64nbsd-nat.c:1.8	Sun Aug 16 05:58:29 2015
+++ src/external/gpl3/gdb/dist/gdb/sparc64nbsd-nat.c	Mon Aug 17 06:06:50 2015
@@ -141,25 +141,25 @@ sparc64nbsd_fpregset_supplies_p (struct 
 void
 supply_gregset (struct regcache *regcache, const gregset_t *gregs)
 {
-  sparc64nbsd_supply_gregset (sparc_gregset, regcache, -1, gregs);
+  sparc64nbsd_supply_gregset (sparc_gregmap, regcache, -1, gregs);
 }
 
 void
 supply_fpregset (struct regcache *regcache, const fpregset_t *fpregs)
 {
-  sparc64nbsd_supply_fpregset (sparc_fpregset, regcache, -1, fpregs);
+  sparc64nbsd_supply_fpregset (sparc_fpregmap, regcache, -1, fpregs);
 }
 
 void
 fill_gregset (const struct regcache *regcache, gregset_t *gregs, int regnum)
 {
-  sparc64nbsd_collect_gregset (sparc_gregset, regcache, regnum, gregs);
+  sparc64nbsd_collect_gregset (sparc_gregmap, regcache, regnum, gregs);
 }
 
 void
 fill_fpregset (const struct regcache *regcache, fpregset_t *fpregs, int regnum)
 {
-  sparc64nbsd_collect_fpregset (sparc_fpregset, regcache, regnum, fpregs);
+  sparc64nbsd_collect_fpregset (sparc_fpregmap, regcache, regnum, fpregs);
 }
 /* Support for debugging kernel virtual memory images.  */
 



CVS commit: src/share/mk

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 09:08:04 UTC 2015

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
switch m68k to gdb-7.9.1


To generate a diff of this commit:
cvs rdiff -u -r1.865 -r1.866 src/share/mk/bsd.own.mk

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

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.865 src/share/mk/bsd.own.mk:1.866
--- src/share/mk/bsd.own.mk:1.865	Mon Aug 17 04:54:55 2015
+++ src/share/mk/bsd.own.mk	Mon Aug 17 05:08:03 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.865 2015/08/17 08:54:55 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.866 2015/08/17 09:08:03 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -113,6 +113,7 @@ HAVE_LIBGCC_EH?=	yes
 
 .if (${MACHINE_ARCH} == x86_64) || \
 (${MACHINE_ARCH} == sparc) || \
+(${MACHINE_CPU} == m68k) || \
 (${MACHINE_ARCH} == i386)
 HAVE_GDB?=	79
 .else



CVS commit: src/share/mk

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 08:54:55 UTC 2015

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
add sparc


To generate a diff of this commit:
cvs rdiff -u -r1.864 -r1.865 src/share/mk/bsd.own.mk

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

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.864 src/share/mk/bsd.own.mk:1.865
--- src/share/mk/bsd.own.mk:1.864	Mon Aug 17 04:31:45 2015
+++ src/share/mk/bsd.own.mk	Mon Aug 17 04:54:55 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.864 2015/08/17 08:31:45 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.865 2015/08/17 08:54:55 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -112,6 +112,7 @@ HAVE_LIBGCC_EH?=	yes
 .endif
 
 .if (${MACHINE_ARCH} == x86_64) || \
+(${MACHINE_ARCH} == sparc) || \
 (${MACHINE_ARCH} == i386)
 HAVE_GDB?=	79
 .else



CVS commit: src/external/gpl3/gdb/dist/bfd

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 09:06:29 UTC 2015

Modified Files:
src/external/gpl3/gdb/dist/bfd: config.bfd

Log Message:
fix m68k


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/dist/bfd/config.bfd

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/gdb/dist/bfd/config.bfd
diff -u src/external/gpl3/gdb/dist/bfd/config.bfd:1.8 src/external/gpl3/gdb/dist/bfd/config.bfd:1.9
--- src/external/gpl3/gdb/dist/bfd/config.bfd:1.8	Sun Aug 16 05:52:55 2015
+++ src/external/gpl3/gdb/dist/bfd/config.bfd	Mon Aug 17 05:06:29 2015
@@ -895,12 +895,8 @@ case ${targ} in
 targ_underscore=yes
 ;;
   m68*-*-netbsdelf* | m5407-*-netbsdelf*)
-targ_defvec=bfd_elf32_m68k_vec
-targ_selvecs=m68knetbsd_vec m68k4knetbsd_vec hp300bsd_vec sunos_big_vec
-# XXX! WTF
-#  m68*-*-netbsdelf*)
-#targ_defvec=m68k_elf32_vec
-#targ_selvecs=m68k_aout_nbsd_vec m68k_aout_4knbsd_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec
+targ_defvec=m68k_elf32_vec
+targ_selvecs=m68k_aout_nbsd_vec m68k_aout_4knbsd_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec
 ;;
   m68*-*-netbsdaout* | m68*-*-netbsd*)
 targ_defvec=m68k_aout_nbsd_vec



CVS commit: src/share/mk

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 10:12:29 UTC 2015

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
add sun2


To generate a diff of this commit:
cvs rdiff -u -r1.868 -r1.869 src/share/mk/bsd.own.mk

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

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.868 src/share/mk/bsd.own.mk:1.869
--- src/share/mk/bsd.own.mk:1.868	Mon Aug 17 06:06:29 2015
+++ src/share/mk/bsd.own.mk	Mon Aug 17 06:12:29 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.868 2015/08/17 10:06:29 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.869 2015/08/17 10:12:29 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -115,6 +115,7 @@ HAVE_LIBGCC_EH?=	yes
 (${MACHINE_ARCH} == sparc) || \
 (${MACHINE_ARCH} == sparc64) || \
 (${MACHINE_ARCH} == alpha) || \
+(${MACHINE_ARCH} == sun2) || \
 (${MACHINE_CPU} == m68k) || \
 (${MACHINE_ARCH} == i386)
 HAVE_GDB?=	79



CVS commit: src/share/mk

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 10:06:29 UTC 2015

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
switch sparc64 to gdb-7.9.1


To generate a diff of this commit:
cvs rdiff -u -r1.867 -r1.868 src/share/mk/bsd.own.mk

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

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.867 src/share/mk/bsd.own.mk:1.868
--- src/share/mk/bsd.own.mk:1.867	Mon Aug 17 05:58:52 2015
+++ src/share/mk/bsd.own.mk	Mon Aug 17 06:06:29 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.867 2015/08/17 09:58:52 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.868 2015/08/17 10:06:29 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -113,6 +113,7 @@ HAVE_LIBGCC_EH?=	yes
 
 .if (${MACHINE_ARCH} == x86_64) || \
 (${MACHINE_ARCH} == sparc) || \
+(${MACHINE_ARCH} == sparc64) || \
 (${MACHINE_ARCH} == alpha) || \
 (${MACHINE_CPU} == m68k) || \
 (${MACHINE_ARCH} == i386)



CVS commit: src/share/mk

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 09:58:53 UTC 2015

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
switch alpha to gdb-7.9.1


To generate a diff of this commit:
cvs rdiff -u -r1.866 -r1.867 src/share/mk/bsd.own.mk

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

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.866 src/share/mk/bsd.own.mk:1.867
--- src/share/mk/bsd.own.mk:1.866	Mon Aug 17 05:08:03 2015
+++ src/share/mk/bsd.own.mk	Mon Aug 17 05:58:52 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.866 2015/08/17 09:08:03 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.867 2015/08/17 09:58:52 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -113,6 +113,7 @@ HAVE_LIBGCC_EH?=	yes
 
 .if (${MACHINE_ARCH} == x86_64) || \
 (${MACHINE_ARCH} == sparc) || \
+(${MACHINE_ARCH} == alpha) || \
 (${MACHINE_CPU} == m68k) || \
 (${MACHINE_ARCH} == i386)
 HAVE_GDB?=	79



CVS commit: src/share/mk

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 10:16:47 UTC 2015

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
switch vax to gdb-7.9.1


To generate a diff of this commit:
cvs rdiff -u -r1.869 -r1.870 src/share/mk/bsd.own.mk

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

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.869 src/share/mk/bsd.own.mk:1.870
--- src/share/mk/bsd.own.mk:1.869	Mon Aug 17 06:12:29 2015
+++ src/share/mk/bsd.own.mk	Mon Aug 17 06:16:47 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.869 2015/08/17 10:12:29 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.870 2015/08/17 10:16:47 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -116,6 +116,7 @@ HAVE_LIBGCC_EH?=	yes
 (${MACHINE_ARCH} == sparc64) || \
 (${MACHINE_ARCH} == alpha) || \
 (${MACHINE_ARCH} == sun2) || \
+(${MACHINE_ARCH} == vax) || \
 (${MACHINE_CPU} == m68k) || \
 (${MACHINE_ARCH} == i386)
 HAVE_GDB?=	79



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

2015-08-17 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Aug 17 22:20:39 UTC 2015

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

Log Message:
oops: mark ./usr/include/gcc-4.5/omp.h obsolete instead of removing it.


To generate a diff of this commit:
cvs rdiff -u -r1.1982 -r1.1983 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.1982 src/distrib/sets/lists/comp/mi:1.1983
--- src/distrib/sets/lists/comp/mi:1.1982	Mon Aug 17 12:55:49 2015
+++ src/distrib/sets/lists/comp/mi	Mon Aug 17 22:20:39 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.1982 2015/08/17 12:55:49 nonaka Exp $
+#	$NetBSD: mi,v 1.1983 2015/08/17 22:20:39 mrg Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -1938,6 +1938,7 @@
 ./usr/include/g++/vector			comp-cxx-include	gcc,cxx,libstdcxx
 ./usr/include/g++/vector.h			comp-obsolete		obsolete
 ./usr/include/gcc-4.5/mf-runtime.h		comp-gcc-include	obsolete
+./usr/include/gcc-4.5/omp.h			comp-gcc-include	obsolete
 ./usr/include/gcc-4.8/mf-runtime.h		comp-gcc-include	gcc
 ./usr/include/gcc-4.8/omp.h			comp-gcc-include	gcc
 ./usr/include/gelf.hcomp-c-include



CVS commit: src/tests/net/ndp

2015-08-17 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Tue Aug 18 00:58:35 UTC 2015

Modified Files:
src/tests/net/ndp: t_ndp.sh

Log Message:
Make a test a bit easy

Accept just 24h of expiration time in addition to 24h - a few seconds.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/net/ndp/t_ndp.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/net/ndp/t_ndp.sh
diff -u src/tests/net/ndp/t_ndp.sh:1.5 src/tests/net/ndp/t_ndp.sh:1.6
--- src/tests/net/ndp/t_ndp.sh:1.5	Mon Aug 17 07:47:21 2015
+++ src/tests/net/ndp/t_ndp.sh	Tue Aug 18 00:58:35 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: t_ndp.sh,v 1.5 2015/08/17 07:47:21 ozaki-r Exp $
+#	$NetBSD: t_ndp.sh,v 1.6 2015/08/18 00:58:35 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -124,7 +124,7 @@ cache_expiration_body()
 	$DEBUG  rump.ndp -n -a
 	atf_check -s exit:0 -o match:'permanent' rump.ndp -n $IP6SRC
 	# Expired but remains until GC sweaps it (1 day)
-	atf_check -s exit:0 -o match:'23h59m' rump.ndp -n $IP6DST
+	atf_check -s exit:0 -o match:'(1d0h0m|23h59m)' rump.ndp -n $IP6DST
 }
 
 ifdown_dst_server()



CVS commit: src/external/gpl3/gdb/lib

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 12:48:19 UTC 2015

Modified Files:
src/external/gpl3/gdb/lib/libbfd/arch/earm: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/earmhfeb: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/mips64el: bfd-in3.h bfd.h
bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/mipsel: bfd-in3.h bfd.h bfdver.h
config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/powerpc: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/powerpc64: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libdecnumber/arch/earm: gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/earmhfeb: gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/powerpc: gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/powerpc64: gstdint.h
src/external/gpl3/gdb/lib/libgdb/arch/earm: config.h defs.mk init.c
jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/earm/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/earmhfeb: config.h defs.mk init.c
jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/earmhfeb/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/mips64el: config.h defs.mk init.c
jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/mips64el/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/mipsel: config.h defs.mk init.c
jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/mipsel/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/powerpc: config.h defs.mk init.c
jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/powerpc/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64: config.h defs.mk
init.c jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/powerpc64/build-gnulib: config.h
src/external/gpl3/gdb/lib/libiberty/arch/earm: config.h defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/earmhfeb: config.h defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/mips64el: config.h defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/mipsel: config.h defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/powerpc: config.h defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/powerpc64: config.h defs.mk
src/external/gpl3/gdb/lib/libopcodes/arch/earm: config.h
src/external/gpl3/gdb/lib/libopcodes/arch/earmhfeb: config.h
src/external/gpl3/gdb/lib/libopcodes/arch/mips64el: config.h
src/external/gpl3/gdb/lib/libopcodes/arch/mipsel: config.h
src/external/gpl3/gdb/lib/libopcodes/arch/powerpc: config.h
src/external/gpl3/gdb/lib/libopcodes/arch/powerpc64: config.h
src/external/gpl3/gdb/lib/libsim/arch/powerpc: build-config.h cconfig.h
config.h
src/external/gpl3/gdb/lib/libsim/arch/powerpc64: build-config.h
cconfig.h config.h
Added Files:
src/external/gpl3/gdb/lib/libbfd/arch/earmv4: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libdecnumber/arch/earmv4: config.h defs.mk
gstdint.h
src/external/gpl3/gdb/lib/libgdb/arch/earmv4: config.h defs.mk init.c
jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libiberty/arch/earmv4: config.h defs.mk
src/external/gpl3/gdb/lib/libopcodes/arch/earmv4: config.h defs.mk
src/external/gpl3/gdb/lib/libreadline/arch/earmv4: config.h defs.mk

Log Message:
regen some arm, mips, ppc,


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/lib/libbfd/arch/earm/bfd-in3.h \
src/external/gpl3/gdb/lib/libbfd/arch/earm/bfd.h \
src/external/gpl3/gdb/lib/libbfd/arch/earm/bfd_stdint.h \
src/external/gpl3/gdb/lib/libbfd/arch/earm/bfdver.h \
src/external/gpl3/gdb/lib/libbfd/arch/earm/targmatch.h
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/lib/libbfd/arch/earm/config.h
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gdb/lib/libbfd/arch/earm/defs.mk
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gdb/lib/libbfd/arch/earmhfeb/bfd-in3.h \
src/external/gpl3/gdb/lib/libbfd/arch/earmhfeb/bfd.h \
src/external/gpl3/gdb/lib/libbfd/arch/earmhfeb/bfdver.h \

CVS commit: src/external/gpl3/gdb/lib/libgdb/arch

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 13:09:42 UTC 2015

Modified Files:
src/external/gpl3/gdb/lib/libgdb/arch/hppa: config.h defs.mk init.c
jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/hppa/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/mipseb: config.h defs.mk init.c
jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/mipseb/build-gnulib: config.h

Log Message:
regen hppa and mipseb


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/lib/libgdb/arch/hppa/config.h \
src/external/gpl3/gdb/lib/libgdb/arch/hppa/observer.h \
src/external/gpl3/gdb/lib/libgdb/arch/hppa/observer.inc \
src/external/gpl3/gdb/lib/libgdb/arch/hppa/version.c \
src/external/gpl3/gdb/lib/libgdb/arch/hppa/xml-builtin.c
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gdb/lib/libgdb/arch/hppa/defs.mk \
src/external/gpl3/gdb/lib/libgdb/arch/hppa/init.c
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gdb/lib/libgdb/arch/hppa/jit-reader.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gdb/lib/libgdb/arch/hppa/build-gnulib/config.h
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gdb/lib/libgdb/arch/mipseb/config.h
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/lib/libgdb/arch/mipseb/defs.mk
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gdb/lib/libgdb/arch/mipseb/init.c
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gdb/lib/libgdb/arch/mipseb/jit-reader.h
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gdb/lib/libgdb/arch/mipseb/observer.h \
src/external/gpl3/gdb/lib/libgdb/arch/mipseb/observer.inc \
src/external/gpl3/gdb/lib/libgdb/arch/mipseb/version.c \
src/external/gpl3/gdb/lib/libgdb/arch/mipseb/xml-builtin.c
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gdb/lib/libgdb/arch/mipseb/build-gnulib/config.h

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/gdb/lib/libgdb/arch/hppa/config.h
diff -u src/external/gpl3/gdb/lib/libgdb/arch/hppa/config.h:1.3 src/external/gpl3/gdb/lib/libgdb/arch/hppa/config.h:1.4
--- src/external/gpl3/gdb/lib/libgdb/arch/hppa/config.h:1.3	Sun Jun 22 21:04:36 2014
+++ src/external/gpl3/gdb/lib/libgdb/arch/hppa/config.h	Mon Aug 17 09:09:41 2015
@@ -36,7 +36,7 @@
 #define DEFAULT_BFD_ARCH bfd_hppa_arch
 
 /* Define to BFD's default target vector. */
-#define DEFAULT_BFD_VEC bfd_elf32_hppa_nbsd_vec
+#define DEFAULT_BFD_VEC hppa_elf32_nbsd_vec
 
 /* Define to 1 if translation of program messages to the user's native
language is requested. */
@@ -80,9 +80,6 @@
 /* Define to 1 if you have the `btowc' function. */
 #define HAVE_BTOWC 1
 
-/* Define to 1 if you have the `canonicalize_file_name' function. */
-/* #undef HAVE_CANONICALIZE_FILE_NAME */
-
 /* Define to 1 if you have the cursesX.h header file. */
 /* #undef HAVE_CURSESX_H */
 
@@ -164,6 +161,9 @@
 /* Define if sys/procfs.h has gregset_t. */
 /* #undef HAVE_GREGSET_T */
 
+/* Define if Guile interpreter is being linked in. */
+/* #undef HAVE_GUILE */
+
 /* Define if you have the iconv() function. */
 #define HAVE_ICONV 1
 
@@ -227,9 +227,6 @@
 /* Define to 1 if the compiler supports long double. */
 #define HAVE_LONG_DOUBLE 1
 
-/* Define to 1 if you have the `lstat' function. */
-#define HAVE_LSTAT 1
-
 /* Define if sys/procfs.h has lwpid_t. */
 /* #undef HAVE_LWPID_T */
 
@@ -239,6 +236,9 @@
 /* Define to 1 if you have the memory.h header file. */
 #define HAVE_MEMORY_H 1
 
+/* Define to 1 if you have the `mkdtemp' function. */
+#define HAVE_MKDTEMP 1
+
 /* Define to 1 if you have a working `mmap' system call. */
 #define HAVE_MMAP 1
 
@@ -332,18 +332,15 @@
 /* Define if Python interpreter is being linked in. */
 /* #undef HAVE_PYTHON */
 
-/* Define to 1 if you have the `readlink' function. */
-#define HAVE_READLINK 1
-
-/* Define to 1 if you have the `realpath' function. */
-#define HAVE_REALPATH 1
-
 /* Define to 1 if you have the `resize_term' function. */
 /* #undef HAVE_RESIZE_TERM */
 
 /* Define to 1 if you have the `sbrk' function. */
 #define HAVE_SBRK 1
 
+/* Define to 1 if you have the `scm_new_smob' function. */
+/* #undef HAVE_SCM_NEW_SMOB */
+
 /* Define to 1 if you have the `setlocale' function. */
 #define HAVE_SETLOCALE 1
 
@@ -365,6 +362,9 @@
 /* Define to 1 if you have the `sigaction' function. */
 #define HAVE_SIGACTION 1
 
+/* Define to 1 if you have the `sigaltstack' function. */
+#define HAVE_SIGALTSTACK 1
+
 /* Define to 1 if you have the signal.h header file. */
 #define HAVE_SIGNAL_H 1
 
@@ -521,6 +521,9 @@
 /* Define to 1 if you have the `wborder' function. */
 #define HAVE_WBORDER 1
 
+/* Define to 1 if you have the windows.h header file. */
+/* #undef HAVE_WINDOWS_H */
+
 /* Define to 1 if `fork' works. */
 #define HAVE_WORKING_FORK 1
 
Index: 

CVS commit: src/external/gpl3/gdb/lib/libgdb/arch

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 13:26:04 UTC 2015

Modified Files:
src/external/gpl3/gdb/lib/libgdb/arch/sh3eb: config.h defs.mk init.c
jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/sh3el: config.h defs.mk init.c
jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/sh3el/build-gnulib: config.h

Log Message:
regen sh3*


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/config.h \
src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/observer.h \
src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/observer.inc \
src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/version.c \
src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/xml-builtin.c
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/defs.mk
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/init.c
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/jit-reader.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/build-gnulib/config.h
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/lib/libgdb/arch/sh3el/config.h \
src/external/gpl3/gdb/lib/libgdb/arch/sh3el/observer.h \
src/external/gpl3/gdb/lib/libgdb/arch/sh3el/observer.inc \
src/external/gpl3/gdb/lib/libgdb/arch/sh3el/version.c \
src/external/gpl3/gdb/lib/libgdb/arch/sh3el/xml-builtin.c
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gdb/lib/libgdb/arch/sh3el/defs.mk
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gdb/lib/libgdb/arch/sh3el/init.c
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gdb/lib/libgdb/arch/sh3el/jit-reader.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gdb/lib/libgdb/arch/sh3el/build-gnulib/config.h

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/gdb/lib/libgdb/arch/sh3eb/config.h
diff -u src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/config.h:1.3 src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/config.h:1.4
--- src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/config.h:1.3	Sun Jun 22 19:53:02 2014
+++ src/external/gpl3/gdb/lib/libgdb/arch/sh3eb/config.h	Mon Aug 17 09:26:04 2015
@@ -36,7 +36,7 @@
 #define DEFAULT_BFD_ARCH bfd_sh_arch
 
 /* Define to BFD's default target vector. */
-#define DEFAULT_BFD_VEC bfd_elf32_shnbsd_vec
+#define DEFAULT_BFD_VEC sh_elf32_nbsd_vec
 
 /* Define to 1 if translation of program messages to the user's native
language is requested. */
@@ -80,9 +80,6 @@
 /* Define to 1 if you have the `btowc' function. */
 #define HAVE_BTOWC 1
 
-/* Define to 1 if you have the `canonicalize_file_name' function. */
-/* #undef HAVE_CANONICALIZE_FILE_NAME */
-
 /* Define to 1 if you have the cursesX.h header file. */
 /* #undef HAVE_CURSESX_H */
 
@@ -164,6 +161,9 @@
 /* Define if sys/procfs.h has gregset_t. */
 /* #undef HAVE_GREGSET_T */
 
+/* Define if Guile interpreter is being linked in. */
+/* #undef HAVE_GUILE */
+
 /* Define if you have the iconv() function. */
 #define HAVE_ICONV 1
 
@@ -227,9 +227,6 @@
 /* Define to 1 if the compiler supports long double. */
 #define HAVE_LONG_DOUBLE 1
 
-/* Define to 1 if you have the `lstat' function. */
-#define HAVE_LSTAT 1
-
 /* Define if sys/procfs.h has lwpid_t. */
 /* #undef HAVE_LWPID_T */
 
@@ -239,6 +236,9 @@
 /* Define to 1 if you have the memory.h header file. */
 #define HAVE_MEMORY_H 1
 
+/* Define to 1 if you have the `mkdtemp' function. */
+#define HAVE_MKDTEMP 1
+
 /* Define to 1 if you have a working `mmap' system call. */
 #define HAVE_MMAP 1
 
@@ -332,18 +332,15 @@
 /* Define if Python interpreter is being linked in. */
 /* #undef HAVE_PYTHON */
 
-/* Define to 1 if you have the `readlink' function. */
-#define HAVE_READLINK 1
-
-/* Define to 1 if you have the `realpath' function. */
-#define HAVE_REALPATH 1
-
 /* Define to 1 if you have the `resize_term' function. */
 /* #undef HAVE_RESIZE_TERM */
 
 /* Define to 1 if you have the `sbrk' function. */
 #define HAVE_SBRK 1
 
+/* Define to 1 if you have the `scm_new_smob' function. */
+/* #undef HAVE_SCM_NEW_SMOB */
+
 /* Define to 1 if you have the `setlocale' function. */
 #define HAVE_SETLOCALE 1
 
@@ -365,6 +362,9 @@
 /* Define to 1 if you have the `sigaction' function. */
 #define HAVE_SIGACTION 1
 
+/* Define to 1 if you have the `sigaltstack' function. */
+#define HAVE_SIGALTSTACK 1
+
 /* Define to 1 if you have the signal.h header file. */
 #define HAVE_SIGNAL_H 1
 
@@ -521,6 +521,9 @@
 /* Define to 1 if you have the `wborder' function. */
 #define HAVE_WBORDER 1
 
+/* Define to 1 if you have the windows.h header file. */
+/* #undef HAVE_WINDOWS_H */
+
 /* Define to 1 if `fork' works. */
 #define HAVE_WORKING_FORK 1
 
Index: 

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

2015-08-17 Thread NONAKA Kimihiro
Module Name:src
Committed By:   nonaka
Date:   Mon Aug 17 12:55:50 UTC 2015

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

Log Message:
Mark the pci_intr_distribute man page as obsolete.


To generate a diff of this commit:
cvs rdiff -u -r1.1981 -r1.1982 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.1981 src/distrib/sets/lists/comp/mi:1.1982
--- src/distrib/sets/lists/comp/mi:1.1981	Mon Aug 17 06:42:45 2015
+++ src/distrib/sets/lists/comp/mi	Mon Aug 17 12:55:49 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.1981 2015/08/17 06:42:45 knakahara Exp $
+#	$NetBSD: mi,v 1.1982 2015/08/17 12:55:49 nonaka Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -10195,6 +10195,7 @@
 ./usr/share/man/cat9/pci_intr.0			comp-sys-catman		.cat
 ./usr/share/man/cat9/pci_intr_alloc.0		comp-sys-catman		.cat
 ./usr/share/man/cat9/pci_intr_disestablish.0	comp-sys-catman		.cat
+./usr/share/man/cat9/pci_intr_distribute.0	comp-obsolete		obsolete
 ./usr/share/man/cat9/pci_intr_establish.0	comp-sys-catman		.cat
 ./usr/share/man/cat9/pci_intr_evcnt.0		comp-sys-catman		.cat
 ./usr/share/man/cat9/pci_intr_map.0		comp-sys-catman		.cat
@@ -17004,6 +17005,7 @@
 ./usr/share/man/html9/pci_intr.html		comp-sys-htmlman	html
 ./usr/share/man/html9/pci_intr_alloc.html	comp-sys-htmlman	html
 ./usr/share/man/html9/pci_intr_disestablish.html	comp-sys-htmlman	html
+./usr/share/man/html9/pci_intr_distribute.html	comp-obsolete		obsolete
 ./usr/share/man/html9/pci_intr_establish.html	comp-sys-htmlman	html
 ./usr/share/man/html9/pci_intr_evcnt.html	comp-sys-htmlman	html
 ./usr/share/man/html9/pci_intr_map.html		comp-sys-htmlman	html
@@ -23975,6 +23977,7 @@
 ./usr/share/man/man9/pci_intr.9			comp-sys-man		.man
 ./usr/share/man/man9/pci_intr_alloc.9		comp-sys-man		.man
 ./usr/share/man/man9/pci_intr_disestablish.9	comp-sys-man		.man
+./usr/share/man/man9/pci_intr_distribute.9	comp-obsolete		obsolete
 ./usr/share/man/man9/pci_intr_establish.9	comp-sys-man		.man
 ./usr/share/man/man9/pci_intr_evcnt.9		comp-sys-man		.man
 ./usr/share/man/man9/pci_intr_map.9		comp-sys-man		.man



CVS commit: src/external/gpl3/gdb/lib/libgdb/arch/earmv4/build-gnulib

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 13:10:38 UTC 2015

Added Files:
src/external/gpl3/gdb/lib/libgdb/arch/earmv4/build-gnulib: config.h

Log Message:
forgot one earmv4 files


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gdb/lib/libgdb/arch/earmv4/build-gnulib/config.h

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

Added files:

Index: src/external/gpl3/gdb/lib/libgdb/arch/earmv4/build-gnulib/config.h
diff -u /dev/null src/external/gpl3/gdb/lib/libgdb/arch/earmv4/build-gnulib/config.h:1.1
--- /dev/null	Mon Aug 17 09:10:38 2015
+++ src/external/gpl3/gdb/lib/libgdb/arch/earmv4/build-gnulib/config.h	Mon Aug 17 09:10:38 2015
@@ -0,0 +1,1443 @@
+/* This file is automatically generated.  DO NOT EDIT! */
+/* Generated from: NetBSD: mknative-gdb,v 1.6 2013/10/03 18:58:37 christos Exp  */
+/* Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp  */
+
+/* config.h.  Generated from config.in by configure.  */
+/* config.in.  Generated from configure.ac by autoheader.  */
+
+/* Define if building universal (internal helper macro) */
+/* #undef AC_APPLE_UNIVERSAL_BUILD */
+
+/* Define to the number of bits in type 'ptrdiff_t'. */
+/* #undef BITSIZEOF_PTRDIFF_T */
+
+/* Define to the number of bits in type 'sig_atomic_t'. */
+/* #undef BITSIZEOF_SIG_ATOMIC_T */
+
+/* Define to the number of bits in type 'size_t'. */
+/* #undef BITSIZEOF_SIZE_T */
+
+/* Define to the number of bits in type 'wchar_t'. */
+/* #undef BITSIZEOF_WCHAR_T */
+
+/* Define to the number of bits in type 'wint_t'. */
+/* #undef BITSIZEOF_WINT_T */
+
+/* Define to one of '_getb67', 'GETB67', 'getb67' for Cray-2 and Cray-YMP
+   systems. This function is required for 'alloca.c' support on those systems.
+   */
+/* #undef CRAY_STACKSEG_END */
+
+/* Define to 1 if using 'alloca.c'. */
+/* #undef C_ALLOCA */
+
+/* Define as the bit index in the word where to find bit 0 of the exponent of
+   'double'. */
+/* #undef DBL_EXPBIT0_BIT */
+
+/* Define as the word index where to find the exponent of 'double'. */
+/* #undef DBL_EXPBIT0_WORD */
+
+/* the name of the file descriptor member of DIR */
+/* #undef DIR_FD_MEMBER_NAME */
+
+#ifdef DIR_FD_MEMBER_NAME
+# define DIR_TO_FD(Dir_p) ((Dir_p)-DIR_FD_MEMBER_NAME)
+#else
+# define DIR_TO_FD(Dir_p) -1
+#endif
+
+
+/* Define to 1 if // is a file system root distinct from /. */
+/* #undef DOUBLE_SLASH_IS_DISTINCT_ROOT */
+
+/* Define to 1 if realpath() can malloc memory, always gives an absolute path,
+   and handles trailing slash correctly. */
+/* #undef FUNC_REALPATH_WORKS */
+
+/* Define to a C preprocessor expression that evaluates to 1 or 0, depending
+   whether the gnulib module canonicalize-lgpl shall be considered present. */
+#define GNULIB_CANONICALIZE_LGPL 1
+
+/* Define to a C preprocessor expression that evaluates to 1 or 0, depending
+   whether the gnulib module fscanf shall be considered present. */
+#define GNULIB_FSCANF 1
+
+/* Define to a C preprocessor expression that evaluates to 1 or 0, depending
+   whether the gnulib module scanf shall be considered present. */
+#define GNULIB_SCANF 1
+
+/* Define to 1 when the gnulib module canonicalize_file_name should be tested.
+   */
+#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1
+
+/* Define to 1 when the gnulib module chdir should be tested. */
+#define GNULIB_TEST_CHDIR 1
+
+/* Define to 1 when the gnulib module dirfd should be tested. */
+#define GNULIB_TEST_DIRFD 1
+
+/* Define to 1 when the gnulib module frexp should be tested. */
+#define GNULIB_TEST_FREXP 1
+
+/* Define to 1 when the gnulib module frexpl should be tested. */
+#define GNULIB_TEST_FREXPL 1
+
+/* Define to 1 when the gnulib module lstat should be tested. */
+#define GNULIB_TEST_LSTAT 1
+
+/* Define to 1 when the gnulib module malloc-posix should be tested. */
+#define GNULIB_TEST_MALLOC_POSIX 1
+
+/* Define to 1 when the gnulib module mbrtowc should be tested. */
+#define GNULIB_TEST_MBRTOWC 1
+
+/* Define to 1 when the gnulib module mbsinit should be tested. */
+#define GNULIB_TEST_MBSINIT 1
+
+/* Define to 1 when the gnulib module mbsrtowcs should be tested. */
+#define GNULIB_TEST_MBSRTOWCS 1
+
+/* Define to 1 when the gnulib module memchr should be tested. */
+#define GNULIB_TEST_MEMCHR 1
+
+/* Define to 1 when the gnulib module memmem should be tested. */
+#define GNULIB_TEST_MEMMEM 1
+
+/* Define to 1 when the gnulib module readlink should be tested. */
+#define GNULIB_TEST_READLINK 1
+
+/* Define to 1 when the gnulib module realpath should be tested. */
+#define GNULIB_TEST_REALPATH 1
+
+/* Define to 1 when the gnulib module rename should be tested. */
+#define GNULIB_TEST_RENAME 1
+
+/* Define to 1 when the gnulib module rmdir should be tested. */
+#define GNULIB_TEST_RMDIR 1
+
+/* Define to 1 when the gnulib module stat should be tested. */
+#define GNULIB_TEST_STAT 1
+
+/* Define to 1 when the 

CVS commit: src/share/mk

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 12:50:00 UTC 2015

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
switch powerpc to gdb 7.9.1


To generate a diff of this commit:
cvs rdiff -u -r1.870 -r1.871 src/share/mk/bsd.own.mk

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

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.870 src/share/mk/bsd.own.mk:1.871
--- src/share/mk/bsd.own.mk:1.870	Mon Aug 17 06:16:47 2015
+++ src/share/mk/bsd.own.mk	Mon Aug 17 08:50:00 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.870 2015/08/17 10:16:47 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.871 2015/08/17 12:50:00 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -112,6 +112,8 @@ HAVE_LIBGCC_EH?=	yes
 .endif
 
 .if (${MACHINE_ARCH} == x86_64) || \
+(${MACHINE_ARCH} == powerpc) || \
+(${MACHINE_ARCH} == powerpc64) || \
 (${MACHINE_ARCH} == sparc) || \
 (${MACHINE_ARCH} == sparc64) || \
 (${MACHINE_ARCH} == alpha) || \



CVS commit: src/external/gpl3/gdb/lib/libgdb/arch/coldfire

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 13:17:44 UTC 2015

Modified Files:
src/external/gpl3/gdb/lib/libgdb/arch/coldfire: config.h defs.mk init.c
jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/coldfire/build-gnulib: config.h

Log Message:
regen coldfire


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gdb/lib/libgdb/arch/coldfire/config.h \
src/external/gpl3/gdb/lib/libgdb/arch/coldfire/defs.mk \
src/external/gpl3/gdb/lib/libgdb/arch/coldfire/init.c \
src/external/gpl3/gdb/lib/libgdb/arch/coldfire/observer.h \
src/external/gpl3/gdb/lib/libgdb/arch/coldfire/observer.inc \
src/external/gpl3/gdb/lib/libgdb/arch/coldfire/version.c \
src/external/gpl3/gdb/lib/libgdb/arch/coldfire/xml-builtin.c
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gdb/lib/libgdb/arch/coldfire/jit-reader.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gdb/lib/libgdb/arch/coldfire/build-gnulib/config.h

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/gdb/lib/libgdb/arch/coldfire/config.h
diff -u src/external/gpl3/gdb/lib/libgdb/arch/coldfire/config.h:1.3 src/external/gpl3/gdb/lib/libgdb/arch/coldfire/config.h:1.4
--- src/external/gpl3/gdb/lib/libgdb/arch/coldfire/config.h:1.3	Sun Jun 22 23:16:29 2014
+++ src/external/gpl3/gdb/lib/libgdb/arch/coldfire/config.h	Mon Aug 17 09:17:44 2015
@@ -36,7 +36,7 @@
 #define DEFAULT_BFD_ARCH bfd_m68k_arch
 
 /* Define to BFD's default target vector. */
-#define DEFAULT_BFD_VEC bfd_elf32_m68k_vec
+#define DEFAULT_BFD_VEC m68k_elf32_vec
 
 /* Define to 1 if translation of program messages to the user's native
language is requested. */
@@ -80,9 +80,6 @@
 /* Define to 1 if you have the `btowc' function. */
 #define HAVE_BTOWC 1
 
-/* Define to 1 if you have the `canonicalize_file_name' function. */
-/* #undef HAVE_CANONICALIZE_FILE_NAME */
-
 /* Define to 1 if you have the cursesX.h header file. */
 /* #undef HAVE_CURSESX_H */
 
@@ -164,6 +161,9 @@
 /* Define if sys/procfs.h has gregset_t. */
 /* #undef HAVE_GREGSET_T */
 
+/* Define if Guile interpreter is being linked in. */
+/* #undef HAVE_GUILE */
+
 /* Define if you have the iconv() function. */
 #define HAVE_ICONV 1
 
@@ -227,9 +227,6 @@
 /* Define to 1 if the compiler supports long double. */
 #define HAVE_LONG_DOUBLE 1
 
-/* Define to 1 if you have the `lstat' function. */
-#define HAVE_LSTAT 1
-
 /* Define if sys/procfs.h has lwpid_t. */
 /* #undef HAVE_LWPID_T */
 
@@ -239,6 +236,9 @@
 /* Define to 1 if you have the memory.h header file. */
 #define HAVE_MEMORY_H 1
 
+/* Define to 1 if you have the `mkdtemp' function. */
+#define HAVE_MKDTEMP 1
+
 /* Define to 1 if you have a working `mmap' system call. */
 #define HAVE_MMAP 1
 
@@ -332,18 +332,15 @@
 /* Define if Python interpreter is being linked in. */
 /* #undef HAVE_PYTHON */
 
-/* Define to 1 if you have the `readlink' function. */
-#define HAVE_READLINK 1
-
-/* Define to 1 if you have the `realpath' function. */
-#define HAVE_REALPATH 1
-
 /* Define to 1 if you have the `resize_term' function. */
 /* #undef HAVE_RESIZE_TERM */
 
 /* Define to 1 if you have the `sbrk' function. */
 #define HAVE_SBRK 1
 
+/* Define to 1 if you have the `scm_new_smob' function. */
+/* #undef HAVE_SCM_NEW_SMOB */
+
 /* Define to 1 if you have the `setlocale' function. */
 #define HAVE_SETLOCALE 1
 
@@ -365,6 +362,9 @@
 /* Define to 1 if you have the `sigaction' function. */
 #define HAVE_SIGACTION 1
 
+/* Define to 1 if you have the `sigaltstack' function. */
+#define HAVE_SIGALTSTACK 1
+
 /* Define to 1 if you have the signal.h header file. */
 #define HAVE_SIGNAL_H 1
 
@@ -521,6 +521,9 @@
 /* Define to 1 if you have the `wborder' function. */
 #define HAVE_WBORDER 1
 
+/* Define to 1 if you have the windows.h header file. */
+/* #undef HAVE_WINDOWS_H */
+
 /* Define to 1 if `fork' works. */
 #define HAVE_WORKING_FORK 1
 
Index: src/external/gpl3/gdb/lib/libgdb/arch/coldfire/defs.mk
diff -u src/external/gpl3/gdb/lib/libgdb/arch/coldfire/defs.mk:1.3 src/external/gpl3/gdb/lib/libgdb/arch/coldfire/defs.mk:1.4
--- src/external/gpl3/gdb/lib/libgdb/arch/coldfire/defs.mk:1.3	Sun Jun 22 23:16:29 2014
+++ src/external/gpl3/gdb/lib/libgdb/arch/coldfire/defs.mk	Mon Aug 17 09:17:44 2015
@@ -3,5 +3,5 @@
 # Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp 
 #
 G_INTERNAL_CFLAGS=-I. -I${GNUHOSTDIST}/gdb -I${GNUHOSTDIST}/gdb/common -I${GNUHOSTDIST}/gdb/config  -DLOCALEDIR=\/usr/share/locale\ -DHAVE_CONFIG_H -I${GNUHOSTDIST}/gdb/../include/opcode -I${GNUHOSTDIST}/gdb/../opcodes/.. -I${GNUHOSTDIST}/gdb/../readline/..  -I../bfd -I${GNUHOSTDIST}/gdb/../bfd -I${GNUHOSTDIST}/gdb/../include -I../libdecnumber -I${GNUHOSTDIST}/gdb/../libdecnumber  -I./../intl -I${GNUHOSTDIST}/gdb/gnulib/import -Ibuild-gnulib/import 

CVS commit: src/external/gpl3/gdb/dist/bfd

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 12:45:06 UTC 2015

Modified Files:
src/external/gpl3/gdb/dist/bfd: config.bfd

Log Message:
fix mips


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gdb/dist/bfd/config.bfd

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/gdb/dist/bfd/config.bfd
diff -u src/external/gpl3/gdb/dist/bfd/config.bfd:1.9 src/external/gpl3/gdb/dist/bfd/config.bfd:1.10
--- src/external/gpl3/gdb/dist/bfd/config.bfd:1.9	Mon Aug 17 05:06:29 2015
+++ src/external/gpl3/gdb/dist/bfd/config.bfd	Mon Aug 17 08:45:06 2015
@@ -980,16 +980,12 @@ case ${targ} in
 ;;
 #ifdef BFD64
   mips*el-*-netbsd*)
-targ_defvec=bfd_elf32_tradlittlemips_vec
-targ_selvecs=bfd_elf32_tradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_little_vec ecoff_big_vec
-#targ_defvec=mips_elf32_trad_le_vec
-#targ_selvecs=mips_elf32_trad_be_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_le_vec mips_ecoff_be_vec
+targ_defvec=mips_elf32_trad_le_vec
+targ_selvecs=mips_elf32_trad_be_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_le_vec mips_ecoff_be_vec
 ;;
   mips*-*-netbsd*)
-targ_defvec=bfd_elf32_tradbigmips_vec
-targ_selvecs=bfd_elf32_tradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_big_vec ecoff_little_vec
-#targ_defvec=mips_elf32_trad_be_vec
-#targ_selvecs=mips_elf32_trad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec
+targ_defvec=mips_elf32_trad_be_vec
+targ_selvecs=mips_elf32_trad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec
 ;;
 #endif
   mips*-dec-* | mips*el-*-ecoff*)



CVS commit: src/external/gpl3/gdb/lib

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 17:28:37 UTC 2015

Modified Files:
src/external/gpl3/gdb/lib/libbfd/arch/arm: bfd-in3.h bfd.h bfd_stdint.h
bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/armeb: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/coldfire: bfd-in3.h bfd.h
bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/earmeb: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/hppa: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/mips64eb: bfd-in3.h bfd.h
bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/mipseb: bfd-in3.h bfd.h bfdver.h
config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/sh3eb: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/sh3el: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libdecnumber/arch/arm: gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/armeb: gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/earmeb: gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/hppa: gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/sh3eb: gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/sh3el: gstdint.h
src/external/gpl3/gdb/lib/libgdb/arch/arm: config.h defs.mk init.c
jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/arm/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/armeb: config.h defs.mk init.c
jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/armeb/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/earmeb: config.h defs.mk init.c
jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/earmeb/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/mips64eb: config.h defs.mk init.c
jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/mips64eb/build-gnulib: config.h
src/external/gpl3/gdb/lib/libiberty/arch/arm: config.h defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/armeb: config.h defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/coldfire: config.h defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/earmeb: config.h defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/hppa: config.h defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/mips64eb: config.h defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/mipseb: config.h defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/sh3eb: config.h defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/sh3el: config.h defs.mk
src/external/gpl3/gdb/lib/libopcodes/arch/arm: config.h
src/external/gpl3/gdb/lib/libopcodes/arch/armeb: config.h
src/external/gpl3/gdb/lib/libopcodes/arch/coldfire: config.h
src/external/gpl3/gdb/lib/libopcodes/arch/earmeb: config.h
src/external/gpl3/gdb/lib/libopcodes/arch/hppa: config.h
src/external/gpl3/gdb/lib/libopcodes/arch/mips64eb: config.h
src/external/gpl3/gdb/lib/libopcodes/arch/mipseb: config.h
src/external/gpl3/gdb/lib/libopcodes/arch/sh3eb: config.h
src/external/gpl3/gdb/lib/libopcodes/arch/sh3el: config.h

Log Message:
finish all the regen


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/lib/libbfd/arch/arm/bfd-in3.h \
src/external/gpl3/gdb/lib/libbfd/arch/arm/bfd.h \
src/external/gpl3/gdb/lib/libbfd/arch/arm/bfdver.h \
src/external/gpl3/gdb/lib/libbfd/arch/arm/config.h \
src/external/gpl3/gdb/lib/libbfd/arch/arm/defs.mk
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/gdb/lib/libbfd/arch/arm/bfd_stdint.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gdb/lib/libbfd/arch/arm/targmatch.h
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/bfd-in3.h \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/bfd.h \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/bfdver.h \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/config.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/bfd_stdint.h \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/targmatch.h
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gdb/lib/libbfd/arch/armeb/defs.mk
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gdb/lib/libbfd/arch/coldfire/bfd-in3.h \

CVS commit: src/games/worm

2015-08-17 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Mon Aug 17 17:17:01 UTC 2015

Modified Files:
src/games/worm: worm.c

Log Message:
remove cpp abuse


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/games/worm/worm.c

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

Modified files:

Index: src/games/worm/worm.c
diff -u src/games/worm/worm.c:1.30 src/games/worm/worm.c:1.31
--- src/games/worm/worm.c:1.30	Mon May 23 23:03:38 2011
+++ src/games/worm/worm.c	Mon Aug 17 17:17:01 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: worm.c,v 1.30 2011/05/23 23:03:38 joerg Exp $	*/
+/*	$NetBSD: worm.c,v 1.31 2015/08/17 17:17:01 dholland Exp $	*/
 
 /*
  * Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT(@(#) Copyright (c) 1980, 19
 #if 0
 static char sccsid[] = @(#)worm.c	8.1 (Berkeley) 5/31/93;
 #else
-__RCSID($NetBSD: worm.c,v 1.30 2011/05/23 23:03:38 joerg Exp $);
+__RCSID($NetBSD: worm.c,v 1.31 2015/08/17 17:17:01 dholland Exp $);
 #endif
 #endif /* not lint */
 
@@ -56,7 +56,6 @@ __RCSID($NetBSD: worm.c,v 1.30 2011/05/
 #include termios.h
 #include unistd.h
 
-#define newlink() (struct body *) malloc(sizeof (struct body));
 #define HEAD '@'
 #define BODY 'o'
 #define LENGTH 7
@@ -94,6 +93,18 @@ static int rnd(int);
 static void setup(void);
 static void wake(int);
 
+static struct body *
+newlink(void)
+{
+	struct body *b;
+
+	b = malloc(sizeof(*b));
+	if (b == NULL) {
+		err(EXIT_FAILURE, NULL);
+	}
+	return b;
+}
+
 int
 main(int argc, char **argv)
 {
@@ -163,16 +174,12 @@ life(void)
 
 	np = NULL;
 	head = newlink();
-	if (head == NULL)
-		err(1, NULL);
 	head-x = start_len % (COLS-5) + 2;
 	head-y = LINES / 2;
 	head-next = NULL;
 	display(head, HEAD);
 	for (i = 0, bp = head; i  start_len; i++, bp = np) {
 		np = newlink();
-		if (np == NULL)
-			err(1, NULL);
 		np-next = bp;
 		bp-prev = np;
 		if (((bp-x = 2)  (j == 1)) || ((bp-x = COLS-4)  (j == -1))) {
@@ -326,8 +333,6 @@ process(int ch)
 	}
 	else if(ch != ' ') crash();
 	nh = newlink();
-	if (nh == NULL)
-		err(1, NULL);
 	nh-next = NULL;
 	nh-prev = head;
 	head-next = nh;



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

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 17:18:53 UTC 2015

Modified Files:
src/distrib/sets/lists/xdebug: md.evbarm

Log Message:
forgot one.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/distrib/sets/lists/xdebug/md.evbarm

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/xdebug/md.evbarm
diff -u src/distrib/sets/lists/xdebug/md.evbarm:1.7 src/distrib/sets/lists/xdebug/md.evbarm:1.8
--- src/distrib/sets/lists/xdebug/md.evbarm:1.7	Mon Aug 17 12:05:25 2015
+++ src/distrib/sets/lists/xdebug/md.evbarm	Mon Aug 17 13:18:53 2015
@@ -1,6 +1,6 @@
-# $NetBSD: md.evbarm,v 1.7 2015/08/17 16:05:25 christos Exp $
+# $NetBSD: md.evbarm,v 1.8 2015/08/17 17:18:53 christos Exp $
 ./usr/X11R7/lib/modules/extensions/libdbe_g.a		-unknown-	debuglib,xorg
-./usr/X11R7/lib/modules/extensions/libdri2_g.a		-unknown-	debuglib,xorg,obsolete
+./usr/X11R7/lib/modules/extensions/libdri2_g.a		-unknown-	debuglib,xorg
 ./usr/X11R7/lib/modules/extensions/libdri_g.a		-unknown-	debuglib,xorg
 ./usr/X11R7/lib/modules/extensions/libextmod_g.a	-unknown-	debuglib,xorg
 ./usr/X11R7/lib/modules/extensions/libglx_g.a		-unknown-	debuglib,xorg



CVS commit: src/share/mk

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 17:36:06 UTC 2015

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
switch everyone to gdb 7.9.1


To generate a diff of this commit:
cvs rdiff -u -r1.871 -r1.872 src/share/mk/bsd.own.mk

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

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.871 src/share/mk/bsd.own.mk:1.872
--- src/share/mk/bsd.own.mk:1.871	Mon Aug 17 08:50:00 2015
+++ src/share/mk/bsd.own.mk	Mon Aug 17 13:36:06 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.871 2015/08/17 12:50:00 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.872 2015/08/17 17:36:06 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -111,20 +111,7 @@ HAVE_LIBGCC_EH?=	no
 HAVE_LIBGCC_EH?=	yes
 .endif
 
-.if (${MACHINE_ARCH} == x86_64) || \
-(${MACHINE_ARCH} == powerpc) || \
-(${MACHINE_ARCH} == powerpc64) || \
-(${MACHINE_ARCH} == sparc) || \
-(${MACHINE_ARCH} == sparc64) || \
-(${MACHINE_ARCH} == alpha) || \
-(${MACHINE_ARCH} == sun2) || \
-(${MACHINE_ARCH} == vax) || \
-(${MACHINE_CPU} == m68k) || \
-(${MACHINE_ARCH} == i386)
 HAVE_GDB?=	79
-.else
-HAVE_GDB?=	7
-.endif
 
 .if (${MACHINE_ARCH} == alpha) || \
 (${MACHINE_ARCH} == hppa) || \



CVS commit: src/usr.sbin/intrctl

2015-08-17 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Mon Aug 17 17:47:22 UTC 2015

Modified Files:
src/usr.sbin/intrctl: intrctl.8

Log Message:
Fix a typo. Sort commands. End list correctly.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/intrctl/intrctl.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/intrctl/intrctl.8
diff -u src/usr.sbin/intrctl/intrctl.8:1.1 src/usr.sbin/intrctl/intrctl.8:1.2
--- src/usr.sbin/intrctl/intrctl.8:1.1	Mon Aug 17 06:50:03 2015
+++ src/usr.sbin/intrctl/intrctl.8	Mon Aug 17 17:47:22 2015
@@ -1,4 +1,4 @@
-.\ $NetBSD: intrctl.8,v 1.1 2015/08/17 06:50:03 knakahara Exp $
+.\ $NetBSD: intrctl.8,v 1.2 2015/08/17 17:47:22 wiz Exp $
 .\
 .\ Copyright (c) 2015 Internet Initiative Japan Inc.
 .\ All rights reserved.
@@ -37,7 +37,7 @@
 .Sh DESCRIPTION
 The
 .Nm
-command can be used to control and inspect the state of intrerupts
+command can be used to control and inspect the state of interrupts
 in the system.
 .Pp
 The first argument,
@@ -45,9 +45,6 @@ The first argument,
 specifies the action to take.
 Valid commands are:
 .Bl -tag -width XofflineXcpunoX
-.It list
-for each intrid in the system, display interrupt counts per CPU.
-The intrid is an interrupt name such as ioapic0 pin 22 for x86.
 .It affinity Fl c Ar cpu_index Fl i Ar intrid
 set an
 .Ar intrid
@@ -59,12 +56,15 @@ enable to set an interrupt's affinity to
 If
 .Ar cpu_index
 is already enabled, this command has no effect.
+.It list
+for each intrid in the system, display interrupt counts per CPU.
+The intrid is an interrupt name such as ioapic0 pin 22 for x86.
 .It nointr Fl c Ar cpu_index
 disable to set an interrupt's affinity to
 .Ar cpu_index .
 If
 .Ar cpu_index
 is already disabled, this command has no effect.
-.Ed
+.El
 .Sh SEE ALSO
 .Xr cpuctl 8



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

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 16:31:15 UTC 2015

Modified Files:
src/distrib/sets/lists/xdebug: md.evbarm.armeb

Log Message:
fix sets.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/distrib/sets/lists/xdebug/md.evbarm.armeb

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/xdebug/md.evbarm.armeb
diff -u src/distrib/sets/lists/xdebug/md.evbarm.armeb:1.4 src/distrib/sets/lists/xdebug/md.evbarm.armeb:1.5
--- src/distrib/sets/lists/xdebug/md.evbarm.armeb:1.4	Sat Jul 18 04:56:06 2015
+++ src/distrib/sets/lists/xdebug/md.evbarm.armeb	Mon Aug 17 12:31:15 2015
@@ -1,18 +1,18 @@
-# $NetBSD: md.evbarm.armeb,v 1.4 2015/07/18 08:56:06 mrg Exp $
-./usr/X11R7/lib/modules/extensions/libdbe_g.a		-unknown-	debuglib,xorg,obsolete
+# $NetBSD: md.evbarm.armeb,v 1.5 2015/08/17 16:31:15 christos Exp $
+./usr/X11R7/lib/modules/extensions/libdbe_g.a		-unknown-	debuglib,xorg
 ./usr/X11R7/lib/modules/extensions/libdri2_g.a		-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/extensions/libdri_g.a		-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/extensions/libextmod_g.a	-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/extensions/libglx_g.a		-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/extensions/librecord_g.a	-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/extensions/libshadow_g.a	-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/libexa_g.a			-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/libfb_g.a			-unknown-	debuglib,xorg,obsolete
+./usr/X11R7/lib/modules/extensions/libdri_g.a		-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/extensions/libextmod_g.a	-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/extensions/libglx_g.a		-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/extensions/librecord_g.a	-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/extensions/libshadow_g.a	-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libexa_g.a			-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libfb_g.a			-unknown-	debuglib,xorg
 ./usr/X11R7/lib/modules/libi2c_g.a			-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/libshadowfb_g.a			-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/libvbe_g.a			-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/libvgahw_g.a			-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/libxaa_g.a			-unknown-	debuglib,xorg,obsolete
+./usr/X11R7/lib/modules/libshadowfb_g.a			-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libvbe_g.a			-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libvgahw_g.a			-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libxaa_g.a			-unknown-	debuglib,xorg
 ./usr/X11R7/lib/modules/libxf8_16bpp_g.a		-unknown-	obsolete
 ./usr/libdata/debug/usr/X11R7/bin/Xorg.debug	-unknown-	xorg,debug
 ./usr/libdata/debug/usr/X11R7/bin/cvt.debug	-unknown-	xorg,debug



CVS commit: src/distrib/sets/lists

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 16:05:25 UTC 2015

Modified Files:
src/distrib/sets/lists/xdebug: md.evbarm
Added Files:
src/distrib/sets/lists/xcomp: md.evbarm

Log Message:
fix debug and lint sets for evbarm/arm


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.2 src/distrib/sets/lists/xcomp/md.evbarm
cvs rdiff -u -r1.6 -r1.7 src/distrib/sets/lists/xdebug/md.evbarm

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/xdebug/md.evbarm
diff -u src/distrib/sets/lists/xdebug/md.evbarm:1.6 src/distrib/sets/lists/xdebug/md.evbarm:1.7
--- src/distrib/sets/lists/xdebug/md.evbarm:1.6	Sat Jul 18 04:56:06 2015
+++ src/distrib/sets/lists/xdebug/md.evbarm	Mon Aug 17 12:05:25 2015
@@ -1,18 +1,18 @@
-# $NetBSD: md.evbarm,v 1.6 2015/07/18 08:56:06 mrg Exp $
-./usr/X11R7/lib/modules/extensions/libdbe_g.a		-unknown-	debuglib,xorg,obsolete
+# $NetBSD: md.evbarm,v 1.7 2015/08/17 16:05:25 christos Exp $
+./usr/X11R7/lib/modules/extensions/libdbe_g.a		-unknown-	debuglib,xorg
 ./usr/X11R7/lib/modules/extensions/libdri2_g.a		-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/extensions/libdri_g.a		-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/extensions/libextmod_g.a	-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/extensions/libglx_g.a		-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/extensions/librecord_g.a	-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/extensions/libshadow_g.a	-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/libexa_g.a			-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/libfb_g.a			-unknown-	debuglib,xorg,obsolete
+./usr/X11R7/lib/modules/extensions/libdri_g.a		-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/extensions/libextmod_g.a	-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/extensions/libglx_g.a		-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/extensions/librecord_g.a	-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/extensions/libshadow_g.a	-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libexa_g.a			-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libfb_g.a			-unknown-	debuglib,xorg
 ./usr/X11R7/lib/modules/libi2c_g.a			-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/libshadowfb_g.a			-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/libvbe_g.a			-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/libvgahw_g.a			-unknown-	debuglib,xorg,obsolete
-./usr/X11R7/lib/modules/libxaa_g.a			-unknown-	debuglib,xorg,obsolete
+./usr/X11R7/lib/modules/libshadowfb_g.a			-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libvbe_g.a			-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libvgahw_g.a			-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libxaa_g.a			-unknown-	debuglib,xorg
 ./usr/X11R7/lib/modules/libxf8_16bpp_g.a		-unknown-	obsolete
 ./usr/libdata/debug/usr/X11R7/bin/Xorg.debug	-unknown-	xorg,debug
 ./usr/libdata/debug/usr/X11R7/bin/cvt.debug	-unknown-	xorg,debug

Added files:

Index: src/distrib/sets/lists/xcomp/md.evbarm
diff -u /dev/null src/distrib/sets/lists/xcomp/md.evbarm:1.2
--- /dev/null	Mon Aug 17 12:05:25 2015
+++ src/distrib/sets/lists/xcomp/md.evbarm	Mon Aug 17 12:05:25 2015
@@ -0,0 +1,14 @@
+# $NetBSD: md.evbarm,v 1.2 2015/08/17 16:05:25 christos Exp $
+./usr/libdata/lint/llib-ldbe.ln		-unknown-	lint,xorg
+./usr/libdata/lint/llib-ldri.ln		-unknown-	lint,xorg
+./usr/libdata/lint/llib-ldri2.ln	-unknown-	lint,xorg
+./usr/libdata/lint/llib-lexa.ln		-unknown-	lint,xorg
+./usr/libdata/lint/llib-lextmod.ln	-unknown-	lint,xorg
+./usr/libdata/lint/llib-lfb.ln		-unknown-	lint,xorg
+./usr/libdata/lint/llib-lglx.ln		-unknown-	lint,xorg
+./usr/libdata/lint/llib-lrecord.ln	-unknown-	lint,xorg
+./usr/libdata/lint/llib-lshadow.ln	-unknown-	lint,xorg
+./usr/libdata/lint/llib-lshadowfb.ln	-unknown-	lint,xorg
+./usr/libdata/lint/llib-lvbe.ln		-unknown-	lint,xorg
+./usr/libdata/lint/llib-lvgahw.ln	-unknown-	lint,xorg
+./usr/libdata/lint/llib-lxaa.ln		-unknown-	lint,xorg



CVS commit: src/sys/external/bsd/drm2/dist/drm/radeon

2015-08-17 Thread Jonathan A. Kollasch
Module Name:src
Committed By:   jakllsch
Date:   Mon Aug 17 15:12:37 UTC 2015

Modified Files:
src/sys/external/bsd/drm2/dist/drm/radeon: atombios_crtc.c

Log Message:
Apply preceeding change:

Don't reserve if atomic -- caller must have pre-pinned the buffer.

to avivo_crtc_do_set_base() as well.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/sys/external/bsd/drm2/dist/drm/radeon/atombios_crtc.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/external/bsd/drm2/dist/drm/radeon/atombios_crtc.c
diff -u src/sys/external/bsd/drm2/dist/drm/radeon/atombios_crtc.c:1.3 src/sys/external/bsd/drm2/dist/drm/radeon/atombios_crtc.c:1.4
--- src/sys/external/bsd/drm2/dist/drm/radeon/atombios_crtc.c:1.3	Wed Apr  8 01:47:20 2015
+++ src/sys/external/bsd/drm2/dist/drm/radeon/atombios_crtc.c	Mon Aug 17 15:12:37 2015
@@ -1382,24 +1382,26 @@ static int avivo_crtc_do_set_base(struct
 
 	obj = radeon_fb-obj;
 	rbo = gem_to_radeon_bo(obj);
-	r = radeon_bo_reserve(rbo, false);
-	if (unlikely(r != 0))
-		return r;
 
 	/* If atomic, assume fb object is pinned  idle  fenced and
 	 * just update base pointers
 	 */
-	if (atomic)
+	if (atomic) {
+		BUG_ON(rbo-pin_count == 0);
 		fb_location = radeon_bo_gpu_offset(rbo);
-	else {
+		tiling_flags = 0;
+	} else {
+		r = radeon_bo_reserve(rbo, false);
+		if (unlikely(r != 0))
+			return r;
 		r = radeon_bo_pin(rbo, RADEON_GEM_DOMAIN_VRAM, fb_location);
 		if (unlikely(r != 0)) {
 			radeon_bo_unreserve(rbo);
 			return -EINVAL;
 		}
+		radeon_bo_get_tiling_flags(rbo, tiling_flags, NULL);
+		radeon_bo_unreserve(rbo);
 	}
-	radeon_bo_get_tiling_flags(rbo, tiling_flags, NULL);
-	radeon_bo_unreserve(rbo);
 
 	switch (target_fb-bits_per_pixel) {
 	case 8:



CVS commit: src/sys/sys

2015-08-17 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Mon Aug 17 18:43:37 UTC 2015

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

Log Message:
fix tpyo


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/sys/interrupt.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/interrupt.h
diff -u src/sys/sys/interrupt.h:1.1 src/sys/sys/interrupt.h:1.2
--- src/sys/sys/interrupt.h:1.1	Mon Aug 17 06:16:03 2015
+++ src/sys/sys/interrupt.h	Mon Aug 17 18:43:37 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: interrupt.h,v 1.1 2015/08/17 06:16:03 knakahara Exp $	*/
+/*	$NetBSD: interrupt.h,v 1.2 2015/08/17 18:43:37 macallan Exp $	*/
 
 /*
  * Copyright (c) 2015 Internet Initiative Japan Inc.
@@ -27,7 +27,7 @@
  */
 
 #ifndef _SYS_INTERRUPT_H_
-#define _SYS_INTERUPT_H_
+#define _SYS_INTERRUPT_H_
 
 #include sys/types.h
 #include sys/intr.h



CVS commit: src/external/gpl3

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 07:30:39 UTC 2015

Modified Files:
src/external/gpl3: Makefile

Log Message:
gdb 7 - gdb.old


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/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/gpl3/Makefile
diff -u src/external/gpl3/Makefile:1.13 src/external/gpl3/Makefile:1.14
--- src/external/gpl3/Makefile:1.13	Sun Aug 16 05:17:18 2015
+++ src/external/gpl3/Makefile	Mon Aug 17 03:30:39 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.13 2015/08/16 09:17:18 christos Exp $
+#	$NetBSD: Makefile,v 1.14 2015/08/17 07:30:39 christos Exp $
 
 .include bsd.own.mk
 
@@ -14,7 +14,7 @@ SUBDIR+=	${EXTERNAL_GCC_SUBDIR}
 .	if ${HAVE_GDB} == 79
 SUBDIR+=gdb
 .	elif ${HAVE_GDB} == 7
-SUBDIR+=gdb
+SUBDIR+=gdb.old
 .	endif
 .endif
 



CVS commit: src/external/gpl3/gdb.old

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 07:32:51 UTC 2015

Modified Files:
src/external/gpl3/gdb.old: Makefile.inc

Log Message:
don't hard code the path.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gdb.old/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/gpl3/gdb.old/Makefile.inc
diff -u src/external/gpl3/gdb.old/Makefile.inc:1.2 src/external/gpl3/gdb.old/Makefile.inc:1.3
--- src/external/gpl3/gdb.old/Makefile.inc:1.2	Sat Aug 15 16:57:37 2015
+++ src/external/gpl3/gdb.old/Makefile.inc	Mon Aug 17 03:32:51 2015
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.2 2015/08/15 20:57:37 mrg Exp $
+# $NetBSD: Makefile.inc,v 1.3 2015/08/17 07:32:51 christos Exp $
 
 USE_LIBEDIT=no
 USE_TUI=yes
@@ -13,4 +13,4 @@ CWARNFLAGS.clang+=	-Wno-unused-value -Wn
 			-Wno-tautological-compare -Wno-format-extra-args \
 			-Wno-string-plus-int
 
-DIST=		${NETBSDSRCDIR}/external/gpl3/gdb.old/dist
+DIST:=			${.PARSEDIR}/dist



CVS commit: src/tests/net/ndp

2015-08-17 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Mon Aug 17 07:47:21 UTC 2015

Modified Files:
src/tests/net/ndp: t_ndp.sh

Log Message:
Improve test stability

A test for ndp -c was sometimes failed because between the deletion
and the check NS/NA messages were exchanged and a NDP cache was
recreated unexpectedly. To provent this situation, we do ifconfig
shmif0 down of the peer before the test, so the test won't be
interfered by the messages.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/net/ndp/t_ndp.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/net/ndp/t_ndp.sh
diff -u src/tests/net/ndp/t_ndp.sh:1.4 src/tests/net/ndp/t_ndp.sh:1.5
--- src/tests/net/ndp/t_ndp.sh:1.4	Mon Aug 10 09:32:01 2015
+++ src/tests/net/ndp/t_ndp.sh	Mon Aug 17 07:47:21 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: t_ndp.sh,v 1.4 2015/08/10 09:32:01 ozaki-r Exp $
+#	$NetBSD: t_ndp.sh,v 1.5 2015/08/17 07:47:21 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -127,6 +127,13 @@ cache_expiration_body()
 	atf_check -s exit:0 -o match:'23h59m' rump.ndp -n $IP6DST
 }
 
+ifdown_dst_server()
+{
+	export RUMP_SERVER=$SOCKDST
+	atf_check -s exit:0 rump.ifconfig shmif0 down
+	export RUMP_SERVER=$SOCKSRC
+}
+
 command_body()
 {
 	atf_check -s exit:0 ${inetserver} $SOCKSRC
@@ -170,6 +177,9 @@ command_body()
 	atf_check -s exit:0 -o match:'fc00::11' rump.ndp -n -a
 	atf_check -s exit:0 -o match:'fc00::12' rump.ndp -n -a
 
+	# Ensure no packet upsets the src server
+	ifdown_dst_server
+
 	# Flush all entries (-c)
 	$DEBUG  rump.ndp -n -a
 	atf_check -s exit:0 -o ignore rump.ndp -c



CVS commit: src

2015-08-17 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Mon Aug 17 06:28:11 UTC 2015

Modified Files:
src/distrib/sets/lists/comp: mi
src/share/man/man9: Makefile
Added Files:
src/share/man/man9: interrupt_distribute.9
Removed Files:
src/share/man/man9: pci_intr_distribute.9

Log Message:
Add man about kernel APIs to support intrctl(8).


To generate a diff of this commit:
cvs rdiff -u -r1.1979 -r1.1980 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.390 -r1.391 src/share/man/man9/Makefile
cvs rdiff -u -r0 -r1.1 src/share/man/man9/interrupt_distribute.9
cvs rdiff -u -r1.2 -r0 src/share/man/man9/pci_intr_distribute.9

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.1979 src/distrib/sets/lists/comp/mi:1.1980
--- src/distrib/sets/lists/comp/mi:1.1979	Fri Aug 14 02:35:32 2015
+++ src/distrib/sets/lists/comp/mi	Mon Aug 17 06:28:11 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.1979 2015/08/14 02:35:32 knakahara Exp $
+#	$NetBSD: mi,v 1.1980 2015/08/17 06:28:11 knakahara Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -9953,6 +9953,7 @@
 ./usr/share/man/cat9/in_getifa.0		comp-sys-catman		.cat
 ./usr/share/man/cat9/incore.0			comp-sys-catman		.cat
 ./usr/share/man/cat9/inittodr.0			comp-sys-catman		.cat
+./usr/share/man/cat9/interrupt_distribute.0	comp-sys-catman		.cat
 ./usr/share/man/cat9/intro.0			comp-sys-catman		.cat
 ./usr/share/man/cat9/ioasic.0			comp-sys-catman		.cat
 ./usr/share/man/cat9/ioasic_attach_devs.0	comp-sys-catman		.cat
@@ -10192,7 +10193,6 @@
 ./usr/share/man/cat9/pci_intr.0			comp-sys-catman		.cat
 ./usr/share/man/cat9/pci_intr_alloc.0		comp-sys-catman		.cat
 ./usr/share/man/cat9/pci_intr_disestablish.0	comp-sys-catman		.cat
-./usr/share/man/cat9/pci_intr_distribute.0	comp-sys-catman		.cat
 ./usr/share/man/cat9/pci_intr_establish.0	comp-sys-catman		.cat
 ./usr/share/man/cat9/pci_intr_evcnt.0		comp-sys-catman		.cat
 ./usr/share/man/cat9/pci_intr_map.0		comp-sys-catman		.cat
@@ -16768,6 +16768,7 @@
 ./usr/share/man/html9/in_getifa.html		comp-sys-htmlman	html
 ./usr/share/man/html9/incore.html		comp-sys-htmlman	html
 ./usr/share/man/html9/inittodr.html		comp-sys-htmlman	html
+./usr/share/man/html9/interrupt_distribute.html	comp-sys-htmlman	html
 ./usr/share/man/html9/intro.html		comp-sys-htmlman	html
 ./usr/share/man/html9/ioasic.html		comp-sys-htmlman	html
 ./usr/share/man/html9/ioasic_attach_devs.html	comp-sys-htmlman	html
@@ -17001,7 +17002,6 @@
 ./usr/share/man/html9/pci_intr.html		comp-sys-htmlman	html
 ./usr/share/man/html9/pci_intr_alloc.html	comp-sys-htmlman	html
 ./usr/share/man/html9/pci_intr_disestablish.html	comp-sys-htmlman	html
-./usr/share/man/html9/pci_intr_distribute.html	comp-sys-htmlman	html
 ./usr/share/man/html9/pci_intr_establish.html	comp-sys-htmlman	html
 ./usr/share/man/html9/pci_intr_evcnt.html	comp-sys-htmlman	html
 ./usr/share/man/html9/pci_intr_map.html		comp-sys-htmlman	html
@@ -23733,6 +23733,7 @@
 ./usr/share/man/man9/in_getifa.9		comp-sys-man		.man
 ./usr/share/man/man9/incore.9			comp-sys-man		.man
 ./usr/share/man/man9/inittodr.9			comp-sys-man		.man
+./usr/share/man/man9/interrupt_distribute.9	comp-sys-man		.man
 ./usr/share/man/man9/intro.9			comp-sys-man		.man
 ./usr/share/man/man9/ioasic.9			comp-sys-man		.man
 ./usr/share/man/man9/ioasic_attach_devs.9	comp-sys-man		.man
@@ -23972,7 +23973,6 @@
 ./usr/share/man/man9/pci_intr.9			comp-sys-man		.man
 ./usr/share/man/man9/pci_intr_alloc.9		comp-sys-man		.man
 ./usr/share/man/man9/pci_intr_disestablish.9	comp-sys-man		.man
-./usr/share/man/man9/pci_intr_distribute.9	comp-sys-man		.man
 ./usr/share/man/man9/pci_intr_establish.9	comp-sys-man		.man
 ./usr/share/man/man9/pci_intr_evcnt.9		comp-sys-man		.man
 ./usr/share/man/man9/pci_intr_map.9		comp-sys-man		.man

Index: src/share/man/man9/Makefile
diff -u src/share/man/man9/Makefile:1.390 src/share/man/man9/Makefile:1.391
--- src/share/man/man9/Makefile:1.390	Fri Aug 14 02:04:16 2015
+++ src/share/man/man9/Makefile	Mon Aug 17 06:28:11 2015
@@ -1,4 +1,4 @@
-#   $NetBSD: Makefile,v 1.390 2015/08/14 02:04:16 knakahara Exp $
+#   $NetBSD: Makefile,v 1.391 2015/08/17 06:28:11 knakahara Exp $
 
 #	Makefile for section 9 (kernel function and variable) manual pages.
 
@@ -27,9 +27,9 @@ MAN=	accept_filter.9 accf_data.9 accf_ht
 	ieee80211_node.9 ieee80211_output.9 ieee80211_proto.9 \
 	ieee80211_radiotap.9 iic.9 imax.9 \
 	in_getifa.9 \
-	in4_cksum.9 inittodr.9 intro.9 ioasic.9 ioctl.9 ipkdb.9 ipi.9 isa.9 \
-	isapnp.9 itimerfix.9 kauth.9 kcopy.9 kcpuset.9 kmem.9 \
-	kpause.9 \
+	in4_cksum.9 inittodr.9 interrupt_distribute.9 intro.9 ioasic.9 \
+	ioctl.9 ipkdb.9 ipi.9 isa.9 isapnp.9 itimerfix.9 kauth.9 kcopy.9 \
+	kcpuset.9 kmem.9 kpause.9 \
 	kfilter_register.9 knote.9 \
 	kprintf.9 kthread.9 linedisc.9 lock.9 log.9 ltsleep.9 \
 	

CVS commit: src/tests/net

2015-08-17 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Mon Aug 17 07:06:58 UTC 2015

Modified Files:
src/tests/net/arp: t_dad.sh
src/tests/net/ndp: t_dad.sh

Log Message:
Improve test stability

- Take a diff between packet dumps and use it for packet checking
  - it's resistant against packet reorder
- Seep 2 sec to make sure a NS message is sent
- Disable tentative state check for now
  - it's too ephemeral to check robustly


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/net/arp/t_dad.sh
cvs rdiff -u -r1.2 -r1.3 src/tests/net/ndp/t_dad.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/net/arp/t_dad.sh
diff -u src/tests/net/arp/t_dad.sh:1.3 src/tests/net/arp/t_dad.sh:1.4
--- src/tests/net/arp/t_dad.sh:1.3	Fri Jul 31 00:23:54 2015
+++ src/tests/net/arp/t_dad.sh	Mon Aug 17 07:06:58 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: t_dad.sh,v 1.3 2015/07/31 00:23:54 ozaki-r Exp $
+#	$NetBSD: t_dad.sh,v 1.4 2015/08/17 07:06:58 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -73,6 +73,21 @@ make_pkt_str()
 	echo $pkt
 }
 
+extract_new_packets()
+{
+	local old=./old
+
+	if [ ! -f $old ]; then
+		old=/dev/null
+	fi
+
+	shmif_dumpbus -p - bus1 2/dev/null| \
+	tcpdump -n -e -r - 2/dev/null  ./new
+	diff -u $old ./new |grep '^+' |cut -d '+' -f 2  ./diff
+	mv -f ./new ./old
+	cat ./diff
+}
+
 dad_basic_body()
 {
 	local pkt=
@@ -84,17 +99,21 @@ dad_basic_body()
 	atf_check -s exit:0 rump.ifconfig shmif0 linkstr bus1
 	atf_check -s exit:0 rump.ifconfig shmif0 inet 10.0.0.1/24
 	atf_check -s exit:0 rump.ifconfig shmif0 inet 10.0.0.2/24 alias
-	atf_check -s exit:0 rump.ifconfig shmif0 up
 	$DEBUG  rump.ifconfig shmif0
 
-	atf_check -s exit:0 sleep 1
-
-	# The primary address is not tentative from the beginning
-	atf_check -s not-exit:0 -x rump.ifconfig shmif0 |grep 10.0.0.1 |grep -q tentative
-	# The alias address is still tentative
-	atf_check -s exit:0 -x rump.ifconfig shmif0 |grep 10.0.0.2 |grep -q tentative
+	atf_check -s exit:0 rump.ifconfig shmif0 up
+	rump.ifconfig shmif0  ./out
+	$DEBUG  cat ./out
 
-	shmif_dumpbus -p - bus1 2/dev/null| tcpdump -n -e -r -  ./out
+	# The primary address doesn't start with tentative state
+	atf_check -s not-exit:0 -x cat ./out |grep 10.0.0.1 |grep -q tentative
+	# The alias address starts with tentative state
+	# XXX we have no stable way to check this, so skip for now
+	#atf_check -s exit:0 -x cat ./out |grep 10.0.0.2 |grep -q tentative
+
+	atf_check -s exit:0 sleep 2
+	extract_new_packets  ./out
+	$DEBUG  cat ./out
 
 	# Check DAD probe packets
 	pkt=$(make_pkt_str 10.0.0.2 0.0.0.0)
@@ -105,7 +124,8 @@ dad_basic_body()
 
 	# Waiting for DAD complete
 	atf_check -s exit:0 rump.ifconfig -w 10
-	shmif_dumpbus -p - bus1 2/dev/null| tcpdump -n -e -r - |tail -1  ./out
+	extract_new_packets  ./out
+	$DEBUG  cat ./out
 
 	# Check the DAD announce packet
 	pkt=$(make_pkt_str 10.0.0.2 10.0.0.2)
@@ -118,19 +138,20 @@ dad_basic_body()
 	#
 	atf_check -s exit:0 rump.ifconfig shmif0 inet 10.0.0.3/24 alias
 
-	atf_check -s exit:0 sleep 1
-
-	# The new address is still tentative
+	# The new address starts with tentative state
 	atf_check -s exit:0 -x rump.ifconfig shmif0 |grep 10.0.0.3 |grep -q tentative
 
 	# Check DAD probe packets
-	shmif_dumpbus -p - bus1 2/dev/null| tcpdump -n -e -r - |tail -1  ./out
+	atf_check -s exit:0 sleep 2
+	extract_new_packets  ./out
+	$DEBUG  cat ./out
 	pkt=$(make_pkt_str 10.0.0.3 0.0.0.0)
 	atf_check -s exit:0 -x cat ./out |grep -q '$pkt'
 
 	# Waiting for DAD complete
 	atf_check -s exit:0 rump.ifconfig -w 10
-	shmif_dumpbus -p - bus1 2/dev/null| tcpdump -n -e -r - |tail -1  ./out
+	extract_new_packets  ./out
+	$DEBUG  cat ./out
 
 	# Check the DAD announce packet
 	pkt=$(make_pkt_str 10.0.0.3 10.0.0.3)

Index: src/tests/net/ndp/t_dad.sh
diff -u src/tests/net/ndp/t_dad.sh:1.2 src/tests/net/ndp/t_dad.sh:1.3
--- src/tests/net/ndp/t_dad.sh:1.2	Mon Aug 10 09:31:13 2015
+++ src/tests/net/ndp/t_dad.sh	Mon Aug 17 07:06:58 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: t_dad.sh,v 1.2 2015/08/10 09:31:13 ozaki-r Exp $
+#	$NetBSD: t_dad.sh,v 1.3 2015/08/17 07:06:58 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -75,6 +75,21 @@ make_ns_pkt_str()
 	echo $pkt
 }
 
+extract_new_packets()
+{
+	local old=./old
+
+	if [ ! -f $old ]; then
+		old=/dev/null
+	fi
+
+	shmif_dumpbus -p - bus1 2/dev/null| \
+	tcpdump -n -e -r - 2/dev/null  ./new
+	diff -u $old ./new |grep '^+' |cut -d '+' -f 2  ./diff
+	mv -f ./new ./old
+	cat ./diff
+}
+
 dad_basic_body()
 {
 	local pkt=
@@ -89,17 +104,21 @@ dad_basic_body()
 	atf_check -s exit:0 rump.ifconfig shmif0 linkstr bus1
 	atf_check -s exit:0 rump.ifconfig shmif0 inet6 $localip1
 	atf_check -s exit:0 rump.ifconfig shmif0 inet6 $localip2
-	atf_check -s exit:0 rump.ifconfig shmif0 up
 	$DEBUG  rump.ifconfig shmif0
 
-	#atf_check 

CVS commit: src/sys

2015-08-17 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Mon Aug 17 06:16:03 UTC 2015

Modified Files:
src/sys/arch/x86/include: intr.h intr_distribute.h pci_machdep_common.h
src/sys/arch/x86/pci: pci_intr_machdep.c pci_msi_machdep.c
pci_msi_machdep.h
src/sys/arch/x86/x86: intr.c
src/sys/conf: files
src/sys/dev/pci: if_wm.c pci_stub.c pcivar.h
src/sys/dev/pci/ixgbe: ixgbe.c ixgbe.h ixv.c ixv.h
src/sys/kern: files.kern kern_stub.c
src/sys/secmodel/suser: secmodel_suser.c
src/sys/sys: Makefile intr.h kauth.h
Added Files:
src/sys/kern: subr_interrupt.c
src/sys/sys: interrupt.h intrio.h

Log Message:
Add kernel code to support intrctl(8).


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/arch/x86/include/intr.h
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/x86/include/intr_distribute.h
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/x86/include/pci_machdep_common.h
cvs rdiff -u -r1.36 -r1.37 src/sys/arch/x86/pci/pci_intr_machdep.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/x86/pci/pci_msi_machdep.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/x86/pci/pci_msi_machdep.h
cvs rdiff -u -r1.86 -r1.87 src/sys/arch/x86/x86/intr.c
cvs rdiff -u -r1.1130 -r1.1131 src/sys/conf/files
cvs rdiff -u -r1.345 -r1.346 src/sys/dev/pci/if_wm.c
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/pci/pci_stub.c
cvs rdiff -u -r1.103 -r1.104 src/sys/dev/pci/pcivar.h
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/pci/ixgbe/ixgbe.c
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/pci/ixgbe/ixgbe.h
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/pci/ixgbe/ixv.c
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/pci/ixgbe/ixv.h
cvs rdiff -u -r1.6 -r1.7 src/sys/kern/files.kern
cvs rdiff -u -r1.39 -r1.40 src/sys/kern/kern_stub.c
cvs rdiff -u -r0 -r1.1 src/sys/kern/subr_interrupt.c
cvs rdiff -u -r1.41 -r1.42 src/sys/secmodel/suser/secmodel_suser.c
cvs rdiff -u -r1.156 -r1.157 src/sys/sys/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/sys/interrupt.h src/sys/sys/intrio.h
cvs rdiff -u -r1.18 -r1.19 src/sys/sys/intr.h
cvs rdiff -u -r1.71 -r1.72 src/sys/sys/kauth.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/intr.h
diff -u src/sys/arch/x86/include/intr.h:1.47 src/sys/arch/x86/include/intr.h:1.48
--- src/sys/arch/x86/include/intr.h:1.47	Mon Apr 27 06:51:40 2015
+++ src/sys/arch/x86/include/intr.h	Mon Aug 17 06:16:02 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: intr.h,v 1.47 2015/04/27 06:51:40 knakahara Exp $	*/
+/*	$NetBSD: intr.h,v 1.48 2015/08/17 06:16:02 knakahara Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -86,13 +86,14 @@ struct intrsource {
 	void *is_recurse;		/* entry for spllower */
 	void *is_resume;		/* entry for doreti */
 	lwp_t *is_lwp;			/* for soft interrupts */
-	struct evcnt is_evcnt;		/* interrupt counter */
+	struct evcnt is_evcnt;		/* interrupt counter per cpu */
 	int is_flags;			/* see below */
 	int is_type;			/* level, edge */
 	int is_idtvec;
 	int is_minlevel;
 	char is_evname[32];		/* event counter name */
 	char is_intrid[INTRIDBUF];	/* intrid created by create_intrid() */
+	char is_xname[INTRDEVNAMEBUF];	/* device names */
 	cpuid_t is_active_cpu;		/* active cpuid */
 	struct percpu_evcnt *is_saved_evcnt;	/* interrupt count of deactivated cpus */
 	SIMPLEQ_ENTRY(intrsource) is_list;	/* link of intrsources */
@@ -185,6 +186,8 @@ typedef uint64_t intr_handle_t;
 
 void intr_default_setup(void);
 void x86_nmi(void);
+void *intr_establish_xname(int, struct pic *, int, int, int, int (*)(void *),
+			   void *, bool, const char *);
 void *intr_establish(int, struct pic *, int, int, int, int (*)(void *), void *, bool);
 void intr_disestablish(struct intrhand *);
 void intr_add_pcibus(struct pcibus_attach_args *);

Index: src/sys/arch/x86/include/intr_distribute.h
diff -u src/sys/arch/x86/include/intr_distribute.h:1.1 src/sys/arch/x86/include/intr_distribute.h:1.2
--- src/sys/arch/x86/include/intr_distribute.h:1.1	Mon Apr 27 06:42:52 2015
+++ src/sys/arch/x86/include/intr_distribute.h	Mon Aug 17 06:16:02 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: intr_distribute.h,v 1.1 2015/04/27 06:42:52 knakahara Exp $	*/
+/*	$NetBSD: intr_distribute.h,v 1.2 2015/08/17 06:16:02 knakahara Exp $	*/
 
 /*
  * Copyright (c) 2015 Internet Initiative Japan Inc.
@@ -34,6 +34,7 @@
 #include sys/kcpuset.h
 
 int intr_distribute(struct intrhand *, const kcpuset_t *, kcpuset_t *);
+int intr_distribute_handler(const char *, const kcpuset_t *, kcpuset_t *);
 
 #endif /* _KERNEL */
 

Index: src/sys/arch/x86/include/pci_machdep_common.h
diff -u src/sys/arch/x86/include/pci_machdep_common.h:1.20 src/sys/arch/x86/include/pci_machdep_common.h:1.21
--- src/sys/arch/x86/include/pci_machdep_common.h:1.20	Thu Aug 13 04:39:33 2015
+++ src/sys/arch/x86/include/pci_machdep_common.h	Mon Aug 17 06:16:02 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: pci_machdep_common.h,v 1.20 2015/08/13 04:39:33 

CVS commit: src

2015-08-17 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Mon Aug 17 06:42:46 UTC 2015

Modified Files:
src/distrib/sets/lists/base: mi
src/distrib/sets/lists/comp: mi
src/distrib/sets/lists/debug: mi
src/sbin/sysctl: sysctl.c
src/usr.sbin: Makefile
Added Files:
src/usr.sbin/intrctl: Makefile intrctl.c intrctl_io.c intrctl_io.h

Log Message:
Add intrctl(8).


To generate a diff of this commit:
cvs rdiff -u -r1.1109 -r1.1110 src/distrib/sets/lists/base/mi
cvs rdiff -u -r1.1980 -r1.1981 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.126 -r1.127 src/distrib/sets/lists/debug/mi
cvs rdiff -u -r1.155 -r1.156 src/sbin/sysctl/sysctl.c
cvs rdiff -u -r1.270 -r1.271 src/usr.sbin/Makefile
cvs rdiff -u -r0 -r1.1 src/usr.sbin/intrctl/Makefile \
src/usr.sbin/intrctl/intrctl.c src/usr.sbin/intrctl/intrctl_io.c \
src/usr.sbin/intrctl/intrctl_io.h

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

Modified files:

Index: src/distrib/sets/lists/base/mi
diff -u src/distrib/sets/lists/base/mi:1.1109 src/distrib/sets/lists/base/mi:1.1110
--- src/distrib/sets/lists/base/mi:1.1109	Mon Aug 10 02:44:36 2015
+++ src/distrib/sets/lists/base/mi	Mon Aug 17 06:42:45 2015
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1109 2015/08/10 02:44:36 mrg Exp $
+# $NetBSD: mi,v 1.1110 2015/08/17 06:42:45 knakahara Exp $
 #
 # Note:	Don't delete entries from here - mark them as obsolete instead,
 #	unless otherwise stated below.
@@ -1641,6 +1641,7 @@
 ./usr/sbin/ifwatchdbase-netutil-bin
 ./usr/sbin/inetdbase-netutil-bin
 ./usr/sbin/installbootbase-sysutil-bin
+./usr/sbin/intrctlbase-sysutil-bin
 ./usr/sbin/iopctlbase-sysutil-bin
 ./usr/sbin/iostatbase-sysutil-bin
 ./usr/sbin/ipfs	base-ipf-bin		ipfilter

Index: src/distrib/sets/lists/comp/mi
diff -u src/distrib/sets/lists/comp/mi:1.1980 src/distrib/sets/lists/comp/mi:1.1981
--- src/distrib/sets/lists/comp/mi:1.1980	Mon Aug 17 06:28:11 2015
+++ src/distrib/sets/lists/comp/mi	Mon Aug 17 06:42:45 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.1980 2015/08/17 06:28:11 knakahara Exp $
+#	$NetBSD: mi,v 1.1981 2015/08/17 06:42:45 knakahara Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -2791,6 +2791,8 @@
 ./usr/include/sys/gpio.h			comp-c-include
 ./usr/include/sys/hash.h			comp-c-include
 ./usr/include/sys/ieee754.h			comp-c-include
+./usr/include/sys/intr.h			comp-c-include
+./usr/include/sys/intrio.h			comp-c-include
 ./usr/include/sys/inttypes.h			comp-c-include
 ./usr/include/sys/ioccom.h			comp-c-include
 ./usr/include/sys/ioctl.h			comp-c-include

Index: src/distrib/sets/lists/debug/mi
diff -u src/distrib/sets/lists/debug/mi:1.126 src/distrib/sets/lists/debug/mi:1.127
--- src/distrib/sets/lists/debug/mi:1.126	Mon Aug 10 03:21:44 2015
+++ src/distrib/sets/lists/debug/mi	Mon Aug 17 06:42:46 2015
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.126 2015/08/10 03:21:44 mrg Exp $
+# $NetBSD: mi,v 1.127 2015/08/17 06:42:46 knakahara Exp $
 
 ./etc/mtree/set.debug   comp-sys-root
 ./usr/lib	comp-sys-usr		compatdir
@@ -1053,6 +1053,7 @@
 ./usr/libdata/debug/usr/sbin/ifwatchd.debug	comp-netutil-debug	debug
 ./usr/libdata/debug/usr/sbin/inetd.debug	comp-netutil-debug	debug
 ./usr/libdata/debug/usr/sbin/installboot.debug	comp-sysutil-debug	debug
+./usr/libdata/debug/usr/sbin/intrctl.debug	comp-sysutil-debug	debug
 ./usr/libdata/debug/usr/sbin/iopctl.debug	comp-sysutil-debug	debug
 ./usr/libdata/debug/usr/sbin/iostat.debug	comp-sysutil-debug	debug
 ./usr/libdata/debug/usr/sbin/ipfs.debug		comp-ipf-debug		ipfilter,debug

Index: src/sbin/sysctl/sysctl.c
diff -u src/sbin/sysctl/sysctl.c:1.155 src/sbin/sysctl/sysctl.c:1.156
--- src/sbin/sysctl/sysctl.c:1.155	Sun Nov  9 22:50:38 2014
+++ src/sbin/sysctl/sysctl.c	Mon Aug 17 06:42:46 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: sysctl.c,v 1.155 2014/11/09 22:50:38 christos Exp $ */
+/*	$NetBSD: sysctl.c,v 1.156 2015/08/17 06:42:46 knakahara Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@ __COPYRIGHT(@(#) Copyright (c) 1993\
 #if 0
 static char sccsid[] = @(#)sysctl.c	8.1 (Berkeley) 6/6/93;
 #else
-__RCSID($NetBSD: sysctl.c,v 1.155 2014/11/09 22:50:38 christos Exp $);
+__RCSID($NetBSD: sysctl.c,v 1.156 2015/08/17 06:42:46 knakahara Exp $);
 #endif
 #endif /* not lint */
 
@@ -197,6 +197,11 @@ static const struct handlespec {
 	{ /kern/coredump/setid/mode,		mode_bits, mode_bits, NULL },
 	{ /kern/drivers,			kern_drivers, NULL, NULL },
 
+	{ /kern/intr/list,			printother, NULL, intrctl },
+	{ /kern/intr/affinity,		printother, NULL, intrctl },
+	{ /kern/intr/intr,			printother, NULL, intrctl },
+	{ /kern/intr/nointr,			printother, NULL, intrctl },
+
 	{ /vm/vmmeter,			printother, NULL,
 		vmstat' or 'systat },
 	{ /vm/loadavg,			vm_loadavg, NULL, NULL },

Index: src/usr.sbin/Makefile
diff -u src/usr.sbin/Makefile:1.270 src/usr.sbin/Makefile:1.271
--- 

CVS commit: src

2015-08-17 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Mon Aug 17 06:50:03 UTC 2015

Modified Files:
src/distrib/sets/lists/man: mi
Added Files:
src/usr.sbin/intrctl: intrctl.8

Log Message:
Add intrctl(8) man.


To generate a diff of this commit:
cvs rdiff -u -r1.1503 -r1.1504 src/distrib/sets/lists/man/mi
cvs rdiff -u -r0 -r1.1 src/usr.sbin/intrctl/intrctl.8

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/man/mi
diff -u src/distrib/sets/lists/man/mi:1.1503 src/distrib/sets/lists/man/mi:1.1504
--- src/distrib/sets/lists/man/mi:1.1503	Mon Aug 10 02:44:37 2015
+++ src/distrib/sets/lists/man/mi	Mon Aug 17 06:50:03 2015
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1503 2015/08/10 02:44:37 mrg Exp $
+# $NetBSD: mi,v 1.1504 2015/08/17 06:50:03 knakahara Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -2544,6 +2544,7 @@
 ./usr/share/man/cat8/inetd.0			man-netutil-catman	.cat
 ./usr/share/man/cat8/init.0			man-sysutil-catman	.cat
 ./usr/share/man/cat8/installboot.0		man-sysutil-catman	.cat
+./usr/share/man/cat8/intrctl.0			man-sysutil-catman	.cat
 ./usr/share/man/cat8/intro.0			man-sys-catman		.cat
 ./usr/share/man/cat8/iopctl.0			man-sysutil-catman	.cat
 ./usr/share/man/cat8/iostat.0			man-sysutil-catman	.cat
@@ -5419,6 +5420,7 @@
 ./usr/share/man/html8/inetd.html		man-netutil-htmlman	html
 ./usr/share/man/html8/init.html			man-sysutil-htmlman	html
 ./usr/share/man/html8/installboot.html		man-sysutil-htmlman	html
+./usr/share/man/html8/intrctl.html		man-sysutil-htmlman	html
 ./usr/share/man/html8/intro.html		man-sys-htmlman		html
 ./usr/share/man/html8/iopctl.html		man-sysutil-htmlman	html
 ./usr/share/man/html8/iostat.html		man-sysutil-htmlman	html
@@ -8440,6 +8442,7 @@
 ./usr/share/man/man8/inetd.8			man-netutil-man		.man
 ./usr/share/man/man8/init.8			man-sysutil-man		.man
 ./usr/share/man/man8/installboot.8		man-sysutil-man		.man
+./usr/share/man/man8/intrctl.8			man-sysutil-man		.man
 ./usr/share/man/man8/intro.8			man-sys-man		.man
 ./usr/share/man/man8/iopctl.8			man-sysutil-man		.man
 ./usr/share/man/man8/iostat.8			man-sysutil-man		.man

Added files:

Index: src/usr.sbin/intrctl/intrctl.8
diff -u /dev/null src/usr.sbin/intrctl/intrctl.8:1.1
--- /dev/null	Mon Aug 17 06:50:03 2015
+++ src/usr.sbin/intrctl/intrctl.8	Mon Aug 17 06:50:03 2015
@@ -0,0 +1,70 @@
+.\ $NetBSD: intrctl.8,v 1.1 2015/08/17 06:50:03 knakahara Exp $
+.\
+.\ Copyright (c) 2015 Internet Initiative Japan Inc.
+.\ All rights reserved.
+.\
+.\ Redistribution and use in source and binary forms, with or without
+.\ modification, are permitted provided that the following conditions
+.\ are met:
+.\ 1. Redistributions of source code must retain the above copyright
+.\notice, this list of conditions and the following disclaimer.
+.\ 2. Redistributions in binary form must reproduce the above copyright
+.\notice, this list of conditions and the following disclaimer in the
+.\documentation and/or other materials provided with the distribution.
+.\
+.\ THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+.\ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+.\ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+.\ PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+.\ BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+.\ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+.\ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+.\ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+.\ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+.\ POSSIBILITY OF SUCH DAMAGE.
+.\
+.Dd August 17, 2015
+.Dt INTRCTL 8
+.Os
+.Sh NAME
+.Nm intrctl
+.Nd program to control interrupts
+.Sh SYNOPSIS
+.Nm intrctl
+.Ar command
+.Op Ar options
+.Sh DESCRIPTION
+The
+.Nm
+command can be used to control and inspect the state of intrerupts
+in the system.
+.Pp
+The first argument,
+.Ar command ,
+specifies the action to take.
+Valid commands are:
+.Bl -tag -width XofflineXcpunoX
+.It list
+for each intrid in the system, display interrupt counts per CPU.
+The intrid is an interrupt name such as ioapic0 pin 22 for x86.
+.It affinity Fl c Ar cpu_index Fl i Ar intrid
+set an
+.Ar intrid
+interrupt's affinity to
+.Ar cpu_index .
+.It intr Fl c Ar cpu_index
+enable to set an interrupt's affinity to
+.Ar cpu_index .
+If
+.Ar cpu_index
+is already enabled, this command has no effect.
+.It nointr Fl c Ar cpu_index
+disable to set an interrupt's affinity to
+.Ar cpu_index .
+If
+.Ar cpu_index
+is already disabled, this command has no effect.
+.Ed
+.Sh SEE ALSO
+.Xr cpuctl 8



CVS commit: src/share/mk

2015-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 17 08:31:45 UTC 2015

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
switch i386 to gdb-7.9.1


To generate a diff of this commit:
cvs rdiff -u -r1.863 -r1.864 src/share/mk/bsd.own.mk

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

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.863 src/share/mk/bsd.own.mk:1.864
--- src/share/mk/bsd.own.mk:1.863	Sun Aug 16 05:13:30 2015
+++ src/share/mk/bsd.own.mk	Mon Aug 17 04:31:45 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.863 2015/08/16 09:13:30 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.864 2015/08/17 08:31:45 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -111,7 +111,8 @@ HAVE_LIBGCC_EH?=	no
 HAVE_LIBGCC_EH?=	yes
 .endif
 
-.if (${MACHINE_ARCH} == x86_64)
+.if (${MACHINE_ARCH} == x86_64) || \
+(${MACHINE_ARCH} == i386)
 HAVE_GDB?=	79
 .else
 HAVE_GDB?=	7