CVS commit: src/sys/kern

2017-11-29 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Nov 30 05:52:40 UTC 2017

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

Log Message:
Remove spammy kevent failure printf.

Maybe this was once useful for debugging the kernel, but it's just
console spam triggered by buggy or malicious userland programs now.


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

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

Modified files:

Index: src/sys/kern/kern_event.c
diff -u src/sys/kern/kern_event.c:1.98 src/sys/kern/kern_event.c:1.99
--- src/sys/kern/kern_event.c:1.98	Sat Nov 11 03:58:01 2017
+++ src/sys/kern/kern_event.c	Thu Nov 30 05:52:40 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_event.c,v 1.98 2017/11/11 03:58:01 christos Exp $	*/
+/*	$NetBSD: kern_event.c,v 1.99 2017/11/30 05:52:40 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.98 2017/11/11 03:58:01 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.99 2017/11/30 05:52:40 riastradh Exp $");
 
 #include 
 #include 
@@ -1063,12 +1063,6 @@ kqueue_register(struct kqueue *kq, struc
 			error = (*kfilter->filtops->f_attach)(kn);
 			KERNEL_UNLOCK_ONE(NULL);	/* XXXSMP */
 			if (error != 0) {
-#ifdef DIAGNOSTIC
-printf("%s: event type %d not supported for "
-"file type %d (error %d)\n", __func__,
-kn->kn_filter, kn->kn_obj ?
-((file_t *)kn->kn_obj)->f_type : -1, error);
-#endif
 /* knote_detach() drops fdp->fd_lock */
 knote_detach(kn, fdp, false);
 goto done;



CVS commit: src

2017-11-29 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Nov 30 05:47:24 UTC 2017

Modified Files:
src/common/lib/libc: Makefile.inc
src/lib/libc/hash: Makefile.inc
src/lib/libc/include: namespace.h
src/sys/lib/libkern: Makefile.libkern
src/sys/sys: Makefile
Added Files:
src/common/lib/libc/hash/sha3: keccak.c keccak.h sha3.c
src/lib/libc/hash/sha3: Makefile.inc
src/sys/sys: sha3.h

Log Message:
Import SHA-3 code into libc and libkern.

No new public symbols in libc, but publishing the symbols is a simple
matter if/when we decide to do so.

Proposed on tech-kern and tech-userlevel with no objections:

https://mail-index.NetBSD.org/tech-kern/2017/11/11/msg022581.html
https://mail-index.NetBSD.org/tech-userlevel/2017/11/11/msg010968.html


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/common/lib/libc/Makefile.inc
cvs rdiff -u -r0 -r1.1 src/common/lib/libc/hash/sha3/keccak.c \
src/common/lib/libc/hash/sha3/keccak.h \
src/common/lib/libc/hash/sha3/sha3.c
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/hash/Makefile.inc
cvs rdiff -u -r0 -r1.1 src/lib/libc/hash/sha3/Makefile.inc
cvs rdiff -u -r1.188 -r1.189 src/lib/libc/include/namespace.h
cvs rdiff -u -r1.39 -r1.40 src/sys/lib/libkern/Makefile.libkern
cvs rdiff -u -r1.162 -r1.163 src/sys/sys/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/sys/sha3.h

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

Modified files:

Index: src/common/lib/libc/Makefile.inc
diff -u src/common/lib/libc/Makefile.inc:1.16 src/common/lib/libc/Makefile.inc:1.17
--- src/common/lib/libc/Makefile.inc:1.16	Sun Aug 10 23:25:49 2014
+++ src/common/lib/libc/Makefile.inc	Thu Nov 30 05:47:24 2017
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile.inc,v 1.16 2014/08/10 23:25:49 matt Exp $
+# $NetBSD: Makefile.inc,v 1.17 2017/11/30 05:47:24 riastradh Exp $
 
 .include 
 
 COMMON_DIR:=${.PARSEDIR}
 COMMON_CODEDIRS=atomic gen gmon inet md net stdlib string sys
-COMMON_CODEDIRS+=hash/sha1 hash/sha2 hash/rmd160 hash/murmurhash
+COMMON_CODEDIRS+=hash/sha1 hash/sha2 hash/sha3 hash/rmd160 hash/murmurhash
 
 .if defined(COMMON_MACHINE_ARCH) && !empty(COMMON_MACHINE_ARCH) && \
 exists(${COMMON_DIR}/arch/${COMMON_MACHINE_ARCH})

Index: src/lib/libc/hash/Makefile.inc
diff -u src/lib/libc/hash/Makefile.inc:1.13 src/lib/libc/hash/Makefile.inc:1.14
--- src/lib/libc/hash/Makefile.inc:1.13	Fri Jul  1 22:41:39 2016
+++ src/lib/libc/hash/Makefile.inc	Thu Nov 30 05:47:24 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.13 2016/07/01 22:41:39 christos Exp $
+#	$NetBSD: Makefile.inc,v 1.14 2017/11/30 05:47:24 riastradh Exp $
 #	$OpenBSD: Makefile.inc,v 1.5 1997/07/17 06:02:42 millert Exp $
 
 # hash functions
@@ -11,5 +11,6 @@ MAN+= hmac.3
 .include "${.CURDIR}/hash/rmd160/Makefile.inc"
 .include "${.CURDIR}/hash/sha1/Makefile.inc"
 .include "${.CURDIR}/hash/sha2/Makefile.inc"
+.include "${.CURDIR}/hash/sha3/Makefile.inc"
 
 .include "${.CURDIR}/hash/murmurhash/Makefile.inc"

Index: src/lib/libc/include/namespace.h
diff -u src/lib/libc/include/namespace.h:1.188 src/lib/libc/include/namespace.h:1.189
--- src/lib/libc/include/namespace.h:1.188	Sun Oct 22 01:57:33 2017
+++ src/lib/libc/include/namespace.h	Thu Nov 30 05:47:24 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: namespace.h,v 1.188 2017/10/22 01:57:33 riastradh Exp $	*/
+/*	$NetBSD: namespace.h,v 1.189 2017/11/30 05:47:24 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
@@ -165,6 +165,19 @@
 #define SHA256_Init		_SHA256_Init
 #define SHA256_Transform	_SHA256_Transform
 #define SHA256_Update		_SHA256_Update
+#define SHA3_224_Init		_SHA3_224_Init
+#define SHA3_224_Update		_SHA3_224_Update
+#define SHA3_224_Final		_SHA3_224_Final
+#define SHA3_256_Init		_SHA3_256_Init
+#define SHA3_256_Update		_SHA3_256_Update
+#define SHA3_256_Final		_SHA3_256_Final
+#define SHA3_384_Init		_SHA3_284_Init
+#define SHA3_384_Update		_SHA3_284_Update
+#define SHA3_384_Final		_SHA3_284_Final
+#define SHA3_512_Init		_SHA3_512_Init
+#define SHA3_512_Update		_SHA3_512_Update
+#define SHA3_512_Final		_SHA3_512_Final
+#define	SHA3_Selftest		_SHA3_Selftest
 #define SHA384_Data		_SHA384_Data
 #define SHA384_End		_SHA384_End
 #define SHA384_FileChunk	_SHA384_FileChunk
@@ -181,6 +194,12 @@
 #define SHA512_Init		_SHA512_Init
 #define SHA512_Transform	_SHA512_Transform
 #define SHA512_Update		_SHA512_Update
+#define	SHAKE128_Init		_SHAKE128_Init
+#define	SHAKE128_Update		_SHAKE128_Update
+#define	SHAKE128_Final		_SHAKE128_Final
+#define	SHAKE256_Init		_SHAKE256_Init
+#define	SHAKE256_Update		_SHAKE256_Update
+#define	SHAKE256_Final		_SHAKE256_Final
 #define a64l			_a64l
 #define adjtime			_adjtime
 #define alarm			_alarm

Index: src/sys/lib/libkern/Makefile.libkern
diff -u src/sys/lib/libkern/Makefile.libkern:1.39 src/sys/lib/libkern/Makefile.libkern:1.40
--- src/sys/lib/libkern/Makefile.libkern:1.39	Mon May  2 19:18:29 2016
+++ 

CVS commit: src/sys/dev/pci

2017-11-29 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Thu Nov 30 03:53:24 UTC 2017

Modified Files:
src/sys/dev/pci: if_wm.c

Log Message:
 Don't allocate MSI-X interrupt on 82583. 82583 chip has a MSI-X capability in
the PCI configuration space but it doesn't support it. At least the document
doesn't say anything about MSI-X. Fixes PR#57262 reported by
Shinichi Doyashiki.

XXX pullup-8.


To generate a diff of this commit:
cvs rdiff -u -r1.544 -r1.545 src/sys/dev/pci/if_wm.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/pci/if_wm.c
diff -u src/sys/dev/pci/if_wm.c:1.544 src/sys/dev/pci/if_wm.c:1.545
--- src/sys/dev/pci/if_wm.c:1.544	Wed Nov 22 02:36:52 2017
+++ src/sys/dev/pci/if_wm.c	Thu Nov 30 03:53:24 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_wm.c,v 1.544 2017/11/22 02:36:52 msaitoh Exp $	*/
+/*	$NetBSD: if_wm.c,v 1.545 2017/11/30 03:53:24 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -83,7 +83,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.544 2017/11/22 02:36:52 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.545 2017/11/30 03:53:24 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -1853,7 +1853,13 @@ wm_attach(device_t parent, device_t self
 
 	/* Allocation settings */
 	max_type = PCI_INTR_TYPE_MSIX;
-	counts[PCI_INTR_TYPE_MSIX] = sc->sc_nqueues + 1;
+	/*
+	 * 82583 has a MSI-X capability in the PCI configuration space but
+	 * it doesn't support it. At least the document doesn't say anything
+	 * about MSI-X.
+	 */
+	counts[PCI_INTR_TYPE_MSIX]
+	= (sc->sc_type == WM_T_82583) ? 0 : sc->sc_nqueues + 1;
 	counts[PCI_INTR_TYPE_MSI] = 1;
 	counts[PCI_INTR_TYPE_INTX] = 1;
 	/* overridden by disable flags */



CVS commit: src/sbin/mount_qemufwcfg

2017-11-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Nov 30 03:31:08 UTC 2017

Modified Files:
src/sbin/mount_qemufwcfg: fwcfg.c

Log Message:
clang does not like dead unused functions.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sbin/mount_qemufwcfg/fwcfg.c

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

Modified files:

Index: src/sbin/mount_qemufwcfg/fwcfg.c
diff -u src/sbin/mount_qemufwcfg/fwcfg.c:1.3 src/sbin/mount_qemufwcfg/fwcfg.c:1.4
--- src/sbin/mount_qemufwcfg/fwcfg.c:1.3	Sun Nov 26 10:03:15 2017
+++ src/sbin/mount_qemufwcfg/fwcfg.c	Wed Nov 29 22:31:08 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: fwcfg.c,v 1.3 2017/11/26 15:03:15 christos Exp $ */
+/* $NetBSD: fwcfg.c,v 1.4 2017/11/30 03:31:08 christos Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill 
@@ -27,7 +27,7 @@
  */
 
 #include 
-__RCSID("$NetBSD: fwcfg.c,v 1.3 2017/11/26 15:03:15 christos Exp $");
+__RCSID("$NetBSD: fwcfg.c,v 1.4 2017/11/30 03:31:08 christos Exp $");
 
 #include 
 
@@ -208,6 +208,7 @@ build_tree(virtdir_t *v)
 	}
 }
 
