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

2016-01-24 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jan 24 09:43:39 UTC 2016

Modified Files:
src/external/gpl3/gcc/dist: LAST_UPDATED MD5SUMS NEWS config.guess
config.sub configure configure.ac
src/external/gpl3/gcc/dist/INSTALL: build.html configure.html
prerequisites.html specific.html
src/external/gpl3/gcc/dist/gcc: ChangeLog Makefile.in builtins.c
cfgexpand.c common.opt config.gcc config.host configure
configure.ac cppdefault.c debug.h dse.c dwarf2out.c expr.c final.c
gcc.c gcc.h genemit.c gengtype-lex.c genmultilib genrecog.c
ggc-common.c hwint.h opts-global.c opts.c output.h reload.c
reload1.c rtlanal.c system.h target-def.h targhooks.c tree-cfg.c
tree-ssa-ccp.c
src/external/gpl3/gcc/dist/gcc/c: Make-lang.in
src/external/gpl3/gcc/dist/gcc/c-family: c-format.c c-format.h c-opts.c
c.opt
src/external/gpl3/gcc/dist/gcc/common/config/arm: arm-common.c
src/external/gpl3/gcc/dist/gcc/config: freebsd-spec.h netbsd-elf.h
netbsd.h
src/external/gpl3/gcc/dist/gcc/config/alpha: alpha.h elf.h netbsd.h
src/external/gpl3/gcc/dist/gcc/config/arm: arm-cores.def arm.h arm.md
bpabi.h elf.h netbsd-elf.h t-arm thumb2.md
src/external/gpl3/gcc/dist/gcc/config/i386: cpuid.h driver-i386.c
i386.c i386.h netbsd-elf.h netbsd64.h pmm_malloc.h
src/external/gpl3/gcc/dist/gcc/config/m68k: constraints.md m68k.md
netbsd-elf.h
src/external/gpl3/gcc/dist/gcc/config/mips: mips.c netbsd.h t-mips
src/external/gpl3/gcc/dist/gcc/config/pa: pa.c pa.h
src/external/gpl3/gcc/dist/gcc/config/rs6000: netbsd.h ppc-asm.h
rs6000.c sysv4.h t-netbsd t-rs6000
src/external/gpl3/gcc/dist/gcc/config/sh: sh.c t-sh
src/external/gpl3/gcc/dist/gcc/config/sparc: constraints.md
netbsd-elf.h predicates.md sparc.md sync.md
src/external/gpl3/gcc/dist/gcc/config/vax: builtins.md constraints.md
elf.h netbsd-elf.h vax-protos.h vax.c vax.h vax.md
src/external/gpl3/gcc/dist/gcc/cp: Make-lang.in
src/external/gpl3/gcc/dist/gcc/doc: aot-compile.1 cpp.1 cpp.info
cpp.texi cppenv.texi cppinternals.info cppopts.texi fsf-funding.7
g++.1 gc-analyze.1 gcc.1 gcc.info gccinstall.info gccint.info
gcj-dbtool.1 gcj.1 gcj.info gcov.1 gcov.texi gfdl.7 gfortran.1
gij.1 gpl.7 grmic.1 invoke.texi jcf-dump.1 jv-convert.1
rebuild-gcj-db.1
src/external/gpl3/gcc/dist/gcc/ginclude: stddef.h unwind-arm-common.h
src/external/gpl3/gcc/dist/gcc/objc: Make-lang.in
src/external/gpl3/gcc/dist/gcc/objcp: Make-lang.in
src/external/gpl3/gcc/dist/gnattools: configure
src/external/gpl3/gcc/dist/libbacktrace: configure
src/external/gpl3/gcc/dist/libcpp: Makefile.in configure configure.ac
files.c init.c internal.h lex.c macro.c
src/external/gpl3/gcc/dist/libcpp/include: cpplib.h
src/external/gpl3/gcc/dist/libdecnumber: configure
src/external/gpl3/gcc/dist/libgcc: Makefile.in config.host configure
unwind-compat.c unwind-dw2-fde-dip.c unwind-dw2-fde.c unwind-dw2.c
unwind-generic.h unwind-seh.c unwind-sjlj.c
src/external/gpl3/gcc/dist/libgcc/config/alpha: qrnnd.S
src/external/gpl3/gcc/dist/libgcc/config/arm: pr-support.c
src/external/gpl3/gcc/dist/libgcc/config/c6x: pr-support.c
src/external/gpl3/gcc/dist/libgcc/config/cr16: unwind-cr16.c
src/external/gpl3/gcc/dist/libgcc/config/i386: morestack.S
src/external/gpl3/gcc/dist/libgcc/config/ia64: unwind-ia64.c
src/external/gpl3/gcc/dist/libgcc/config/xtensa: unwind-dw2-xtensa.c
src/external/gpl3/gcc/dist/libgomp: Makefile.am Makefile.in configure
configure.ac libgomp.info
src/external/gpl3/gcc/dist/libiberty: Makefile.in configure
configure.ac floatformat.c make-temp-file.c strerror.c
src/external/gpl3/gcc/dist/libitm: Makefile.am Makefile.in configure
configure.ac
src/external/gpl3/gcc/dist/libitm/config/alpha: sjlj.S
src/external/gpl3/gcc/dist/libitm/config/arm: sjlj.S
src/external/gpl3/gcc/dist/libitm/config/powerpc: sjlj.S
src/external/gpl3/gcc/dist/libitm/config/s390: sjlj.S
src/external/gpl3/gcc/dist/libitm/config/sh: sjlj.S
src/external/gpl3/gcc/dist/libitm/config/sparc: sjlj.S
src/external/gpl3/gcc/dist/libitm/config/x86: sjlj.S
src/external/gpl3/gcc/dist/libobjc: configure encoding.c hash.c
objects.c sendmsg.c
src/external/gpl3/gcc/dist/libsanitizer: configure configure.tgt
src/external/gpl3/gcc/dist/libsanitizer/asan: asan_internal.h
asan_linux.cc asan_malloc_linux.cc asan_posix.cc asan_rtl.cc

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

2016-01-24 Thread John Nemeth
Module Name:src
Committed By:   jnemeth
Date:   Mon Jan 25 03:14:30 UTC 2016

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

Log Message:
Add t_hypot to fix build break.  Hi gson!


To generate a diff of this commit:
cvs rdiff -u -r1.659 -r1.660 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.659 src/distrib/sets/lists/tests/mi:1.660
--- src/distrib/sets/lists/tests/mi:1.659	Tue Jan  5 17:22:38 2016
+++ src/distrib/sets/lists/tests/mi	Mon Jan 25 03:14:29 2016
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.659 2016/01/05 17:22:38 jakllsch Exp $
+# $NetBSD: mi,v 1.660 2016/01/25 03:14:29 jnemeth Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -2888,6 +2888,7 @@
 ./usr/tests/lib/libm/t_fenv			tests-lib-tests		compattestfile,atf
 ./usr/tests/lib/libm/t_floor			tests-obsolete		obsolete
 ./usr/tests/lib/libm/t_fmod			tests-lib-tests		compattestfile,atf
+./usr/tests/lib/libm/t_hypot			tests-lib-tests		compattestfile,atf
 ./usr/tests/lib/libm/t_infinity			tests-lib-tests		compattestfile,atf
 ./usr/tests/lib/libm/t_ldexp			tests-lib-tests		compattestfile,atf
 ./usr/tests/lib/libm/t_libm			tests-obsolete		obsolete



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

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan 25 04:24:24 UTC 2016

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

Log Message:
add t_hypot


To generate a diff of this commit:
cvs rdiff -u -r1.141 -r1.142 src/distrib/sets/lists/debug/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/debug/mi
diff -u src/distrib/sets/lists/debug/mi:1.141 src/distrib/sets/lists/debug/mi:1.142
--- src/distrib/sets/lists/debug/mi:1.141	Sun Jan 24 12:14:10 2016
+++ src/distrib/sets/lists/debug/mi	Sun Jan 24 23:24:24 2016
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.141 2016/01/24 17:14:10 christos Exp $
+# $NetBSD: mi,v 1.142 2016/01/25 04:24:24 christos Exp $
 ./etc/mtree/set.debug   comp-sys-root
 ./usr/lib	comp-sys-usr		compatdir
 ./usr/lib/i18n/libBIG5_g.a			comp-c-debuglib		debuglib,compatfile
@@ -2086,6 +2086,7 @@
 ./usr/libdata/debug/usr/tests/lib/libm/t_fenv.debug			tests-lib-debug		debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/lib/libm/t_floor.debug			tests-obsolete		obsolete,compattestfile
 ./usr/libdata/debug/usr/tests/lib/libm/t_fmod.debug			tests-lib-debug		debug,atf,compattestfile
+./usr/libdata/debug/usr/tests/lib/libm/t_hypot.debug			tests-lib-debug		debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/lib/libm/t_infinity.debug			tests-lib-debug		debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/lib/libm/t_ldexp.debug			tests-lib-debug		debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/lib/libm/t_libm.debug			tests-obsolete		obsolete,compattestfile



CVS commit: src

2016-01-24 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Mon Jan 25 00:24:23 UTC 2016

Modified Files:
src/sys/rump: README.compileopts
Added Files:
src/lib/librumpuser: README.compileopts

Log Message:
Move librumpuser compile-time options into the librumpuser source
directory.  Those options apply only for the in-tree implementation.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/librumpuser/README.compileopts
cvs rdiff -u -r1.13 -r1.14 src/sys/rump/README.compileopts

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

Modified files:

Index: src/sys/rump/README.compileopts
diff -u src/sys/rump/README.compileopts:1.13 src/sys/rump/README.compileopts:1.14
--- src/sys/rump/README.compileopts:1.13	Wed Jun 17 11:48:06 2015
+++ src/sys/rump/README.compileopts	Mon Jan 25 00:24:23 2016
@@ -1,4 +1,4 @@
-	$NetBSD: README.compileopts,v 1.13 2015/06/17 11:48:06 pooka Exp $
+	$NetBSD: README.compileopts,v 1.14 2016/01/25 00:24:23 pooka Exp $
 
 This file describes compile-time options for rump kernels.  Additionally,
 NetBSD build options will have an effect.  See src/share/mk/bsd.README
@@ -82,22 +82,6 @@ effect:	Builds NetBSD COMPAT_nn code for
 
 
 
-Rumpuser options:
-
-RUMPUSER_THREADS
-
-values: pthread/none/fiber or 
-defval: 
-effect: Define the way threading is implemented in the rumpuser hypercall
-	implmentation.
-	 - use default implementation (currently "pthread")
-	pthread - use pthreads to implement threading
-	none- do not support kernel threads at all
-	fiber   - user a fiber interface, cooperatively scheduled contexts
-
-
-
-
 Per-component options:
 
 RUMP_SYM_NORENAME

Added files:

Index: src/lib/librumpuser/README.compileopts
diff -u /dev/null src/lib/librumpuser/README.compileopts:1.1
--- /dev/null	Mon Jan 25 00:24:23 2016
+++ src/lib/librumpuser/README.compileopts	Mon Jan 25 00:24:23 2016
@@ -0,0 +1,19 @@
+$NetBSD: README.compileopts,v 1.1 2016/01/25 00:24:23 pooka Exp $
+
+This file describes compile-time options (make variables) for
+the rumpuser POSIX implementation.
+
+Note: after changing an option, do a clean build.
+
+Global options:
+
+RUMPUSER_THREADS
+
+values: pthread/none/fiber or 
+defval: 
+effect: Define the way threading is implemented in the rumpuser hypercall
+	implmentation.
+	 - use default implementation (currently "pthread")
+	pthread - use pthreads to implement threading
+	none- do not support kernel threads at all
+	fiber   - user a fiber interface, cooperatively scheduled contexts



