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

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 06:37:42 UTC 2011

Modified Files:
src/distrib/sets/lists/comp: ad.powerpc

Log Message:
add gcc-4.5/altivec.h


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/distrib/sets/lists/comp/ad.powerpc

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

Modified files:

Index: src/distrib/sets/lists/comp/ad.powerpc
diff -u src/distrib/sets/lists/comp/ad.powerpc:1.51 src/distrib/sets/lists/comp/ad.powerpc:1.52
--- src/distrib/sets/lists/comp/ad.powerpc:1.51	Mon Jun 20 21:45:16 2011
+++ src/distrib/sets/lists/comp/ad.powerpc	Sun Jul  3 06:37:42 2011
@@ -1,9 +1,10 @@
-# $NetBSD: ad.powerpc,v 1.51 2011/06/20 21:45:16 matt Exp $
+# $NetBSD: ad.powerpc,v 1.52 2011/07/03 06:37:42 mrg Exp $
 ./usr/bin/elf2aoutcomp-sysutil-bin
 ./usr/bin/psim	comp-debug-bin		gdb,gdb=6
 ./usr/include/altivec.hcomp-obsolete		obsolete
 ./usr/include/clang-3.0/altivec.h		comp-c-include		llvm
 ./usr/include/gcc-4.1/altivec.h			comp-c-include		gcccmds,gcc=4
+./usr/include/gcc-4.5/altivec.h			comp-c-include		gcccmds,gcc=45
 ./usr/include/powerpccomp-c-include
 ./usr/include/powerpc/ansi.h			comp-c-include
 ./usr/include/powerpc/aout_machdep.h		comp-c-include



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

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 06:39:23 UTC 2011

Modified Files:
src/external/gpl3/gcc/dist/gcc: config.gcc

Log Message:
- for m680[012]0, set cpu_type=m68k
- add fragment for m68010--netbsdelf
- s/*-*-netbsd/*-*-netbsd*/ so that netbsdelf matches


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/dist/gcc/config.gcc

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/gcc/dist/gcc/config.gcc
diff -u src/external/gpl3/gcc/dist/gcc/config.gcc:1.4 src/external/gpl3/gcc/dist/gcc/config.gcc:1.5
--- src/external/gpl3/gcc/dist/gcc/config.gcc:1.4	Wed Jun 29 08:08:54 2011
+++ src/external/gpl3/gcc/dist/gcc/config.gcc	Sun Jul  3 06:39:22 2011
@@ -326,6 +326,10 @@
 m32r*-*-*)
 cpu_type=m32r
 ;;
+m680[012]0-*-*)
+	cpu_type=m68k
+	extra_headers=math-68881.h
+	;;
 m68k-*-*)
 	extra_headers=math-68881.h
 	;;
@@ -1628,11 +1632,20 @@
 	esac
 	extra_parts=crtbegin.o crtend.o
 	;;
-m68k*-*-netbsdelf*)
-	default_m68k_cpu=68020
-	default_cf_cpu=5475
+m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
 	tm_file=${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h
-	tm_defines=${tm_defines} MOTOROLA=1
+	tm_defines=${tm_defines} MOTOROLA=1 USE_GAS=1
+	default_cf_cpu=5475
+	case ${target} in
+	m68010*)
+		target_cpu_default=0
+		tmake_file=m68k/t-m68kelf
+		;;
+	*)
+		target_cpu_default=MASK_68020|MASK_68881|MASK_BITFIELD
+		#default_m68k_cpu=68020
+		;;
+	esac
 	;;
 m68k*-*-openbsd*)
 	default_m68k_cpu=68020
@@ -2283,7 +2296,7 @@
 		# SHmedia, 64-bit ABI
 		tmake_file=${tmake_file} sh/t-sh64 sh/t-netbsd sh/t-netbsd-sh5-64
 		;;
-	*-*-netbsd)
+	*-*-netbsd*)
 tmake_file=${tmake_file} sh/t-netbsd
 		;;
 	sh64*-*-linux*)



CVS commit: src/external/gpl3/gcc/dist/gcc/config/arm

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 06:40:38 UTC 2011

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/arm: t-netbsd

Log Message:
copy across (most) of the LIB1ASMFUNCS from t-arm-elf.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd

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/gcc/dist/gcc/config/arm/t-netbsd
diff -u src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd:1.1.1.1 src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd:1.2
--- src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd:1.1.1.1	Tue Jun 21 01:22:19 2011
+++ src/external/gpl3/gcc/dist/gcc/config/arm/t-netbsd	Sun Jul  3 06:40:38 2011
@@ -23,6 +23,14 @@
 LIBGCC2_DEBUG_CFLAGS = -g0
 LIB2FUNCS_EXTRA = $(srcdir)/config/floatunsidf.c $(srcdir)/config/floatunsisf.c
 
+# This list is from t-arm-elf, but with some things removed.
+LIB1ASMFUNCS += _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func \
+	_call_via_rX _interwork_call_via_rX \
+	_arm_fixunsdfsi \
+	_arm_floatdidf _arm_floatdisf _arm_floatundidf _arm_floatundisf \
+	_lshrdi3 _ashrdi3 _ashldi3 \
+	_clzsi2 _clzdi2 
+
 # Build a shared libgcc library.
 SHLIB_EXT = .so
 SHLIB_NAME = @shlib_base_name@.so



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 06:42:03 UTC 2011

Modified Files:
src/external/gpl3/gcc/usr.bin/backend: Makefile

Log Message:
gengtype also needs sysroot-suffix.h if present


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gcc/usr.bin/backend/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/gcc/usr.bin/backend/Makefile
diff -u src/external/gpl3/gcc/usr.bin/backend/Makefile:1.7 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.8
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.7	Fri Jul  1 01:29:12 2011
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Sun Jul  3 06:42:03 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.7 2011/07/01 01:29:12 mrg Exp $
+#	$NetBSD: Makefile,v 1.8 2011/07/03 06:42:03 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -106,6 +106,9 @@
 	${_MKTARGET_CREATE}
 	rm -f auto-host.h
 	ln -s ${.CURDIR}/../gcc/arch/${MACHINE_ARCH}/auto-host.h .
+	if [ -f ${.CURDIR}/../gcc/arch/${MACHINE_ARCH}/sysroot-suffix.h ]; then \
+	  ln -s ${.CURDIR}/../gcc/arch/${MACHINE_ARCH}/sysroot-suffix.h ; \
+	fi
 	./gengtype ${DIST}/gcc gtyp-input.list.tmp
 # gengtype is the real need for options.h
 gengtype.lo gengtype-lex.lo gengtype-parse.lo: ${HH} gtyp-gen.h config.h options.h



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 06:43:17 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/arm: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/armeb: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/i386: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/m68k: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/sparc: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/vax: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64: Makefile.inc

Log Message:
clean up the created .s files.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/vax/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/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/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc:1.1	Fri Jul  1 01:51:02 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc	Sun Jul  3 06:43:16 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.1 2011/07/01 01:51:02 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -174,7 +174,8 @@
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
 	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
 
-SRCS+=	${_build:R}.s
+SRCS+=		${_build:R}.s
+CLEANFILES+=	${_build:R}.s
 
 .endfor
 

Index: src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc:1.1	Fri Jul  1 01:51:02 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc	Sun Jul  3 06:43:16 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.1 2011/07/01 01:51:02 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -174,7 +174,8 @@
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
 	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
 
-SRCS+=	${_build:R}.s
+SRCS+=		${_build:R}.s
+CLEANFILES+=	${_build:R}.s
 
 .endfor
 

Index: src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.2	Fri Jul  1 01:49:18 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc	Sun Jul  3 06:43:16 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.2 2011/07/01 01:49:18 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.3 2011/07/03 06:43:16 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -186,7 +186,8 @@
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
 	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
 
-SRCS+=	${_build:R}.s
+SRCS+=		${_build:R}.s
+CLEANFILES+=	${_build:R}.s
 
 .endfor
 

Index: src/external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc:1.1	Sat Jul  2 13:43:05 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc	Sun Jul  3 06:43:16 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.1 2011/07/02 13:43:05 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -172,7 +172,8 @@
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
 	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src}  

CVS commit: src/games/trek

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 06:44:02 UTC 2011

Modified Files:
src/games/trek: move.c

Log Message:
use DBL_MIN from float.h instead of a hard coded small value (that
becomes zero for vax fp.)


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/games/trek/move.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/trek/move.c
diff -u src/games/trek/move.c:1.10 src/games/trek/move.c:1.11
--- src/games/trek/move.c:1.10	Sun May 24 22:55:03 2009
+++ src/games/trek/move.c	Sun Jul  3 06:44:01 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: move.c,v 1.10 2009/05/24 22:55:03 dholland Exp $	*/
+/*	$NetBSD: move.c,v 1.11 2011/07/03 06:44:01 mrg Exp $	*/
 
 /*
  * Copyright (c) 1980, 1993
@@ -34,12 +34,13 @@
 #if 0
 static char sccsid[] = @(#)move.c	8.1 (Berkeley) 5/31/93;
 #else
-__RCSID($NetBSD: move.c,v 1.10 2009/05/24 22:55:03 dholland Exp $);
+__RCSID($NetBSD: move.c,v 1.11 2011/07/03 06:44:01 mrg Exp $);
 #endif
 #endif /* not lint */
 
 #include stdio.h
 #include math.h
+#include float.h
 #include trek.h
 
 /*
@@ -128,7 +129,7 @@
 		evtime += 0.005;
 		time = evtime;
 	} else
-		evtime = -1.0e50;
+		evtime = DBL_MIN;
 	dist = time * speed;
 
 	/* move within quadrant */



CVS commit: src/tools/gcc

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 06:47:13 UTC 2011

Modified Files:
src/tools/gcc: mknative-gcc

Log Message:
copy sysroot-suffix.h as well, for sh3.


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/tools/gcc/mknative-gcc

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

Modified files:

Index: src/tools/gcc/mknative-gcc
diff -u src/tools/gcc/mknative-gcc:1.58 src/tools/gcc/mknative-gcc:1.59
--- src/tools/gcc/mknative-gcc:1.58	Sat Jul  2 13:25:05 2011
+++ src/tools/gcc/mknative-gcc	Sun Jul  3 06:47:12 2011
@@ -1,5 +1,5 @@
 #!/bin/sh
-#	$NetBSD: mknative-gcc,v 1.58 2011/07/02 13:25:05 mrg Exp $
+#	$NetBSD: mknative-gcc,v 1.59 2011/07/03 06:47:12 mrg Exp $
 #
 # Shell script for generating all the constants needed for a native
 # platform build of src/gnu/dist/gcc.
@@ -619,6 +619,11 @@
 	for f in gtyp-input.list; do
 		sed -e 's/^.*external\/gpl3\/gcc\/dist/SRCDIR/'  $_TMPDIR/gcc/$f  $_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f
 	done
+
+	# special platforms
+	if [ ${MACHINE_ARCH} = sh3el -o ${MACHINE_ARCH} = sh3eb ]; then
+		write_c $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/sysroot-suffix.h $_TMPDIR/gcc/sysroot-suffix.h
+	fi
 }
 
 # main #



CVS commit: src/external

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 06:52:27 UTC 2011

Added Files:
src/external/gpl3/gcc/lib/crtstuff/arch: armeb.mk m68000.mk sh3eb.mk
sh3el.mk
src/external/gpl3/gcc/lib/libgcc/arch: armeb.mk m68000.mk sh3eb.mk
sh3el.mk
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/armeb: defs.mk gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/m68000: defs.mk
gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/sh3eb: defs.mk gcov-iov.h
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/sh3el: defs.mk gcov-iov.h
src/external/gpl3/gcc/lib/libiberty/arch/armeb: config.h
src/external/gpl3/gcc/lib/libiberty/arch/m68000: config.h
src/external/gpl3/gcc/lib/libiberty/arch/sh3eb: config.h
src/external/gpl3/gcc/lib/libiberty/arch/sh3el: config.h
src/external/gpl3/gcc/lib/libobjc/arch/armeb: config.h defs.mk
src/external/gpl3/gcc/lib/libobjc/arch/m68000: config.h defs.mk
src/external/gpl3/gcc/lib/libobjc/arch/sh3eb: config.h defs.mk
src/external/gpl3/gcc/lib/libobjc/arch/sh3el: config.h defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/armeb: c++allocator.h
c++config.h config.h cxxabi_tweaks.h defs.mk gstdint.h
gthr-default.h gthr-posix.h gthr-single.h gthr-tpf.h gthr.h omp.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/m68000: c++allocator.h
c++config.h config.h cxxabi_tweaks.h defs.mk gstdint.h
gthr-default.h gthr-posix.h gthr-single.h gthr-tpf.h gthr.h omp.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3eb: c++allocator.h
c++config.h config.h cxxabi_tweaks.h defs.mk gstdint.h
gthr-default.h gthr-posix.h gthr-single.h gthr-tpf.h gthr.h omp.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el: c++allocator.h
c++config.h config.h cxxabi_tweaks.h defs.mk gstdint.h
gthr-default.h gthr-posix.h gthr-single.h gthr-tpf.h gthr.h omp.h
src/external/gpl3/gcc/usr.bin/gcc/arch/armeb: all-tree.def auto-host.h
bconfig.h bversion.h config.h configargs.h defs.mk gthr-default.h
gtyp-input.list multilib.h plugin-version.h tm.h
src/external/gpl3/gcc/usr.bin/gcc/arch/m68000: all-tree.def auto-host.h
bconfig.h bversion.h config.h configargs.h defs.mk gthr-default.h
gtyp-input.list multilib.h plugin-version.h tm.h
src/external/gpl3/gcc/usr.bin/gcc/arch/sh3eb: all-tree.def auto-host.h
bconfig.h bversion.h config.h configargs.h defs.mk gthr-default.h
gtyp-input.list multilib.h plugin-version.h tm.h
src/external/gpl3/gcc/usr.bin/gcc/arch/sh3el: all-tree.def auto-host.h
bconfig.h bversion.h config.h configargs.h defs.mk gthr-default.h
gtyp-input.list multilib.h plugin-version.h sysroot-suffix.h tm.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/armeb: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/m68000: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/sh3eb: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/sh3el: config.h
src/external/gpl3/gcc/usr.bin/libdecnumber/arch/armeb: config.h
src/external/gpl3/gcc/usr.bin/libdecnumber/arch/m68000: config.h
src/external/gpl3/gcc/usr.bin/libdecnumber/arch/sh3eb: config.h
src/external/gpl3/gcc/usr.bin/libdecnumber/arch/sh3el: config.h
src/external/lgpl3/gmp/lib/libgmp/arch/m68000: Makefile.inc config.h
config.m4 gmp-mparam.h gmp.h mp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sh3eb: Makefile.inc config.h
config.m4 gmp-mparam.h gmp.h mp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sh3el: Makefile.inc config.h
config.m4 gmp-mparam.h gmp.h mp.h

Log Message:
(re-)generate mknative-gcc files for many platforms.
(re-)generate the gmp files for many platforms.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gcc/lib/crtstuff/arch/armeb.mk \
src/external/gpl3/gcc/lib/crtstuff/arch/m68000.mk \
src/external/gpl3/gcc/lib/crtstuff/arch/sh3eb.mk \
src/external/gpl3/gcc/lib/crtstuff/arch/sh3el.mk
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gcc/lib/libgcc/arch/armeb.mk \
src/external/gpl3/gcc/lib/libgcc/arch/m68000.mk \
src/external/gpl3/gcc/lib/libgcc/arch/sh3eb.mk \
src/external/gpl3/gcc/lib/libgcc/arch/sh3el.mk
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/armeb/defs.mk \
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/armeb/gcov-iov.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/m68000/defs.mk \
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/m68000/gcov-iov.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/sh3eb/defs.mk \
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/sh3eb/gcov-iov.h
cvs rdiff -u -r0 -r1.1 \

CVS commit: src/share/man/man4

2011-07-03 Thread Mihai Chelaru
Module Name:src
Committed By:   kefren
Date:   Sun Jul  3 07:00:48 UTC 2011

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

Log Message:
correct two examples and add a couple more for multiple tags


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man4/mpls.4

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

Modified files:

Index: src/share/man/man4/mpls.4
diff -u src/share/man/man4/mpls.4:1.4 src/share/man/man4/mpls.4:1.5
--- src/share/man/man4/mpls.4:1.4	Thu Jun 16 03:23:08 2011
+++ src/share/man/man4/mpls.4	Sun Jul  3 07:00:47 2011
@@ -1,4 +1,4 @@
-.\ $NetBSD: mpls.4,v 1.4 2011/06/16 03:23:08 yamt Exp $
+.\ $NetBSD: mpls.4,v 1.5 2011/07/03 07:00:47 kefren Exp $
 .\
 .\ Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -183,7 +183,7 @@
 .It
 Route IP packets into MPLS domain with a specific tag
 .Bd -literal
-# route add 10.0.0.0/8 -ifp mpls0 -tag 25 192.168.1.100
+# route add 10.0.0.0/8 -ifp mpls0 -tag 25 -inet 192.168.1.100
 .Ed
 .It
 Create a static MPLS forwarding rule - swap the incoming
@@ -208,7 +208,7 @@
 Route IP packets into MPLS domain but use a different source
 address for local generated packets.
 .Bd -literal
-# route add 10.0.0.0/8 -ifa 192.168.1.180 -ifp mpls0 -tag 25 192.168.1.100
+# route add 10.0.0.0/8 -ifa 192.168.1.180 -ifp mpls0 -tag 25 -inet 192.168.1.100
 .Ed
 For the latter example, setting an IP address for the mpls0 interface
 is not necessary.
@@ -217,6 +217,19 @@
 .Bd -literal
 # route add -mpls 60 -tag 3 -inet 192.168.1.100
 .Ed
+.It
+Route IP packets into MPLS domain and prepend more tags
+.Bd -literal
+# route add 10/8 -ifa 192.168.1.200 -ifp mpls0 -tag 20,30,40 -inet 192.168.1.100 
+.Ed
+For the above example, tag 20 will be inserted at Bottom of Stack, while tag 40
+will be set into the outermost shim.
+.It
+Replace label 60 with label 30, prepend two more labels: 40 and 41 (in this order)
+and forward the result to 192.168.1.100
+.Bd -literal
+# route add -mpls 60 -tag 30,40,41 -inet 192.168.1.100
+.Ed
 .El
 .Sh SEE ALSO
 .Xr netstat 1 ,



CVS commit: src/common/lib/libc/arch/arm/string

2011-07-03 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Sun Jul  3 07:13:31 UTC 2011

Modified Files:
src/common/lib/libc/arch/arm/string: ffs.S

Log Message:
Add a weak symbol definition for __ffssi2 so that __builtin_ffs will use
this if no strong defintion of __ffssi2 is available.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/common/lib/libc/arch/arm/string/ffs.S

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

Modified files:

Index: src/common/lib/libc/arch/arm/string/ffs.S
diff -u src/common/lib/libc/arch/arm/string/ffs.S:1.1 src/common/lib/libc/arch/arm/string/ffs.S:1.2
--- src/common/lib/libc/arch/arm/string/ffs.S:1.1	Tue Dec 20 19:28:49 2005
+++ src/common/lib/libc/arch/arm/string/ffs.S	Sun Jul  3 07:13:31 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: ffs.S,v 1.1 2005/12/20 19:28:49 christos Exp $	*/
+/*	$NetBSD: ffs.S,v 1.2 2011/07/03 07:13:31 matt Exp $	*/
 /*
  * Copyright (c) 2001 Christopher Gilbert
  * All rights reserved.
@@ -30,7 +30,7 @@
 
 #include machine/asm.h
 
-RCSID($NetBSD: ffs.S,v 1.1 2005/12/20 19:28:49 christos Exp $)
+RCSID($NetBSD: ffs.S,v 1.2 2011/07/03 07:13:31 matt Exp $)
 
 /*
  * ffs - find first set bit, this algorithm isolates the first set
@@ -44,7 +44,7 @@
  * This is the ffs algorithm devised by d.seal and posted to comp.sys.arm on
  * 16 Feb 1994.
  */
-
+WEAK_ALIAS(__ffssi2,ffs)
 ENTRY(ffs)
 #ifdef _ARM_ARCH_5
 	/* (X  -X) gives LSB or zero.  */



CVS commit: src/sbin/route

2011-07-03 Thread Mihai Chelaru
Module Name:src
Committed By:   kefren
Date:   Sun Jul  3 07:20:37 UTC 2011

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

Log Message:
Mention -mpls and -tag and xref mpls(4)
bin/45071


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sbin/route/route.8

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

Modified files:

Index: src/sbin/route/route.8
diff -u src/sbin/route/route.8:1.42 src/sbin/route/route.8:1.43
--- src/sbin/route/route.8:1.42	Thu Jun 16 23:35:35 2011
+++ src/sbin/route/route.8	Sun Jul  3 07:20:37 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: route.8,v 1.42 2011/06/16 23:35:35 yamt Exp $
+.\	$NetBSD: route.8,v 1.43 2011/07/03 07:20:37 kefren Exp $
 .\
 .\ Copyright (c) 1983, 1991, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -152,8 +152,9 @@
 .Fl xns ,
 .Fl atalk ,
 .Fl inet ,
+.Fl inet6,
 or
-.Fl inet6
+.Fl mpls
 modifiers, only routes having destinations with addresses in the
 delineated family will be manipulated.
 .Pp
@@ -244,6 +245,17 @@
 and the names must be numeric specifications rather than
 symbolic names.
 .Pp
+The optional modifiers
+.Fl mpls ,
+and
+.Fl tag
+specify that all subsequent addresses are in the
+.Tn MPLS
+address family.
+See
+.Xr mpls 4 ,
+for examples about setting routes involving MPLS.
+.Pp
 The optional
 .Fl netmask
 qualifier is intended
@@ -391,6 +403,7 @@
 .El
 .Sh SEE ALSO
 .Xr esis 4 ,
+.Xr mpls 4 ,
 .Xr netintro 4 ,
 .Xr route 4 ,
 .Xr routed 8 ,



CVS commit: src/share/man/man4

2011-07-03 Thread Mihai Chelaru
Module Name:src
Committed By:   kefren
Date:   Sun Jul  3 07:25:52 UTC 2011

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

Log Message:
add RTA_TAG as defined in net/route.h


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/share/man/man4/route.4

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

Modified files:

Index: src/share/man/man4/route.4
diff -u src/share/man/man4/route.4:1.17 src/share/man/man4/route.4:1.18
--- src/share/man/man4/route.4:1.17	Mon Nov 15 21:19:59 2010
+++ src/share/man/man4/route.4	Sun Jul  3 07:25:52 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: route.4,v 1.17 2010/11/15 21:19:59 wiz Exp $
+.\	$NetBSD: route.4,v 1.18 2011/07/03 07:25:52 kefren Exp $
 .\
 .\ Copyright (c) 1990, 1991, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -327,6 +327,7 @@
 #define RTA_IFA   0x20   /* interface addr sockaddr present */
 #define RTA_AUTHOR0x40   /* sockaddr for author of redirect */
 #define RTA_BRD   0x80   /* for NEWADDR, broadcast or p-p dest addr */
+#define RTA_TAG   0x100  /* route tag */
 .Ed
 .Sh SEE ALSO
 .Xr socket 2 ,



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/powerpc

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 07:26:21 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc: gmp.h

Log Message:
re-generate (add mpn_udiv_w_sdiv prototype.)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp.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/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp.h:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp.h:1.1	Fri Jul  1 01:51:03 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp.h	Sun Jul  3 07:26:21 2011
@@ -1661,6 +1661,10 @@
 #define mpn_zero __MPN(zero)
 __GMP_DECLSPEC void mpn_zero __GMP_PROTO ((mp_ptr, mp_size_t));
 