+#if 0
 static __dead void
 usage(void)
 {
@@ -215,6 +216,7 @@ usage(void)
 	"[-M ] [-u ] []", getprogname());
 	exit(EXIT_FAILURE);
 }
+#endif
 
 int
 main(int argc, char *argv[])



CVS commit: src/sys/netipsec

2017-11-29 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Thu Nov 30 02:45:12 UTC 2017

Modified Files:
src/sys/netipsec: key.c

Log Message:
Fix a deadlock happening if !NET_MPSAFE

If NET_MPSAFE isn't set, key_timehandler_work is executed with holding
softnet_lock. This means that localcount_drain can be called with holding
softnet_lock resulting in a deadlock that localcount_drain waits for packet
processing to release a reference to SP/SA while network processing is prevented
by softnet_lock.

Fix the deadlock by not taking softnet_lock in key_timehandler_work. It's okay
because IPsec is MP-safe even if !NET_MPSAFE. Note that the change also needs
to enable pserialize_perform because the IPsec code can be run in parallel now.

Reported by christos@


To generate a diff of this commit:
cvs rdiff -u -r1.244 -r1.245 src/sys/netipsec/key.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/netipsec/key.c
diff -u src/sys/netipsec/key.c:1.244 src/sys/netipsec/key.c:1.245
--- src/sys/netipsec/key.c:1.244	Thu Nov 30 02:43:49 2017
+++ src/sys/netipsec/key.c	Thu Nov 30 02:45:12 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: key.c,v 1.244 2017/11/30 02:43:49 ozaki-r Exp $	*/
+/*	$NetBSD: key.c,v 1.245 2017/11/30 02:45:12 ozaki-r Exp $	*/
 /*	$FreeBSD: src/sys/netipsec/key.c,v 1.3.2.3 2004/02/14 22:23:23 bms Exp $	*/
 /*	$KAME: key.c,v 1.191 2001/06/27 10:46:49 sakane Exp $	*/
 
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.244 2017/11/30 02:43:49 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.245 2017/11/30 02:45:12 ozaki-r Exp $");
 
 /*
  * This code is referred to RFC 2367
@@ -800,7 +800,6 @@ key_sp_refcnt(const struct secpolicy *sp
 	return 0;
 }
 
-#ifdef NET_MPSAFE
 static void
 key_spd_pserialize_perform(void)
 {
@@ -818,7 +817,6 @@ key_spd_pserialize_perform(void)
 	key_spd.psz_performing = false;
 	cv_broadcast(_spd.cv_psz);
 }
-#endif
 
 /*
  * Remove the sp from the key_spd.splist and wait for references to the sp
@@ -836,10 +834,8 @@ key_unlink_sp(struct secpolicy *sp)
 	/* Invalidate all cached SPD pointers in the PCBs. */
 	ipsec_invalpcbcacheall();
 
-#ifdef NET_MPSAFE
 	KDASSERT(mutex_ownable(softnet_lock));
 	key_spd_pserialize_perform();
-#endif
 
 	localcount_drain(>localcount, _spd.cv_lc, _spd.lock);
 }
@@ -1493,7 +1489,6 @@ key_freesp_so(struct secpolicy **sp)
 }
 #endif
 
-#ifdef NET_MPSAFE
 static void
 key_sad_pserialize_perform(void)
 {
@@ -1511,7 +1506,6 @@ key_sad_pserialize_perform(void)
 	key_sad.psz_performing = false;
 	cv_broadcast(_sad.cv_psz);
 }
-#endif
 
 /*
  * Remove the sav from the savlist of its sah and wait for references to the sav
@@ -1525,10 +1519,8 @@ key_unlink_sav(struct secasvar *sav)
 
 	SAVLIST_WRITER_REMOVE(sav);
 
-#ifdef NET_MPSAFE
 	KDASSERT(mutex_ownable(softnet_lock));
 	key_sad_pserialize_perform();
-#endif
 
 	localcount_drain(>localcount, _sad.cv_lc, _sad.lock);
 }
@@ -1567,10 +1559,8 @@ key_destroy_sav_with_ref(struct secasvar
 	KEY_SA_UNREF();
 
 	mutex_enter(_sad.lock);
-#ifdef NET_MPSAFE
 	KDASSERT(mutex_ownable(softnet_lock));
 	key_sad_pserialize_perform();
-#endif
 	localcount_drain(>localcount, _sad.cv_lc, _sad.lock);
 	mutex_exit(_sad.lock);
 
@@ -3048,10 +3038,8 @@ key_unlink_sah(struct secashead *sah)
 	/* Remove from the sah list */
 	SAHLIST_WRITER_REMOVE(sah);
 
-#ifdef NET_MPSAFE
 	KDASSERT(mutex_ownable(softnet_lock));
 	key_sad_pserialize_perform();
-#endif
 
 	localcount_drain(>localcount, _sad.cv_lc, _sad.lock);
 }