CVS commit: src/sys/dev/usb

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 15:03:39 UTC 2016

Modified Files:
src/sys/dev/usb: usbdevs.h usbdevs_data.h

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.701 -r1.702 src/sys/dev/usb/usbdevs.h
cvs rdiff -u -r1.702 -r1.703 src/sys/dev/usb/usbdevs_data.h

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

Modified files:

Index: src/sys/dev/usb/usbdevs.h
diff -u src/sys/dev/usb/usbdevs.h:1.701 src/sys/dev/usb/usbdevs.h:1.702
--- src/sys/dev/usb/usbdevs.h:1.701	Tue Jan 19 14:03:27 2016
+++ src/sys/dev/usb/usbdevs.h	Sun Jan 24 10:03:39 2016
@@ -1,10 +1,10 @@
-/*	$NetBSD: usbdevs.h,v 1.701 2016/01/19 19:03:27 martin Exp $	*/
+/*	$NetBSD: usbdevs.h,v 1.702 2016/01/24 15:03:39 christos Exp $	*/
 
 /*
  * THIS FILE AUTOMATICALLY GENERATED.  DO NOT EDIT.
  *
  * generated from:
- *	NetBSD: usbdevs,v 1.709 2016/01/19 19:02:32 martin Exp
+ *	NetBSD: usbdevs,v 1.710 2016/01/24 15:02:52 christos Exp
  */
 
 /*
@@ -,6 +,8 @@
 #define	USB_PRODUCT_MICROSOFT_XBOX_360_WIRELESS_RECEIVER	0x0291		/* Xbox 360 Wireless Receiver */
 #define	USB_PRODUCT_MICROSOFT_24GHZ_XCVR10	0x071d		/* 2.4GHz Transceiver V1.0 */
 #define	USB_PRODUCT_MICROSOFT_24GHZ_XCVR20	0x071f		/* 2.4GHz Transceiver V2.0 */
+#define	USB_PRODUCT_MICROSOFT_CM6000	0x077d		/* Comfort Mouse 6000 */
+
 
 /* Microtech products */
 #define	USB_PRODUCT_MICROTECH_SCSIDB25	0x0004		/* USB-SCSI-DB25 */

Index: src/sys/dev/usb/usbdevs_data.h
diff -u src/sys/dev/usb/usbdevs_data.h:1.702 src/sys/dev/usb/usbdevs_data.h:1.703
--- src/sys/dev/usb/usbdevs_data.h:1.702	Tue Jan 19 14:03:27 2016
+++ src/sys/dev/usb/usbdevs_data.h	Sun Jan 24 10:03:39 2016
@@ -1,10 +1,10 @@
-/*	$NetBSD: usbdevs_data.h,v 1.702 2016/01/19 19:03:27 martin Exp $	*/
+/*	$NetBSD: usbdevs_data.h,v 1.703 2016/01/24 15:03:39 christos Exp $	*/
 
 /*
  * THIS FILE AUTOMATICALLY GENERATED.  DO NOT EDIT.
  *
  * generated from:
- *	NetBSD: usbdevs,v 1.709 2016/01/19 19:02:32 martin Exp
+ *	NetBSD: usbdevs,v 1.710 2016/01/24 15:02:52 christos Exp
  */
 
 /*
@@ -2940,168 +2940,170 @@ static const uint16_t usb_products[] = {
 	13570, 13577, 13589, 0,
 	USB_VENDOR_MICROSOFT, USB_PRODUCT_MICROSOFT_24GHZ_XCVR20, 
 	13570, 13577, 13594, 0,
+	USB_VENDOR_MICROSOFT, USB_PRODUCT_MICROSOFT_CM6000, 
+	13599, 6201, 13607, 0,
 	USB_VENDOR_MICROTECH, USB_PRODUCT_MICROTECH_SCSIDB25, 
-	13599, 0,
+	13612, 0,
 	USB_VENDOR_MICROTECH, USB_PRODUCT_MICROTECH_SCSIHD50, 
-	13613, 0,
+	13626, 0,
 	USB_VENDOR_MICROTECH, USB_PRODUCT_MICROTECH_DPCM, 
-	4718, 13627, 0,
+	4718, 13640, 0,
 	USB_VENDOR_MICROTECH, USB_PRODUCT_MICROTECH_FREECOM, 
 	2380, 10070, 0,
 	USB_VENDOR_MICROTEK, USB_PRODUCT_MICROTEK_336CX, 
-	13638, 13646, 4890, 13652, 6956, 0,
+	13651, 13659, 4890, 13665, 6956, 0,
 	USB_VENDOR_MICROTEK, USB_PRODUCT_MICROTEK_X6U, 
-	13655, 13665, 4890, 13668, 0,
+	13668, 13678, 4890, 13681, 0,
 	USB_VENDOR_MICROTEK, USB_PRODUCT_MICROTEK_C6, 
-	13638, 13672, 6956, 0,
+	13651, 13685, 6956, 0,
 	USB_VENDOR_MICROTEK, USB_PRODUCT_MICROTEK_336CX2, 
-	13638, 13646, 4890, 13652, 6956, 0,
+	13651, 13659, 4890, 13665, 6956, 0,
 	USB_VENDOR_MICROTEK, USB_PRODUCT_MICROTEK_V6USL, 
-	13655, 13675, 0,
+	13668, 13688, 0,
 	USB_VENDOR_MICROTEK, USB_PRODUCT_MICROTEK_6000, 
-	13655, 13681, 0,
+	13668, 13607, 0,
 	USB_VENDOR_MICROTEK, USB_PRODUCT_MICROTEK_V6USL2, 
-	13655, 13675, 0,
+	13668, 13688, 0,
 	USB_VENDOR_MICROTEK, USB_PRODUCT_MICROTEK_V6UL, 
-	13655, 13686, 0,
+	13668, 13694, 0,
 	USB_VENDOR_MIDIMAN, USB_PRODUCT_MIDIMAN_MIDISPORT2X2, 
-	13691, 13701, 0,
+	13699, 13709, 0,
 	USB_VENDOR_MIDIMAN, USB_PRODUCT_MIDIMAN_MIDISPORT2X4, 
-	13691, 13705, 0,
+	13699, 13713, 0,
 	USB_VENDOR_MINDSATWORK, USB_PRODUCT_MINDSATWORK_DW, 
-	2209, 13709, 0,
+	2209, 13717, 0,
 	USB_VENDOR_MINOLTA, USB_PRODUCT_MINOLTA_2300, 
-	13716, 13723, 0,
+	13724, 13731, 0,
 	USB_VENDOR_MINOLTA, USB_PRODUCT_MINOLTA_S304, 
-	13716, 13728, 0,
+	13724, 13736, 0,
 	USB_VENDOR_MINOLTA, USB_PRODUCT_MINOLTA_X, 
-	13716, 3803, 0,
+	13724, 3803, 0,
 	USB_VENDOR_MINOLTA, USB_PRODUCT_MINOLTA_DIMAGE7I, 
-	13716, 13733, 0,
+	13724, 13741, 0,
 	USB_VENDOR_MINOLTA, USB_PRODUCT_MINOLTA_5400, 
-	13716, 13736, 0,
+	13724, 13744, 0,
 	USB_VENDOR_MINOLTA, USB_PRODUCT_MINOLTA_DIMAGEA1, 
-	13716, 8980, 0,
+	13724, 8980, 0,
 	USB_VENDOR_MINOLTA, USB_PRODUCT_MINOLTA_XT, 
-	13716, 13741, 0,
+	13724, 13749, 0,
 	USB_VENDOR_MISC, USB_PRODUCT_MISC_WISPY_24X, 
-	13744, 13753, 13760, 0,
+	13752, 13761, 13768, 0,
 	USB_VENDOR_MISC, USB_PRODUCT_MISC_TELLSTICK, 
-	13765, 13773, 0,
+	13773, 13781, 0,
 	USB_VENDOR_MISC, USB_PRODUCT_MISC_TELLSTICK_DUO, 
-	13765, 13773, 

CVS commit: src/sys/dev/usb

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 15:02:52 UTC 2016

Modified Files:
src/sys/dev/usb: usbdevs

Log Message:
PR/50701: Martijn van Buul: Add MS Confort Mouse 6000


To generate a diff of this commit:
cvs rdiff -u -r1.709 -r1.710 src/sys/dev/usb/usbdevs

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

Modified files:

Index: src/sys/dev/usb/usbdevs
diff -u src/sys/dev/usb/usbdevs:1.709 src/sys/dev/usb/usbdevs:1.710
--- src/sys/dev/usb/usbdevs:1.709	Tue Jan 19 14:02:32 2016
+++ src/sys/dev/usb/usbdevs	Sun Jan 24 10:02:52 2016
@@ -1,4 +1,4 @@
-$NetBSD: usbdevs,v 1.709 2016/01/19 19:02:32 martin Exp $
+$NetBSD: usbdevs,v 1.710 2016/01/24 15:02:52 christos Exp $
 
 /*
  * Copyright (c) 1998-2004 The NetBSD Foundation, Inc.
@@ -2215,6 +2215,8 @@ product MICROSOFT XBOX_CONTROLLER_S12	0x
 product MICROSOFT XBOX_360_WIRELESS_RECEIVER 0x0291 Xbox 360 Wireless Receiver
 product MICROSOFT 24GHZ_XCVR10		0x071d  2.4GHz Transceiver V1.0
 product MICROSOFT 24GHZ_XCVR20		0x071f  2.4GHz Transceiver V2.0
+product	MICROSOFT CM6000		0x077d  Comfort Mouse 6000
+
 
 /* Microtech products */
 product MICROTECH SCSIDB25	0x0004	USB-SCSI-DB25



CVS commit: src/lib/libc/arch/mips/gen

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 16:01:56 UTC 2016

Modified Files:
src/lib/libc/arch/mips/gen: Makefile.inc

Log Message:
cache stuff needs _KERNTYPES


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/lib/libc/arch/mips/gen/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/arch/mips/gen/Makefile.inc
diff -u src/lib/libc/arch/mips/gen/Makefile.inc:1.33 src/lib/libc/arch/mips/gen/Makefile.inc:1.34
--- src/lib/libc/arch/mips/gen/Makefile.inc:1.33	Tue Mar 15 03:40:18 2011
+++ src/lib/libc/arch/mips/gen/Makefile.inc	Sun Jan 24 11:01:56 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.33 2011/03/15 07:40:18 matt Exp $
+#	$NetBSD: Makefile.inc,v 1.34 2016/01/24 16:01:56 christos Exp $
 
 .if ${MKSOFTFLOAT} == "no"
 SRCS+=	fabs.S ldexp.S modf.S
@@ -33,6 +33,7 @@ SRCS+=	makecontext.c resumecontext.c _re
 SRCS+=	cacheflush.c
 
 CPPFLAGS._lwp.c	+= -D_LIBC_SOURCE
+CPPFLAGS.cacheflush.c	+= -D_KERNTYPES
 
 LSRCS.mips.gen=	Lint__setjmp.c Lint_bswap16.c Lint_bswap32.c Lint_swapcontext.c
 LSRCS+=		${LSRCS.mips.gen}



CVS commit: src/lib/libc/arch/mips/gen

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 16:01:43 UTC 2016

Modified Files:
src/lib/libc/arch/mips/gen: longjmp.c