+#define mpn_udiv_w_sdiv __MPN(udiv_w_sdiv)
+__GMP_DECLSPEC mp_limb_t mpn__udiv_w_sdiv __GMP_PROTO ((mp_limb_t *, mp_limb_t, mp_limb_t, mp_limb_t));
+
+
 / mpz inlines /
 
 /* The following are provided as inlines where possible, but always exist as



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

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 07:23:20 UTC 2011

Modified Files:
src/external/gpl3/gcc/lib: Makefile.hacks

Log Message:
add sysroot-suffix.h to the fake headers.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gcc/lib/Makefile.hacks

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/gcc/lib/Makefile.hacks
diff -u src/external/gpl3/gcc/lib/Makefile.hacks:1.1 src/external/gpl3/gcc/lib/Makefile.hacks:1.2
--- src/external/gpl3/gcc/lib/Makefile.hacks:1.1	Fri Jul  1 01:24:53 2011
+++ src/external/gpl3/gcc/lib/Makefile.hacks	Sun Jul  3 07:23:19 2011
@@ -1,9 +1,9 @@
-#	$NetBSD: Makefile.hacks,v 1.1 2011/07/01 01:24:53 mrg Exp $
+#	$NetBSD: Makefile.hacks,v 1.2 2011/07/03 07:23:19 mrg Exp $
 
 # some random crap we need in a few places
 
 # these aren't necessary but are #include'd
-FAKEHEADERS=	${EXTRA_FAKEHEADERS} insn-flags.h insn-constants.h
+FAKEHEADERS=	${EXTRA_FAKEHEADERS} insn-flags.h insn-constants.h sysroot-suffix.h
 ${FAKEHEADERS}:
 	${_MKTARGET_CREATE}
 	touch ${.TARGET}



CVS commit: src/external/gpl3/gcc/lib/libgcc

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 08:35:42 UTC 2011

Modified Files:
src/external/gpl3/gcc/lib/libgcc: Makefile.inc
src/external/gpl3/gcc/lib/libgcc/libgcc: Makefile

Log Message:
- Makefile.hacks isn't working here; revert this portion for now.
- support ${COPTS.${.IMPSRC:T}} in the .c.pico rule
- add a hack for m68k and _fixunsxfdi, uses above
- add support to build LIB2ADD_ST stuff


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gcc/lib/libgcc/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gcc/lib/libgcc/libgcc/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/gcc/lib/libgcc/Makefile.inc
diff -u src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.8 src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.9
--- src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.8	Fri Jul  1 10:04:13 2011
+++ src/external/gpl3/gcc/lib/libgcc/Makefile.inc	Sun Jul  3 08:35:41 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.8 2011/07/01 10:04:13 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.9 2011/07/03 08:35:41 mrg Exp $
 
 .if ${MKGCC} != no
 .if exists(${.CURDIR}/../arch/${MACHINE_ARCH}.mk)
@@ -151,21 +151,31 @@
 .include ../Makefile.tconfigh
 DPSRCS+=	tconfig.h
 
-${SRCS}: unwind.h
+# XXX figure out why Makefile.hacks doesn't work
 BUILDSYMLINKS+=	${G_UNWIND_H} unwind.h
 DPSRCS+=	unwind.h
 
-.include ../../Makefile.hacks
-
-${SRCS}: options.h
-
-optionlist: ${G_ALL_OPT_FILES} ${GCCARCH}/defs.mk Makefile ${DIST}/gcc/opt-gather.awk
-	${TOOL_AWK} -f ${DIST}/gcc/opt-gather.awk ${G_ALL_OPT_FILES} \
-		 ${.TARGET}
-
-options.h: optionlist ${DIST}/gcc/opt-functions.awk ${DIST}/gcc/opth-gen.awk
-	${TOOL_AWK} -f ${DIST}/gcc/opt-functions.awk \
-		-f ${DIST}/gcc/opth-gen.awk \
-		 optionlist  ${.TARGET}
+# these aren't necessary but are #include'd
+FAKEHEADERS=options.h insn-flags.h insn-constants.h sysroot-suffix.h
+${FAKEHEADERS}:
+	${_MKTARGET_CREATE}
+	touch ${.TARGET}
+DPSRCS+=	${FAKEHEADERS}
+CLEANFILES+=	${FAKEHEADERS}
+
+# XXX arm hack
+.if ${MACHINE_ARCH} == arm || ${MACHINE_ARCH} == armeb
+${SRCS}: insn-modes.h
+# XXX XXX
+${__DPSRCS.d}: insn-modes.h
+insn-modes.h:
+	${_MKTARGET_CREATE}
+	echo enum machine_mode { X };  ${.TARGET}
+DPSRCS+=	insn-modes.h
+CLEANFILES+=	insn-modes.h
+.endif
 
-CLEANFILES+=	options.h optionlist
+# XXX
+.if defined(HAVE_GCC)  ${HAVE_GCC} == 45  ${MACHINE_ARCH} == m68k
+COPTS._fixunsxfdi.c+=	-O0
+.endif

Index: src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile
diff -u src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile:1.1 src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile:1.2
--- src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile:1.1	Tue Jun 21 06:02:25 2011
+++ src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile	Sun Jul  3 08:35:42 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.1 2011/06/21 06:02:25 mrg Exp $
+#	$NetBSD: Makefile,v 1.2 2011/07/03 08:35:42 mrg Exp $
 
 REQUIRETOOLS=	yes
 NOLINT=		# defined
@@ -14,11 +14,21 @@
 .if !defined(MKNATIVE_LIBGCC_NEW)
 
 SRCS+=		${LIB2FUNCS} ${LIB2FUNCS_ST} ${LIB2DIVMOD} \
-		${G_LIB2ADD:T:S/.asm/.S/} ${LIB1ASMFUNCS}
+		${G_LIB2ADD:T:S/.asm/.S/} ${G_LIB2ADD_ST} ${LIB1ASMFUNCS}
 .if ${MKPIC} == no
 SRCS+=		${LIB2_EH}
 .endif
 
+# These usually just have foo.S, we need to link from the
+# gcc/config/$PLATFORM/foo.asm to it.  So far, only rs6000 uses it,
+# so we hack it for now.
+#.for file in ${G_LIB2ADD_ST}
+.   if ${MACHINE_ARCH} == powerpc  # XXX XXX why does the above work?*
+.for file in crtsavfpr.S crtresfpr.S crtsavgpr.S crtresgpr.S crtresxfpr.S crtresxgpr.S
+BUILDSYMLINKS+=	${GNUHOSTDIST}/gcc/config/rs6000/${file:S/.S$/.asm/} ${file}
+.endfor
+.   endif
+
 .else	# defined(MKNATIVE_LIBGCC_NEW)
 
 .include ../Makefile.srcs
@@ -41,7 +51,7 @@
 
 .c.pico:
 	${_MKTARGET_COMPILE}
-	${COMPILE.c} ${CSHLIBFLAGS} ${.IMPSRC} -o ${.TARGET}.tmp1
+	${COMPILE.c} ${COPTS.${.IMPSRC:T}} ${CSHLIBFLAGS} ${.IMPSRC} -o ${.TARGET}.tmp1
 	${NM} -pg ${.TARGET}.tmp1 | \
 	${TOOL_AWK} 'NF == 3 { print \t.hidden, $$3 }' | \
 	${CC} ${COPTS} -Wl,-x -r -nostdinc -nostdlib ${CPUFLAGS} -o ${.TARGET}.tmp2 ${.TARGET}.tmp1 -xassembler -



CVS commit: src/external/gpl3/gcc/lib/libgcc/arch

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 08:44:40 UTC 2011

Modified Files:
src/external/gpl3/gcc/lib/libgcc/arch: arm.mk powerpc.mk

Log Message:
regenerate


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gcc/lib/libgcc/arch/arm.mk \
src/external/gpl3/gcc/lib/libgcc/arch/powerpc.mk

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/gcc/lib/libgcc/arch/arm.mk
diff -u src/external/gpl3/gcc/lib/libgcc/arch/arm.mk:1.1 src/external/gpl3/gcc/lib/libgcc/arch/arm.mk:1.2
--- src/external/gpl3/gcc/lib/libgcc/arch/arm.mk:1.1	Fri Jul  1 01:57:04 2011
+++ src/external/gpl3/gcc/lib/libgcc/arch/arm.mk	Sun Jul  3 08:44:40 2011
@@ -1,11 +1,12 @@
 # This file is automatically generated.  DO NOT EDIT!
-# Generated from: 	NetBSD: mknative-gcc,v 1.55 2011/06/30 07:16:59 mrg Exp 
+# Generated from: 	NetBSD: mknative-gcc,v 1.58 2011/07/02 13:25:05 mrg Exp 
 # Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp 
 #
 G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I/var/obj/shark/usr/src3/destdir.shark/usr/include -I/var/obj/shark/usr/src3/destdir.shark/usr/include -I/var/obj/shark/usr/src3/destdir.shark/usr/include  -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber   -I/usr/include/libelf
 G_LIB2ADD=${GNUHOSTDIST}/gcc/config/floatunsidf.c ${GNUHOSTDIST}/gcc/config/floatunsisf.c
 G_LIB2ADDEH=${GNUHOSTDIST}/gcc/unwind-dw2.c ${GNUHOSTDIST}/gcc/unwind-dw2-fde.c ${GNUHOSTDIST}/gcc/unwind-sjlj.c ${GNUHOSTDIST}/gcc/gthr-gnat.c ${GNUHOSTDIST}/gcc/unwind-c.c
-G_LIB1ASMFUNCS=_thumb1_case_sqi _thumb1_case_uqi _thumb1_case_shi _thumb1_case_uhi _thumb1_case_si
+G_LIB2ADD_ST=
+G_LIB1ASMFUNCS=_thumb1_case_sqi _thumb1_case_uqi _thumb1_case_shi _thumb1_case_uhi _thumb1_case_si _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func _call_via_rX _interwork_call_via_rX _arm_fixunsdfsi _arm_floatdidf _arm_floatdisf _arm_floatundidf _arm_floatundisf _lshrdi3 _ashrdi3 _ashldi3 _clzsi2 _clzdi2 
 G_LIB1ASMSRC=arm/lib1funcs.asm
 G_LIB2_DIVMOD_FUNCS=_divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv _udivmoddi4
 G_LIB2FUNCS_ST=_eprintf __gcc_bcmp
Index: src/external/gpl3/gcc/lib/libgcc/arch/powerpc.mk
diff -u src/external/gpl3/gcc/lib/libgcc/arch/powerpc.mk:1.1 src/external/gpl3/gcc/lib/libgcc/arch/powerpc.mk:1.2
--- src/external/gpl3/gcc/lib/libgcc/arch/powerpc.mk:1.1	Fri Jul  1 01:57:05 2011
+++ src/external/gpl3/gcc/lib/libgcc/arch/powerpc.mk	Sun Jul  3 08:44:40 2011
@@ -1,10 +1,11 @@
 # This file is automatically generated.  DO NOT EDIT!
-# Generated from: 	NetBSD: mknative-gcc,v 1.55 2011/06/30 07:16:59 mrg Exp 
+# Generated from: 	NetBSD: mknative-gcc,v 1.57 2011/07/01 02:11:14 mrg Exp 
 # Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp 
 #
 G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I/var/obj/ofppc/usr/src3/destdir.ofppc/usr/include -I/var/obj/ofppc/usr/src3/destdir.ofppc/usr/include -I/var/obj/ofppc/usr/src3/destdir.ofppc/usr/include  -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber   -I/usr/include/libelf
 G_LIB2ADD=${GNUHOSTDIST}/gcc/config/rs6000/tramp.asm
 G_LIB2ADDEH=${GNUHOSTDIST}/gcc/unwind-dw2.c ${GNUHOSTDIST}/gcc/unwind-dw2-fde.c ${GNUHOSTDIST}/gcc/unwind-sjlj.c ${GNUHOSTDIST}/gcc/gthr-gnat.c ${GNUHOSTDIST}/gcc/unwind-c.c
+G_LIB2ADD_ST=crtsavfpr.S crtresfpr.S crtsavgpr.S crtresgpr.S crtresxfpr.S crtresxgpr.S
 G_LIB1ASMFUNCS=
 G_LIB1ASMSRC=
 G_LIB2_DIVMOD_FUNCS=_divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv _udivmoddi4



CVS commit: src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 08:45:42 UTC 2011

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc: c++config.h
config.h

Log Message:
regenerate.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/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/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h:1.2 src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h:1.3
--- src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h:1.2	Fri Jul  1 05:10:28 2011
+++ src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h	Sun Jul  3 08:45:42 2011
@@ -1,5 +1,5 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: 	NetBSD: mknative-gcc,v 1.56 2011/07/01 01:27:17 mrg Exp  */
+/* Generated from: 	NetBSD: mknative-gcc,v 1.57 2011/07/01 02:11:14 mrg Exp  */
 /* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp  */
 
 // Predefined symbols and macros -*- C++ -*-
@@ -499,7 +499,7 @@
 /* #undef _GLIBCXX_HAVE_FABSL */
 
 /* Define to 1 if you have the fenv.h header file. */
-#define _GLIBCXX_HAVE_FENV_H 1
+/* #undef _GLIBCXX_HAVE_FENV_H */
 
 /* Define to 1 if you have the `finite' function. */
 #define _GLIBCXX_HAVE_FINITE 1
@@ -788,7 +788,7 @@
 /* #undef _GLIBCXX_HAVE_TANL */
 
 /* Define to 1 if you have the tgmath.h header file. */
-#define _GLIBCXX_HAVE_TGMATH_H 1
+/* #undef _GLIBCXX_HAVE_TGMATH_H */
 
 /* Define to 1 if the target supports thread-local storage. */
 /* #undef _GLIBCXX_HAVE_TLS */
Index: src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/config.h
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/config.h:1.2 src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/config.h:1.3
--- src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/config.h:1.2	Fri Jul  1 05:10:28 2011
+++ src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/config.h	Sun Jul  3 08:45:42 2011
@@ -1,5 +1,5 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: 	NetBSD: mknative-gcc,v 1.56 2011/07/01 01:27:17 mrg Exp  */
+/* Generated from: 	NetBSD: mknative-gcc,v 1.57 2011/07/01 02:11:14 mrg Exp  */
 /* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp  */
 
 /* config.h.  Generated from config.h.in by configure.  */
@@ -120,7 +120,7 @@
 /* #undef HAVE_FABSL */
 
 /* Define to 1 if you have the fenv.h header file. */
-#define HAVE_FENV_H 1
+/* #undef HAVE_FENV_H */
 
 /* Define to 1 if you have the `finite' function. */
 #define HAVE_FINITE 1
@@ -409,7 +409,7 @@
 /* #undef HAVE_TANL */
 
 /* Define to 1 if you have the tgmath.h header file. */
-#define HAVE_TGMATH_H 1
+/* #undef HAVE_TGMATH_H */
 
 /* Define to 1 if the target supports thread-local storage. */
 /* #undef HAVE_TLS */



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

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 08:53:24 UTC 2011

Added Files:
src/sys/rump/librump/rumpkern/arch/powerpc: Makefile.inc

Log Message:
define ARCH_ELFSIZE=32 and add kobj_stubs.c rumpcpu_generic.c.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/sys/rump/librump/rumpkern/arch/powerpc/Makefile.inc

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

Added files:

Index: src/sys/rump/librump/rumpkern/arch/powerpc/Makefile.inc
diff -u /dev/null src/sys/rump/librump/rumpkern/arch/powerpc/Makefile.inc:1.1
--- /dev/null	Sun Jul  3 08:53:24 2011
+++ src/sys/rump/librump/rumpkern/arch/powerpc/Makefile.inc	Sun Jul  3 08:53:23 2011
@@ -0,0 +1,4 @@
+# $NetBSD: Makefile.inc,v 1.1 2011/07/03 08:53:23 mrg Exp $
+
+CPPFLAGS+=	-DARCH_ELFSIZE=32
+SRCS+=  	kobj_stubs.c rumpcpu_generic.c



CVS commit: src/sys/arch/vax/boot/boot

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 08:56:25 UTC 2011

Modified Files:
src/sys/arch/vax/boot/boot: if_ni.c

Log Message:
avoid some multi-level pointer cast issues.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/vax/boot/boot/if_ni.c

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

Modified files:

Index: src/sys/arch/vax/boot/boot/if_ni.c
diff -u src/sys/arch/vax/boot/boot/if_ni.c:1.8 src/sys/arch/vax/boot/boot/if_ni.c:1.9
--- src/sys/arch/vax/boot/boot/if_ni.c:1.8	Mon Oct 26 19:16:58 2009
+++ src/sys/arch/vax/boot/boot/if_ni.c	Sun Jul  3 08:56:25 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_ni.c,v 1.8 2009/10/26 19:16:58 cegger Exp $ */
+/*	$NetBSD: if_ni.c,v 1.9 2011/07/03 08:56:25 mrg Exp $ */
 /*
  * Copyright (c) 2000 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -194,6 +194,7 @@
 	struct ni_msg *msg;
 	struct ni_ptdb *ptdb;
 	int i, va, res;
+	struct ni_param *nip;
 
 	if (beenhere++  askname == 0)
 		return 0;
@@ -368,7 +369,8 @@
 	msg-nm_status = 0;
 	msg-nm_len = sizeof(struct ni_param) + 6;
 	msg-nm_opcode2 = NI_WPARAM;
-	((struct ni_param *)msg-nm_text[0])-np_flags = NP_PAD;
+	nip = (struct ni_param *)msg-nm_text[0];
+	nip-np_flags = NP_PAD;
 
 	puton(msg, gvp-nc_forw0, PCR_CMDQNE|PCR_CMDQ0|PCR_OWN);
 
@@ -383,8 +385,7 @@
 		insput(data, fqb-nf_mforw, PCR_FREEQNE|PCR_MFREEQ|PCR_OWN);
 	}
 #endif
-	bcopy(((struct ni_param *)msg-nm_text[0])-np_dpa,
-	enaddr, ETHER_ADDR_LEN);
+	bcopy(nip-np_dpa, enaddr, ETHER_ADDR_LEN);
 	insput(data, fqb-nf_mforw, PCR_FREEQNE|PCR_MFREEQ|PCR_OWN);
 
 #ifdef NIDEBUG



CVS commit: src/sys

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 08:57:43 UTC 2011

Modified Files:
src/sys/fs/puffs: puffs_msgif.c
src/sys/kern: sys_process.c

Log Message:
avoid some uninitialised variable warnings from GCC.
at least the puffs one seems valid, but i'm not 100% sure.


To generate a diff of this commit:
cvs rdiff -u -r1.86 -r1.87 src/sys/fs/puffs/puffs_msgif.c
cvs rdiff -u -r1.156 -r1.157 src/sys/kern/sys_process.c

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

Modified files:

Index: src/sys/fs/puffs/puffs_msgif.c
diff -u src/sys/fs/puffs/puffs_msgif.c:1.86 src/sys/fs/puffs/puffs_msgif.c:1.87
--- src/sys/fs/puffs/puffs_msgif.c:1.86	Sun Jun 12 03:35:54 2011
+++ src/sys/fs/puffs/puffs_msgif.c	Sun Jul  3 08:57:43 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: puffs_msgif.c,v 1.86 2011/06/12 03:35:54 rmind Exp $	*/
+/*	$NetBSD: puffs_msgif.c,v 1.87 2011/07/03 08:57:43 mrg Exp $	*/
 
 /*
  * Copyright (c) 2005, 2006, 2007  Antti Kantee.  All Rights Reserved.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: puffs_msgif.c,v 1.86 2011/06/12 03:35:54 rmind Exp $);
+__KERNEL_RCSID(0, $NetBSD: puffs_msgif.c,v 1.87 2011/07/03 08:57:43 mrg Exp $);
 
 #include sys/param.h
 #include sys/atomic.h
@@ -603,8 +603,8 @@
 	uint8_t **data, size_t *dlen, void **parkptr)
 {
 	struct puffs_mount *pmp = this;
-	struct puffs_msgpark *park;
-	struct puffs_req *preq;
+	struct puffs_msgpark *park = NULL;
+	struct puffs_req *preq = NULL;
 	int error;
 
 	error = 0;

Index: src/sys/kern/sys_process.c
diff -u src/sys/kern/sys_process.c:1.156 src/sys/kern/sys_process.c:1.157
--- src/sys/kern/sys_process.c:1.156	Thu Jul  1 02:38:31 2010
+++ src/sys/kern/sys_process.c	Sun Jul  3 08:57:43 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: sys_process.c,v 1.156 2010/07/01 02:38:31 rmind Exp $	*/
+/*	$NetBSD: sys_process.c,v 1.157 2011/07/03 08:57:43 mrg Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -118,7 +118,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: sys_process.c,v 1.156 2010/07/01 02:38:31 rmind Exp $);
+__KERNEL_RCSID(0, $NetBSD: sys_process.c,v 1.157 2011/07/03 08:57:43 mrg Exp $);
 
 #include opt_ptrace.h
 #include opt_ktrace.h
@@ -242,7 +242,7 @@
 	int resume_all;
 	ksiginfo_t ksi;
 	char *path;
-	int len;
+	int len = 0;
 
 	error = 0;
 	req = SCARG(uap, req);



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

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 09:08:55 UTC 2011

Modified Files:
src/external/gpl3/gcc/dist/gcc: config.gcc

Log Message:
set default_m68k_cpu for our m68* ports.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gcc/dist/gcc/config.gcc

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/gcc/dist/gcc/config.gcc
diff -u src/external/gpl3/gcc/dist/gcc/config.gcc:1.5 src/external/gpl3/gcc/dist/gcc/config.gcc:1.6
--- src/external/gpl3/gcc/dist/gcc/config.gcc:1.5	Sun Jul  3 06:39:22 2011
+++ src/external/gpl3/gcc/dist/gcc/config.gcc	Sun Jul  3 09:08:55 2011
@@ -1640,10 +1640,10 @@
 	m68010*)
 		target_cpu_default=0
 		tmake_file=m68k/t-m68kelf
+		default_m68k_cpu=68010
 		;;
 	*)
-		target_cpu_default=MASK_68020|MASK_68881|MASK_BITFIELD
-		#default_m68k_cpu=68020
+		default_m68k_cpu=68020
 		;;
 	esac
 	;;



CVS commit: src/share/man/man4

2011-07-03 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sun Jul  3 09:10:37 UTC 2011

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

Log Message:
Remove trailing whitespace.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man4/mpls.4

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

Modified files:

Index: src/share/man/man4/mpls.4
diff -u src/share/man/man4/mpls.4:1.5 src/share/man/man4/mpls.4:1.6
--- src/share/man/man4/mpls.4:1.5	Sun Jul  3 07:00:47 2011
+++ src/share/man/man4/mpls.4	Sun Jul  3 09:10:37 2011
@@ -1,4 +1,4 @@
-.\ $NetBSD: mpls.4,v 1.5 2011/07/03 07:00:47 kefren Exp $
+.\ $NetBSD: mpls.4,v 1.6 2011/07/03 09:10:37 wiz Exp $
 .\
 .\ Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -75,13 +75,13 @@
 |   ||   ||
 ---
 .Ed
-.Bl -tag -width Bottom of stack
+.Bl -tag -width Bottom of Stack
 .It Label
 20 bits representing FEC, consequently the only information
 used to forward the frame to next-hop
 .It Experimental
 3 bits that are sometimes used for specifying a type of service
-.It Bottom of stack
+.It Bottom of Stack
 1 bit that is set for the last entry in the shim
 stack and 0 for all others.
 This way, multiple labels can
@@ -220,7 +220,7 @@
 .It
 Route IP packets into MPLS domain and prepend more tags
 .Bd -literal
-# route add 10/8 -ifa 192.168.1.200 -ifp mpls0 -tag 20,30,40 -inet 192.168.1.100 
+# route add 10/8 -ifa 192.168.1.200 -ifp mpls0 -tag 20,30,40 -inet 192.168.1.100
 .Ed
 For the above example, tag 20 will be inserted at Bottom of Stack, while tag 40
 will be set into the outermost shim.



CVS commit: src/external/gpl3/gcc/dist/gcc/config/m68k

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 09:10:42 UTC 2011

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/m68k: netbsd-elf.h

Log Message:
don't use the netbsd LIBGCC_SPEC on sun2.  there's no libgcc_pic.a


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.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/gcc/dist/gcc/config/m68k/netbsd-elf.h
diff -u src/external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h:1.2 src/external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h:1.3
--- src/external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h:1.2	Sat Jul  2 13:18:39 2011
+++ src/external/gpl3/gcc/dist/gcc/config/m68k/netbsd-elf.h	Sun Jul  3 09:10:42 2011
@@ -85,6 +85,11 @@
 #undef LINK_SPEC
 #define LINK_SPEC NETBSD_LINK_SPEC_ELF
 
+/* NetBSD/sun2 does not support shlibs, avoid using libgcc_pic.  */
+#if TARGET_DEFAULT_CPU == 0
+#undef REAL_LIBGCC_SPEC
+#endif
+
 #define NETBSD_ENTRY_POINT _start
 
 /* Output assembler code to FILE to increment profiler label # LABELNO



CVS commit: src/sbin/route

2011-07-03 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sun Jul  3 09:15:20 UTC 2011

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

Log Message:
Whitespace nit.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sbin/route/route.8

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

Modified files:

Index: src/sbin/route/route.8
diff -u src/sbin/route/route.8:1.43 src/sbin/route/route.8:1.44
--- src/sbin/route/route.8:1.43	Sun Jul  3 07:20:37 2011
+++ src/sbin/route/route.8	Sun Jul  3 09:15:20 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: route.8,v 1.43 2011/07/03 07:20:37 kefren Exp $
+.\	$NetBSD: route.8,v 1.44 2011/07/03 09:15:20 wiz Exp $
 .\
 .\ Copyright (c) 1983, 1991, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -152,7 +152,7 @@
 .Fl xns ,
 .Fl atalk ,
 .Fl inet ,
-.Fl inet6,
+.Fl inet6 ,
 or
 .Fl mpls
 modifiers, only routes having destinations with addresses in the



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

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 10:34:25 UTC 2011

Modified Files:
src/sys/arch/mips/include: mcontext.h

Log Message:
s/#elif/#else/ -- when there's nothing to check.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/mips/include/mcontext.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/mips/include/mcontext.h
diff -u src/sys/arch/mips/include/mcontext.h:1.17 src/sys/arch/mips/include/mcontext.h:1.18
--- src/sys/arch/mips/include/mcontext.h:1.17	Tue Mar 15 07:33:36 2011
+++ src/sys/arch/mips/include/mcontext.h	Sun Jul  3 10:34:25 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: mcontext.h,v 1.17 2011/03/15 07:33:36 matt Exp $	*/
+/*	$NetBSD: mcontext.h,v 1.18 2011/07/03 10:34:25 mrg Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
@@ -182,7 +182,7 @@
 #elif __mips_n64
 #define	__UCONTEXT_SIZE		__UCONTEXT_SIZE_N64
 #define	__UCONTEXT32_SIZE	__UCONTEXT_SIZE_N32
-#elif
+#else
 #error O64 is not supported
 #endif
 



CVS commit: src/sys/arch

2011-07-03 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Jul  3 10:40:16 UTC 2011

Modified Files:
src/sys/arch/amd64/conf: GENERIC
src/sys/arch/i386/conf: GENERIC

Log Message:
Add back DIAGNOSTIC option to x86 GENERIC kernels, as discussed on tech-kern.
This will have to be commented out on release branches.


To generate a diff of this commit:
cvs rdiff -u -r1.321 -r1.322 src/sys/arch/amd64/conf/GENERIC
cvs rdiff -u -r1.1034 -r1.1035 src/sys/arch/i386/conf/GENERIC

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

Modified files:

Index: src/sys/arch/amd64/conf/GENERIC
diff -u src/sys/arch/amd64/conf/GENERIC:1.321 src/sys/arch/amd64/conf/GENERIC:1.322
--- src/sys/arch/amd64/conf/GENERIC:1.321	Tue Jun 21 05:01:18 2011
+++ src/sys/arch/amd64/conf/GENERIC	Sun Jul  3 10:40:16 2011
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.321 2011/06/21 05:01:18 jruoho Exp $
+# $NetBSD: GENERIC,v 1.322 2011/07/03 10:40:16 bouyer Exp $
 #
 # GENERIC machine description file
 #
@@ -22,7 +22,7 @@
 
 options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
 
-#ident 		GENERIC-$Revision: 1.321 $
+#ident 		GENERIC-$Revision: 1.322 $
 
 maxusers	64		# estimated number of users
 
@@ -91,7 +91,8 @@
 options 	BUFQ_PRIOCSCAN
 
 # Diagnostic/debugging support options
-#options 	DIAGNOSTIC	# expensive kernel consistency checks
+options 	DIAGNOSTIC	# expensive kernel consistency checks
+# XXX to be commented out on release branch
 #options 	DEBUG		# expensive debugging checks/support
 #options 	LOCKDEBUG	# expensive locking checks/support
 #options 	KMEMSTATS	# kernel memory statistics (vmstat -m)

Index: src/sys/arch/i386/conf/GENERIC
diff -u src/sys/arch/i386/conf/GENERIC:1.1034 src/sys/arch/i386/conf/GENERIC:1.1035
--- src/sys/arch/i386/conf/GENERIC:1.1034	Tue Jun 21 05:01:17 2011
+++ src/sys/arch/i386/conf/GENERIC	Sun Jul  3 10:40:16 2011
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.1034 2011/06/21 05:01:17 jruoho Exp $
+# $NetBSD: GENERIC,v 1.1035 2011/07/03 10:40:16 bouyer Exp $
 #
 # GENERIC machine description file
 #
@@ -22,7 +22,7 @@
 
 options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
 
-#ident 		GENERIC-$Revision: 1.1034 $
+#ident 		GENERIC-$Revision: 1.1035 $
 
 maxusers	64		# estimated number of users
 
@@ -113,7 +113,8 @@
 options 	BUFQ_PRIOCSCAN
 
 # Diagnostic/debugging support options
-#options 	DIAGNOSTIC	# expensive kernel consistency checks
+options 	DIAGNOSTIC	# expensive kernel consistency checks
+# XXX to be commented out on release branch
 #options 	DEBUG		# expensive debugging checks/support
 #options 	LOCKDEBUG	# expensive locking checks/support
 #options 	KMEMSTATS	# kernel memory statistics (vmstat -m)



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

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 10:41:37 UTC 2011

Modified Files:
src/sys/arch/mips/include: stdarg.h

Log Message:
add GCC 4.5 support.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/mips/include/stdarg.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/mips/include/stdarg.h
diff -u src/sys/arch/mips/include/stdarg.h:1.29 src/sys/arch/mips/include/stdarg.h:1.30
--- src/sys/arch/mips/include/stdarg.h:1.29	Mon Dec 14 00:46:05 2009
+++ src/sys/arch/mips/include/stdarg.h	Sun Jul  3 10:41:37 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: stdarg.h,v 1.29 2009/12/14 00:46:05 matt Exp $	*/
+/*	$NetBSD: stdarg.h,v 1.30 2011/07/03 10:41:37 mrg Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993
@@ -48,7 +48,11 @@
 
 #elif __GNUC_PREREQ__(3, 0)
 
+#if __GNUC_PREREQ__(4, 5)
+#define va_start(ap, last)	__builtin_va_start((ap), last)
+#else
 #define va_start(ap, last)	__builtin_stdarg_start((ap), last)
+#endif
 #define va_arg(ap, type)	__builtin_va_arg((ap), type)
 #define va_end(ap)		__builtin_va_end((ap))
 #define __va_copy(dest, src)	__builtin_va_copy((dest), (src))



CVS commit: src/tools/gcc

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 12:11:33 UTC 2011

Modified Files:
src/tools/gcc: Makefile mknative-gcc

Log Message:
-I$DESTDIR/usr/include is escaping into the generated files from
the native-gcc run.  add some sed commands to remove them.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/tools/gcc/Makefile
cvs rdiff -u -r1.59 -r1.60 src/tools/gcc/mknative-gcc

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

Modified files:

Index: src/tools/gcc/Makefile
diff -u src/tools/gcc/Makefile:1.42 src/tools/gcc/Makefile:1.43
--- src/tools/gcc/Makefile:1.42	Fri Jul  1 01:27:17 2011
+++ src/tools/gcc/Makefile	Sun Jul  3 12:11:32 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.42 2011/07/01 01:27:17 mrg Exp $
+#	$NetBSD: Makefile,v 1.43 2011/07/03 12:11:32 mrg Exp $
 
 .include bsd.own.mk
 
@@ -116,12 +116,14 @@
 bootstrap-libgcc: .configure_done
 	@echo 'Creating files needed for libgcc by a native bootstrap build.'
 	@MAKE=${BUILD_MAKE:Q} ${HOST_SH} ${MKNATIVE} lib${MODULE} \
-		${.OBJDIR}/build ${NEWCONFIGDIR} ${MACHINE_GNU_PLATFORM}
+		${.OBJDIR}/build ${NEWCONFIGDIR} ${MACHINE_GNU_PLATFORM} \
+		${DESTDIR}
 
 native-gcc: .native/.configure_done
 	@echo 'Extracting GNU GCC configury for a native toolchain.'
 	@MAKE=${BUILD_MAKE:Q} ${HOST_SH} ${MKNATIVE} ${MKNATIVE_TARGET} \
-		${.OBJDIR}/.native ${NEWCONFIGDIR} ${MACHINE_GNU_PLATFORM}
+		${.OBJDIR}/.native ${NEWCONFIGDIR} ${MACHINE_GNU_PLATFORM} \
+		${DESTDIR}
 
 NATIVE_CONFIGURE_ARGS=	${COMMON_CONFIGURE_ARGS}
 .if ${HAVE_GCC} = 45

Index: src/tools/gcc/mknative-gcc
diff -u src/tools/gcc/mknative-gcc:1.59 src/tools/gcc/mknative-gcc:1.60
--- src/tools/gcc/mknative-gcc:1.59	Sun Jul  3 06:47:12 2011
+++ src/tools/gcc/mknative-gcc	Sun Jul  3 12:11:32 2011
@@ -1,5 +1,5 @@
 #!/bin/sh
-#	$NetBSD: mknative-gcc,v 1.59 2011/07/03 06:47:12 mrg Exp $
+#	$NetBSD: mknative-gcc,v 1.60 2011/07/03 12:11:32 mrg Exp $
 #
 # Shell script for generating all the constants needed for a native
 # platform build of src/gnu/dist/gcc.
@@ -11,6 +11,7 @@
 _TOP=$3
 _PLATFORM=$4
 _ABI=$5
+_DESTDIR=$6
 _VPATH=`grep VPATH ${_TMPDIR}/Makefile | sed 's,^.*=[ 	]*,,'`
 _GNU_DIST=`cd ${_VPATH}; pwd`
 
@@ -29,6 +30,7 @@
 	getvars gcc/Makefile \
 		INCLUDES CRTSTUFF_CFLAGS CRTSTUFF_T_CFLAGS \
 		tm_defines xm_file xm_defines \
+		| sed s,-I$_DESTDIR/usr/include,, \
 		| write_mk $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH.mk
 }
 
@@ -387,7 +389,8 @@
 			SHLIB_MAPFILES SHLIB_NM_FLAGS \
 			EXTRA_HEADERS xm_defines \
 			tm_defines ${_extravars}
-	} | write_mk $_OUTDIRBASE/lib/lib$_subdir/arch${_archsubdir}/$MACHINE_ARCH.mk
+	} | sed s,-I$_DESTDIR/usr/include,, \
+	| write_mk $_OUTDIRBASE/lib/lib$_subdir/arch${_archsubdir}/$MACHINE_ARCH.mk
 
 	# Generate new style files.
 	if [ -n ${MKNATIVE_LIBGCC_NEW} ]; then
@@ -569,7 +572,8 @@
 			GTFILES GTFILES_LANG_DIR_NAMES \
 			tm_defines host_xm_file host_xm_defines tm_p_file \
 			target_cpu_default ${_extravars} ${_extravars2} \
-			lang_specs_files ${_extravars3}
+			lang_specs_files ${_extravars3} \
+| sed s,-I$_DESTDIR/usr/include,, \
 		getvars gcc/Makefile \
 			LIB2ADDEHDEP | sed 's/unwind.inc//'
 		getvars gcc/Makefile \



CVS commit: src/tools/gcc

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 12:26:03 UTC 2011

Modified Files:
src/tools/gcc: mknative-gcc

Log Message:
fix the previous


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/tools/gcc/mknative-gcc

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

Modified files:

Index: src/tools/gcc/mknative-gcc
diff -u src/tools/gcc/mknative-gcc:1.60 src/tools/gcc/mknative-gcc:1.61
--- src/tools/gcc/mknative-gcc:1.60	Sun Jul  3 12:11:32 2011
+++ src/tools/gcc/mknative-gcc	Sun Jul  3 12:26:02 2011
@@ -1,5 +1,5 @@
 #!/bin/sh
-#	$NetBSD: mknative-gcc,v 1.60 2011/07/03 12:11:32 mrg Exp $
+#	$NetBSD: mknative-gcc,v 1.61 2011/07/03 12:26:02 mrg Exp $
 #
 # Shell script for generating all the constants needed for a native
 # platform build of src/gnu/dist/gcc.
@@ -10,11 +10,16 @@
 _TMPDIR=$2
 _TOP=$3
 _PLATFORM=$4
-_ABI=$5
-_DESTDIR=$6
+_DESTDIR=$5
+_ABI=$6
 _VPATH=`grep VPATH ${_TMPDIR}/Makefile | sed 's,^.*=[ 	]*,,'`
 _GNU_DIST=`cd ${_VPATH}; pwd`
 
+if [ -z $_DESTDIR ]; then
+	echo \$_DESTDIR is empty 21
+	exit 1
+fi
+
 . $_TOP/tools/gcc/mknative.common
 
 # default to GCC 4.1 for now
@@ -30,7 +35,7 @@
 	getvars gcc/Makefile \
 		INCLUDES CRTSTUFF_CFLAGS CRTSTUFF_T_CFLAGS \
 		tm_defines xm_file xm_defines \
-		| sed s,-I$_DESTDIR/usr/include,, \
+		| sed s,-I$_DESTDIR/usr/include,,g \
 		| write_mk $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH.mk
 }
 
@@ -389,7 +394,7 @@
 			SHLIB_MAPFILES SHLIB_NM_FLAGS \
 			EXTRA_HEADERS xm_defines \
 			tm_defines ${_extravars}
-	} | sed s,-I$_DESTDIR/usr/include,, \
+	} | sed s,-I$_DESTDIR/usr/include,,g \
 	| write_mk $_OUTDIRBASE/lib/lib$_subdir/arch${_archsubdir}/$MACHINE_ARCH.mk
 
 	# Generate new style files.
@@ -573,7 +578,7 @@
 			tm_defines host_xm_file host_xm_defines tm_p_file \
 			target_cpu_default ${_extravars} ${_extravars2} \
 			lang_specs_files ${_extravars3} \
-| sed s,-I$_DESTDIR/usr/include,, \
+| sed s,-I$_DESTDIR/usr/include,,g
 		getvars gcc/Makefile \
 			LIB2ADDEHDEP | sed 's/unwind.inc//'
 		getvars gcc/Makefile \



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

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 13:05:19 UTC 2011

Modified Files:
src/external/gpl3/gcc/dist/gcc: config.gcc

Log Message:
for mips, MASK_SOFT_FLOAT has become MASK_SOFT_FLOAT_ABI.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/dist/gcc/config.gcc

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/gcc/dist/gcc/config.gcc
diff -u src/external/gpl3/gcc/dist/gcc/config.gcc:1.6 src/external/gpl3/gcc/dist/gcc/config.gcc:1.7
--- src/external/gpl3/gcc/dist/gcc/config.gcc:1.6	Sun Jul  3 09:08:55 2011
+++ src/external/gpl3/gcc/dist/gcc/config.gcc	Sun Jul  3 13:05:19 2011
@@ -1762,7 +1762,7 @@
 	esac
 	;;
 mips64*-*-netbsd*)			# NetBSD/mips64, either endian.
-	target_cpu_default=MASK_ABICALLS|MASK_64BIT|MASK_FLOAT64|MASK_SOFT_FLOAT
+	target_cpu_default=MASK_ABICALLS|MASK_64BIT|MASK_FLOAT64|MASK_SOFT_FLOAT_ABI
 	tm_file=elfos.h ${tm_file} mips/elf.h netbsd.h netbsd-elf.h mips/netbsd.h mips/netbsd64.h
 	tmake_file=${tmake_file} mips/t-netbsd64
 #	tm_defines=${tm_defines} MIPS_ISA_DEFAULT=64



CVS commit: src/external/gpl3/gcc/dist/gcc/config/mips

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 13:06:37 UTC 2011

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/mips: netbsd64.h

Log Message:
undef DRIVER_SELF_SPECS before defining it.
also, insert BASE_DRIVER_SELF_SPECS into DRIVER_SELF_SPECS.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.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/gcc/dist/gcc/config/mips/netbsd64.h
diff -u src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h:1.1 src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h:1.2
--- src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h:1.1	Wed Jun 29 04:59:10 2011
+++ src/external/gpl3/gcc/dist/gcc/config/mips/netbsd64.h	Sun Jul  3 13:06:36 2011
@@ -22,9 +22,11 @@
 /* Force the default endianness and ABI flags onto the command line
in order to make the other specs easier to write.  */
 
+#undef DRIVER_SELF_SPECS
 #define DRIVER_SELF_SPECS \
-%{!EB:%{!EL:%(endian_spec)}}, \
-%{!mabi=*: -mabi=n32}
+  BASE_DRIVER_SELF_SPECS \
+  %{!EB:%{!EL:%(endian_spec)}}, \
+  %{!mabi=*: -mabi=n32}
 
 /* Define default target values.  */
 



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

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 14:09:58 UTC 2011

Modified Files:
src/external/gpl3/gcc/dist/gcc: Makefile.in

Log Message:
avoid passing -I$DESTDIR/usr/include to the $HOST_CC.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/dist/gcc/Makefile.in

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/gcc/dist/gcc/Makefile.in
diff -u src/external/gpl3/gcc/dist/gcc/Makefile.in:1.4 src/external/gpl3/gcc/dist/gcc/Makefile.in:1.5
--- src/external/gpl3/gcc/dist/gcc/Makefile.in:1.4	Thu Jun 23 12:11:24 2011
+++ src/external/gpl3/gcc/dist/gcc/Makefile.in	Sun Jul  3 14:09:57 2011
@@ -767,7 +767,7 @@
 
 # Native linker and preprocessor flags.  For x-fragment overrides.
 BUILD_LDFLAGS=@BUILD_LDFLAGS@
-BUILD_CPPFLAGS=$(ALL_CPPFLAGS)
+BUILD_CPPFLAGS=$(BALL_CPPFLAGS)
 
 # Actual name to use when installing a native compiler.
 GCC_INSTALL_NAME := $(shell echo gcc|sed '$(program_transform_name)')
@@ -982,6 +982,7 @@
 # puts -I options in CPPFLAGS, our include files in the srcdir will always
 # win against random include files in /usr/include.
 ALL_CPPFLAGS = $(INCLUDES) $(CPPFLAGS)
+BALL_CPPFLAGS = $(BINCLUDES) $(CPPFLAGS)
 
 # This is the variable to use when using $(COMPILER).
 ifneq ($(ENABLE_BUILD_WITH_CXX),yes)
@@ -1043,6 +1044,10 @@
 	   -I$(srcdir)/../include @INCINTL@ \
 	   $(CPPINC) $(GMPINC) $(DECNUMINC) \
 	   $(PPLINC) $(CLOOGINC) $(LIBELFINC)
+BINCLUDES = -I. -I$(@D) -I$(srcdir) -I$(srcdir)/$(@D) \
+	   -I$(srcdir)/../include @INCINTL@ \
+	   $(CPPINC) $(DECNUMINC) \
+	   $(PPLINC) $(CLOOGINC) $(LIBELFINC)
 
 .c.o:
 	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $ $(OUTPUT_OPTION)



CVS commit: src/lib/libc/sys

2011-07-03 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jul  3 14:11:43 UTC 2011

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

Log Message:
Note that mknod(2) may fail with EINVAL.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/lib/libc/sys/mknod.2

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

Modified files:

Index: src/lib/libc/sys/mknod.2
diff -u src/lib/libc/sys/mknod.2:1.20 src/lib/libc/sys/mknod.2:1.21
--- src/lib/libc/sys/mknod.2:1.20	Mon May 31 12:16:20 2010
+++ src/lib/libc/sys/mknod.2	Sun Jul  3 14:11:43 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: mknod.2,v 1.20 2010/05/31 12:16:20 njoly Exp $
+.\	$NetBSD: mknod.2,v 1.21 2011/07/03 14:11:43 jruoho Exp $
 .\
 .\ Copyright (c) 1980, 1991, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\
 .\ @(#)mknod.2	8.1 (Berkeley) 6/4/93
 .\
-.Dd January 18, 2007
+.Dd July 3, 2011
 .Dt MKNOD 2
 .Os
 .Sh NAME
@@ -78,6 +78,12 @@
 A component of the path prefix does not exist.
 .It Bq Er EACCES
 Search permission is denied for a component of the path prefix.
+.It Bq Er EINVAL
+The supplied
+.Fa mode
+or
+.Fa dev
+is invalid.
 .It Bq Er ELOOP
 Too many symbolic links were encountered in translating the pathname.
 .It Bq Er EPERM



CVS commit: src

2011-07-03 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jul  3 14:34:22 UTC 2011

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/syscall: Makefile
Added Files:
src/tests/syscall: t_mknod.c

Log Message:
Few simple tests for mknod(2), including a skipped one for PR kern/45111.


To generate a diff of this commit:
cvs rdiff -u -r1.355 -r1.356 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.33 -r1.34 src/tests/syscall/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/syscall/t_mknod.c

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

Modified files:

Index: src/distrib/sets/lists/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.355 src/distrib/sets/lists/tests/mi:1.356
--- src/distrib/sets/lists/tests/mi:1.355	Sat Jun 25 05:45:13 2011
+++ src/distrib/sets/lists/tests/mi	Sun Jul  3 14:34:21 2011
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.355 2011/06/25 05:45:13 nonaka Exp $
+# $NetBSD: mi,v 1.356 2011/07/03 14:34:21 jruoho Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -633,6 +633,7 @@
 ./usr/libdata/debug/usr/tests/syscall/t_itimer.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_kill.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_mincore.debug			tests-syscall-debug	debug,atf
+./usr/libdata/debug/usr/tests/syscall/t_mknod.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_mmap.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_mprotect.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_msync.debug			tests-syscall-debug	debug,atf
@@ -2379,6 +2380,7 @@
 ./usr/tests/syscall/t_itimer			tests-syscall-tests	atf
 ./usr/tests/syscall/t_kill			tests-syscall-tests	atf
 ./usr/tests/syscall/t_mincore			tests-syscall-tests	atf
+./usr/tests/syscall/t_mknod			tests-syscall-tests	atf
 ./usr/tests/syscall/t_mmap			tests-syscall-tests	atf
 ./usr/tests/syscall/t_mprotect			tests-syscall-tests	atf
 ./usr/tests/syscall/t_msync			tests-syscall-tests	atf

Index: src/tests/syscall/Makefile
diff -u src/tests/syscall/Makefile:1.33 src/tests/syscall/Makefile:1.34
--- src/tests/syscall/Makefile:1.33	Mon Jun 20 18:03:41 2011
+++ src/tests/syscall/Makefile	Sun Jul  3 14:34:22 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.33 2011/06/20 18:03:41 jruoho Exp $
+# $NetBSD: Makefile,v 1.34 2011/07/03 14:34:22 jruoho Exp $
 
 .include bsd.own.mk
 
@@ -8,7 +8,7 @@
 TESTS_C+=	t_getgroups t_getlogin t_getpid
 TESTS_C+=	t_getrusage t_getsid t_gettimeofday
 TESTS_C+=	t_itimer t_kill
-TESTS_C+=	t_mincore t_mmap t_mprotect t_msync t_nanosleep
+TESTS_C+=	t_mincore t_mknod t_mmap t_mprotect t_msync t_nanosleep
 TESTS_C+=	t_poll t_pollts t_pselect
 TESTS_C+=	t_setrlimit t_setuid t_stat t_timer t_truncate t_umask
 

Added files:

Index: src/tests/syscall/t_mknod.c
diff -u /dev/null src/tests/syscall/t_mknod.c:1.1
--- /dev/null	Sun Jul  3 14:34:22 2011
+++ src/tests/syscall/t_mknod.c	Sun Jul  3 14:34:22 2011
@@ -0,0 +1,164 @@
+/* $NetBSD: t_mknod.c,v 1.1 2011/07/03 14:34:22 jruoho Exp $ */
+
+/*-
+ * Copyright (c) 2011 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Jukka Ruohonen.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+#include sys/cdefs.h
+__RCSID($NetBSD: t_mknod.c,v 1.1 2011/07/03 14:34:22 jruoho Exp $);
+
+#include sys/stat.h
+
+#include atf-c.h
+#include errno.h
+#include limits.h
+#include stdio.h
+#include string.h
+#include unistd.h
+
+static char	 path[] = node;
+
+ATF_TC_WITH_CLEANUP(mknod_err);

CVS commit: src/external/gpl3/gcc/usr.bin/gcc/arch/sh3eb

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 14:42:13 UTC 2011

Added Files:
src/external/gpl3/gcc/usr.bin/gcc/arch/sh3eb: sysroot-suffix.h

Log Message:
add missed generated file.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/usr.bin/gcc/arch/sh3eb/sysroot-suffix.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/gcc/usr.bin/gcc/arch/sh3eb/sysroot-suffix.h
diff -u /dev/null src/external/gpl3/gcc/usr.bin/gcc/arch/sh3eb/sysroot-suffix.h:1.1
--- /dev/null	Sun Jul  3 14:42:13 2011
+++ src/external/gpl3/gcc/usr.bin/gcc/arch/sh3eb/sysroot-suffix.h	Sun Jul  3 14:42:13 2011
@@ -0,0 +1,16 @@
+/* This file is automatically generated.  DO NOT EDIT! */
+/* Generated from: 	NetBSD: mknative-gcc,v 1.61 2011/07/03 12:26:02 mrg Exp  */
+/* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp  */
+
+#undef SYSROOT_SUFFIX_SPEC
+#define SYSROOT_SUFFIX_SPEC  \
+%{ml: \
+  %{m3|m4-nofpu|m4-100-nofpu|m4-200-nofpu|m4-400|m4-500|m4-340|m4-300-nofpu|m4al|m4a-nofpu:/ml/m3; \
+  m3e|m4-single-only|m4-100-single-only|m4-200-single-only|m4-300-single-only|m4a-single-only:/ml/m3e; \
+  m4|m4-100|m4-200|m4-300|m4a:/ml/m4; \
+  :/ml}; \
+: \
+  %{m3|m4-nofpu|m4-100-nofpu|m4-200-nofpu|m4-400|m4-500|m4-340|m4-300-nofpu|m4al|m4a-nofpu:/m3; \
+  m3e|m4-single-only|m4-100-single-only|m4-200-single-only|m4-300-single-only|m4a-single-only:/m3e; \
+  m4|m4-100|m4-200|m4-300|m4a:/m4; \
+  :}}



CVS commit: src/tests/syscall

2011-07-03 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jul  3 14:45:07 UTC 2011

Modified Files:
src/tests/syscall: t_truncate.c

Log Message:
Do not play with master.passwd(5). Just in case the test actually succeeds...


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/syscall/t_truncate.c

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

Modified files:

Index: src/tests/syscall/t_truncate.c
diff -u src/tests/syscall/t_truncate.c:1.2 src/tests/syscall/t_truncate.c:1.3
--- src/tests/syscall/t_truncate.c:1.2	Tue Jun 21 01:45:26 2011
+++ src/tests/syscall/t_truncate.c	Sun Jul  3 14:45:07 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_truncate.c,v 1.2 2011/06/21 01:45:26 jruoho Exp $ */
+/* $NetBSD: t_truncate.c,v 1.3 2011/07/03 14:45:07 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: t_truncate.c,v 1.2 2011/06/21 01:45:26 jruoho Exp $);
+__RCSID($NetBSD: t_truncate.c,v 1.3 2011/07/03 14:45:07 jruoho Exp $);
 
 #include sys/stat.h
 
@@ -160,7 +160,7 @@
 	ATF_REQUIRE_ERRNO(ENOENT, truncate(/a/b/c/d/e/f/g, 999) == -1);
 
 	errno = 0;
-	ATF_REQUIRE_ERRNO(EACCES, truncate(/etc/master.passwd, 999) == -1);
+	ATF_REQUIRE_ERRNO(EACCES, truncate(/root/.profile, 999) == -1);
 }
 
 ATF_TP_ADD_TCS(tp)



CVS commit: src

2011-07-03 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jul  3 15:05:44 UTC 2011

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/syscall: Makefile
Added Files:
src/tests/syscall: t_unlink.c

Log Message:
Few naive tests for unlink(2).


To generate a diff of this commit:
cvs rdiff -u -r1.356 -r1.357 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.34 -r1.35 src/tests/syscall/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/syscall/t_unlink.c

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

Modified files:

Index: src/distrib/sets/lists/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.356 src/distrib/sets/lists/tests/mi:1.357
--- src/distrib/sets/lists/tests/mi:1.356	Sun Jul  3 14:34:21 2011
+++ src/distrib/sets/lists/tests/mi	Sun Jul  3 15:05:43 2011
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.356 2011/07/03 14:34:21 jruoho Exp $
+# $NetBSD: mi,v 1.357 2011/07/03 15:05:43 jruoho Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -647,6 +647,7 @@
 ./usr/libdata/debug/usr/tests/syscall/t_timer.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_truncate.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_umask.debug			tests-syscall-debug	debug,atf
+./usr/libdata/debug/usr/tests/syscall/t_unlink.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/usr.bin	tests-sbin-tests
 ./usr/libdata/debug/usr/tests/usr.sbin	tests-sbin-tests
 ./usr/libdata/debug/usr/tests/util	tests-util-debug
@@ -2394,6 +2395,7 @@
 ./usr/tests/syscall/t_timer			tests-syscall-tests	atf
 ./usr/tests/syscall/t_truncate			tests-syscall-tests	atf
 ./usr/tests/syscall/t_umask			tests-syscall-tests	atf
+./usr/tests/syscall/t_unlink			tests-syscall-tests	atf
 ./usr/tests/toolchaintests-syscall-tests	atf
 ./usr/tests/toolchain/Atffile			tests-syscall-tests	atf
 ./usr/tests/toolchain/cc			tests-syscall-tests	atf

Index: src/tests/syscall/Makefile
diff -u src/tests/syscall/Makefile:1.34 src/tests/syscall/Makefile:1.35
--- src/tests/syscall/Makefile:1.34	Sun Jul  3 14:34:22 2011
+++ src/tests/syscall/Makefile	Sun Jul  3 15:05:43 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2011/07/03 14:34:22 jruoho Exp $
+# $NetBSD: Makefile,v 1.35 2011/07/03 15:05:43 jruoho Exp $
 
 .include bsd.own.mk
 
@@ -10,7 +10,8 @@
 TESTS_C+=	t_itimer t_kill
 TESTS_C+=	t_mincore t_mknod t_mmap t_mprotect t_msync t_nanosleep
 TESTS_C+=	t_poll t_pollts t_pselect
-TESTS_C+=	t_setrlimit t_setuid t_stat t_timer t_truncate t_umask
+TESTS_C+=	t_setrlimit t_setuid t_stat t_timer t_truncate
+TESTS_C+=	t_umask t_unlink
 
 LDADD.t_getpid+=	-lpthread
 LDADD.t_timer+=		-lpthread

Added files:

Index: src/tests/syscall/t_unlink.c
diff -u /dev/null src/tests/syscall/t_unlink.c:1.1
--- /dev/null	Sun Jul  3 15:05:44 2011
+++ src/tests/syscall/t_unlink.c	Sun Jul  3 15:05:43 2011
@@ -0,0 +1,154 @@
+/* $NetBSD: t_unlink.c,v 1.1 2011/07/03 15:05:43 jruoho Exp $ */
+
+/*-
+ * Copyright (c) 2011 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Jukka Ruohonen.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+#include sys/cdefs.h
+__RCSID($NetBSD: t_unlink.c,v 1.1 2011/07/03 15:05:43 jruoho Exp $);
+
+#include sys/stat.h
+
+#include atf-c.h
+#include errno.h
+#include fcntl.h
+#include limits.h
+#include string.h
+#include unistd.h
+
+static char	 path[] = unlink;
+
+ATF_TC_WITH_CLEANUP(unlink_basic);
+ATF_TC_HEAD(unlink_basic, tc)
+{
+	atf_tc_set_md_var(tc, descr, A basic test of unlink(2));
+}
+
+ATF_TC_BODY(unlink_basic, tc)
+{
+	

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

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 15:24:49 UTC 2011

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

Log Message:
mark all the ld.elf_so tests as mkpic.


To generate a diff of this commit:
cvs rdiff -u -r1.357 -r1.358 src/distrib/sets/lists/tests/mi

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

Modified files:

Index: src/distrib/sets/lists/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.357 src/distrib/sets/lists/tests/mi:1.358
--- src/distrib/sets/lists/tests/mi:1.357	Sun Jul  3 15:05:43 2011
+++ src/distrib/sets/lists/tests/mi	Sun Jul  3 15:24:49 2011
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.357 2011/07/03 15:05:43 jruoho Exp $
+# $NetBSD: mi,v 1.358 2011/07/03 15:24:49 mrg Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -2232,41 +2232,41 @@
 ./usr/tests/libexectests-lib-tests
 ./usr/tests/libexec/Atffile			tests-lib-tests		atf
 ./usr/tests/libexec/ld.elf_so			tests-libexec-tests
-./usr/tests/libexec/ld.elf_so/Atffile		tests-libexec-tests	atf
+./usr/tests/libexec/ld.elf_so/Atffile		tests-libexec-tests	atf,pic
 ./usr/tests/libexec/ld.elf_so/data		tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stderr.v0-v0		tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stderr.v0-v1		tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stderr.v0-v2		tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stderr.v1-v0		tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stderr.v1-v1		tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stderr.v1-v2		tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stderr.v2-v0		tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stderr.v2-v1		tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stderr.v2-v2		tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stdout.v0-v0		tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stdout.v0-v1		tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stdout.v0-v2		tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stdout.v1-v0		tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stdout.v1-v1		tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stdout.v1-v2		tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stdout.v2-v0		tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stdout.v2-v1		tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stdout.v2-v2		tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/h_df_1_noopen1	tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/h_df_1_noopen2	tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/h_dl_symver_v0	tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/h_dl_symver_v1	tests-libexec-tests	atf
-./usr/tests/libexec/ld.elf_so/h_dl_symver_v2	tests-libexec-tests	atf
+./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stderr.v0-v0		tests-libexec-tests	atf,pic
+./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stderr.v0-v1		tests-libexec-tests	atf,pic
+./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stderr.v0-v2		tests-libexec-tests	atf,pic
+./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stderr.v1-v0		tests-libexec-tests	atf,pic
+./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stderr.v1-v1		tests-libexec-tests	atf,pic
+./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stderr.v1-v2		tests-libexec-tests	atf,pic
+./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stderr.v2-v0		tests-libexec-tests	atf,pic
+./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stderr.v2-v1		tests-libexec-tests	atf,pic
+./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stderr.v2-v2		tests-libexec-tests	atf,pic
+./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stdout.v0-v0		tests-libexec-tests	atf,pic
+./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stdout.v0-v1		tests-libexec-tests	atf,pic
+./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stdout.v0-v2		tests-libexec-tests	atf,pic
+./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stdout.v1-v0		tests-libexec-tests	atf,pic
+./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stdout.v1-v1		tests-libexec-tests	atf,pic
+./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stdout.v1-v2		tests-libexec-tests	atf,pic
+./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stdout.v2-v0		tests-libexec-tests	atf,pic
+./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stdout.v2-v1		tests-libexec-tests	atf,pic
+./usr/tests/libexec/ld.elf_so/data/symver-output-ref-stdout.v2-v2		tests-libexec-tests	atf,pic

CVS commit: src/sys/kern

2011-07-03 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Sun Jul  3 15:25:09 UTC 2011

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

Log Message:
Return EINVAL when trying to create a device node with rdev == VNOVAL.

Fixes PR #45111 tmpfs panic with mknod(2).


To generate a diff of this commit:
cvs rdiff -u -r1.430 -r1.431 src/sys/kern/vfs_syscalls.c

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

Modified files:

Index: src/sys/kern/vfs_syscalls.c
diff -u src/sys/kern/vfs_syscalls.c:1.430 src/sys/kern/vfs_syscalls.c:1.431
--- src/sys/kern/vfs_syscalls.c:1.430	Fri Jun 17 14:23:51 2011
+++ src/sys/kern/vfs_syscalls.c	Sun Jul  3 15:25:09 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_syscalls.c,v 1.430 2011/06/17 14:23:51 manu Exp $	*/
+/*	$NetBSD: vfs_syscalls.c,v 1.431 2011/07/03 15:25:09 hannken Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: vfs_syscalls.c,v 1.430 2011/06/17 14:23:51 manu Exp $);
+__KERNEL_RCSID(0, $NetBSD: vfs_syscalls.c,v 1.431 2011/07/03 15:25:09 hannken Exp $);
 
 #ifdef _KERNEL_OPT
 #include opt_fileassoc.h
@@ -1683,6 +1683,8 @@
 			break;
 		}
 	}
+	if (optype == VOP_MKNOD_DESCOFFSET  vattr.va_rdev == VNOVAL)
+		error = EINVAL;
 	if (!error) {
 		switch (optype) {
 		case VOP_WHITEOUT_DESCOFFSET:



CVS commit: src/external/lgpl3/gmp/lib/libgmp

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 15:25:11 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp: Makefile

Log Message:
clean up another generator.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/lgpl3/gmp/lib/libgmp/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/lgpl3/gmp/lib/libgmp/Makefile
diff -u src/external/lgpl3/gmp/lib/libgmp/Makefile:1.6 src/external/lgpl3/gmp/lib/libgmp/Makefile:1.7
--- src/external/lgpl3/gmp/lib/libgmp/Makefile:1.6	Sat Jul  2 14:04:30 2011
+++ src/external/lgpl3/gmp/lib/libgmp/Makefile	Sun Jul  3 15:25:11 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.6 2011/07/02 14:04:30 mrg Exp $
+#	$NetBSD: Makefile,v 1.7 2011/07/03 15:25:11 mrg Exp $
 
 .include bsd.init.mk
 
@@ -173,7 +173,7 @@
 	${HOST_CC} -o ${.OBJDIR}/gen-psqr ${.ALLSRC}
 	${.OBJDIR}/gen-psqr ${GMP_LIMB_BITS} 0  ${.OBJDIR}/perfsqr.h
 
-CLEANFILES+=	${DPSRCS} gen-fac_ui gen-fib gen-bases gen-psqr
+CLEANFILES+=	${DPSRCS} gen-fac_ui gen-fib gen-bases gen-psqr gen-trialdivtab
 
 .if defined(MLIBDIR)
 LIBGMP_MACHINE_ARCH:=${MLIBDIR}



CVS commit: src/gnu/dist/gdb6/gdb

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 15:26:06 UTC 2011

Modified Files:
src/gnu/dist/gdb6/gdb: breakpoint.c

Log Message:
apply some (uintptr_t) between pointers, ints and other casts.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 src/gnu/dist/gdb6/gdb/breakpoint.c

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

Modified files:

Index: src/gnu/dist/gdb6/gdb/breakpoint.c
diff -u src/gnu/dist/gdb6/gdb/breakpoint.c:1.1.1.2 src/gnu/dist/gdb6/gdb/breakpoint.c:1.2
--- src/gnu/dist/gdb6/gdb/breakpoint.c:1.1.1.2	Sun Jul  2 20:13:24 2006
+++ src/gnu/dist/gdb6/gdb/breakpoint.c	Sun Jul  3 15:26:06 2011
@@ -1327,7 +1327,7 @@
 	(b-type == bp_catch_vfork) ||
 	(b-type == bp_catch_fork))
   {
-	b-loc-address = (CORE_ADDR) NULL;
+	b-loc-address = (CORE_ADDR) (uintptr_t) NULL;
 	continue;
   }
 
@@ -1380,7 +1380,7 @@
unnecessary.  A call to breakpoint_re_set_one always recomputes
the breakpoint's address from scratch, or deletes it if it can't.
So I think this assignment could be deleted without effect.  */
-b-loc-address = (CORE_ADDR) NULL;
+b-loc-address = (CORE_ADDR) (uintptr_t) NULL;
   }
   /* FIXME what about longjmp breakpoints?  Re-create them here?  */
   create_overlay_event_breakpoint (_ovly_debug_event);



CVS commit: src/lib/libc/softfloat

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 15:26:58 UTC 2011

Modified Files:
src/lib/libc/softfloat: Makefile.inc

Log Message:
mips wants some -Wno-enum-compare here, too.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/lib/libc/softfloat/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/lib/libc/softfloat/Makefile.inc
diff -u src/lib/libc/softfloat/Makefile.inc:1.8 src/lib/libc/softfloat/Makefile.inc:1.9
--- src/lib/libc/softfloat/Makefile.inc:1.8	Fri Jul  1 01:25:52 2011
+++ src/lib/libc/softfloat/Makefile.inc	Sun Jul  3 15:26:58 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.8 2011/07/01 01:25:52 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.9 2011/07/03 15:26:58 mrg Exp $
 
 SOFTFLOAT_BITS?=64
 .PATH:		${ARCHDIR}/softfloat \
@@ -21,6 +21,7 @@
 
 # XXX
 .if defined(HAVE_GCC)  ${HAVE_GCC} = 45  \
-(${MACHINE_ARCH} == arm || ${MACHINE_ARCH} == armeb)
+(${MACHINE_CPU} == arm || \
+ ${MACHINE_CPU} == mips)
 COPTS.softfloat.c+=	-Wno-enum-compare
 .endif



CVS commit: src/usr.bin/less

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 15:28:47 UTC 2011

Modified Files:
src/usr.bin/less: Makefile.inc

Log Message:
upgrade less to WARNS=2 with -Wno-shadow.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/less/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/usr.bin/less/Makefile.inc
diff -u src/usr.bin/less/Makefile.inc:1.4 src/usr.bin/less/Makefile.inc:1.5
--- src/usr.bin/less/Makefile.inc:1.4	Tue Apr 14 22:15:22 2009
+++ src/usr.bin/less/Makefile.inc	Sun Jul  3 15:28:47 2011
@@ -1,9 +1,9 @@
-#	$NetBSD: Makefile.inc,v 1.4 2009/04/14 22:15:22 lukem Exp $
+#	$NetBSD: Makefile.inc,v 1.5 2011/07/03 15:28:47 mrg Exp $
 
-WARNS?=	1	# many -Wshadow -Wcast-qual  other issues
+WARNS?=	2
 
 .if exists(${.CURDIR}/../../Makefile.inc)
 .include ${.CURDIR}/../../Makefile.inc
 .endif
 
-CWARNFLAGS+=	-Wno-strict-prototypes -Wno-missing-prototypes
+CWARNFLAGS+=	-Wno-strict-prototypes -Wno-missing-prototypes -Wno-shadow



CVS commit: src

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 15:29:35 UTC 2011

Modified Files:
src/games/phantasia: Makefile
src/sbin/fsdb: Makefile
src/sys/lib/libsa: Makefile
src/sys/lib/libz: Makefile

Log Message:
apply some -O0 with gcc 4.5 and vax.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/games/phantasia/Makefile
cvs rdiff -u -r1.30 -r1.31 src/sbin/fsdb/Makefile
cvs rdiff -u -r1.74 -r1.75 src/sys/lib/libsa/Makefile
cvs rdiff -u -r1.16 -r1.17 src/sys/lib/libz/Makefile

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

Modified files:

Index: src/games/phantasia/Makefile
diff -u src/games/phantasia/Makefile:1.34 src/games/phantasia/Makefile:1.35
--- src/games/phantasia/Makefile:1.34	Sat Feb  6 23:45:25 2010
+++ src/games/phantasia/Makefile	Sun Jul  3 15:29:34 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.34 2010/02/06 23:45:25 he Exp $
+#	$NetBSD: Makefile,v 1.35 2011/07/03 15:29:34 mrg Exp $
 #	@(#)Makefile	8.1 (Berkeley) 5/31/93
 
 .include bsd.own.mk
@@ -52,3 +52,7 @@
 	./map | plot  /dev/tty
 
 .include bsd.prog.mk
+
+.if defined(HAVE_GCC)  ${HAVE_GCC} = 45  ${MACHINE_ARCH} == vax
+COPTS.misc.c+=	-O0
+.endif

Index: src/sbin/fsdb/Makefile
diff -u src/sbin/fsdb/Makefile:1.30 src/sbin/fsdb/Makefile:1.31
--- src/sbin/fsdb/Makefile:1.30	Wed Jun 22 02:49:43 2011
+++ src/sbin/fsdb/Makefile	Sun Jul  3 15:29:35 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.30 2011/06/22 02:49:43 mrg Exp $
+#	$NetBSD: Makefile,v 1.31 2011/07/03 15:29:35 mrg Exp $
 #	@(#)Makefile	8.1 (Berkeley) 6/5/93
 
 WARNS?=	3	# XXX: sign-compare issues in ../fsck_ffs
@@ -46,6 +46,9 @@
 .include bsd.prog.mk
 
 # XXX
-.if ${HAVE_GCC} == 45
+.if defined(HAVE_GCC)  ${HAVE_GCC} == 45
 COPTS.fsdb.c+=	-Wno-error
+.if ${MACHINE_ARCH} == vax
+COPTS.fsdb.c+=	-O0
+.endif
 .endif

Index: src/sys/lib/libsa/Makefile
diff -u src/sys/lib/libsa/Makefile:1.74 src/sys/lib/libsa/Makefile:1.75
--- src/sys/lib/libsa/Makefile:1.74	Mon Jun 20 08:22:43 2011
+++ src/sys/lib/libsa/Makefile	Sun Jul  3 15:29:35 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.74 2011/06/20 08:22:43 mrg Exp $
+#	$NetBSD: Makefile,v 1.75 2011/07/03 15:29:35 mrg Exp $
 
 LIB=	sa
 NOPIC=	# defined
@@ -88,3 +88,7 @@
 .if defined(HAVE_GCC) || defined(HAVE_PCC)
 CPPFLAGS+=	-Wno-pointer-sign
 .endif
+
+.if defined(HAVE_GCC)  ${HAVE_GCC} = 45  ${MACHINE_ARCH} == vax
+COPTS.bootp.c+=	-O0
+.endif

Index: src/sys/lib/libz/Makefile
diff -u src/sys/lib/libz/Makefile:1.16 src/sys/lib/libz/Makefile:1.17
--- src/sys/lib/libz/Makefile:1.16	Wed Mar 25 18:41:06 2009
+++ src/sys/lib/libz/Makefile	Sun Jul  3 15:29:35 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.16 2009/03/25 18:41:06 tls Exp $
+#	$NetBSD: Makefile,v 1.17 2011/07/03 15:29:35 mrg Exp $
 
 LIB=	z
 NOPIC=	# defined
@@ -32,3 +32,7 @@
 	@echo building standard ${LIB} library
 	@rm -f lib${LIB}.o
 	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
+
+.if defined(HAVE_GCC)  ${HAVE_GCC} = 45  ${MACHINE_ARCH} == vax
+COPTS.inftrees.c+=	-O0
+.endif



CVS commit: src/gnu/usr.bin/gdb6/libgdb

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 15:26:25 UTC 2011

Modified Files:
src/gnu/usr.bin/gdb6/libgdb: Makefile

Log Message:
apply some -O0 for sun2.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/gnu/usr.bin/gdb6/libgdb/Makefile

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

Modified files:

Index: src/gnu/usr.bin/gdb6/libgdb/Makefile
diff -u src/gnu/usr.bin/gdb6/libgdb/Makefile:1.11 src/gnu/usr.bin/gdb6/libgdb/Makefile:1.12
--- src/gnu/usr.bin/gdb6/libgdb/Makefile:1.11	Sun Apr 10 16:47:04 2011
+++ src/gnu/usr.bin/gdb6/libgdb/Makefile	Sun Jul  3 15:26:25 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.11 2011/04/10 16:47:04 joerg Exp $
+#	$NetBSD: Makefile,v 1.12 2011/07/03 15:26:25 mrg Exp $
 
 .include bsd.own.mk
 
@@ -44,3 +44,7 @@
 .if ${MACHINE} == amiga
 COPTS.dwarf2-frame.c+=-O1
 .endif
+
+.if defined(HAVE_GCC)  HAVE_GCC == 4  ${MACHINE} == sun2
+COPTS.dwarf2-frame.c+=-O0
+.endif



CVS commit: src/external/gpl3/gcc/dist/gcc/config/arm

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 15:34:09 UTC 2011

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/arm: elf.h