@@ -4862,13 +4850,10 @@ static void
 key_timehandler_work(struct work *wk, void *arg)
 {
 	time_t now = time_uptime;
-	IPSEC_DECLARE_LOCK_VARIABLE;
 
 	/* We can allow enqueuing another work at this point */
 	atomic_swap_uint(_timehandler_work_enqueued, 0);
 
-	IPSEC_ACQUIRE_GLOBAL_LOCKS();
-
 	key_timehandler_spd(now);
 	key_timehandler_sad(now);
 	key_timehandler_acq(now);
@@ -4879,7 +4864,6 @@ key_timehandler_work(struct work *wk, vo
 	/* do exchange to tick time !! */
 	callout_reset(_timehandler_ch, hz, key_timehandler, NULL);
 
-	IPSEC_RELEASE_GLOBAL_LOCKS();
 	return;
 }
 



CVS commit: src/sys/netipsec

2017-11-29 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Thu Nov 30 02:43:49 UTC 2017

Modified Files:
src/sys/netipsec: key.c

Log Message:
Use KDASSERT for mutex_ownable

Because mutex_ownable is not cheap.


To generate a diff of this commit:
cvs rdiff -u -r1.243 -r1.244 src/sys/netipsec/key.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/netipsec/key.c
diff -u src/sys/netipsec/key.c:1.243 src/sys/netipsec/key.c:1.244
--- src/sys/netipsec/key.c:1.243	Wed Nov 22 05:43:28 2017
+++ src/sys/netipsec/key.c	Thu Nov 30 02:43:49 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: key.c,v 1.243 2017/11/22 05:43:28 ozaki-r Exp $	*/
+/*	$NetBSD: key.c,v 1.244 2017/11/30 02:43:49 ozaki-r Exp $	*/
 /*	$FreeBSD: src/sys/netipsec/key.c,v 1.3.2.3 2004/02/14 22:23:23 bms Exp $	*/
 /*	$KAME: key.c,v 1.191 2001/06/27 10:46:49 sakane Exp $	*/
 
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.243 2017/11/22 05:43:28 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.244 2017/11/30 02:43:49 ozaki-r Exp $");
 
 /*
  * This code is referred to RFC 2367
@@ -837,7 +837,7 @@ key_unlink_sp(struct secpolicy *sp)
 	ipsec_invalpcbcacheall();
 
 #ifdef NET_MPSAFE
-	KASSERT(mutex_ownable(softnet_lock));
+	KDASSERT(mutex_ownable(softnet_lock));
 	key_spd_pserialize_perform();
 #endif
 
@@ -1526,7 +1526,7 @@ key_unlink_sav(struct secasvar *sav)
 	SAVLIST_WRITER_REMOVE(sav);
 
 #ifdef NET_MPSAFE
-	KASSERT(mutex_ownable(softnet_lock));
+	KDASSERT(mutex_ownable(softnet_lock));
 	key_sad_pserialize_perform();
 #endif
 
@@ -1568,7 +1568,7 @@ key_destroy_sav_with_ref(struct secasvar
 
 	mutex_enter(_sad.lock);
 #ifdef NET_MPSAFE
-	KASSERT(mutex_ownable(softnet_lock));
+	KDASSERT(mutex_ownable(softnet_lock));
 	key_sad_pserialize_perform();
 #endif
 	localcount_drain(>localcount, _sad.cv_lc, _sad.lock);
@@ -3049,7 +3049,7 @@ key_unlink_sah(struct secashead *sah)
 	SAHLIST_WRITER_REMOVE(sah);
 
 #ifdef NET_MPSAFE
-	KASSERT(mutex_ownable(softnet_lock));
+	KDASSERT(mutex_ownable(softnet_lock));
 	key_sad_pserialize_perform();
 #endif
 



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

2017-11-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Nov 30 00:13:29 UTC 2017

Modified Files:
src/external/gpl3/gdb/dist/gdb: amd64-bsd-nat.c i386-bsd-nat.c
m68k-bsd-nat.c m88k-bsd-nat.c vax-bsd-nat.c

Log Message:
Fix 'last argument of ptrace is the thread id' on NetBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/gdb/amd64-bsd-nat.c \
src/external/gpl3/gdb/dist/gdb/i386-bsd-nat.c \
src/external/gpl3/gdb/dist/gdb/m88k-bsd-nat.c
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gdb/dist/gdb/m68k-bsd-nat.c
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/dist/gdb/vax-bsd-nat.c

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

Modified files:

Index: src/external/gpl3/gdb/dist/gdb/amd64-bsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/amd64-bsd-nat.c:1.1.1.1 src/external/gpl3/gdb/dist/gdb/amd64-bsd-nat.c:1.2
--- src/external/gpl3/gdb/dist/gdb/amd64-bsd-nat.c:1.1.1.1	Tue Nov 28 13:18:06 2017
+++ src/external/gpl3/gdb/dist/gdb/amd64-bsd-nat.c	Wed Nov 29 19:13:29 2017
@@ -49,7 +49,7 @@ amd64bsd_fetch_inferior_registers (struc
 {
   struct reg regs;
 
-  if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) , 0) == -1)
+  if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ,  ptid_get_lwp (inferior_ptid)) == -1)
 	perror_with_name (_("Couldn't get registers"));
 
   amd64_supply_native_gregset (regcache, , -1);
@@ -66,7 +66,7 @@ amd64bsd_fetch_inferior_registers (struc
   if (x86bsd_xsave_len != 0)
 	{
 	  xstateregs = alloca (x86bsd_xsave_len);
-	  if (ptrace (PT_GETXSTATE, pid, (PTRACE_TYPE_ARG3) xstateregs, 0)
+	  if (ptrace (PT_GETXSTATE, pid, (PTRACE_TYPE_ARG3) xstateregs,  ptid_get_lwp (inferior_ptid))
 	  == -1)
 	perror_with_name (_("Couldn't get extended state status"));
 
@@ -75,7 +75,7 @@ amd64bsd_fetch_inferior_registers (struc
 	}
 #endif
 
-  if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) , 0) == -1)
+  if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) ,  ptid_get_lwp (inferior_ptid)) == -1)
 	perror_with_name (_("Couldn't get floating point status"));
 
   amd64_supply_fxsave (regcache, -1, );
@@ -96,12 +96,12 @@ amd64bsd_store_inferior_registers (struc
 {
   struct reg regs;
 
-  if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) , 0) == -1)
+  if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ,  ptid_get_lwp (inferior_ptid)) == -1)
 perror_with_name (_("Couldn't get registers"));
 
   amd64_collect_native_gregset (regcache, , regnum);
 
-  if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) , 0) == -1)
+  if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) ,  ptid_get_lwp (inferior_ptid)) == -1)
 perror_with_name (_("Couldn't write registers"));
 
   if (regnum != -1)
@@ -117,11 +117,11 @@ amd64bsd_store_inferior_registers (struc
   if (x86bsd_xsave_len != 0)
 	{
 	  xstateregs = alloca (x86bsd_xsave_len);
-	  if (ptrace (PT_GETXSTATE, pid, (PTRACE_TYPE_ARG3) xstateregs, 0)
+	  if (ptrace (PT_GETXSTATE, pid, (PTRACE_TYPE_ARG3) xstateregs,  ptid_get_lwp (inferior_ptid))
 	  == -1)
 	perror_with_name (_("Couldn't get extended state status"));
 
-	  amd64_collect_xsave (regcache, regnum, xstateregs, 0);
+	  amd64_collect_xsave (regcache, regnum, xstateregs,  ptid_get_lwp (inferior_ptid));
 
 	  if (ptrace (PT_SETXSTATE, pid, (PTRACE_TYPE_ARG3) xstateregs,
 		  x86bsd_xsave_len) == -1)
@@ -130,12 +130,12 @@ amd64bsd_store_inferior_registers (struc
 	}
 #endif
 
-  if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) , 0) == -1)
+  if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) ,  ptid_get_lwp (inferior_ptid)) == -1)
 	perror_with_name (_("Couldn't get floating point status"));
 
   amd64_collect_fxsave (regcache, regnum, );
 
-  if (ptrace (PT_SETFPREGS, pid, (PTRACE_TYPE_ARG3) , 0) == -1)
+  if (ptrace (PT_SETFPREGS, pid, (PTRACE_TYPE_ARG3) ,  ptid_get_lwp (inferior_ptid)) == -1)
 	perror_with_name (_("Couldn't write floating point status"));
 }
 }
Index: src/external/gpl3/gdb/dist/gdb/i386-bsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/i386-bsd-nat.c:1.1.1.1 src/external/gpl3/gdb/dist/gdb/i386-bsd-nat.c:1.2
--- src/external/gpl3/gdb/dist/gdb/i386-bsd-nat.c:1.1.1.1	Tue Nov 28 13:18:07 2017
+++ src/external/gpl3/gdb/dist/gdb/i386-bsd-nat.c	Wed Nov 29 19:13:29 2017
@@ -137,7 +137,7 @@ i386bsd_fetch_inferior_registers (struct
 {
   struct reg regs;
 
-  if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) , 0) == -1)
+  if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ,  ptid_get_lwp (inferior_ptid)) == -1)
 	perror_with_name (_("Couldn't get registers"));
 
   i386bsd_supply_gregset (regcache, );
@@ -159,7 +159,7 @@ i386bsd_fetch_inferior_registers (struct
 
 	  xstateregs = alloca (x86bsd_xsave_len);
 	  if (ptrace (PT_GETXSTATE, pid,
-		  (PTRACE_TYPE_ARG3) xstateregs, 0) == -1)
+		  (PTRACE_TYPE_ARG3) xstateregs,  

CVS commit: src/share/mk

2017-11-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Nov 29 22:40:45 UTC 2017

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

Log Message:
back to gdb 801


To generate a diff of this commit:
cvs rdiff -u -r1.1023 -r1.1024 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.1023 src/share/mk/bsd.own.mk:1.1024
--- src/share/mk/bsd.own.mk:1.1023	Wed Nov 29 16:43:21 2017
+++ src/share/mk/bsd.own.mk	Wed Nov 29 17:40:45 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1023 2017/11/29 21:43:21 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.1024 2017/11/29 22:40:45 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -131,7 +131,7 @@ USE_SSP?=	yes
 #
 # What GDB is used?
 #
-HAVE_GDB?=	712
+HAVE_GDB?=	801
 
 .if ${HAVE_GDB} == 801
 EXTERNAL_GDB_SUBDIR=		gdb



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

2017-11-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Nov 29 22:39:59 UTC 2017

Modified Files:
src/external/gpl3/gdb/lib/libgdb: Makefile
src/external/gpl3/gdb/lib/libgdb/arch/arm: config.h defs.mk init.c
src/external/gpl3/gdb/lib/libgdb/arch/armeb: config.h defs.mk init.c
src/external/gpl3/gdb/lib/libgdb/arch/hppa: defs.mk
src/external/gpl3/gdb/lib/libgdb/arch/x86_64: defs.mk

Log Message:
regen, and add more warn eliding to Makefile


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gdb/lib/libgdb/Makefile
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/lib/libgdb/arch/arm/config.h
cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gdb/lib/libgdb/arch/arm/defs.mk
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gdb/lib/libgdb/arch/arm/init.c
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gdb/lib/libgdb/arch/armeb/config.h
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/gdb/lib/libgdb/arch/armeb/defs.mk
cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gdb/lib/libgdb/arch/armeb/init.c
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gdb/lib/libgdb/arch/hppa/defs.mk
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/gdb/lib/libgdb/arch/x86_64/defs.mk

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

Modified files:

Index: src/external/gpl3/gdb/lib/libgdb/Makefile
diff -u src/external/gpl3/gdb/lib/libgdb/Makefile:1.14 src/external/gpl3/gdb/lib/libgdb/Makefile:1.15
--- src/external/gpl3/gdb/lib/libgdb/Makefile:1.14	Wed Nov 29 16:21:50 2017
+++ src/external/gpl3/gdb/lib/libgdb/Makefile	Wed Nov 29 17:39:59 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.14 2017/11/29 21:21:50 christos Exp $
+#	$NetBSD: Makefile,v 1.15 2017/11/29 22:39:59 christos Exp $
 
 NOCTF=
 HOSTPROG_CXX=   1
@@ -41,7 +41,17 @@ CPPFLAGS+=	-I${.CURDIR} \
 # XXX inf-ptrace.c has some bogus (PTRACE_TYPE_ARG3) casts, but in 
 # code that's never exercised on NetBSD.
 CPPFLAGS.inf-ptrace.c=	-Wno-error
+
+# XXX: I should fix these...
 CPPFLAGS.i386-nbsd-tdep.c+= -Wno-narrowing
+CPPFLAGS.arm-get-next-pcs.c+= -Wno-narrowing
+CPPFLAGS.mips-tdep.c+= -Wno-narrowing
+CPPFLAGS.sh-nbsd-tdep.c+= -Wno-narrowing
+CPPFLAGS.ppc-nbsd-tdep.c+= -Wno-narrowing
+CPPFLAGS.alpha-nbsd-tdep.c+= -Wno-narrowing
+CPPFLAGS.alpha-tdep.c+= -Wno-narrowing
+CPPFLAGS.rs6000-tdep.c+= -Wno-narrowing
+CPPFLAGS.hppa-nbsd-tdep.c+= -Wno-narrowing
 
 CWARNFLAGS.clang+=	-Wno-switch
 

Index: src/external/gpl3/gdb/lib/libgdb/arch/arm/config.h
diff -u src/external/gpl3/gdb/lib/libgdb/arch/arm/config.h:1.8 src/external/gpl3/gdb/lib/libgdb/arch/arm/config.h:1.9
--- src/external/gpl3/gdb/lib/libgdb/arch/arm/config.h:1.8	Wed Nov 29 13:15:32 2017
+++ src/external/gpl3/gdb/lib/libgdb/arch/arm/config.h	Wed Nov 29 17:39:59 2017
@@ -171,7 +171,7 @@
 #define HAVE_DLFCN_H 1
 
 /* Define if ELF support should be included. */
-/* #undef HAVE_ELF */
+#define HAVE_ELF 1
 
 /* Define to 1 if you have the  header file. */
 /* #undef HAVE_ELF_HP_H */

Index: src/external/gpl3/gdb/lib/libgdb/arch/arm/defs.mk
diff -u src/external/gpl3/gdb/lib/libgdb/arch/arm/defs.mk:1.12 src/external/gpl3/gdb/lib/libgdb/arch/arm/defs.mk:1.13
--- src/external/gpl3/gdb/lib/libgdb/arch/arm/defs.mk:1.12	Wed Nov 29 13:15:32 2017
+++ src/external/gpl3/gdb/lib/libgdb/arch/arm/defs.mk	Wed Nov 29 17:39:59 2017
@@ -3,5 +3,5 @@
 # Generated from: NetBSD: mknative.common,v 1.15 2017/11/29 03:32:28 christos Exp 
 #
 G_INTERNAL_CFLAGS=   -I. -I${GNUHOSTDIST}/gdb -I${GNUHOSTDIST}/gdb/common -I${GNUHOSTDIST}/gdb/config -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I${GNUHOSTDIST}/gdb/../include/opcode -I${GNUHOSTDIST}/gdb/../opcodes/.. -I${GNUHOSTDIST}/gdb/../readline/.. -I${GNUHOSTDIST}/gdb/../zlib -I../bfd -I${GNUHOSTDIST}/gdb/../bfd -I${GNUHOSTDIST}/gdb/../include -I../libdecnumber -I${GNUHOSTDIST}/gdb/../libdecnumber -I./../intl -I${GNUHOSTDIST}/gdb/gnulib/import -Ibuild-gnulib/import   -DTUI=1  -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-narrowing -Wformat-nonliteral 
-G_LIBGDB_OBS=arm.o arm-get-next-pcs.o arm-tdep.o armbsd-tdep.o arm-nbsd-tdep.o nbsd-tdep.o solib-svr4.o ser-base.o ser-unix.o ser-pipe.o ser-tcp.o fork-child.o inf-ptrace.o nbsd-nat.o arm-nbsd-nat.o bsd-kvm.o nbsd-thread.o ax-gdb.o ax-general.o ctf.o dcache.o remote.o remote-fileio.o remote-notif.o tracefile.o tracefile-tfile.o tracepoint.o  cli-cmds.o cli-decode.o cli-dump.o cli-interp.o cli-logging.o cli-script.o cli-setshow.o cli-utils.o mi-cmd-break.o mi-cmd-catch.o mi-cmd-disas.o mi-cmd-env.o mi-cmd-file.o mi-cmd-info.o mi-cmd-stack.o mi-cmd-target.o mi-cmd-var.o mi-cmds.o mi-console.o mi-getopt.o mi-interp.o mi-main.o mi-out.o mi-parse.o mi-symbol-cmds.o tui.o tui-command.o tui-data.o tui-disasm.o tui-file.o tui-hooks.o tui-interp.o tui-io.o tui-layout.o tui-out.o tui-regs.o tui-source.o 

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

2017-11-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Nov 29 22:40:18 UTC 2017

Modified Files:
src/external/gpl3/gdb/dist/gdb: configure.tgt

Log Message:
missed one rename


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gdb/dist/gdb/configure.tgt

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

Modified files:

Index: src/external/gpl3/gdb/dist/gdb/configure.tgt
diff -u src/external/gpl3/gdb/dist/gdb/configure.tgt:1.15 src/external/gpl3/gdb/dist/gdb/configure.tgt:1.16
--- src/external/gpl3/gdb/dist/gdb/configure.tgt:1.15	Tue Nov 28 17:04:52 2017
+++ src/external/gpl3/gdb/dist/gdb/configure.tgt	Wed Nov 29 17:40:18 2017
@@ -116,7 +116,7 @@ arm*-*-linux*)
 	;;
 arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
 	# Target: NetBSD/arm