Log Message:
Use namespace protected types.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/arch/mips/gen/longjmp.c

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

Modified files:

Index: src/lib/libc/arch/mips/gen/longjmp.c
diff -u src/lib/libc/arch/mips/gen/longjmp.c:1.5 src/lib/libc/arch/mips/gen/longjmp.c:1.6
--- src/lib/libc/arch/mips/gen/longjmp.c:1.5	Thu Mar 29 15:27:05 2012
+++ src/lib/libc/arch/mips/gen/longjmp.c	Sun Jan 24 11:01:43 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: longjmp.c,v 1.5 2012/03/29 19:27:05 christos Exp $	*/
+/*	$NetBSD: longjmp.c,v 1.6 2016/01/24 16:01:43 christos Exp $	*/
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -49,7 +49,7 @@ __longjmp14(jmp_buf env, int val)
 	ucontext_t uc;
 
 	/* Ensure non-zero SP and sigcontext magic number is present */
-	if (sc->sc_regs[_R_SP] == 0 || sc->sc_regs[_R_ZERO] != (mips_reg_t)0xACEDBADEU)
+	if (sc->sc_regs[_R_SP] == 0 || sc->sc_regs[_R_ZERO] != (__register_t)0xACEDBADEU)
 		goto err;
 
 	/* Ensure non-zero return value */



CVS commit: src/lib/libkvm

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 16:07:48 UTC 2016

Modified Files:
src/lib/libkvm: Makefile

Log Message:
mips needs _KMEMUSER for label_t in pcb.h


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/lib/libkvm/Makefile

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

Modified files:

Index: src/lib/libkvm/Makefile
diff -u src/lib/libkvm/Makefile:1.50 src/lib/libkvm/Makefile:1.51
--- src/lib/libkvm/Makefile:1.50	Sun Aug 10 19:39:08 2014
+++ src/lib/libkvm/Makefile	Sun Jan 24 11:07:48 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.50 2014/08/10 23:39:08 matt Exp $
+#	$NetBSD: Makefile,v 1.51 2016/01/24 16:07:48 christos Exp $
 #	from: @(#)Makefile	8.1 (Berkeley) 6/4/93
 
 WARNS=	3
@@ -70,5 +70,9 @@ CLEANFILES+=	machine sparc
 CPPFLAGS+=	-I.
 .endif	# }
 
+.if (${MACHINE_ARCH} == "mips")
+CPPFLAGS+=	-D_KMEMUSER
+.endif
+
 
 .include 



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

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 16:08:05 UTC 2016

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

Log Message:
expose label_t for _KMEMUSER


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/mips/include/types.h

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

Modified files:

Index: src/sys/arch/mips/include/types.h
diff -u src/sys/arch/mips/include/types.h:1.62 src/sys/arch/mips/include/types.h:1.63
--- src/sys/arch/mips/include/types.h:1.62	Sun Jan 24 11:00:45 2016
+++ src/sys/arch/mips/include/types.h	Sun Jan 24 11:08:05 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: types.h,v 1.62 2016/01/24 16:00:45 christos Exp $	*/
+/*	$NetBSD: types.h,v 1.63 2016/01/24 16:08:05 christos Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993
@@ -109,9 +109,7 @@ typedef __uint64_t	uregister32_t;
 #define	PRIxREGISTER	PRIx64
 #define	PRIxUREGISTER	PRIx64
 #endif /* __mips_o32 */
-#endif /* _KERNEL || _KMEMUSER*/
 
-#if defined(_KERNEL)
 typedef struct label_t {
 	register_t val[14];
 } label_t;



CVS commit: src/lib/csu/arch/alpha

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 16:27:38 UTC 2016

Modified Files:
src/lib/csu/arch/alpha: Makefile.inc

Log Message:
Alpha needs _KERNTYPES


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/csu/arch/alpha/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/csu/arch/alpha/Makefile.inc
diff -u src/lib/csu/arch/alpha/Makefile.inc:1.1 src/lib/csu/arch/alpha/Makefile.inc:1.2
--- src/lib/csu/arch/alpha/Makefile.inc:1.1	Thu Jul 11 12:40:27 2013
+++ src/lib/csu/arch/alpha/Makefile.inc	Sun Jan 24 11:27:38 2016
@@ -1,3 +1,3 @@
-#	$NetBSD: Makefile.inc,v 1.1 2013/07/11 16:40:27 matt Exp $
+#	$NetBSD: Makefile.inc,v 1.2 2016/01/24 16:27:38 christos Exp $
 
-CPPFLAGS+=	-I${ARCHDIR} -DELFSIZE=64
+CPPFLAGS+=	-I${ARCHDIR} -DELFSIZE=64 -D_KERNTYPES



CVS commit: src/sys/modules/dtrace/lockstat

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 16:44:17 UTC 2016

Modified Files:
src/sys/modules/dtrace/lockstat: Makefile

Log Message:
Remove hf and eb. Rin Okuyama


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/modules/dtrace/lockstat/Makefile

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

Modified files:

Index: src/sys/modules/dtrace/lockstat/Makefile
diff -u src/sys/modules/dtrace/lockstat/Makefile:1.4 src/sys/modules/dtrace/lockstat/Makefile:1.5
--- src/sys/modules/dtrace/lockstat/Makefile:1.4	Sat Jan 23 20:12:06 2016
+++ src/sys/modules/dtrace/lockstat/Makefile	Sun Jan 24 11:44:16 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.4 2016/01/24 01:12:06 christos Exp $
+#	$NetBSD: Makefile,v 1.5 2016/01/24 16:44:16 christos Exp $
 
 .include "../../Makefile.inc"
 
@@ -12,9 +12,9 @@ CPPFLAGS+=	-I${NETBSDSRCDIR}/external/cd
 CPPFLAGS+=	-DKDTRACE_HOOKS
 
 .if !empty(MACHINE_ARCH:Mearm*)