Log Message:
netbsd needs __floatundisf; make it so.  (should we have this elsewhere?)


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gcc/dist/gcc/config/arm/elf.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/gcc/dist/gcc/config/arm/elf.h
diff -u src/external/gpl3/gcc/dist/gcc/config/arm/elf.h:1.1.1.1 src/external/gpl3/gcc/dist/gcc/config/arm/elf.h:1.2
--- src/external/gpl3/gcc/dist/gcc/config/arm/elf.h:1.1.1.1	Tue Jun 21 01:22:19 2011
+++ src/external/gpl3/gcc/dist/gcc/config/arm/elf.h	Sun Jul  3 15:34:08 2011
@@ -161,6 +161,8 @@
 #undef L_floatdidf
 #undef L_floatdisf
 #undef L_floatundidf
+/* XXXMRG: don't take this out, we need it! */
+# ifndef __NetBSD__
 #undef L_floatundisf
+# endif
 #endif
-



CVS commit: src/tests/syscall

2011-07-03 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jul  3 15:42:07 UTC 2011

Modified Files:
src/tests/syscall: t_mknod.c

Log Message:
The PR was fixed. Remove atf_tc_skip().


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

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

Modified files:

Index: src/tests/syscall/t_mknod.c
diff -u src/tests/syscall/t_mknod.c:1.1 src/tests/syscall/t_mknod.c:1.2
--- src/tests/syscall/t_mknod.c:1.1	Sun Jul  3 14:34:22 2011
+++ src/tests/syscall/t_mknod.c	Sun Jul  3 15:42:07 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mknod.c,v 1.1 2011/07/03 14:34:22 jruoho Exp $ */
+/* $NetBSD: t_mknod.c,v 1.2 2011/07/03 15:42:07 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: t_mknod.c,v 1.1 2011/07/03 14:34:22 jruoho Exp $);
+__RCSID($NetBSD: t_mknod.c,v 1.2 2011/07/03 15:42:07 jruoho Exp $);
 
 #include sys/stat.h
 
@@ -59,10 +59,8 @@
 	ATF_REQUIRE_ERRNO(EINVAL, mknod(path, -1, 0) == -1);
 
 	/*
-	 * The following case triggers an assertion with tmpfs.
+	 * See the old PR kern/45111.
 	 */
-	atf_tc_skip(the test case may cause a panic; see PR kern/45111);
-
 	errno = 0;
 	ATF_REQUIRE_ERRNO(EINVAL, mknod(path, S_IFCHR, -1) == -1);
 



CVS commit: src/external/gpl3/gcc

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 16:14:37 UTC 2011

Modified Files:
src/external/gpl3/gcc/lib/crtstuff/arch: m68000.mk m68k.mk
src/external/gpl3/gcc/lib/libgcc/arch: m68000.mk m68k.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/m68k: c++config.h config.h
src/external/gpl3/gcc/usr.bin/gcc/arch/m68000: defs.mk
src/external/gpl3/gcc/usr.bin/gcc/arch/m68k: defs.mk tm.h

Log Message:
regenerate the m68* descriptions.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gcc/lib/crtstuff/arch/m68000.mk \
src/external/gpl3/gcc/lib/crtstuff/arch/m68k.mk
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gcc/lib/libgcc/arch/m68000.mk \
src/external/gpl3/gcc/lib/libgcc/arch/m68k.mk
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/m68k/c++config.h \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/m68k/config.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gcc/usr.bin/gcc/arch/m68000/defs.mk
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gcc/usr.bin/gcc/arch/m68k/defs.mk \
src/external/gpl3/gcc/usr.bin/gcc/arch/m68k/tm.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/gcc/lib/crtstuff/arch/m68000.mk
diff -u src/external/gpl3/gcc/lib/crtstuff/arch/m68000.mk:1.1 src/external/gpl3/gcc/lib/crtstuff/arch/m68000.mk:1.2
--- src/external/gpl3/gcc/lib/crtstuff/arch/m68000.mk:1.1	Sun Jul  3 06:52:14 2011
+++ src/external/gpl3/gcc/lib/crtstuff/arch/m68000.mk	Sun Jul  3 16:14:36 2011
@@ -1,9 +1,9 @@
 # This file is automatically generated.  DO NOT EDIT!
-# Generated from: 	NetBSD: mknative-gcc,v 1.58 2011/07/02 13:25:05 mrg Exp 
+# Generated from: 	NetBSD: mknative-gcc,v 1.61 2011/07/03 12:26:02 mrg Exp 
 # Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp 
 #
-G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I/var/obj/sun2/usr/src3/destdir.sun2/usr/include -I/var/obj/sun2/usr/src3/destdir.sun2/usr/include -I/var/obj/sun2/usr/src3/destdir.sun2/usr/include  -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber   -I/usr/include/libelf
-G_CRTSTUFF_CFLAGS=-O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I/var/obj/sun2/usr/src3/destdir.sun2/usr/include -I/var/obj/sun2/usr/src3/destdir.sun2/usr/include -I/var/obj/sun2/usr/src3/destdir.sun2/usr/include  -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber   -I/usr/include/libelf  -g0 -finhibit-size-directive -fno-inline -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize 
+G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber   -I/usr/include/libelf
+G_CRTSTUFF_CFLAGS=-O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber   -I/usr/include/libelf  -g0 -finhibit-size-directive -fno-inline -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize 
 G_CRTSTUFF_T_CFLAGS=
 G_tm_defines=NETBSD_ENABLE_PTHREADS MOTOROLA=1 USE_GAS=1
 G_xm_file=
Index: src/external/gpl3/gcc/lib/crtstuff/arch/m68k.mk
diff -u src/external/gpl3/gcc/lib/crtstuff/arch/m68k.mk:1.1 src/external/gpl3/gcc/lib/crtstuff/arch/m68k.mk:1.2
--- src/external/gpl3/gcc/lib/crtstuff/arch/m68k.mk:1.1	Sat Jul  2 14:13:51 2011
+++ src/external/gpl3/gcc/lib/crtstuff/arch/m68k.mk	Sun Jul  3 16:14:36 2011
@@ -1,10 +1,10 @@
 # This file is automatically generated.  DO NOT EDIT!
-# Generated from: 	NetBSD: mknative-gcc,v 1.57 2011/07/01 02:11:14 mrg Exp 
+# Generated from: 	NetBSD: mknative-gcc,v 1.61 2011/07/03 12:26:02 mrg Exp 
 # Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp 
 #
-G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I/var/obj/mac68k/usr/src3/destdir.mac68k/usr/include -I/var/obj/mac68k/usr/src3/destdir.mac68k/usr/include -I/var/obj/mac68k/usr/src3/destdir.mac68k/usr/include  -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber   

CVS commit: src/external/bsd/less

2011-07-03 Thread Matthias Scheler
Module Name:src
Committed By:   tron
Date:   Sun Jul  3 16:57:13 UTC 2011

Added Files:
src/external/bsd/less: less2netbsd

Log Message:
Add a (new) script from preparing less for import into NetBSD.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/bsd/less/less2netbsd

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

Added files:

Index: src/external/bsd/less/less2netbsd
diff -u /dev/null src/external/bsd/less/less2netbsd:1.1
--- /dev/null	Sun Jul  3 16:57:13 2011
+++ src/external/bsd/less/less2netbsd	Sun Jul  3 16:57:13 2011
@@ -0,0 +1,108 @@
+#
+# Copyright (c) 2011 The NetBSD Foundation, Inc.
+# All rights reserved.
+#
+# This code is derived from software contributed to The NetBSD Foundation
+# by Matthias Scheler.
+#
+# 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.
+#
+
+# less2netbsd:
+# Prepare a less source tree for import into the NetBSD source repository.
+
+PROGNAME=$(basename $0)
+if [ $# -ne 1 ]
+then
+	echo Usage: $PROGNAME dir 2
+	exit 1
+fi
+DIRNAME=$1
+
+# Change to the source directory.
+if [ -d $DIRNAME ]  cd $DIRNAME
+then
+	:
+else
+	echo ${PROGNAME}: cannot access directory \$DIRNAME\. 2
+	exit
+fi
+
+# Check whether the source directory looks sane.
+CHECK_FILES=LICENSE configure less.h version.c
+for FILENAME in $CHECK_FILES
+do
+	if [ ! -f $FILENAME ]
+	then
+		echo ${PROGNAME}: less distribution incomplete. 2
+		exit
+	fi
+done
+
+# Check whether the configure was run.
+REQUIRED_HEADERS=defines.h
+for FILENAME in $REQUIRED_HEADERS
+do
+	if [ ! -f $FILENAME ]
+	then
+		echo ${PROGNAME}: Please run \./configure\. 2
+		exit
+	fi
+done
+
+# Fix the permissions.
+find . -type d -print0 | xargs -0 chmod 755
+find . -type f -print0 | xargs -0 chmod 644
+chmod 755 configure
+
+# Remove files generated by configure.
+REMOVE_FILES=Makefile config.log config.status configure.lineno
+rm -f $REMOVE_FILES
+
+# Add NetBSD RCS Ids.
+find . -type f -name *.[ch] |
+while read FILENAME
+do
+	if ! grep -q '\$NetBSD' $FILENAME
+	then
+		NEW_FILENAME=${FILENAME}.new
+		rm -f ${NEW_FILENAME}
+		(echo '/*	$NetBSD	*/'
+		 echo ''
+		 cat $FILENAME) ${NEW_FILENAME}
+		mv -f ${NEW_FILENAME} $FILENAME
+	fi
+done
+
+# Determine the version number.
+VERSION=$(sed -n -e 's#char version\[\] = \(.*\);#\1#p' version.c)
+
+# Print out information for the import.
+cat EOF
+You can import now.
+
+Path:		src/external/bsd/less/dist
+Vendortag:	GREENWOODSOFTWARE
+Releasetag:	LESS-$VERSION
+EOF
+
+exit 0



CVS commit: src

2011-07-03 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jul  3 17:47:15 UTC 2011

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/syscall: Makefile
Added Files:
src/tests/syscall: t_link.c

Log Message:
Few naive test cases for link(2).


To generate a diff of this commit:
cvs rdiff -u -r1.358 -r1.359 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.35 -r1.36 src/tests/syscall/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/syscall/t_link.c

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

Modified files:

Index: src/distrib/sets/lists/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.358 src/distrib/sets/lists/tests/mi:1.359
--- src/distrib/sets/lists/tests/mi:1.358	Sun Jul  3 15:24:49 2011
+++ src/distrib/sets/lists/tests/mi	Sun Jul  3 17:47:15 2011
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.358 2011/07/03 15:24:49 mrg Exp $
+# $NetBSD: mi,v 1.359 2011/07/03 17:47:15 jruoho Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -632,6 +632,7 @@
 ./usr/libdata/debug/usr/tests/syscall/t_gettimeofday.debug		tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_itimer.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_kill.debug			tests-syscall-debug	debug,atf
+./usr/libdata/debug/usr/tests/syscall/t_link.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_mincore.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_mknod.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_mmap.debug			tests-syscall-debug	debug,atf
@@ -2380,6 +2381,7 @@
 ./usr/tests/syscall/t_gettimeofday		tests-syscall-tests	atf
 ./usr/tests/syscall/t_itimer			tests-syscall-tests	atf
 ./usr/tests/syscall/t_kill			tests-syscall-tests	atf
+./usr/tests/syscall/t_link			tests-syscall-tests	atf
 ./usr/tests/syscall/t_mincore			tests-syscall-tests	atf
 ./usr/tests/syscall/t_mknod			tests-syscall-tests	atf
 ./usr/tests/syscall/t_mmap			tests-syscall-tests	atf

Index: src/tests/syscall/Makefile
diff -u src/tests/syscall/Makefile:1.35 src/tests/syscall/Makefile:1.36
--- src/tests/syscall/Makefile:1.35	Sun Jul  3 15:05:43 2011
+++ src/tests/syscall/Makefile	Sun Jul  3 17:47:15 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2011/07/03 15:05:43 jruoho Exp $
+# $NetBSD: Makefile,v 1.36 2011/07/03 17:47:15 jruoho Exp $
 
 .include bsd.own.mk
 
@@ -7,7 +7,7 @@
 TESTS_C+=	t_access t_cmsg t_dup t_fsync
 TESTS_C+=	t_getgroups t_getlogin t_getpid
 TESTS_C+=	t_getrusage t_getsid t_gettimeofday
-TESTS_C+=	t_itimer t_kill
+TESTS_C+=	t_itimer t_kill t_link
 TESTS_C+=	t_mincore t_mknod t_mmap t_mprotect t_msync t_nanosleep
 TESTS_C+=	t_poll t_pollts t_pselect
 TESTS_C+=	t_setrlimit t_setuid t_stat t_timer t_truncate

Added files:

Index: src/tests/syscall/t_link.c
diff -u /dev/null src/tests/syscall/t_link.c:1.1
--- /dev/null	Sun Jul  3 17:47:16 2011
+++ src/tests/syscall/t_link.c	Sun Jul  3 17:47:15 2011
@@ -0,0 +1,225 @@
+/* $NetBSD: t_link.c,v 1.1 2011/07/03 17:47:15 jruoho Exp $ */
+
+/*-
+ * Copyright (c) 2011 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Jukka Ruohonen.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+#include sys/cdefs.h
+__RCSID($NetBSD: t_link.c,v 1.1 2011/07/03 17:47:15 jruoho Exp $);
+
+#include sys/param.h
+#include sys/stat.h
+
+#include atf-c.h
+#include errno.h
+#include fcntl.h
+#include stdio.h
+#include string.h
+#include unistd.h
+
+static const char	*getpath(void);
+static char		 path[] = link;
+static const char	*pathl;
+

CVS commit: src/external/bsd/less

2011-07-03 Thread Matthias Scheler
Module Name:src
Committed By:   tron
Date:   Sun Jul  3 17:56:26 UTC 2011

Modified Files:
src/external/bsd/less: less2netbsd

Log Message:
Add handling for manual pages:
1.) Remove the formatted ones before import.
2.) Rename the unformatted ones from *.nro to *.1 to keep our
makefile framework happy.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/bsd/less/less2netbsd

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

Modified files:

Index: src/external/bsd/less/less2netbsd
diff -u src/external/bsd/less/less2netbsd:1.1 src/external/bsd/less/less2netbsd:1.2
--- src/external/bsd/less/less2netbsd:1.1	Sun Jul  3 16:57:13 2011
+++ src/external/bsd/less/less2netbsd	Sun Jul  3 17:56:26 2011
@@ -79,7 +79,7 @@
 rm -f $REMOVE_FILES
 
 # Add NetBSD RCS Ids.
-find . -type f -name *.[ch] |
+find . -type f -name *.[ch] -print |
 while read FILENAME
 do
 	if ! grep -q '\$NetBSD' $FILENAME
@@ -93,6 +93,16 @@
 	fi
 done
 
+# Remove formatted manual pages.
+find . -type f -name *.man -delete
+
+# Rename unformatted manual pages.
+find . -type f -name *.nro -print |
+while read FILENAME
+do
+	mv $FILENAME ${FILENAME%.nro}.1
+done
+
 # Determine the version number.
 VERSION=$(sed -n -e 's#char version\[\] = \(.*\);#\1#p' version.c)
 



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

2011-07-03 Thread Matthias Scheler
Module Name:src
Committed By:   tron
Date:   Sun Jul  3 18:01:05 UTC 2011

Update of /cvsroot/src/external/bsd/less/dist
In directory ivanova.netbsd.org:/tmp/cvs-serv14782

Log Message:
Import version 444 of less:
The list of changes between our ancient version 394 and 444 is too long
to list here. You can find all the release notes here:

http://www.greenwoodsoftware.com/less/old.html

Status:

Vendor Tag: GREENWOODSOFTWARE
Release Tags:   LESS-444

N src/external/bsd/less/dist/configure
N src/external/bsd/less/dist/configure.ac
N src/external/bsd/less/dist/COPYING
N src/external/bsd/less/dist/defines.ds
N src/external/bsd/less/dist/defines.h.in
N src/external/bsd/less/dist/defines.o2
N src/external/bsd/less/dist/defines.o9
N src/external/bsd/less/dist/defines.wn
N src/external/bsd/less/dist/INSTALL
N src/external/bsd/less/dist/install.sh
N src/external/bsd/less/dist/less.hlp
N src/external/bsd/less/dist/less.1
N src/external/bsd/less/dist/lessecho.1
N src/external/bsd/less/dist/lesskey.1
N src/external/bsd/less/dist/LICENSE
N src/external/bsd/less/dist/Makefile.aut
N src/external/bsd/less/dist/Makefile.dsb
N src/external/bsd/less/dist/Makefile.dsg
N src/external/bsd/less/dist/Makefile.dsu
N src/external/bsd/less/dist/Makefile.in
N src/external/bsd/less/dist/Makefile.o2e
N src/external/bsd/less/dist/Makefile.o9c
N src/external/bsd/less/dist/mkfuncs.awk
N src/external/bsd/less/dist/Makefile.o9u
N src/external/bsd/less/dist/Makefile.wnb
N src/external/bsd/less/dist/Makefile.wnm
N src/external/bsd/less/dist/mkinstalldirs
N src/external/bsd/less/dist/NEWS
N src/external/bsd/less/dist/README
N src/external/bsd/less/dist/brac.c
N src/external/bsd/less/dist/ch.c
N src/external/bsd/less/dist/charset.c
N src/external/bsd/less/dist/charset.h
N src/external/bsd/less/dist/cmd.h
N src/external/bsd/less/dist/cmdbuf.c
N src/external/bsd/less/dist/command.c
N src/external/bsd/less/dist/cvt.c
N src/external/bsd/less/dist/decode.c
N src/external/bsd/less/dist/edit.c
N src/external/bsd/less/dist/filename.c
N src/external/bsd/less/dist/forwback.c
N src/external/bsd/less/dist/funcs.h
N src/external/bsd/less/dist/help.c
N src/external/bsd/less/dist/ifile.c
N src/external/bsd/less/dist/input.c
N src/external/bsd/less/dist/jump.c
N src/external/bsd/less/dist/less.h
N src/external/bsd/less/dist/lessecho.c
N src/external/bsd/less/dist/lesskey.c
N src/external/bsd/less/dist/lesskey.h
N src/external/bsd/less/dist/lglob.h
N src/external/bsd/less/dist/line.c
N src/external/bsd/less/dist/linenum.c
N src/external/bsd/less/dist/lsystem.c
N src/external/bsd/less/dist/main.c
N src/external/bsd/less/dist/mark.c
N src/external/bsd/less/dist/mkhelp.c
N src/external/bsd/less/dist/optfunc.c
N src/external/bsd/less/dist/option.c
N src/external/bsd/less/dist/option.h
N src/external/bsd/less/dist/opttbl.c
N src/external/bsd/less/dist/os.c
N src/external/bsd/less/dist/output.c
N src/external/bsd/less/dist/pattern.c
N src/external/bsd/less/dist/pattern.h
N src/external/bsd/less/dist/pckeys.h
N src/external/bsd/less/dist/position.c
N src/external/bsd/less/dist/position.h
N src/external/bsd/less/dist/prompt.c
N src/external/bsd/less/dist/regexp.c
N src/external/bsd/less/dist/regexp.h
N src/external/bsd/less/dist/screen.c
N src/external/bsd/less/dist/scrsize.c
N src/external/bsd/less/dist/search.c
N src/external/bsd/less/dist/signal.c
N src/external/bsd/less/dist/tags.c
N src/external/bsd/less/dist/ttyin.c
N src/external/bsd/less/dist/version.c
N src/external/bsd/less/dist/defines.h

No conflicts created by this import



CVS commit: src/external/bsd/less

2011-07-03 Thread Matthias Scheler
Module Name:src
Committed By:   tron
Date:   Sun Jul  3 18:02:01 UTC 2011

Added Files:
src/external/bsd/less: Makefile Makefile.inc
src/external/bsd/less/bin: Makefile Makefile.inc
src/external/bsd/less/bin/less: Makefile
src/external/bsd/less/bin/lessecho: Makefile
src/external/bsd/less/bin/lesskey: Makefile

Log Message:
Add makefiles to build the new version of less.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/bsd/less/Makefile \
src/external/bsd/less/Makefile.inc
cvs rdiff -u -r0 -r1.1 src/external/bsd/less/bin/Makefile \
src/external/bsd/less/bin/Makefile.inc
cvs rdiff -u -r0 -r1.1 src/external/bsd/less/bin/less/Makefile
cvs rdiff -u -r0 -r1.1 src/external/bsd/less/bin/lessecho/Makefile
cvs rdiff -u -r0 -r1.1 src/external/bsd/less/bin/lesskey/Makefile

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

Added files:

Index: src/external/bsd/less/Makefile
diff -u /dev/null src/external/bsd/less/Makefile:1.1
--- /dev/null	Sun Jul  3 18:02:01 2011
+++ src/external/bsd/less/Makefile	Sun Jul  3 18:02:00 2011
@@ -0,0 +1,7 @@
+#	$NetBSD: Makefile,v 1.1 2011/07/03 18:02:00 tron Exp $
+
+.include bsd.own.mk
+
+SUBDIR=	bin
+
+.include bsd.subdir.mk
Index: src/external/bsd/less/Makefile.inc
diff -u /dev/null src/external/bsd/less/Makefile.inc:1.1
--- /dev/null	Sun Jul  3 18:02:01 2011
+++ src/external/bsd/less/Makefile.inc	Sun Jul  3 18:02:00 2011
@@ -0,0 +1,4 @@
+#	$NetBSD: Makefile.inc,v 1.1 2011/07/03 18:02:00 tron Exp $
+
+LESS_DISTDIR=	${NETBSDSRCDIR}/external/bsd/less/dist
+.PATH:		${LESS_DISTDIR}

Index: src/external/bsd/less/bin/Makefile
diff -u /dev/null src/external/bsd/less/bin/Makefile:1.1
--- /dev/null	Sun Jul  3 18:02:01 2011
+++ src/external/bsd/less/bin/Makefile	Sun Jul  3 18:02:01 2011
@@ -0,0 +1,7 @@
+#	$NetBSD: Makefile,v 1.1 2011/07/03 18:02:01 tron Exp $
+
+.include bsd.own.mk
+
+SUBDIR=	less lessecho lesskey
+
+.include bsd.subdir.mk
Index: src/external/bsd/less/bin/Makefile.inc
diff -u /dev/null src/external/bsd/less/bin/Makefile.inc:1.1
--- /dev/null	Sun Jul  3 18:02:01 2011
+++ src/external/bsd/less/bin/Makefile.inc	Sun Jul  3 18:02:01 2011
@@ -0,0 +1,7 @@
+# $NetBSD: Makefile.inc,v 1.1 2011/07/03 18:02:01 tron Exp $
+
+.include ../Makefile.inc
+
+BINDIR=		/usr/bin
+
+CPPFLAGS+=	-I${LESS_DISTDIR} -DBINDIR=\${BINDIR}\ -DSYSDIR=\/etc\

Index: src/external/bsd/less/bin/less/Makefile
diff -u /dev/null src/external/bsd/less/bin/less/Makefile:1.1
--- /dev/null	Sun Jul  3 18:02:01 2011
+++ src/external/bsd/less/bin/less/Makefile	Sun Jul  3 18:02:01 2011
@@ -0,0 +1,17 @@
+#	$NetBSD: Makefile,v 1.1 2011/07/03 18:02:01 tron Exp $
+
+.include bsd.own.mk
+
+PROG=	less
+
+SRCS=	main.c screen.c brac.c ch.c charset.c cmdbuf.c \
+	command.c cvt.c decode.c edit.c filename.c forwback.c \
+	help.c ifile.c input.c jump.c line.c linenum.c \
+	lsystem.c mark.c optfunc.c option.c opttbl.c os.c \
+	output.c pattern.c position.c prompt.c search.c signal.c \
+	tags.c ttyin.c version.c  
+
+LDADD+=	-lcurses -ltermcap
+DPADD+=	${LIBCURSES}
+
+.include bsd.prog.mk

Index: src/external/bsd/less/bin/lessecho/Makefile
diff -u /dev/null src/external/bsd/less/bin/lessecho/Makefile:1.1
--- /dev/null	Sun Jul  3 18:02:01 2011
+++ src/external/bsd/less/bin/lessecho/Makefile	Sun Jul  3 18:02:01 2011
@@ -0,0 +1,9 @@
+#	$NetBSD: Makefile,v 1.1 2011/07/03 18:02:01 tron Exp $
+
+.include bsd.own.mk
+
+PROG=	lessecho
+
+SRCS=	lessecho version.c  
+
+.include bsd.prog.mk

Index: src/external/bsd/less/bin/lesskey/Makefile
diff -u /dev/null src/external/bsd/less/bin/lesskey/Makefile:1.1
--- /dev/null	Sun Jul  3 18:02:01 2011
+++ src/external/bsd/less/bin/lesskey/Makefile	Sun Jul  3 18:02:01 2011
@@ -0,0 +1,12 @@
+#	$NetBSD: Makefile,v 1.1 2011/07/03 18:02:01 tron Exp $
+
+.include bsd.own.mk
+
+PROG=	lesskey
+
+SRCS=	lesskey version.c  
+
+LDADD+=	-ltermcap
+DPADD+=	${LIBTERM}
+
+.include bsd.prog.mk



CVS commit: src/external/bsd/less/bin/less

2011-07-03 Thread Matthias Scheler
Module Name:src
Committed By:   tron
Date:   Sun Jul  3 18:15:18 UTC 2011

Modified Files:
src/external/bsd/less/bin/less: Makefile

Log Message:
Create (symbolic) links for more(1) and page(1).


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/bsd/less/bin/less/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/bsd/less/bin/less/Makefile
diff -u src/external/bsd/less/bin/less/Makefile:1.1 src/external/bsd/less/bin/less/Makefile:1.2
--- src/external/bsd/less/bin/less/Makefile:1.1	Sun Jul  3 18:02:01 2011
+++ src/external/bsd/less/bin/less/Makefile	Sun Jul  3 18:15:18 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.1 2011/07/03 18:02:01 tron Exp $
+#	$NetBSD: Makefile,v 1.2 2011/07/03 18:15:18 tron Exp $
 
 .include bsd.own.mk
 
@@ -14,4 +14,7 @@
 LDADD+=	-lcurses -ltermcap
 DPADD+=	${LIBCURSES}
 
+MLINKS=	less.1 more.1 less.1 page.1
+LINKS=	${BINDIR}/less ${BINDIR}/more ${BINDIR}/less ${BINDIR}/page
+
 .include bsd.prog.mk



CVS commit: src/sys/net

2011-07-03 Thread Mihai Chelaru
Module Name:src
Committed By:   kefren
Date:   Sun Jul  3 18:46:12 UTC 2011

Modified Files:
src/sys/net: if_mpls.c

Log Message:
Avoid putting implicit null labels on the wire


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/net/if_mpls.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/net/if_mpls.c
diff -u src/sys/net/if_mpls.c:1.7 src/sys/net/if_mpls.c:1.8
--- src/sys/net/if_mpls.c:1.7	Wed Jun 22 19:08:29 2011
+++ src/sys/net/if_mpls.c	Sun Jul  3 18:46:12 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_mpls.c,v 1.7 2011/06/22 19:08:29 kefren Exp $ */
+/*	$NetBSD: if_mpls.c,v 1.8 2011/07/03 18:46:12 kefren Exp $ */
 
 /*
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: if_mpls.c,v 1.7 2011/06/22 19:08:29 kefren Exp $);
+__KERNEL_RCSID(0, $NetBSD: if_mpls.c,v 1.8 2011/07/03 18:46:12 kefren Exp $);
 
 #include opt_inet.h
 #include opt_mpls.h
@@ -218,7 +218,8 @@
 
 	while (psize = rt_gettag(rt)-sa_len - sizeof(mh)) {
 		pms++;
-		if ((m = mpls_prepend_shim(m, mh)) == NULL)
+		if (mh.shim.label != MPLS_LABEL_IMPLNULL 
+		((m = mpls_prepend_shim(m, mh)) == NULL))
 			return ENOBUFS;
 		memset(mh, 0, sizeof(mh));
 		mh.s_addr = ntohl(pms-s_addr);
@@ -392,7 +393,8 @@
 		tshim.s_addr = ntohl(htag-s_addr);
 		tshim.shim.bos = tshim.shim.exp = 0;
 		tshim.shim.ttl = mpls_defttl;
-		if ((m = mpls_prepend_shim(m, tshim)) == NULL)
+		if (tshim.shim.label != MPLS_LABEL_IMPLNULL 
+		((m = mpls_prepend_shim(m, tshim)) == NULL))
 			return ENOBUFS;
 		psize += sizeof(tshim);
 	}



CVS commit: src/tests/syscall

2011-07-03 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jul  3 19:02:00 UTC 2011

Modified Files:
src/tests/syscall: t_mknod.c

Log Message:
Fix copy-pasto.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/syscall/t_mknod.c

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

Modified files:

Index: src/tests/syscall/t_mknod.c
diff -u src/tests/syscall/t_mknod.c:1.2 src/tests/syscall/t_mknod.c:1.3
--- src/tests/syscall/t_mknod.c:1.2	Sun Jul  3 15:42:07 2011
+++ src/tests/syscall/t_mknod.c	Sun Jul  3 19:02:00 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mknod.c,v 1.2 2011/07/03 15:42:07 jruoho Exp $ */
+/* $NetBSD: t_mknod.c,v 1.3 2011/07/03 19:02:00 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: t_mknod.c,v 1.2 2011/07/03 15:42:07 jruoho Exp $);
+__RCSID($NetBSD: t_mknod.c,v 1.3 2011/07/03 19:02:00 jruoho Exp $);
 
 #include sys/stat.h
 
@@ -121,7 +121,7 @@
 	ATF_REQUIRE(stat(path, st) == 0);
 
 	if (S_ISCHR(st.st_mode) == 0)
-		atf_tc_fail_nonfatal(invalid mode from mknod(2) (S_IFBLK));
+		atf_tc_fail_nonfatal(invalid mode from mknod(2) (S_IFCHR));
 
 	ATF_REQUIRE(unlink(path) == 0);
 



CVS commit: src/sbin/cgdconfig

2011-07-03 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sun Jul  3 19:05:10 UTC 2011

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

Log Message:
fix typo


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sbin/cgdconfig/cgdconfig.8

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

Modified files:

Index: src/sbin/cgdconfig/cgdconfig.8
diff -u src/sbin/cgdconfig/cgdconfig.8:1.30 src/sbin/cgdconfig/cgdconfig.8:1.31
--- src/sbin/cgdconfig/cgdconfig.8:1.30	Tue Mar 30 14:26:55 2010
+++ src/sbin/cgdconfig/cgdconfig.8	Sun Jul  3 19:05:10 2011
@@ -1,4 +1,4 @@
-.\ $NetBSD: cgdconfig.8,v 1.30 2010/03/30 14:26:55 joerg Exp $
+.\ $NetBSD: cgdconfig.8,v 1.31 2011/07/03 19:05:10 dholland Exp $
 .\
 .\ Copyright (c) 2002, The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -190,7 +190,7 @@
 If the newly configured disk fails to verify, then
 .Nm
 will regenerate the key and re-configure the device.
-It only makes sense to specify a verification method if at least of the
+It only makes sense to specify a verification method if at least one of the
 key generation methods is error prone, e.g., uses a user-entered passphrase.
 The following verification methods are supported:
 .Pp



CVS commit: src/external/bsd/less

2011-07-03 Thread Matthias Scheler
Module Name:src
Committed By:   tron
Date:   Sun Jul  3 19:42:10 UTC 2011

Modified Files:
src/external/bsd/less: less2netbsd

Log Message:
Fix generation of RCS Ids.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/less/less2netbsd

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

Modified files:

Index: src/external/bsd/less/less2netbsd
diff -u src/external/bsd/less/less2netbsd:1.2 src/external/bsd/less/less2netbsd:1.3
--- src/external/bsd/less/less2netbsd:1.2	Sun Jul  3 17:56:26 2011
+++ src/external/bsd/less/less2netbsd	Sun Jul  3 19:42:09 2011
@@ -86,7 +86,7 @@
 	then
 		NEW_FILENAME=${FILENAME}.new
 		rm -f ${NEW_FILENAME}
-		(echo '/*	$NetBSD	*/'
+		(echo '/*	$NetBSD: less2netbsd,v 1.3 2011/07/03 19:42:09 tron Exp $	*/'
 		 echo ''
 		 cat $FILENAME) ${NEW_FILENAME}
 		mv -f ${NEW_FILENAME} $FILENAME



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

2011-07-03 Thread Matthias Scheler
Module Name:src
Committed By:   tron
Date:   Sun Jul  3 19:51:26 UTC 2011

Modified Files:
src/external/bsd/less/dist: brac.c ch.c charset.c charset.h cmd.h
cmdbuf.c command.c cvt.c decode.c defines.h edit.c filename.c
forwback.c funcs.h help.c ifile.c input.c jump.c less.h lessecho.c
lesskey.c lesskey.h lglob.h line.c linenum.c lsystem.c main.c
mark.c mkhelp.c optfunc.c option.c option.h opttbl.c os.c output.c
pattern.c pattern.h pckeys.h position.c position.h prompt.c
regexp.c regexp.h screen.c scrsize.c search.c signal.c tags.c
ttyin.c version.c

Log Message:
Fix RCS Ids.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/bsd/less/dist/brac.c \
src/external/bsd/less/dist/ch.c src/external/bsd/less/dist/charset.c \
src/external/bsd/less/dist/charset.h src/external/bsd/less/dist/cmd.h \
src/external/bsd/less/dist/cmdbuf.c src/external/bsd/less/dist/command.c \
src/external/bsd/less/dist/cvt.c src/external/bsd/less/dist/decode.c \
src/external/bsd/less/dist/defines.h src/external/bsd/less/dist/edit.c \
src/external/bsd/less/dist/filename.c \
src/external/bsd/less/dist/forwback.c src/external/bsd/less/dist/funcs.h \
src/external/bsd/less/dist/help.c src/external/bsd/less/dist/ifile.c \
src/external/bsd/less/dist/input.c src/external/bsd/less/dist/jump.c \
src/external/bsd/less/dist/less.h src/external/bsd/less/dist/lessecho.c \
src/external/bsd/less/dist/lesskey.c src/external/bsd/less/dist/lesskey.h \
src/external/bsd/less/dist/lglob.h src/external/bsd/less/dist/line.c \
src/external/bsd/less/dist/linenum.c src/external/bsd/less/dist/lsystem.c \
src/external/bsd/less/dist/main.c src/external/bsd/less/dist/mark.c \
src/external/bsd/less/dist/mkhelp.c src/external/bsd/less/dist/optfunc.c \
src/external/bsd/less/dist/option.c src/external/bsd/less/dist/option.h \
src/external/bsd/less/dist/opttbl.c src/external/bsd/less/dist/os.c \
src/external/bsd/less/dist/output.c src/external/bsd/less/dist/pattern.c \
src/external/bsd/less/dist/pattern.h src/external/bsd/less/dist/pckeys.h \
src/external/bsd/less/dist/position.c \
src/external/bsd/less/dist/position.h src/external/bsd/less/dist/prompt.c \
src/external/bsd/less/dist/regexp.c src/external/bsd/less/dist/regexp.h \
src/external/bsd/less/dist/screen.c src/external/bsd/less/dist/scrsize.c \
src/external/bsd/less/dist/search.c src/external/bsd/less/dist/signal.c \
src/external/bsd/less/dist/tags.c src/external/bsd/less/dist/ttyin.c \
src/external/bsd/less/dist/version.c

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

Modified files:

Index: src/external/bsd/less/dist/brac.c
diff -u src/external/bsd/less/dist/brac.c:1.1.1.1 src/external/bsd/less/dist/brac.c:1.2
--- src/external/bsd/less/dist/brac.c:1.1.1.1	Sun Jul  3 18:01:00 2011
+++ src/external/bsd/less/dist/brac.c	Sun Jul  3 19:51:26 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD	*/
+/*	$NetBSD: brac.c,v 1.2 2011/07/03 19:51:26 tron Exp $	*/
 
 /*
  * Copyright (C) 1984-2011  Mark Nudelman
Index: src/external/bsd/less/dist/ch.c
diff -u src/external/bsd/less/dist/ch.c:1.1.1.1 src/external/bsd/less/dist/ch.c:1.2
--- src/external/bsd/less/dist/ch.c:1.1.1.1	Sun Jul  3 18:01:00 2011
+++ src/external/bsd/less/dist/ch.c	Sun Jul  3 19:51:26 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD	*/
+/*	$NetBSD: ch.c,v 1.2 2011/07/03 19:51:26 tron Exp $	*/
 
 /*
  * Copyright (C) 1984-2011  Mark Nudelman
Index: src/external/bsd/less/dist/charset.c
diff -u src/external/bsd/less/dist/charset.c:1.1.1.1 src/external/bsd/less/dist/charset.c:1.2
--- src/external/bsd/less/dist/charset.c:1.1.1.1	Sun Jul  3 18:01:01 2011
+++ src/external/bsd/less/dist/charset.c	Sun Jul  3 19:51:26 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD	*/
+/*	$NetBSD: charset.c,v 1.2 2011/07/03 19:51:26 tron Exp $	*/
 
 /*
  * Copyright (C) 1984-2011  Mark Nudelman
Index: src/external/bsd/less/dist/charset.h
diff -u src/external/bsd/less/dist/charset.h:1.1.1.1 src/external/bsd/less/dist/charset.h:1.2
--- src/external/bsd/less/dist/charset.h:1.1.1.1	Sun Jul  3 18:01:01 2011
+++ src/external/bsd/less/dist/charset.h	Sun Jul  3 19:51:26 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD	*/
+/*	$NetBSD: charset.h,v 1.2 2011/07/03 19:51:26 tron Exp $	*/
 
 /*
  * Copyright (C) 2005-2011  Mark Nudelman
Index: src/external/bsd/less/dist/cmd.h
diff -u src/external/bsd/less/dist/cmd.h:1.1.1.1 src/external/bsd/less/dist/cmd.h:1.2
--- src/external/bsd/less/dist/cmd.h:1.1.1.1	Sun Jul  3 18:01:01 2011
+++ src/external/bsd/less/dist/cmd.h	Sun Jul  3 19:51:26 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD	*/
+/*	$NetBSD: cmd.h,v 1.2 2011/07/03 19:51:26 tron Exp $	*/
 
 /*
  * Copyright (C) 1984-2011  Mark Nudelman
Index: src/external/bsd/less/dist/cmdbuf.c
diff -u src/external/bsd/less/dist/cmdbuf.c:1.1.1.1 src/external/bsd/less/dist/cmdbuf.c:1.2
--- 

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

2011-07-03 Thread Matthias Scheler
Module Name:src
Committed By:   tron
Date:   Sun Jul  3 20:14:13 UTC 2011

Modified Files:
src/external/bsd/less/dist: brac.c ch.c charset.c cmdbuf.c command.c
decode.c edit.c filename.c forwback.c funcs.h help.c ifile.c less.h
lessecho.c lesskey.c lglob.h line.c linenum.c lsystem.c main.c
option.c option.h opttbl.c os.c output.c pattern.h position.c
prompt.c screen.c search.c signal.c tags.c

Log Message:
Apply NetBSD specific patches, mostly related to behaviour of
less(1) as more(1).


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/less/dist/brac.c \
src/external/bsd/less/dist/ch.c src/external/bsd/less/dist/charset.c \
src/external/bsd/less/dist/cmdbuf.c src/external/bsd/less/dist/command.c \
src/external/bsd/less/dist/decode.c src/external/bsd/less/dist/edit.c \
src/external/bsd/less/dist/filename.c \
src/external/bsd/less/dist/forwback.c src/external/bsd/less/dist/funcs.h \
src/external/bsd/less/dist/help.c src/external/bsd/less/dist/ifile.c \
src/external/bsd/less/dist/less.h src/external/bsd/less/dist/lessecho.c \
src/external/bsd/less/dist/lesskey.c src/external/bsd/less/dist/lglob.h \
src/external/bsd/less/dist/line.c src/external/bsd/less/dist/linenum.c \
src/external/bsd/less/dist/lsystem.c src/external/bsd/less/dist/main.c \
src/external/bsd/less/dist/option.c src/external/bsd/less/dist/option.h \
src/external/bsd/less/dist/opttbl.c src/external/bsd/less/dist/os.c \
src/external/bsd/less/dist/output.c src/external/bsd/less/dist/pattern.h \
src/external/bsd/less/dist/position.c src/external/bsd/less/dist/prompt.c \
src/external/bsd/less/dist/screen.c src/external/bsd/less/dist/search.c \
src/external/bsd/less/dist/signal.c src/external/bsd/less/dist/tags.c

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

Modified files:

Index: src/external/bsd/less/dist/brac.c
diff -u src/external/bsd/less/dist/brac.c:1.2 src/external/bsd/less/dist/brac.c:1.3
--- src/external/bsd/less/dist/brac.c:1.2	Sun Jul  3 19:51:26 2011
+++ src/external/bsd/less/dist/brac.c	Sun Jul  3 20:14:12 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: brac.c,v 1.2 2011/07/03 19:51:26 tron Exp $	*/
+/*	$NetBSD: brac.c,v 1.3 2011/07/03 20:14:12 tron Exp $	*/
 
 /*
  * Copyright (C) 1984-2011  Mark Nudelman
@@ -36,9 +36,7 @@
 	register int c;
 	register int nest;
 	POSITION pos;
-	int (*chget)();
-
-	extern int ch_forw_get(), ch_back_get();
+	int (*chget) __P((void));
 
 	/*
 	 * Seek to the line containing the open bracket.
Index: src/external/bsd/less/dist/ch.c
diff -u src/external/bsd/less/dist/ch.c:1.2 src/external/bsd/less/dist/ch.c:1.3
--- src/external/bsd/less/dist/ch.c:1.2	Sun Jul  3 19:51:26 2011
+++ src/external/bsd/less/dist/ch.c	Sun Jul  3 20:14:12 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: ch.c,v 1.2 2011/07/03 19:51:26 tron Exp $	*/
+/*	$NetBSD: ch.c,v 1.3 2011/07/03 20:14:12 tron Exp $	*/
 
 /*
  * Copyright (C) 1984-2011  Mark Nudelman
@@ -140,7 +140,9 @@
 extern char *namelogfile;
 #endif
 
-static int ch_addbuf();
+static int ch_addbuf __P((void));
+static int buffered __P((BLOCKNUM));
+static void ch_delbufs __P((void));
 
 
 /*
Index: src/external/bsd/less/dist/charset.c
diff -u src/external/bsd/less/dist/charset.c:1.2 src/external/bsd/less/dist/charset.c:1.3
--- src/external/bsd/less/dist/charset.c:1.2	Sun Jul  3 19:51:26 2011
+++ src/external/bsd/less/dist/charset.c	Sun Jul  3 20:14:12 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: charset.c,v 1.2 2011/07/03 19:51:26 tron Exp $	*/
+/*	$NetBSD: charset.c,v 1.3 2011/07/03 20:14:12 tron Exp $	*/
 
 /*
  * Copyright (C) 1984-2011  Mark Nudelman
@@ -117,6 +117,9 @@
 static char *utfbinfmt = NULL;
 public int binattr = AT_STANDOUT;
 
+static void ichardef __P((char *));
+static int icharset __P((char *, int));
+static void ilocale __P((void));
 
 /*
  * Define a charset, given a description string.
Index: src/external/bsd/less/dist/cmdbuf.c
diff -u src/external/bsd/less/dist/cmdbuf.c:1.2 src/external/bsd/less/dist/cmdbuf.c:1.3
--- src/external/bsd/less/dist/cmdbuf.c:1.2	Sun Jul  3 19:51:26 2011
+++ src/external/bsd/less/dist/cmdbuf.c	Sun Jul  3 20:14:12 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: cmdbuf.c,v 1.2 2011/07/03 19:51:26 tron Exp $	*/
+/*	$NetBSD: cmdbuf.c,v 1.3 2011/07/03 20:14:12 tron Exp $	*/
 
 /*
  * Copyright (C) 1984-2011  Mark Nudelman
@@ -22,6 +22,9 @@
 #if HAVE_STAT
 #include sys/stat.h
 #endif
+#if HAVE_ERRNO_H
+#include errno.h
+#endif
 
 extern int sc_width;
 extern int utf_mode;
@@ -34,7 +37,7 @@
 static int literal;		/* Next input char should not be interpreted */
 
 #if TAB_COMPLETE_FILENAME
-static int cmd_complete();
+static int cmd_complete __P((int));
 /*
  * These variables are statics used by cmd_complete.
  */
@@ -46,8 +49,24 @@
 static struct textlist tk_tlist;
 #endif
 
-static int cmd_left();
-static int cmd_right();
+static void cmd_repaint __P((char *));

CVS commit: src/tests/syscall

2011-07-03 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jul  3 20:22:51 UTC 2011

Modified Files:
src/tests/syscall: t_mknod.c

Log Message:
Remove wrong check.

XXX: Why does this fail on tmpfs but not ffs?


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/syscall/t_mknod.c

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

Modified files:

Index: src/tests/syscall/t_mknod.c
diff -u src/tests/syscall/t_mknod.c:1.3 src/tests/syscall/t_mknod.c:1.4
--- src/tests/syscall/t_mknod.c:1.3	Sun Jul  3 19:02:00 2011
+++ src/tests/syscall/t_mknod.c	Sun Jul  3 20:22:51 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mknod.c,v 1.3 2011/07/03 19:02:00 jruoho Exp $ */
+/* $NetBSD: t_mknod.c,v 1.4 2011/07/03 20:22:51 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: t_mknod.c,v 1.3 2011/07/03 19:02:00 jruoho Exp $);
+__RCSID($NetBSD: t_mknod.c,v 1.4 2011/07/03 20:22:51 jruoho Exp $);
 
 #include sys/stat.h
 
@@ -55,9 +55,6 @@
 
 	(void)memset(buf, 'x', sizeof(buf));
 
-	errno = 0;
-	ATF_REQUIRE_ERRNO(EINVAL, mknod(path, -1, 0) == -1);
-
 	/*
 	 * See the old PR kern/45111.
 	 */



CVS commit: src/lib/libc/sys

2011-07-03 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jul  3 20:34:52 UTC 2011

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

Log Message:
Use .Fn (and not .Nm) for functions.


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

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

Modified files:

Index: src/lib/libc/sys/revoke.2
diff -u src/lib/libc/sys/revoke.2:1.12 src/lib/libc/sys/revoke.2:1.13
--- src/lib/libc/sys/revoke.2:1.12	Thu Aug  7 16:44:05 2003
+++ src/lib/libc/sys/revoke.2	Sun Jul  3 20:34:52 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: revoke.2,v 1.12 2003/08/07 16:44:05 agc Exp $
+.\	$NetBSD: revoke.2,v 1.13 2011/07/03 20:34:52 jruoho Exp $
 .\
 .\ Copyright (c) 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -32,7 +32,7 @@
 .\
 .\ @(#)revoke.2	8.1 (Berkeley) 6/4/93
 .\
-.Dd March 22, 1999
+.Dd July 3, 2011
 .Dt REVOKE 2
 .Os
 .Sh NAME
@@ -46,7 +46,7 @@
 .Fn revoke const char *path
 .Sh DESCRIPTION
 The
-.Nm revoke
+.Fn revoke
 function invalidates all current open file descriptors in the system
 for the file named by
 .Fa path .
@@ -64,8 +64,9 @@
 .Pp
 Access to a file may be revoked only by its owner or the super user.
 .Pp
-.Nm revoke
-is normally used to prepare a terminal device for a new login session,
+The
+.Fn revoke
+function is normally used to prepare a terminal device for a new login session,
 preventing any access by a previous user of the terminal.
 .Sh RETURN VALUES
 A 0 value indicates that the call succeeded.
@@ -102,6 +103,6 @@
 .Xr write 2
 .Sh HISTORY
 The
-.Nm revoke
+.Fn revoke
 function was introduced in
 .Bx 4.3 Reno .



CVS commit: src/lib/libc/sys

2011-07-03 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jul  3 20:36:34 UTC 2011

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

Log Message:
But use .Xr (and not .Fn) with references to external functions.


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

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

Modified files:

Index: src/lib/libc/sys/revoke.2
diff -u src/lib/libc/sys/revoke.2:1.13 src/lib/libc/sys/revoke.2:1.14
--- src/lib/libc/sys/revoke.2:1.13	Sun Jul  3 20:34:52 2011
+++ src/lib/libc/sys/revoke.2	Sun Jul  3 20:36:34 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: revoke.2,v 1.13 2011/07/03 20:34:52 jruoho Exp $
+.\	$NetBSD: revoke.2,v 1.14 2011/07/03 20:36:34 jruoho Exp $
 .\
 .\ Copyright (c) 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -52,11 +52,11 @@
 .Fa path .
 Subsequent operations on any such descriptors
 fail, with the exceptions that a
-.Fn read
+.Xr read 2
 from a character device file which has been revoked
 returns a count of zero (end of file),
 and a
-.Fn close
+.Xr close 2
 call will succeed.
 If the file is a special file for a device which is open,
 the device close function



CVS commit: src

2011-07-03 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Jul  3 21:06:56 UTC 2011

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/syscall: Makefile
Added Files:
src/tests/syscall: t_revoke.c

Log Message:
Three simple unit tests for revoke(2).


To generate a diff of this commit:
cvs rdiff -u -r1.359 -r1.360 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.36 -r1.37 src/tests/syscall/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/syscall/t_revoke.c

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

Modified files:

Index: src/distrib/sets/lists/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.359 src/distrib/sets/lists/tests/mi:1.360
--- src/distrib/sets/lists/tests/mi:1.359	Sun Jul  3 17:47:15 2011
+++ src/distrib/sets/lists/tests/mi	Sun Jul  3 21:06:56 2011
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.359 2011/07/03 17:47:15 jruoho Exp $
+# $NetBSD: mi,v 1.360 2011/07/03 21:06:56 jruoho Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -642,6 +642,7 @@
 ./usr/libdata/debug/usr/tests/syscall/t_poll.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_pollts.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_pselect.debug			tests-syscall-debug	debug,atf
+./usr/libdata/debug/usr/tests/syscall/t_revoke.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_setrlimit.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_setuid.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_stat.debug			tests-syscall-debug	debug,atf
@@ -2391,6 +2392,7 @@
 ./usr/tests/syscall/t_poll			tests-syscall-tests	atf
 ./usr/tests/syscall/t_pollts			tests-syscall-tests	atf
 ./usr/tests/syscall/t_pselect			tests-syscall-tests	atf
+./usr/tests/syscall/t_revoke			tests-syscall-tests	atf
 ./usr/tests/syscall/t_setrlimit			tests-syscall-tests	atf
 ./usr/tests/syscall/t_setuid			tests-syscall-tests	atf
 ./usr/tests/syscall/t_stat			tests-syscall-tests	atf

Index: src/tests/syscall/Makefile
diff -u src/tests/syscall/Makefile:1.36 src/tests/syscall/Makefile:1.37
--- src/tests/syscall/Makefile:1.36	Sun Jul  3 17:47:15 2011
+++ src/tests/syscall/Makefile	Sun Jul  3 21:06:56 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.36 2011/07/03 17:47:15 jruoho Exp $
+# $NetBSD: Makefile,v 1.37 2011/07/03 21:06:56 jruoho Exp $
 
 .include bsd.own.mk
 
@@ -9,7 +9,7 @@
 TESTS_C+=	t_getrusage t_getsid t_gettimeofday
 TESTS_C+=	t_itimer t_kill t_link
 TESTS_C+=	t_mincore t_mknod t_mmap t_mprotect t_msync t_nanosleep
-TESTS_C+=	t_poll t_pollts t_pselect
+TESTS_C+=	t_poll t_pollts t_pselect t_revoke
 TESTS_C+=	t_setrlimit t_setuid t_stat t_timer t_truncate
 TESTS_C+=	t_umask t_unlink
 

Added files:

Index: src/tests/syscall/t_revoke.c
diff -u /dev/null src/tests/syscall/t_revoke.c:1.1
--- /dev/null	Sun Jul  3 21:06:56 2011
+++ src/tests/syscall/t_revoke.c	Sun Jul  3 21:06:56 2011
@@ -0,0 +1,185 @@
+/* $NetBSD: t_revoke.c,v 1.1 2011/07/03 21:06:56 jruoho Exp $ */
+
+/*-
+ * Copyright (c) 2011 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Jukka Ruohonen.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+#include sys/cdefs.h
+__RCSID($NetBSD: t_revoke.c,v 1.1 2011/07/03 21:06:56 jruoho Exp $);
+
+#include sys/resource.h
+#include sys/wait.h
+
+#include atf-c.h
+#include fcntl.h
+#include errno.h
+#include pwd.h
+#include stdio.h
+#include stdlib.h
+#include string.h
+#include unistd.h
+
+static const char path[] = revoke;
+

CVS commit: src/external/bsd

2011-07-03 Thread Matthias Scheler
Module Name:src
Committed By:   tron
Date:   Sun Jul  3 21:58:33 UTC 2011

Modified Files:
src/external/bsd: Makefile

Log Message:
Build the new version of less.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/external/bsd/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/bsd/Makefile
diff -u src/external/bsd/Makefile:1.29 src/external/bsd/Makefile:1.30
--- src/external/bsd/Makefile:1.29	Thu Mar 10 13:16:57 2011
+++ src/external/bsd/Makefile	Sun Jul  3 21:58:33 2011
@@ -1,8 +1,8 @@
-#	$NetBSD: Makefile,v 1.29 2011/03/10 13:16:57 jmmv Exp $
+#	$NetBSD: Makefile,v 1.30 2011/07/03 21:58:33 tron Exp $
 
 .include bsd.own.mk
 
-SUBDIR=	acpica am-utils bind cron dhcpcd fetch file flex libarchive \
+SUBDIR=	acpica am-utils bind cron dhcpcd fetch file flex less libarchive \
 	libevent liblzf libpcap mdocml openresolv top byacc wpa ntp tcpdump \
 	tmux
 



CVS commit: src/usr.bin

2011-07-03 Thread Matthias Scheler
Module Name:src
Committed By:   tron
Date:   Sun Jul  3 21:59:01 UTC 2011

Modified Files:
src/usr.bin: Makefile
Removed Files:
src/usr.bin/less: Makefile Makefile.inc less2netbsd
src/usr.bin/less/less: INSTALL LICENSE Makefile NEWS README brac.c ch.c
charset.c charset.h cmd.h cmdbuf.c command.c decode.c defines.h
edit.c filename.c forwback.c funcs.h help.c ifile.c input.c jump.c
less.1 less.h lesskey.h lglob.h line.c linenum.c lsystem.c main.c
mark.c optfunc.c option.c option.h opttbl.c os.c output.c pckeys.h
position.c position.h prompt.c screen.c search.c signal.c tags.c
ttyin.c version.c
src/usr.bin/less/lessecho: Makefile lessecho.c
src/usr.bin/less/lesskey: Makefile lesskey.1 lesskey.c lesskey.h

Log Message:
Remove the old version of less.


To generate a diff of this commit:
cvs rdiff -u -r1.201 -r1.202 src/usr.bin/Makefile
cvs rdiff -u -r1.2 -r0 src/usr.bin/less/Makefile
cvs rdiff -u -r1.5 -r0 src/usr.bin/less/Makefile.inc
cvs rdiff -u -r1.8 -r0 src/usr.bin/less/less2netbsd
cvs rdiff -u -r1.1.1.2 -r0 src/usr.bin/less/less/INSTALL \
src/usr.bin/less/less/lesskey.h
cvs rdiff -u -r1.1.1.3 -r0 src/usr.bin/less/less/LICENSE
cvs rdiff -u -r1.12 -r0 src/usr.bin/less/less/Makefile \
src/usr.bin/less/less/opttbl.c
cvs rdiff -u -r1.1.1.8 -r0 src/usr.bin/less/less/NEWS \
src/usr.bin/less/less/README src/usr.bin/less/less/cmd.h \
src/usr.bin/less/less/input.c src/usr.bin/less/less/jump.c \
src/usr.bin/less/less/position.h
cvs rdiff -u -r1.6 -r0 src/usr.bin/less/less/brac.c \
src/usr.bin/less/less/help.c src/usr.bin/less/less/ifile.c \
src/usr.bin/less/less/mark.c src/usr.bin/less/less/signal.c \
src/usr.bin/less/less/version.c
cvs rdiff -u -r1.8 -r0 src/usr.bin/less/less/ch.c \
src/usr.bin/less/less/cmdbuf.c src/usr.bin/less/less/decode.c \
src/usr.bin/less/less/linenum.c src/usr.bin/less/less/lsystem.c \
src/usr.bin/less/less/option.c src/usr.bin/less/less/tags.c
cvs rdiff -u -r1.7 -r0 src/usr.bin/less/less/charset.c \
src/usr.bin/less/less/defines.h src/usr.bin/less/less/filename.c \
src/usr.bin/less/less/option.h
cvs rdiff -u -r1.1.1.1 -r0 src/usr.bin/less/less/charset.h
cvs rdiff -u -r1.14 -r0 src/usr.bin/less/less/command.c \
src/usr.bin/less/less/main.c src/usr.bin/less/less/prompt.c
cvs rdiff -u -r1.9 -r0 src/usr.bin/less/less/edit.c \
src/usr.bin/less/less/funcs.h src/usr.bin/less/less/less.h \
src/usr.bin/less/less/os.c
cvs rdiff -u -r1.10 -r0 src/usr.bin/less/less/forwback.c \
src/usr.bin/less/less/output.c src/usr.bin/less/less/search.c
cvs rdiff -u -r1.18 -r0 src/usr.bin/less/less/less.1
cvs rdiff -u -r1.3 -r0 src/usr.bin/less/less/lglob.h \
src/usr.bin/less/less/optfunc.c src/usr.bin/less/less/position.c
cvs rdiff -u -r1.11 -r0 src/usr.bin/less/less/line.c
cvs rdiff -u -r1.1.1.4 -r0 src/usr.bin/less/less/pckeys.h
cvs rdiff -u -r1.15 -r0 src/usr.bin/less/less/screen.c
cvs rdiff -u -r1.2 -r0 src/usr.bin/less/less/ttyin.c
cvs rdiff -u -r1.3 -r0 src/usr.bin/less/lessecho/Makefile
cvs rdiff -u -r1.6 -r0 src/usr.bin/less/lessecho/lessecho.c
cvs rdiff -u -r1.5 -r0 src/usr.bin/less/lesskey/Makefile
cvs rdiff -u -r1.9 -r0 src/usr.bin/less/lesskey/lesskey.1 \
src/usr.bin/less/lesskey/lesskey.c
cvs rdiff -u -r1.1.1.8 -r0 src/usr.bin/less/lesskey/lesskey.h

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

Modified files:

Index: src/usr.bin/Makefile
diff -u src/usr.bin/Makefile:1.201 src/usr.bin/Makefile:1.202
--- src/usr.bin/Makefile:1.201	Thu Apr 21 14:26:35 2011
+++ src/usr.bin/Makefile	Sun Jul  3 21:58:52 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.201 2011/04/21 14:26:35 joerg Exp $
+#	$NetBSD: Makefile,v 1.202 2011/07/03 21:58:52 tron Exp $
 #	from: @(#)Makefile	8.3 (Berkeley) 1/7/94
 
 .include bsd.own.mk
@@ -13,7 +13,7 @@
 	false fdformat fgen find finger fmt fold fpr from \
 	fsplit fstat ftp gcore genassym gencat getconf getent getopt gprof \
 	head hexdump iconv id indent infocmp innetgr ipcrm ipcs join jot \
-	kdump ktrace ktruss lam last lastcomm ldd leave less \
+	kdump ktrace ktruss lam last lastcomm ldd leave \
 	locale locate lock logger login logname look lorder m4 \
 	machine mail make man menuc mesg midiplay mixerctl mkcsmapper \
 	mkdep mkesdb mkfifo mklocale mkstr mktemp mkubootimage moduli \



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

2011-07-03 Thread Matthias Scheler
Module Name:src
Committed By:   tron
Date:   Sun Jul  3 21:59:32 UTC 2011

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

Log Message:
And entries for lessecho manual page.


To generate a diff of this commit:
cvs rdiff -u -r1.1322 -r1.1323 src/distrib/sets/lists/man/mi

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

Modified files:

Index: src/distrib/sets/lists/man/mi
diff -u src/distrib/sets/lists/man/mi:1.1322 src/distrib/sets/lists/man/mi:1.1323
--- src/distrib/sets/lists/man/mi:1.1322	Mon Jun 27 11:52:23 2011
+++ src/distrib/sets/lists/man/mi	Sun Jul  3 21:59:31 2011
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1322 2011/06/27 11:52:23 uch Exp $
+# $NetBSD: mi,v 1.1323 2011/07/03 21:59:31 tron Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -246,6 +246,7 @@
 ./usr/share/man/cat1/ldd.0			man-util-catman		.cat
 ./usr/share/man/cat1/leave.0			man-util-catman		.cat
 ./usr/share/man/cat1/less.0			man-util-catman		.cat
+./usr/share/man/cat1/lessecho.0			man-util-catman		.cat
 ./usr/share/man/cat1/lesskey.0			man-util-catman		.cat
 ./usr/share/man/cat1/limit.0			man-util-catman		.cat
 ./usr/share/man/cat1/linkfarm.0			man-obsolete		obsolete
@@ -3106,6 +3107,7 @@
 ./usr/share/man/html1/ldd.html			man-util-htmlman	html
 ./usr/share/man/html1/leave.html		man-util-htmlman	html
 ./usr/share/man/html1/less.html			man-util-htmlman	html
+./usr/share/man/html1/lessecho.html		man-util-htmlman	html
 ./usr/share/man/html1/lesskey.html		man-util-htmlman	html
 ./usr/share/man/html1/limit.html		man-util-htmlman	html
 ./usr/share/man/html1/linkfarm.html		man-obsolete		obsolete
@@ -5609,6 +5611,7 @@
 ./usr/share/man/man1/ldd.1			man-util-man		.man
 ./usr/share/man/man1/leave.1			man-util-man		.man
 ./usr/share/man/man1/less.1			man-util-man		.man
+./usr/share/man/man1/lessecho.1			man-util-man		.man
 ./usr/share/man/man1/lesskey.1			man-util-man		.man
 ./usr/share/man/man1/limit.1			man-util-man		.man
 ./usr/share/man/man1/linkfarm.1			man-obsolete		obsolete



CVS commit: src/doc

2011-07-03 Thread Matthias Scheler
Module Name:src
Committed By:   tron
Date:   Sun Jul  3 22:01:27 UTC 2011

Modified Files:
src/doc: 3RDPARTY CHANGES

Log Message:
less was updated to version 444.


To generate a diff of this commit:
cvs rdiff -u -r1.849 -r1.850 src/doc/3RDPARTY
cvs rdiff -u -r1.1573 -r1.1574 src/doc/CHANGES

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

Modified files:

Index: src/doc/3RDPARTY
diff -u src/doc/3RDPARTY:1.849 src/doc/3RDPARTY:1.850
--- src/doc/3RDPARTY:1.849	Tue Jun 28 09:17:21 2011
+++ src/doc/3RDPARTY	Sun Jul  3 22:01:27 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: 3RDPARTY,v 1.849 2011/06/28 09:17:21 jruoho Exp $
+#	$NetBSD: 3RDPARTY,v 1.850 2011/07/03 22:01:27 tron Exp $
 #
 # This file contains a list of the software that has been integrated into
 # NetBSD where we are not the primary maintainer.
@@ -508,8 +508,8 @@
 among KAME/*BSD, *BSD-current and recent *BSD releases.
 
 Package:	less
-Version:	less394
-Current Vers:	less443
+Version:	less-444
+Current Vers:	less-444
 Maintainer:	Mark Nudelman ma...@greenwoodsoftware.com
 Archive Site:	http://www.greenwoodsoftware.com/less/download.html
 Home Page:	http://www.greenwoodsoftware.com/less/
@@ -518,11 +518,9 @@
 License:	Less License (BSD 2-clause) or GPLv3 (v2 prior to less418)
 Notes:
 Many changes to make less act as more when invoked as more.  Beware.
-Use the src/usr.bin/less/less2netbsd script to prepare source tree
+Use the src/external/bsd/less/less2netbsd script to prepare source tree
 for importation.  Run ./configure before hand to generate defines.h.
-Talk to mrg before importing any new version.  (less 381's configure
-does not detect NetBSD has a sigset_t due to a bad test; this is fixed
-by hand in defines.h.)
+Talk to mrg before importing any new version.
 
 Package:	libarchive
 Version:	2.8.0

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.1573 src/doc/CHANGES:1.1574
--- src/doc/CHANGES:1.1573	Tue Jun 28 09:17:21 2011
+++ src/doc/CHANGES	Sun Jul  3 22:01:27 2011
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			$Revision: 1.1573 $
+# LIST OF CHANGES FROM LAST RELEASE:			$Revision: 1.1574 $
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -1056,3 +1056,4 @@
 	userland: Add an 'e' mode character to popen(3), and fopen(3) to set
 		close on exec to opened file descriptors. [christos 20110626]
 	acpi(4): Updated ACPICA to 20110623. [jruoho 20110628]
+	less(1): Import version 444. [tron 20110703]



CVS commit: src/rescue

2011-07-03 Thread Matthias Scheler
Module Name:src
Committed By:   tron
Date:   Sun Jul  3 22:05:01 UTC 2011

Modified Files:
src/rescue: list

Log Message:
Update location of less directory.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/rescue/list

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

Modified files:

Index: src/rescue/list
diff -u src/rescue/list:1.41 src/rescue/list:1.42
--- src/rescue/list:1.41	Sun Jun 19 01:53:36 2011
+++ src/rescue/list	Sun Jul  3 22:05:01 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: list,v 1.41 2011/06/19 01:53:36 christos Exp $
+#	$NetBSD: list,v 1.42 2011/07/03 22:05:01 tron Exp $
 
 SRCDIRS	bin
 
@@ -126,7 +126,7 @@
 PROG	ktruss
 
 PROG	less		more
-SPECIAL	less		srcdir	usr.bin/less/less
+SPECIAL	less		srcdir	external/bsd/less/bin/less
 
 PROG	vi		ex
 SPECIAL vi	srcdir  usr.bin/nvi/build



CVS commit: src/distrib/sets/lists

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 22:47:25 UTC 2011

Modified Files:
src/distrib/sets/lists/base: ad.mips64eb ad.mips64el md.sparc64
src/distrib/sets/lists/comp: ad.mips64eb ad.mips64el md.sparc64

Log Message:
updates for GCC 4.5 components.  sort.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/distrib/sets/lists/base/ad.mips64eb
cvs rdiff -u -r1.53 -r1.54 src/distrib/sets/lists/base/ad.mips64el
cvs rdiff -u -r1.120 -r1.121 src/distrib/sets/lists/base/md.sparc64
cvs rdiff -u -r1.39 -r1.40 src/distrib/sets/lists/comp/ad.mips64eb \
src/distrib/sets/lists/comp/ad.mips64el
cvs rdiff -u -r1.105 -r1.106 src/distrib/sets/lists/comp/md.sparc64

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/ad.mips64eb
diff -u src/distrib/sets/lists/base/ad.mips64eb:1.56 src/distrib/sets/lists/base/ad.mips64eb:1.57
--- src/distrib/sets/lists/base/ad.mips64eb:1.56	Fri Jul  1 02:10:08 2011
+++ src/distrib/sets/lists/base/ad.mips64eb	Sun Jul  3 22:47:24 2011
@@ -1,4 +1,4 @@
-# $NetBSD: ad.mips64eb,v 1.56 2011/07/01 02:10:08 mrg Exp $
+# $NetBSD: ad.mips64eb,v 1.57 2011/07/03 22:47:24 mrg Exp $
 ./libexec/ld.elf_so-64base-compat-shlib	compat,pic
 ./libexec/ld.elf_so-o32base-sysutil-bin	compat,pic
 ./usr/lib/64	base-compat-lib
@@ -99,6 +99,8 @@
 ./usr/lib/64/libform.so.6.0			base-compat-shlib	compat,pic
 ./usr/lib/64/libgcc_s.so.1			base-compat-shlib	compat,pic
 ./usr/lib/64/libgcc_s.so.1.0			base-compat-shlib	compat,pic
+./usr/lib/64/libgmp.so.10			base-compat-shlib	compat,pic,gcc=45
+./usr/lib/64/libgmp.so.10.2			base-compat-shlib	compat,pic,gcc=45
 ./usr/lib/64/libgnumalloc.so.1			base-compat-shlib	compat,pic
 ./usr/lib/64/libgnumalloc.so.1.0		base-compat-shlib	compat,pic
 ./usr/lib/64/libgssapi.so.10			base-compat-shlib	compat,pic,kerberos
@@ -159,6 +161,10 @@
 ./usr/lib/64/libmenu.so.6.0			base-compat-shlib	compat,pic
 ./usr/lib/64/libmj.so.1base-compat-shlib	compat,pic,crypto
 ./usr/lib/64/libmj.so.1.0			base-compat-shlib	compat,pic,crypto
+./usr/lib/64/libmpc.so.2			base-compat-shlib	compat,pic,gcc=45
+./usr/lib/64/libmpc.so.2.0			base-compat-shlib	compat,pic,gcc=45
+./usr/lib/64/libmpfr.so.4			base-compat-shlib	compat,pic,gcc=45
+./usr/lib/64/libmpfr.so.4.1			base-compat-shlib	compat,pic,gcc=45
 ./usr/lib/64/libnetpgp.so.3			base-compat-shlib	compat,pic,crypto
 ./usr/lib/64/libnetpgp.so.3.0			base-compat-shlib	compat,pic,crypto
 ./usr/lib/64/libnpf.so.0			base-compat-shlib	compat,pic,npf
@@ -169,12 +175,10 @@
 ./usr/lib/64/libopcodes.so.4.0			base-compat-shlib	compat,pic,binutils
 ./usr/lib/64/libossaudio.so.1			base-compat-shlib	compat,pic
 ./usr/lib/64/libossaudio.so.1.0			base-compat-shlib	compat,pic
-./usr/lib/64/libpam.so.3			base-compat-shlib	compat,pic,pam
-./usr/lib/64/libpam.so.3.0			base-compat-shlib	compat,pic,pam
-./usr/lib/64/librefuse.so.2			base-compat-shlib	compat,pic
-./usr/lib/64/librefuse.so.2.0			base-compat-shlib	compat,pic
 ./usr/lib/64/libp2k.so.2			base-compat-shlib	compat,pic
 ./usr/lib/64/libp2k.so.2.0			base-compat-shlib	compat,pic
+./usr/lib/64/libpam.so.3			base-compat-shlib	compat,pic,pam
+./usr/lib/64/libpam.so.3.0			base-compat-shlib	compat,pic,pam
 ./usr/lib/64/libpcap.so.4			base-compat-shlib	compat,pic
 ./usr/lib/64/libpcap.so.4.0			base-compat-shlib	compat,pic
 ./usr/lib/64/libpci.so.2			base-compat-shlib	compat,pic
@@ -195,6 +199,8 @@
 ./usr/lib/64/libquota.so.0.0			base-compat-shlib	compat,pic
 ./usr/lib/64/libradius.so.4			base-compat-shlib	compat,pic
 ./usr/lib/64/libradius.so.4.0			base-compat-shlib	compat,pic
+./usr/lib/64/librefuse.so.2			base-compat-shlib	compat,pic
+./usr/lib/64/librefuse.so.2.0			base-compat-shlib	compat,pic
 ./usr/lib/64/libresolv.so.2			base-compat-shlib	compat,pic
 ./usr/lib/64/libresolv.so.2.0			base-compat-shlib	compat,pic
 ./usr/lib/64/libroken.so.19			base-compat-shlib	compat,pic,kerberos
@@ -207,16 +213,16 @@
 ./usr/lib/64/librump.so.0.0			base-compat-shlib	compat,pic
 ./usr/lib/64/librumpclient.so.0			base-compat-shlib	compat,pic
 ./usr/lib/64/librumpclient.so.0.0			base-compat-shlib	compat,pic
-./usr/lib/64/librumpnet.so.0			base-compat-shlib	compat,pic
-./usr/lib/64/librumpnet.so.0.0			base-compat-shlib	compat,pic
-./usr/lib/64/librumpuser.so.0			base-compat-shlib	compat,pic
-./usr/lib/64/librumpuser.so.0.0			base-compat-shlib	compat,pic
-./usr/lib/64/librumphijack.so.0			base-compat-shlib	compat,pic
-./usr/lib/64/librumphijack.so.0.0			base-compat-shlib	compat,pic
 ./usr/lib/64/librumpcrypto.so.0			base-obsolete		obsolete
 ./usr/lib/64/librumpcrypto.so.0.0		base-obsolete		obsolete
 ./usr/lib/64/librumpdev.so.0			base-compat-shlib	compat,pic
 ./usr/lib/64/librumpdev.so.0.0			base-compat-shlib	compat,pic
+./usr/lib/64/librumphijack.so.0			base-compat-shlib	compat,pic
+./usr/lib/64/librumphijack.so.0.0			base-compat-shlib	compat,pic

CVS commit: src/share/mk

2011-07-03 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sun Jul  3 22:59:46 UTC 2011

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

Log Message:
Fix the value of appdefaultdir that ends up in native X .pc files.
(It should be app-defaults but was app-default, probably because
of a typo; it's been wrong ever since this logic was put in two and a
half years ago, and as app-defaults files are a legacy mechanism it
took this long for anyone to notice.) Should be pulled up to -5.


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/share/mk/bsd.x11.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.x11.mk
diff -u src/share/mk/bsd.x11.mk:1.97 src/share/mk/bsd.x11.mk:1.98
--- src/share/mk/bsd.x11.mk:1.97	Mon Apr 11 23:03:38 2011
+++ src/share/mk/bsd.x11.mk	Sun Jul  3 22:59:46 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.x11.mk,v 1.97 2011/04/11 23:03:38 joerg Exp $
+#	$NetBSD: bsd.x11.mk,v 1.98 2011/07/03 22:59:46 dholland Exp $
 
 .include bsd.init.mk
 
@@ -273,7 +273,7 @@
 		s,@includedir@,\\$$\{prefix\}/include,; \
 		s,@datarootdir@,\\$$\{prefix\}/share,; \
 		s,@datadir@,\\$$\{datarootdir\},; \
-		s,@appdefaultdir@,\\$$\{libdir}/X11/app-default,; \
+		s,@appdefaultdir@,\\$$\{libdir}/X11/app-defaults,; \
 		s,@MAPDIR@,\\$$\{libdir\}/X11/fonts/util,; \
 		s,@ICONDIR@,\\$$\{datarootdir\}/icons,; \
 		s,@PACKAGE_VERSION@,$${_pkg_version},; \



CVS commit: src/distrib

2011-07-03 Thread Matthias Scheler
Module Name:src
Committed By:   tron
Date:   Sun Jul  3 23:11:34 UTC 2011

Modified Files:
src/distrib/acorn26/instkernel: list
src/distrib/acorn32/ramdisk: list
src/distrib/alpha/instkernel/ramdisk: list
src/distrib/amd64/ramdisks/common: list.ramdisk
src/distrib/amiga/floppies/inst-common: instbin.conf
src/distrib/arc/ramdisk: list
src/distrib/cats/ramdisk: list
src/distrib/cobalt/ramdisk: list
src/distrib/evbarm/instkernel/ramdisk: list
src/distrib/evbmips/instkernel/ramdisk: list
src/distrib/evbsh3/instkernel/ramdisk: list
src/distrib/evbsh3/rom/ramdiskcommon: ramdiskbin.conf
src/distrib/hp300/miniroot: list
src/distrib/i386/ramdisks/common: list.ramdisk
src/distrib/mac68k/instkernel/ramdisk: list
src/distrib/mac68k/miniroot: list
src/distrib/mvme68k/miniroot: list
src/distrib/ofppc/ramdisks/ramdisk: list
src/distrib/shark/instkernel/ramdisk: list
src/distrib/sparc/miniroot: list
src/distrib/sparc64/instfs: list
src/distrib/sun2/miniroot: list
src/distrib/sun3/miniroot: list
src/distrib/vax/miniroot: list
src/distrib/vax/ramdisk: list
src/distrib/zaurus/ramdisk: list

Log Message:
Update location of less source directory to the build of various
install medias.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/distrib/acorn26/instkernel/list
cvs rdiff -u -r1.27 -r1.28 src/distrib/acorn32/ramdisk/list
cvs rdiff -u -r1.43 -r1.44 src/distrib/alpha/instkernel/ramdisk/list
cvs rdiff -u -r1.15 -r1.16 src/distrib/amd64/ramdisks/common/list.ramdisk
cvs rdiff -u -r1.11 -r1.12 \
src/distrib/amiga/floppies/inst-common/instbin.conf
cvs rdiff -u -r1.20 -r1.21 src/distrib/arc/ramdisk/list
cvs rdiff -u -r1.23 -r1.24 src/distrib/cats/ramdisk/list
cvs rdiff -u -r1.10 -r1.11 src/distrib/cobalt/ramdisk/list
cvs rdiff -u -r1.20 -r1.21 src/distrib/evbarm/instkernel/ramdisk/list
cvs rdiff -u -r1.15 -r1.16 src/distrib/evbmips/instkernel/ramdisk/list
cvs rdiff -u -r1.5 -r1.6 src/distrib/evbsh3/instkernel/ramdisk/list
cvs rdiff -u -r1.7 -r1.8 src/distrib/evbsh3/rom/ramdiskcommon/ramdiskbin.conf
cvs rdiff -u -r1.19 -r1.20 src/distrib/hp300/miniroot/list
cvs rdiff -u -r1.20 -r1.21 src/distrib/i386/ramdisks/common/list.ramdisk
cvs rdiff -u -r1.31 -r1.32 src/distrib/mac68k/instkernel/ramdisk/list
cvs rdiff -u -r1.12 -r1.13 src/distrib/mac68k/miniroot/list
cvs rdiff -u -r1.21 -r1.22 src/distrib/mvme68k/miniroot/list
cvs rdiff -u -r1.7 -r1.8 src/distrib/ofppc/ramdisks/ramdisk/list
cvs rdiff -u -r1.23 -r1.24 src/distrib/shark/instkernel/ramdisk/list
cvs rdiff -u -r1.35 -r1.36 src/distrib/sparc/miniroot/list
cvs rdiff -u -r1.23 -r1.24 src/distrib/sparc64/instfs/list
cvs rdiff -u -r1.18 -r1.19 src/distrib/sun2/miniroot/list
cvs rdiff -u -r1.27 -r1.28 src/distrib/sun3/miniroot/list
cvs rdiff -u -r1.13 -r1.14 src/distrib/vax/miniroot/list
cvs rdiff -u -r1.27 -r1.28 src/distrib/vax/ramdisk/list
cvs rdiff -u -r1.18 -r1.19 src/distrib/zaurus/ramdisk/list

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

Modified files:

Index: src/distrib/acorn26/instkernel/list
diff -u src/distrib/acorn26/instkernel/list:1.20 src/distrib/acorn26/instkernel/list:1.21
--- src/distrib/acorn26/instkernel/list:1.20	Sun Jun 19 02:27:41 2011
+++ src/distrib/acorn26/instkernel/list	Sun Jul  3 23:11:31 2011
@@ -1,6 +1,6 @@
-#	$NetBSD: list,v 1.20 2011/06/19 02:27:41 tsutsui Exp $
+#	$NetBSD: list,v 1.21 2011/07/03 23:11:31 tron Exp $
 
-SRCDIRS	bin sbin usr.bin/less usr.bin usr.sbin
+SRCDIRS	bin sbin external/bsd/less/bin usr.bin usr.sbin
 
 PROG	bin/cat
 PROG	bin/chmod

Index: src/distrib/acorn32/ramdisk/list
diff -u src/distrib/acorn32/ramdisk/list:1.27 src/distrib/acorn32/ramdisk/list:1.28
--- src/distrib/acorn32/ramdisk/list:1.27	Sun Jun 19 02:27:41 2011
+++ src/distrib/acorn32/ramdisk/list	Sun Jul  3 23:11:31 2011
@@ -1,6 +1,6 @@
-#	$NetBSD: list,v 1.27 2011/06/19 02:27:41 tsutsui Exp $
+#	$NetBSD: list,v 1.28 2011/07/03 23:11:31 tron Exp $
 
-SRCDIRS	bin sbin usr.bin/less usr.bin usr.sbin
+SRCDIRS	bin sbin external/bsd/less/bin usr.bin usr.sbin
 
 PROG	bin/cat
 PROG	bin/chmod

Index: src/distrib/alpha/instkernel/ramdisk/list
diff -u src/distrib/alpha/instkernel/ramdisk/list:1.43 src/distrib/alpha/instkernel/ramdisk/list:1.44
--- src/distrib/alpha/instkernel/ramdisk/list:1.43	Tue Jun 21 11:52:45 2011
+++ src/distrib/alpha/instkernel/ramdisk/list	Sun Jul  3 23:11:31 2011
@@ -1,6 +1,6 @@
-#	$NetBSD: list,v 1.43 2011/06/21 11:52:45 tsutsui Exp $
+#	$NetBSD: list,v 1.44 2011/07/03 23:11:31 tron Exp $
 
-SRCDIRS	bin sbin usr.bin/less usr.bin usr.sbin
+SRCDIRS	bin sbin external/bsd/less/bin usr.bin usr.sbin
 
 PROG	bin/cat		usr/bin/strings
 PROG	bin/chmod

Index: src/distrib/amd64/ramdisks/common/list.ramdisk
diff -u 

CVS commit: src/external/bsd/less

2011-07-03 Thread Matthias Scheler
Module Name:src
Committed By:   tron
Date:   Sun Jul  3 23:22:37 UTC 2011

Modified Files:
src/external/bsd/less: less2netbsd

Log Message:
Add missing interpreter and RCS Id.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/less/less2netbsd

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

Modified files:

Index: src/external/bsd/less/less2netbsd
diff -u src/external/bsd/less/less2netbsd:1.3 src/external/bsd/less/less2netbsd:1.4
--- src/external/bsd/less/less2netbsd:1.3	Sun Jul  3 19:42:09 2011
+++ src/external/bsd/less/less2netbsd	Sun Jul  3 23:22:37 2011
@@ -1,3 +1,6 @@
+#!/bin/sh
+#
+#	$NetBSD: less2netbsd,v 1.4 2011/07/03 23:22:37 tron Exp $
 #
 # Copyright (c) 2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -86,7 +89,7 @@
 	then
 		NEW_FILENAME=${FILENAME}.new
 		rm -f ${NEW_FILENAME}
-		(echo '/*	$NetBSD: less2netbsd,v 1.3 2011/07/03 19:42:09 tron Exp $	*/'
+		(echo '/*	$NetBSD: less2netbsd,v 1.4 2011/07/03 23:22:37 tron Exp $	*/'
 		 echo ''
 		 cat $FILENAME) ${NEW_FILENAME}
 		mv -f ${NEW_FILENAME} $FILENAME



CVS commit: src/external/bsd/less

2011-07-03 Thread Matthias Scheler
Module Name:src
Committed By:   tron
Date:   Sun Jul  3 23:25:02 UTC 2011

Modified Files:
src/external/bsd/less: less2netbsd

Log Message:
Unexpand $NetBSD$ in code for adding RCS Ids.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/bsd/less/less2netbsd

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

Modified files:

Index: src/external/bsd/less/less2netbsd
diff -u src/external/bsd/less/less2netbsd:1.4 src/external/bsd/less/less2netbsd:1.5
--- src/external/bsd/less/less2netbsd:1.4	Sun Jul  3 23:22:37 2011
+++ src/external/bsd/less/less2netbsd	Sun Jul  3 23:25:01 2011
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#	$NetBSD: less2netbsd,v 1.4 2011/07/03 23:22:37 tron Exp $
+#	$NetBSD: less2netbsd,v 1.5 2011/07/03 23:25:01 tron Exp $
 #
 # Copyright (c) 2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -89,8 +89,8 @@
 	then
 		NEW_FILENAME=${FILENAME}.new
 		rm -f ${NEW_FILENAME}
-		(echo '/*	$NetBSD: less2netbsd,v 1.4 2011/07/03 23:22:37 tron Exp $	*/'
-		 echo ''
+		(echo /*	\$NetBSD\$	*/
+		 echo 
 		 cat $FILENAME) ${NEW_FILENAME}
 		mv -f ${NEW_FILENAME} $FILENAME
 	fi



CVS commit: src/lib/libc/softfloat

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Jul  4 02:53:15 UTC 2011

Modified Files:
src/lib/libc/softfloat: Makefile.inc

Log Message:
sh3 also needs -Wno-enum-compare here.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libc/softfloat/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/lib/libc/softfloat/Makefile.inc
diff -u src/lib/libc/softfloat/Makefile.inc:1.9 src/lib/libc/softfloat/Makefile.inc:1.10
--- src/lib/libc/softfloat/Makefile.inc:1.9	Sun Jul  3 15:26:58 2011
+++ src/lib/libc/softfloat/Makefile.inc	Mon Jul  4 02:53:15 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.9 2011/07/03 15:26:58 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.10 2011/07/04 02:53:15 mrg Exp $
 
 SOFTFLOAT_BITS?=64
 .PATH:		${ARCHDIR}/softfloat \
@@ -22,6 +22,7 @@
 # XXX
 .if defined(HAVE_GCC)  ${HAVE_GCC} = 45  \
 (${MACHINE_CPU} == arm || \
- ${MACHINE_CPU} == mips)
+ ${MACHINE_CPU} == mips || \
+ ${MACHINE_CPU} == sh3)
 COPTS.softfloat.c+=	-Wno-enum-compare
 .endif



CVS commit: src/tests/syscall

2011-07-03 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jul  4 03:23:31 UTC 2011

Modified Files:
src/tests/syscall: t_revoke.c

Log Message:
Require an unprivileged run.


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

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

Modified files:

Index: src/tests/syscall/t_revoke.c
diff -u src/tests/syscall/t_revoke.c:1.1 src/tests/syscall/t_revoke.c:1.2
--- src/tests/syscall/t_revoke.c:1.1	Sun Jul  3 21:06:56 2011
+++ src/tests/syscall/t_revoke.c	Mon Jul  4 03:23:31 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_revoke.c,v 1.1 2011/07/03 21:06:56 jruoho Exp $ */
+/* $NetBSD: t_revoke.c,v 1.2 2011/07/04 03:23:31 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: t_revoke.c,v 1.1 2011/07/03 21:06:56 jruoho Exp $);
+__RCSID($NetBSD: t_revoke.c,v 1.2 2011/07/04 03:23:31 jruoho Exp $);
 
 #include sys/resource.h
 #include sys/wait.h
@@ -98,6 +98,7 @@
 ATF_TC_HEAD(revoke_err, tc)
 {
 	atf_tc_set_md_var(tc, descr, Test errors from revoke(2));
+	atf_tc_set_md_var(tc, require.user, unprivileged);
 }
 
 ATF_TC_BODY(revoke_err, tc)



CVS commit: src/tests/syscall

2011-07-03 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jul  4 03:52:11 UTC 2011

Modified Files:
src/tests/syscall: t_mknod.c

Log Message:
Put the previous check back and point to PR kern/45113. Also check whether
_PATH_DEVNULL exists before attempting to obtain EEXIST from mknod(2).


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

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

Modified files:

Index: src/tests/syscall/t_mknod.c
diff -u src/tests/syscall/t_mknod.c:1.4 src/tests/syscall/t_mknod.c:1.5
--- src/tests/syscall/t_mknod.c:1.4	Sun Jul  3 20:22:51 2011
+++ src/tests/syscall/t_mknod.c	Mon Jul  4 03:52:11 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mknod.c,v 1.4 2011/07/03 20:22:51 jruoho Exp $ */
+/* $NetBSD: t_mknod.c,v 1.5 2011/07/04 03:52:11 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,13 +29,15 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: t_mknod.c,v 1.4 2011/07/03 20:22:51 jruoho Exp $);
+__RCSID($NetBSD: t_mknod.c,v 1.5 2011/07/04 03:52:11 jruoho Exp $);
 
 #include sys/stat.h
 
 #include atf-c.h
 #include errno.h
+#include fcntl.h
 #include limits.h
+#include paths.h
 #include stdio.h
 #include string.h
 #include unistd.h
@@ -52,9 +54,17 @@
 ATF_TC_BODY(mknod_err, tc)
 {
 	char buf[PATH_MAX + 1];
+	int fd;
 
 	(void)memset(buf, 'x', sizeof(buf));
 
+	errno = 0;
+
+	if (mknod(path, -1, 0) != -1 || errno != EINVAL) {
+		atf_tc_expect_fail(PR kern/45113);
+		atf_tc_fail(mknod(2) did not fail properly);
+	}
+
 	/*
 	 * See the old PR kern/45111.
 	 */
@@ -68,10 +78,18 @@
 	ATF_REQUIRE_ERRNO(EFAULT, mknod((char *)-1, S_IFCHR, 0) == -1);
 
 	errno = 0;
-	ATF_REQUIRE_ERRNO(EEXIST, mknod(/dev/null, S_IFCHR, 0) == -1);
-
-	errno = 0;
 	ATF_REQUIRE_ERRNO(ENOENT, mknod(/a/b/c/d/e/f/g, S_IFCHR, 0) == -1);
+
+	fd = open(_PATH_DEVNULL, O_RDONLY);
+
+	if (fd = 0) {
+
+		errno = 0;
+		ATF_REQUIRE_ERRNO(EEXIST,
+		mknod(_PATH_DEVNULL, S_IFCHR, 0) == -1);
+
+		(void)close(fd);
+	}
 }
 
 ATF_TC_CLEANUP(mknod_err, tc)



CVS commit: src/tests/syscall

2011-07-03 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jul  4 04:10:34 UTC 2011

Modified Files:
src/tests/syscall: t_mknod.c

Log Message:
For granularity, split the EEXIST-check to a separate test case.
It appears that yet another bug was caught.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/syscall/t_mknod.c

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

Modified files:

Index: src/tests/syscall/t_mknod.c
diff -u src/tests/syscall/t_mknod.c:1.5 src/tests/syscall/t_mknod.c:1.6
--- src/tests/syscall/t_mknod.c:1.5	Mon Jul  4 03:52:11 2011
+++ src/tests/syscall/t_mknod.c	Mon Jul  4 04:10:34 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mknod.c,v 1.5 2011/07/04 03:52:11 jruoho Exp $ */
+/* $NetBSD: t_mknod.c,v 1.6 2011/07/04 04:10:34 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: t_mknod.c,v 1.5 2011/07/04 03:52:11 jruoho Exp $);
+__RCSID($NetBSD: t_mknod.c,v 1.6 2011/07/04 04:10:34 jruoho Exp $);
 
 #include sys/stat.h
 
@@ -54,7 +54,6 @@
 ATF_TC_BODY(mknod_err, tc)
 {
 	char buf[PATH_MAX + 1];
-	int fd;
 
 	(void)memset(buf, 'x', sizeof(buf));
 
@@ -79,22 +78,34 @@
 
 	errno = 0;
 	ATF_REQUIRE_ERRNO(ENOENT, mknod(/a/b/c/d/e/f/g, S_IFCHR, 0) == -1);
+}
 
-	fd = open(_PATH_DEVNULL, O_RDONLY);
+ATF_TC_CLEANUP(mknod_err, tc)
+{
+	(void)unlink(path);
+}
 
-	if (fd = 0) {
+ATF_TC(mknod_exist);
+ATF_TC_HEAD(mknod_exist, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test EEXIST from mknod(2));
+	atf_tc_set_md_var(tc, require.user, root);
+}
 
-		errno = 0;
-		ATF_REQUIRE_ERRNO(EEXIST,
-		mknod(_PATH_DEVNULL, S_IFCHR, 0) == -1);
+ATF_TC_BODY(mknod_exist, tc)
+{
+	int fd;
 
+	fd = open(_PATH_DEVNULL, O_RDONLY);
+
+	if (fd  0)
+		return;
+	else {
 		(void)close(fd);
 	}
-}
 
-ATF_TC_CLEANUP(mknod_err, tc)
-{
-	(void)unlink(path);
+	errno = 0;
+	ATF_REQUIRE_ERRNO(EEXIST, mknod(_PATH_DEVNULL, S_IFCHR, 0) == -1);
 }
 
 ATF_TC_WITH_CLEANUP(mknod_perm);
@@ -170,6 +181,7 @@
 {
 
 	ATF_TP_ADD_TC(tp, mknod_err);
+	ATF_TP_ADD_TC(tp, mknod_exist);
 	ATF_TP_ADD_TC(tp, mknod_perm);
 	ATF_TP_ADD_TC(tp, mknod_stat);
 



CVS commit: src

2011-07-03 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Mon Jul  4 05:10:24 UTC 2011

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/syscall: Makefile
Added Files:
src/tests/syscall: t_issetugid.c

Log Message:
Basic tests for issetugid(2).


To generate a diff of this commit:
cvs rdiff -u -r1.360 -r1.361 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.37 -r1.38 src/tests/syscall/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/syscall/t_issetugid.c

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

Modified files:

Index: src/distrib/sets/lists/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.360 src/distrib/sets/lists/tests/mi:1.361
--- src/distrib/sets/lists/tests/mi:1.360	Sun Jul  3 21:06:56 2011
+++ src/distrib/sets/lists/tests/mi	Mon Jul  4 05:10:23 2011
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.360 2011/07/03 21:06:56 jruoho Exp $
+# $NetBSD: mi,v 1.361 2011/07/04 05:10:23 jruoho Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -630,6 +630,7 @@
 ./usr/libdata/debug/usr/tests/syscall/t_getrusage.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_getsid.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_gettimeofday.debug		tests-syscall-debug	debug,atf
+./usr/libdata/debug/usr/tests/syscall/t_issetugid.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_itimer.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_kill.debug			tests-syscall-debug	debug,atf
 ./usr/libdata/debug/usr/tests/syscall/t_link.debug			tests-syscall-debug	debug,atf
@@ -2380,6 +2381,7 @@
 ./usr/tests/syscall/t_getrusage			tests-syscall-tests	atf
 ./usr/tests/syscall/t_getsid			tests-syscall-tests	atf
 ./usr/tests/syscall/t_gettimeofday		tests-syscall-tests	atf
+./usr/tests/syscall/t_issetugid			tests-syscall-tests	atf
 ./usr/tests/syscall/t_itimer			tests-syscall-tests	atf
 ./usr/tests/syscall/t_kill			tests-syscall-tests	atf
 ./usr/tests/syscall/t_link			tests-syscall-tests	atf

Index: src/tests/syscall/Makefile
diff -u src/tests/syscall/Makefile:1.37 src/tests/syscall/Makefile:1.38
--- src/tests/syscall/Makefile:1.37	Sun Jul  3 21:06:56 2011
+++ src/tests/syscall/Makefile	Mon Jul  4 05:10:24 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.37 2011/07/03 21:06:56 jruoho Exp $
+# $NetBSD: Makefile,v 1.38 2011/07/04 05:10:24 jruoho Exp $
 
 .include bsd.own.mk
 
@@ -7,7 +7,7 @@
 TESTS_C+=	t_access t_cmsg t_dup t_fsync
 TESTS_C+=	t_getgroups t_getlogin t_getpid
 TESTS_C+=	t_getrusage t_getsid t_gettimeofday
-TESTS_C+=	t_itimer t_kill t_link
+TESTS_C+=	t_issetugid t_itimer t_kill t_link
 TESTS_C+=	t_mincore t_mknod t_mmap t_mprotect t_msync t_nanosleep
 TESTS_C+=	t_poll t_pollts t_pselect t_revoke
 TESTS_C+=	t_setrlimit t_setuid t_stat t_timer t_truncate

Added files:

Index: src/tests/syscall/t_issetugid.c
diff -u /dev/null src/tests/syscall/t_issetugid.c:1.1
--- /dev/null	Mon Jul  4 05:10:24 2011
+++ src/tests/syscall/t_issetugid.c	Mon Jul  4 05:10:24 2011
@@ -0,0 +1,148 @@
+/* $NetBSD: t_issetugid.c,v 1.1 2011/07/04 05:10:24 jruoho Exp $ */
+
+/*-
+ * Copyright (c) 2011 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Jukka Ruohonen.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+#include sys/cdefs.h
+__RCSID($NetBSD: t_issetugid.c,v 1.1 2011/07/04 05:10:24 jruoho Exp $);
+
+#include sys/wait.h
+
+#include atf-c.h
+#include errno.h
+#include pwd.h
+#include stdlib.h
+#include unistd.h
+
+static bool check(int (*fuid)(uid_t), int (*fgid)(gid_t));
+