-	gdb_target_obs="arm.o arm-get-next-pcs.o arm-tdep.o armbsd-tdep.o \
+	gdb_target_obs="arm.o arm-get-next-pcs.o arm-tdep.o arm-bsd-tdep.o \
 			arm-nbsd-tdep.o nbsd-tdep.o solib-svr4.o"
 	;;
 arm*-*-openbsd*)



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

2017-11-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Nov 29 22:39:26 UTC 2017

Modified Files:
src/external/gpl3/gdb/dist/bfd: elf32-arm.c

Log Message:
we need popcount again


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/dist/bfd/elf32-arm.c

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

Modified files:

Index: src/external/gpl3/gdb/dist/bfd/elf32-arm.c
diff -u src/external/gpl3/gdb/dist/bfd/elf32-arm.c:1.3 src/external/gpl3/gdb/dist/bfd/elf32-arm.c:1.4
--- src/external/gpl3/gdb/dist/bfd/elf32-arm.c:1.3	Tue Nov 28 17:04:52 2017
+++ src/external/gpl3/gdb/dist/bfd/elf32-arm.c	Wed Nov 29 17:39:26 2017
@@ -3240,7 +3240,6 @@ ctz (unsigned int mask)
 #endif
 }
 
-#ifndef __NetBSD__
 static inline int
 elf32_arm_popcount (unsigned int mask)
 {
@@ -3259,7 +3258,6 @@ elf32_arm_popcount (unsigned int mask)
   return sum;
 #endif
 }
-#endif
 
 /* Create an entry in an ARM ELF linker hash table.  */
 



CVS commit: src/share/mk

2017-11-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Nov 29 21:43:21 UTC 2017

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

Log Message:
move gdb back to 7.12 for now


To generate a diff of this commit:
cvs rdiff -u -r1.1022 -r1.1023 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.1022 src/share/mk/bsd.own.mk:1.1023
--- src/share/mk/bsd.own.mk:1.1022	Wed Nov 29 13:15:53 2017
+++ src/share/mk/bsd.own.mk	Wed Nov 29 16:43:21 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1022 2017/11/29 18:15:53 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.1023 2017/11/29 21:43:21 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -131,7 +131,7 @@ USE_SSP?=	yes
 #
 # What GDB is used?
 #