-ARMV:= ${MACHINE_ARCH:S/earmv//}
+ARMV:= ${MACHINE_ARCH:S/earmv//:S/eb//:S/hf//}
 .elif !empty(MACHINE_ARCH:Marm*)
-ARMV:= ${MACHINE_ARCH:S/armv//}
+ARMV:= ${MACHINE_ARCH:S/armv//:S/eb//:S/hf//}
 .else
 ARMV:= 0
 .endif



CVS commit: src/usr.bin

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 17:08:16 UTC 2016

Modified Files:
src/usr.bin: Makefile
Added Files:
src/usr.bin/cvslatest: Makefile cvslatest.1 cvslatest.c

Log Message:
Add a program to find the latest timestamp in a cvs repository


To generate a diff of this commit:
cvs rdiff -u -r1.223 -r1.224 src/usr.bin/Makefile
cvs rdiff -u -r0 -r1.1 src/usr.bin/cvslatest/Makefile \
src/usr.bin/cvslatest/cvslatest.1 src/usr.bin/cvslatest/cvslatest.c

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

Modified files:

Index: src/usr.bin/Makefile
diff -u src/usr.bin/Makefile:1.223 src/usr.bin/Makefile:1.224
--- src/usr.bin/Makefile:1.223	Wed Jan 13 23:27:26 2016
+++ src/usr.bin/Makefile	Sun Jan 24 12:08:16 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.223 2016/01/14 04:27:26 christos Exp $
+#	$NetBSD: Makefile,v 1.224 2016/01/24 17:08:16 christos Exp $
 #	from: @(#)Makefile	8.3 (Berkeley) 1/7/94
 
 .include 
@@ -7,7 +7,7 @@ SUBDIR= apply asa at audio audiocfg \
 	banner basename biff bthset btkey btpin \
 	bzip2 bzip2recover c89 c99 cal calendar cap_mkdb cdplay \
 	checknr chflags chpass cksum cmp cleantags col colcrt colrm \
-	column comm compress config crunch csplit ctags cut \
+	column comm compress config crunch csplit ctags cut cvslatest \
 	deroff db dirname du \
 	eject elf2aout elf2ecoff env error expand extattr \
 	false fdformat fgen fincore find finger flock fmt fold fpr from \

Added files:

Index: src/usr.bin/cvslatest/Makefile
diff -u /dev/null src/usr.bin/cvslatest/Makefile:1.1
--- /dev/null	Sun Jan 24 12:08:16 2016
+++ src/usr.bin/cvslatest/Makefile	Sun Jan 24 12:08:16 2016
@@ -0,0 +1,6 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/24 17:08:16 christos Exp $
+
+WARNS=6
+PROG=	cvslatest
+
+.include 
Index: src/usr.bin/cvslatest/cvslatest.1
diff -u /dev/null src/usr.bin/cvslatest/cvslatest.1:1.1
--- /dev/null	Sun Jan 24 12:08:16 2016
+++ src/usr.bin/cvslatest/cvslatest.1	Sun Jan 24 12:08:16 2016
@@ -0,0 +1,76 @@
+.\" $NetBSD: cvslatest.1,v 1.1 2016/01/24 17:08:16 christos Exp $
+.\" Copyright (C) 2015 Thomas Klausner
+.\"
+.\" 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 AUTHORS ``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 AUTHORS BE LIABLE FOR ANY
+.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.Dd January 7, 2016
+.Dt CVSLATEST 1
+.Os
+.Sh NAME
+.Nm cvslatest
+.Nd find latest timestamp in a set of CVS trees
+.Sh SYNOPSIS
+.Nm
+.Op Fl di
+.Op Fl n Ar name
+.Ar dir Op ...
+.Sh DESCRIPTION
+.Nm
+recursively scans the directories given on the command line
+and looks for
+.Xr cvs 1
+.Pa CVS/Entries
+files.
+.Nm
+then reads these files and parses the timestamps inside.
+Finally,
+.Nm
+prints the UNIX timestamp (seconds since UNIX epoch) of the
+newest file found.
+.Pp
+Supported options:
+.Bl -tag -width XnXnameXX
+.It Fl d
+Turn on debugging output.
+.It Fl i
+Ignore malformed timestamps in
+.Pa CVS/Entries
+files.
+.It Fl n Ar name
+Use
+.Ar name
+instead of
+.Pa CVS
+as the
+.Xr cvs 1
+information directory.
+.El
+.Sh EXIT STATUS
+.Ex -std
+.Sh SEE ALSO
+.Xr cvs 1 ,
+.Xr date 1
+.Sh RETURN VALUES
+.Ex -std
+.Sh AUTHORS
+.An Christos Zoulas Aq Mt chris...@netbsd.org
Index: src/usr.bin/cvslatest/cvslatest.c
diff -u /dev/null src/usr.bin/cvslatest/cvslatest.c:1.1
--- /dev/null	Sun Jan 24 12:08:16 2016
+++ src/usr.bin/cvslatest/cvslatest.c	Sun Jan 24 12:08:16 2016
@@ -0,0 +1,195 @@
+/*	$NetBSD: cvslatest.c,v 1.1 2016/01/24 17:08:16 christos Exp $	*/
+
+/*-
+ * Copyright (c) 2016 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Christos Zoulas.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are 

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

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 16:00:29 UTC 2016

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

Log Message:
use namespace protected types.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/mips/include/signal.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/signal.h
diff -u src/sys/arch/mips/include/signal.h:1.29 src/sys/arch/mips/include/signal.h:1.30
--- src/sys/arch/mips/include/signal.h:1.29	Sun Dec 13 19:46:05 2009
+++ src/sys/arch/mips/include/signal.h	Sun Jan 24 11:00:29 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: signal.h,v 1.29 2009/12/14 00:46:05 matt Exp $	*/
+/*	$NetBSD: signal.h,v 1.30 2016/01/24 16:00:29 christos Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993
@@ -106,7 +106,7 @@ struct sigcontext { \
 _SIGCONTEXT_DEFINE(sigcontext, int, int);
 #endif
 #ifdef _LIBC
-_SIGCONTEXT_DEFINE(sigcontext, register_t, fpregister_t);
+_SIGCONTEXT_DEFINE(sigcontext, __register_t, __fpregister_t);
 #endif
 
 #endif /* _LIBC || _KERNEL */



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

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 16:13:19 UTC 2016

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

Log Message:
use namespace protected types.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/mips/include/reg.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/reg.h
diff -u src/sys/arch/mips/include/reg.h:1.15 src/sys/arch/mips/include/reg.h:1.16
--- src/sys/arch/mips/include/reg.h:1.15	Tue Aug 16 02:58:15 2011
+++ src/sys/arch/mips/include/reg.h	Sun Jan 24 11:13:19 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: reg.h,v 1.15 2011/08/16 06:58:15 matt Exp $	*/
+/*	$NetBSD: reg.h,v 1.16 2016/01/24 16:13:19 christos Exp $	*/
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -43,15 +43,15 @@
 
 
 struct reg {
-	mips_reg_t	r_regs[38];
+	__register_t	r_regs[38];
 };
 
 struct fpreg {
-	mips_fpreg_t	r_regs[33];
+	__fpregister_t	r_regs[33];
 };
 
 struct dspreg {
-	mips_reg_t	r_regs[8];
+	__register_t	r_regs[8];
 };
 
 #if defined(__mips_n32) || defined(__mips_n64)



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

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 16:47:50 UTC 2016

Modified Files:
src/sys/arch/alpha/include: bus_user.h types.h

Log Message:
use __paddr_t since this is a userland API.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/alpha/include/bus_user.h
cvs rdiff -u -r1.53 -r1.54 src/sys/arch/alpha/include/types.h

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

Modified files:

Index: src/sys/arch/alpha/include/bus_user.h
diff -u src/sys/arch/alpha/include/bus_user.h:1.1 src/sys/arch/alpha/include/bus_user.h:1.2
--- src/sys/arch/alpha/include/bus_user.h:1.1	Fri Aug 12 18:23:12 2011
+++ src/sys/arch/alpha/include/bus_user.h	Sun Jan 24 11:47:50 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_user.h,v 1.1 2011/08/12 22:23:12 dyoung Exp $ */
+/* $NetBSD: bus_user.h,v 1.2 2016/01/24 16:47:50 christos Exp $ */
 /*
  * XXX This file is a stopgap intended to keep NetBSD/alpha buildable
  * XXX while developers figure out whether/how to expose to userland
@@ -24,8 +24,8 @@ typedef u_long bus_size_t;
 struct alpha_bus_space_translation {
 	bus_addr_t	abst_bus_start;	/* start of bus window */
 	bus_addr_t	abst_bus_end;	/* end of bus window */
-	paddr_t		abst_sys_start;	/* start of sysBus window */
-	paddr_t		abst_sys_end;	/* end of sysBus window */
+	__paddr_t	abst_sys_start;	/* start of sysBus window */
+	__paddr_t	abst_sys_end;	/* end of sysBus window */
 	int		abst_addr_shift;/* address shift */
 	int		abst_size_shift;/* size shift */
 	int		abst_flags;	/* flags; see below */

Index: src/sys/arch/alpha/include/types.h
diff -u src/sys/arch/alpha/include/types.h:1.53 src/sys/arch/alpha/include/types.h:1.54
--- src/sys/arch/alpha/include/types.h:1.53	Sat Jan 23 17:31:19 2016
+++ src/sys/arch/alpha/include/types.h	Sun Jan 24 11:47:50 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.53 2016/01/23 22:31:19 christos Exp $ */
+/* $NetBSD: types.h,v 1.54 2016/01/24 16:47:50 christos Exp $ */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -44,8 +44,13 @@ typedef struct label_t {
 } label_t;
 #endif
 
+typedef	int		__cpu_simple_lock_nv_t;
+typedef long int	__register_t;
+typedef unsigned long	__paddr_t;	/* XXX: For bus_user.h */
+
+
 #if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
-typedef unsigned long	paddr_t;
+typedef __paddr_t	paddr_t;
 typedef unsigned long	psize_t;
 typedef unsigned long	vaddr_t;
 typedef unsigned long	vsize_t;
@@ -56,13 +61,10 @@ typedef unsigned long	vsize_t;
 #define	PRIxVSIZE	"lx"
 #define	PRIuVSIZE	"lu"
 
-typedef long int	register_t;
+typedef __register_t	register_t;
 #define	PRIxREGISTER	"lx"
 #endif
 
-typedef	int		__cpu_simple_lock_nv_t;
-typedef long int	__register_t;
-
 #define	__SIMPLELOCK_LOCKED	1
 #define	__SIMPLELOCK_UNLOCKED	0
 



CVS commit: src/distrib/sets/lists

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 17:26:59 UTC 2016

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

Log Message:
Fix alpha sets


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

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

Modified files:

Index: src/distrib/sets/lists/xcomp/md.alpha
diff -u src/distrib/sets/lists/xcomp/md.alpha:1.6 src/distrib/sets/lists/xcomp/md.alpha:1.7
--- src/distrib/sets/lists/xcomp/md.alpha:1.6	Wed Jan 16 11:01:08 2013
+++ src/distrib/sets/lists/xcomp/md.alpha	Sun Jan 24 12:26:59 2016
@@ -1 +1,15 @@
-# $NetBSD: md.alpha,v 1.6 2013/01/16 16:01:08 christos Exp $
+# $NetBSD: md.alpha,v 1.7 2016/01/24 17:26:59 christos Exp $
+./usr/libdata/lint/llib-ldbe.ln		-unknown-l	lint,xorg
+./usr/libdata/lint/llib-ldri.ln		-unknown-l	lint,xorg
+./usr/libdata/lint/llib-ldri2.ln	-unknown-l	lint,xorg
+./usr/libdata/lint/llib-lexa.ln		-unknown-l	lint,xorg
+./usr/libdata/lint/llib-lextmod.ln	-unknown-l	lint,xorg
+./usr/libdata/lint/llib-lfb.ln		-unknown-l	lint,xorg
+./usr/libdata/lint/llib-lglx.ln		-unknown-l	lint,xorg
+./usr/libdata/lint/llib-lrecord.ln	-unknown-l	lint,xorg
+./usr/libdata/lint/llib-lshadow.ln	-unknown-l	lint,xorg
+./usr/libdata/lint/llib-lshadowfb.ln	-unknown-l	lint,xorg
+./usr/libdata/lint/llib-lvbe.ln		-unknown-l	lint,xorg
+./usr/libdata/lint/llib-lvgahw.ln	-unknown-l	lint,xorg
+./usr/libdata/lint/llib-lxaa.ln		-unknown-l	lint,xorg
+

Index: src/distrib/sets/lists/xdebug/md.alpha
diff -u src/distrib/sets/lists/xdebug/md.alpha:1.4 src/distrib/sets/lists/xdebug/md.alpha:1.5
--- src/distrib/sets/lists/xdebug/md.alpha:1.4	Mon Jul 27 05:59:49 2015
+++ src/distrib/sets/lists/xdebug/md.alpha	Sun Jan 24 12:26:59 2016
@@ -1,5 +1,17 @@
-# $NetBSD: md.alpha,v 1.4 2015/07/27 09:59:49 martin Exp $
-./usr/X11R7/lib/modules/extensions/libdri2_g.a		-unknown-	debuglib,xorg,obsolete
+# $NetBSD: md.alpha,v 1.5 2016/01/24 17:26:59 christos Exp $
+./usr/X11R7/lib/modules/extensions/libdbe_g.a		-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/extensions/libdri2_g.a		-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/extensions/libdri_g.a		-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/extensions/libextmod_g.a	-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/extensions/libglx_g.a		-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/extensions/librecord_g.a	-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/extensions/libshadow_g.a	-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libexa_g.a			-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libfb_g.a			-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libshadowfb_g.a			-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libvbe_g.a			-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libvgahw_g.a			-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libxaa_g.a			-unknown-	debuglib,xorg
 ./usr/libdata/debug/usr/X11R6/bin/XalphaNetBSD.debug	-unknown-	debug,x11
 ./usr/libdata/debug/usr/X11R6/bin/XdecNetBSD.debug	-unknown-	debug,x11
 ./usr/libdata/debug/usr/X11R6/bin/Xvfb.debug		-unknown-	debug,x11



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

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 15:11:08 UTC 2016

Modified Files:
src/tests/lib/libc/sys: Makefile

Log Message:
t_lwp_create needs kernel types.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/tests/lib/libc/sys/Makefile

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

Modified files:

Index: src/tests/lib/libc/sys/Makefile
diff -u src/tests/lib/libc/sys/Makefile:1.40 src/tests/lib/libc/sys/Makefile:1.41
--- src/tests/lib/libc/sys/Makefile:1.40	Sat Jan 23 16:22:49 2016
+++ src/tests/lib/libc/sys/Makefile	Sun Jan 24 10:11:08 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2016/01/23 21:22:49 christos Exp $
+# $NetBSD: Makefile,v 1.41 2016/01/24 15:11:08 christos Exp $
 
 MKMAN=	no
 
@@ -77,7 +77,8 @@ TESTS_C+=		t_posix_fadvise
 LDADD.t_posix_fadvise+= -lrumpvfs -lrump -lrumpuser -lrump -lpthread
 .endif
 
+CPPFLAGS.t_lwp_create.c += -D_KERNTYPES
+
 WARNS=			4
 
 .include 
-



CVS commit: src/distrib/amd64/installimage

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 15:30:05 UTC 2016

Modified Files:
src/distrib/amd64/installimage: Makefile

Log Message:
Grow!


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/distrib/amd64/installimage/Makefile

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

Modified files:

Index: src/distrib/amd64/installimage/Makefile
diff -u src/distrib/amd64/installimage/Makefile:1.5 src/distrib/amd64/installimage/Makefile:1.6
--- src/distrib/amd64/installimage/Makefile:1.5	Sat Sep 13 06:18:24 2014
+++ src/distrib/amd64/installimage/Makefile	Sun Jan 24 10:30:05 2016
@@ -1,11 +1,11 @@
-#	$NetBSD: Makefile,v 1.5 2014/09/13 10:18:24 roy Exp $
+#	$NetBSD: Makefile,v 1.6 2016/01/24 15:30:05 christos Exp $
 
 .include 
 
 INSTIMGBASE=	NetBSD-${DISTRIBVER}-amd64-install	# gives ${IMGBASE}.img
 
 BOOTDISK=	sd0			# for USB flash etc.
-INSTIMAGEMB?=	550			# for all installation binaries
+INSTIMAGEMB?=	1200			# for all installation binaries
 
 PRIMARY_BOOT=		bootxx_ffsv1
 SECONDARY_BOOT=		boot



CVS commit: src/lib/libc/arch/mips

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 15:55:34 UTC 2016

Modified Files:
src/lib/libc/arch/mips: Makefile.inc

Log Message:
assym.h needs _KERNTYPES


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/arch/mips/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/arch/mips/Makefile.inc
diff -u src/lib/libc/arch/mips/Makefile.inc:1.13 src/lib/libc/arch/mips/Makefile.inc:1.14
--- src/lib/libc/arch/mips/Makefile.inc:1.13	Thu Jan 30 10:05:49 2014
+++ src/lib/libc/arch/mips/Makefile.inc	Sun Jan 24 10:55:34 2016
@@ -1,16 +1,17 @@
-#	$NetBSD: Makefile.inc,v 1.13 2014/01/30 15:05:49 joerg Exp $
+#	$NetBSD: Makefile.inc,v 1.14 2016/01/24 15:55:34 christos Exp $
 
 .include 
 
 SRCS+=	__sigaction14_sigtramp.c __sigtramp2.S
 
 CPPFLAGS+= -I.
-CPPFLAGS.assym.h+=-D__LIBC12_SOURCE__
+CPPFLAGS.assym.h+=-D__LIBC12_SOURCE__ -D_KERNTYPES
 
 .if ${MKSOFTFLOAT} != "no"
 .include 
 CPPFLAGS+= -DSOFTFLOAT
 
+
 SRCS+=	fixunsgen_ieee754.c
 SRCS+=	fixunsgen64_ieee754.c #fixunssfdi.c fixunsdfdi.c
 .if (${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el") \



CVS commit: src/distrib/sets/lists

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 17:14:11 UTC 2016

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

Log Message:
sets for cvslatest.


To generate a diff of this commit:
cvs rdiff -u -r1.2014 -r1.2015 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.140 -r1.141 src/distrib/sets/lists/debug/mi

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

Modified files:

Index: src/distrib/sets/lists/comp/mi
diff -u src/distrib/sets/lists/comp/mi:1.2014 src/distrib/sets/lists/comp/mi:1.2015
--- src/distrib/sets/lists/comp/mi:1.2014	Sat Jan 23 10:01:30 2016
+++ src/distrib/sets/lists/comp/mi	Sun Jan 24 12:14:10 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.2014 2016/01/23 15:01:30 christos Exp $
+#	$NetBSD: mi,v 1.2015 2016/01/24 17:14:10 christos Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 ./etc/mtree/set.compcomp-sys-root
@@ -24,6 +24,7 @@
 ./usr/bin/ctfmergecomp-util-bin		ctf
 ./usr/bin/cvs	comp-cvs-bin		cvs
 ./usr/bin/cvsbugcomp-cvs-bin		cvs
+./usr/bin/cvslatestcomp-cvs-bin		cvs
 ./usr/bin/elfeditcomp-util-bin		binutils
 ./usr/bin/f77	comp-fortran-bin	obsolete
 ./usr/bin/fgen	comp-util-bin
@@ -3887,6 +3888,7 @@
 ./usr/share/man/cat1/crunchgen.0		comp-c-catman		.cat
 ./usr/share/man/cat1/crunchide.0		comp-c-catman		.cat
 ./usr/share/man/cat1/cvs.0			comp-cvs-catman		cvs,.cat
+./usr/share/man/cat1/cvslatest.0		comp-cvs-catman		cvs,.cat
 ./usr/share/man/cat1/elf2aout.0			comp-sysutil-catman	.cat
 ./usr/share/man/cat1/elf2ecoff.0		comp-sysutil-catman	.cat
 ./usr/share/man/cat1/elfedit.0			comp-util-catman	binutils,.cat
@@ -10975,6 +10977,7 @@
 ./usr/share/man/html1/crunchgen.html		comp-c-htmlman		html
 ./usr/share/man/html1/crunchide.html		comp-c-htmlman		html
 ./usr/share/man/html1/cvs.html			comp-cvs-htmlman	cvs,html
+./usr/share/man/html1/cvslatest.html		comp-cvs-htmlman	cvs,html
 ./usr/share/man/html1/elf2aout.html		comp-sysutil-htmlman	html
 ./usr/share/man/html1/elf2ecoff.html		comp-sysutil-htmlman	html
 ./usr/share/man/html1/elfedit.html		comp-util-htmlman	binutils,html
@@ -17800,6 +17803,7 @@
 ./usr/share/man/man1/crunchgen.1		comp-c-man		.man
 ./usr/share/man/man1/crunchide.1		comp-c-man		.man
 ./usr/share/man/man1/cvs.1			comp-cvs-man		cvs,.man
+./usr/share/man/man1/cvslatest.1		comp-cvs-man		cvs,.man
 ./usr/share/man/man1/elf2aout.1			comp-sysutil-man	.man
 ./usr/share/man/man1/elf2ecoff.1		comp-sysutil-man	.man
 ./usr/share/man/man1/elfedit.1			comp-util-man		binutils,.man

Index: src/distrib/sets/lists/debug/mi
diff -u src/distrib/sets/lists/debug/mi:1.140 src/distrib/sets/lists/debug/mi:1.141
--- src/distrib/sets/lists/debug/mi:1.140	Tue Jan  5 12:22:38 2016
+++ src/distrib/sets/lists/debug/mi	Sun Jan 24 12:14:10 2016
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.140 2016/01/05 17:22:38 jakllsch Exp $
+# $NetBSD: mi,v 1.141 2016/01/24 17:14:10 christos Exp $
 ./etc/mtree/set.debug   comp-sys-root
 ./usr/lib	comp-sys-usr		compatdir
 ./usr/lib/i18n/libBIG5_g.a			comp-c-debuglib		debuglib,compatfile
@@ -488,6 +488,7 @@
 ./usr/libdata/debug/usr/bin/ctfmerge.debug	comp-util-debug		ctf,debug
 ./usr/libdata/debug/usr/bin/cut.debug		comp-util-debug		debug
 ./usr/libdata/debug/usr/bin/cvs.debug		comp-cvs-debug		cvs,debug
+./usr/libdata/debug/usr/bin/cvslatest.debug	comp-cvs-debug		cvs,debug
 ./usr/libdata/debug/usr/bin/db.debug		comp-util-debug		debug
 ./usr/libdata/debug/usr/bin/dc.debug		comp-util-debug		debug
 ./usr/libdata/debug/usr/bin/delv.debug		comp-bind-bin		debug



CVS commit: src/lib/csu/arch/alpha

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 16:47:32 UTC 2016

Modified Files:
src/lib/csu/arch/alpha: Makefile.inc

Log Message:
Undo previous; the lossage is more basic.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/csu/arch/alpha/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/csu/arch/alpha/Makefile.inc
diff -u src/lib/csu/arch/alpha/Makefile.inc:1.2 src/lib/csu/arch/alpha/Makefile.inc:1.3
--- src/lib/csu/arch/alpha/Makefile.inc:1.2	Sun Jan 24 11:27:38 2016
+++ src/lib/csu/arch/alpha/Makefile.inc	Sun Jan 24 11:47:32 2016
@@ -1,3 +1,3 @@
-#	$NetBSD: Makefile.inc,v 1.2 2016/01/24 16:27:38 christos Exp $
+#	$NetBSD: Makefile.inc,v 1.3 2016/01/24 16:47:32 christos Exp $
 
-CPPFLAGS+=	-I${ARCHDIR} -DELFSIZE=64 -D_KERNTYPES
+CPPFLAGS+=	-I${ARCHDIR} -DELFSIZE=64



CVS commit: src/external/bsd/wpa/dist/src/utils

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 19:15:57 UTC 2016

Modified Files:
src/external/bsd/wpa/dist/src/utils: eloop.c

Log Message:
use 0 for udata for portability (FreeBSD has a pointer, we have uintptr_t)


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/bsd/wpa/dist/src/utils/eloop.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/wpa/dist/src/utils/eloop.c
diff -u src/external/bsd/wpa/dist/src/utils/eloop.c:1.11 src/external/bsd/wpa/dist/src/utils/eloop.c:1.12
--- src/external/bsd/wpa/dist/src/utils/eloop.c:1.11	Fri Jan 22 15:21:04 2016
+++ src/external/bsd/wpa/dist/src/utils/eloop.c	Sun Jan 24 14:15:56 2016
@@ -237,7 +237,7 @@ static int eloop_sock_queue(int sock, el
 	default:
 		filter = 0;
 	}
-	EV_SET(, sock, filter, EV_ADD, 0, 0, NULL);
+	EV_SET(, sock, filter, EV_ADD, 0, 0, 0);
 	if (kevent(eloop.kqueuefd, , 1, NULL, 0, NULL) == -1) {
 		wpa_printf(MSG_ERROR, "%s: kevent(ADD) for fd=%d "
 			   "failed. %s\n", __func__, sock, strerror(errno));
@@ -407,7 +407,7 @@ static void eloop_sock_table_remove_sock
 	os_memset(_table[sock], 0, sizeof(struct eloop_sock));
 #endif /* CONFIG_ELOOP_EPOLL */
 #ifdef CONFIG_ELOOP_KQUEUE
-	EV_SET(, sock, 0, EV_DELETE, 0, 0, NULL);
+	EV_SET(, sock, 0, EV_DELETE, 0, 0, 0);
 	if (kevent(eloop.kqueuefd, , 1, NULL, 0, NULL) == -1) {
 		wpa_printf(MSG_ERROR, "%s: kevent(DEL) for fd=%d "
 			   "failed. %s\n", __func__, sock, strerror(errno));
@@ -1328,7 +1328,7 @@ void eloop_wait_for_read_sock(int sock)
 	kfd = kqueue();
 	if (kfd == -1)
 		return;
-	EV_SET(, sock, EVFILT_READ, EV_ADD | EV_ONESHOT, 0, 0, NULL);
+	EV_SET(, sock, EVFILT_READ, EV_ADD | EV_ONESHOT, 0, 0, 0);
 	kevent(kfd, , 1, , 1, NULL);
 	close(kfd);
 #endif /* CONFIG_ELOOP_KQUEUE */



CVS commit: xsrc/external/mit/MesaLib/dist/src

2016-01-24 Thread Martin Husemann
Module Name:xsrc
Committed By:   martin
Date:   Sun Jan 24 19:42:35 UTC 2016

Modified Files:
xsrc/external/mit/MesaLib/dist/src/egl/main: eglglobals.c
xsrc/external/mit/MesaLib/dist/src/glsl: glsl_parser_extras.cpp
xsrc/external/mit/MesaLib/dist/src/mesa/main: context.c extensions.c

Log Message:
Replace atexit() calls by destructor attributes - this shared library
is dlopen/dlclose'd !


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.4 -r1.2 \
xsrc/external/mit/MesaLib/dist/src/egl/main/eglglobals.c
cvs rdiff -u -r1.1.1.2 -r1.2 \
xsrc/external/mit/MesaLib/dist/src/glsl/glsl_parser_extras.cpp
cvs rdiff -u -r1.4 -r1.5 \
xsrc/external/mit/MesaLib/dist/src/mesa/main/context.c
cvs rdiff -u -r1.1.1.6 -r1.2 \
xsrc/external/mit/MesaLib/dist/src/mesa/main/extensions.c

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

Modified files:

Index: xsrc/external/mit/MesaLib/dist/src/egl/main/eglglobals.c
diff -u xsrc/external/mit/MesaLib/dist/src/egl/main/eglglobals.c:1.1.1.4 xsrc/external/mit/MesaLib/dist/src/egl/main/eglglobals.c:1.2
--- xsrc/external/mit/MesaLib/dist/src/egl/main/eglglobals.c:1.1.1.4	Thu Dec 18 06:02:06 2014
+++ xsrc/external/mit/MesaLib/dist/src/egl/main/eglglobals.c	Sun Jan 24 19:42:35 2016
@@ -66,11 +66,16 @@ struct _egl_global _eglGlobal =
" EGL_MESA_platform_gbm"
 };
 
+static EGLBoolean registered = EGL_FALSE;
 
-static void
+static void __attribute__((__destructor__))
 _eglAtExit(void)
 {
EGLint i;
+
+   if (!registered)
+ return;
+
for (i = _eglGlobal.NumAtExitCalls - 1; i >= 0; i--)
   _eglGlobal.AtExitCalls[i]();
 }
@@ -80,14 +85,10 @@ void
 _eglAddAtExitCall(void (*func)(void))
 {
if (func) {
-  static EGLBoolean registered = EGL_FALSE;
 
   _eglLockMutex(_eglGlobal.Mutex);
 
-  if (!registered) {
- atexit(_eglAtExit);
- registered = EGL_TRUE;
-  }
+  registered = EGL_TRUE;
 
   assert(_eglGlobal.NumAtExitCalls < ARRAY_SIZE(_eglGlobal.AtExitCalls));
   _eglGlobal.AtExitCalls[_eglGlobal.NumAtExitCalls++] = func;

Index: xsrc/external/mit/MesaLib/dist/src/glsl/glsl_parser_extras.cpp
diff -u xsrc/external/mit/MesaLib/dist/src/glsl/glsl_parser_extras.cpp:1.1.1.2 xsrc/external/mit/MesaLib/dist/src/glsl/glsl_parser_extras.cpp:1.2
--- xsrc/external/mit/MesaLib/dist/src/glsl/glsl_parser_extras.cpp:1.1.1.2	Thu Dec 18 06:02:07 2014
+++ xsrc/external/mit/MesaLib/dist/src/glsl/glsl_parser_extras.cpp	Sun Jan 24 19:42:35 2016
@@ -1617,7 +1617,7 @@ extern "C" {
  * programs would be invalid.  So this should happen at approximately
  * program exit.
  */
-void
+void __attribute__((__destructor__))
 _mesa_destroy_shader_compiler(void)
 {
_mesa_destroy_shader_compiler_caches();

Index: xsrc/external/mit/MesaLib/dist/src/mesa/main/context.c
diff -u xsrc/external/mit/MesaLib/dist/src/mesa/main/context.c:1.4 xsrc/external/mit/MesaLib/dist/src/mesa/main/context.c:1.5
--- xsrc/external/mit/MesaLib/dist/src/mesa/main/context.c:1.4	Thu Dec 18 06:20:51 2014
+++ xsrc/external/mit/MesaLib/dist/src/mesa/main/context.c	Sun Jan 24 19:42:35 2016
@@ -430,7 +430,9 @@ one_time_init( struct gl_context *ctx )
/* Hopefully atexit() is widely available.  If not, we may need some
 * #ifdef tests here.
 */
+#if 0 /* using destructor instead */
atexit(_mesa_destroy_shader_compiler);
+#endif
 
dummy_enum_func();
 }

Index: xsrc/external/mit/MesaLib/dist/src/mesa/main/extensions.c
diff -u xsrc/external/mit/MesaLib/dist/src/mesa/main/extensions.c:1.1.1.6 xsrc/external/mit/MesaLib/dist/src/mesa/main/extensions.c:1.2
--- xsrc/external/mit/MesaLib/dist/src/mesa/main/extensions.c:1.1.1.6	Thu Dec 18 06:02:08 2014
+++ xsrc/external/mit/MesaLib/dist/src/mesa/main/extensions.c	Sun Jan 24 19:42:35 2016
@@ -572,7 +572,7 @@ get_extension_override( struct gl_contex
  * These strings are allocated early during the first context creation by
  * _mesa_one_time_init_extension_overrides.
  */
-static void
+static void __attribute__((__destructor__))
 free_unknown_extensions_strings(void)
 {
free(extra_extensions);
@@ -594,7 +594,7 @@ _mesa_one_time_init_extension_overrides(
int len;
size_t offset;
 
-   atexit(free_unknown_extensions_strings);
+   /* atexit(free_unknown_extensions_strings); */
 
memset(&_mesa_extension_override_enables, 0, sizeof(struct gl_extensions));
memset(&_mesa_extension_override_disables, 0, sizeof(struct gl_extensions));



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

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 18:21:50 UTC 2016

Modified Files:
src/sys/arch/i386/include: segments.h types.h

Log Message:
expose __vaddr_t for segments.h since it is a userland api.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/arch/i386/include/segments.h
cvs rdiff -u -r1.85 -r1.86 src/sys/arch/i386/include/types.h

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

Modified files:

Index: src/sys/arch/i386/include/segments.h
diff -u src/sys/arch/i386/include/segments.h:1.54 src/sys/arch/i386/include/segments.h:1.55
--- src/sys/arch/i386/include/segments.h:1.54	Tue Apr 26 11:51:23 2011
+++ src/sys/arch/i386/include/segments.h	Sun Jan 24 13:21:50 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: segments.h,v 1.54 2011/04/26 15:51:23 joerg Exp $	*/
+/*	$NetBSD: segments.h,v 1.55 2016/01/24 18:21:50 christos Exp $	*/
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -159,7 +159,7 @@ struct gate_descriptor {
 } __packed;
 
 struct ldt_descriptor {
-	vaddr_t ld_base;
+	__vaddr_t ld_base;
 	uint32_t ld_entries;
 } __packed;
 

Index: src/sys/arch/i386/include/types.h
diff -u src/sys/arch/i386/include/types.h:1.85 src/sys/arch/i386/include/types.h:1.86
--- src/sys/arch/i386/include/types.h:1.85	Sat Jan 23 17:31:19 2016
+++ src/sys/arch/i386/include/types.h	Sun Jan 24 13:21:50 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: types.h,v 1.85 2016/01/23 22:31:19 christos Exp $	*/
+/*	$NetBSD: types.h,v 1.86 2016/01/24 18:21:50 christos Exp $	*/
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -41,6 +41,10 @@
 #include 
 #include 
 
+typedef int			__register_t;
+typedef unsigned long		__vaddr_t;	/* segments.h */
+typedef unsigned char		__cpu_simple_lock_nv_t;
+
 #if defined(_KERNEL)
 typedef struct label_t {
 	int val[6];
@@ -78,7 +82,7 @@ typedef __uint64_t	psize_t;
 
 #if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
 
-typedef unsigned long	vaddr_t;
+typedef __vaddr_t	vaddr_t;
 typedef unsigned long	vsize_t;
 #define	PRIxVADDR	"lx"
 #define	PRIxVSIZE	"lx"
@@ -86,14 +90,11 @@ typedef unsigned long	vsize_t;
 
 typedef int		pmc_evid_t;
 typedef __uint64_t	pmc_ctr_t;
-typedef int		register_t;
+typedef __register_t	register_t;
 #define	PRIxREGISTER	"x"
 
 #endif /* _KERNEL || _KMEMUSER */
 
-typedef int			__register_t;
-typedef	unsigned char		__cpu_simple_lock_nv_t;
-
 /* __cpu_simple_lock_t used to be a full word. */
 #define	__CPU_SIMPLE_LOCK_PAD
 



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

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 18:49:05 UTC 2016

Modified Files:
src/external/bsd/wpa/bin: Makefile.inc

Log Message:
the eloop hack should not be needed anymore.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/wpa/bin/Makefile.inc

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

Modified files:

Index: src/external/bsd/wpa/bin/Makefile.inc
diff -u src/external/bsd/wpa/bin/Makefile.inc:1.3 src/external/bsd/wpa/bin/Makefile.inc:1.4
--- src/external/bsd/wpa/bin/Makefile.inc:1.3	Fri Jan 22 12:56:20 2016
+++ src/external/bsd/wpa/bin/Makefile.inc	Sun Jan 24 13:49:05 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.3 2016/01/22 17:56:20 roy Exp $
+# $NetBSD: Makefile.inc,v 1.4 2016/01/24 18:49:05 christos Exp $
 
 BINDIR?=	/usr/sbin
 
@@ -8,9 +8,6 @@ WPA_DISTDIR?=			${.CURDIR}/../../dist
 WPA_SUPPLICANT_DISTDIR?=	${WPA_DISTDIR}/wpa_supplicant
 HOSTAPD_DISTDIR?=		${WPA_DISTDIR}/hostapd
 
-# clang dislikes the NetBSD specific kevent header
-COPTS.eloop.c =			-Wno-int-conversion
-
 .PATH.c: \
 	${WPA_DISTDIR}/src/ap \
 	${WPA_DISTDIR}/src/common \



CVS commit: src/distrib/sets/lists

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 19:43:12 UTC 2016

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

Log Message:
fix amiga sets


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

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

Modified files:

Index: src/distrib/sets/lists/xcomp/md.amiga
diff -u src/distrib/sets/lists/xcomp/md.amiga:1.4 src/distrib/sets/lists/xcomp/md.amiga:1.5
--- src/distrib/sets/lists/xcomp/md.amiga:1.4	Wed Jan 16 11:01:08 2013
+++ src/distrib/sets/lists/xcomp/md.amiga	Sun Jan 24 14:43:12 2016
@@ -1 +1,14 @@
-# $NetBSD: md.amiga,v 1.4 2013/01/16 16:01:08 christos Exp $
+# $NetBSD: md.amiga,v 1.5 2016/01/24 19:43:12 christos Exp $
+./usr/libdata/lint/llib-ldbe.ln		-unknown-	lint,xorg
+./usr/libdata/lint/llib-ldri.ln		-unknown-	lint,xorg
+./usr/libdata/lint/llib-ldri2.ln	-unknown-	lint,xorg
+./usr/libdata/lint/llib-lexa.ln		-unknown-	lint,xorg
+./usr/libdata/lint/llib-lextmod.ln	-unknown-	lint,xorg
+./usr/libdata/lint/llib-lfb.ln		-unknown-	lint,xorg
+./usr/libdata/lint/llib-lglx.ln		-unknown-	lint,xorg
+./usr/libdata/lint/llib-lrecord.ln	-unknown-	lint,xorg
+./usr/libdata/lint/llib-lshadow.ln	-unknown-	lint,xorg
+./usr/libdata/lint/llib-lshadowfb.ln	-unknown-	lint,xorg
+./usr/libdata/lint/llib-lvbe.ln		-unknown-	lint,xorg
+./usr/libdata/lint/llib-lvgahw.ln	-unknown-	lint,xorg
+./usr/libdata/lint/llib-lxaa.ln		-unknown-	lint,xorg

Index: src/distrib/sets/lists/xdebug/md.amiga
diff -u src/distrib/sets/lists/xdebug/md.amiga:1.3 src/distrib/sets/lists/xdebug/md.amiga:1.4
--- src/distrib/sets/lists/xdebug/md.amiga:1.3	Wed Nov  4 12:06:23 2015
+++ src/distrib/sets/lists/xdebug/md.amiga	Sun Jan 24 14:43:12 2016
@@ -1,6 +1,19 @@
-# $NetBSD: md.amiga,v 1.3 2015/11/04 17:06:23 phx Exp $
-./usr/libdata/debug/usr/X11R6/bin/Xamiga.debug		-unknown-	x11,debug
-./usr/libdata/debug/usr/X11R6/bin/Xvfb.debug		-unknown-	x11,debug
+# $NetBSD: md.amiga,v 1.4 2016/01/24 19:43:12 christos Exp $
+./usr/X11R7/lib/modules/extensions/libdbe_g.a	-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/extensions/libdri2_g.a	-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/extensions/libdri_g.a	-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/extensions/libextmod_g.a	-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/extensions/libglx_g.a	-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/extensions/librecord_g.a	-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/extensions/libshadow_g.a	-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libexa_g.a		-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libfb_g.a		-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libshadowfb_g.a		-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libvbe_g.a		-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libvgahw_g.a		-unknown-	debuglib,xorg
+./usr/X11R7/lib/modules/libxaa_g.a		-unknown-	debuglib,xorg
+./usr/libdata/debug/usr/X11R6/bin/Xamiga.debug	-unknown-	x11,debug
+./usr/libdata/debug/usr/X11R6/bin/Xvfb.debug	-unknown-	x11,debug
 ./usr/libdata/debug/usr/X11R7/bin/Xorg.debug	-unknown-	debug,xorg
 ./usr/libdata/debug/usr/X11R7/bin/cvt.debug	-unknown-	debug,xorg
 ./usr/libdata/debug/usr/X11R7/bin/gtf.debug	-unknown-	debug,xorg



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

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 19:49:35 UTC 2016

Modified Files:
src/sys/arch/powerpc/include: frame.h types.h

Log Message:
expose __register32_t for frame.h


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/powerpc/include/frame.h
cvs rdiff -u -r1.53 -r1.54 src/sys/arch/powerpc/include/types.h

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

Modified files:

Index: src/sys/arch/powerpc/include/frame.h
diff -u src/sys/arch/powerpc/include/frame.h:1.26 src/sys/arch/powerpc/include/frame.h:1.27
--- src/sys/arch/powerpc/include/frame.h:1.26	Fri Feb 28 00:30:24 2014
+++ src/sys/arch/powerpc/include/frame.h	Sun Jan 24 14:49:35 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: frame.h,v 1.26 2014/02/28 05:30:24 matt Exp $	*/
+/*	$NetBSD: frame.h,v 1.27 2016/01/24 19:49:35 christos Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -52,46 +52,46 @@
  * Change ordering to cluster together these register_t's.		XXX
  */
 struct reg_sans_pc {
-	register_t r_fixreg[32];
-	register_t r_lr;
+	__register_t r_fixreg[32];
+	__register_t r_lr;
 	uint32_t r_cr;
 	uint32_t r_xer;
-	register_t r_ctr;
+	__register_t r_ctr;
 };
 
 #ifdef _LP64
 struct reg_sans_pc32 {
-	register32_t r_fixreg[32];
-	register32_t r_lr;
+	__register32_t r_fixreg[32];
+	__register32_t r_lr;
 	uint32_t r_cr;
 	uint32_t r_xer;
-	register32_t r_ctr;
+	__register32_t r_ctr;
 };
 #endif
 
 struct utrapframe {
-	register_t fixreg[32];
-	register_t lr;
+	__register_t fixreg[32];
+	__register_t lr;
 	int cr;
 	int xer;
-	register_t ctr;
-	register_t srr0;
-	register_t srr1;
+	__register_t ctr;
+	__register_t srr0;
+	__register_t srr1;
 	int vrsave;
 	int mq;
 	int spare;
 };
 
 struct clockframe {
-	register_t cf_srr0;
-	register_t cf_srr1;
+	__register_t cf_srr0;
+	__register_t cf_srr1;
 	int cf_idepth;
 };
 
 #ifdef _LP64
 struct clockframe32 {
-	register32_t cf_srr0;
-	register32_t cf_srr1;
+	__register32_t cf_srr0;
+	__register32_t cf_srr1;
 	int cf_idepth;
 };
 #endif
@@ -101,17 +101,17 @@ struct trapframe {
 	struct clockframe tf_cf;
 	uint32_t tf_exc;
 #if defined(PPC_OEA) || defined(PPC_OEA64) || defined(PPC_OEA64_BRIDGE)
-	register_t tf_dar;
-	register_t tf_pad0[2];
+	__register_t tf_dar;
+	__register_t tf_pad0[2];
 	uint32_t tf_dsisr;
 	uint32_t tf_vrsave;
 	uint32_t tf_mq;
 	uint32_t tf_pad1[1];
 #endif
 #if defined(PPC_BOOKE) || defined(PPC_IBM4XX)
-	register_t tf_dear;
-	register_t tf_mcar;
-	register_t tf_sprg1;
+	__register_t tf_dear;
+	__register_t tf_mcar;
+	__register_t tf_sprg1;
 	uint32_t tf_esr;
 	uint32_t tf_mcsr;
 	uint32_t tf_pid;
@@ -125,17 +125,17 @@ struct trapframe32 {
 	struct clockframe32 tf_cf;
 	uint32_t tf_exc;
 #if defined(PPC_OEA) || defined(PPC_OEA64) || defined(PPC_OEA64_BRIDGE)
-	register32_t tf_dar;
-	register32_t tf_pad0[2];
+	__register32_t tf_dar;
+	__register32_t tf_pad0[2];
 	uint32_t tf_dsisr;
 	uint32_t tf_vrsave;
 	uint32_t tf_mq;
 	uint32_t tf_pad1[1];
 #endif
 #if defined(PPC_BOOKE) || defined(PPC_IBM4XX)
-	register32_t tf_dear;
-	register32_t tf_mcar;
-	register32_t tf_sprg1;
+	__register32_t tf_dear;
+	__register32_t tf_mcar;
+	__register32_t tf_sprg1;
 	uint32_t tf_esr;
 	uint32_t tf_mcsr;
 	uint32_t tf_pid;
@@ -153,22 +153,22 @@ struct trapframe32 {
 #define tf_idepth	tf_cf.cf_idepth
 
 struct ktrapframe {
-	register_t ktf_sp;
-	register_t ktf_lr;
+	__register_t ktf_sp;
+	__register_t ktf_lr;
 	struct trapframe ktf_tf;
-	register_t ktf_cframe_lr;	/* for DDB */
+	__register_t ktf_cframe_lr;	/* for DDB */
 };
 
 #if defined(_KERNEL) || defined(_LKM)
 #ifdef _LP64
 struct utrapframe32 {
-	register32_t fixreg[32];
-	register32_t lr;
+	__register32_t fixreg[32];
+	__register32_t lr;
 	int cr;
 	int xer;
-	register32_t ctr;
-	register32_t srr0;
-	register32_t srr1;
+	__register32_t ctr;
+	__register32_t srr0;
+	__register32_t srr1;
 	int vrsave;
 	int mq;
 	int spare;
@@ -185,12 +185,12 @@ struct utrapframe32 {
 
 #define	SFRAMELEN	roundup(sizeof(struct switchframe), CALLFRAMELEN)
 struct switchframe {
-	register_t sf_sp;
-	register_t sf_lr;
-	register_t sf_user_sr;		/* VSID on IBM4XX */
-	register_t sf_cr;		/* why?  CR is volatile. */
-	register_t sf_fixreg2;
-	register_t sf_fixreg[19];	/* R13-R31 */
+	__register_t sf_sp;
+	__register_t sf_lr;
+	__register_t sf_user_sr;		/* VSID on IBM4XX */
+	__register_t sf_cr;		/* why?  CR is volatile. */
+	__register_t sf_fixreg2;
+	__register_t sf_fixreg[19];	/* R13-R31 */
 };
 
 /*
@@ -198,10 +198,10 @@ struct switchframe {
  */
 #define	CALLFRAMELEN	sizeof(struct callframe)
 struct callframe {
-	register_t cf_sp;
-	register_t cf_lr;
-	register_t cf_r30;
-	register_t cf_r31;
+	__register_t cf_sp;
+	__register_t cf_lr;
+	__register_t cf_r30;
+	__register_t cf_r31;
 };
 
 #endif	/* _POWERPC_FRAME_H_ */

Index: src/sys/arch/powerpc/include/types.h
diff -u src/sys/arch/powerpc/include/types.h:1.53 

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

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 20:02:39 UTC 2016

Modified Files:
src/sys/arch/powerpc/include: reg.h

Log Message:
use __register_t


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/powerpc/include/reg.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/powerpc/include/reg.h
diff -u src/sys/arch/powerpc/include/reg.h:1.11 src/sys/arch/powerpc/include/reg.h:1.12
--- src/sys/arch/powerpc/include/reg.h:1.11	Tue Aug 12 16:27:10 2014
+++ src/sys/arch/powerpc/include/reg.h	Sun Jan 24 15:02:38 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: reg.h,v 1.11 2014/08/12 20:27:10 joerg Exp $	*/
+/*	$NetBSD: reg.h,v 1.12 2016/01/24 20:02:38 christos Exp $	*/
 
 #ifndef _POWERPC_REG_H_
 #define _POWERPC_REG_H_
@@ -49,12 +49,12 @@
  */
 
 struct reg {/* base registers */
-	register_t fixreg[32];
-	register_t lr;			/* Link Register */
+	__register_t fixreg[32];
+	__register_t lr;			/* Link Register */
 	int cr;/* Condition Register */
 	int xer;			/* SPR 1 */
-	register_t ctr;			/* Count Register */
-	register_t pc;			/* Program Counter */
+	__register_t ctr;			/* Count Register */
+	__register_t pc;			/* Program Counter */
 };
 
 struct fpreg {/* Floating Point registers */
@@ -69,9 +69,9 @@ struct fpreg {/* Floating Point regi
 
 struct vreg {/* Vector registers */
 	uint32_t vreg[32][4];
-	register_t vrsave;		/* SPR 256 */
-	register_t spare[2];		/* filler */
-	register_t vscr;		/* Vector Status And Control Register */
+	__register_t vrsave;		/* SPR 256 */
+	__register_t spare[2];		/* filler */
+	__register_t vscr;		/* Vector Status And Control Register */
 };
 
 #endif /* _POWERPC_REG_H_ */



CVS commit: src/tools

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 20:14:18 UTC 2016

Modified Files:
src/tools: Makefile
Added Files:
src/tools/cvslatest: Makefile

Log Message:
Tool version


To generate a diff of this commit:
cvs rdiff -u -r1.184 -r1.185 src/tools/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/cvslatest/Makefile

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

Modified files:

Index: src/tools/Makefile
diff -u src/tools/Makefile:1.184 src/tools/Makefile:1.185
--- src/tools/Makefile:1.184	Fri Dec 18 20:10:31 2015
+++ src/tools/Makefile	Sun Jan 24 15:14:17 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.184 2015/12/19 01:10:31 christos Exp $
+#	$NetBSD: Makefile,v 1.185 2016/01/24 20:14:17 christos Exp $
 
 .include 
 .include 
@@ -103,6 +103,7 @@ SUBDIR+= cap_mkdb crunchgen ctags gencat
 .endif
 
 SUBDIR+= cat rpcgen join lorder m4 mkdep tsort .WAIT yacc .WAIT awk .WAIT lex
+SUBDIR+= cvslatest
 
 .if ${TOOLS_BUILDRUMP} == "no"
 SUBDIR += .WAIT texinfo \

Added files:

Index: src/tools/cvslatest/Makefile
diff -u /dev/null src/tools/cvslatest/Makefile:1.1
--- /dev/null	Sun Jan 24 15:14:18 2016
+++ src/tools/cvslatest/Makefile	Sun Jan 24 15:14:18 2016
@@ -0,0 +1,11 @@
+#	$NetBSD: Makefile,v 1.1 2016/01/24 20:14:18 christos Exp $
+
+NOMAN=	# defined
+
+.include 
+
+HOSTPROGNAME=   ${_TOOL_PREFIX}cvslatest
+HOST_SRCDIR=usr.bin/cvslatest
+
+.include "${.CURDIR}/../Makefile.nbincludes"
+.include "${.CURDIR}/../Makefile.host"



CVS commit: src/lib/libc/arch/vax/gen

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 22:02:48 UTC 2016

Modified Files:
src/lib/libc/arch/vax/gen: __longjmp14.c

Log Message:
use __register_t


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libc/arch/vax/gen/__longjmp14.c

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

Modified files:

Index: src/lib/libc/arch/vax/gen/__longjmp14.c
diff -u src/lib/libc/arch/vax/gen/__longjmp14.c:1.4 src/lib/libc/arch/vax/gen/__longjmp14.c:1.5
--- src/lib/libc/arch/vax/gen/__longjmp14.c:1.4	Mon Apr 28 16:22:57 2008
+++ src/lib/libc/arch/vax/gen/__longjmp14.c	Sun Jan 24 17:02:48 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: __longjmp14.c,v 1.4 2008/04/28 20:22:57 martin Exp $	*/
+/*	$NetBSD: __longjmp14.c,v 1.5 2016/01/24 22:02:48 christos Exp $	*/
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
 
 struct _jmp_buf {
 	struct sigcontext jb_sc;
-	register_t jb_regs[6];
+	__register_t jb_regs[6];
 };
 
 void



CVS commit: src/lib/libm/src

2016-01-24 Thread Andreas Gustafsson
Module Name:src
Committed By:   gson
Date:   Sun Jan 24 20:34:30 UTC 2016

Modified Files:
src/lib/libm/src: e_hypotf.c

Log Message:
Fix incorrect magic numbers in scaling.  From FreeBSD commit 23397, by
way of Rin Okuyama.  Fixes PR lib/50698.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/src/e_hypotf.c

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

Modified files:

Index: src/lib/libm/src/e_hypotf.c
diff -u src/lib/libm/src/e_hypotf.c:1.9 src/lib/libm/src/e_hypotf.c:1.10
--- src/lib/libm/src/e_hypotf.c:1.9	Fri Apr 25 22:21:53 2008
+++ src/lib/libm/src/e_hypotf.c	Sun Jan 24 20:34:30 2016
@@ -15,7 +15,7 @@
 
 #include 
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: e_hypotf.c,v 1.9 2008/04/25 22:21:53 christos Exp $");
+__RCSID("$NetBSD: e_hypotf.c,v 1.10 2016/01/24 20:34:30 gson Exp $");
 #endif
 
 #include "math.h"
@@ -43,22 +43,22 @@ __ieee754_hypotf(float x, float y)
 	   if(hb == 0x7f80) w = b;
 	   return w;
 	   }
-	   /* scale a and b by 2**-60 */
-	   ha -= 0x5d80; hb -= 0x5d80;	k += 60;
+	   /* scale a and b by 2**-68 */
+	   ha -= 0x2200; hb -= 0x2200;	k += 68;
 	   SET_FLOAT_WORD(a,ha);
 	   SET_FLOAT_WORD(b,hb);
 	}
 	if(hb < 0x2680) {	/* b < 2**-50 */
 	if(hb <= 0x007f) {	/* subnormal b or 0 */
 	if(hb==0) return a;
-		SET_FLOAT_WORD(t1,0x3f00);	/* t1=2^126 */
+		SET_FLOAT_WORD(t1,0x7e80);	/* t1=2^126 */
 		b *= t1;
 		a *= t1;
 		k -= 126;
-	} else {		/* scale a and b by 2^60 */
-	ha += 0x5d80; 	/* a *= 2^60 */
-		hb += 0x5d80;	/* b *= 2^60 */
-		k -= 60;
+	} else {		/* scale a and b by 2^68 */
+	ha += 0x2200; 	/* a *= 2^68 */
+		hb += 0x2200;	/* b *= 2^68 */
+		k -= 68;
 		SET_FLOAT_WORD(a,ha);
 		SET_FLOAT_WORD(b,hb);
 	}



CVS commit: src/share/mk

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 20:15:11 UTC 2016

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

Log Message:
Add tool cvslatest


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

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

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.884 src/share/mk/bsd.own.mk:1.885
--- src/share/mk/bsd.own.mk:1.884	Fri Jan 22 16:55:51 2016
+++ src/share/mk/bsd.own.mk	Sun Jan 24 15:15:11 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.884 2016/01/22 21:55:51 riz Exp $
+#	$NetBSD: bsd.own.mk,v 1.885 2016/01/24 20:15:11 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -324,6 +324,7 @@ TOOL_CRUNCHGEN=		MAKE=${.MAKE:Q} ${TOOLD
 TOOL_CTAGS=		${TOOLDIR}/bin/${_TOOL_PREFIX}ctags
 TOOL_CTFCONVERT=	${TOOLDIR}/bin/${_TOOL_PREFIX}ctfconvert
 TOOL_CTFMERGE=		${TOOLDIR}/bin/${_TOOL_PREFIX}ctfmerge
+TOOL_CVSLATEST=		${TOOLDIR}/bin/${_TOOL_PREFIX}cvslatest
 TOOL_DB=		${TOOLDIR}/bin/${_TOOL_PREFIX}db
 TOOL_DISKLABEL=		${TOOLDIR}/bin/nbdisklabel
 TOOL_EQN=		${TOOLDIR}/bin/${_TOOL_PREFIX}eqn
@@ -435,6 +436,7 @@ TOOL_CRUNCHGEN=		crunchgen
 TOOL_CTAGS=		ctags
 TOOL_CTFCONVERT=	ctfconvert
 TOOL_CTFMERGE=		ctfmerge
+TOOL_CVSLATEST=		cvslatest
 TOOL_DB=		db
 TOOL_DISKLABEL=		disklabel
 TOOL_EQN=		eqn



CVS commit: src/tests/lib/libm

2016-01-24 Thread Andreas Gustafsson
Module Name:src
Committed By:   gson
Date:   Sun Jan 24 20:26:47 UTC 2016

Modified Files:
src/tests/lib/libm: Makefile
Added Files:
src/tests/lib/libm: t_hypot.c

Log Message:
Add some tests of hypot() and hypotf()


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/tests/lib/libm/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/lib/libm/t_hypot.c

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

Modified files:

Index: src/tests/lib/libm/Makefile
diff -u src/tests/lib/libm/Makefile:1.36 src/tests/lib/libm/Makefile:1.37
--- src/tests/lib/libm/Makefile:1.36	Tue Dec 22 14:27:51 2015
+++ src/tests/lib/libm/Makefile	Sun Jan 24 20:26:47 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.36 2015/12/22 14:27:51 christos Exp $
+# $NetBSD: Makefile,v 1.37 2016/01/24 20:26:47 gson Exp $
 
 .include 
 
@@ -22,6 +22,7 @@ TESTS_C+=	t_erf
 TESTS_C+=	t_exp
 TESTS_C+=	t_fenv
 TESTS_C+=	t_fmod
+TESTS_C+=	t_hypot
 TESTS_C+=	t_infinity
 TESTS_C+=	t_ldexp
 TESTS_C+=	t_log

Added files:

Index: src/tests/lib/libm/t_hypot.c
diff -u /dev/null src/tests/lib/libm/t_hypot.c:1.1
--- /dev/null	Sun Jan 24 20:26:47 2016
+++ src/tests/lib/libm/t_hypot.c	Sun Jan 24 20:26:47 2016
@@ -0,0 +1,81 @@
+/* $NetBSD: t_hypot.c,v 1.1 2016/01/24 20:26:47 gson Exp $ */
+
+/*-
+ * Copyright (c) 2016 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include 
+#include 
+
+ATF_TC(hypot_integer);
+ATF_TC_HEAD(hypot_integer, tc)
+{
+	atf_tc_set_md_var(tc, "descr", "Test hypot with integer args");
+}
+
+ATF_TC_BODY(hypot_integer, tc)
+{
+	/* volatile so hypotf() won't be evaluated at compile time */
+	volatile double a = 5;
+	volatile double b = 12;
+	ATF_CHECK(hypot(a, b) == 13.0);
+}
+
+ATF_TC(hypotf_integer);
+ATF_TC_HEAD(hypotf_integer, tc)
+{
+	atf_tc_set_md_var(tc, "descr", "Test hypotf with integer args");
+}
+
+ATF_TC_BODY(hypotf_integer, tc)
+{
+	volatile float a = 5;
+	volatile float b = 12;
+	ATF_CHECK(hypotf(a, b) == 13.0f);
+}
+
+ATF_TC(pr50698);
+ATF_TC_HEAD(pr50698, tc)
+{
+	atf_tc_set_md_var(tc, "descr", "Check for the bug of PR 50698");
+}
+
+ATF_TC_BODY(pr50698, tc)
+{
+	volatile float a = 1e-18f;
+	float val = hypotf(a, a);
+	ATF_CHECK(!isinf(val));
+	ATF_CHECK(!isnan(val));
+}
+
+ATF_TP_ADD_TCS(tp)
+{
+
+	ATF_TP_ADD_TC(tp, hypot_integer);
+	ATF_TP_ADD_TC(tp, hypotf_integer);
+	ATF_TP_ADD_TC(tp, pr50698);
+
+	return atf_no_error();
+}



CVS commit: src/tools

2016-01-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 24 22:49:08 UTC 2016

Modified Files:
src/tools: Makefile

Log Message:
move cvslatest last


To generate a diff of this commit:
cvs rdiff -u -r1.185 -r1.186 src/tools/Makefile

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

Modified files:

Index: src/tools/Makefile
diff -u src/tools/Makefile:1.185 src/tools/Makefile:1.186
--- src/tools/Makefile:1.185	Sun Jan 24 15:14:17 2016
+++ src/tools/Makefile	Sun Jan 24 17:49:08 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.185 2016/01/24 20:14:17 christos Exp $
+#	$NetBSD: Makefile,v 1.186 2016/01/24 22:49:08 christos Exp $
 
 .include 
 .include 
@@ -103,7 +103,6 @@ SUBDIR+= cap_mkdb crunchgen ctags gencat
 .endif
 
 SUBDIR+= cat rpcgen join lorder m4 mkdep tsort .WAIT yacc .WAIT awk .WAIT lex
-SUBDIR+= cvslatest
 
 .if ${TOOLS_BUILDRUMP} == "no"
 SUBDIR += .WAIT texinfo \
@@ -218,6 +217,8 @@ SUBDIR+=	makestrs
 SUBDIR+=	makekeys
 .endif
 
+SUBDIR+= cvslatest
+
 .endif # TOOLCHAIN_BUILDRUMP
 
 check_MKTOOLS: .PHONY .NOTMAIN



CVS commit: src/sys/sys

2016-01-24 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Sun Jan 24 22:50:23 UTC 2016

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

Log Message:
bump version for pr_output change


To generate a diff of this commit:
cvs rdiff -u -r1.490 -r1.491 src/sys/sys/param.h

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

Modified files:

Index: src/sys/sys/param.h
diff -u src/sys/sys/param.h:1.490 src/sys/sys/param.h:1.491
--- src/sys/sys/param.h:1.490	Mon Dec 21 12:35:15 2015
+++ src/sys/sys/param.h	Sun Jan 24 22:50:23 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: param.h,v 1.490 2015/12/21 12:35:15 mlelstv Exp $	*/
+/*	$NetBSD: param.h,v 1.491 2016/01/24 22:50:23 pooka Exp $	*/
 
 /*-
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -67,7 +67,7 @@
  *	2.99.9		(299000900)
  */
 
-#define	__NetBSD_Version__	799002500	/* NetBSD 7.99.25 */
+#define	__NetBSD_Version__	799002600	/* NetBSD 7.99.26 */
 
 #define __NetBSD_Prereq__(M,m,p) (M) * 1) + \
 (m) * 100) + (p) * 100) <= __NetBSD_Version__)