CVS commit: src/sys/arch/i386/stand/efiboot

2017-03-11 Thread NONAKA Kimihiro
Module Name:src
Committed By:   nonaka
Date:   Sun Mar 12 06:37:41 UTC 2017

Modified Files:
src/sys/arch/i386/stand/efiboot: TODO.efiboot

Log Message:
Remove `fix module_init()' entry.

I've been committed.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/i386/stand/efiboot/TODO.efiboot

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/stand/efiboot/TODO.efiboot
diff -u src/sys/arch/i386/stand/efiboot/TODO.efiboot:1.2 src/sys/arch/i386/stand/efiboot/TODO.efiboot:1.3
--- src/sys/arch/i386/stand/efiboot/TODO.efiboot:1.2	Tue Feb 21 10:53:37 2017
+++ src/sys/arch/i386/stand/efiboot/TODO.efiboot	Sun Mar 12 06:37:41 2017
@@ -2,7 +2,6 @@
  * handle UEFI variables
  * boot from CD/DVD (bootable from CD/DVD, but root fs not found.)
  * load boot.cfg from EFI system partition (FAT32)
- * fix module_init(). need to allocate memory for modules.
 
 - kernel
  * handle UEFI variables (/dev/efivar)



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

2017-03-11 Thread NONAKA Kimihiro
Module Name:src
Committed By:   nonaka
Date:   Sun Mar 12 05:33:48 UTC 2017

Modified Files:
src/sys/arch/i386/stand/efiboot: boot.c
src/sys/arch/i386/stand/lib: exec.c libi386.h

Log Message:
efiboot: Kernel modules are loaded in pre-allocated memory.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/i386/stand/efiboot/boot.c
cvs rdiff -u -r1.66 -r1.67 src/sys/arch/i386/stand/lib/exec.c
cvs rdiff -u -r1.41 -r1.42 src/sys/arch/i386/stand/lib/libi386.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/stand/efiboot/boot.c
diff -u src/sys/arch/i386/stand/efiboot/boot.c:1.3 src/sys/arch/i386/stand/efiboot/boot.c:1.4
--- src/sys/arch/i386/stand/efiboot/boot.c:1.3	Fri Mar  3 09:29:57 2017
+++ src/sys/arch/i386/stand/efiboot/boot.c	Sun Mar 12 05:33:48 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: boot.c,v 1.3 2017/03/03 09:29:57 nonaka Exp $	*/
+/*	$NetBSD: boot.c,v 1.4 2017/03/12 05:33:48 nonaka Exp $	*/
 
 /*-
  * Copyright (c) 2016 Kimihiro Nonaka 
@@ -31,10 +31,9 @@
 #include 
 #include 
 
-#include 
-
-#include 
-#include 
+#include "bootcfg.h"
+#include "bootmod.h"
+#include "bootmenu.h"
 #include "devopen.h"
 
 int errno;
@@ -207,16 +206,40 @@ clearit(void)
 static void
 bootit(const char *filename, int howto)
 {
+	EFI_STATUS status;
+	EFI_PHYSICAL_ADDRESS bouncebuf;
+	UINTN npages;
+	u_long allocsz;
 
 	if (howto & AB_VERBOSE)
 		printf("booting %s (howto 0x%x)\n", sprint_bootsel(filename),
 		howto);
 
-	if (exec_netbsd(filename, 0, howto, 0, efi_cleanup) < 0)
+	if (count_netbsd(filename, &allocsz) < 0) {
+		printf("boot: %s: %s\n", sprint_bootsel(filename),
+		   strerror(errno));
+		return;
+	}
+
+	bouncebuf = EFI_ALLOCATE_MAX_ADDRESS;
+	npages = EFI_SIZE_TO_PAGES(allocsz);
+	status = uefi_call_wrapper(BS->AllocatePages, 4, AllocateMaxAddress,
+	EfiLoaderData, npages, &bouncebuf);
+	if (EFI_ERROR(status)) {
+		printf("boot: %s: %s\n", sprint_bootsel(filename),
+		   strerror(ENOMEM));
+		return;
+	}
+
+	efi_loadaddr = bouncebuf;
+	if (exec_netbsd(filename, bouncebuf, howto, 0, efi_cleanup) < 0)
 		printf("boot: %s: %s\n", sprint_bootsel(filename),
 		   strerror(errno));
 	else
 		printf("boot returned\n");
+
+	(void) uefi_call_wrapper(BS->FreePages, 2, bouncebuf, npages);
+	efi_loadaddr = 0;
 }
 
 void

Index: src/sys/arch/i386/stand/lib/exec.c
diff -u src/sys/arch/i386/stand/lib/exec.c:1.66 src/sys/arch/i386/stand/lib/exec.c:1.67
--- src/sys/arch/i386/stand/lib/exec.c:1.66	Thu Feb 23 12:14:53 2017
+++ src/sys/arch/i386/stand/lib/exec.c	Sun Mar 12 05:33:48 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: exec.c,v 1.66 2017/02/23 12:14:53 nonaka Exp $	 */
+/*	$NetBSD: exec.c,v 1.67 2017/03/12 05:33:48 nonaka Exp $	 */
 
 /*
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -151,6 +151,11 @@ static void	module_add_common(const char
 
 static void	userconf_init(void);
 
+static void	extract_device(const char *, char *, size_t);
+static void	module_base_path(char *, size_t);
+static int	module_open(boot_module_t *, int, const char *, const char *,
+		bool);
+
 void
 framebuffer_configure(struct btinfo_framebuffer *fb)
 {
@@ -196,6 +201,10 @@ module_add_common(const char *name, uint
 	while (*name == ' ' || *name == '\t')
 		++name;
 
+	for (bm = boot_modules; bm != NULL; bm = bm->bm_next)
+		if (bm->bm_type == type && strcmp(bm->bm_path, name) == 0)
+			return;
+
 	bm = alloc(sizeof(boot_module_t));
 	len = strlen(name) + 1;
 	str = alloc(len);
@@ -299,30 +308,6 @@ common_load_kernel(const char *file, u_l
 			return ENOMEM;
 	}
 #endif
-#ifdef EFIBOOT
-	{
-		EFI_STATUS status;
-		EFI_PHYSICAL_ADDRESS addr;
-		UINTN kernsize;
-
-		marks[MARK_START] = loadaddr;
-		if ((fd = loadfile(file, marks, COUNT_KERNEL)) == -1)
-			return EIO;
-		close(fd);
-
-		/* Allocate temporary arena. */
-		addr = EFI_ALLOCATE_MAX_ADDRESS;
-		kernsize = marks[MARK_END] - loadaddr;
-		kernsize = EFI_SIZE_TO_PAGES(kernsize);
-		status = uefi_call_wrapper(BS->AllocatePages, 4,
-		AllocateMaxAddress, EfiLoaderData, kernsize, &addr);
-		if (EFI_ERROR(status))
-			return ENOMEM;
-		efi_loadaddr = loadaddr = addr;
-
-		memset(marks, 0, sizeof(marks[0]) * MARK_MAX);
-	}
-#endif
 	marks[MARK_START] = loadaddr;
 	if ((fd = loadfile(file, marks,
 	LOAD_KERNEL & ~(floppy ? LOAD_BACKWARDS : 0))) == -1)
@@ -360,15 +345,6 @@ common_load_kernel(const char *file, u_l
 		ppbcopy(loadaddr, origaddr, marks[MARK_END]);
 	}
 #endif
-#ifdef EFIBOOT
-	marks[MARK_START] -= loadaddr;
-	marks[MARK_ENTRY] -= loadaddr;
-	marks[MARK_DATA] -= loadaddr;
-	/* MARK_NSYM */
-	marks[MARK_SYM] -= loadaddr;
-	marks[MARK_END] -= loadaddr;
-	/* Copy the kernel to original load address later. */
-#endif
 	marks[MARK_END] = (((u_long) marks[MARK_END] + sizeof(int) - 1)) &
 	(-sizeof(int));
 	image_end = marks[MARK_END];
@@ -410,6 +386,15 @@ exec_netbsd(const char *file, physaddr_t
 		errno = err

CVS commit: src/bin/sh

2017-03-11 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Sun Mar 12 04:19:29 UTC 2017

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

Log Message:
Fix for the "${unset-var#$(cmd1)}$(cmd2)" runs the wrong command bug.
... From FreeBSD


To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 src/bin/sh/expand.c

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

Modified files:

Index: src/bin/sh/expand.c
diff -u src/bin/sh/expand.c:1.101 src/bin/sh/expand.c:1.102
--- src/bin/sh/expand.c:1.101	Thu Mar 31 16:16:35 2016
+++ src/bin/sh/expand.c	Sun Mar 12 04:19:29 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: expand.c,v 1.101 2016/03/31 16:16:35 christos Exp $	*/
+/*	$NetBSD: expand.c,v 1.102 2017/03/12 04:19:29 kre Exp $	*/
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)expand.c	8.5 (Berkeley) 5/15/95";
 #else
-__RCSID("$NetBSD: expand.c,v 1.101 2016/03/31 16:16:35 christos Exp $");
+__RCSID("$NetBSD: expand.c,v 1.102 2017/03/12 04:19:29 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -756,8 +756,10 @@ again: /* jump here after setting a vari
 	case VSTRIMLEFTMAX:
 	case VSTRIMRIGHT:
 	case VSTRIMRIGHTMAX:
-		if (!set)
+		if (!set) {
+			set = 1;  /* allow argbackq to be advanced if needed */
 			break;
+		}
 		/*
 		 * Terminate the string and start recording the pattern
 		 * right after it



CVS commit: src/tests/bin/sh

2017-03-11 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Sun Mar 12 00:39:47 UTC 2017

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

Log Message:
Add new test case in to check (coming) bug fix for newly discovered
ash based shell bug
echo ${unset_var##$(echo a)}$(echo b)
should say "b" but instead says "a" ... the first "echo a" is not
evaluated because it cannot possibly match an unset variable, but is
not removed from the list of command substitutions, when the shell
needs to execute the 2nd cmdsub, "echo b" should be at the head of
the list, but isn't, "echo a" is still there...

This test should fail (for now) - should show 4 of 40 subtests failing.
It isn't marked as atf_expect_fail as the fix for this will be coming
later today (I will just wait at least 1 b5 build cycle so the failure
can be observed).

Detecting the bug, and the fix, are from FreeBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/bin/sh/t_expand.sh

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

Modified files:

Index: src/tests/bin/sh/t_expand.sh
diff -u src/tests/bin/sh/t_expand.sh:1.8 src/tests/bin/sh/t_expand.sh:1.9
--- src/tests/bin/sh/t_expand.sh:1.8	Fri Apr 29 18:29:17 2016
+++ src/tests/bin/sh/t_expand.sh	Sun Mar 12 00:39:47 2017
@@ -1,4 +1,4 @@
-# $NetBSD: t_expand.sh,v 1.8 2016/04/29 18:29:17 christos Exp $
+# $NetBSD: t_expand.sh,v 1.9 2017/03/12 00:39:47 kre Exp $
 #
 # Copyright (c) 2007, 2009 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -319,7 +319,7 @@ results()
 	echo >&2 " - - - - - - - - - - - - - - - - -"
 	echo >&2 "${TEST_FAILURES}"
 	atf_fail \
- "Test ${TEST_ID}: $TEST_FAIL_COUNT subtests (of $TEST_NUM) failed - see stderr"
+ "Test ${TEST_ID}: $TEST_FAIL_COUNT (of $TEST_NUM) subtests failed - see stderr"
 }
 
 atf_test_case shell_params
@@ -366,6 +366,63 @@ shell_params_body() {
 	results
 }
 
+atf_test_case var_with_embedded_cmdsub
+var_with_embedded_cmdsub_head() {
+	atf_set "descr" "Test expansion of vars with embedded cmdsub"
+}
+var_with_embedded_cmdsub_body() {
+
+	reset var_with_embedded_cmdsub
+
+	check 'unset x; echo ${x-$(echo a)}$(echo b)'  'ab' 0	#1
+	check 'unset x; echo ${x:-$(echo a)}$(echo b)' 'ab' 0	#2
+	check 'x=""; echo ${x-$(echo a)}$(echo b)' 'b'  0	#3
+	check 'x=""; echo ${x:-$(echo a)}$(echo b)''ab' 0	#4
+	check 'x=c; echo ${x-$(echo a)}$(echo b)'  'cb' 0	#5
+	check 'x=c; echo ${x:-$(echo a)}$(echo b)' 'cb' 0	#6
+
+	check 'unset x; echo ${x+$(echo a)}$(echo b)'  'b'  0	#7
+	check 'unset x; echo ${x:+$(echo a)}$(echo b)' 'b'  0	#8
+	check 'x=""; echo ${x+$(echo a)}$(echo b)' 'ab' 0	#9
+	check 'x=""; echo ${x:+$(echo a)}$(echo b)''b'  0	#10
+	check 'x=c; echo ${x+$(echo a)}$(echo b)'  'ab' 0	#11
+	check 'x=c; echo ${x:+$(echo a)}$(echo b)' 'ab' 0	#12
+
+	check 'unset x; echo ${x=$(echo a)}$(echo b)'  'ab' 0	#13
+	check 'unset x; echo ${x:=$(echo a)}$(echo b)' 'ab' 0	#14
+	check 'x=""; echo ${x=$(echo a)}$(echo b)' 'b'  0	#15
+	check 'x=""; echo ${x:=$(echo a)}$(echo b)''ab' 0	#16
+	check 'x=c; echo ${x=$(echo a)}$(echo b)'  'cb' 0	#17
+	check 'x=c; echo ${x:=$(echo a)}$(echo b)' 'cb' 0	#18
+
+	check 'unset x; echo ${x?$(echo a)}$(echo b)'  ''   2	#19
+	check 'unset x; echo ${x:?$(echo a)}$(echo b)' ''   2	#20
+	check 'x=""; echo ${x?$(echo a)}$(echo b)' 'b'  0	#21
+	check 'x=""; echo ${x:?$(echo a)}$(echo b)'''   2	#22
+	check 'x=c; echo ${x?$(echo a)}$(echo b)'  'cb' 0	#23
+	check 'x=c; echo ${x:?$(echo a)}$(echo b)' 'cb' 0	#24
+
+	check 'unset x; echo ${x%$(echo a)}$(echo b)'  'b'  0	#25
+	check 'unset x; echo ${x%%$(echo a)}$(echo b)' 'b'  0	#26
+	check 'x=""; echo ${x%$(echo a)}$(echo b)' 'b'  0	#27
+	check 'x=""; echo ${x%%$(echo a)}$(echo b)''b'  0	#28
+	check 'x=c; echo ${x%$(echo a)}$(echo b)'  'cb' 0	#29
+	check 'x=c; echo ${x%%$(echo a)}$(echo b)' 'cb' 0	#30
+	check 'x=aa; echo ${x%$(echo "*a")}$(echo b)'  'ab' 0	#31
+	check 'x=aa; echo ${x%%$(echo "*a")}$(echo b)' 'b'  0	#32
+
+	check 'unset x; echo ${x#$(echo a)}$(echo b)'  'b'  0	#33
+	check 'unset x; echo ${x##$(echo a)}$(echo b)' 'b'  0	#34
+	check 'x=""; echo ${x#$(echo a)}$(echo b)' 'b'  0	#35
+	check 'x=""; echo ${x##$(echo a)}$(echo b)''b'  0	#36
+	check 'x=c; echo ${x#$(echo a)}$(echo b)'  'cb' 0	#37
+	check 'x=c; echo ${x##$(echo a)}$(echo b)' 'cb' 0	#38
+	check 'x=aa; echo ${x#$(echo "*a")}$(echo b)'  'ab' 0	#39
+	check 'x=aa; echo ${x##$(echo "*a")}$(echo b)' 'b'  0	#40
+
+	results
+}
+
 atf_init_test_cases() {
 	atf_add_test_case dollar_at
 	atf_add_test_case dollar_at_with_text
@@ -377,4 +434,5 @@ atf_init_test_cases() {
 	atf_add_test_case iteration_on_null_or_null_parameter
 	atf_add_test_case iteration_on_null_or_missing_parameter
 	atf_add_test_case shell_params
+	atf_add_test_case var_with_embedded_cmdsub
 }



CVS commit: src/usr.bin/make

2017-03-11 Thread Simon J. Gerraty
Module Name:src
Committed By:   sjg
Date:   Sat Mar 11 23:59:02 UTC 2017

Modified Files:
src/usr.bin/make: main.c

Log Message:
Do not consider using -C arg "as is" for .CURDIR unless it starts with '/'.

Reviewed by: christos


To generate a diff of this commit:
cvs rdiff -u -r1.257 -r1.258 src/usr.bin/make/main.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/make/main.c
diff -u src/usr.bin/make/main.c:1.257 src/usr.bin/make/main.c:1.258
--- src/usr.bin/make/main.c:1.257	Wed Feb  8 17:47:36 2017
+++ src/usr.bin/make/main.c	Sat Mar 11 23:59:02 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.257 2017/02/08 17:47:36 christos Exp $	*/
+/*	$NetBSD: main.c,v 1.258 2017/03/11 23:59:02 sjg Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,7 +69,7 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: main.c,v 1.257 2017/02/08 17:47:36 christos Exp $";
+static char rcsid[] = "$NetBSD: main.c,v 1.258 2017/03/11 23:59:02 sjg Exp $";
 #else
 #include 
 #ifndef lint
@@ -81,7 +81,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 19
 #if 0
 static char sccsid[] = "@(#)main.c	8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: main.c,v 1.257 2017/02/08 17:47:36 christos Exp $");
+__RCSID("$NetBSD: main.c,v 1.258 2017/03/11 23:59:02 sjg Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -445,7 +445,8 @@ rearg:	
 (void)fprintf(stderr, "%s: %s.\n", progname, strerror(errno));
 exit(2);
 			}
-			if (stat(argvalue, &sa) != -1 &&
+			if (argvalue[0] == '/' &&
+			stat(argvalue, &sa) != -1 &&
 			stat(curdir, &sb) != -1 &&
 			sa.st_ino == sb.st_ino &&
 			sa.st_dev == sb.st_dev)



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

2017-03-11 Thread NONAKA Kimihiro
Module Name:src
Committed By:   nonaka
Date:   Sat Mar 11 23:39:49 UTC 2017

Modified Files:
src/sys/arch/i386/i386: bios32.c

Log Message:
fix build failure.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/i386/i386/bios32.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/i386/i386/bios32.c
diff -u src/sys/arch/i386/i386/bios32.c:1.30 src/sys/arch/i386/i386/bios32.c:1.31
--- src/sys/arch/i386/i386/bios32.c:1.30	Sat Mar 11 07:21:10 2017
+++ src/sys/arch/i386/i386/bios32.c	Sat Mar 11 23:39:49 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: bios32.c,v 1.30 2017/03/11 07:21:10 nonaka Exp $	*/
+/*	$NetBSD: bios32.c,v 1.31 2017/03/11 23:39:49 nonaka Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -86,7 +86,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: bios32.c,v 1.30 2017/03/11 07:21:10 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bios32.c,v 1.31 2017/03/11 23:39:49 nonaka Exp $");
 
 #include 
 #include 
@@ -188,9 +188,7 @@ bios32_init(void)
 			goto out;
 		}
 	}
-#ifndef XEN
 out:
-#endif
 	pmap_update(pmap_kernel());
 }
 



CVS commit: src/sys/dev/pci

2017-03-11 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Sat Mar 11 21:23:36 UTC 2017

Modified Files:
src/sys/dev/pci: if_iwnreg.h

Log Message:
Add missing comma, else the strings are concatenated (and possibly the
wrong message is used). noted by coverity.

Linux iwlwifi strings seem similar.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/pci/if_iwnreg.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/pci/if_iwnreg.h
diff -u src/sys/dev/pci/if_iwnreg.h:1.15 src/sys/dev/pci/if_iwnreg.h:1.16
--- src/sys/dev/pci/if_iwnreg.h:1.15	Sun Nov  9 14:40:54 2014
+++ src/sys/dev/pci/if_iwnreg.h	Sat Mar 11 21:23:36 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_iwnreg.h,v 1.15 2014/11/09 14:40:54 nonaka Exp $	*/
+/*	$NetBSD: if_iwnreg.h,v 1.16 2017/03/11 21:23:36 maya Exp $	*/
 /*	$OpenBSD: if_iwnreg.h,v 1.49 2014/09/09 18:56:24 sthen Exp $	*/
 
 /*-
@@ -1940,7 +1940,7 @@ static const char * const iwn_fw_errmsg[
 	"NMI_INTERRUPT_DATA_ACTION_PT",
 	"NMI_TRM_HW_ER",
 	"NMI_INTERRUPT_TRM",
-	"NMI_INTERRUPT_BREAKPOINT"
+	"NMI_INTERRUPT_BREAKPOINT",
 	"DEBUG_0",
 	"DEBUG_1",
 	"DEBUG_2",



CVS commit: src/doc

2017-03-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Mar 11 18:24:22 UTC 2017

Modified Files:
src/doc: CHANGES

Log Message:
new sqlite3 tzcode


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

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

Modified files:

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.2260 src/doc/CHANGES:1.2261
--- src/doc/CHANGES:1.2260	Wed Mar  1 05:32:09 2017
+++ src/doc/CHANGES	Sat Mar 11 13:24:22 2017
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2260 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2261 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -483,3 +483,5 @@ Changes from NetBSD 7.0 to NetBSD 8.0:
 	siginfo(2): Add new si_code values for SIGTRAP: TRAP_SCE and TRAP_SCX
 		[kamil 20170228]
 	zoneinfo: Import tzdata2017a.  [kre 20170301]
+	sqlite3: Import 3.17.0. [christos 20170311]
+	libc: Update to tzcode2017a. [christos 20170311]



CVS commit: src/lib/libc/time

2017-03-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Mar 11 18:23:14 UTC 2017

Modified Files:
src/lib/libc/time: CONTRIBUTING Makefile NEWS README Theory asctime.c
localtime.c private.h strftime.3 strftime.c tz-art.htm tz-link.htm
version zdump.8 zdump.c zic.c

Log Message:
merge 2017a


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/time/CONTRIBUTING
cvs rdiff -u -r1.36 -r1.37 src/lib/libc/time/Makefile
cvs rdiff -u -r1.19 -r1.20 src/lib/libc/time/NEWS
cvs rdiff -u -r1.11 -r1.12 src/lib/libc/time/README
cvs rdiff -u -r1.22 -r1.23 src/lib/libc/time/Theory
cvs rdiff -u -r1.20 -r1.21 src/lib/libc/time/asctime.c
cvs rdiff -u -r1.105 -r1.106 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.49 -r1.50 src/lib/libc/time/private.h
cvs rdiff -u -r1.32 -r1.33 src/lib/libc/time/strftime.3
cvs rdiff -u -r1.38 -r1.39 src/lib/libc/time/strftime.c
cvs rdiff -u -r1.15 -r1.16 src/lib/libc/time/tz-art.htm \
src/lib/libc/time/zdump.8
cvs rdiff -u -r1.29 -r1.30 src/lib/libc/time/tz-link.htm
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/time/version
cvs rdiff -u -r1.45 -r1.46 src/lib/libc/time/zdump.c
cvs rdiff -u -r1.67 -r1.68 src/lib/libc/time/zic.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/time/CONTRIBUTING
diff -u src/lib/libc/time/CONTRIBUTING:1.1 src/lib/libc/time/CONTRIBUTING:1.2
--- src/lib/libc/time/CONTRIBUTING:1.1	Tue Mar 15 11:16:01 2016
+++ src/lib/libc/time/CONTRIBUTING	Sat Mar 11 13:23:14 2017
@@ -18,10 +18,10 @@ data should contain commentary citing re
 justification.
 
 Please submit changes against either the latest release in
- or the master branch of the experimental
-Git repository.  If you use Git the following workflow may be helpful:
+ or the master branch of the development
+repository.  If you use Git the following workflow may be helpful:
 
-  * Copy the experimental repository.
+  * Copy the development repository.
 
   git clone https://github.com/eggert/tz.git
   cd tz

Index: src/lib/libc/time/Makefile
diff -u src/lib/libc/time/Makefile:1.36 src/lib/libc/time/Makefile:1.37
--- src/lib/libc/time/Makefile:1.36	Fri Nov  4 15:41:53 2016
+++ src/lib/libc/time/Makefile	Sat Mar 11 13:23:14 2017
@@ -72,11 +72,11 @@ MANDIR=		$(TOPDIR)/man
 
 LIBDIR=		$(TOPDIR)/lib
 
-# If you always want time values interpreted as "seconds since the epoch
-# (not counting leap seconds)", use
+# If you want only POSIX time, with time values interpreted as
+# seconds since the epoch (not counting leap seconds), use
 #	REDO=		posix_only
-# below.  If you always want right time values interpreted as "seconds since
-# the epoch" (counting leap seconds)", use
+# below.  If you want want only "right" time, with values interpreted
+# as seconds since the epoch (counting leap seconds), use
 #	REDO=		right_only
 # below.  If you want both sets of data available, with leap seconds not
 # counted normally, use
@@ -85,7 +85,10 @@ LIBDIR=		$(TOPDIR)/lib
 # normally, use
 #	REDO=		right_posix
 # below.  POSIX mandates that leap seconds not be counted; for compatibility
-# with it, use "posix_only" or "posix_right".
+# with it, use "posix_only" or "posix_right".  Use POSIX time on systems with
+# leap smearing; this can work better than unsmeared "right" time with
+# applications that are not leap second aware, and is closer to unsmeared
+# "right" time than unsmeared POSIX time is (e.g., 0.5 vs 1.0 s max error).
 
 REDO=		posix_right
 
@@ -166,7 +169,7 @@ GCC_DEBUG_FLAGS = -Dlint -g3 -O3 -fno-co
 	-Wshadow -Wstrict-prototypes -Wsuggest-attribute=const \
 	-Wsuggest-attribute=format -Wsuggest-attribute=noreturn \
 	-Wsuggest-attribute=pure -Wtrampolines \
-	-Wunused -Wwrite-strings \
+	-Wundef -Wunused -Wwrite-strings \
 	-Wno-address -Wno-format-nonliteral -Wno-sign-compare \
 	-Wno-type-limits -Wno-unused-parameter
 #
@@ -543,7 +546,8 @@ force_tzs:	$(TZS_NEW)
 		cp $(TZS_NEW) $(TZS)
 
 libtz.a:	$(LIBOBJS)
-		$(AR) ru $@ $(LIBOBJS)
+		rm -f $@
+		$(AR) -rc $@ $(LIBOBJS)
 		$(RANLIB) $@
 
 date:		$(DATEOBJS)

Index: src/lib/libc/time/NEWS
diff -u src/lib/libc/time/NEWS:1.19 src/lib/libc/time/NEWS:1.20
--- src/lib/libc/time/NEWS:1.19	Fri Nov  4 15:41:53 2016
+++ src/lib/libc/time/NEWS	Sat Mar 11 13:23:14 2017
@@ -1,5 +1,154 @@
 News for the tz database
 
+Release 2017a - 2017-02-28 00:05:36 -0800
+
+  Briefly: Southern Chile moves from -04/-03 to -03, and Mongolia
+  discontinues DST.
+
+  Changes to future time stamps
+
+Mongolia no longer observes DST.  (Thanks to Ganbold Tsagaankhuu.)
+
+Chile's Region of Magallanes moves from -04/-03 to -03 year-round.
+Its clocks diverge from America/Santiago starting 2017-05-13 at
+23:00, hiving off a new zone America/Punta_Arenas.  Although the
+Chilean government says this change expires in May 2019, for now
+assume it's permanent.  (Thanks to Juan 

CVS commit: src/distrib/sets/lists

2017-03-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Mar 11 16:36:01 UTC 2017

Modified Files:
src/distrib/sets/lists/base: shl.mi
src/distrib/sets/lists/debug: shl.mi

Log Message:
bump libsqlite3


To generate a diff of this commit:
cvs rdiff -u -r1.803 -r1.804 src/distrib/sets/lists/base/shl.mi
cvs rdiff -u -r1.163 -r1.164 src/distrib/sets/lists/debug/shl.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/base/shl.mi
diff -u src/distrib/sets/lists/base/shl.mi:1.803 src/distrib/sets/lists/base/shl.mi:1.804
--- src/distrib/sets/lists/base/shl.mi:1.803	Thu Feb 16 03:39:10 2017
+++ src/distrib/sets/lists/base/shl.mi	Sat Mar 11 11:36:01 2017
@@ -1,4 +1,4 @@
-# $NetBSD: shl.mi,v 1.803 2017/02/16 08:39:10 knakahara Exp $
+# $NetBSD: shl.mi,v 1.804 2017/03/11 16:36:01 christos Exp $
 #
 # Note:	Don't delete entries from here - mark them as "obsolete" instead,
 #	unless otherwise stated below.
@@ -775,7 +775,7 @@
 ./usr/lib/libsl.so.6.0base-krb5-shlib		compatfile,kerberos
 ./usr/lib/libsqlite3.sobase-sys-shlib		compatfile
 ./usr/lib/libsqlite3.so.1			base-sys-shlib		compatfile
-./usr/lib/libsqlite3.so.1.2			base-sys-shlib		compatfile
+./usr/lib/libsqlite3.so.1.3			base-sys-shlib		compatfile
 ./usr/lib/libss.sobase-obsolete		obsolete
 ./usr/lib/libssh.sobase-secsh-shlib	compatfile,crypto
 ./usr/lib/libssh.so.29base-secsh-shlib	compatfile,crypto

Index: src/distrib/sets/lists/debug/shl.mi
diff -u src/distrib/sets/lists/debug/shl.mi:1.163 src/distrib/sets/lists/debug/shl.mi:1.164
--- src/distrib/sets/lists/debug/shl.mi:1.163	Thu Feb 16 03:39:10 2017
+++ src/distrib/sets/lists/debug/shl.mi	Sat Mar 11 11:36:01 2017
@@ -1,4 +1,4 @@
-# $NetBSD: shl.mi,v 1.163 2017/02/16 08:39:10 knakahara Exp $
+# $NetBSD: shl.mi,v 1.164 2017/03/11 16:36:01 christos Exp $
 ./usr/lib/libbfd_g.a		comp-c-debuglib	debuglib,compatfile,binutils
 ./usr/libdata/debug/lib		base-sys-usr	debug,dynamicroot,compatdir
 ./usr/libdata/debug/lib/libblacklist.so.0.0.debug		comp-sys-debug	debug,dynamicroot
@@ -264,7 +264,7 @@
 ./usr/libdata/debug/usr/lib/libsaslc.so.0.0.debug		comp-sys-debug	debug,compatfile,crypto
 ./usr/libdata/debug/usr/lib/libskey.so.2.0.debug		comp-sys-debug	debug,compatfile,skey
 ./usr/libdata/debug/usr/lib/libsl.so.6.0.debug			comp-krb5-debug	debug,compatfile,kerberos
-./usr/libdata/debug/usr/lib/libsqlite3.so.1.2.debug		comp-sys-debug	debug,compatfile
+./usr/libdata/debug/usr/lib/libsqlite3.so.1.3.debug		comp-sys-debug	debug,compatfile
 ./usr/libdata/debug/usr/lib/libssh.so.29.0.debug		comp-secsh-debug	debug,compatfile,crypto
 ./usr/libdata/debug/usr/lib/libssl.so.12.0.debug		comp-crypto-debug	debug,compatfile,crypto
 ./usr/libdata/debug/usr/lib/libstdc++.so.7.3.debug		comp-sys-debug	debug,compatfile,gcc=48,cxx,libstdcxx



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

2017-03-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Mar 11 16:34:34 UTC 2017

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

Log Message:
new sqlite man pages


To generate a diff of this commit:
cvs rdiff -u -r1.2113 -r1.2114 src/distrib/sets/lists/comp/mi

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

Modified files:

Index: src/distrib/sets/lists/comp/mi
diff -u src/distrib/sets/lists/comp/mi:1.2113 src/distrib/sets/lists/comp/mi:1.2114
--- src/distrib/sets/lists/comp/mi:1.2113	Fri Mar 10 04:12:46 2017
+++ src/distrib/sets/lists/comp/mi	Sat Mar 11 11:34:34 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.2113 2017/03/10 09:12:46 martin Exp $
+#	$NetBSD: mi,v 1.2114 2017/03/11 16:34:34 christos Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 ./etc/mtree/set.compcomp-sys-root
@@ -4737,6 +4737,7 @@
 ./usr/share/man/cat3/SQLITE_CONFIG_SINGLETHREAD.0	comp-c-catman		.cat
 ./usr/share/man/cat3/SQLITE_CREATE_INDEX.0	comp-c-catman		.cat
 ./usr/share/man/cat3/SQLITE_DBCONFIG_LOOKASIDE.0	comp-c-catman		.cat
+./usr/share/man/cat3/SQLITE_DBCONFIG_MAINDBNAME.0 comp-c-catman .cat
 ./usr/share/man/cat3/SQLITE_DBSTATUS_LOOKASIDE_USED.0	comp-c-catman		.cat
 ./usr/share/man/cat3/SQLITE_DENY.0	comp-c-catman		.cat
 ./usr/share/man/cat3/SQLITE_DETERMINISTIC.0	comp-c-catman		.cat
@@ -4759,6 +4760,7 @@
 ./usr/share/man/cat3/SQLITE_STMTSTATUS_FULLSCAN_STEP.0	comp-c-catman		.cat
 ./usr/share/man/cat3/SQLITE_SYNC_NORMAL.0	comp-c-catman		.cat
 ./usr/share/man/cat3/SQLITE_TESTCTRL_FIRST.0	comp-c-catman		.cat
+./usr/share/man/cat3/SQLITE_TRACE_STMT.0 comp-c-catman .cat
 ./usr/share/man/cat3/SQLITE_UTF8.0	comp-c-catman		.cat
 ./usr/share/man/cat3/SQLITE_VERSION.0	comp-c-catman		.cat
 ./usr/share/man/cat3/SQLITE_VTAB_CONSTRAINT_SUPPORT.0	comp-c-catman		.cat
@@ -9050,6 +9052,7 @@
 ./usr/share/man/cat3/sqlite3.0	comp-c-catman		.cat
 ./usr/share/man/cat3/sqlite3_aggregate_context.0	comp-c-catman		.cat
 ./usr/share/man/cat3/sqlite3_aggregate_count.0	comp-c-catman		.cat
+./usr/share/man/cat3/sqlite3_api_routines.0 comp-c-catman .cat
 ./usr/share/man/cat3/sqlite3_auto_extension.0	comp-c-catman		.cat
 ./usr/share/man/cat3/sqlite3_backup.0	comp-c-catman		.cat
 ./usr/share/man/cat3/sqlite3_backup_init.0	comp-c-catman		.cat
@@ -9067,6 +9070,7 @@
 ./usr/share/man/cat3/sqlite3_busy_handler.0	comp-c-catman		.cat
 ./usr/share/man/cat3/sqlite3_busy_timeout.0	comp-c-catman		.cat
 ./usr/share/man/cat3/sqlite3_cancel_auto_extension.0	comp-c-catman		.cat
+./usr/share/man/cat3/sqlite3_changegroup.0 comp-c-catman .cat
 ./usr/share/man/cat3/sqlite3_changes.0	comp-c-catman		.cat
 ./usr/share/man/cat3/sqlite3_changeset_iter.0	comp-3-catman	.cat
 ./usr/share/man/cat3/sqlite3_clear_bindings.0	comp-c-catman		.cat
@@ -9149,6 +9153,7 @@
 ./usr/share/man/cat3/sqlite3_snapshot_free.0	comp-3-catman	.cat
 ./usr/share/man/cat3/sqlite3_snapshot_get.0	comp-3-catman	.cat
 ./usr/share/man/cat3/sqlite3_snapshot_open.0	comp-3-catman	.cat
+./usr/share/man/cat3/sqlite3_snapshot_recover.0 comp-c-catman .cat
 ./usr/share/man/cat3/sqlite3_soft_heap_limit.0	comp-c-catman		.cat
 ./usr/share/man/cat3/sqlite3_soft_heap_limit64.0	comp-c-catman		.cat
 ./usr/share/man/cat3/sqlite3_sql.0	comp-c-catman		.cat
@@ -9170,6 +9175,7 @@
 ./usr/share/man/cat3/sqlite3_threadsafe.0	comp-c-catman		.cat
 ./usr/share/man/cat3/sqlite3_total_changes.0	comp-c-catman		.cat
 ./usr/share/man/cat3/sqlite3_trace.0	comp-c-catman		.cat
+./usr/share/man/cat3/sqlite3_trace_v2.0 comp-c-catman .cat
 ./usr/share/man/cat3/sqlite3_unlock_notify.0	comp-c-catman		.cat
 ./usr/share/man/cat3/sqlite3_update_hook.0	comp-c-catman		.cat
 ./usr/share/man/cat3/sqlite3_uri_parameter.0	comp-c-catman		.cat
@@ -9189,7 +9195,10 @@
 ./usr/share/man/cat3/sqlite3_wal_checkpoint.0	comp-c-catman		.cat
 ./usr/share/man/cat3/sqlite3_wal_checkpoint_v2.0	comp-c-catman		.cat
 ./usr/share/man/cat3/sqlite3_wal_hook.0	comp-c-catman		.cat
+./usr/share/man/cat3/sqlite3changegroup_add.0 comp-c-catman .cat
+./usr/share/man/cat3/sqlite3changegroup_delete.0 comp-c-catman .cat
 ./usr/share/man/cat3/sqlite3changegroup_new.0	comp-3-catman	.cat
+./usr/share/man/cat3/sqlite3changegroup_output.0 comp-c-catman .cat
 ./usr/share/man/cat3/sqlite3changeset_apply.0	comp-3-catman	.cat
 ./usr/share/man/cat3/sqlite3changeset_apply_strm.0	comp-3-catman	.cat
 ./usr/share/man/cat3/sqlite3changeset_concat.0	comp-3-catman	.cat
@@ -12211,6 +12220,7 @@
 ./usr/share/man/html3/SQLITE_CONFIG_SINGLETHREAD.html	comp-c-htmlman		html
 ./usr/share/man/html3/SQLITE_CREATE_INDEX.html	comp-c-htmlman		html
 ./usr/share/man/html3/SQLITE_DBCONFIG_LOOKASIDE.html	comp-c-htmlman		html
+./usr/share/man/html3/SQLITE_DBCONFIG_MAINDBNAME.html comp-c-htmlman html
 ./usr/share/man/html3/SQLITE_DBSTATUS_LOOKASIDE_USED.html	comp-c-htmlman		html
 ./usr/share/man/html3/SQLITE_DENY.html	comp-c-htmlman		html
 ./usr/share/man/html3/SQLITE_DETERMINISTIC.html	comp-c-htmlman		html
@@ 

CVS commit: src/external/public-domain/sqlite

2017-03-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Mar 11 16:29:52 UTC 2017

Modified Files:
src/external/public-domain/sqlite/dist: shell.c sqlite3.c
src/external/public-domain/sqlite/lib: shlib_version
src/external/public-domain/sqlite/man: Makefile SQLITE_ACCESS_EXISTS.3
SQLITE_CHANGESET_DATA.3 SQLITE_CHANGESET_OMIT.3
SQLITE_CHECKPOINT_PASSIVE.3 SQLITE_CONFIG_SINGLETHREAD.3
SQLITE_CREATE_INDEX.3 SQLITE_DBSTATUS_LOOKASIDE_USED.3
SQLITE_DENY.3 SQLITE_DETERMINISTIC.3 SQLITE_FCNTL_LOCKSTATE.3
SQLITE_INDEX_CONSTRAINT_EQ.3 SQLITE_INDEX_SCAN_UNIQUE.3
SQLITE_INTEGER.3 SQLITE_IOCAP_ATOMIC.3 SQLITE_IOERR_READ.3
SQLITE_LIMIT_LENGTH.3 SQLITE_LOCK_NONE.3 SQLITE_MUTEX_FAST.3
SQLITE_OK.3 SQLITE_OPEN_READONLY.3 SQLITE_ROLLBACK.3
SQLITE_SCANSTAT_NLOOP.3 SQLITE_SHM_NLOCK.3 SQLITE_SHM_UNLOCK.3
SQLITE_STATUS_MEMORY_USED.3 SQLITE_STMTSTATUS_FULLSCAN_STEP.3
SQLITE_SYNC_NORMAL.3 SQLITE_TESTCTRL_FIRST.3 SQLITE_UTF8.3
SQLITE_VERSION.3 SQLITE_VTAB_CONSTRAINT_SUPPORT.3 sqlite3.3
sqlite3_aggregate_context.3 sqlite3_aggregate_count.3
sqlite3_auto_extension.3 sqlite3_backup.3 sqlite3_backup_init.3
sqlite3_bind_blob.3 sqlite3_bind_parameter_count.3
sqlite3_bind_parameter_index.3 sqlite3_bind_parameter_name.3
sqlite3_blob.3 sqlite3_blob_bytes.3 sqlite3_blob_close.3
sqlite3_blob_open.3 sqlite3_blob_read.3 sqlite3_blob_reopen.3
sqlite3_blob_write.3 sqlite3_busy_handler.3 sqlite3_busy_timeout.3
sqlite3_cancel_auto_extension.3 sqlite3_changes.3
sqlite3_changeset_iter.3 sqlite3_clear_bindings.3 sqlite3_close.3
sqlite3_collation_needed.3 sqlite3_column_blob.3
sqlite3_column_count.3 sqlite3_column_database_name.3
sqlite3_column_decltype.3 sqlite3_column_name.3
sqlite3_commit_hook.3 sqlite3_compileoption_used.3
sqlite3_complete.3 sqlite3_config.3 sqlite3_context.3
sqlite3_context_db_handle.3 sqlite3_create_collation.3
sqlite3_create_function.3 sqlite3_create_module.3
sqlite3_data_count.3 sqlite3_data_directory.3
sqlite3_db_cacheflush.3 sqlite3_db_config.3 sqlite3_db_filename.3
sqlite3_db_handle.3 sqlite3_db_mutex.3 sqlite3_db_readonly.3
sqlite3_db_release_memory.3 sqlite3_db_status.3
sqlite3_declare_vtab.3 sqlite3_destructor_type.3
sqlite3_enable_load_extension.3 sqlite3_enable_shared_cache.3
sqlite3_errcode.3 sqlite3_exec.3 sqlite3_extended_result_codes.3
sqlite3_file.3 sqlite3_file_control.3 sqlite3_finalize.3
sqlite3_get_autocommit.3 sqlite3_get_auxdata.3 sqlite3_get_table.3
sqlite3_index_info.3 sqlite3_initialize.3 sqlite3_interrupt.3
sqlite3_io_methods.3 sqlite3_last_insert_rowid.3 sqlite3_limit.3
sqlite3_load_extension.3 sqlite3_log.3 sqlite3_malloc.3
sqlite3_mem_methods.3 sqlite3_memory_used.3 sqlite3_module.3
sqlite3_mprintf.3 sqlite3_mutex.3 sqlite3_mutex_alloc.3
sqlite3_mutex_held.3 sqlite3_mutex_methods.3 sqlite3_next_stmt.3
sqlite3_open.3 sqlite3_overload_function.3 sqlite3_pcache.3
sqlite3_pcache_methods2.3 sqlite3_pcache_page.3 sqlite3_prepare.3
sqlite3_preupdate_hook.3 sqlite3_progress_handler.3
sqlite3_randomness.3 sqlite3_release_memory.3 sqlite3_reset.3
sqlite3_reset_auto_extension.3 sqlite3_result_blob.3
sqlite3_result_subtype.3 sqlite3_session.3 sqlite3_set_authorizer.3
sqlite3_sleep.3 sqlite3_snapshot.3 sqlite3_snapshot_cmp.3
sqlite3_snapshot_free.3 sqlite3_snapshot_get.3
sqlite3_snapshot_open.3 sqlite3_soft_heap_limit.3
sqlite3_soft_heap_limit64.3 sqlite3_sql.3 sqlite3_status.3
sqlite3_step.3 sqlite3_stmt.3 sqlite3_stmt_busy.3
sqlite3_stmt_readonly.3 sqlite3_stmt_scanstatus.3
sqlite3_stmt_scanstatus_reset.3 sqlite3_stmt_status.3
sqlite3_strglob.3 sqlite3_stricmp.3 sqlite3_strlike.3
sqlite3_system_errno.3 sqlite3_table_column_metadata.3
sqlite3_temp_directory.3 sqlite3_test_control.3
sqlite3_threadsafe.3 sqlite3_total_changes.3 sqlite3_trace.3
sqlite3_unlock_notify.3 sqlite3_update_hook.3
sqlite3_uri_parameter.3 sqlite3_user_data.3 sqlite3_value.3
sqlite3_value_blob.3 sqlite3_value_dup.3 sqlite3_value_subtype.3
sqlite3_version.3 sqlite3_vfs.3 sqlite3_vfs_find.3 sqlite3_vtab.3
sqlite3_vtab_config.3 sqlite3_vtab_cursor.3
sqlite3_vtab_on_conflict.3 sqlite3_wal_autocheckpoint.3
sqlite3_wal_checkpoint.3 sqlite3_wal_checkpoint_v2.3
sqlite3_wal_hook.3 sqlite3changegroup_new.3
sql

CVS import: src/external/public-domain/sqlite/dist

2017-03-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Mar 11 16:06:57 UTC 2017

Update of /cvsroot/src/external/public-domain/sqlite/dist
In directory ivanova.netbsd.org:/tmp/cvs-serv9094

Log Message:
2017-02-13 (3.17.0)

Approximately 25% better performance from the R-Tree extension.
Uses compiler built-ins (ex: __builtin_bswap32() or _byteswap_ulong()) for 
byteswapping when available.
Uses the sqlite3_blob key/value access object instead of SQL for pulling 
content out of R-Tree nodes
Other miscellaneous enhancements such as loop unrolling.
Add the SQLITE_DEFAULT_LOOKASIDE compile-time option.
Increase the default lookaside size from 512,125 to 1200,100 as this provides 
better performance while only adding 56KB of extra memory per connection. 
Memory-sensitive applications can restore the old default at compile-time, 
start-time, or run-time.
Use compiler built-ins __builtin_sub_overflow(), __builtin_add_overflow(), and 
__builtin_mul_overflow() when available. (All compiler built-ins can be omitted 
with the SQLITE_DISABLE_INTRINSIC compile-time option.)
Added the SQLITE_ENABLE_NULL_TRIM compile-time option, which can result in 
significantly smaller database files for some applications, at the risk of 
being incompatible with older versions of SQLite.
Change SQLITE_DEFAULT_PCACHE_INITSZ from 100 to 20, for improved performance.
Added the SQLITE_UINT64_TYPE compile-time option as an analog to 
SQLITE_INT64_TYPE.
Perform some UPDATE operations in a single pass instead of in two passes.
Enhance the session extension to support WITHOUT ROWID tables.
Fixed performance problems and potential stack overflows when creating views 
from multi-row VALUES clauses with hundreds of thousands of rows.
Added the sha1.c extension.
In the command-line shell, enhance the ".mode" command so that it restores the 
default column and row separators for modes "line", "list", "column", and "tcl".
Enhance the SQLITE_DIRECT_OVERFLOW_READ option so that it works in WAL mode as 
long as the pages being read are not in the WAL file.
Enhance the LEMON parser generator so that it can store the parser object as a 
stack variable rather than allocating space from the heap and make use of that 
enhancement in the amalgamation.
Other performance improvements. Uses about 6.5% fewer CPU cycles.
Bug Fixes:

Throw an error if the ON clause of a LEFT JOIN references tables to the right 
of the ON clause. This is the same behavior as PostgreSQL. Formerly, SQLite 
silently converted the LEFT JOIN into an INNER JOIN. Fix for ticket 
25e335f802dd.
Use the correct affinity for columns of automatic indexes. Ticket 
7ffd1ca1d2ad4ec.
Ensure that the sqlite3_blob_reopen() interface can correctly handle short 
rows. Fix for ticket e6e962d6b0f06f46e.
Hashes:

SQLITE_SOURCE_ID: "2017-02-13 16:02:40 ada05cfa86ad7f5645450ac7a2a21c9aa6e57d2c"
SHA1 for sqlite3.c: cc7d708bb073c44102a59ed63ce6142da1f174d1
2017-01-06 (3.16.2)

Fix the REPLACE statement for WITHOUT ROWID tables that lack secondary indexes 
so that it works correctly with triggers and foreign keys. This was a new bug 
caused by performance optimizations added in version 3.16.0. Ticket 30027b613b4
Fix the sqlite3_value_text() interface so that it correctly translates content 
generated by zeroblob() into a string of all 0x00 characters. This is a 
long-standing issue discovered after the 3.16.1 release by OSS-Fuzz
Fix the bytecode generator to deal with a subquery in the FROM clause that is 
itself a UNION ALL where one side of the UNION ALL is a view that contains an 
ORDER BY. This is a long-standing issue that was discovered after the release 
of 3.16.1. See ticket 190c2507.
Adjust the sqlite3_column_count() API so it more often returns the same values 
for PRAGMA statements as it did in prior releases, to minimize disruption to 
applications that might be using that interface in unexpected ways.
Hashes:

SQLITE_SOURCE_ID: "2017-01-06 16:32:41 a65a62893ca8319e89e48b8a38cf8a59c69a8209"
SHA1 for sqlite3.c: 2bebdc3f24911c0d12b6d6c0123c3f84d6946b08
2017-01-03 (3.16.1)

Fix a bug concerning the use of row values within triggers (see ticket 
8c9458e7) that was in version 3.15.0 but was not reported until moments after 
the 3.16.0 release was published.
Hashes:

SQLITE_SOURCE_ID: "2017-01-03 18:27:03 979f04392853b8053817a3eea2fc679947b437fd"
SHA1 for sqlite3.c: 354f6223490b30fd5320b4066b1535e4ce33988d
2017-01-02 (3.16.0)

Uses 9% fewer CPU cycles. (See the CPU performance measurement report for 
details on how this performance increase was computed.)
Added experimental support for PRAGMA functions.
Added the SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE option to sqlite3_db_config().
Enhance the date and time functions so that the 'unixepoch' modifier works for 
the full span of supported dates.
Changed the default configuration of the lookaside memory allocator from 500 
slots of 128 bytes each into 125 slots of 512 bytes each.
Enhanced "WHERE x NOT NULL" partial indexes so that they are usable if t

CVS commit: [netbsd-7] src

2017-03-11 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sat Mar 11 16:03:55 UTC 2017

Modified Files:
src/doc [netbsd-7]: CHANGES-7.1
src/sys/arch/arm/arm32 [netbsd-7]: pmap.c

Log Message:
fix fallout from ticket #1366: __nothing is nothing on netbsd-7


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.164 -r1.1.2.165 src/doc/CHANGES-7.1
cvs rdiff -u -r1.295.2.9 -r1.295.2.10 src/sys/arch/arm/arm32/pmap.c

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

Modified files:

Index: src/doc/CHANGES-7.1
diff -u src/doc/CHANGES-7.1:1.1.2.164 src/doc/CHANGES-7.1:1.1.2.165
--- src/doc/CHANGES-7.1:1.1.2.164	Sat Mar 11 08:49:11 2017
+++ src/doc/CHANGES-7.1	Sat Mar 11 16:03:55 2017
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-7.1,v 1.1.2.164 2017/03/11 08:49:11 snj Exp $
+# $NetBSD: CHANGES-7.1,v 1.1.2.165 2017/03/11 16:03:55 snj Exp $
 
 A complete list of changes from the NetBSD 7.0 release to the NetBSD 7.1
 release:
@@ -8976,7 +8976,7 @@ sys/dev/pci/if_wmvar.h1.33 
 - Fix typo in comment.
 	[msaitoh, ticket #1372]
 
-sys/arch/arm/arm32/pmap.c			1.343, 1.344
+sys/arch/arm/arm32/pmap.c			1.343, 1.344 via patch
 sys/arch/arm/include/arm32/pmap.h		1.145
 sys/arch/evbarm/gumstix/gumstix_machdep.c	1.58 via patch
 
@@ -9000,7 +9000,7 @@ sys/conf/copyright1.14, 1.15
 
 distrib/notes/common/main			patched by hand
 gnu/usr.bin/groff/tmac/mdoc.local		patched by hand
-sys/sys/param.h			i		patched by hand
+sys/sys/param.h	patched by hand
 
 	Welcome to 7.1!
 	[snj]

Index: src/sys/arch/arm/arm32/pmap.c
diff -u src/sys/arch/arm/arm32/pmap.c:1.295.2.9 src/sys/arch/arm/arm32/pmap.c:1.295.2.10
--- src/sys/arch/arm/arm32/pmap.c:1.295.2.9	Sat Mar 11 07:40:21 2017
+++ src/sys/arch/arm/arm32/pmap.c	Sat Mar 11 16:03:54 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.c,v 1.295.2.9 2017/03/11 07:40:21 snj Exp $	*/
+/*	$NetBSD: pmap.c,v 1.295.2.10 2017/03/11 16:03:54 snj Exp $	*/
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -217,7 +217,7 @@
 #include 
 //#include 
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.295.2.9 2017/03/11 07:40:21 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.295.2.10 2017/03/11 16:03:54 snj Exp $");
 
 //#define PMAP_DEBUG
 #ifdef PMAP_DEBUG
@@ -979,7 +979,7 @@ pmap_pte_sync_current(pmap_t pm, pt_entr
 
 # define PTE_SYNC_CURRENT(pm, ptep)	pmap_pte_sync_current(pm, ptep)
 #else
-# define PTE_SYNC_CURRENT(pm, ptep)	__nothing
+# define PTE_SYNC_CURRENT(pm, ptep)	/* nothing */
 #endif
 
 /*



CVS commit: src/sys/arch/x86/x86

2017-03-11 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sat Mar 11 14:13:39 UTC 2017

Modified Files:
src/sys/arch/x86/x86: pmc.c

Log Message:
Mmh, remove a debug printf I mistakenly added in my previous commit


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/x86/x86/pmc.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/x86/x86/pmc.c
diff -u src/sys/arch/x86/x86/pmc.c:1.2 src/sys/arch/x86/x86/pmc.c:1.3
--- src/sys/arch/x86/x86/pmc.c:1.2	Sat Mar 11 10:33:46 2017
+++ src/sys/arch/x86/x86/pmc.c	Sat Mar 11 14:13:39 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmc.c,v 1.2 2017/03/11 10:33:46 maxv Exp $	*/
+/*	$NetBSD: pmc.c,v 1.3 2017/03/11 14:13:39 maxv Exp $	*/
 
 /*
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: pmc.c,v 1.2 2017/03/11 10:33:46 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmc.c,v 1.3 2017/03/11 14:13:39 maxv Exp $");
 
 #include 
 #include 
@@ -298,8 +298,6 @@ sys_pmc_info(struct lwp *l, struct x86_p
 {
 	struct x86_pmc_info_args rv;
 
-printf("PMCTYPE: %d\n", (int)pmc_type);
-
 	memset(&rv, 0, sizeof(rv));
 
 	rv.vers = PMC_VERSION;



CVS commit: src/sys/dev/usb

2017-03-11 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Sat Mar 11 12:41:14 UTC 2017

Modified Files:
src/sys/dev/usb: uhid.c

Log Message:
memcpy of overlapping arguments is UB. use memmove.
CID 1299071

ok riastradh


To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/sys/dev/usb/uhid.c

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

Modified files:

Index: src/sys/dev/usb/uhid.c
diff -u src/sys/dev/usb/uhid.c:1.98 src/sys/dev/usb/uhid.c:1.99
--- src/sys/dev/usb/uhid.c:1.98	Thu Jul  7 06:55:42 2016
+++ src/sys/dev/usb/uhid.c	Sat Mar 11 12:41:14 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: uhid.c,v 1.98 2016/07/07 06:55:42 msaitoh Exp $	*/
+/*	$NetBSD: uhid.c,v 1.99 2017/03/11 12:41:14 maya Exp $	*/
 
 /*
  * Copyright (c) 1998, 2004, 2008, 2012 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: uhid.c,v 1.98 2016/07/07 06:55:42 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhid.c,v 1.99 2017/03/11 12:41:14 maya Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -613,7 +613,7 @@ uhid_do_ioctl(struct uhid_softc *sc, u_l
 		err = uhidev_get_report(&sc->sc_hdev, re->ucr_report,
 		re->ucr_data, size + extra);
 		if (extra)
-			memcpy(re->ucr_data, re->ucr_data+1, size);
+			memmove(re->ucr_data, re->ucr_data+1, size);
 		if (err)
 			return EIO;
 		break;



CVS commit: src/sys/arch/arm/arm

2017-03-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sat Mar 11 12:19:30 UTC 2017

Modified Files:
src/sys/arch/arm/arm: disassem.c

Log Message:
Fixup the catchall for the media instructions that are currently unhandled
so that swi, etc can match


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/arm/arm/disassem.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/arm/arm/disassem.c
diff -u src/sys/arch/arm/arm/disassem.c:1.34 src/sys/arch/arm/arm/disassem.c:1.35
--- src/sys/arch/arm/arm/disassem.c:1.34	Mon Dec 14 15:29:45 2015
+++ src/sys/arch/arm/arm/disassem.c	Sat Mar 11 12:19:30 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: disassem.c,v 1.34 2015/12/14 15:29:45 skrll Exp $	*/
+/*	$NetBSD: disassem.c,v 1.35 2017/03/11 12:19:30 skrll Exp $	*/
 
 /*
  * Copyright (c) 1996 Mark Brinicombe.
@@ -49,7 +49,7 @@
 
 #include 
 
-__KERNEL_RCSID(0, "$NetBSD: disassem.c,v 1.34 2015/12/14 15:29:45 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disassem.c,v 1.35 2017/03/11 12:19:30 skrll Exp $");
 
 #include 
 
@@ -169,7 +169,7 @@ static const struct arm32_insn arm32_i[]
 { 0x0fe00070, 0x07e00050, "ubfx",	"dmir" },
 { 0xfff000f0, 0xe7f0, "und",	"x" },		/* Special immediate? */
 
-{ 0x0610, 0x0610, "und",	"x" },		/* Remove when done with media */
+{ 0x0e10, 0x0610, "und",	"x" },		/* Remove when done with media */
 
 { 0x0d70, 0x0420, "strt",	"daW" },
 { 0x0d70, 0x0430, "ldrt",	"daW" },



CVS commit: src/sys/dev/ic

2017-03-11 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Sat Mar 11 12:08:57 UTC 2017

Modified Files:
src/sys/dev/ic: isp.c

Log Message:
Don't loop infinitely if the output pointer was changed
Untested, but the change done seems to match the comment above it

CID 980321


To generate a diff of this commit:
cvs rdiff -u -r1.125 -r1.126 src/sys/dev/ic/isp.c

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

Modified files:

Index: src/sys/dev/ic/isp.c
diff -u src/sys/dev/ic/isp.c:1.125 src/sys/dev/ic/isp.c:1.126
--- src/sys/dev/ic/isp.c:1.125	Sat Sep 14 13:09:55 2013
+++ src/sys/dev/ic/isp.c	Sat Mar 11 12:08:57 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: isp.c,v 1.125 2013/09/14 13:09:55 joerg Exp $ */
+/* $NetBSD: isp.c,v 1.126 2017/03/11 12:08:57 maya Exp $ */
 /*
  * Machine and OS Independent (well, as best as possible)
  * code for the Qlogic ISP SCSI adapters.
@@ -43,7 +43,7 @@
  */
 #ifdef	__NetBSD__
 #include 
-__KERNEL_RCSID(0, "$NetBSD: isp.c,v 1.125 2013/09/14 13:09:55 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isp.c,v 1.126 2017/03/11 12:08:57 maya Exp $");
 #include 
 #endif
 #ifdef	__FreeBSD__
@@ -5114,7 +5114,7 @@ again:
 			 * If somebody updated the output pointer, then reset
 			 * optr to be one more than the updated amount.
 			 */
-			while (tsto != oop) {
+			if (tsto != oop) {
 optr = ISP_NXT_QENTRY(tsto,
 RESULT_QUEUE_LEN(isp));
 			}



CVS commit: src

2017-03-11 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sat Mar 11 10:33:46 UTC 2017

Modified Files:
src/sys/arch/x86/include: specialreg.h
src/sys/arch/x86/x86: pmc.c
src/usr.bin/pmc: pmc.c

Log Message:
Add the AMD 10h family, with additional events that I believe are useful,
the DTLB misses on large pages for example.

While here, remove a few K7 flags that do not actually exist on K7 (there
must have been a confusion between K7 and K8); and make the 'pmc list'
command a little more user-friendly.


To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 src/sys/arch/x86/include/specialreg.h
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/x86/x86/pmc.c
cvs rdiff -u -r1.21 -r1.22 src/usr.bin/pmc/pmc.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/x86/include/specialreg.h
diff -u src/sys/arch/x86/include/specialreg.h:1.94 src/sys/arch/x86/include/specialreg.h:1.95
--- src/sys/arch/x86/include/specialreg.h:1.94	Sat Feb 18 16:15:51 2017
+++ src/sys/arch/x86/include/specialreg.h	Sat Mar 11 10:33:46 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: specialreg.h,v 1.94 2017/02/18 16:15:51 maxv Exp $	*/
+/*	$NetBSD: specialreg.h,v 1.95 2017/03/11 10:33:46 maxv Exp $	*/
 
 /*-
  * Copyright (c) 1991 The Regents of the University of California.
@@ -997,94 +997,51 @@
 #define PMC6_RET_SEG_RENAMES		0xd6	/* P-II and P-III only */
 
 /*
- * AMD K7 Event Selector MSR format. [Doc: 22007K.pdf, Feb 2002]
+ * AMD K7. [Doc: 22007K.pdf, Feb 2002]
  */
-
+/* Event Selector MSR format */
 #define K7_EVTSEL_EVENT			0x00ff
 #define K7_EVTSEL_UNIT			0xff00
 #define K7_EVTSEL_UNIT_SHIFT		8
-#define K7_EVTSEL_USR			(1 << 16)
-#define K7_EVTSEL_OS			(1 << 17)
-#define K7_EVTSEL_E			(1 << 18)
-#define K7_EVTSEL_PC			(1 << 19)
-#define K7_EVTSEL_INT			(1 << 20)
-#define K7_EVTSEL_EN			(1 << 22)
-#define K7_EVTSEL_INV			(1 << 23)
+#define K7_EVTSEL_USR			__BIT(16)
+#define K7_EVTSEL_OS			__BIT(17)
+#define K7_EVTSEL_E			__BIT(18)
+#define K7_EVTSEL_PC			__BIT(19)
+#define K7_EVTSEL_INT			__BIT(20)
+#define K7_EVTSEL_EN			__BIT(22)
+#define K7_EVTSEL_INV			__BIT(23)
 #define K7_EVTSEL_COUNTER_MASK		0xff00
 #define K7_EVTSEL_COUNTER_MASK_SHIFT	24
-
-/* Segment Register Loads */
-#define K7_SEGMENT_REG_LOADS		0x20
-
-#define K7_STORES_TO_ACTIVE_INST_STREAM	0x21
-
 /* Data Cache Unit */
 #define K7_DATA_CACHE_ACCESS		0x40
 #define K7_DATA_CACHE_MISS		0x41
 #define K7_DATA_CACHE_REFILL		0x42
 #define K7_DATA_CACHE_REFILL_SYSTEM	0x43
 #define K7_DATA_CACHE_WBACK		0x44
-#define K7_L2_DTLB_HIT			0x45
+#define K7_L1_DTLB_MISS			0x45
 #define K7_L2_DTLB_MISS			0x46
 #define K7_MISALIGNED_DATA_REF		0x47
-#define K7_SYSTEM_REQUEST		0x64
-#define K7_SYSTEM_REQUEST_TYPE		0x65
-
-#define K7_SNOOP_HIT			0x73
-#define K7_SINGLE_BIT_ECC_ERROR		0x74
-#define K7_CACHE_LINE_INVAL		0x75
-#define K7_CYCLES_PROCESSOR_IS_RUNNING	0x76
-#define K7_L2_REQUEST			0x79
-#define K7_L2_REQUEST_BUSY		0x7a
-
 /* Instruction Fetch Unit */
 #define K7_IFU_IFETCH			0x80
 #define K7_IFU_IFETCH_MISS		0x81
 #define K7_IFU_REFILL_FROM_L2		0x82
 #define K7_IFU_REFILL_FROM_SYSTEM	0x83
-#define K7_ITLB_L1_MISS			0x84
-#define K7_ITLB_L2_MISS			0x85
-#define K7_SNOOP_RESYNC			0x86
-#define K7_IFU_STALL			0x87
-
-#define K7_RETURN_STACK_HITS		0x88
-#define K7_RETURN_STACK_OVERFLOW	0x89
-
+#define K7_L1_ITLB_MISS			0x84
+#define K7_L2_ITLB_MISS			0x85
 /* Retired */
 #define K7_RETIRED_INST			0xc0
 #define K7_RETIRED_OPS			0xc1
-#define K7_RETIRED_BRANCHES		0xc2
+#define K7_RETIRED_BRANCH		0xc2
 #define K7_RETIRED_BRANCH_MISPREDICTED	0xc3
 #define K7_RETIRED_TAKEN_BRANCH		0xc4
 #define K7_RETIRED_TAKEN_BRANCH_MISPREDICTED	0xc5
 #define K7_RETIRED_FAR_CONTROL_TRANSFER	0xc6
 #define K7_RETIRED_RESYNC_BRANCH	0xc7
-#define K7_RETIRED_NEAR_RETURNS		0xc8
-#define K7_RETIRED_NEAR_RETURNS_MISPREDICTED	0xc9
-#define K7_RETIRED_INDIRECT_MISPREDICTED	0xca
-
 /* Interrupts */
 #define K7_CYCLES_INT_MASKED		0xcd
 #define K7_CYCLES_INT_PENDING_AND_MASKED	0xce
 #define K7_HW_INTR_RECV			0xcf
 
-#define K7_INSTRUCTION_DECODER_EMPTY	0xd0
-#define K7_DISPATCH_STALLS		0xd1
-#define K7_BRANCH_ABORTS_TO_RETIRE	0xd2
-#define K7_SERIALIZE			0xd3
-#define K7_SEGMENT_LOAD_STALL		0xd4
-#define K7_ICU_FULL			0xd5
-#define K7_RESERVATION_STATIONS_FULL	0xd6
-#define K7_FPU_FULL			0xd7
-#define K7_LS_FULL			0xd8
-#define K7_ALL_QUIET_STALL		0xd9
-#define K7_FAR_TRANSFER_OR_RESYNC_BRANCH_PENDING	0xda
-
-#define K7_BP0_MATCH			0xdc
-#define K7_BP1_MATCH			0xdd
-#define K7_BP2_MATCH			0xde
-#define K7_BP3_MATCH			0xdf
-
 /*
  * AMD 10h family PMCs. [Doc: 31116.pdf, Jan 2013]
  */
@@ -1132,14 +1089,14 @@
 #define F10H_CANCELLED_STORE_LOAD_FORWARD_OPS	0x2A
 #define F10H_SMI_RECEIVED			0x2B
 /*	Data Cache Events		*/
-#define F10H_DATA_CACHE_ACCESSES		0x40
-#define F10H_DATA_CACHE_MISSES			0x41
-#define F10H_DATA_CACHE_REFILLS_FROM_L2		0x42
-#define F10H_DATA_CACHE_REFILLS_FROM_NORTHBRIDGE	0x43
+#

CVS commit: src/doc

2017-03-11 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Sat Mar 11 09:12:13 UTC 2017

Modified Files:
src/doc: HACKS

Log Message:
Remove already fixed HACKS entry. correct path to makeinfo Makefile for
easy reference.


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

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

Modified files:

Index: src/doc/HACKS
diff -u src/doc/HACKS:1.185 src/doc/HACKS:1.186
--- src/doc/HACKS:1.185	Wed Feb 22 12:17:16 2017
+++ src/doc/HACKS	Sat Mar 11 09:12:13 2017
@@ -1,4 +1,4 @@
-# $NetBSD: HACKS,v 1.185 2017/02/22 12:17:16 maya Exp $
+# $NetBSD: HACKS,v 1.186 2017/03/11 09:12:13 maya Exp $
 #
 # This file is intended to document workarounds for currently unsolved
 # (mostly) compiler bugs.
@@ -332,21 +332,10 @@ descr
 	Generate .hx files and copy it in the Makefiles if they changed.
 kcah
 
-hack	MKPIE ldscript for /usr.sbin/crash
-cdate	22 April 2010
-who	christos
-file	src/usr.sbin/crash/Makefile	: 1.5
-file	src/usr.sbin/crash/ldscript.crash	: 1.1
-pr	N/A
-descr
-	fixed in binutils-2.20.1. Linking with MKPIE=yes causes overlapping
-	sections
-kcah
-
 hack	Disable fortification for /usr/bin/makeinfo
 cdata	24 Mar 2014
 who	tron
-file	src/gnu/usr.bin/texinfo/makeinfo/Makefile	: 1.8
+file	src/external/gpl2/texinfo/bin/makeinfo/Makefile	: 1.1
 pr	N/A
 descr
 	If "makeinfo" is compiled with "-D_FORTIFY_SOURCE=2" using GCC 4.8.3



CVS commit: [netbsd-7] src/doc

2017-03-11 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sat Mar 11 08:49:11 UTC 2017

Modified Files:
src/doc [netbsd-7]: CHANGES-7.1

Log Message:
7.1


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.163 -r1.1.2.164 src/doc/CHANGES-7.1

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

Modified files:

Index: src/doc/CHANGES-7.1
diff -u src/doc/CHANGES-7.1:1.1.2.163 src/doc/CHANGES-7.1:1.1.2.164
--- src/doc/CHANGES-7.1:1.1.2.163	Sat Mar 11 07:47:31 2017
+++ src/doc/CHANGES-7.1	Sat Mar 11 08:49:11 2017
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-7.1,v 1.1.2.163 2017/03/11 07:47:31 snj Exp $
+# $NetBSD: CHANGES-7.1,v 1.1.2.164 2017/03/11 08:49:11 snj Exp $
 
 A complete list of changes from the NetBSD 7.0 release to the NetBSD 7.1
 release:
@@ -8998,3 +8998,9 @@ sys/conf/copyright1.14, 1.15
 	Update copyright year.
 	[tsutsui, ticket #1384]
 
+distrib/notes/common/main			patched by hand
+gnu/usr.bin/groff/tmac/mdoc.local		patched by hand
+sys/sys/param.h			i		patched by hand
+
+	Welcome to 7.1!
+	[snj]



CVS commit: [netbsd-7] src

2017-03-11 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sat Mar 11 08:48:42 UTC 2017

Modified Files:
src/distrib/notes/common [netbsd-7]: main
src/gnu/usr.bin/groff/tmac [netbsd-7]: mdoc.local
src/sys/sys [netbsd-7]: param.h

Log Message:
7.1


To generate a diff of this commit:
cvs rdiff -u -r1.510.4.7 -r1.510.4.8 src/distrib/notes/common/main
cvs rdiff -u -r1.75.4.4 -r1.75.4.5 src/gnu/usr.bin/groff/tmac/mdoc.local
cvs rdiff -u -r1.459.2.9 -r1.459.2.10 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/distrib/notes/common/main
diff -u src/distrib/notes/common/main:1.510.4.7 src/distrib/notes/common/main:1.510.4.8
--- src/distrib/notes/common/main:1.510.4.7	Fri Sep 25 04:34:17 2015
+++ src/distrib/notes/common/main	Sat Mar 11 08:48:42 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: main,v 1.510.4.7 2015/09/25 04:34:17 snj Exp $
+.\"	$NetBSD: main,v 1.510.4.8 2017/03/11 08:48:42 snj Exp $
 .\"
 .\" Copyright (c) 1999-2012 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -50,7 +50,7 @@
 .as MACHINE_LIST " sgimips shark sparc sparc64 sun2 sun3 vax x68k xen zaurus .
 .so \*[.CURDIR]/../common/macros
 .
-.Dd September 25, 2015
+.Dd March 11, 2017
 .Dt INSTALL 8
 .Os NetBSD
 .Sh NAME
@@ -480,32 +480,24 @@ possible,
 would not exist.
 .
 .if \n[FOR_RELEASE] \{\
-.Ss Changes Between The NetBSD 6.0 and 7.0 Releases
+.Ss Changes Between The NetBSD 7.0 and 7.1 Releases
 .Pp
 The
 .Nx
 \*V release
-provides many significant changes, including support for many new
-devices, hundreds of bug fixes, new and updated kernel subsystems, and
-numerous userland enhancements.
+brings support for new devices, the integration of many bug fixes,
+and many userland improvements.
 The result of these improvements is a stable operating system fit for
 production use that rivals most commercially available systems.
 .Pp
-It is impossible to completely summarize the massive development that
-went into the
-.Nx
-\*V release.
 See
-.Lk http://www.NetBSD.org/releases/formal-7/NetBSD-7.0.html
+.Lk http://www.NetBSD.org/releases/formal-7/NetBSD-7.1.html
 for some of the more noteworthy changes in this release.
 .Pp
 A more extensive list of changes can be found in the
-CHANGES:
-.Lk http://ftp.NetBSD.org/pub/NetBSD/NetBSD-7.0/CHANGES
-and
-CHANGES-7.0:
-.Lk http://ftp.NetBSD.org/pub/NetBSD/NetBSD-7.0/CHANGES-7.0
-files in the top level directory of the NetBSD 7.0 release tree.
+CHANGES-7.1:
+.Lk http://ftp.NetBSD.org/pub/NetBSD/NetBSD-7.1/CHANGES-7.1
+file in the top level directory of the NetBSD 7.1 release tree.
 .Pp
 .\} \" \n[FOR_RELEASE]
 .
@@ -573,6 +565,8 @@ The root directory of the
 Changes between the 6.0 and 7.0 releases.
 .It Li CHANGES-7.0
 Changes between the initial 7.0 branch and the final release of 7.0.
+.It Li CHANGES-7.1
+Changes between the final release of 7.0 and the final release of 7.1.
 .It Li CHANGES.prev
 Changes in previous
 .Nx
@@ -755,7 +749,7 @@ section near the beginning of this docum
 .Pp
 In
 .Nx
-7.0, most ARM ports (all but acorn26, acorn32, and epoc32) have switched
+7.0, most ARM ports (all but acorn26, acorn32, and epoc32) were switched
 to the official standard ABI
 .Pq EABI5
 which is recommended by ARM for ELF binaries.

Index: src/gnu/usr.bin/groff/tmac/mdoc.local
diff -u src/gnu/usr.bin/groff/tmac/mdoc.local:1.75.4.4 src/gnu/usr.bin/groff/tmac/mdoc.local:1.75.4.5
--- src/gnu/usr.bin/groff/tmac/mdoc.local:1.75.4.4	Tue Feb 21 06:14:00 2017
+++ src/gnu/usr.bin/groff/tmac/mdoc.local	Sat Mar 11 08:48:42 2017
@@ -1,4 +1,4 @@
-.\" $NetBSD: mdoc.local,v 1.75.4.4 2017/02/21 06:14:00 snj Exp $
+.\" $NetBSD: mdoc.local,v 1.75.4.5 2017/03/11 08:48:42 snj Exp $
 .\"
 .\" Copyright (c) 2003, 2004 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -44,9 +44,9 @@
 .as doc-str-St--ieee1275-94 " (\*[Lq]\*[doc-Tn-font-size]Open Firmware\*[doc-str-St]\*[Rq])
 .
 .\" Default .Os value
-.ds doc-operating-system NetBSD\~7.1_RC2
+.ds doc-operating-system NetBSD\~7.1
 .\" Default footer operating system value
-.ds doc-default-operating-system NetBSD\~7.1_RC2
+.ds doc-default-operating-system NetBSD\~7.1
 .\" Other known versions, not yet in groff distribution
 .ds doc-operating-system-NetBSD-1.3.3  1.3.3
 .ds doc-operating-system-NetBSD-1.6.3  1.6.3

Index: src/sys/sys/param.h
diff -u src/sys/sys/param.h:1.459.2.9 src/sys/sys/param.h:1.459.2.10
--- src/sys/sys/param.h:1.459.2.9	Tue Feb 21 06:14:00 2017
+++ src/sys/sys/param.h	Sat Mar 11 08:48:42 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: param.h,v 1.459.2.9 2017/02/21 06:14:00 snj Exp $	*/
+/*	$NetBSD: param.h,v 1.459.2.10 2017/03/11 08:48:42 snj Exp $	*/
 
 /*-
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -63,7 +63,7 @@
  *	2.99.9		(299000900)
  */
 
-#define	__NetBSD_Version__	70100	/* NetBSD 7.1_RC2 */
+#define	__NetBSD_Version__	70100	/* NetBSD 7.1 */
 
 #define __NetBSD_Prereq__(M,m,p) (M) * 1) + \
 (m) * 100)

CVS commit: src/sys/dev/acpi

2017-03-11 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Sat Mar 11 08:26:24 UTC 2017

Modified Files:
src/sys/dev/acpi: acpi_ec.c

Log Message:
Remove extra newline during attach.

> acpiec0 at acpi0 (EC, PNP0C09)
> : io 0x62,0x66
> acpiec0: using global ACPI lock

acpi_resource_parse() with &acpi_resource_parse_ops_default prints
resouce info and newline.  Found and tested on ThinkPad X21.


To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/sys/dev/acpi/acpi_ec.c

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

Modified files:

Index: src/sys/dev/acpi/acpi_ec.c
diff -u src/sys/dev/acpi/acpi_ec.c:1.74 src/sys/dev/acpi/acpi_ec.c:1.75
--- src/sys/dev/acpi/acpi_ec.c:1.74	Mon Dec  8 16:16:45 2014
+++ src/sys/dev/acpi/acpi_ec.c	Sat Mar 11 08:26:23 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: acpi_ec.c,v 1.74 2014/12/08 16:16:45 msaitoh Exp $	*/
+/*	$NetBSD: acpi_ec.c,v 1.75 2017/03/11 08:26:23 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 2007 Joerg Sonnenberger .
@@ -59,7 +59,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.74 2014/12/08 16:16:45 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.75 2017/03/11 08:26:23 tsutsui Exp $");
 
 #include 
 #include 
@@ -267,8 +267,6 @@ acpiec_attach(device_t parent, device_t 
 		aprint_normal(": using %s\n", device_xname(ec_singleton));
 		goto fail0;
 	}
-	aprint_naive("\n");
-	aprint_normal("\n");
 
 	if (!acpiec_parse_gpe_package(self, aa->aa_node->ad_handle,
   &gpe_handle, &gpebit))