-HAVE_GDB?=	801
+HAVE_GDB?=	712
 
 .if ${HAVE_GDB} == 801
 EXTERNAL_GDB_SUBDIR=		gdb



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

2017-11-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Nov 29 21:42:46 UTC 2017

Modified Files:
src/external/gpl3/gdb/dist/gdb/config/i386: nbsd64.mh

Log Message:
more files


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

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

Modified files:

Index: src/external/gpl3/gdb/dist/gdb/config/i386/nbsd64.mh
diff -u src/external/gpl3/gdb/dist/gdb/config/i386/nbsd64.mh:1.6 src/external/gpl3/gdb/dist/gdb/config/i386/nbsd64.mh:1.7
--- src/external/gpl3/gdb/dist/gdb/config/i386/nbsd64.mh:1.6	Wed Nov 29 16:35:16 2017
+++ src/external/gpl3/gdb/dist/gdb/config/i386/nbsd64.mh	Wed Nov 29 16:42:45 2017
@@ -1,6 +1,6 @@
 # Host: NetBSD/amd64
 NATDEPFILES= fork-child.o inf-ptrace.o \
 	nbsd-nat.o amd64-nat.o x86-bsd-nat.o amd64-bsd-nat.o amd64-nbsd-nat.o \
-	bsd-kvm.o nbsd-thread.o x86-nat.o
+	bsd-kvm.o nbsd-thread.o x86-nat.o x86-dregs.o
 
 LOADLIBES= -lkvm



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

2017-11-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Nov 29 21:35:26 UTC 2017

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

Log Message:
avoid re-definition


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gdb/dist/gdb/vax-bsd-nat.c

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

Modified files:

Index: src/external/gpl3/gdb/dist/gdb/vax-bsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/vax-bsd-nat.c:1.2 src/external/gpl3/gdb/dist/gdb/vax-bsd-nat.c:1.3
--- src/external/gpl3/gdb/dist/gdb/vax-bsd-nat.c:1.2	Wed Nov 29 13:15:29 2017
+++ src/external/gpl3/gdb/dist/gdb/vax-bsd-nat.c	Wed Nov 29 16:35:26 2017
@@ -17,7 +17,9 @@
You should have received a copy of the GNU General Public License
along with this program.  If not, see .  */
 
+#ifndef _KERNTYPES
 #define _KERNTYPES
+#endif
 #include "defs.h"
 #include "inferior.h"
 #include "regcache.h"



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

2017-11-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Nov 29 21:35:16 UTC 2017

Modified Files:
src/external/gpl3/gdb/dist/gdb/config/i386: nbsd64.mh

Log Message:
need more files


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

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

Modified files:

Index: src/external/gpl3/gdb/dist/gdb/config/i386/nbsd64.mh
diff -u src/external/gpl3/gdb/dist/gdb/config/i386/nbsd64.mh:1.5 src/external/gpl3/gdb/dist/gdb/config/i386/nbsd64.mh:1.6
--- src/external/gpl3/gdb/dist/gdb/config/i386/nbsd64.mh:1.5	Tue Nov 28 22:35:16 2017
+++ src/external/gpl3/gdb/dist/gdb/config/i386/nbsd64.mh	Wed Nov 29 16:35:16 2017
@@ -1,6 +1,6 @@
 # Host: NetBSD/amd64
 NATDEPFILES= fork-child.o inf-ptrace.o \
 	nbsd-nat.o amd64-nat.o x86-bsd-nat.o amd64-bsd-nat.o amd64-nbsd-nat.o \
-	bsd-kvm.o nbsd-thread.o
+	bsd-kvm.o nbsd-thread.o x86-nat.o
 
 LOADLIBES= -lkvm



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

2017-11-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Nov 29 21:22:36 UTC 2017

Modified Files:
src/external/gpl3/gdb/bin/gdb: Makefile
src/external/gpl3/gdb/bin/gdbtui: Makefile

Log Message:
make depend does not like multi-word compiler.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gdb/bin/gdb/Makefile
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/bin/gdbtui/Makefile

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

Modified files:

Index: src/external/gpl3/gdb/bin/gdb/Makefile
diff -u src/external/gpl3/gdb/bin/gdb/Makefile:1.11 src/external/gpl3/gdb/bin/gdb/Makefile:1.12
--- src/external/gpl3/gdb/bin/gdb/Makefile:1.11	Tue Nov 28 17:04:52 2017
+++ src/external/gpl3/gdb/bin/gdb/Makefile	Wed Nov 29 16:22:36 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.11 2017/11/28 22:04:52 christos Exp $
+#	$NetBSD: Makefile,v 1.12 2017/11/29 21:22:36 christos Exp $
 
 NOCTF=
 .include 
@@ -89,9 +89,9 @@ DPADD+=		${LIBEXPAT} ${LIBLZMA} ${LIBZ} 
 .include 
 
 # Force c++
-HOST_CC:=   ${HOST_CXX} -std=gnu++11 -Wno-error=stack-protector
-CC:=${CXX} -std=gnu++11 -Wno-error=stack-protector
-CFLAGS:=${CXXFLAGS}
+HOST_CC:=   ${HOST_CXX}
+CC:=${CXX}
+CFLAGS:=${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector
 
 
 .PATH: ${DIST}/gdb ${DIST}/gdb/mi ${DIST}/gdb/cli ${DIST}/gdb/tui \

Index: src/external/gpl3/gdb/bin/gdbtui/Makefile
diff -u src/external/gpl3/gdb/bin/gdbtui/Makefile:1.8 src/external/gpl3/gdb/bin/gdbtui/Makefile:1.9
--- src/external/gpl3/gdb/bin/gdbtui/Makefile:1.8	Tue Nov 28 22:58:17 2017
+++ src/external/gpl3/gdb/bin/gdbtui/Makefile	Wed Nov 29 16:22:36 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.8 2017/11/29 03:58:17 christos Exp $
+#	$NetBSD: Makefile,v 1.9 2017/11/29 21:22:36 christos Exp $
 NOCTF=
 .include "../Makefile.inc"
 
@@ -26,9 +26,9 @@ NOMAN=		# defined
 .include 
 
 # Force c++
-HOST_CC:=   ${HOST_CXX} -std=gnu++11 -Wno-error=stack-protector
-CC:=${CXX} -std=gnu++11 -Wno-error=stack-protector
-CFLAGS:=${CXXFLAGS}
+HOST_CC:=   ${HOST_CXX}
+CC:=${CXX}
+CFLAGS:=${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector
 
 LIBOPCODESDIR!=   cd ${.CURDIR}/../../lib/libopcodes   && ${PRINTOBJDIR}
 LIBBFDDIR!=   cd ${.CURDIR}/../../lib/libbfd   && ${PRINTOBJDIR}



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

2017-11-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Nov 29 21:21:50 UTC 2017

Modified Files:
src/external/gpl3/gdb/lib/libgdb: Makefile

Log Message:
mkdep does not like multi-word compiler.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gdb/lib/libgdb/Makefile

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

Modified files:

Index: src/external/gpl3/gdb/lib/libgdb/Makefile
diff -u src/external/gpl3/gdb/lib/libgdb/Makefile:1.13 src/external/gpl3/gdb/lib/libgdb/Makefile:1.14
--- src/external/gpl3/gdb/lib/libgdb/Makefile:1.13	Tue Nov 28 22:58:17 2017
+++ src/external/gpl3/gdb/lib/libgdb/Makefile	Wed Nov 29 16:21:50 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.13 2017/11/29 03:58:17 christos Exp $
+#	$NetBSD: Makefile,v 1.14 2017/11/29 21:21:50 christos Exp $
 
 NOCTF=
 HOSTPROG_CXX=   1
@@ -49,9 +49,9 @@ CWARNFLAGS.clang+=	-Wno-switch
 .include 
 
 # Force c++
-HOST_CC:=   ${HOST_CXX} -std=gnu++11 -Wno-error=stack-protector
-CC:=${CXX} -std=gnu++11 -Wno-error=stack-protector
-CFLAGS:=${CXXFLAGS}
+HOST_CC:=   ${HOST_CXX}
+CC:=${CXX}
+CFLAGS:=${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector
 
 .PATH: ${DIST}/gdb ${DIST}/gdb/arch ${DIST}/gdb/mi ${DIST}/gdb/cli  \
 ${DIST}/gdb/tui ${DIST}/gdb/python ${DIST}/gdb/common ${DIST}/gdb/target \



CVS commit: src/sys/sys

2017-11-29 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Wed Nov 29 20:15:21 UTC 2017

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

Log Message:
fix typo in comment


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/sys/spawn.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/spawn.h
diff -u src/sys/sys/spawn.h:1.5 src/sys/sys/spawn.h:1.6
--- src/sys/sys/spawn.h:1.5	Fri Sep  5 05:46:54 2014
+++ src/sys/sys/spawn.h	Wed Nov 29 20:15:21 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: spawn.h,v 1.5 2014/09/05 05:46:54 matt Exp $	*/
+/*	$NetBSD: spawn.h,v 1.6 2017/11/29 20:15:21 snj Exp $	*/
 
 /*-
  * Copyright (c) 2008 Ed Schouten 
@@ -90,7 +90,7 @@ typedef struct posix_spawn_file_actions	
  * maximize parallelism, but instead the parent will wait for the child
  * process to complete all file/scheduler actions and report back errors
  * from that via the return value of the posix_spawn syscall. This is
- * usefull for testing, as it can verify the generated error codes and
+ * useful for testing, as it can verify the generated error codes and
  * match to the supposedly triggered failures.
  * In general, the kernel will return from the posix_spawn syscall as
  * early as possible, as soon as creating the new process is known to



CVS commit: src/sys/net

2017-11-29 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Nov 29 19:27:52 UTC 2017

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

Log Message:
set IFEF_MPSAFE


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 src/sys/net/if_tap.c

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

Modified files:

Index: src/sys/net/if_tap.c
diff -u src/sys/net/if_tap.c:1.102 src/sys/net/if_tap.c:1.103
--- src/sys/net/if_tap.c:1.102	Wed Nov 29 19:21:44 2017
+++ src/sys/net/if_tap.c	Wed Nov 29 19:27:52 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_tap.c,v 1.102 2017/11/29 19:21:44 jmcneill Exp $	*/
+/*	$NetBSD: if_tap.c,v 1.103 2017/11/29 19:27:52 jmcneill Exp $	*/
 
 /*
  *  Copyright (c) 2003, 2004, 2008, 2009 The NetBSD Foundation.
@@ -33,7 +33,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.102 2017/11/29 19:21:44 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.103 2017/11/29 19:27:52 jmcneill Exp $");
 
 #if defined(_KERNEL_OPT)
 
@@ -357,7 +357,7 @@ tap_attach(device_t parent, device_t sel
 	strcpy(ifp->if_xname, device_xname(self));
 	ifp->if_softc	= sc;
 	ifp->if_flags	= IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
-	ifp->if_extflags = IFEF_NO_LINK_STATE_CHANGE;
+	ifp->if_extflags = IFEF_MPSAFE | IFEF_NO_LINK_STATE_CHANGE;
 	ifp->if_ioctl	= tap_ioctl;
 	ifp->if_start	= tap_start;
 	ifp->if_stop	= tap_stop;



CVS commit: src/sys/net

2017-11-29 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Nov 29 19:21:45 UTC 2017

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

Log Message:
Make tap(4) MP-safe.


To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 src/sys/net/if_tap.c

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

Modified files:

Index: src/sys/net/if_tap.c
diff -u src/sys/net/if_tap.c:1.101 src/sys/net/if_tap.c:1.102
--- src/sys/net/if_tap.c:1.101	Mon Oct 30 16:01:19 2017
+++ src/sys/net/if_tap.c	Wed Nov 29 19:21:44 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_tap.c,v 1.101 2017/10/30 16:01:19 ozaki-r Exp $	*/
+/*	$NetBSD: if_tap.c,v 1.102 2017/11/29 19:21:44 jmcneill Exp $	*/
 
 /*
  *  Copyright (c) 2003, 2004, 2008, 2009 The NetBSD Foundation.
@@ -33,7 +33,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.101 2017/10/30 16:01:19 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.102 2017/11/29 19:21:44 jmcneill Exp $");
 
 #if defined(_KERNEL_OPT)
 
@@ -54,6 +54,7 @@ __KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -109,8 +110,8 @@ struct tap_softc {
 #define TAP_GOING	0x0008	/* interface is being destroyed */
 	struct selinfo	sc_rsel;
 	pid_t		sc_pgid; /* For async. IO */
-	kmutex_t	sc_rdlock;
-	kmutex_t	sc_kqlock;
+	kmutex_t	sc_lock;
+	kcondvar_t	sc_cv;
 	void		*sc_sih;
 	struct timespec sc_atime;
 	struct timespec sc_mtime;
@@ -182,7 +183,7 @@ const struct cdevsw tap_cdevsw = {
 	.d_mmap = nommap,
 	.d_kqfilter = tap_cdev_kqfilter,
 	.d_discard = nodiscard,
-	.d_flag = D_OTHER
+	.d_flag = D_OTHER | D_MPSAFE
 };
 
 #define TAP_CLONER	0xf		/* Maximal minor value */
@@ -315,22 +316,8 @@ tap_attach(device_t parent, device_t sel
 	sc->sc_flags = 0;
 	selinit(>sc_rsel);
 
-	/*
-	 * Initialize the two locks for the device.
-	 *
-	 * We need a lock here because even though the tap device can be
-	 * opened only once, the file descriptor might be passed to another
-	 * process, say a fork(2)ed child.
-	 *
-	 * The Giant saves us from most of the hassle, but since the read
-	 * operation can sleep, we don't want two processes to wake up at
-	 * the same moment and both try and dequeue a single packet.
-	 *
-	 * The queue for event listeners (used by kqueue(9), see below) has
-	 * to be protected too, so use a spin lock.
-	 */
-	mutex_init(>sc_rdlock, MUTEX_DEFAULT, IPL_NONE);
-	mutex_init(>sc_kqlock, MUTEX_DEFAULT, IPL_VM);
+	cv_init(>sc_cv, "tapread");
+	mutex_init(>sc_lock, MUTEX_DEFAULT, IPL_NET);
 
 	if (!pmf_device_register(self, NULL, NULL))
 		aprint_error_dev(self, "couldn't establish power handler\n");
@@ -385,12 +372,12 @@ tap_attach(device_t parent, device_t sel
 		aprint_error_dev(self, "if_initialize failed(%d)\n", error);
 		ifmedia_removeall(>sc_im);
 		pmf_device_deregister(self);
-		mutex_destroy(>sc_rdlock);
-		mutex_destroy(>sc_kqlock);
+		mutex_destroy(>sc_lock);
 		seldestroy(>sc_rsel);
 
 		return; /* Error */
 	}
+	ifp->if_percpuq = if_percpuq_create(ifp);
 	ether_ifattach(ifp, enaddr);
 	if_register(ifp);
 
@@ -428,13 +415,10 @@ tap_detach(device_t self, int flags)
 	struct tap_softc *sc = device_private(self);
 	struct ifnet *ifp = >sc_ec.ec_if;
 	int error;
-	int s;
 
 	sc->sc_flags |= TAP_GOING;
-	s = splnet();
 	tap_stop(ifp, 1);
 	if_down(ifp);
-	splx(s);
 
 	if (sc->sc_sih != NULL) {
 		softint_disestablish(sc->sc_sih);
@@ -454,8 +438,8 @@ tap_detach(device_t self, int flags)
 	if_detach(ifp);
 	ifmedia_removeall(>sc_im);
 	seldestroy(>sc_rsel);
-	mutex_destroy(>sc_rdlock);
-	mutex_destroy(>sc_kqlock);
+	mutex_destroy(>sc_lock);
+	cv_destroy(>sc_cv);
 
 	pmf_device_deregister(self);
 
@@ -516,12 +500,13 @@ tap_start(struct ifnet *ifp)
 	struct tap_softc *sc = (struct tap_softc *)ifp->if_softc;
 	struct mbuf *m0;
 
+	mutex_enter(>sc_lock);
 	if ((sc->sc_flags & TAP_INUSE) == 0) {
 		/* Simply drop packets */
 		for(;;) {
 			IFQ_DEQUEUE(>if_snd, m0);
 			if (m0 == NULL)
-return;
+goto done;
 
 			ifp->if_opackets++;
 			bpf_mtap(ifp, m0);
@@ -530,11 +515,13 @@ tap_start(struct ifnet *ifp)
 		}
 	} else if (!IFQ_IS_EMPTY(>if_snd)) {
 		ifp->if_flags |= IFF_OACTIVE;
-		wakeup(sc);
+		cv_broadcast(>sc_cv);
 		selnotify(>sc_rsel, 0, 1);
 		if (sc->sc_flags & TAP_ASYNCIO)
 			softint_schedule(sc->sc_sih);
 	}
+done:
+	mutex_exit(>sc_lock);
 }
 
 static void
@@ -645,11 +632,13 @@ tap_stop(struct ifnet *ifp, int disable)
 {
 	struct tap_softc *sc = (struct tap_softc *)ifp->if_softc;
 
+	mutex_enter(>sc_lock);
 	ifp->if_flags &= ~IFF_RUNNING;
-	wakeup(sc);
+	cv_broadcast(>sc_cv);
 	selnotify(>sc_rsel, 0, 1);
 	if (sc->sc_flags & TAP_ASYNCIO)
 		softint_schedule(sc->sc_sih);
+	mutex_exit(>sc_lock);
 }
 
 /*
@@ -931,7 +920,7 @@ tap_dev_read(int unit, struct uio *uio, 
 	struct tap_softc *sc = device_lookup_private(_cd, unit);
 	struct ifnet *ifp;
 	struct mbuf *m, *n;
-	int error = 0, s;
+	int error = 0;
 
 	if (sc == NULL)
 		

CVS commit: src/share/mk

2017-11-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Nov 29 18:15:53 UTC 2017

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

Log Message:
switch everyone to gdb-8.0.1


To generate a diff of this commit:
cvs rdiff -u -r1.1021 -r1.1022 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.1021 src/share/mk/bsd.own.mk:1.1022
--- src/share/mk/bsd.own.mk:1.1021	Tue Nov 28 23:25:01 2017
+++ src/share/mk/bsd.own.mk	Wed Nov 29 13:15:53 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1021 2017/11/29 04:25:01 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.1022 2017/11/29 18:15:53 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -131,11 +131,7 @@ USE_SSP?=	yes
 #
 # What GDB is used?
 #
-.if ${MACHINE} == "amd64"
 HAVE_GDB?=	801
-.else
-HAVE_GDB?=	712
-.endif
 
 .if ${HAVE_GDB} == 801
 EXTERNAL_GDB_SUBDIR=		gdb



CVS commit: src/external/gpl3/gdb

2017-11-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Nov 29 18:15:40 UTC 2017

Modified Files:
src/external/gpl3/gdb/dist/gdb: alpha-nbsd-tdep.c amd64-nbsd-nat.c
amd64-nbsd-tdep.c arm-nbsd-nat.c arm-nbsd-tdep.c hppa-nbsd-nat.c
hppa-nbsd-tdep.c i386-nbsd-nat.c i386-nbsd-tdep.c m68k-bsd-nat.c
mips-nbsd-nat.c mips-nbsd-tdep.c mips-nbsd-tdep.h ppc-nbsd-nat.c
ppc-nbsd-tdep.c ppc-nbsd-tdep.h sh-nbsd-nat.c sh-nbsd-tdep.c
sparc-nbsd-nat.c sparc-nbsd-tdep.c sparc-tdep.h sparc64-nbsd-nat.c
sparc64-nbsd-tdep.c vax-bsd-nat.c vax-nbsd-tdep.c
src/external/gpl3/gdb/lib/libbfd/arch/alpha: bfd-in3.h bfd.h bfdver.h
config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/arm: bfd-in3.h bfd.h bfd_stdint.h
bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/armeb: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/hppa: bfd-in3.h bfd.h
bfd_stdint.h bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/i386: bfd-in3.h bfd.h bfdver.h
config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/m68000: bfd-in3.h bfd.h bfdver.h
config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/m68k: bfd-in3.h bfd.h bfdver.h
config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/mips64eb: bfd-in3.h bfd.h
bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/mips64el: bfd-in3.h bfd.h
bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/mipseb: bfd-in3.h bfd.h bfdver.h
config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/mipsel: bfd-in3.h bfd.h bfdver.h
config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/powerpc: bfd-in3.h bfd.h bfdver.h
config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/powerpc64: bfd-in3.h bfd.h
bfdver.h config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/sh3eb: bfd-in3.h bfd.h bfdver.h
config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/sh3el: bfd-in3.h bfd.h bfdver.h
config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/sparc: bfd-in3.h bfd.h bfdver.h
config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/sparc64: bfd-in3.h bfd.h bfdver.h
config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/vax: bfd-in3.h bfd.h bfdver.h
config.h defs.mk targmatch.h
src/external/gpl3/gdb/lib/libdecnumber/arch/alpha: config.h defs.mk
src/external/gpl3/gdb/lib/libdecnumber/arch/arm: config.h defs.mk
gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/armeb: config.h defs.mk
gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/hppa: config.h defs.mk
gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/i386: config.h defs.mk
src/external/gpl3/gdb/lib/libdecnumber/arch/m68000: config.h defs.mk
src/external/gpl3/gdb/lib/libdecnumber/arch/m68k: config.h defs.mk
src/external/gpl3/gdb/lib/libdecnumber/arch/mips64eb: config.h defs.mk
src/external/gpl3/gdb/lib/libdecnumber/arch/mips64el: config.h defs.mk
src/external/gpl3/gdb/lib/libdecnumber/arch/mipseb: config.h defs.mk
src/external/gpl3/gdb/lib/libdecnumber/arch/mipsel: config.h defs.mk
src/external/gpl3/gdb/lib/libdecnumber/arch/powerpc: config.h defs.mk
src/external/gpl3/gdb/lib/libdecnumber/arch/powerpc64: config.h defs.mk
src/external/gpl3/gdb/lib/libdecnumber/arch/sh3eb: config.h defs.mk
src/external/gpl3/gdb/lib/libdecnumber/arch/sh3el: config.h defs.mk
src/external/gpl3/gdb/lib/libdecnumber/arch/sparc: config.h defs.mk
src/external/gpl3/gdb/lib/libdecnumber/arch/sparc64: config.h defs.mk
src/external/gpl3/gdb/lib/libdecnumber/arch/vax: config.h defs.mk
src/external/gpl3/gdb/lib/libgdb/arch/alpha: config.h defs.mk init.c
jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/alpha/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/arm: config.h defs.mk init.c
jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/arm/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/armeb: config.h defs.mk init.c
jit-reader.h observer.h observer.inc version.c xml-builtin.c
src/external/gpl3/gdb/lib/libgdb/arch/armeb/build-gnulib: config.h
src/external/gpl3/gdb/lib/libgdb/arch/hppa: config.h 

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

2017-11-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Nov 29 17:54:55 UTC 2017

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

Log Message:
include  for sigset_t


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/vax/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/vax/include/signal.h
diff -u src/sys/arch/vax/include/signal.h:1.15 src/sys/arch/vax/include/signal.h:1.16
--- src/sys/arch/vax/include/signal.h:1.15	Tue Jan 13 18:56:13 2009
+++ src/sys/arch/vax/include/signal.h	Wed Nov 29 12:54:55 2017
@@ -1,4 +1,4 @@
-/*  $NetBSD: signal.h,v 1.15 2009/01/13 23:56:13 mjf Exp $   */
+/*  $NetBSD: signal.h,v 1.16 2017/11/29 17:54:55 christos Exp $   */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
@@ -43,6 +43,7 @@
 typedef int sig_atomic_t;
 
 #if defined(_NETBSD_SOURCE)
+#include 
 /*
  * Information pushed on stack when a signal is delivered.
  * This is used by the kernel to restore state following



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

2017-11-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Nov 29 17:49:04 UTC 2017

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

Log Message:
include  for sigset_t


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/sparc/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/sparc/include/signal.h
diff -u src/sys/arch/sparc/include/signal.h:1.22 src/sys/arch/sparc/include/signal.h:1.23
--- src/sys/arch/sparc/include/signal.h:1.22	Wed Nov 19 13:36:00 2008
+++ src/sys/arch/sparc/include/signal.h	Wed Nov 29 12:49:03 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: signal.h,v 1.22 2008/11/19 18:36:00 ad Exp $ */
+/*	$NetBSD: signal.h,v 1.23 2017/11/29 17:49:03 christos Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -51,7 +51,7 @@ typedef int sig_atomic_t;
 
 #if defined(_NETBSD_SOURCE)
 #ifndef _LOCORE
-
+#include 
 /*
  * Information pushed on stack when a signal is delivered.
  * This is used by the kernel to restore state following



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

2017-11-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Nov 29 17:43:20 UTC 2017

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

Log Message:
need  for sigset_t


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/sh3/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/sh3/include/signal.h
diff -u src/sys/arch/sh3/include/signal.h:1.13 src/sys/arch/sh3/include/signal.h:1.14
--- src/sys/arch/sh3/include/signal.h:1.13	Wed Nov 19 13:36:00 2008
+++ src/sys/arch/sh3/include/signal.h	Wed Nov 29 12:43:20 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: signal.h,v 1.13 2008/11/19 18:36:00 ad Exp $	*/
+/*	$NetBSD: signal.h,v 1.14 2017/11/29 17:43:20 christos Exp $	*/
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
@@ -39,7 +39,7 @@
 typedef int sig_atomic_t;
 
 #if defined(_NETBSD_SOURCE)
-
+#include 
 /*
  * Information pushed on stack when a signal is delivered.
  * This is used by the kernel to restore state following



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

2017-11-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Nov 29 17:36:16 UTC 2017

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

Log Message:
need sigtypes.h for sigset_t, since  includes this directly.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/powerpc/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/powerpc/include/signal.h
diff -u src/sys/arch/powerpc/include/signal.h:1.20 src/sys/arch/powerpc/include/signal.h:1.21
--- src/sys/arch/powerpc/include/signal.h:1.20	Wed Nov 19 17:59:56 2008
+++ src/sys/arch/powerpc/include/signal.h	Wed Nov 29 12:36:16 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: signal.h,v 1.20 2008/11/19 22:59:56 cegger Exp $	*/
+/*	$NetBSD: signal.h,v 1.21 2017/11/29 17:36:16 christos Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -39,6 +39,7 @@
 typedef int sig_atomic_t;
 
 #if defined(_NETBSD_SOURCE)
+#include 
 #include 
 
 #if defined(__LIBC12_SOURCE__) || defined(_KERNEL)



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

2017-11-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Nov 29 17:36:03 UTC 2017

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

Log Message:
need sigtypes.h for sigset_t, since  includes this directly.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/hppa/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/hppa/include/signal.h
diff -u src/sys/arch/hppa/include/signal.h:1.6 src/sys/arch/hppa/include/signal.h:1.7
--- src/sys/arch/hppa/include/signal.h:1.6	Sun Jan  2 13:07:02 2011
+++ src/sys/arch/hppa/include/signal.h	Wed Nov 29 12:36:03 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: signal.h,v 1.6 2011/01/02 18:07:02 skrll Exp $	*/
+/*	$NetBSD: signal.h,v 1.7 2017/11/29 17:36:03 christos Exp $	*/
 
 /*	$OpenBSD: signal.h,v 1.1 1998/06/23 19:45:27 mickey Exp $	*/
 
@@ -33,6 +33,7 @@
  */
 
 #include 
+#include 
 
 typedef int sig_atomic_t;
 



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

2017-11-29 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Nov 29 16:10:01 UTC 2017

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

Log Message:
PR port-i386/52774: vioscsi missing in i386 kernel


To generate a diff of this commit:
cvs rdiff -u -r1.1170 -r1.1171 src/sys/arch/i386/conf/GENERIC

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

Modified files:

Index: src/sys/arch/i386/conf/GENERIC
diff -u src/sys/arch/i386/conf/GENERIC:1.1170 src/sys/arch/i386/conf/GENERIC:1.1171
--- src/sys/arch/i386/conf/GENERIC:1.1170	Mon Nov  6 02:57:18 2017
+++ src/sys/arch/i386/conf/GENERIC	Wed Nov 29 16:10:01 2017
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.1170 2017/11/06 02:57:18 rin Exp $
+# $NetBSD: GENERIC,v 1.1171 2017/11/29 16:10:01 martin Exp $
 #
 # GENERIC machine description file
 #
@@ -22,7 +22,7 @@ include 	"arch/i386/conf/std.i386"
 
 options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
 
-#ident		"GENERIC-$Revision: 1.1170 $"
+#ident		"GENERIC-$Revision: 1.1171 $"
 
 maxusers	64		# estimated number of users
 
@@ -1595,10 +1595,12 @@ geodecntr* at geodegcb? 		# AMD Geode SC
 weasel* at pci?
 
 # Virtio devices
-virtio*	at pci? dev ? function ?	# Virtio PCI device
-viomb*	at virtio?			# Virtio memory balloon device
-ld*	at virtio?			# Virtio disk device
-vioif*	at virtio?			# Virtio network device
+virtio* at pci? dev ? function ?	# Virtio PCI device
+viomb* at virtio?			# Virtio memory balloon device
+ld* at virtio?# Virtio disk device
+vioif* at virtio?			# Virtio network device
+viornd* at virtio?			# Virtio entropy device
+vioscsi* at virtio?			# Virtio SCSI device
 
 
 # Pull in optional local configuration



CVS commit: [netbsd-8] src/external/gpl3/binutils.old

2017-11-29 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Nov 29 15:18:09 UTC 2017

Removed Files:
src/external/gpl3/binutils.old [netbsd-8]: Makefile Makefile.inc

Log Message:
Delete the unused binutils.old.

OK releng.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r0 src/external/gpl3/binutils.old/Makefile
cvs rdiff -u -r1.4 -r0 src/external/gpl3/binutils.old/Makefile.inc

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



CVS commit: src/distrib/sets/lists

2017-11-29 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Wed Nov 29 09:34:01 UTC 2017

Modified Files:
src/distrib/sets/lists/base: md.amd64 md.i386
src/distrib/sets/lists/man: mi

Log Message:
mount_qemufwcfg is only installed on i386 and amd64, and so is its manpage.

Move it to the architecture dependent set lists.

Noted by martin.


To generate a diff of this commit:
cvs rdiff -u -r1.272 -r1.273 src/distrib/sets/lists/base/md.amd64
cvs rdiff -u -r1.147 -r1.148 src/distrib/sets/lists/base/md.i386
cvs rdiff -u -r1.1564 -r1.1565 src/distrib/sets/lists/man/mi

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

Modified files:

Index: src/distrib/sets/lists/base/md.amd64
diff -u src/distrib/sets/lists/base/md.amd64:1.272 src/distrib/sets/lists/base/md.amd64:1.273
--- src/distrib/sets/lists/base/md.amd64:1.272	Sat Nov 25 23:29:43 2017
+++ src/distrib/sets/lists/base/md.amd64	Wed Nov 29 09:34:01 2017
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.272 2017/11/25 23:29:43 jmcneill Exp $
+# $NetBSD: md.amd64,v 1.273 2017/11/29 09:34:01 wiz Exp $
 ./dev/lms0	base-obsolete		obsolete
 ./dev/mms0	base-obsolete		obsolete
 ./sbin/mount_qemufwcfgbase-sysutil-root
@@ -68,3 +68,6 @@
 ./usr/mdec/pxeboot_ia32_com0.bin		base-obsolete		obsolete
 ./usr/sbin/acpidumpbase-sysutil-bin
 ./usr/sbin/amldbbase-sysutil-bin
+./usr/share/man/cat8/mount_qemufwcfg.0		man-sysutil-catman	.cat
+./usr/share/man/html8/mount_qemufwcfg.html	man-sysutil-htmlman	html
+./usr/share/man/man8/mount_qemufwcfg.8		man-sysutil-man		.man

Index: src/distrib/sets/lists/base/md.i386
diff -u src/distrib/sets/lists/base/md.i386:1.147 src/distrib/sets/lists/base/md.i386:1.148
--- src/distrib/sets/lists/base/md.i386:1.147	Sat Nov 25 23:29:43 2017
+++ src/distrib/sets/lists/base/md.i386	Wed Nov 29 09:34:01 2017
@@ -1,4 +1,4 @@
-# $NetBSD: md.i386,v 1.147 2017/11/25 23:29:43 jmcneill Exp $
+# $NetBSD: md.i386,v 1.148 2017/11/29 09:34:01 wiz Exp $
 ./dev/lms0	base-obsolete		obsolete
 ./dev/mms0	base-obsolete		obsolete
 ./dev/pms0	base-obsolete		obsolete
@@ -104,6 +104,9 @@
 ./usr/sbin/ipwctlbase-sysutil-bin
 ./usr/sbin/ndiscvtbase-sysutil-bin
 ./usr/sbin/zzz	base-sysutil-bin
+./usr/share/man/cat8/mount_qemufwcfg.0		man-sysutil-catman	.cat
+./usr/share/man/html8/mount_qemufwcfg.html	man-sysutil-htmlman	html
+./usr/share/man/man8/mount_qemufwcfg.8		man-sysutil-man		.man
 ./usr/share/pcvtbase-obsolete		obsolete
 ./usr/share/pcvt/fontsbase-obsolete		obsolete
 ./usr/share/pcvt/fonts/vt220h.808		base-obsolete		obsolete

Index: src/distrib/sets/lists/man/mi
diff -u src/distrib/sets/lists/man/mi:1.1564 src/distrib/sets/lists/man/mi:1.1565
--- src/distrib/sets/lists/man/mi:1.1564	Tue Nov 28 11:59:16 2017
+++ src/distrib/sets/lists/man/mi	Wed Nov 29 09:34:01 2017
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1564 2017/11/28 11:59:16 wiz Exp $
+# $NetBSD: mi,v 1.1565 2017/11/29 09:34:01 wiz Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -2737,7 +2737,6 @@
 ./usr/share/man/cat8/mount_psshfs.0		man-puffs-catman	.cat
 ./usr/share/man/cat8/mount_ptyfs.0		man-sysutil-catman	.cat
 ./usr/share/man/cat8/mount_puffs.0		man-sysutil-catman	.cat
-./usr/share/man/cat8/mount_qemufwcfg.0		man-sysutil-catman	.cat
 ./usr/share/man/cat8/mount_smbfs.0		man-smbfs-catman	.cat
 ./usr/share/man/cat8/mount_sysctlfs.0		man-puffs-catman	.cat
 ./usr/share/man/cat8/mount_sysvbfs.0		man-sysutil-catman	.cat
@@ -5654,7 +5653,6 @@
 ./usr/share/man/html8/mount_psshfs.html		man-puffs-htmlman	html
 ./usr/share/man/html8/mount_ptyfs.html		man-sysutil-htmlman	html
 ./usr/share/man/html8/mount_puffs.html		man-sysutil-htmlman	html
-./usr/share/man/html8/mount_qemufwcfg.html	man-sysutil-htmlman	html
 ./usr/share/man/html8/mount_smbfs.html		man-smbfs-htmlman	html
 ./usr/share/man/html8/mount_sysctlfs.html	man-puffs-htmlman	html
 ./usr/share/man/html8/mount_sysvbfs.html	man-sysutil-htmlman	html
@@ -8753,7 +8751,6 @@
 ./usr/share/man/man8/mount_psshfs.8		man-puffs-man		.man
 ./usr/share/man/man8/mount_ptyfs.8		man-sysutil-man		.man
 ./usr/share/man/man8/mount_puffs.8		man-sysutil-man		.man
-./usr/share/man/man8/mount_qemufwcfg.8		man-sysutil-man		.man
 ./usr/share/man/man8/mount_smbfs.8		man-smbfs-man		.man
 ./usr/share/man/man8/mount_sysctlfs.8		man-puffs-man		.man
 ./usr/share/man/man8/mount_sysvbfs.8		man-sysutil-man		.man