CVS commit: src/sys/external/bsd/vchiq/dist/interface

2017-01-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Jan 12 05:41:25 UTC 2017

Modified Files:
src/sys/external/bsd/vchiq/dist/interface/vchi: vchi.h vchi_common.h
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm: vchiq.h
vchiq_2835_arm.c vchiq_arm.c vchiq_arm.h vchiq_cfg.h
vchiq_connected.h vchiq_core.c vchiq_core.h vchiq_genversion
vchiq_if.h vchiq_ioctl.h vchiq_shim.c vchiq_util.c vchiq_util.h
Added Files:
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm: vchiq_debugfs.h
Removed Files:
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm: vchiq_proc.c

Log Message:
Sync with latest github/raspberrypi/linux sources

XXX should provide a vchiq2netbsd and cvs import


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/sys/external/bsd/vchiq/dist/interface/vchi/vchi.h \
src/sys/external/bsd/vchiq/dist/interface/vchi/vchi_common.h
cvs rdiff -u -r1.1 -r1.2 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq.h \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_arm.h \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_cfg.h \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_connected.h \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_genversion
cvs rdiff -u -r1.17 -r1.18 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_2835_arm.c \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_arm.c
cvs rdiff -u -r1.10 -r1.11 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_core.c
cvs rdiff -u -r1.3 -r1.4 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_core.h
cvs rdiff -u -r0 -r1.1 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_debugfs.h
cvs rdiff -u -r1.2 -r1.3 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_if.h \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_ioctl.h \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_util.c \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_util.h
cvs rdiff -u -r1.2 -r0 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_proc.c
cvs rdiff -u -r1.5 -r1.6 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_shim.c

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



CVS commit: src/sys/external/bsd/vchiq/dist/interface

2017-01-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Jan 12 05:41:25 UTC 2017

Modified Files:
src/sys/external/bsd/vchiq/dist/interface/vchi: vchi.h vchi_common.h
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm: vchiq.h
vchiq_2835_arm.c vchiq_arm.c vchiq_arm.h vchiq_cfg.h
vchiq_connected.h vchiq_core.c vchiq_core.h vchiq_genversion
vchiq_if.h vchiq_ioctl.h vchiq_shim.c vchiq_util.c vchiq_util.h
Added Files:
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm: vchiq_debugfs.h
Removed Files:
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm: vchiq_proc.c

Log Message:
Sync with latest github/raspberrypi/linux sources

XXX should provide a vchiq2netbsd and cvs import


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/sys/external/bsd/vchiq/dist/interface/vchi/vchi.h \
src/sys/external/bsd/vchiq/dist/interface/vchi/vchi_common.h
cvs rdiff -u -r1.1 -r1.2 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq.h \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_arm.h \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_cfg.h \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_connected.h \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_genversion
cvs rdiff -u -r1.17 -r1.18 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_2835_arm.c \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_arm.c
cvs rdiff -u -r1.10 -r1.11 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_core.c
cvs rdiff -u -r1.3 -r1.4 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_core.h
cvs rdiff -u -r0 -r1.1 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_debugfs.h
cvs rdiff -u -r1.2 -r1.3 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_if.h \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_ioctl.h \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_util.c \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_util.h
cvs rdiff -u -r1.2 -r0 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_proc.c
cvs rdiff -u -r1.5 -r1.6 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_shim.c

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

Modified files:

Index: src/sys/external/bsd/vchiq/dist/interface/vchi/vchi.h
diff -u src/sys/external/bsd/vchiq/dist/interface/vchi/vchi.h:1.1 src/sys/external/bsd/vchiq/dist/interface/vchi/vchi.h:1.2
--- src/sys/external/bsd/vchiq/dist/interface/vchi/vchi.h:1.1	Fri Mar  8 12:32:30 2013
+++ src/sys/external/bsd/vchiq/dist/interface/vchi/vchi.h	Thu Jan 12 05:41:25 2017
@@ -220,7 +220,12 @@ extern int32_t vchi_service_use( const V
 // Routine to decrement ref count on a named service
 extern int32_t vchi_service_release( const VCHI_SERVICE_HANDLE_T handle );
 
-// Routine to send a message accross a service
+// Routine to set a control option for a named service
+extern int32_t vchi_service_set_option( const VCHI_SERVICE_HANDLE_T handle,
+	VCHI_SERVICE_OPTION_T option,
+	int value);
+
+// Routine to send a message across a service
 extern int32_t vchi_msg_queue( VCHI_SERVICE_HANDLE_T handle,
const void *data,
uint32_t data_size,
Index: src/sys/external/bsd/vchiq/dist/interface/vchi/vchi_common.h
diff -u src/sys/external/bsd/vchiq/dist/interface/vchi/vchi_common.h:1.1 src/sys/external/bsd/vchiq/dist/interface/vchi/vchi_common.h:1.2
--- src/sys/external/bsd/vchiq/dist/interface/vchi/vchi_common.h:1.1	Fri Mar  8 12:32:30 2013
+++ src/sys/external/bsd/vchiq/dist/interface/vchi/vchi_common.h	Thu Jan 12 05:41:25 2017
@@ -110,7 +110,19 @@ typedef enum
VCHI_CALLBACK_REASON_MAX
 } VCHI_CALLBACK_REASON_T;
 
-//Calback used by all services / bulk transfers
+// service control options
+typedef enum
+{
+   VCHI_SERVICE_OPTION_MIN,
+
+   VCHI_SERVICE_OPTION_TRACE,
+   VCHI_SERVICE_OPTION_SYNCHRONOUS,
+
+   VCHI_SERVICE_OPTION_MAX
+} VCHI_SERVICE_OPTION_T;
+
+
+//Callback used by all services / bulk transfers
 typedef void (*VCHI_CALLBACK_T)( void *callback_param, //my service local param
  VCHI_CALLBACK_REASON_T reason,
  void *handle ); //for transmitting msg's only

Index: src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq.h
diff -u src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq.h:1.1 src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq.h:1.2
--- src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq.h:1.1	Fri Mar  8 12:32:30 2013
+++ src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq.h	Thu Jan 12 05:41:25 2017
@@ -38,4 +38,3 @@
 #include "vchiq_util.h"
 
 #endif
-
Index: src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_arm.h
diff -u 

CVS commit: src/sys/external/bsd/vchiq/dist/interface/vchiq_arm

2017-01-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Jan 12 05:35:45 UTC 2017

Modified Files:
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm:
vchiq_kmod_netbsd.c

Log Message:
Use some macros for magic numbers and correct return value.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_kmod_netbsd.c

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

Modified files:

Index: src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_kmod_netbsd.c
diff -u src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_kmod_netbsd.c:1.6 src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_kmod_netbsd.c:1.7
--- src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_kmod_netbsd.c:1.6	Fri Jan 15 07:49:41 2016
+++ src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_kmod_netbsd.c	Thu Jan 12 05:35:45 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: vchiq_kmod_netbsd.c,v 1.6 2016/01/15 07:49:41 mlelstv Exp $ */
+/* $NetBSD: vchiq_kmod_netbsd.c,v 1.7 2017/01/12 05:35:45 skrll Exp $ */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: vchiq_kmod_netbsd.c,v 1.6 2016/01/15 07:49:41 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vchiq_kmod_netbsd.c,v 1.7 2017/01/12 05:35:45 skrll Exp $");
 
 #include 
 #include 
@@ -72,6 +72,13 @@ static void vchiq_defer(device_t);
 /* External functions */
 int vchiq_init(void);
 
+
+#define VCHIQ_DOORBELL0		0x40
+#define VCHIQ_DOORBELL1		0x44
+#define VCHIQ_DOORBELL2		0x48
+#define VCHIQ_DOORBELL3		0x4C
+
+
 CFATTACH_DECL_NEW(vchiq, sizeof(struct vchiq_softc),
 vchiq_match, vchiq_attach, NULL, NULL);
 
@@ -138,14 +145,17 @@ vchiq_intr(void *priv)
 	struct vchiq_softc *sc = priv;
 	uint32_t status;
 
-	status = bus_space_read_4(sc->sc_iot, sc->sc_ioh, 0x40);
-	if (status & 0x4)
-		remote_event_pollall(_state);
+	bus_space_barrier(sc->sc_iot, sc->sc_ioh,
+	VCHIQ_DOORBELL0, 4, BUS_SPACE_BARRIER_READ);
 
-	bus_space_barrier(vchiq_softc->sc_iot, vchiq_softc->sc_ioh,
-	0x40, 4, BUS_SPACE_BARRIER_READ);
+	rmb();
+	status = bus_space_read_4(sc->sc_iot, sc->sc_ioh, VCHIQ_DOORBELL0);
+	if (status & 0x4) {
+		remote_event_pollall(_state);
+		return 1;
+	}
 
-	return 1;
+	return 0;
 }
 
 static int
@@ -169,10 +179,10 @@ remote_event_signal(REMOTE_EVENT_T *even
 	dsb();		/* data barrier operation */
 
 	if (event->armed) {
-		bus_space_barrier(vchiq_softc->sc_iot, vchiq_softc->sc_ioh,
-		0x48, 4, BUS_SPACE_BARRIER_WRITE);
 		bus_space_write_4(vchiq_softc->sc_iot, vchiq_softc->sc_ioh,
-		0x48, 0);
+		VCHIQ_DOORBELL2, 0);
+bus_space_barrier(vchiq_softc->sc_iot, vchiq_softc->sc_ioh,
+VCHIQ_DOORBELL2, 4, BUS_SPACE_BARRIER_WRITE);
 	}
 }
 



CVS commit: src/sys/external/bsd/vchiq/dist/interface/vchiq_arm

2017-01-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Jan 12 05:35:45 UTC 2017

Modified Files:
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm:
vchiq_kmod_netbsd.c

Log Message:
Use some macros for magic numbers and correct return value.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_kmod_netbsd.c

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



CVS commit: src/sys/external/bsd/vchiq/dist/interface/compat

2017-01-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Jan 12 05:25:03 UTC 2017

Modified Files:
src/sys/external/bsd/vchiq/dist/interface/compat: vchi_bsd.h

Log Message:
Sync memory barriers with sys/external/bsd/drm2/include/asm/barrier.h


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 \
src/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.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/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h
diff -u src/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h:1.9 src/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h:1.10
--- src/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h:1.9	Sat Oct 25 11:35:15 2014
+++ src/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h	Thu Jan 12 05:25:03 2017
@@ -327,13 +327,20 @@ typedef	off_t	loff_t;
 #define BCM2835_MBOX_CHAN_VCHIQ	3
 #define bcm_mbox_write	bcmmbox_write
 
-#define rmb	membar_consumer
-#define wmb	membar_producer
+#define mb  membar_sync
+#define wmb membar_producer
+#define rmb membar_consumer
 #define dsb	membar_producer
 
-#define smp_mb	membar_producer
-#define smp_rmb	membar_consumer
-#define smp_wmb	membar_producer
+#ifdef MULTIPROCESSOR
+#  define   smp_mb  mb
+#  define   smp_wmb wmb
+#  define   smp_rmb rmb
+#else
+#  define   smp_mb()do {} while (0)
+#  define   smp_wmb()   do {} while (0)
+#  define   smp_rmb()   do {} while (0)
+#endif
 
 #define device_print_prettyname(dev)	device_printf((dev), "")
 



CVS commit: src/sys/external/bsd/vchiq/dist/interface/compat

2017-01-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Jan 12 05:25:03 UTC 2017

Modified Files:
src/sys/external/bsd/vchiq/dist/interface/compat: vchi_bsd.h

Log Message:
Sync memory barriers with sys/external/bsd/drm2/include/asm/barrier.h


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 \
src/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h

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



CVS commit: src/sys/arch

2017-01-11 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Thu Jan 12 05:24:36 UTC 2017

Modified Files:
src/sys/arch/amd64/conf: ALL GENERIC XEN3_DOM0 XEN3_DOMU majors.amd64
std.amd64 std.xen
src/sys/arch/i386/conf: ALL GENERIC INSTALL_FLOPPY XEN3_DOM0 XEN3_DOMU
majors.i386 std.i386

Log Message:
white space police


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/amd64/conf/ALL
cvs rdiff -u -r1.449 -r1.450 src/sys/arch/amd64/conf/GENERIC
cvs rdiff -u -r1.126 -r1.127 src/sys/arch/amd64/conf/XEN3_DOM0
cvs rdiff -u -r1.67 -r1.68 src/sys/arch/amd64/conf/XEN3_DOMU
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/amd64/conf/majors.amd64
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/amd64/conf/std.amd64
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/amd64/conf/std.xen
cvs rdiff -u -r1.410 -r1.411 src/sys/arch/i386/conf/ALL
cvs rdiff -u -r1.1145 -r1.1146 src/sys/arch/i386/conf/GENERIC
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/i386/conf/INSTALL_FLOPPY \
src/sys/arch/i386/conf/std.i386
cvs rdiff -u -r1.104 -r1.105 src/sys/arch/i386/conf/XEN3_DOM0
cvs rdiff -u -r1.70 -r1.71 src/sys/arch/i386/conf/XEN3_DOMU
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/i386/conf/majors.i386

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

Modified files:

Index: src/sys/arch/amd64/conf/ALL
diff -u src/sys/arch/amd64/conf/ALL:1.48 src/sys/arch/amd64/conf/ALL:1.49
--- src/sys/arch/amd64/conf/ALL:1.48	Tue Dec 27 01:11:52 2016
+++ src/sys/arch/amd64/conf/ALL	Thu Jan 12 05:24:36 2017
@@ -1,4 +1,4 @@
-# $NetBSD: ALL,v 1.48 2016/12/27 01:11:52 pgoyette Exp $
+# $NetBSD: ALL,v 1.49 2017/01/12 05:24:36 ryo Exp $
 # From NetBSD: GENERIC,v 1.787 2006/10/01 18:37:54 bouyer Exp
 #
 # ALL machine description file
@@ -17,7 +17,7 @@ include 	"arch/amd64/conf/std.amd64"
 
 options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
 
-#ident 		"ALL-$Revision: 1.48 $"
+#ident		"ALL-$Revision: 1.49 $"
 
 maxusers	64		# estimated number of users
 
@@ -163,35 +163,35 @@ options 	DKWEDGE_AUTODISCOVER	# Automati
 options 	DKWEDGE_METHOD_GPT	# Supports GPT partitions as wedges
 #options 	DKWEDGE_METHOD_BSDLABEL	# Support disklabel entries as wedges
 #options 	DKWEDGE_METHOD_MBR	# Support MBR partitions as wedges
-options 	DKWEDGE_METHOD_APPLE# Support Apple partitions as wedges
+options 	DKWEDGE_METHOD_APPLE	# Support Apple partitions as wedges
 
 # File systems
-file-system 	FFS		# UFS
-file-system 	EXT2FS		# second extended file system (linux)
-file-system 	LFS		# log-structured file system
-file-system 	MFS		# memory file system
-file-system 	NFS		# Network File System client
-file-system 	NTFS		# Windows/NT file system (experimental)
-file-system 	CD9660		# ISO 9660 + Rock Ridge file system
-file-system 	MSDOSFS		# MS-DOS file system
-file-system 	FDESC		# /dev/fd
-file-system 	KERNFS		# /kern
-file-system 	NULLFS		# loopback file system
-file-system 	OVERLAY		# overlay file system
+file-system	FFS		# UFS
+file-system	EXT2FS		# second extended file system (linux)
+file-system	LFS		# log-structured file system
+file-system	MFS		# memory file system
+file-system	NFS		# Network File System client
+file-system	NTFS		# Windows/NT file system (experimental)
+file-system	CD9660		# ISO 9660 + Rock Ridge file system
+file-system	MSDOSFS		# MS-DOS file system
+file-system	FDESC		# /dev/fd
+file-system	KERNFS		# /kern
+file-system	NULLFS		# loopback file system
+file-system	OVERLAY		# overlay file system
 file-system	PUFFS		# Userspace file systems (e.g. ntfs-3g & sshfs)
-file-system 	PROCFS		# /proc
-file-system 	UMAPFS		# NULLFS + uid and gid remapping
-file-system 	UNION		# union file system
-file-system 	CODA		# Coda File System; also needs vcoda (below)
-file-system 	SMBFS		# experimental - CIFS; also needs nsmb (below)
-file-system 	SYSVBFS		# System V boot file system
-file-system 	PTYFS		# /dev/ptm support
-file-system 	TMPFS		# Efficient memory file-system
-file-system 	UDF		# experimental - OSTA UDF CD/DVD file-system
-file-system 	HFS		# experimental - Apple HFS+ file system
-file-system 	EFS		# Silicon Graphics Extent File System
-file-system 	FILECORE	# Acorn filecore file system
-file-system 	ADOSFS		# AmigaDOS file system
+file-system	PROCFS		# /proc
+file-system	UMAPFS		# NULLFS + uid and gid remapping
+file-system	UNION		# union file system
+file-system	CODA		# Coda File System; also needs vcoda (below)
+file-system	SMBFS		# experimental - CIFS; also needs nsmb (below)
+file-system	SYSVBFS		# System V boot file system
+file-system	PTYFS		# /dev/ptm support
+file-system	TMPFS		# Efficient memory file-system
+file-system	UDF		# experimental - OSTA UDF CD/DVD file-system
+file-system	HFS		# experimental - Apple HFS+ file system
+file-system	EFS		# Silicon Graphics Extent File System
+file-system	FILECORE	# Acorn filecore file system
+file-system	ADOSFS		# AmigaDOS file system
 file-system	NILFS		# experimental - NTT's NiLFS(2)
 file-system	

CVS commit: src/sys/arch

2017-01-11 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Thu Jan 12 05:24:36 UTC 2017

Modified Files:
src/sys/arch/amd64/conf: ALL GENERIC XEN3_DOM0 XEN3_DOMU majors.amd64
std.amd64 std.xen
src/sys/arch/i386/conf: ALL GENERIC INSTALL_FLOPPY XEN3_DOM0 XEN3_DOMU
majors.i386 std.i386

Log Message:
white space police


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/amd64/conf/ALL
cvs rdiff -u -r1.449 -r1.450 src/sys/arch/amd64/conf/GENERIC
cvs rdiff -u -r1.126 -r1.127 src/sys/arch/amd64/conf/XEN3_DOM0
cvs rdiff -u -r1.67 -r1.68 src/sys/arch/amd64/conf/XEN3_DOMU
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/amd64/conf/majors.amd64
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/amd64/conf/std.amd64
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/amd64/conf/std.xen
cvs rdiff -u -r1.410 -r1.411 src/sys/arch/i386/conf/ALL
cvs rdiff -u -r1.1145 -r1.1146 src/sys/arch/i386/conf/GENERIC
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/i386/conf/INSTALL_FLOPPY \
src/sys/arch/i386/conf/std.i386
cvs rdiff -u -r1.104 -r1.105 src/sys/arch/i386/conf/XEN3_DOM0
cvs rdiff -u -r1.70 -r1.71 src/sys/arch/i386/conf/XEN3_DOMU
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/i386/conf/majors.i386

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



CVS commit: src/external/broadcom/rpi-firmware/dist

2017-01-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Jan 12 05:20:07 UTC 2017

Modified Files:
src/external/broadcom/rpi-firmware/dist: bootcode.bin fixup.dat
fixup_cd.dat start.elf start_cd.elf

Log Message:
New firmware from

commit 87edb826b91ce08ea3e383936cc4791eb7491f35
Author: popcornmix 
Date:   Wed Jan 4 15:20:02 2017 +

Revert: CEC code clean up
See: https://github.com/raspberrypi/firmware/issues/710
See: https://github.com/Hexxeh/rpi-firmware/issues/133


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 \
src/external/broadcom/rpi-firmware/dist/bootcode.bin \
src/external/broadcom/rpi-firmware/dist/fixup.dat \
src/external/broadcom/rpi-firmware/dist/fixup_cd.dat \
src/external/broadcom/rpi-firmware/dist/start.elf \
src/external/broadcom/rpi-firmware/dist/start_cd.elf

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

Modified files:

Index: src/external/broadcom/rpi-firmware/dist/bootcode.bin
Binary files are different
Index: src/external/broadcom/rpi-firmware/dist/fixup.dat
Binary files are different
Index: src/external/broadcom/rpi-firmware/dist/fixup_cd.dat
Binary files are different
Index: src/external/broadcom/rpi-firmware/dist/start.elf
Binary files are different
Index: src/external/broadcom/rpi-firmware/dist/start_cd.elf
Binary files are different



CVS commit: src/external/broadcom/rpi-firmware/dist

2017-01-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Jan 12 05:20:07 UTC 2017

Modified Files:
src/external/broadcom/rpi-firmware/dist: bootcode.bin fixup.dat
fixup_cd.dat start.elf start_cd.elf

Log Message:
New firmware from

commit 87edb826b91ce08ea3e383936cc4791eb7491f35
Author: popcornmix 
Date:   Wed Jan 4 15:20:02 2017 +

Revert: CEC code clean up
See: https://github.com/raspberrypi/firmware/issues/710
See: https://github.com/Hexxeh/rpi-firmware/issues/133


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 \
src/external/broadcom/rpi-firmware/dist/bootcode.bin \
src/external/broadcom/rpi-firmware/dist/fixup.dat \
src/external/broadcom/rpi-firmware/dist/fixup_cd.dat \
src/external/broadcom/rpi-firmware/dist/start.elf \
src/external/broadcom/rpi-firmware/dist/start_cd.elf

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



CVS commit: src/sys/netinet6

2017-01-11 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Thu Jan 12 04:43:59 UTC 2017

Modified Files:
src/sys/netinet6: in6.c

Log Message:
Prevent in6_ifaddr from being freed with holding its psref

This is a possible fix for PR kern/51828.


To generate a diff of this commit:
cvs rdiff -u -r1.232 -r1.233 src/sys/netinet6/in6.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/netinet6/in6.c
diff -u src/sys/netinet6/in6.c:1.232 src/sys/netinet6/in6.c:1.233
--- src/sys/netinet6/in6.c:1.232	Wed Jan 11 18:25:46 2017
+++ src/sys/netinet6/in6.c	Thu Jan 12 04:43:59 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: in6.c,v 1.232 2017/01/11 18:25:46 christos Exp $	*/
+/*	$NetBSD: in6.c,v 1.233 2017/01/12 04:43:59 ozaki-r Exp $	*/
 /*	$KAME: in6.c,v 1.198 2001/07/18 09:12:38 itojun Exp $	*/
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.232 2017/01/11 18:25:46 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.233 2017/01/12 04:43:59 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -797,6 +797,9 @@ in6_update_ifa1(struct ifnet *ifp, struc
 	int dad_delay, was_tentative;
 	struct in6_ifaddr *ia = iap ? *iap : NULL;
 
+	KASSERT((iap == NULL && psref == NULL) ||
+	(iap != NULL && psref != NULL));
+
 	in6m_sol = NULL;
 
 	/* Validate parameters */
@@ -950,8 +953,6 @@ in6_update_ifa1(struct ifnet *ifp, struc
 		ia->ia_ifp = ifp;
 		IN6_ADDRLIST_ENTRY_INIT(ia);
 		ifa_psref_init(>ia_ifa);
-		if (psref)
-			ia6_acquire(ia, psref);
 	}
 
 	/* update timestamp */
@@ -1300,8 +1301,11 @@ in6_update_ifa1(struct ifnet *ifp, struc
 		nd6_dad_start(>ia_ifa, dad_delay + 1);
 	}
 
-	if (iap)
+	if (iap != NULL) {
 		*iap = ia;
+		if (hostIsNew)
+			ia6_acquire(ia, psref);
+	}
 
 	return 0;
 



CVS commit: src/sys/netinet6

2017-01-11 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Thu Jan 12 04:43:59 UTC 2017

Modified Files:
src/sys/netinet6: in6.c

Log Message:
Prevent in6_ifaddr from being freed with holding its psref

This is a possible fix for PR kern/51828.


To generate a diff of this commit:
cvs rdiff -u -r1.232 -r1.233 src/sys/netinet6/in6.c

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



CVS commit: src/lib/libc/stdlib

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan 12 02:00:42 UTC 2017

Modified Files:
src/lib/libc/stdlib: malloc.c

Log Message:
Avoid sysconf: __sysconf -> sysctlgetmibinfo -> strtoimax -> locale, etc.


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/lib/libc/stdlib/malloc.c

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



CVS commit: src/lib/libc/stdlib

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan 12 02:00:42 UTC 2017

Modified Files:
src/lib/libc/stdlib: malloc.c

Log Message:
Avoid sysconf: __sysconf -> sysctlgetmibinfo -> strtoimax -> locale, etc.


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/lib/libc/stdlib/malloc.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/stdlib/malloc.c
diff -u src/lib/libc/stdlib/malloc.c:1.57 src/lib/libc/stdlib/malloc.c:1.58
--- src/lib/libc/stdlib/malloc.c:1.57	Wed Jan 11 20:02:09 2017
+++ src/lib/libc/stdlib/malloc.c	Wed Jan 11 21:00:42 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: malloc.c,v 1.57 2017/01/12 01:02:09 christos Exp $	*/
+/*	$NetBSD: malloc.c,v 1.58 2017/01/12 02:00:42 christos Exp $	*/
 
 /*
  * 
@@ -93,7 +93,7 @@ int utrace(const char *, void *, size_t)
 # include 
 # include "extern.h"
 # if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: malloc.c,v 1.57 2017/01/12 01:02:09 christos Exp $");
+__RCSID("$NetBSD: malloc.c,v 1.58 2017/01/12 02:00:42 christos Exp $");
 # endif /* LIBC_SCCS and not lint */
 # include 
 # ifdef _REENTRANT
@@ -458,7 +458,11 @@ malloc_init(void)
 /*
  * Compute page-size related variables.
  */
+#ifdef _LIBC
 malloc_pagesize = (size_t)sysconf(_SC_PAGESIZE);
+#else
+malloc_pagesize = 4096;
+#endif
 malloc_pagemask = malloc_pagesize - 1;
 for (malloc_pageshift = 0;
 	 (1UL << malloc_pageshift) != malloc_pagesize;



CVS commit: src/lib/libc/gen

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan 12 01:58:39 UTC 2017

Modified Files:
src/lib/libc/gen: syslog.c syslog_private.h syslog_ss.c xsyslog.c

Log Message:
A little more restructuring so that we don't need mutex stuff in syslog_ss.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/lib/libc/gen/syslog.c
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/gen/syslog_private.h \
src/lib/libc/gen/syslog_ss.c src/lib/libc/gen/xsyslog.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/gen/syslog.c
diff -u src/lib/libc/gen/syslog.c:1.56 src/lib/libc/gen/syslog.c:1.57
--- src/lib/libc/gen/syslog.c:1.56	Wed Jan 11 19:38:01 2017
+++ src/lib/libc/gen/syslog.c	Wed Jan 11 20:58:39 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: syslog.c,v 1.56 2017/01/12 00:38:01 christos Exp $	*/
+/*	$NetBSD: syslog.c,v 1.57 2017/01/12 01:58:39 christos Exp $	*/
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)syslog.c	8.5 (Berkeley) 4/29/95";
 #else
-__RCSID("$NetBSD: syslog.c,v 1.56 2017/01/12 00:38:01 christos Exp $");
+__RCSID("$NetBSD: syslog.c,v 1.57 2017/01/12 01:58:39 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -67,6 +67,15 @@ __weak_alias(syslog,_syslog)
 __weak_alias(vsyslog,_vsyslog)
 __weak_alias(syslogp,_syslogp)
 __weak_alias(vsyslogp,_vsyslogp)
+__weak_alias(closelog,_closelog)
+__weak_alias(openlog,_openlog)
+__weak_alias(setlogmask,_setlogmask)
+#endif
+
+static struct syslog_data _syslog_data = SYSLOG_DATA_INIT;
+
+#ifdef _REENTRANT
+static mutex_t	syslog_mutex = MUTEX_INITIALIZER;
 #endif
 
 static size_t
@@ -103,6 +112,24 @@ timefun(char *p, size_t tbuf_left)
 	return (size_t)(p - op);
 }
 
+static int
+lock(const struct syslog_data *data)
+{
+	int rv = data == &_syslog_data;
+	if (rv)
+		mutex_lock(_mutex);
+	return rv;
+}
+
+static int
+unlock(const struct syslog_data *data)
+{
+	int rv = data == &_syslog_data;
+	if (rv)
+		mutex_unlock(_mutex);
+	return rv;
+}
+
 static struct syslog_fun _syslog_fun = {
 	timefun,
 	strerror_r,
@@ -111,8 +138,46 @@ static struct syslog_fun _syslog_fun = {
 #else
 	vsnprintf,
 #endif
+	lock,
+	unlock,
 };
 
+void
+openlog(const char *ident, int logstat, int logfac)
+{
+	openlog_r(ident, logstat, logfac, &_syslog_data);
+}
+
+void
+closelog(void)
+{
+	closelog_r(&_syslog_data);
+}
+
+/* setlogmask -- set the log mask level */
+int
+setlogmask(int pmask)
+{
+	return setlogmask_r(pmask, &_syslog_data);
+}
+
+void
+openlog_r(const char *ident, int logstat, int logfac, struct syslog_data *data)
+{
+	lock(data);
+	_openlog_unlocked_r(ident, logstat, logfac, data);
+	unlock(data);
+}
+
+void
+closelog_r(struct syslog_data *data)
+{
+	lock(data);
+	_closelog_unlocked_r(data);
+	data->log_tag = NULL;
+	unlock(data);
+}
+
 /*
  * syslog, vsyslog --
  *	print message on log file; output is intended for syslogd(8).

Index: src/lib/libc/gen/syslog_private.h
diff -u src/lib/libc/gen/syslog_private.h:1.1 src/lib/libc/gen/syslog_private.h:1.2
--- src/lib/libc/gen/syslog_private.h:1.1	Wed Jan 11 19:38:01 2017
+++ src/lib/libc/gen/syslog_private.h	Wed Jan 11 20:58:39 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: syslog_private.h,v 1.1 2017/01/12 00:38:01 christos Exp $	*/
+/*	$NetBSD: syslog_private.h,v 1.2 2017/01/12 01:58:39 christos Exp $	*/
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -41,10 +41,13 @@ struct syslog_fun {
 	size_t (*timefun)(char *, size_t);
 	int  (*errfun)(int, char *, size_t);
 	int __printflike(3, 0) (*prfun)(char *, size_t, const char *, va_list);
+	int (*lock)(const struct syslog_data *);
+	int (*unlock)(const struct syslog_data *);
 };
 
 void _vxsyslogp_r(int , struct syslog_fun *, struct syslog_data *,
 const char *, const char *, const char *, va_list);
+void _openlog_unlocked_r(const char *, int, int, struct syslog_data *);
+void _closelog_unlocked_r(struct syslog_data *);
 
-extern struct syslog_data _syslog_data;
 extern struct syslog_fun _syslog_ss_fun;
Index: src/lib/libc/gen/syslog_ss.c
diff -u src/lib/libc/gen/syslog_ss.c:1.1 src/lib/libc/gen/syslog_ss.c:1.2
--- src/lib/libc/gen/syslog_ss.c:1.1	Wed Jan 11 19:38:01 2017
+++ src/lib/libc/gen/syslog_ss.c	Wed Jan 11 20:58:39 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: syslog_ss.c,v 1.1 2017/01/12 00:38:01 christos Exp $	*/
+/*	$NetBSD: syslog_ss.c,v 1.2 2017/01/12 01:58:39 christos Exp $	*/
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 #include 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: syslog_ss.c,v 1.1 2017/01/12 00:38:01 christos Exp $");
+__RCSID("$NetBSD: syslog_ss.c,v 1.2 2017/01/12 01:58:39 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -54,10 +54,24 @@ timefun_ss(char *p, size_t tbuf_left)
 #endif
 }
 
+static int
+lock_ss(const struct syslog_data *data __unused)
+{
+	return 0;
+}
+
+static int
+unlock_ss(const struct 

CVS commit: src/distrib/utils/zcat

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan 12 01:58:03 UTC 2017

Modified Files:
src/distrib/utils/zcat: Makefile zcat.c
Added Files:
src/distrib/utils/zcat: misc.c

Log Message:
This is an example how to make a small program using libc. Original size
300K; final size 75K.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/distrib/utils/zcat/Makefile
cvs rdiff -u -r0 -r1.1 src/distrib/utils/zcat/misc.c
cvs rdiff -u -r1.4 -r1.5 src/distrib/utils/zcat/zcat.c

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



CVS commit: src/distrib/utils/zcat

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan 12 01:58:03 UTC 2017

Modified Files:
src/distrib/utils/zcat: Makefile zcat.c
Added Files:
src/distrib/utils/zcat: misc.c

Log Message:
This is an example how to make a small program using libc. Original size
300K; final size 75K.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/distrib/utils/zcat/Makefile
cvs rdiff -u -r0 -r1.1 src/distrib/utils/zcat/misc.c
cvs rdiff -u -r1.4 -r1.5 src/distrib/utils/zcat/zcat.c

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

Modified files:

Index: src/distrib/utils/zcat/Makefile
diff -u src/distrib/utils/zcat/Makefile:1.16 src/distrib/utils/zcat/Makefile:1.17
--- src/distrib/utils/zcat/Makefile:1.16	Tue Jan 10 23:04:12 2017
+++ src/distrib/utils/zcat/Makefile	Wed Jan 11 20:58:03 2017
@@ -1,26 +1,32 @@
-# $NetBSD: Makefile,v 1.16 2017/01/11 04:04:12 christos Exp $
+# $NetBSD: Makefile,v 1.17 2017/01/12 01:58:03 christos Exp $
 # Small zcat (i.e. for install media)
 #
-# Note: gzio.c is compiled here so that crunchgen will assume
-# the same symbol space for zcat.c and gzio.c which is required
-# so that the fake deflate functions in zcat.c will satisfy the
-# references to those functions in gzio.c (yes, it's a hack).
+
+NOSSP=yes
+NOMAN=
+.include 
 
 SRCDIR=		${.CURDIR}/../../../common/dist/zlib
+LIBC=		${NETBSDSRCDIR}/lib/libc
+
+.PATH:		${SRCDIR} ${LIBC}/stdlib
 
 WARNS?=		4
 PROG=		zcat
-NOMAN=		# defined
-
-SRCS=		zcat.c gzread.c gzclose.c gzlib.c
 
+# Just what we need from libz
+SRCS=		zcat.c gzread.c gzclose.c gzlib.c inflate.c 
+SRCS+=		adler32.c crc32.c zutil.c inffast.c inftrees.c
 CPPFLAGS+=	-I${SRCDIR} -DNO_GZCOMPRESS
-DPADD+=		${LIBZ}
-LDADD+=		-lz
 
-.include 
+# This avoids including stdio, threads, locale, etc.
+SRCS+=		misc.c
+SRCS+=		malloc.c	# small
+CPPFLAGS+=	-I${LIBC}/include
+CPPFLAGS+=	-Dsnprintf=snprintf_ss -Dsprintf=sprintf_ss
+CPPFLAGS+=	-Dstrerror=strerror_ss
 
-.PATH:		${SRCDIR}
+.include 
 
 test: zcat
 	echo 'hello, hello!' | gzip | ./zcat

Index: src/distrib/utils/zcat/zcat.c
diff -u src/distrib/utils/zcat/zcat.c:1.4 src/distrib/utils/zcat/zcat.c:1.5
--- src/distrib/utils/zcat/zcat.c:1.4	Thu May 19 18:23:12 2011
+++ src/distrib/utils/zcat/zcat.c	Wed Jan 11 20:58:03 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: zcat.c,v 1.4 2011/05/19 22:23:12 tsutsui Exp $	*/
+/*	$NetBSD: zcat.c,v 1.5 2017/01/12 01:58:03 christos Exp $	*/
 
 /* mini zcat.c -- a minimal zcat using the zlib compression library
  * Copyright (C) 1995-1996 Jean-loup Gailly.
@@ -13,8 +13,11 @@
  */
 
 #include 
+#include 
+#include 
 #include 
 #include 
+#include 
 
 #include "zlib.h"
 
@@ -22,24 +25,33 @@
 
 char *prog;
 
-void error(const char *msg);
-void gz_uncompress(gzFile in, FILE   *out);
-int  main(int argc, char *argv[]);
+static void error(const char *, ...) __printflike(1, 2);
+static void gz_uncompress(gzFile, int);
 
 /* ===
  * Display error message and exit
  */
-void error(const char *msg)
+static void
+error(const char *fmt, ...)
 {
-
-	fprintf(stderr, "%s: %s\n", prog, msg);
-	exit(EXIT_SUCCESS);
+	char buf[1024];
+	va_list ap;
+	int l;
+
+	l = snprintf_ss(buf, sizeof(buf), "%s: ", prog);
+	write(STDERR_FILENO, buf, l);
+	va_start(ap, fmt);
+	l = vsnprintf_ss(buf, sizeof(buf), fmt, ap);
+	va_end(ap);
+	write(STDERR_FILENO, buf, l);
+	_exit(EXIT_SUCCESS);
 }
 
 /* ===
  * Uncompress input to output then close both files.
  */
-void gz_uncompress(gzFile in, FILE *out)
+static void
+gz_uncompress(gzFile in, int out)
 {
 	char buf[BUFLEN];
 	int len;
@@ -48,15 +60,15 @@ void gz_uncompress(gzFile in, FILE *out)
 	for (;;) {
 		len = gzread(in, buf, sizeof(buf));
 		if (len < 0)
-			error (gzerror(in, ));
+			error ("%s", gzerror(in, ));
 		if (len == 0)
 			break;
 
-		if ((int)fwrite(buf, 1, (unsigned)len, out) != len) {
+		if ((int)write(out, buf, (size_t)len) != len) {
 			error("failed fwrite");
 		}
 	}
-	if (fclose(out))
+	if (close(out))
 		error("failed fclose");
 
 	if (gzclose(in) != Z_OK)
@@ -68,7 +80,8 @@ void gz_uncompress(gzFile in, FILE *out)
  * Usage:  zcat [files...]
  */
 
-int main(int argc, char *argv[])
+int
+main(int argc, char *argv[])
 {
 	gzFile zfp;
 
@@ -82,10 +95,10 @@ int main(int argc, char *argv[])
 	}
 
 	if (argc == 0) {
-		zfp = gzdopen(fileno(stdin), "rb");
+		zfp = gzdopen(STDIN_FILENO, "rb");
 		if (zfp == NULL)
 			error("can't gzdopen stdin");
-		gz_uncompress(zfp, stdout);
+		gz_uncompress(zfp, STDOUT_FILENO);
 		return 0;
 	}
 
@@ -93,10 +106,10 @@ int main(int argc, char *argv[])
 		/* file_uncompress(*argv); */
 		zfp = gzopen(*argv, "rb");
 		if (zfp == NULL) {
-			fprintf(stderr, "%s: can't gzopen %s\n", prog, *argv);
-			exit(EXIT_FAILURE);
+			error("can't gzopen `%s'", *argv);
+			_exit(EXIT_FAILURE);
 		}
-		

CVS commit: src/lib/libc/gen

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan 12 01:58:39 UTC 2017

Modified Files:
src/lib/libc/gen: syslog.c syslog_private.h syslog_ss.c xsyslog.c

Log Message:
A little more restructuring so that we don't need mutex stuff in syslog_ss.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/lib/libc/gen/syslog.c
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/gen/syslog_private.h \
src/lib/libc/gen/syslog_ss.c src/lib/libc/gen/xsyslog.c

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



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

2017-01-11 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Thu Jan 12 01:12:08 UTC 2017

Modified Files:
src/sys/arch/arm/nvidia: tegra124_car.c

Log Message:
fix off by one.

ok riastradh


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/nvidia/tegra124_car.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/nvidia/tegra124_car.c
diff -u src/sys/arch/arm/nvidia/tegra124_car.c:1.7 src/sys/arch/arm/nvidia/tegra124_car.c:1.8
--- src/sys/arch/arm/nvidia/tegra124_car.c:1.7	Sat Dec 17 15:24:35 2016
+++ src/sys/arch/arm/nvidia/tegra124_car.c	Thu Jan 12 01:12:08 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra124_car.c,v 1.7 2016/12/17 15:24:35 riastradh Exp $ */
+/* $NetBSD: tegra124_car.c,v 1.8 2017/01/12 01:12:08 maya Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill 
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: tegra124_car.c,v 1.7 2016/12/17 15:24:35 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra124_car.c,v 1.8 2017/01/12 01:12:08 maya Exp $");
 
 #include 
 #include 
@@ -1433,7 +1433,7 @@ tegra124_car_reset_acquire(device_t dev,
 
 	const u_int reset_id = be32dec(data);
 
-	if (reset_id > __arraycount(tegra124_car_reset_regs) * 32)
+	if (reset_id >= __arraycount(tegra124_car_reset_regs) * 32)
 		return NULL;
 
 	const u_int reg = reset_id / 32;



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

2017-01-11 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Thu Jan 12 01:12:08 UTC 2017

Modified Files:
src/sys/arch/arm/nvidia: tegra124_car.c

Log Message:
fix off by one.

ok riastradh


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/nvidia/tegra124_car.c

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



CVS commit: src/lib/libc/stdlib

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan 12 01:02:09 UTC 2017

Modified Files:
src/lib/libc/stdlib: malloc.c

Log Message:
make this smaller.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/lib/libc/stdlib/malloc.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/stdlib/malloc.c
diff -u src/lib/libc/stdlib/malloc.c:1.56 src/lib/libc/stdlib/malloc.c:1.57
--- src/lib/libc/stdlib/malloc.c:1.56	Thu Sep 18 09:58:20 2014
+++ src/lib/libc/stdlib/malloc.c	Wed Jan 11 20:02:09 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: malloc.c,v 1.56 2014/09/18 13:58:20 christos Exp $	*/
+/*	$NetBSD: malloc.c,v 1.57 2017/01/12 01:02:09 christos Exp $	*/
 
 /*
  * 
@@ -84,21 +84,27 @@ void utrace(struct ut *, int);
 
 #include 
 #if defined(__NetBSD__)
-#   define malloc_minsize   16U
-#   define HAS_UTRACE
-#   define UTRACE_LABEL "malloc",
-#include 
-#include "extern.h"
-#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: malloc.c,v 1.56 2014/09/18 13:58:20 christos Exp $");
-#endif /* LIBC_SCCS and not lint */
+# define malloc_minsize   16U
+# ifdef _LIBC
+#  define HAS_UTRACE
+#  define UTRACE_LABEL "malloc",
 int utrace(const char *, void *, size_t);
-
-#include 
+# endif
+# include 
+# include "extern.h"
+# if defined(LIBC_SCCS) && !defined(lint)
+__RCSID("$NetBSD: malloc.c,v 1.57 2017/01/12 01:02:09 christos Exp $");
+# endif /* LIBC_SCCS and not lint */
+# include 
+# ifdef _REENTRANT
 extern int __isthreaded;
 static mutex_t thread_lock = MUTEX_INITIALIZER;
-#define _MALLOC_LOCK()	if (__isthreaded) mutex_lock(_lock);
-#define _MALLOC_UNLOCK()	if (__isthreaded) mutex_unlock(_lock);
+#  define _MALLOC_LOCK()	if (__isthreaded) mutex_lock(_lock);
+#  define _MALLOC_UNLOCK()	if (__isthreaded) mutex_unlock(_lock);
+# else
+#  define _MALLOC_LOCK()	
+#  define _MALLOC_UNLOCK()
+# endif
 #endif /* __NetBSD__ */
 
 #if defined(__sparc__) && defined(sun)
@@ -472,8 +478,10 @@ malloc_init(void)
 		continue;
 	b[j] = '\0';
 	p = b;
+#ifdef _LIBC
 	} else if (i == 1 && issetugid() == 0) {
 	p = getenv("MALLOC_OPTIONS");
+#endif
 	} else if (i == 1) {
 	continue;
 	} else {



CVS commit: src/lib/libc/stdlib

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan 12 01:02:09 UTC 2017

Modified Files:
src/lib/libc/stdlib: malloc.c

Log Message:
make this smaller.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/lib/libc/stdlib/malloc.c

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



Re: CVS commit: src/sys/fs/tmpfs

2017-01-11 Thread Joerg Sonnenberger
On Wed, Jan 11, 2017 at 09:12:33PM +, David Holland wrote:
> On Wed, Jan 11, 2017 at 12:12:33PM +, Joerg Sonnenberger wrote:
>  > Modified Files:
>  >src/sys/fs/tmpfs: tmpfs_vnops.c
>  > 
>  > Log Message:
>  > Remove RO check in tmpfs_putpages for now, the syncer doesn't like the
>  > error code.
> 
> Either removing it is wrong or it should be changed to KASSERT :-)

So the problem is that the syncer will unconditionally call putpages
e.g. on umount. It might need a two stage approach for dealing with
dirty mmapped pages to implement properly, but for the use cases of
read-only tmpfs I have (and likely others), it doesn't really matter.
E.g. if you want to build multiple build chroots without paying for the
extreme locking penalty of nullfs.

Joerg


CVS commit: src/lib/libc

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan 12 00:43:55 UTC 2017

Modified Files:
src/lib/libc/include: extern.h
src/lib/libc/string: strerror_ss.c

Log Message:
put back strerror_ss, it will be used shortly.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/lib/libc/include/extern.h
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/string/strerror_ss.c

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



CVS commit: src/lib/libc

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan 12 00:43:55 UTC 2017

Modified Files:
src/lib/libc/include: extern.h
src/lib/libc/string: strerror_ss.c

Log Message:
put back strerror_ss, it will be used shortly.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/lib/libc/include/extern.h
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/string/strerror_ss.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/include/extern.h
diff -u src/lib/libc/include/extern.h:1.24 src/lib/libc/include/extern.h:1.25
--- src/lib/libc/include/extern.h:1.24	Wed Jan 11 19:35:38 2017
+++ src/lib/libc/include/extern.h	Wed Jan 11 19:43:55 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: extern.h,v 1.24 2017/01/12 00:35:38 christos Exp $	*/
+/*	$NetBSD: extern.h,v 1.25 2017/01/12 00:43:55 christos Exp $	*/
 
 /*
  * Copyright (c) 1997 Christos Zoulas.  All rights reserved.
@@ -73,5 +73,6 @@ void	_malloc_postfork(void);
 int	_sys_setcontext(const ucontext_t *);
 
 int	strerror_r_ss(int, char *, size_t);
+__aconst char *strerror_ss(int);
 
 __END_DECLS

Index: src/lib/libc/string/strerror_ss.c
diff -u src/lib/libc/string/strerror_ss.c:1.1 src/lib/libc/string/strerror_ss.c:1.2
--- src/lib/libc/string/strerror_ss.c:1.1	Wed Jan 11 19:35:38 2017
+++ src/lib/libc/string/strerror_ss.c	Wed Jan 11 19:43:55 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: strerror_ss.c,v 1.1 2017/01/12 00:35:38 christos Exp $	*/
+/*	$NetBSD: strerror_ss.c,v 1.2 2017/01/12 00:43:55 christos Exp $	*/
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include 
-__RCSID("$NetBSD: strerror_ss.c,v 1.1 2017/01/12 00:35:38 christos Exp $");
+__RCSID("$NetBSD: strerror_ss.c,v 1.2 2017/01/12 00:43:55 christos Exp $");
 
 #include "namespace.h"
 
@@ -53,7 +53,6 @@ strerror_r_ss(int num, char *buf, size_t
 	return 0;
 }
 
-#ifdef notyet
 __aconst char *
 strerror_ss(int num)
 {
@@ -62,4 +61,3 @@ strerror_ss(int num)
 	strerror_r_ss(num, buf, sizeof(buf));
 	return buf;
 }
-#endif



CVS commit: src/lib/libc/gen

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan 12 00:38:01 UTC 2017

Modified Files:
src/lib/libc/gen: Makefile.inc syslog.c
Added Files:
src/lib/libc/gen: syslog_private.h syslog_ss.c xsyslog.c

Log Message:
Split syslog.c to:

- syslog_ss.c *_ss api functions (don't use stdio, time)
- syslog.c: *syslog* non _ss api functions (use stdio, time)
- xsyslog.c> common guts.

The motivation for this is not to drag in stdio/locale/floating point/time
for every binary, since syslog_ss() is used in __stack_check_fail() for SSP.


To generate a diff of this commit:
cvs rdiff -u -r1.196 -r1.197 src/lib/libc/gen/Makefile.inc
cvs rdiff -u -r1.55 -r1.56 src/lib/libc/gen/syslog.c
cvs rdiff -u -r0 -r1.1 src/lib/libc/gen/syslog_private.h \
src/lib/libc/gen/syslog_ss.c src/lib/libc/gen/xsyslog.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/gen/Makefile.inc
diff -u src/lib/libc/gen/Makefile.inc:1.196 src/lib/libc/gen/Makefile.inc:1.197
--- src/lib/libc/gen/Makefile.inc:1.196	Tue Oct  4 05:41:41 2016
+++ src/lib/libc/gen/Makefile.inc	Wed Jan 11 19:38:01 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.196 2016/10/04 09:41:41 kamil Exp $
+#	$NetBSD: Makefile.inc,v 1.197 2017/01/12 00:38:01 christos Exp $
 #	from: @(#)Makefile.inc	8.6 (Berkeley) 5/4/95
 
 # gen sources
@@ -32,12 +32,12 @@ SRCS+=	alarm.c alphasort.c arc4random.c 
 	siglist.c signal.c signame.c sigrelse.c \
 	sigset.c sigsetops.c sleep.c \
 	stringlist.c sysconf.c sysctl.c sysctlbyname.c sysctlgetmibinfo.c \
-	sysctlnametomib.c syslog.c telldir.c time.c timespec_get.c \
+	sysctlnametomib.c syslog.c syslog_ss.c telldir.c time.c timespec_get.c \
 	times.c toascii.c tolower_.c ttyname.c ttyslot.c toupper_.c ualarm.c \
 	ulimit.c uname.c unvis.c usleep.c utime.c utimens.c utmp.c \
 	utmpx.c valloc.c vis.c wait.c wait3.c waitid.c waitpid.c warn.c \
-	warnx.c warnc.c vwarn.c vwarnx.c vwarnc.c verr.c verrx.c verrc.c \
-	wordexp.c
+	warnx.c warnc.c wordexp.c xsyslog.c \
+	vwarn.c vwarnx.c vwarnc.c verr.c verrx.c verrc.c
 
 # uses alloca
 COPTS.execvp.c = -Wno-stack-protector

Index: src/lib/libc/gen/syslog.c
diff -u src/lib/libc/gen/syslog.c:1.55 src/lib/libc/gen/syslog.c:1.56
--- src/lib/libc/gen/syslog.c:1.55	Mon Oct 26 07:44:30 2015
+++ src/lib/libc/gen/syslog.c	Wed Jan 11 19:38:01 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: syslog.c,v 1.55 2015/10/26 11:44:30 roy Exp $	*/
+/*	$NetBSD: syslog.c,v 1.56 2017/01/12 00:38:01 christos Exp $	*/
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)syslog.c	8.5 (Berkeley) 4/29/95";
 #else
-__RCSID("$NetBSD: syslog.c,v 1.55 2015/10/26 11:44:30 roy Exp $");
+__RCSID("$NetBSD: syslog.c,v 1.56 2017/01/12 00:38:01 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -48,6 +48,7 @@ __RCSID("$NetBSD: syslog.c,v 1.55 2015/1
 #include 
 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -56,32 +57,61 @@ __RCSID("$NetBSD: syslog.c,v 1.55 2015/1
 #include 
 #include 
 #include 
+
+#include "syslog_private.h"
 #include "reentrant.h"
 #include "extern.h"
 
 #ifdef __weak_alias
-__weak_alias(closelog,_closelog)
-__weak_alias(openlog,_openlog)
-__weak_alias(setlogmask,_setlogmask)
 __weak_alias(syslog,_syslog)
 __weak_alias(vsyslog,_vsyslog)
 __weak_alias(syslogp,_syslogp)
 __weak_alias(vsyslogp,_vsyslogp)
 #endif
 
-static struct syslog_data sdata = SYSLOG_DATA_INIT;
-
-static void	openlog_unlocked_r(const char *, int, int,
-struct syslog_data *);
-static void	disconnectlog_r(struct syslog_data *);
-static void	connectlog_r(struct syslog_data *);
-
-#define LOG_SIGNAL_SAFE	(int)0x8000
-
+static size_t
+timefun(char *p, size_t tbuf_left)
+{
+	struct timeval tv;
+	time_t now;
+	struct tm tmnow;
+	size_t prlen;
+	char *op = p;
 
-#ifdef _REENTRANT
-static mutex_t	syslog_mutex = MUTEX_INITIALIZER;
+	if (gettimeofday(, NULL) == -1)
+		return snprintf_ss(p, tbuf_left, "-");
+	
+	/* strftime() implies tzset(), localtime_r() doesn't. */
+	tzset();
+	now = (time_t) tv.tv_sec;
+	localtime_r(, );
+
+	prlen = strftime(p, tbuf_left, "%FT%T", );
+	DEC();
+	prlen = snprintf(p, tbuf_left, ".%06ld", (long)tv.tv_usec);
+	DEC();
+	prlen = strftime(p, tbuf_left-1, "%z", );
+	/* strftime gives eg. "+0200", but we need "+02:00" */
+	if (prlen == 5) {
+		p[prlen+1] = p[prlen];
+		p[prlen]   = p[prlen-1];
+		p[prlen-1] = p[prlen-2];
+		p[prlen-2] = ':';
+		prlen += 1;
+	}
+	DEC();
+	return (size_t)(p - op);
+}
+
+static struct syslog_fun _syslog_fun = {
+	timefun,
+	strerror_r,
+#ifndef __lint__
+	_vsnprintf,
+#else
+	vsnprintf,
 #endif
+};
 
 /*
  * syslog, vsyslog --
@@ -93,14 +123,14 @@ syslog(int pri, const char *fmt, ...)
 	va_list ap;
 
 	va_start(ap, fmt);
-	vsyslog(pri, fmt, ap);
+	_vxsyslogp_r(pri, &_syslog_fun, &_syslog_data, NULL, NULL, fmt, ap);
 	va_end(ap);
 }
 
 void
 vsyslog(int pri, const char *fmt, va_list ap)
 {
-	vsyslog_r(pri, , fmt, 

CVS commit: src/lib/libc

2017-01-11 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Jan 12 00:38:25 UTC 2017

Modified Files:
src/lib/libc: README

Log Message:
Clarify the explanation of the compat_time.c definition of time.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/README

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



CVS commit: src/lib/libc

2017-01-11 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Jan 12 00:38:25 UTC 2017

Modified Files:
src/lib/libc: README

Log Message:
Clarify the explanation of the compat_time.c definition of time.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/README

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/README
diff -u src/lib/libc/README:1.5 src/lib/libc/README:1.6
--- src/lib/libc/README:1.5	Sat Jul 11 15:23:57 2015
+++ src/lib/libc/README	Thu Jan 12 00:38:25 2017
@@ -1,4 +1,4 @@
-	$NetBSD: README,v 1.5 2015/07/11 15:23:57 riastradh Exp $
+	$NetBSD: README,v 1.6 2017/01/12 00:38:25 riastradh Exp $
 
 libc: The C library.
 
@@ -217,14 +217,17 @@ compiled with the old signature, will co
 
Then compat_time.c defines `time' normally:
 
-	time_t
-	time(time_t *t)
+	int32_t
+	time(int32_t *t)
 	{
 	...
 
Again, macro expansion replaces `time' by `_time', but since there
is no __RENAME directive in , the resulting
-   ELF global symbol is `_time'.
+   ELF global symbol is `_time'.  (Actually, compat_time.c just has
+   `#define time_t int32_t' and `#include "gen/time.c"' to get the same
+   text of the definition of time.  The above definition is what we get
+   effectively by substituting int32_t for the type time_t.)
 
Finally, alongside the definition in compat_time.c is
 



CVS commit: src/lib/libc/gen

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan 12 00:38:01 UTC 2017

Modified Files:
src/lib/libc/gen: Makefile.inc syslog.c
Added Files:
src/lib/libc/gen: syslog_private.h syslog_ss.c xsyslog.c

Log Message:
Split syslog.c to:

- syslog_ss.c *_ss api functions (don't use stdio, time)
- syslog.c: *syslog* non _ss api functions (use stdio, time)
- xsyslog.c> common guts.

The motivation for this is not to drag in stdio/locale/floating point/time
for every binary, since syslog_ss() is used in __stack_check_fail() for SSP.


To generate a diff of this commit:
cvs rdiff -u -r1.196 -r1.197 src/lib/libc/gen/Makefile.inc
cvs rdiff -u -r1.55 -r1.56 src/lib/libc/gen/syslog.c
cvs rdiff -u -r0 -r1.1 src/lib/libc/gen/syslog_private.h \
src/lib/libc/gen/syslog_ss.c src/lib/libc/gen/xsyslog.c

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



CVS commit: src/lib/libc

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan 12 00:35:38 UTC 2017

Modified Files:
src/lib/libc/include: extern.h namespace.h
src/lib/libc/string: Makefile.inc
Added Files:
src/lib/libc/string: strerror_ss.c

Log Message:
Add strerror_ss_r to be used by syslog_ss


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/lib/libc/include/extern.h
cvs rdiff -u -r1.182 -r1.183 src/lib/libc/include/namespace.h
cvs rdiff -u -r1.82 -r1.83 src/lib/libc/string/Makefile.inc
cvs rdiff -u -r0 -r1.1 src/lib/libc/string/strerror_ss.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/include/extern.h
diff -u src/lib/libc/include/extern.h:1.23 src/lib/libc/include/extern.h:1.24
--- src/lib/libc/include/extern.h:1.23	Mon Aug 19 09:03:12 2013
+++ src/lib/libc/include/extern.h	Wed Jan 11 19:35:38 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: extern.h,v 1.23 2013/08/19 13:03:12 joerg Exp $	*/
+/*	$NetBSD: extern.h,v 1.24 2017/01/12 00:35:38 christos Exp $	*/
 
 /*
  * Copyright (c) 1997 Christos Zoulas.  All rights reserved.
@@ -72,4 +72,6 @@ void	_malloc_postfork(void);
 
 int	_sys_setcontext(const ucontext_t *);
 
+int	strerror_r_ss(int, char *, size_t);
+
 __END_DECLS

Index: src/lib/libc/include/namespace.h
diff -u src/lib/libc/include/namespace.h:1.182 src/lib/libc/include/namespace.h:1.183
--- src/lib/libc/include/namespace.h:1.182	Sat Sep 24 17:31:25 2016
+++ src/lib/libc/include/namespace.h	Wed Jan 11 19:35:38 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: namespace.h,v 1.182 2016/09/24 21:31:25 christos Exp $	*/
+/*	$NetBSD: namespace.h,v 1.183 2017/01/12 00:35:38 christos Exp $	*/
 
 /*-
  * Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
@@ -60,6 +60,7 @@
 #define sbrk		_sbrk
 #define strerror_l	_strerror_l
 #define strerror_r	_strerror_r
+#define strerror_r_ss	_strerror_r_ss
 #define strlcat		_strlcat
 #define strlcpy		_strlcpy
 #define strtod_l	_strtod_l

Index: src/lib/libc/string/Makefile.inc
diff -u src/lib/libc/string/Makefile.inc:1.82 src/lib/libc/string/Makefile.inc:1.83
--- src/lib/libc/string/Makefile.inc:1.82	Sat Oct 15 10:22:00 2016
+++ src/lib/libc/string/Makefile.inc	Wed Jan 11 19:35:38 2017
@@ -1,5 +1,5 @@
 #	from: @(#)Makefile.inc	8.1 (Berkeley) 6/4/93
-#	$NetBSD: Makefile.inc,v 1.82 2016/10/15 14:22:00 kamil Exp $
+#	$NetBSD: Makefile.inc,v 1.83 2017/01/12 00:35:38 christos Exp $
 
 # string sources
 .PATH: ${ARCHDIR}/string ${.CURDIR}/string
@@ -10,7 +10,7 @@
 
 SRCS+=	bm.c stpcpy.c stpncpy.c \
 	strcasecmp.c strncasecmp.c strcasestr.c strcoll.c strdup.c \
-	strerror.c strlcat.c strlcpy.c strnlen.c \
+	strerror.c strerror_ss.c strlcat.c strlcpy.c strnlen.c \
 	strmode.c strsignal.c strtok.c \
 	strtok_r.c strxfrm.c __strsignal.c strerror_r.c strndup.c \
 	stresep.c memrchr.c

Added files:

Index: src/lib/libc/string/strerror_ss.c
diff -u /dev/null src/lib/libc/string/strerror_ss.c:1.1
--- /dev/null	Wed Jan 11 19:35:38 2017
+++ src/lib/libc/string/strerror_ss.c	Wed Jan 11 19:35:38 2017
@@ -0,0 +1,65 @@
+/*	$NetBSD: strerror_ss.c,v 1.1 2017/01/12 00:35:38 christos Exp $	*/
+
+/*-
+ * Copyright (c) 2017 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Christos Zoulas.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+#include 
+__RCSID("$NetBSD: strerror_ss.c,v 1.1 2017/01/12 00:35:38 christos Exp $");
+
+#include "namespace.h"
+
+#include 
+#include 
+#include 
+
+#include "extern.h"
+
+#ifdef __weak_alias
+__weak_alias(strerror_r_ss,_strerror_r_ss)
+#endif
+
+int
+strerror_r_ss(int num, char *buf, size_t len)
+{

CVS commit: src/lib/libc

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan 12 00:35:38 UTC 2017

Modified Files:
src/lib/libc/include: extern.h namespace.h
src/lib/libc/string: Makefile.inc
Added Files:
src/lib/libc/string: strerror_ss.c

Log Message:
Add strerror_ss_r to be used by syslog_ss


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/lib/libc/include/extern.h
cvs rdiff -u -r1.182 -r1.183 src/lib/libc/include/namespace.h
cvs rdiff -u -r1.82 -r1.83 src/lib/libc/string/Makefile.inc
cvs rdiff -u -r0 -r1.1 src/lib/libc/string/strerror_ss.c

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



CVS commit: src/sys/dev/usb

2017-01-11 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Jan 11 22:09:38 UTC 2017

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

Log Message:
fix off by one


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/dev/usb/uhso.c

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



CVS commit: src/sys/dev/usb

2017-01-11 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Jan 11 22:09:38 UTC 2017

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

Log Message:
fix off by one


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/dev/usb/uhso.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/uhso.c
diff -u src/sys/dev/usb/uhso.c:1.24 src/sys/dev/usb/uhso.c:1.25
--- src/sys/dev/usb/uhso.c:1.24	Fri Nov 25 12:56:29 2016
+++ src/sys/dev/usb/uhso.c	Wed Jan 11 22:09:38 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: uhso.c,v 1.24 2016/11/25 12:56:29 skrll Exp $	*/
+/*	$NetBSD: uhso.c,v 1.25 2017/01/11 22:09:38 maya Exp $	*/
 
 /*-
  * Copyright (c) 2009 Iain Hibbert
@@ -37,7 +37,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: uhso.c,v 1.24 2016/11/25 12:56:29 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhso.c,v 1.25 2017/01/11 22:09:38 maya Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -641,14 +641,14 @@ uhso_get_iface_spec(struct usb_attach_ar
 
 	switch (hd->type) {
 	case UHSOTYPE_DEFAULT:
-		if (ifnum > __arraycount(uhso_spec_default))
+		if (ifnum >= __arraycount(uhso_spec_default))
 			break;
 
 		*spec = uhso_spec_default[ifnum];
 		return 1;
 
 	case UHSOTYPE_ICON321:
-		if (ifnum > __arraycount(uhso_spec_icon321))
+		if (ifnum >= __arraycount(uhso_spec_icon321))
 			break;
 
 		*spec = uhso_spec_icon321[ifnum];
@@ -665,8 +665,8 @@ uhso_get_iface_spec(struct usb_attach_ar
 		if (status != USBD_NORMAL_COMPLETION)
 			break;
 
-		if (ifnum > __arraycount(config)
-		|| config[ifnum] > __arraycount(uhso_spec_config))
+		if (ifnum >= __arraycount(config)
+		|| config[ifnum] >= __arraycount(uhso_spec_config))
 			break;
 
 		*spec = uhso_spec_config[config[ifnum]];



CVS commit: src/sys/dev/ic

2017-01-11 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Jan 11 21:44:50 UTC 2017

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

Log Message:
fix off by one.

ok riastradh


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/ic/spdmem.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/spdmem.c
diff -u src/sys/dev/ic/spdmem.c:1.22 src/sys/dev/ic/spdmem.c:1.23
--- src/sys/dev/ic/spdmem.c:1.22	Fri Sep  9 05:36:59 2016
+++ src/sys/dev/ic/spdmem.c	Wed Jan 11 21:44:50 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: spdmem.c,v 1.22 2016/09/09 05:36:59 msaitoh Exp $ */
+/* $NetBSD: spdmem.c,v 1.23 2017/01/11 21:44:50 maya Exp $ */
 
 /*
  * Copyright (c) 2007 Nicolas Joly
@@ -35,7 +35,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: spdmem.c,v 1.22 2016/09/09 05:36:59 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spdmem.c,v 1.23 2017/01/11 21:44:50 maya Exp $");
 
 #include 
 #include 
@@ -244,7 +244,7 @@ spdmem_common_probe(struct spdmem_softc 
 	} else if (spd_type == SPDMEM_MEMTYPE_DDR4SDRAM) {
 		(sc->sc_read)(sc, 0, );
 		spd_len = val & 0x0f;
-		if ((unsigned int)spd_len > __arraycount(spd_rom_sizes))
+		if ((unsigned int)spd_len >= __arraycount(spd_rom_sizes))
 			return 0;
 		spd_len = spd_rom_sizes[spd_len];
 		spd_crc_cover = 125; /* For byte 0 to 125 */



CVS commit: src/sys/dev/ic

2017-01-11 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Jan 11 21:44:50 UTC 2017

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

Log Message:
fix off by one.

ok riastradh


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/ic/spdmem.c

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



Re: CVS commit: src/sys/fs/tmpfs

2017-01-11 Thread David Holland
On Wed, Jan 11, 2017 at 12:12:33PM +, Joerg Sonnenberger wrote:
 > Modified Files:
 >  src/sys/fs/tmpfs: tmpfs_vnops.c
 > 
 > Log Message:
 > Remove RO check in tmpfs_putpages for now, the syncer doesn't like the
 > error code.

Either removing it is wrong or it should be changed to KASSERT :-)

-- 
David A. Holland
dholl...@netbsd.org


CVS commit: src/lib/libterminfo

2017-01-11 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Jan 11 20:53:52 UTC 2017

Modified Files:
src/lib/libterminfo: genhash termcap.c

Log Message:
Fix some off by one issues with arraycount ..thanks coypu.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/lib/libterminfo/genhash
cvs rdiff -u -r1.19 -r1.20 src/lib/libterminfo/termcap.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/libterminfo/genhash
diff -u src/lib/libterminfo/genhash:1.8 src/lib/libterminfo/genhash:1.9
--- src/lib/libterminfo/genhash:1.8	Wed Nov  2 12:09:25 2011
+++ src/lib/libterminfo/genhash	Wed Jan 11 20:53:52 2017
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: genhash,v 1.8 2011/11/02 12:09:25 roy Exp $
+# $NetBSD: genhash,v 1.9 2017/01/11 20:53:52 roy Exp $
 
 # Copyright (c) 2009, 2011 The NetBSD Foundation, Inc.
 #
@@ -65,7 +65,7 @@ const char *
 _ti_${name}id(ssize_t idx)
 {
 
-	if ((size_t)idx > __arraycount(_ti_${name}ids))
+	if ((size_t)idx >= __arraycount(_ti_${name}ids))
 		return NULL;
 	return _ti_${name}ids[idx];
 }
@@ -76,7 +76,7 @@ _ti_${name}index(const char *key)
 	uint32_t idx;
 
 	idx = _ti_${name}hash((const unsigned char *)key, strlen(key));
-	if (idx > __arraycount(_ti_${name}ids) ||
+	if (idx >= __arraycount(_ti_${name}ids) ||
 	strcmp(key, _ti_${name}ids[idx]) != 0)
 		return -1;
 	return idx;

Index: src/lib/libterminfo/termcap.c
diff -u src/lib/libterminfo/termcap.c:1.19 src/lib/libterminfo/termcap.c:1.20
--- src/lib/libterminfo/termcap.c:1.19	Fri Apr  1 19:59:08 2016
+++ src/lib/libterminfo/termcap.c	Wed Jan 11 20:53:52 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: termcap.c,v 1.19 2016/04/01 19:59:08 christos Exp $ */
+/* $NetBSD: termcap.c,v 1.20 2017/01/11 20:53:52 roy Exp $ */
 
 /*
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
  */
 
 #include 
-__RCSID("$NetBSD: termcap.c,v 1.19 2016/04/01 19:59:08 christos Exp $");
+__RCSID("$NetBSD: termcap.c,v 1.20 2017/01/11 20:53:52 roy Exp $");
 
 #include 
 #include 
@@ -88,7 +88,7 @@ tgetflag(const char *id2)
 		return 0;
 
 	ind = _t_flaghash((const unsigned char *)id, strlen(id));
-	if (ind <= __arraycount(_ti_cap_flagids)) {
+	if (ind < __arraycount(_ti_cap_flagids)) {
 		if (strcmp(id, _ti_cap_flagids[ind].id) == 0)
 			return cur_term->flags[_ti_cap_flagids[ind].ti];
 	}
@@ -113,7 +113,7 @@ tgetnum(const char *id2)
 		return -1;
 
 	ind = _t_numhash((const unsigned char *)id, strlen(id));
-	if (ind <= __arraycount(_ti_cap_numids)) {
+	if (ind < __arraycount(_ti_cap_numids)) {
 		te = &_ti_cap_numids[ind];
 		if (strcmp(id, te->id) == 0) {
 			if (!VALID_NUMERIC(cur_term->nums[te->ti]))
@@ -146,7 +146,7 @@ tgetstr(const char *id2, char **area)
 
 	str = NULL;
 	ind = _t_strhash((const unsigned char *)id, strlen(id));
-	if (ind <= __arraycount(_ti_cap_strids)) {
+	if (ind < __arraycount(_ti_cap_strids)) {
 		if (strcmp(id, _ti_cap_strids[ind].id) == 0) {
 			str = cur_term->strs[_ti_cap_strids[ind].ti];
 			if (str == NULL)
@@ -188,7 +188,7 @@ flagname(const char *key)
 	uint32_t idx;
 
 	idx = _t_flaghash((const unsigned char *)key, strlen(key));
-	if (idx <= __arraycount(_ti_cap_flagids) &&
+	if (idx < __arraycount(_ti_cap_flagids) &&
 	strcmp(key, _ti_cap_flagids[idx].id) == 0)
 		return _ti_flagid(_ti_cap_flagids[idx].ti);
 	return key;
@@ -200,7 +200,7 @@ numname(const char *key)
 	uint32_t idx;
 
 	idx = _t_numhash((const unsigned char *)key, strlen(key));
-	if (idx <= __arraycount(_ti_cap_numids) && 
+	if (idx < __arraycount(_ti_cap_numids) && 
 	strcmp(key, _ti_cap_numids[idx].id) == 0)
 		return _ti_numid(_ti_cap_numids[idx].ti);
 	return key;
@@ -212,7 +212,7 @@ strname(const char *key)
 	uint32_t idx;
 
 	idx = _t_strhash((const unsigned char *)key, strlen(key));
-	if (idx <= __arraycount(_ti_cap_strids) &&
+	if (idx < __arraycount(_ti_cap_strids) &&
 	strcmp(key, _ti_cap_strids[idx].id) == 0)
 		return _ti_strid(_ti_cap_strids[idx].ti);
 



CVS commit: src/lib/libterminfo

2017-01-11 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Jan 11 20:53:52 UTC 2017

Modified Files:
src/lib/libterminfo: genhash termcap.c

Log Message:
Fix some off by one issues with arraycount ..thanks coypu.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/lib/libterminfo/genhash
cvs rdiff -u -r1.19 -r1.20 src/lib/libterminfo/termcap.c

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



CVS commit: src/lib/libcurses

2017-01-11 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Jan 11 20:43:03 UTC 2017

Modified Files:
src/lib/libcurses: Makefile curses_private.h mvwin.c resize.c screen.c
setterm.c
Added Files:
src/lib/libcurses: ripoffline.c

Log Message:
Move the ripoffline logic out of screen.c and into ripoffline.c.
Store ripped off lines in the SCREEN structure so we can repaint then
when the terminal is resized.
Fix mvwin(3) so it can move windows in the ripped off area.


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/lib/libcurses/Makefile
cvs rdiff -u -r1.58 -r1.59 src/lib/libcurses/curses_private.h
cvs rdiff -u -r1.20 -r1.21 src/lib/libcurses/mvwin.c
cvs rdiff -u -r1.24 -r1.25 src/lib/libcurses/resize.c
cvs rdiff -u -r0 -r1.1 src/lib/libcurses/ripoffline.c
cvs rdiff -u -r1.28 -r1.29 src/lib/libcurses/screen.c
cvs rdiff -u -r1.60 -r1.61 src/lib/libcurses/setterm.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/libcurses/Makefile
diff -u src/lib/libcurses/Makefile:1.82 src/lib/libcurses/Makefile:1.83
--- src/lib/libcurses/Makefile:1.82	Tue Jan 10 10:13:24 2017
+++ src/lib/libcurses/Makefile	Wed Jan 11 20:43:03 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.82 2017/01/10 10:13:24 roy Exp $
+#	$NetBSD: Makefile,v 1.83 2017/01/11 20:43:03 roy Exp $
 #	@(#)Makefile	8.2 (Berkeley) 1/2/94
 
 .include 
@@ -22,9 +22,9 @@ SRCS=	acs.c addbytes.c addch.c addchnstr
 	idcok.c immedok.c inch.c inchstr.c initscr.c insch.c insdelln.c \
 	insertln.c instr.c keypad.c keyname.c leaveok.c line.c meta.c move.c \
 	mvwin.c newwin.c nodelay.c notimeout.c overlay.c overwrite.c pause.c \
-	printw.c putchar.c refresh.c resize.c scanw.c screen.c scroll.c \
-	scrollok.c setterm.c standout.c syncok.c timeout.c toucholap.c \
-	touchwin.c tstp.c tty.c unctrl.c underscore.c
+	printw.c putchar.c refresh.c resize.c ripoffline.c scanw.c screen.c \
+	scroll.c scrollok.c setterm.c standout.c syncok.c timeout.c \
+	toucholap.c touchwin.c tstp.c tty.c unctrl.c underscore.c
 
 MAN=	curses.3 curses_addch.3 curses_addchstr.3 curses_addstr.3 \
 	curses_attributes.3 curses_background.3 curses_border.3 \

Index: src/lib/libcurses/curses_private.h
diff -u src/lib/libcurses/curses_private.h:1.58 src/lib/libcurses/curses_private.h:1.59
--- src/lib/libcurses/curses_private.h:1.58	Tue Jan 10 10:13:24 2017
+++ src/lib/libcurses/curses_private.h	Wed Jan 11 20:43:03 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: curses_private.h,v 1.58 2017/01/10 10:13:24 roy Exp $	*/
+/*	$NetBSD: curses_private.h,v 1.59 2017/01/11 20:43:03 roy Exp $	*/
 
 /*-
  * Copyright (c) 1998-2000 Brett Lymn
@@ -189,6 +189,13 @@ struct __pair {
 
 typedef struct keymap keymap_t;
 
+
+#define	MAX_RIPS	5
+struct __ripoff {
+	int	nlines;
+	WINDOW	*win;
+};
+
 /* this is the encapsulation of the terminal definition, one for
  * each terminal that curses talks to.
  */
@@ -201,8 +208,8 @@ struct __screen {
 	int  lx, ly;/* loop parameters for refresh */
 	int	 COLS;		/* Columns on the screen. */
 	int	 LINES;		/* Lines on the screen. */
-	int	 ripped_top;	/* Lines ripped from the top of the screen. */
-	int	 ripped_bottom;	/* Lines ripped from the bottom. */
+	int	 nripped;	/* Number of ripofflines. */
+	struct __ripoff ripped[MAX_RIPS];	/* ripofflines. */
 	int	 ESCDELAY;	/* Delay between keys in esc seq's. */
 #define	ESCDELAY_DEFAULT	300 /* milliseconds. */
 	int	 TABSIZE;	/* Size of a tab. */
@@ -342,6 +349,9 @@ void __restore_meta_state(void);
 void	 __restore_termios(void);
 void	 __restore_stophandler(void);
 void	 __restore_winchhandler(void);
+int	 __ripoffscreen(SCREEN *, int *);
+void	 __ripoffresize(SCREEN *);
+int	 __rippedlines(const SCREEN *);
 void	 __save_termios(void);
 void	 __set_color(WINDOW *win, attr_t attr);
 void	 __set_stophandler(void);

Index: src/lib/libcurses/mvwin.c
diff -u src/lib/libcurses/mvwin.c:1.20 src/lib/libcurses/mvwin.c:1.21
--- src/lib/libcurses/mvwin.c:1.20	Fri Jan  6 13:53:18 2017
+++ src/lib/libcurses/mvwin.c	Wed Jan 11 20:43:03 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: mvwin.c,v 1.20 2017/01/06 13:53:18 roy Exp $	*/
+/*	$NetBSD: mvwin.c,v 1.21 2017/01/11 20:43:03 roy Exp $	*/
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)mvwin.c	8.2 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: mvwin.c,v 1.20 2017/01/06 13:53:18 roy Exp $");
+__RCSID("$NetBSD: mvwin.c,v 1.21 2017/01/11 20:43:03 roy Exp $");
 #endif
 #endif/* not lint */
 
@@ -102,7 +102,8 @@ mvwin(WINDOW *win, int by, int bx)
 	WINDOW *orig;
 	int dy, dx;
 
-	if (by < 0 || by + win->maxy > LINES || bx < 0 || bx + win->maxx > COLS)
+	if (by < 0 || by + win->maxy > win->screen->LINES ||
+	bx < 0 || bx + win->maxx > win->screen->COLS)
 		return ERR;
 	dy = by - win->begy;
 	dx = bx - win->begx;
@@ -117,9 +118,9 @@ mvwin(WINDOW *win, int by, int bx)
 		} while (win != orig);
 	} else {
 		if (by < orig->begy 

CVS commit: src/lib/libcurses

2017-01-11 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Jan 11 20:43:03 UTC 2017

Modified Files:
src/lib/libcurses: Makefile curses_private.h mvwin.c resize.c screen.c
setterm.c
Added Files:
src/lib/libcurses: ripoffline.c

Log Message:
Move the ripoffline logic out of screen.c and into ripoffline.c.
Store ripped off lines in the SCREEN structure so we can repaint then
when the terminal is resized.
Fix mvwin(3) so it can move windows in the ripped off area.


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/lib/libcurses/Makefile
cvs rdiff -u -r1.58 -r1.59 src/lib/libcurses/curses_private.h
cvs rdiff -u -r1.20 -r1.21 src/lib/libcurses/mvwin.c
cvs rdiff -u -r1.24 -r1.25 src/lib/libcurses/resize.c
cvs rdiff -u -r0 -r1.1 src/lib/libcurses/ripoffline.c
cvs rdiff -u -r1.28 -r1.29 src/lib/libcurses/screen.c
cvs rdiff -u -r1.60 -r1.61 src/lib/libcurses/setterm.c

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



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

2017-01-11 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Jan 11 19:42:02 UTC 2017

Modified Files:
src/sys/arch/arm/marvell: armadaxp.c

Log Message:
also fix this other off by one.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/arm/marvell/armadaxp.c

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



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

2017-01-11 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Jan 11 19:42:02 UTC 2017

Modified Files:
src/sys/arch/arm/marvell: armadaxp.c

Log Message:
also fix this other off by one.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/arm/marvell/armadaxp.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/marvell/armadaxp.c
diff -u src/sys/arch/arm/marvell/armadaxp.c:1.17 src/sys/arch/arm/marvell/armadaxp.c:1.18
--- src/sys/arch/arm/marvell/armadaxp.c:1.17	Wed Jan 11 19:32:25 2017
+++ src/sys/arch/arm/marvell/armadaxp.c	Wed Jan 11 19:42:02 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: armadaxp.c,v 1.17 2017/01/11 19:32:25 maya Exp $	*/
+/*	$NetBSD: armadaxp.c,v 1.18 2017/01/11 19:42:02 maya Exp $	*/
 /***
 Copyright (C) Marvell International Ltd. and its affiliates
 
@@ -37,7 +37,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBI
 ***/
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: armadaxp.c,v 1.17 2017/01/11 19:32:25 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: armadaxp.c,v 1.18 2017/01/11 19:42:02 maya Exp $");
 
 #define _INTR_PRIVATE
 
@@ -708,7 +708,7 @@ static void
 armadaxp_err_pic_source_name(struct pic_softc *pic, int irq,
 char *buf, size_t len)
 {
-	if (irq > __arraycount(armadaxp_err_pic_source_names)) {
+	if (irq >= __arraycount(armadaxp_err_pic_source_names)) {
 		snprintf(buf, len, "Unknown IRQ %d", irq);
 		return;
 	}



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

2017-01-11 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Jan 11 19:32:25 UTC 2017

Modified Files:
src/sys/arch/arm/marvell: armadaxp.c

Log Message:
fix off by one.

ok riastradh


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/arm/marvell/armadaxp.c

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



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

2017-01-11 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Jan 11 19:32:25 UTC 2017

Modified Files:
src/sys/arch/arm/marvell: armadaxp.c

Log Message:
fix off by one.

ok riastradh


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/arm/marvell/armadaxp.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/marvell/armadaxp.c
diff -u src/sys/arch/arm/marvell/armadaxp.c:1.16 src/sys/arch/arm/marvell/armadaxp.c:1.17
--- src/sys/arch/arm/marvell/armadaxp.c:1.16	Sat Jan  7 16:19:28 2017
+++ src/sys/arch/arm/marvell/armadaxp.c	Wed Jan 11 19:32:25 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: armadaxp.c,v 1.16 2017/01/07 16:19:28 kiyohara Exp $	*/
+/*	$NetBSD: armadaxp.c,v 1.17 2017/01/11 19:32:25 maya Exp $	*/
 /***
 Copyright (C) Marvell International Ltd. and its affiliates
 
@@ -37,7 +37,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBI
 ***/
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: armadaxp.c,v 1.16 2017/01/07 16:19:28 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: armadaxp.c,v 1.17 2017/01/11 19:32:25 maya Exp $");
 
 #define _INTR_PRIVATE
 
@@ -665,7 +665,7 @@ armadaxp_pic_set_priority(struct pic_sof
 static void
 armadaxp_pic_source_name(struct pic_softc *pic, int irq, char *buf, size_t len)
 {
-	if (irq > __arraycount(armadaxp_pic_source_names)) {
+	if (irq >= __arraycount(armadaxp_pic_source_names)) {
 		snprintf(buf, len, "Unknown IRQ %d", irq);
 		return;
 	}



CVS commit: src/sys/arch/atari/stand/installboot

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 18:32:49 UTC 2017

Modified Files:
src/sys/arch/atari/stand/installboot: installboot.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/atari/stand/installboot/installboot.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/atari/stand/installboot/installboot.c
diff -u src/sys/arch/atari/stand/installboot/installboot.c:1.35 src/sys/arch/atari/stand/installboot/installboot.c:1.36
--- src/sys/arch/atari/stand/installboot/installboot.c:1.35	Wed Aug 12 13:59:51 2015
+++ src/sys/arch/atari/stand/installboot/installboot.c	Wed Jan 11 13:32:48 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: installboot.c,v 1.35 2015/08/12 17:59:51 tsutsui Exp $	*/
+/*	$NetBSD: installboot.c,v 1.36 2017/01/11 18:32:48 christos Exp $	*/
 
 /*
  * Copyright (c) 1995 Waldi Ravens
@@ -30,8 +30,9 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include 
 #include 
+#include 
+#include 
 #include 
 #include 
 #include 



CVS commit: src/sys/arch/atari/stand/installboot

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 18:32:49 UTC 2017

Modified Files:
src/sys/arch/atari/stand/installboot: installboot.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/atari/stand/installboot/installboot.c

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



CVS commit: src/sys/netinet6

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 18:25:46 UTC 2017

Modified Files:
src/sys/netinet6: in6.c

Log Message:
Add KASSERT.


To generate a diff of this commit:
cvs rdiff -u -r1.231 -r1.232 src/sys/netinet6/in6.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/netinet6/in6.c
diff -u src/sys/netinet6/in6.c:1.231 src/sys/netinet6/in6.c:1.232
--- src/sys/netinet6/in6.c:1.231	Tue Jan 10 00:42:34 2017
+++ src/sys/netinet6/in6.c	Wed Jan 11 13:25:46 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: in6.c,v 1.231 2017/01/10 05:42:34 ozaki-r Exp $	*/
+/*	$NetBSD: in6.c,v 1.232 2017/01/11 18:25:46 christos Exp $	*/
 /*	$KAME: in6.c,v 1.198 2001/07/18 09:12:38 itojun Exp $	*/
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.231 2017/01/10 05:42:34 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.232 2017/01/11 18:25:46 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1770,6 +1770,8 @@ in6ifa_ifpforlinklocal(const struct ifne
 {
 	struct ifaddr *best_ifa = NULL, *ifa;
 
+	KASSERT(ifp != NULL);
+
 	IFADDR_READER_FOREACH(ifa, ifp) {
 		if (ifa->ifa_addr->sa_family != AF_INET6)
 			continue;



CVS commit: src/sys/netinet6

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 18:25:46 UTC 2017

Modified Files:
src/sys/netinet6: in6.c

Log Message:
Add KASSERT.


To generate a diff of this commit:
cvs rdiff -u -r1.231 -r1.232 src/sys/netinet6/in6.c

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



CVS commit: src/sys/arch/ofppc/pci

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 18:19:29 UTC 2017

Modified Files:
src/sys/arch/ofppc/pci: ofwpci.c

Log Message:
PR/51827: David Binderman: delete pointless local variable


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/ofppc/pci/ofwpci.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/ofppc/pci/ofwpci.c
diff -u src/sys/arch/ofppc/pci/ofwpci.c:1.13 src/sys/arch/ofppc/pci/ofwpci.c:1.14
--- src/sys/arch/ofppc/pci/ofwpci.c:1.13	Tue Oct 18 20:08:41 2016
+++ src/sys/arch/ofppc/pci/ofwpci.c	Wed Jan 11 13:19:29 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: ofwpci.c,v 1.13 2016/10/19 00:08:41 nonaka Exp $ */
+/* $NetBSD: ofwpci.c,v 1.14 2017/01/11 18:19:29 christos Exp $ */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ofwpci.c,v 1.13 2016/10/19 00:08:41 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofwpci.c,v 1.14 2017/01/11 18:19:29 christos Exp $");
 
 #include "opt_pci.h"
 
@@ -134,7 +134,7 @@ ofwpci_attach(device_t parent, device_t 
 	struct pcibus_attach_args pba;
 	struct genppc_pci_chipset_businfo *pbi;
 	int node = ca->ca_node;
-	int i, isprim = 0;
+	int i;
 	uint32_t busrange[2];
 	char buf[64];
 #ifdef PCI_NETBSD_CONFIGURE
@@ -173,7 +173,6 @@ ofwpci_attach(device_t parent, device_t 
 	if (of_find_firstchild_byname(OF_finddevice("/"), "pci") == node) {
 		int isa_node;
 
-		isprim++;
 		/* yes we are, now do we have an ISA child? */
 		isa_node = of_find_firstchild_byname(node, "isa");
 		if (isa_node != -1) {



CVS commit: src/sys/arch/ofppc/pci

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 18:19:29 UTC 2017

Modified Files:
src/sys/arch/ofppc/pci: ofwpci.c

Log Message:
PR/51827: David Binderman: delete pointless local variable


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/ofppc/pci/ofwpci.c

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



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

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 18:15:03 UTC 2017

Modified Files:
src/tests/lib/libc/gen: t_dir.c

Log Message:
more error checks


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/tests/lib/libc/gen/t_dir.c

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

Modified files:

Index: src/tests/lib/libc/gen/t_dir.c
diff -u src/tests/lib/libc/gen/t_dir.c:1.9 src/tests/lib/libc/gen/t_dir.c:1.10
--- src/tests/lib/libc/gen/t_dir.c:1.9	Wed Jan 11 13:09:40 2017
+++ src/tests/lib/libc/gen/t_dir.c	Wed Jan 11 13:15:02 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: t_dir.c,v 1.9 2017/01/11 18:09:40 christos Exp $ */
+/* $NetBSD: t_dir.c,v 1.10 2017/01/11 18:15:02 christos Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -75,29 +75,40 @@ ATF_TC_BODY(seekdir_basic, tc)
 
 	/* skip two for . and .. */
 	entry = readdir(dp);
+	ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s",
+	".", strerror(errno));
+
 	entry = readdir(dp);
+	ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s",
+	"..", strerror(errno));
 
 	/* get first entry */
 	entry = readdir(dp);
+	ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s",
+	"first", strerror(errno));
+
 	here = telldir(dp);
-	ATF_REQUIRE_MSG(here != -1,
-	"telldir failed: %s", strerror(errno));
+	ATF_REQUIRE_MSG(here != -1, "telldir failed: %s", strerror(errno));
 
 	/* get second entry */
 	entry = readdir(dp);
+	ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s",
+	"second", strerror(errno));
+
 	wasname = strdup(entry->d_name);
 	if (wasname == NULL)
 		atf_tc_fail("cannot allocate memory");
 
 	/* get third entry */
 	entry = readdir(dp);
+	ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s",
+	"third", strerror(errno));
 
 	/* try to return to the position after the first entry */
 	seekdir(dp, here);
 	entry = readdir(dp);
-
-	if (entry == NULL)
-		atf_tc_fail("entry 1 not found");
+	ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s",
+	"first[1]", strerror(errno));
 	if (strcmp(entry->d_name, wasname) != 0)
 		atf_tc_fail("1st seekdir found wrong name");
 
@@ -105,18 +116,17 @@ ATF_TC_BODY(seekdir_basic, tc)
 	seekdir(dp, here);
 	here = telldir(dp);
 	entry = readdir(dp);
-
-	if (entry == NULL)
-		atf_tc_fail("entry 2 not found");
+	ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s",
+	"second[1]", strerror(errno));
 	if (strcmp(entry->d_name, wasname) != 0)
 		atf_tc_fail("2nd seekdir found wrong name");
 
 	/* One more time, to make sure that telldir() doesn't affect result */
 	seekdir(dp, here);
 	entry = readdir(dp);
+	ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s",
+	"third[1]", strerror(errno));
 
-	if (entry == NULL)
-		atf_tc_fail("entry 3 not found");
 	if (strcmp(entry->d_name, wasname) != 0)
 		atf_tc_fail("3rd seekdir found wrong name");
 



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

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 18:15:03 UTC 2017

Modified Files:
src/tests/lib/libc/gen: t_dir.c

Log Message:
more error checks


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/tests/lib/libc/gen/t_dir.c

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



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

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 18:09:40 UTC 2017

Modified Files:
src/tests/lib/libc/gen: t_dir.c

Log Message:
fix mismatched paren, also the previous commit should say and check error
for -1.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libc/gen/t_dir.c

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

Modified files:

Index: src/tests/lib/libc/gen/t_dir.c
diff -u src/tests/lib/libc/gen/t_dir.c:1.8 src/tests/lib/libc/gen/t_dir.c:1.9
--- src/tests/lib/libc/gen/t_dir.c:1.8	Wed Jan 11 02:26:17 2017
+++ src/tests/lib/libc/gen/t_dir.c	Wed Jan 11 13:09:40 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: t_dir.c,v 1.8 2017/01/11 07:26:17 christos Exp $ */
+/* $NetBSD: t_dir.c,v 1.9 2017/01/11 18:09:40 christos Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@ ATF_TC_BODY(seekdir_basic, tc)
 
 #define	CREAT(x, m)	do {		\
 		int _creat_fd;		\
-		ATF_REQUIRE_MSG((_creat_fd = creat((x), (m)) != -1),	\
+		ATF_REQUIRE_MSG((_creat_fd = creat((x), (m))) != -1,	\
 		"creat(%s, %x) failed: %s", (x), (m),		\
 		strerror(errno));	\
 		(void)close(_creat_fd);	\



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

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 18:09:40 UTC 2017

Modified Files:
src/tests/lib/libc/gen: t_dir.c

Log Message:
fix mismatched paren, also the previous commit should say and check error
for -1.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libc/gen/t_dir.c

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



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

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 18:07:37 UTC 2017

Modified Files:
src/tests/lib/libc/string: t_memmem.c

Log Message:
PR/51822: Ngie Cooper: add additional t_memmem check


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/string/t_memmem.c

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



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

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 18:07:37 UTC 2017

Modified Files:
src/tests/lib/libc/string: t_memmem.c

Log Message:
PR/51822: Ngie Cooper: add additional t_memmem check


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/string/t_memmem.c

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

Modified files:

Index: src/tests/lib/libc/string/t_memmem.c
diff -u src/tests/lib/libc/string/t_memmem.c:1.2 src/tests/lib/libc/string/t_memmem.c:1.3
--- src/tests/lib/libc/string/t_memmem.c:1.2	Thu Jul  7 04:27:36 2011
+++ src/tests/lib/libc/string/t_memmem.c	Wed Jan 11 13:07:37 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_memmem.c,v 1.2 2011/07/07 08:27:36 jruoho Exp $ */
+/*	$NetBSD: t_memmem.c,v 1.3 2017/01/11 18:07:37 christos Exp $ */
 
 /*-
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -51,6 +51,8 @@ char p6[] = "9";
 int lp6 = 1;
 char p7[] = "654";
 int lp7 = 3;
+char p8[] = "89abc";
+int lp8 = 5;
 
 char b0[] = "";
 int lb0 = 0;
@@ -89,6 +91,7 @@ ATF_TC_BODY(memmem_basic, tc)
 
 	expect(memmem(b2, lb2, p4, lp4) == NULL);
 	expect(memmem(b2, lb2, p7, lp7) == NULL);
+	expect(memmem(b2, lb2, p8, lp8) == NULL);
 }
 
 ATF_TP_ADD_TCS(tp)



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

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 18:05:54 UTC 2017

Modified Files:
src/tests/lib/libc/string: t_memcpy.c

Log Message:
PR/51823: Ngie Cooper: Add output diagnostic if memcmp of the md5 string fails


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libc/string/t_memcpy.c

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

Modified files:

Index: src/tests/lib/libc/string/t_memcpy.c
diff -u src/tests/lib/libc/string/t_memcpy.c:1.5 src/tests/lib/libc/string/t_memcpy.c:1.6
--- src/tests/lib/libc/string/t_memcpy.c:1.5	Sat Mar 16 22:23:31 2013
+++ src/tests/lib/libc/string/t_memcpy.c	Wed Jan 11 13:05:54 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: t_memcpy.c,v 1.5 2013/03/17 02:23:31 christos Exp $ */
+/* $NetBSD: t_memcpy.c,v 1.6 2017/01/11 18:05:54 christos Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -96,7 +96,8 @@ ATF_TC_BODY(memcpy_basic, tc)
 			if (i != j)
 runTest(start[i], start[j]);
 	MD5End(mc, result);
-	ATF_REQUIRE_EQ(strcmp(result, goodResult), 0);
+	ATF_REQUIRE_EQ_MSG(strcmp(result, goodResult), 0, "%s != %s",
+	result, goodResult);
 }
 
 ATF_TC(memccpy_simple);



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

2017-01-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 18:05:54 UTC 2017

Modified Files:
src/tests/lib/libc/string: t_memcpy.c

Log Message:
PR/51823: Ngie Cooper: Add output diagnostic if memcmp of the md5 string fails


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libc/string/t_memcpy.c

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



CVS commit: src/lib/libcurses

2017-01-11 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Jan 11 17:15:27 UTC 2017

Modified Files:
src/lib/libcurses: initscr.c

Log Message:
Remove setup already done in newterm and even set_term.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/lib/libcurses/initscr.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/libcurses/initscr.c
diff -u src/lib/libcurses/initscr.c:1.31 src/lib/libcurses/initscr.c:1.32
--- src/lib/libcurses/initscr.c:1.31	Tue Jan 10 10:13:24 2017
+++ src/lib/libcurses/initscr.c	Wed Jan 11 17:15:27 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: initscr.c,v 1.31 2017/01/10 10:13:24 roy Exp $	*/
+/*	$NetBSD: initscr.c,v 1.32 2017/01/11 17:15:27 roy Exp $	*/
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)initscr.c	8.2 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: initscr.c,v 1.31 2017/01/10 10:13:24 roy Exp $");
+__RCSID("$NetBSD: initscr.c,v 1.32 2017/01/11 17:15:27 roy Exp $");
 #endif
 #endif	/* not lint */
 
@@ -68,19 +68,6 @@ initscr(void)
 	if ((_cursesi_screen = newterm((char *) sp, stdout, stdin)) == NULL)
 		return NULL;
 
-	__echoit = _cursesi_screen->echoit;
-__pfast = _cursesi_screen->pfast;
-	__rawmode = _cursesi_screen->rawmode;
-	__noqch = _cursesi_screen->noqch;
-	COLS = _cursesi_screen->COLS;
-	LINES = _cursesi_screen->LINES
-	- _cursesi_screen->ripped_top - _cursesi_screen->ripped_bottom;
-	COLORS = _cursesi_screen->COLORS;
-	COLOR_PAIRS = _cursesi_screen->COLOR_PAIRS;
-	__GT = _cursesi_screen->GT;
-	__NONL = _cursesi_screen->NONL;
-	__UPPERCASE = _cursesi_screen->UPPERCASE;
-
 	set_term(_cursesi_screen);
 	wrefresh(curscr);
 



CVS commit: src/lib/libcurses

2017-01-11 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Jan 11 17:15:27 UTC 2017

Modified Files:
src/lib/libcurses: initscr.c

Log Message:
Remove setup already done in newterm and even set_term.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/lib/libcurses/initscr.c

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



CVS commit: src/sys/kern

2017-01-11 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Wed Jan 11 14:52:03 UTC 2017

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

Log Message:
Adapt to the recent vnode changes.


To generate a diff of this commit:
cvs rdiff -u -r1.458 -r1.459 src/sys/kern/vfs_subr.c

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

Modified files:

Index: src/sys/kern/vfs_subr.c
diff -u src/sys/kern/vfs_subr.c:1.458 src/sys/kern/vfs_subr.c:1.459
--- src/sys/kern/vfs_subr.c:1.458	Wed Jan 11 12:17:34 2017
+++ src/sys/kern/vfs_subr.c	Wed Jan 11 14:52:02 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_subr.c,v 1.458 2017/01/11 12:17:34 joerg Exp $	*/
+/*	$NetBSD: vfs_subr.c,v 1.459 2017/01/11 14:52:02 hannken Exp $	*/
 
 /*-
  * Copyright (c) 1997, 1998, 2004, 2005, 2007, 2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.458 2017/01/11 12:17:34 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.459 2017/01/11 14:52:02 hannken Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -1543,13 +1543,13 @@ void
 vfs_vnode_lock_print(void *vlock, int full, void (*pr)(const char *, ...))
 {
 	struct mount *mp;
-	struct vnode *vp;
+	vnode_impl_t *vip;
 
 	TAILQ_FOREACH(mp, , mnt_list) {
-		TAILQ_FOREACH(vp, >mnt_vnodelist, v_mntvnodes) {
-			if (>v_lock != vlock)
+		TAILQ_FOREACH(vip, >mnt_vnodelist, vi_mntvnodes) {
+			if (>vi_lock != vlock)
 continue;
-			vfs_vnode_print(vp, full, pr);
+			vfs_vnode_print(VIMPL_TO_VNODE(vip), full, pr);
 		}
 	}
 }



CVS commit: src/sys/kern

2017-01-11 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Wed Jan 11 14:52:03 UTC 2017

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

Log Message:
Adapt to the recent vnode changes.


To generate a diff of this commit:
cvs rdiff -u -r1.458 -r1.459 src/sys/kern/vfs_subr.c

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



CVS commit: src/external/gpl3/binutils/dist/gas

2017-01-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Jan 11 14:13:05 UTC 2017

Modified Files:
src/external/gpl3/binutils/dist/gas: configure.tgt

Log Message:
Fix merge botch. arm eabi targets now match properly and we get the
right defaults.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/binutils/dist/gas/configure.tgt

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



CVS commit: src/external/gpl3/binutils/dist/gas

2017-01-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Jan 11 14:13:05 UTC 2017

Modified Files:
src/external/gpl3/binutils/dist/gas: configure.tgt

Log Message:
Fix merge botch. arm eabi targets now match properly and we get the
right defaults.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/binutils/dist/gas/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/binutils/dist/gas/configure.tgt
diff -u src/external/gpl3/binutils/dist/gas/configure.tgt:1.11 src/external/gpl3/binutils/dist/gas/configure.tgt:1.12
--- src/external/gpl3/binutils/dist/gas/configure.tgt:1.11	Wed Oct 26 18:42:55 2016
+++ src/external/gpl3/binutils/dist/gas/configure.tgt	Wed Jan 11 14:13:05 2017
@@ -140,6 +140,8 @@ case ${generic_target} in
   arm-*-phoenix*)			fmt=elf ;;
   arm-*-rtems*)fmt=elf ;;
   arm-*-elf)fmt=elf ;;
+  arm-*-netbsdelf*-*eabihf*)		fmt=elf  em=armnbsdeabihf ;;
+  arm-*-netbsdelf*-*eabi*)		fmt=elf  em=armnbsdeabi ;;
   arm-*-eabi*)fmt=elf em=armeabi ;;
   arm-*-symbianelf*)			fmt=elf em=symbian ;;
   arm-*-kaos*)fmt=elf ;;
@@ -151,8 +153,6 @@ case ${generic_target} in
   arm-*-linux*aout*)			fmt=aout em=linux ;;
   arm-*-linux-*eabi*)			fmt=elf  em=armlinuxeabi ;;
   arm-*-linux-*)			fmt=elf  em=linux ;;
-  arm-*-netbsdelf*-*eabihf*)		fmt=elf  em=armnbsdeabihf ;;
-  arm-*-netbsdelf*-*eabi*)		fmt=elf  em=armnbsdeabi ;;
   arm-*-uclinux*eabi*)			fmt=elf  em=armlinuxeabi ;;
   arm-*-uclinux*)			fmt=elf  em=linux ;;
   arm-*-nacl*)fmt=elf  em=nacl ;;



CVS commit: src/usr.sbin/makefs

2017-01-11 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Wed Jan 11 13:47:27 UTC 2017

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

Log Message:
Document msdos-specific options directly.

>From jmc@OpenBSD.

Bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/usr.sbin/makefs/makefs.8

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

Modified files:

Index: src/usr.sbin/makefs/makefs.8
diff -u src/usr.sbin/makefs/makefs.8:1.56 src/usr.sbin/makefs/makefs.8:1.57
--- src/usr.sbin/makefs/makefs.8:1.56	Wed Jan 11 13:44:24 2017
+++ src/usr.sbin/makefs/makefs.8	Wed Jan 11 13:47:27 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: makefs.8,v 1.56 2017/01/11 13:44:24 wiz Exp $
+.\"	$NetBSD: makefs.8,v 1.57 2017/01/11 13:47:27 wiz Exp $
 .\"
 .\" Copyright (c) 2001-2003 Wasabi Systems, Inc.
 .\" All rights reserved.
@@ -33,7 +33,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd November 23, 2015
+.Dd January 11, 2017
 .Dt MAKEFS 8
 .Os
 .Sh NAME
@@ -393,9 +393,63 @@ Type of the media.
 NOR: 0 or NAND: 1.
 .El
 .Ss msdos-specific options
-See
+.Sy msdos
+images have MS-DOS-specific optional parameters that may be
+provided.
+The arguments consist of a keyword, an equal sign
+.Pq Ql = ,
+and a value.
+The following keywords are supported (see
 .Xr newfs_msdos 8
-for related options.
+for more details):
+.Pp
+.Bl -tag -width omit-trailing-period -offset indent -compact
+.It Cm backup_sector
+Location of the backup boot sector.
+.It Cm block_size
+Block size.
+.It Cm bootstrap
+Bootstrap file.
+.It Cm bytes_per_sector
+Bytes per sector.
+.It Cm create_size
+Create file size.
+.It Cm directory_entries
+Directory entries.
+.It Cm drive_heads
+Drive heads.
+.It Cm fat_type
+FAT type (12, 16, or 32).
+.It Cm floppy
+Preset drive parameters for standard format floppy disks
+(160, 180, 320, 360, 640, 720, 1200, 1232, 1440, or 2880).
+.It Cm hidden_sectors
+Hidden sectors.
+.It Cm info_sector
+Location of the info sector.
+.It Cm media_descriptor
+Media descriptor.
+.It Cm num_FAT
+Number of FATs.
+.It Cm OEM_string
+OEM string.
+.It Cm offset
+Offset in device.
+.It Cm reserved_sectors
+Reserved sectors.
+.It Cm sectors_per_cluster
+Sectors per cluster.
+.It Cm sectors_per_fat
+Sectors per FAT.
+.It Cm sectors_per_track
+Sectors per track.
+.It Cm size
+File System size.
+.It Cm volume_id
+Volume ID.
+.It Cm volume_label
+Volume Label.
+.El
 .Ss V7FS-specific options
 The following keywords are supported:
 .Pp



CVS commit: src/usr.sbin/makefs

2017-01-11 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Wed Jan 11 13:47:27 UTC 2017

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

Log Message:
Document msdos-specific options directly.

>From jmc@OpenBSD.

Bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/usr.sbin/makefs/makefs.8

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



CVS commit: src/usr.sbin/makefs

2017-01-11 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Wed Jan 11 13:44:24 UTC 2017

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

Log Message:
Some changes and sorting based on diff sent from jmc@OpenBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/usr.sbin/makefs/makefs.8

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

Modified files:

Index: src/usr.sbin/makefs/makefs.8
diff -u src/usr.sbin/makefs/makefs.8:1.55 src/usr.sbin/makefs/makefs.8:1.56
--- src/usr.sbin/makefs/makefs.8:1.55	Wed Nov 25 16:32:00 2015
+++ src/usr.sbin/makefs/makefs.8	Wed Jan 11 13:44:24 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: makefs.8,v 1.55 2015/11/25 16:32:00 wiz Exp $
+.\"	$NetBSD: makefs.8,v 1.56 2017/01/11 13:44:24 wiz Exp $
 .\"
 .\" Copyright (c) 2001-2003 Wasabi Systems, Inc.
 .\" All rights reserved.
@@ -221,18 +221,18 @@ Create an
 file system image.
 The following file system types are supported:
 .Bl -tag -width cd9660 -offset indent
-.It Sy ffs
-BSD fast file system (default).
 .It Sy cd9660
 ISO 9660 file system.
 .It Sy chfs
 Chip flash file system.
+.It Sy ffs
+BSD fast file system (default).
 .It Sy msdos
 FAT12, FAT16, or FAT32 file system.
-.It Sy v7fs
-7th Edition(V7) file system.
 .It Sy udf
 ISO/Ecma UDF file system.
+.It Sy v7fs
+7th Edition(V7) file system.
 .El
 .It Fl x
 Exclude file system nodes not explicitly listed in the specfile.
@@ -244,7 +244,7 @@ This is useful for virtual machine image
 .Pp
 Where sizes are specified, a decimal number of bytes is expected.
 Two or more numbers may be separated by an
-.Dq x
+.Sq x
 to indicate a product.
 Each number may have one of the following optional suffixes:
 .Bl -tag -width 3n -offset indent -compact
@@ -280,10 +280,14 @@ Expected number of files per directory.
 Block size.
 .It Sy density
 Bytes per inode.
+.It Sy extent
+Maximum extent size.
 .It Sy fsize
 Fragment size.
 .It Sy label
 Label name of the image.
+.It Sy maxbpcg
+Maximum total number of blocks in a cylinder group.
 .It Sy maxbpg
 Maximum blocks per file in a cylinder group.
 .It Sy minfree
@@ -293,10 +297,6 @@ Optimization preference; one of
 .Ql space
 or
 .Ql time .
-.It Sy extent
-Maximum extent size.
-.It Sy maxbpcg
-Maximum total number of blocks in a cylinder group.
 .It Sy version
 UFS version.
 1 for FFS (default), 2 for UFS2.
@@ -320,7 +320,7 @@ the spec.
 .\" Unknown
 .It Sy allow-max-name
 Allow 37 instead of 33 characters for filenames by omitting the
-version id.
+version ID.
 .It Sy allow-multidot
 Allow multiple dots in a filename.
 .It Sy applicationid
@@ -331,9 +331,6 @@ Use the
 extension to encode
 .Tn RISC OS
 metadata.
-.It Sy chrp-boot
-Write an MBR partition table to the image to allow older CHRP hardware to
-boot.
 .It Sy boot-load-segment
 Set load segment for the boot image.
 .It Sy bootimage
@@ -347,6 +344,9 @@ is one of
 .Ql macppc ,
 or
 .Ql powerpc .
+.It Sy chrp-boot
+Write an MBR partition table to the image to allow older CHRP hardware to
+boot.
 .It Sy generic-bootimage
 Load a generic boot image into the first 32K of the cd9660 image.
 .It Sy hard-disk-boot
@@ -395,7 +395,7 @@ NOR: 0 or NAND: 1.
 .Ss msdos-specific options
 See
 .Xr newfs_msdos 8
-for fs specific options.
+for related options.
 .Ss V7FS-specific options
 The following keywords are supported:
 .Pp
@@ -469,8 +469,8 @@ utility appeared in
 .An UCHIYAMA Yasushi
 (v7fs support),
 .An Tamas Toth
-(chfs support).
+(chfs support),
 .An Christos Zoulas
-(msdos support).
+(msdos support),
 .An Reinoud Zandijk
 (udf support).



CVS commit: src/usr.sbin/makefs

2017-01-11 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Wed Jan 11 13:44:24 UTC 2017

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

Log Message:
Some changes and sorting based on diff sent from jmc@OpenBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/usr.sbin/makefs/makefs.8

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



CVS commit: src/sys

2017-01-11 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Jan 11 13:08:29 UTC 2017

Modified Files:
src/sys/net: if_arcsubr.c if_atmsubr.c if_fddisubr.c if_hippisubr.c
if_tokensubr.c if_tun.c route.c rtbl.c
src/sys/netinet: igmp.c in_pcb.c ip_etherip.c ip_flow.c ip_mroute.c
ip_output.c ip_reass.c portalgo.c
src/sys/netinet6: dest6.c frag6.c ip6_etherip.c ip6_flow.c
ip6_forward.c ip6_mroute.c ip6_output.c mld6.c nd6.c

Log Message:
Get rid of unnecessary header inclusions


To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/sys/net/if_arcsubr.c
cvs rdiff -u -r1.60 -r1.61 src/sys/net/if_atmsubr.c
cvs rdiff -u -r1.102 -r1.103 src/sys/net/if_fddisubr.c
cvs rdiff -u -r1.47 -r1.48 src/sys/net/if_hippisubr.c
cvs rdiff -u -r1.78 -r1.79 src/sys/net/if_tokensubr.c
cvs rdiff -u -r1.133 -r1.134 src/sys/net/if_tun.c
cvs rdiff -u -r1.185 -r1.186 src/sys/net/route.c
cvs rdiff -u -r1.5 -r1.6 src/sys/net/rtbl.c
cvs rdiff -u -r1.62 -r1.63 src/sys/netinet/igmp.c
cvs rdiff -u -r1.172 -r1.173 src/sys/netinet/in_pcb.c
cvs rdiff -u -r1.19 -r1.20 src/sys/netinet/ip_etherip.c
cvs rdiff -u -r1.78 -r1.79 src/sys/netinet/ip_flow.c
cvs rdiff -u -r1.144 -r1.145 src/sys/netinet/ip_mroute.c
cvs rdiff -u -r1.266 -r1.267 src/sys/netinet/ip_output.c
cvs rdiff -u -r1.10 -r1.11 src/sys/netinet/ip_reass.c \
src/sys/netinet/portalgo.c
cvs rdiff -u -r1.19 -r1.20 src/sys/netinet6/dest6.c
cvs rdiff -u -r1.58 -r1.59 src/sys/netinet6/frag6.c
cvs rdiff -u -r1.20 -r1.21 src/sys/netinet6/ip6_etherip.c
cvs rdiff -u -r1.33 -r1.34 src/sys/netinet6/ip6_flow.c
cvs rdiff -u -r1.82 -r1.83 src/sys/netinet6/ip6_forward.c
cvs rdiff -u -r1.112 -r1.113 src/sys/netinet6/ip6_mroute.c
cvs rdiff -u -r1.179 -r1.180 src/sys/netinet6/ip6_output.c
cvs rdiff -u -r1.76 -r1.77 src/sys/netinet6/mld6.c
cvs rdiff -u -r1.223 -r1.224 src/sys/netinet6/nd6.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_arcsubr.c
diff -u src/sys/net/if_arcsubr.c:1.74 src/sys/net/if_arcsubr.c:1.75
--- src/sys/net/if_arcsubr.c:1.74	Mon Oct  3 11:06:06 2016
+++ src/sys/net/if_arcsubr.c	Wed Jan 11 13:08:29 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_arcsubr.c,v 1.74 2016/10/03 11:06:06 ozaki-r Exp $	*/
+/*	$NetBSD: if_arcsubr.c,v 1.75 2017/01/11 13:08:29 ozaki-r Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Ignatios Souvatzis
@@ -35,7 +35,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_arcsubr.c,v 1.74 2016/10/03 11:06:06 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_arcsubr.c,v 1.75 2017/01/11 13:08:29 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -46,8 +46,6 @@ __KERNEL_RCSID(0, "$NetBSD: if_arcsubr.c
 #include 
 #include 
 #include 
-#include 
-#include 
 #include 
 #include 
 #include 

Index: src/sys/net/if_atmsubr.c
diff -u src/sys/net/if_atmsubr.c:1.60 src/sys/net/if_atmsubr.c:1.61
--- src/sys/net/if_atmsubr.c:1.60	Mon Oct  3 11:06:06 2016
+++ src/sys/net/if_atmsubr.c	Wed Jan 11 13:08:29 2017
@@ -1,4 +1,4 @@
-/*  $NetBSD: if_atmsubr.c,v 1.60 2016/10/03 11:06:06 ozaki-r Exp $   */
+/*  $NetBSD: if_atmsubr.c,v 1.61 2017/01/11 13:08:29 ozaki-r Exp $   */
 
 /*
  * Copyright (c) 1996 Charles D. Cranor and Washington University.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_atmsubr.c,v 1.60 2016/10/03 11:06:06 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_atmsubr.c,v 1.61 2017/01/11 13:08:29 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -43,8 +43,6 @@ __KERNEL_RCSID(0, "$NetBSD: if_atmsubr.c
 #include 
 #include 
 #include 
-#include 
-#include 
 #include 
 #include 
 #include 

Index: src/sys/net/if_fddisubr.c
diff -u src/sys/net/if_fddisubr.c:1.102 src/sys/net/if_fddisubr.c:1.103
--- src/sys/net/if_fddisubr.c:1.102	Mon Oct  3 11:06:06 2016
+++ src/sys/net/if_fddisubr.c	Wed Jan 11 13:08:29 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_fddisubr.c,v 1.102 2016/10/03 11:06:06 ozaki-r Exp $	*/
+/*	$NetBSD: if_fddisubr.c,v 1.103 2017/01/11 13:08:29 ozaki-r Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -96,7 +96,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_fddisubr.c,v 1.102 2016/10/03 11:06:06 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_fddisubr.c,v 1.103 2017/01/11 13:08:29 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_gateway.h"
@@ -111,8 +111,6 @@ __KERNEL_RCSID(0, "$NetBSD: if_fddisubr.
 #include 
 #include 
 #include 
-#include 
-#include 
 #include 
 #include 
 #include 

Index: src/sys/net/if_hippisubr.c
diff -u src/sys/net/if_hippisubr.c:1.47 src/sys/net/if_hippisubr.c:1.48
--- src/sys/net/if_hippisubr.c:1.47	Thu Apr 28 00:16:56 2016
+++ src/sys/net/if_hippisubr.c	Wed Jan 11 13:08:29 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_hippisubr.c,v 1.47 2016/04/28 00:16:56 ozaki-r Exp $	*/
+/*	$NetBSD: if_hippisubr.c,v 1.48 2017/01/11 13:08:29 ozaki-r Exp $	*/
 
 /*
  * Copyright (c) 1982, 1989, 1993

CVS commit: src/sys

2017-01-11 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Jan 11 13:08:29 UTC 2017

Modified Files:
src/sys/net: if_arcsubr.c if_atmsubr.c if_fddisubr.c if_hippisubr.c
if_tokensubr.c if_tun.c route.c rtbl.c
src/sys/netinet: igmp.c in_pcb.c ip_etherip.c ip_flow.c ip_mroute.c
ip_output.c ip_reass.c portalgo.c
src/sys/netinet6: dest6.c frag6.c ip6_etherip.c ip6_flow.c
ip6_forward.c ip6_mroute.c ip6_output.c mld6.c nd6.c

Log Message:
Get rid of unnecessary header inclusions


To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/sys/net/if_arcsubr.c
cvs rdiff -u -r1.60 -r1.61 src/sys/net/if_atmsubr.c
cvs rdiff -u -r1.102 -r1.103 src/sys/net/if_fddisubr.c
cvs rdiff -u -r1.47 -r1.48 src/sys/net/if_hippisubr.c
cvs rdiff -u -r1.78 -r1.79 src/sys/net/if_tokensubr.c
cvs rdiff -u -r1.133 -r1.134 src/sys/net/if_tun.c
cvs rdiff -u -r1.185 -r1.186 src/sys/net/route.c
cvs rdiff -u -r1.5 -r1.6 src/sys/net/rtbl.c
cvs rdiff -u -r1.62 -r1.63 src/sys/netinet/igmp.c
cvs rdiff -u -r1.172 -r1.173 src/sys/netinet/in_pcb.c
cvs rdiff -u -r1.19 -r1.20 src/sys/netinet/ip_etherip.c
cvs rdiff -u -r1.78 -r1.79 src/sys/netinet/ip_flow.c
cvs rdiff -u -r1.144 -r1.145 src/sys/netinet/ip_mroute.c
cvs rdiff -u -r1.266 -r1.267 src/sys/netinet/ip_output.c
cvs rdiff -u -r1.10 -r1.11 src/sys/netinet/ip_reass.c \
src/sys/netinet/portalgo.c
cvs rdiff -u -r1.19 -r1.20 src/sys/netinet6/dest6.c
cvs rdiff -u -r1.58 -r1.59 src/sys/netinet6/frag6.c
cvs rdiff -u -r1.20 -r1.21 src/sys/netinet6/ip6_etherip.c
cvs rdiff -u -r1.33 -r1.34 src/sys/netinet6/ip6_flow.c
cvs rdiff -u -r1.82 -r1.83 src/sys/netinet6/ip6_forward.c
cvs rdiff -u -r1.112 -r1.113 src/sys/netinet6/ip6_mroute.c
cvs rdiff -u -r1.179 -r1.180 src/sys/netinet6/ip6_output.c
cvs rdiff -u -r1.76 -r1.77 src/sys/netinet6/mld6.c
cvs rdiff -u -r1.223 -r1.224 src/sys/netinet6/nd6.c

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



CVS commit: src

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:19:44 UTC 2017

Modified Files:
src/external/apache2/mDNSResponder/usr.sbin/mdnsd: Makefile
src/external/bsd/dhcpcd/sbin: Makefile.inc
src/external/bsd/ipf: Makefile.inc
src/external/bsd/ntp/lib/libopts: Makefile
src/external/bsd/tcpdump/bin: Makefile
src/sbin/newfs_udf: Makefile
src/share/mk: bsd.kmodule.mk
src/sys/conf: Makefile.kern.inc
src/sys/rump/fs/lib/libudf: Makefile
src/sys/rump/net/lib: Makefile.inc
src/usr.sbin/bootp/common: Makefile
src/usr.sbin/installboot: Makefile
src/usr.sbin/makefs/udf: Makefile.inc
src/usr.sbin/pf: Makefile.inc
src/usr.sbin/rtadvd: Makefile

Log Message:
Disable a couple of warnings until further investigation.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 \
src/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/dhcpcd/sbin/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/ipf/Makefile.inc
cvs rdiff -u -r1.13 -r1.14 src/external/bsd/ntp/lib/libopts/Makefile
cvs rdiff -u -r1.15 -r1.16 src/external/bsd/tcpdump/bin/Makefile
cvs rdiff -u -r1.5 -r1.6 src/sbin/newfs_udf/Makefile
cvs rdiff -u -r1.58 -r1.59 src/share/mk/bsd.kmodule.mk
cvs rdiff -u -r1.255 -r1.256 src/sys/conf/Makefile.kern.inc
cvs rdiff -u -r1.9 -r1.10 src/sys/rump/fs/lib/libudf/Makefile
cvs rdiff -u -r1.6 -r1.7 src/sys/rump/net/lib/Makefile.inc
cvs rdiff -u -r1.7 -r1.8 src/usr.sbin/bootp/common/Makefile
cvs rdiff -u -r1.50 -r1.51 src/usr.sbin/installboot/Makefile
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/makefs/udf/Makefile.inc
cvs rdiff -u -r1.9 -r1.10 src/usr.sbin/pf/Makefile.inc
cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/rtadvd/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/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile
diff -u src/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile:1.7 src/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile:1.8
--- src/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile:1.7	Thu May 26 12:56:25 2011
+++ src/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile	Wed Jan 11 12:19:43 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.7 2011/05/26 12:56:25 joerg Exp $
+#	$NetBSD: Makefile,v 1.8 2017/01/11 12:19:43 joerg Exp $
 
 PROG=	mdnsd
 
@@ -16,6 +16,6 @@ COPTS.uds_daemon.c += -Wno-stack-protect
 
 MAN=	mdnsd.8
 
-CWARNFLAGS.clang+=	-Wno-unused-value
+CWARNFLAGS.clang+=	-Wno-unused-value -Wno-error=address-of-packed-member
 
 .include 

Index: src/external/bsd/dhcpcd/sbin/Makefile.inc
diff -u src/external/bsd/dhcpcd/sbin/Makefile.inc:1.2 src/external/bsd/dhcpcd/sbin/Makefile.inc:1.3
--- src/external/bsd/dhcpcd/sbin/Makefile.inc:1.2	Fri Sep 19 23:00:49 2008
+++ src/external/bsd/dhcpcd/sbin/Makefile.inc	Wed Jan 11 12:19:43 2017
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.2 2008/09/19 23:00:49 joerg Exp $
+# $NetBSD: Makefile.inc,v 1.3 2017/01/11 12:19:43 joerg Exp $
 
 .include 
 
@@ -9,3 +9,4 @@ BINDIR=		/sbin
 LDSTATIC?=	-static
 .endif
 
+CWARNFLAGS.clang+=	-Wno-error=address-of-packed-member

Index: src/external/bsd/ipf/Makefile.inc
diff -u src/external/bsd/ipf/Makefile.inc:1.2 src/external/bsd/ipf/Makefile.inc:1.3
--- src/external/bsd/ipf/Makefile.inc:1.2	Sat Sep 21 22:28:12 2013
+++ src/external/bsd/ipf/Makefile.inc	Wed Jan 11 12:19:43 2017
@@ -1,9 +1,10 @@
-#	$NetBSD: Makefile.inc,v 1.2 2013/09/21 22:28:12 joerg Exp $
+#	$NetBSD: Makefile.inc,v 1.3 2017/01/11 12:19:43 joerg Exp $
 
 WARNS?=	1	# XXX -Wcast-qual -Wshadow
 CWARNFLAGS.clang+=	-Wno-format -Wno-tautological-compare \
 			-Wno-self-assign -Wno-array-bounds \
-			-Wno-error=unused-const-variable
+			-Wno-error=unused-const-variable \
+			-Wno-error=address-of-packed-member
 
 .include 
 

Index: src/external/bsd/ntp/lib/libopts/Makefile
diff -u src/external/bsd/ntp/lib/libopts/Makefile:1.13 src/external/bsd/ntp/lib/libopts/Makefile:1.14
--- src/external/bsd/ntp/lib/libopts/Makefile:1.13	Tue Dec 23 20:26:30 2014
+++ src/external/bsd/ntp/lib/libopts/Makefile	Wed Jan 11 12:19:43 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.13 2014/12/23 20:26:30 joerg Exp $
+#	$NetBSD: Makefile,v 1.14 2017/01/11 12:19:43 joerg Exp $
 
 LIBISPRIVATE=yes
 
@@ -22,5 +22,6 @@ COPTS.libopts.c+=	-Wno-error
 .else
 COPTS.libopts.c+=	${${ACTIVE_CC} == "gcc":? -Wno-format-contains-nul :}
 .endif
+COPTS.libopts.c+=	${${ACTIVE_CC} == "clang":? -Wno-format :}
 
 .include 

Index: src/external/bsd/tcpdump/bin/Makefile
diff -u src/external/bsd/tcpdump/bin/Makefile:1.15 src/external/bsd/tcpdump/bin/Makefile:1.16
--- src/external/bsd/tcpdump/bin/Makefile:1.15	Fri Dec  2 02:14:03 2016
+++ src/external/bsd/tcpdump/bin/Makefile	Wed Jan 11 12:19:43 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.15 2016/12/02 02:14:03 riastradh Exp $	
+#	$NetBSD: Makefile,v 1.16 2017/01/11 12:19:43 

CVS commit: src

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:19:44 UTC 2017

Modified Files:
src/external/apache2/mDNSResponder/usr.sbin/mdnsd: Makefile
src/external/bsd/dhcpcd/sbin: Makefile.inc
src/external/bsd/ipf: Makefile.inc
src/external/bsd/ntp/lib/libopts: Makefile
src/external/bsd/tcpdump/bin: Makefile
src/sbin/newfs_udf: Makefile
src/share/mk: bsd.kmodule.mk
src/sys/conf: Makefile.kern.inc
src/sys/rump/fs/lib/libudf: Makefile
src/sys/rump/net/lib: Makefile.inc
src/usr.sbin/bootp/common: Makefile
src/usr.sbin/installboot: Makefile
src/usr.sbin/makefs/udf: Makefile.inc
src/usr.sbin/pf: Makefile.inc
src/usr.sbin/rtadvd: Makefile

Log Message:
Disable a couple of warnings until further investigation.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 \
src/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/dhcpcd/sbin/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/ipf/Makefile.inc
cvs rdiff -u -r1.13 -r1.14 src/external/bsd/ntp/lib/libopts/Makefile
cvs rdiff -u -r1.15 -r1.16 src/external/bsd/tcpdump/bin/Makefile
cvs rdiff -u -r1.5 -r1.6 src/sbin/newfs_udf/Makefile
cvs rdiff -u -r1.58 -r1.59 src/share/mk/bsd.kmodule.mk
cvs rdiff -u -r1.255 -r1.256 src/sys/conf/Makefile.kern.inc
cvs rdiff -u -r1.9 -r1.10 src/sys/rump/fs/lib/libudf/Makefile
cvs rdiff -u -r1.6 -r1.7 src/sys/rump/net/lib/Makefile.inc
cvs rdiff -u -r1.7 -r1.8 src/usr.sbin/bootp/common/Makefile
cvs rdiff -u -r1.50 -r1.51 src/usr.sbin/installboot/Makefile
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/makefs/udf/Makefile.inc
cvs rdiff -u -r1.9 -r1.10 src/usr.sbin/pf/Makefile.inc
cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/rtadvd/Makefile

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



CVS commit: src/doc

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:19:03 UTC 2017

Modified Files:
src/doc: TODO.clang

Log Message:
The sparc atomic issues are gone.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/doc/TODO.clang

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

Modified files:

Index: src/doc/TODO.clang
diff -u src/doc/TODO.clang:1.19 src/doc/TODO.clang:1.20
--- src/doc/TODO.clang:1.19	Sat Feb 27 21:42:14 2016
+++ src/doc/TODO.clang	Wed Jan 11 12:19:03 2017
@@ -1,4 +1,4 @@
-$NetBSD: TODO.clang,v 1.19 2016/02/27 21:42:14 joerg Exp $
+$NetBSD: TODO.clang,v 1.20 2017/01/11 12:19:03 joerg Exp $
 
 Hacks for the clang integration
 ---
@@ -11,10 +11,3 @@ g++ otherwise crashes on trivial input.
 
 src/external/mit/xorg/lib/pixman uses -fno-integrated-as on ARM for the
 macro (ab)use.
-
-src/tests/lib/libc/sync disables tests for atomics shorter than 32bit on
-SPARC64 due to missing codegen support.
-
-src/external/bsd/llvm/lib/libLLVMSupport and src/external/bsd/libc++/lib
-explicitly require -Wa,-Av8plus at the moment, because atomic ops are
-always lowered to CAS.



CVS commit: src/doc

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:19:03 UTC 2017

Modified Files:
src/doc: TODO.clang

Log Message:
The sparc atomic issues are gone.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/doc/TODO.clang

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



CVS commit: src/usr.sbin/bootp/common

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:18:22 UTC 2017

Modified Files:
src/usr.sbin/bootp/common: readfile.c

Log Message:
Avoid access to unaligned data.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/bootp/common/readfile.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.sbin/bootp/common/readfile.c
diff -u src/usr.sbin/bootp/common/readfile.c:1.19 src/usr.sbin/bootp/common/readfile.c:1.20
--- src/usr.sbin/bootp/common/readfile.c:1.19	Fri Oct  7 10:06:39 2011
+++ src/usr.sbin/bootp/common/readfile.c	Wed Jan 11 12:18:22 2017
@@ -22,7 +22,7 @@ SOFTWARE.
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: readfile.c,v 1.19 2011/10/07 10:06:39 joerg Exp $");
+__RCSID("$NetBSD: readfile.c,v 1.20 2017/01/11 12:18:22 joerg Exp $");
 #endif
 
 
@@ -1582,23 +1582,21 @@ makelower(char *s)
 PRIVATE struct in_addr_list *
 get_addresses(char **src)
 {
-	struct in_addr tmpaddrlist[MAXINADDRS];
-	struct in_addr *address1, *address2;
+	__aligned(4) struct in_addr tmpaddrlist[MAXINADDRS];
 	struct in_addr_list *result;
-	unsigned addrcount, totalsize;
+	unsigned addrcount, totalsize, address;
 
-	address1 = tmpaddrlist;
-	for (addrcount = 0; addrcount < MAXINADDRS; addrcount++) {
+	for (address = 0, addrcount = 0; addrcount < MAXINADDRS; addrcount++) {
 		while (isspace((unsigned char)**src) || (**src == ',')) {
 			(*src)++;
 		}
 		if (!**src) {			/* Quit if nothing more */
 			break;
 		}
-		if (prs_inetaddr(src, &(address1->s_addr)) < 0) {
+		if (prs_inetaddr(src, [address].s_addr) < 0) {
 			break;
 		}
-		address1++;/* Point to next address slot */
+		address++;/* Point to next address slot */
 	}
 	if (addrcount < 1) {
 		result = NULL;
@@ -1608,13 +1606,8 @@ get_addresses(char **src)
 		result = (struct in_addr_list *) smalloc(totalsize);
 		result->linkcount = 1;
 		result->addrcount = addrcount;
-		address1 = tmpaddrlist;
-		address2 = result->addr;
-		for (; addrcount > 0; addrcount--) {
-			address2->s_addr = address1->s_addr;
-			address1++;
-			address2++;
-		}
+		for (address = 0; address < addrcount; ++address)
+			result->addr[address] = tmpaddrlist[address];
 	}
 	return result;
 }



CVS commit: src/usr.sbin/bootp/common

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:18:22 UTC 2017

Modified Files:
src/usr.sbin/bootp/common: readfile.c

Log Message:
Avoid access to unaligned data.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/bootp/common/readfile.c

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



CVS commit: src/sys

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:17:34 UTC 2017

Modified Files:
src/sys/ddb: db_command.c
src/sys/kern: vfs_subr.c
src/sys/sys: vnode.h

Log Message:
Add ddb command to find a vnode by the address of its lock.
This makes it much easier to convert lockstat traces into understandable
data.


To generate a diff of this commit:
cvs rdiff -u -r1.147 -r1.148 src/sys/ddb/db_command.c
cvs rdiff -u -r1.457 -r1.458 src/sys/kern/vfs_subr.c
cvs rdiff -u -r1.272 -r1.273 src/sys/sys/vnode.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/ddb/db_command.c
diff -u src/sys/ddb/db_command.c:1.147 src/sys/ddb/db_command.c:1.148
--- src/sys/ddb/db_command.c:1.147	Wed Apr 13 00:47:02 2016
+++ src/sys/ddb/db_command.c	Wed Jan 11 12:17:34 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: db_command.c,v 1.147 2016/04/13 00:47:02 ozaki-r Exp $	*/
+/*	$NetBSD: db_command.c,v 1.148 2017/01/11 12:17:34 joerg Exp $	*/
 
 /*
  * Copyright (c) 1996, 1997, 1998, 1999, 2002, 2009 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.147 2016/04/13 00:47:02 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.148 2017/01/11 12:17:34 joerg Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_aio.h"
@@ -209,6 +209,8 @@ static void	db_uvmexp_print_cmd(db_expr_
 static void	db_kernhist_print_cmd(db_expr_t, bool, db_expr_t, const char *);
 #endif
 static void	db_vnode_print_cmd(db_expr_t, bool, db_expr_t, const char *);
+static void	db_vnode_lock_print_cmd(db_expr_t, bool, db_expr_t,
+		const char *);
 static void	db_vmem_print_cmd(db_expr_t, bool, db_expr_t, const char *);
 
 static const struct db_command db_show_cmds[] = {
@@ -282,6 +284,9 @@ static const struct db_command db_show_c
 #endif
 	{ DDB_ADD_CMD("vnode",	db_vnode_print_cmd,	0,
 	"Print the vnode at address.", "[/f] address",NULL) },
+	{ DDB_ADD_CMD("vnode_lock",	db_vnode_lock_print_cmd,	0,
+	"Print the vnode having that address as v_lock.",
+	"[/f] address",NULL) },
 	{ DDB_ADD_CMD("vmem", db_vmem_print_cmd,	0,
 	"Print the vmem usage.", "[/a] address", NULL) },
 	{ DDB_ADD_CMD("vmems", db_show_all_vmems,	0,
@@ -1116,6 +1121,21 @@ db_vnode_print_cmd(db_expr_t addr, bool 
 
 /*ARGSUSED*/
 static void
+db_vnode_lock_print_cmd(db_expr_t addr, bool have_addr,
+db_expr_t count, const char *modif)
+{
+#ifdef _KERNEL /* XXX CRASH(8) */
+	bool full = false;
+
+	if (modif[0] == 'f')
+		full = true;
+
+	vfs_vnode_lock_print((struct vnode *)(uintptr_t) addr, full, db_printf);
+#endif
+}
+
+/*ARGSUSED*/
+static void
 db_vmem_print_cmd(db_expr_t addr, bool have_addr,
 db_expr_t count, const char *modif)
 {

Index: src/sys/kern/vfs_subr.c
diff -u src/sys/kern/vfs_subr.c:1.457 src/sys/kern/vfs_subr.c:1.458
--- src/sys/kern/vfs_subr.c:1.457	Wed Jan 11 09:08:58 2017
+++ src/sys/kern/vfs_subr.c	Wed Jan 11 12:17:34 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_subr.c,v 1.457 2017/01/11 09:08:58 hannken Exp $	*/
+/*	$NetBSD: vfs_subr.c,v 1.458 2017/01/11 12:17:34 joerg Exp $	*/
 
 /*-
  * Copyright (c) 1997, 1998, 2004, 2005, 2007, 2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.457 2017/01/11 09:08:58 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.458 2017/01/11 12:17:34 joerg Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -1540,6 +1540,21 @@ vfs_vnode_print(struct vnode *vp, int fu
 }
 
 void
+vfs_vnode_lock_print(void *vlock, int full, void (*pr)(const char *, ...))
+{
+	struct mount *mp;
+	struct vnode *vp;
+
+	TAILQ_FOREACH(mp, , mnt_list) {
+		TAILQ_FOREACH(vp, >mnt_vnodelist, v_mntvnodes) {
+			if (>v_lock != vlock)
+continue;
+			vfs_vnode_print(vp, full, pr);
+		}
+	}
+}
+
+void
 vfs_mount_print(struct mount *mp, int full, void (*pr)(const char *, ...))
 {
 	char sbuf[256];

Index: src/sys/sys/vnode.h
diff -u src/sys/sys/vnode.h:1.272 src/sys/sys/vnode.h:1.273
--- src/sys/sys/vnode.h:1.272	Wed Jan 11 09:08:59 2017
+++ src/sys/sys/vnode.h	Wed Jan 11 12:17:34 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: vnode.h,v 1.272 2017/01/11 09:08:59 hannken Exp $	*/
+/*	$NetBSD: vnode.h,v 1.273 2017/01/11 12:17:34 joerg Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -569,6 +569,8 @@ void	vfs_timestamp(struct timespec *);
 #if defined(DDB) || defined(DEBUGPRINT)
 void	vfs_vnode_print(struct vnode *, int, void (*)(const char *, ...)
 __printflike(1, 2));
+void	vfs_vnode_lock_print(void *, int, void (*)(const char *, ...)
+__printflike(1, 2));
 void	vfs_mount_print(struct mount *, int, void (*)(const char *, ...)
 __printflike(1, 2));
 #endif /* DDB */



CVS commit: src/sys

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:17:34 UTC 2017

Modified Files:
src/sys/ddb: db_command.c
src/sys/kern: vfs_subr.c
src/sys/sys: vnode.h

Log Message:
Add ddb command to find a vnode by the address of its lock.
This makes it much easier to convert lockstat traces into understandable
data.


To generate a diff of this commit:
cvs rdiff -u -r1.147 -r1.148 src/sys/ddb/db_command.c
cvs rdiff -u -r1.457 -r1.458 src/sys/kern/vfs_subr.c
cvs rdiff -u -r1.272 -r1.273 src/sys/sys/vnode.h

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



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

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:14:32 UTC 2017

Modified Files:
src/sys/arch/sparc/sparc: db_disasm.c

Log Message:
Don't cast the result of abs() to int, but the argument.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/sparc/sparc/db_disasm.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/sparc/sparc/db_disasm.c
diff -u src/sys/arch/sparc/sparc/db_disasm.c:1.21 src/sys/arch/sparc/sparc/db_disasm.c:1.22
--- src/sys/arch/sparc/sparc/db_disasm.c:1.21	Sun Oct  4 08:16:13 2015
+++ src/sys/arch/sparc/sparc/db_disasm.c	Wed Jan 11 12:14:32 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: db_disasm.c,v 1.21 2015/10/04 08:16:13 joerg Exp $ */
+/*	$NetBSD: db_disasm.c,v 1.22 2017/01/11 12:14:32 joerg Exp $ */
 
 /*
  * Copyright (c) 1994 David S. Miller, da...@nadzieja.rutgers.edu
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.21 2015/10/04 08:16:13 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.22 2017/01/11 12:14:32 joerg Exp $");
 
 #include 
 #include 
@@ -995,12 +995,12 @@ db_disasm(vaddr_t loc, bool altfmt)
 		case 'i':
 			/* simm13 -- signed */
 			val = SIGNEX(insn, 13);
-			db_printf("%s0x%x", SIGN(val), (int)abs(val));
+			db_printf("%s0x%x", SIGN(val), abs((int)val));
 			break;
 		case 'j':
 			/* simm11 -- signed */
 			val = SIGNEX(insn, 11);
-			db_printf("%s0x%x", SIGN(val), (int)abs(val));
+			db_printf("%s0x%x", SIGN(val), abs((int)val));
 			break;
 		case 'l':
 			val = (((insn>>20)&0x3)<<13)|(insn & 0x1fff);
@@ -1043,7 +1043,7 @@ db_disasm(vaddr_t loc, bool altfmt)
 			db_printf("[%%%s %c 0x%x]",
 regs[((insn >> 14) & 0x1f)],
 (int)((val<0)?'-':'+'),
-(int)abs(val));
+abs((int)val));
 			if (*f_ptr == '8')
 db_printf(" %%asi");
 			break;



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

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:14:32 UTC 2017

Modified Files:
src/sys/arch/sparc/sparc: db_disasm.c

Log Message:
Don't cast the result of abs() to int, but the argument.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/sparc/sparc/db_disasm.c

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



CVS commit: src/sbin/ping

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:13:52 UTC 2017

Modified Files:
src/sbin/ping: ping.c

Log Message:
Use an explicitly aligned buffer for ip.


To generate a diff of this commit:
cvs rdiff -u -r1.114 -r1.115 src/sbin/ping/ping.c

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



CVS commit: src/sbin/ping

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:13:52 UTC 2017

Modified Files:
src/sbin/ping: ping.c

Log Message:
Use an explicitly aligned buffer for ip.


To generate a diff of this commit:
cvs rdiff -u -r1.114 -r1.115 src/sbin/ping/ping.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/ping/ping.c
diff -u src/sbin/ping/ping.c:1.114 src/sbin/ping/ping.c:1.115
--- src/sbin/ping/ping.c:1.114	Sun Dec 18 01:19:34 2016
+++ src/sbin/ping/ping.c	Wed Jan 11 12:13:52 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: ping.c,v 1.114 2016/12/18 01:19:34 dholland Exp $	*/
+/*	$NetBSD: ping.c,v 1.115 2017/01/11 12:13:52 joerg Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -58,7 +58,7 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: ping.c,v 1.114 2016/12/18 01:19:34 dholland Exp $");
+__RCSID("$NetBSD: ping.c,v 1.115 2017/01/11 12:13:52 joerg Exp $");
 #endif
 
 #include 
@@ -1781,7 +1781,8 @@ pr_iph(struct icmp *icp,
 {
 	int	hlen;
 	u_char	*cp;
-	struct ip ipb, *ip = 
+	struct ip __aligned(4) ipb;
+	struct ip *ip = 
 
 	(void) memcpy(ip, icp->icmp_data, sizeof(*ip));
 



CVS commit: src/sys/fs/tmpfs

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:12:32 UTC 2017

Modified Files:
src/sys/fs/tmpfs: tmpfs_vnops.c

Log Message:
Remove RO check in tmpfs_putpages for now, the syncer doesn't like the
error code.


To generate a diff of this commit:
cvs rdiff -u -r1.128 -r1.129 src/sys/fs/tmpfs/tmpfs_vnops.c

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

Modified files:

Index: src/sys/fs/tmpfs/tmpfs_vnops.c
diff -u src/sys/fs/tmpfs/tmpfs_vnops.c:1.128 src/sys/fs/tmpfs/tmpfs_vnops.c:1.129
--- src/sys/fs/tmpfs/tmpfs_vnops.c:1.128	Sat Aug 20 12:37:08 2016
+++ src/sys/fs/tmpfs/tmpfs_vnops.c	Wed Jan 11 12:12:32 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: tmpfs_vnops.c,v 1.128 2016/08/20 12:37:08 hannken Exp $	*/
+/*	$NetBSD: tmpfs_vnops.c,v 1.129 2017/01/11 12:12:32 joerg Exp $	*/
 
 /*
  * Copyright (c) 2005, 2006, 2007 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: tmpfs_vnops.c,v 1.128 2016/08/20 12:37:08 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tmpfs_vnops.c,v 1.129 2017/01/11 12:12:32 joerg Exp $");
 
 #include 
 #include 
@@ -1246,11 +1246,6 @@ tmpfs_putpages(void *v)
 		return 0;
 	}
 
-	if ((vp->v_mount->mnt_flag & MNT_RDONLY) != 0) {
-		mutex_exit(vp->v_interlock);
-		return EROFS;
-	}
-
 	node = VP_TO_TMPFS_NODE(vp);
 	uobj = node->tn_spec.tn_reg.tn_aobj;
 



CVS commit: src/sys/fs/tmpfs

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:12:32 UTC 2017

Modified Files:
src/sys/fs/tmpfs: tmpfs_vnops.c

Log Message:
Remove RO check in tmpfs_putpages for now, the syncer doesn't like the
error code.


To generate a diff of this commit:
cvs rdiff -u -r1.128 -r1.129 src/sys/fs/tmpfs/tmpfs_vnops.c

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



CVS commit: src/etc/mtree

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:10:48 UTC 2017

Modified Files:
src/etc/mtree: NetBSD.dist.base

Log Message:
Update Clang header directory.


To generate a diff of this commit:
cvs rdiff -u -r1.155 -r1.156 src/etc/mtree/NetBSD.dist.base

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

Modified files:

Index: src/etc/mtree/NetBSD.dist.base
diff -u src/etc/mtree/NetBSD.dist.base:1.155 src/etc/mtree/NetBSD.dist.base:1.156
--- src/etc/mtree/NetBSD.dist.base:1.155	Sat Jan  7 20:00:07 2017
+++ src/etc/mtree/NetBSD.dist.base	Wed Jan 11 12:10:48 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: NetBSD.dist.base,v 1.155 2017/01/07 20:00:07 christos Exp $
+#	$NetBSD: NetBSD.dist.base,v 1.156 2017/01/11 12:10:48 joerg Exp $
 #	@(#)4.4BSD.dist	8.1 (Berkeley) 6/13/93
 
 # Do not customize this file as it may be overwritten on upgrades.
@@ -106,7 +106,7 @@
 ./usr/include/c++
 ./usr/include/c++/experimental
 ./usr/include/c++/ext
-./usr/include/clang-3.8
+./usr/include/clang-4.0
 ./usr/include/crypto
 ./usr/include/dev
 ./usr/include/dev/apm



CVS commit: src

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:10:26 UTC 2017

Modified Files:
src/external/bsd/libc++/lib: Makefile
src/tests/lib/libc/sync: cpp_atomic_ops_linkable.cc

Log Message:
Remove LLVM atomic hacks for Sparc.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/bsd/libc++/lib/Makefile
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/sync/cpp_atomic_ops_linkable.cc

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

Modified files:

Index: src/external/bsd/libc++/lib/Makefile
diff -u src/external/bsd/libc++/lib/Makefile:1.9 src/external/bsd/libc++/lib/Makefile:1.10
--- src/external/bsd/libc++/lib/Makefile:1.9	Sat Feb 27 21:42:14 2016
+++ src/external/bsd/libc++/lib/Makefile	Wed Jan 11 12:10:26 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.9 2016/02/27 21:42:14 joerg Exp $
+#	$NetBSD: Makefile,v 1.10 2017/01/11 12:10:26 joerg Exp $
 
 LIB=		c++
 WARNS=		4
@@ -46,8 +46,4 @@ CWARNFLAGS.clang+=	-Wno-error=implicit-e
 
 LDFLAGS+=	-Wl,-z,defs
 
-.if ${MACHINE_ARCH} == "sparc" || ${COMMON_MACHINE_ARCH:U} == "sparc"
-CXXFLAGS+=	${${ACTIVE_CC} == "clang":? -Wa,-Av8plus  :}
-.endif
-
 .include 

Index: src/tests/lib/libc/sync/cpp_atomic_ops_linkable.cc
diff -u src/tests/lib/libc/sync/cpp_atomic_ops_linkable.cc:1.4 src/tests/lib/libc/sync/cpp_atomic_ops_linkable.cc:1.5
--- src/tests/lib/libc/sync/cpp_atomic_ops_linkable.cc:1.4	Sat Feb 27 18:50:39 2016
+++ src/tests/lib/libc/sync/cpp_atomic_ops_linkable.cc	Wed Jan 11 12:10:26 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: cpp_atomic_ops_linkable.cc,v 1.4 2016/02/27 18:50:39 joerg Exp $ */
+/* $NetBSD: cpp_atomic_ops_linkable.cc,v 1.5 2017/01/11 12:10:26 joerg Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -58,19 +58,13 @@ private:
   volatile std::atomic m_val;
 };
 
-#if defined(__clang__) && defined(__sparc64__)
-#define NO_SHORT_ATOMICS
-#endif
-
 int main(int argc, char **argv)
 {
-#ifndef NO_SHORT_ATOMICS
   ATest();
   ATest();
   ATest();
   ATest();
   ATest();
-#endif
   ATest();
   ATest();
   ATest();
@@ -79,29 +73,23 @@ int main(int argc, char **argv)
   ATest();
   ATest();
 #endif
-#ifndef NO_SHORT_ATOMICS
   ATest();
-#endif
   ATest();
   ATest();
-#ifndef NO_SHORT_ATOMICS
   ATest();
   ATest();
   ATest();
   ATest();
-#endif
   ATest();
   ATest();
 #ifdef __HAVE_ATOMIC64_OPS
   ATest();
   ATest();
 #endif
-#ifndef NO_SHORT_ATOMICS
   ATest();
   ATest();
   ATest();
   ATest();
-#endif
   ATest();
   ATest();
 #ifdef __HAVE_ATOMIC64_OPS
@@ -115,5 +103,5 @@ int main(int argc, char **argv)
 #ifdef __HAVE_ATOMIC64_OPS
   ATest();
   ATest();
-#endif /* NO_SHORT_ATOMICS */
+#endif
 }



CVS commit: src

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:10:26 UTC 2017

Modified Files:
src/external/bsd/libc++/lib: Makefile
src/tests/lib/libc/sync: cpp_atomic_ops_linkable.cc

Log Message:
Remove LLVM atomic hacks for Sparc.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/bsd/libc++/lib/Makefile
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/sync/cpp_atomic_ops_linkable.cc

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



CVS commit: src/tools

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:08:35 UTC 2017

Modified Files:
src/tools: Makefile
src/tools/llvm: Makefile
Added Files:
src/tools/llvm-lib/libLLVMDebugInfoCodeView: Makefile
src/tools/llvm-lib/libLLVMDebugInfoMSF: Makefile
src/tools/llvm-lib/libLLVMDemangle: Makefile
src/tools/llvm-lib/libLLVMGlobalISel: Makefile
src/tools/llvm-lib/libLLVMLTO: Makefile
src/tools/llvm-lib/libLLVMPasses: Makefile
src/tools/llvm-lib/libLLVMProfileDataCoverage: Makefile
src/tools/llvm-lib/libLLVMTransformsCoroutines: Makefile
src/tools/llvm-lib/libclangASTMatchers: Makefile

Log Message:
Sync tools build glue with LLVM pre-4.0.0.


To generate a diff of this commit:
cvs rdiff -u -r1.186 -r1.187 src/tools/Makefile
cvs rdiff -u -r1.20 -r1.21 src/tools/llvm/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMDebugInfoCodeView/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMDebugInfoMSF/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMDemangle/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMGlobalISel/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMLTO/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMPasses/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMProfileDataCoverage/Makefile
cvs rdiff -u -r0 -r1.1 \
src/tools/llvm-lib/libLLVMTransformsCoroutines/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libclangASTMatchers/Makefile

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

Modified files:

Index: src/tools/Makefile
diff -u src/tools/Makefile:1.186 src/tools/Makefile:1.187
--- src/tools/Makefile:1.186	Sun Jan 24 22:49:08 2016
+++ src/tools/Makefile	Wed Jan 11 12:08:34 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.186 2016/01/24 22:49:08 christos Exp $
+#	$NetBSD: Makefile,v 1.187 2017/01/11 12:08:34 joerg Exp $
 
 .include 
 .include 
@@ -125,7 +125,7 @@ SUBDIR+= stat .WAIT config
 .if ${MKLLVM} != "no"
 SUBDIR+= \
 	llvm .WAIT \
-	llvm-lib/libLLVMSupport llvm-lib/libLLVMTableGen .WAIT \
+	llvm-lib/libLLVMDemangle llvm-lib/libLLVMSupport llvm-lib/libLLVMTableGen .WAIT \
 	llvm-tblgen llvm-clang-tblgen .WAIT \
 	llvm-include .WAIT \
 	llvm-lib .WAIT \

Index: src/tools/llvm/Makefile
diff -u src/tools/llvm/Makefile:1.20 src/tools/llvm/Makefile:1.21
--- src/tools/llvm/Makefile:1.20	Thu Mar  5 10:22:25 2015
+++ src/tools/llvm/Makefile	Wed Jan 11 12:08:34 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.20 2015/03/05 10:22:25 joerg Exp $
+#	$NetBSD: Makefile,v 1.21 2017/01/11 12:08:34 joerg Exp $
 
 .include 
 
@@ -15,7 +15,7 @@ config/config.status: ${LLVM_SRCDIR}/con
 	mkdir -p config
 	printf '#!/bin/sh\necho 2.7.3' > config/python
 	chmod 755 config/python
-	cd config && ${HOST_SH} ${LLVM_SRCDIR}/configure ${LLVM_CONFIGURE_ARGS} \
+	cd config && ${HOST_SH} ${CONFIG_DIR}/configure ${LLVM_CONFIGURE_ARGS} \
 	--enable-optimized CC=${HOST_CC:Q} CXX=${HOST_CXX:Q} \
 	--with-python=${.OBJDIR}/config/python
 # --disable-assertions

Added files:

Index: src/tools/llvm-lib/libLLVMDebugInfoCodeView/Makefile
diff -u /dev/null src/tools/llvm-lib/libLLVMDebugInfoCodeView/Makefile:1.1
--- /dev/null	Wed Jan 11 12:08:35 2017
+++ src/tools/llvm-lib/libLLVMDebugInfoCodeView/Makefile	Wed Jan 11 12:08:35 2017
@@ -0,0 +1,3 @@
+#	$NetBSD: Makefile,v 1.1 2017/01/11 12:08:35 joerg Exp $
+
+.include 

Index: src/tools/llvm-lib/libLLVMDebugInfoMSF/Makefile
diff -u /dev/null src/tools/llvm-lib/libLLVMDebugInfoMSF/Makefile:1.1
--- /dev/null	Wed Jan 11 12:08:35 2017
+++ src/tools/llvm-lib/libLLVMDebugInfoMSF/Makefile	Wed Jan 11 12:08:35 2017
@@ -0,0 +1,3 @@
+#	$NetBSD: Makefile,v 1.1 2017/01/11 12:08:35 joerg Exp $
+
+.include 

Index: src/tools/llvm-lib/libLLVMDemangle/Makefile
diff -u /dev/null src/tools/llvm-lib/libLLVMDemangle/Makefile:1.1
--- /dev/null	Wed Jan 11 12:08:35 2017
+++ src/tools/llvm-lib/libLLVMDemangle/Makefile	Wed Jan 11 12:08:35 2017
@@ -0,0 +1,3 @@
+#	$NetBSD: Makefile,v 1.1 2017/01/11 12:08:35 joerg Exp $
+
+.include 

Index: src/tools/llvm-lib/libLLVMGlobalISel/Makefile
diff -u /dev/null src/tools/llvm-lib/libLLVMGlobalISel/Makefile:1.1
--- /dev/null	Wed Jan 11 12:08:35 2017
+++ src/tools/llvm-lib/libLLVMGlobalISel/Makefile	Wed Jan 11 12:08:35 2017
@@ -0,0 +1,3 @@
+#	$NetBSD: Makefile,v 1.1 2017/01/11 12:08:35 joerg Exp $
+
+.include 

Index: src/tools/llvm-lib/libLLVMLTO/Makefile
diff -u /dev/null src/tools/llvm-lib/libLLVMLTO/Makefile:1.1
--- /dev/null	Wed Jan 11 12:08:35 2017
+++ src/tools/llvm-lib/libLLVMLTO/Makefile	Wed Jan 11 12:08:35 2017
@@ -0,0 +1,3 @@
+#	$NetBSD: Makefile,v 1.1 2017/01/11 12:08:35 joerg Exp $
+
+.include 

Index: src/tools/llvm-lib/libLLVMPasses/Makefile
diff -u /dev/null src/tools/llvm-lib/libLLVMPasses/Makefile:1.1
--- /dev/null	Wed Jan 11 12:08:35 2017
+++ src/tools/llvm-lib/libLLVMPasses/Makefile	Wed Jan 11 12:08:35 2017
@@ -0,0 +1,3 @@

CVS commit: src/tools

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:08:35 UTC 2017

Modified Files:
src/tools: Makefile
src/tools/llvm: Makefile
Added Files:
src/tools/llvm-lib/libLLVMDebugInfoCodeView: Makefile
src/tools/llvm-lib/libLLVMDebugInfoMSF: Makefile
src/tools/llvm-lib/libLLVMDemangle: Makefile
src/tools/llvm-lib/libLLVMGlobalISel: Makefile
src/tools/llvm-lib/libLLVMLTO: Makefile
src/tools/llvm-lib/libLLVMPasses: Makefile
src/tools/llvm-lib/libLLVMProfileDataCoverage: Makefile
src/tools/llvm-lib/libLLVMTransformsCoroutines: Makefile
src/tools/llvm-lib/libclangASTMatchers: Makefile

Log Message:
Sync tools build glue with LLVM pre-4.0.0.


To generate a diff of this commit:
cvs rdiff -u -r1.186 -r1.187 src/tools/Makefile
cvs rdiff -u -r1.20 -r1.21 src/tools/llvm/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMDebugInfoCodeView/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMDebugInfoMSF/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMDemangle/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMGlobalISel/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMLTO/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMPasses/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libLLVMProfileDataCoverage/Makefile
cvs rdiff -u -r0 -r1.1 \
src/tools/llvm-lib/libLLVMTransformsCoroutines/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/llvm-lib/libclangASTMatchers/Makefile

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



CVS commit: src

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:02:32 UTC 2017

Modified Files:
src/distrib/sets/lists/base: mi
src/distrib/sets/lists/comp: ad.arm ad.powerpc md.amd64 md.i386 mi
src/external/bsd/llvm: Makefile.inc
src/external/bsd/llvm/bin: Makefile
src/external/bsd/llvm/bin/bugpoint: Makefile
src/external/bsd/llvm/bin/clang: Makefile
src/external/bsd/llvm/bin/clang-format: Makefile
src/external/bsd/llvm/bin/clang-tblgen: Makefile
src/external/bsd/llvm/bin/llc: Makefile
src/external/bsd/llvm/bin/lld: Makefile
src/external/bsd/llvm/bin/lldb: Makefile
src/external/bsd/llvm/bin/lli: Makefile
src/external/bsd/llvm/bin/llvm-ar: Makefile
src/external/bsd/llvm/bin/llvm-as: Makefile
src/external/bsd/llvm/bin/llvm-bcanalyzer: Makefile
src/external/bsd/llvm/bin/llvm-cov: Makefile
src/external/bsd/llvm/bin/llvm-cxxdump: Makefile
src/external/bsd/llvm/bin/llvm-diff: Makefile
src/external/bsd/llvm/bin/llvm-dis: Makefile
src/external/bsd/llvm/bin/llvm-dwarfdump: Makefile
src/external/bsd/llvm/bin/llvm-dwp: Makefile
src/external/bsd/llvm/bin/llvm-extract: Makefile
src/external/bsd/llvm/bin/llvm-link: Makefile
src/external/bsd/llvm/bin/llvm-mc: Makefile
src/external/bsd/llvm/bin/llvm-mcld: Makefile
src/external/bsd/llvm/bin/llvm-nm: Makefile
src/external/bsd/llvm/bin/llvm-objdump: Makefile
src/external/bsd/llvm/bin/llvm-profdata: Makefile
src/external/bsd/llvm/bin/llvm-readobj: Makefile
src/external/bsd/llvm/bin/llvm-size: Makefile
src/external/bsd/llvm/bin/llvm-symbolizer: Makefile
src/external/bsd/llvm/bin/opt: Makefile
src/external/bsd/llvm/bin/sancov: Makefile
src/external/bsd/llvm/bin/tblgen: Makefile
src/external/bsd/llvm/config/clang/Config: config.h
src/external/bsd/llvm/config/llvm/Config: AsmParsers.def
AsmPrinters.def Disassemblers.def Targets.def config.h.in
llvm-config.h.in
src/external/bsd/llvm/config/llvm/Support: DataTypes.h
src/external/bsd/llvm/include: Makefile
src/external/bsd/llvm/lib: Makefile
src/external/bsd/llvm/lib/libLLVMAArch64CodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMARMCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMAnalysis: Makefile
src/external/bsd/llvm/lib/libLLVMAsmPrinter: Makefile
src/external/bsd/llvm/lib/libLLVMBitReader: Makefile
src/external/bsd/llvm/lib/libLLVMCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMDebugInfoCodeView: Makefile
src/external/bsd/llvm/lib/libLLVMDebugInfoDWARF: Makefile
src/external/bsd/llvm/lib/libLLVMDebugInfoPDB: Makefile
src/external/bsd/llvm/lib/libLLVMIR: Makefile
src/external/bsd/llvm/lib/libLLVMInstrumentation: Makefile
src/external/bsd/llvm/lib/libLLVMLTO: Makefile
src/external/bsd/llvm/lib/libLLVMMC: Makefile
src/external/bsd/llvm/lib/libLLVMMCDisassembler: Makefile
src/external/bsd/llvm/lib/libLLVMMipsCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMObject: Makefile
src/external/bsd/llvm/lib/libLLVMOrc: Makefile
src/external/bsd/llvm/lib/libLLVMPowerPCCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMProfileData: Makefile
src/external/bsd/llvm/lib/libLLVMRuntimeDyld: Makefile
src/external/bsd/llvm/lib/libLLVMScalarOpts: Makefile
src/external/bsd/llvm/lib/libLLVMSelectionDAG: Makefile
src/external/bsd/llvm/lib/libLLVMSparcCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMSupport: Makefile
src/external/bsd/llvm/lib/libLLVMTarget: Makefile
src/external/bsd/llvm/lib/libLLVMTransformsUtils: Makefile
src/external/bsd/llvm/lib/libLLVMVectorize: Makefile
src/external/bsd/llvm/lib/libLLVMX86CodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMX86Disassembler: Makefile
src/external/bsd/llvm/lib/libLLVMX86MCTargetDesc: Makefile
src/external/bsd/llvm/lib/libLLVMipo: Makefile
src/external/bsd/llvm/lib/libclangAnalysis: Makefile
src/external/bsd/llvm/lib/libclangBasic: Makefile
src/external/bsd/llvm/lib/libclangCodeGen: Makefile
src/external/bsd/llvm/lib/libclangDriver: Makefile
src/external/bsd/llvm/lib/libclangFormat: Makefile
src/external/bsd/llvm/lib/libclangIndex: Makefile
src/external/bsd/llvm/lib/libclangStaticAnalyzerCheckers: Makefile
src/external/bsd/llvm/lib/libclangTooling: Makefile
src/external/bsd/llvm/lib/libclangToolingCore: Makefile
Added Files:
src/external/bsd/llvm/bin/llvm-cxxfilt: Makefile
src/external/bsd/llvm/bin/llvm-strings: Makefile
src/external/bsd/llvm/bin/sanstats: Makefile
src/external/bsd/llvm/config/llvm/Config: 

CVS commit: src

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 12:02:32 UTC 2017

Modified Files:
src/distrib/sets/lists/base: mi
src/distrib/sets/lists/comp: ad.arm ad.powerpc md.amd64 md.i386 mi
src/external/bsd/llvm: Makefile.inc
src/external/bsd/llvm/bin: Makefile
src/external/bsd/llvm/bin/bugpoint: Makefile
src/external/bsd/llvm/bin/clang: Makefile
src/external/bsd/llvm/bin/clang-format: Makefile
src/external/bsd/llvm/bin/clang-tblgen: Makefile
src/external/bsd/llvm/bin/llc: Makefile
src/external/bsd/llvm/bin/lld: Makefile
src/external/bsd/llvm/bin/lldb: Makefile
src/external/bsd/llvm/bin/lli: Makefile
src/external/bsd/llvm/bin/llvm-ar: Makefile
src/external/bsd/llvm/bin/llvm-as: Makefile
src/external/bsd/llvm/bin/llvm-bcanalyzer: Makefile
src/external/bsd/llvm/bin/llvm-cov: Makefile
src/external/bsd/llvm/bin/llvm-cxxdump: Makefile
src/external/bsd/llvm/bin/llvm-diff: Makefile
src/external/bsd/llvm/bin/llvm-dis: Makefile
src/external/bsd/llvm/bin/llvm-dwarfdump: Makefile
src/external/bsd/llvm/bin/llvm-dwp: Makefile
src/external/bsd/llvm/bin/llvm-extract: Makefile
src/external/bsd/llvm/bin/llvm-link: Makefile
src/external/bsd/llvm/bin/llvm-mc: Makefile
src/external/bsd/llvm/bin/llvm-mcld: Makefile
src/external/bsd/llvm/bin/llvm-nm: Makefile
src/external/bsd/llvm/bin/llvm-objdump: Makefile
src/external/bsd/llvm/bin/llvm-profdata: Makefile
src/external/bsd/llvm/bin/llvm-readobj: Makefile
src/external/bsd/llvm/bin/llvm-size: Makefile
src/external/bsd/llvm/bin/llvm-symbolizer: Makefile
src/external/bsd/llvm/bin/opt: Makefile
src/external/bsd/llvm/bin/sancov: Makefile
src/external/bsd/llvm/bin/tblgen: Makefile
src/external/bsd/llvm/config/clang/Config: config.h
src/external/bsd/llvm/config/llvm/Config: AsmParsers.def
AsmPrinters.def Disassemblers.def Targets.def config.h.in
llvm-config.h.in
src/external/bsd/llvm/config/llvm/Support: DataTypes.h
src/external/bsd/llvm/include: Makefile
src/external/bsd/llvm/lib: Makefile
src/external/bsd/llvm/lib/libLLVMAArch64CodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMARMCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMAnalysis: Makefile
src/external/bsd/llvm/lib/libLLVMAsmPrinter: Makefile
src/external/bsd/llvm/lib/libLLVMBitReader: Makefile
src/external/bsd/llvm/lib/libLLVMCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMDebugInfoCodeView: Makefile
src/external/bsd/llvm/lib/libLLVMDebugInfoDWARF: Makefile
src/external/bsd/llvm/lib/libLLVMDebugInfoPDB: Makefile
src/external/bsd/llvm/lib/libLLVMIR: Makefile
src/external/bsd/llvm/lib/libLLVMInstrumentation: Makefile
src/external/bsd/llvm/lib/libLLVMLTO: Makefile
src/external/bsd/llvm/lib/libLLVMMC: Makefile
src/external/bsd/llvm/lib/libLLVMMCDisassembler: Makefile
src/external/bsd/llvm/lib/libLLVMMipsCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMObject: Makefile
src/external/bsd/llvm/lib/libLLVMOrc: Makefile
src/external/bsd/llvm/lib/libLLVMPowerPCCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMProfileData: Makefile
src/external/bsd/llvm/lib/libLLVMRuntimeDyld: Makefile
src/external/bsd/llvm/lib/libLLVMScalarOpts: Makefile
src/external/bsd/llvm/lib/libLLVMSelectionDAG: Makefile
src/external/bsd/llvm/lib/libLLVMSparcCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMSupport: Makefile
src/external/bsd/llvm/lib/libLLVMTarget: Makefile
src/external/bsd/llvm/lib/libLLVMTransformsUtils: Makefile
src/external/bsd/llvm/lib/libLLVMVectorize: Makefile
src/external/bsd/llvm/lib/libLLVMX86CodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMX86Disassembler: Makefile
src/external/bsd/llvm/lib/libLLVMX86MCTargetDesc: Makefile
src/external/bsd/llvm/lib/libLLVMipo: Makefile
src/external/bsd/llvm/lib/libclangAnalysis: Makefile
src/external/bsd/llvm/lib/libclangBasic: Makefile
src/external/bsd/llvm/lib/libclangCodeGen: Makefile
src/external/bsd/llvm/lib/libclangDriver: Makefile
src/external/bsd/llvm/lib/libclangFormat: Makefile
src/external/bsd/llvm/lib/libclangIndex: Makefile
src/external/bsd/llvm/lib/libclangStaticAnalyzerCheckers: Makefile
src/external/bsd/llvm/lib/libclangTooling: Makefile
src/external/bsd/llvm/lib/libclangToolingCore: Makefile
Added Files:
src/external/bsd/llvm/bin/llvm-cxxfilt: Makefile
src/external/bsd/llvm/bin/llvm-strings: Makefile
src/external/bsd/llvm/bin/sanstats: Makefile
src/external/bsd/llvm/config/llvm/Config: 

CVS commit: src/share/man/man7

2017-01-11 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Wed Jan 11 11:53:07 UTC 2017

Modified Files:
src/share/man/man7: sysctl.7

Log Message:
New sentence, new line.

Remove trailing whitespace.


To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 src/share/man/man7/sysctl.7

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



CVS commit: src/share/man/man7

2017-01-11 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Wed Jan 11 11:53:07 UTC 2017

Modified Files:
src/share/man/man7: sysctl.7

Log Message:
New sentence, new line.

Remove trailing whitespace.


To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 src/share/man/man7/sysctl.7

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

Modified files:

Index: src/share/man/man7/sysctl.7
diff -u src/share/man/man7/sysctl.7:1.108 src/share/man/man7/sysctl.7:1.109
--- src/share/man/man7/sysctl.7:1.108	Mon Jan  9 20:08:26 2017
+++ src/share/man/man7/sysctl.7	Wed Jan 11 11:53:07 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: sysctl.7,v 1.108 2017/01/09 20:08:26 hubertf Exp $
+.\"	$NetBSD: sysctl.7,v 1.109 2017/01/11 11:53:07 wiz Exp $
 .\"
 .\" Copyright (c) 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -1070,8 +1070,8 @@ distributed on and moved between CPUs.
 .It kern.sched.kpreempt_pri	   integer	 yes
 .It kern.sched.upreempt_pri	   integer	 yes
 .It kern.sched.maxts	   integer	 yes
-.It kern.sched.mints	   integer	 yes 
-.It kern.sched.name	   string	 no 
+.It kern.sched.mints	   integer	 yes
+.It kern.sched.name	   string	 no
 .It kern.sched.rtts	   integer	 no
 .It kern.sched.pri_min	   integer	 no
 .It kern.sched.pri_max	   integer	 no
@@ -1081,34 +1081,34 @@ The variables are as follows:
 .Bl -tag -width "123456"
 .It Li kern.sched.cacheht_time ( dynamic )
 Cache hotness time in which a LWP is kept on one particular CPU
-and not moved to another CPU. This reduces the overhead of flushing
-and reloading caches.  
+and not moved to another CPU.
+This reduces the overhead of flushing and reloading caches.
 Defaults to 3ms.
-Needs to be given in 
+Needs to be given in
 .Dq hz
 units, see
 .Xr mstohz 9 .
 .It Li kern.sched.balance_period ( dynamic )
 Interval at which the CPU queues are checked for re-balancing.
 Defaults to 300ms.
-Needs to be given in 
+Needs to be given in
 .Dq hz
 units, see
 .Xr mstohz 9 .
 .It Li kern.sched.average_weight ( dynamic )
 Can be used to influence how likely LWPs are to be migrated from
-one CPU's queue of LWPs that are ready to run to a different, idle CPU. 
+one CPU's queue of LWPs that are ready to run to a different, idle CPU.
 The value gives the percentage for weighting the average count of
 migratable threads from the past against the current number of
-migratable threads. 
-A small value gives more weight to the past, a larger values more weight 
+migratable threads.
+A small value gives more weight to the past, a larger values more weight
 on the current situation.
-Defaults to 50 and must be between 0 and 100. 
+Defaults to 50 and must be between 0 and 100.
 .It Li kern.sched.min_catch ( dynamic )
 Minimum count of migratable (runable) threads for catching (stealing)
 from another CPU.
 Defaults to 1 but can be increased to decrease chance of thread
-migration between CPUs. 
+migration between CPUs.
 .It Li kern.sched.timesoftints ( dynamic )
 Enable tracking of CPU time for soft interrupts
 as part of a LWP's real execution time.
@@ -1125,7 +1125,7 @@ Scheduler specific maximal time quantum 
 Must be set to a value larger than
 .Dq mints
 and between 10 and
-.Dq hz 
+.Dq hz
 as given by the
 .Dv kern.clockrate
 sysctl.
@@ -1135,13 +1135,13 @@ Scheduler specific minimal time quantum 
 Must be set to a value smaller than
 .Dq maxts
 and between 1 and
-.Dq hz 
+.Dq hz
 as given by the
 .Dq kern.clockrate
 sysctl.
 Provided by the M2 scheduler.
 .It Li kern.sched.name ( dynamic )
-Scheduler name. 
+Scheduler name.
 Provided both by the M2 and the 4BSD scheduler.
 .It Li kern.sched.rtts ( dynamic )
 Fixed scheduler specific round-robin time quantum in milliseconds.



CVS commit: src/sys/external/bsd/common/include/linux

2017-01-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Jan 11 11:42:09 UTC 2017

Modified Files:
src/sys/external/bsd/common/include/linux: completion.h

Log Message:
Add a reinit_completion function


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
src/sys/external/bsd/common/include/linux/completion.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/external/bsd/common/include/linux/completion.h
diff -u src/sys/external/bsd/common/include/linux/completion.h:1.5 src/sys/external/bsd/common/include/linux/completion.h:1.6
--- src/sys/external/bsd/common/include/linux/completion.h:1.5	Tue Sep  2 09:54:20 2014
+++ src/sys/external/bsd/common/include/linux/completion.h	Wed Jan 11 11:42:09 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: completion.h,v 1.5 2014/09/02 09:54:20 jmcneill Exp $	*/
+/*	$NetBSD: completion.h,v 1.6 2017/01/11 11:42:09 skrll Exp $	*/
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -87,6 +87,16 @@ init_completion(struct completion *compl
 }
 
 /*
+ * re-initialize a completion object.
+ */
+static inline void
+reinit_completion(struct completion *completion)
+{
+
+	completion->c_done = 0;
+}
+
+/*
  * Destroy a completion object.
  */
 static inline void



CVS commit: src/sys/external/bsd/common/include/linux

2017-01-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Jan 11 11:42:09 UTC 2017

Modified Files:
src/sys/external/bsd/common/include/linux: completion.h

Log Message:
Add a reinit_completion function


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
src/sys/external/bsd/common/include/linux/completion.h

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



CVS commit: src/external/bsd/llvm/dist/llvm-configure

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 11:19:25 UTC 2017

Added Files:
src/external/bsd/llvm/dist/llvm-configure: configure run-autoconf
src/external/bsd/llvm/dist/llvm-configure/autoconf: AutoRegen.sh
ExportMap.map LICENSE.TXT README.TXT aclocal.m4 config.guess
config.sub configure.ac install-sh missing mkinstalldirs
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4: build_exeext.m4
c_printf_a.m4 check_gnu_make.m4 config_makefile.m4
config_project.m4 cxx_flag_check.m4 define_subst.m4
find_std_program.m4 func_mmap_file.m4 header_mmap_anonymous.m4
huge_val.m4 link_options.m4 linux_mixed_64_32.m4
need_dev_zero_for_mmap.m4 sanity_check.m4 single_cxx_check.m4
visibility_inlines_hidden.m4
src/external/bsd/llvm/dist/llvm-configure/include/clang/Config:
config.h.in
src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config:
AsmParsers.def.in AsmPrinters.def.in Disassemblers.def.in
Targets.def.in abi-breaking.h.in config.h.in llvm-config.h.in
src/external/bsd/llvm/dist/llvm-configure/include/llvm/Support:
DataTypes.h.in

Log Message:
Add slightly cut down version of the final version of autoconf from
before the removal, updated to match current cmake.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/bsd/llvm/dist/llvm-configure/configure \
src/external/bsd/llvm/dist/llvm-configure/run-autoconf
cvs rdiff -u -r0 -r1.1 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/AutoRegen.sh \
src/external/bsd/llvm/dist/llvm-configure/autoconf/ExportMap.map \
src/external/bsd/llvm/dist/llvm-configure/autoconf/LICENSE.TXT \
src/external/bsd/llvm/dist/llvm-configure/autoconf/README.TXT \
src/external/bsd/llvm/dist/llvm-configure/autoconf/aclocal.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/config.guess \
src/external/bsd/llvm/dist/llvm-configure/autoconf/config.sub \
src/external/bsd/llvm/dist/llvm-configure/autoconf/configure.ac \
src/external/bsd/llvm/dist/llvm-configure/autoconf/install-sh \
src/external/bsd/llvm/dist/llvm-configure/autoconf/missing \
src/external/bsd/llvm/dist/llvm-configure/autoconf/mkinstalldirs
cvs rdiff -u -r0 -r1.1 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/build_exeext.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/c_printf_a.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/check_gnu_make.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/config_makefile.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/config_project.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/cxx_flag_check.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/define_subst.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/find_std_program.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/func_mmap_file.m4 \

src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/header_mmap_anonymous.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/huge_val.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/link_options.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/linux_mixed_64_32.m4 \

src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/need_dev_zero_for_mmap.m4 
\
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/sanity_check.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/single_cxx_check.m4 \

src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/visibility_inlines_hidden.m4
cvs rdiff -u -r0 -r1.1 \
src/external/bsd/llvm/dist/llvm-configure/include/clang/Config/config.h.in
cvs rdiff -u -r0 -r1.1 \

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/AsmParsers.def.in 
\

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/AsmPrinters.def.in
 \

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/Disassemblers.def.in
 \

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/Targets.def.in \

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/abi-breaking.h.in 
\
src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/config.h.in \

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/llvm-config.h.in
cvs rdiff -u -r0 -r1.1 \

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Support/DataTypes.h.in

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



CVS commit: [LLVM] src/external/bsd/llvm/dist/llvm

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 11:11:07 UTC 2017

Removed Files:
src/external/bsd/llvm/dist/llvm [LLVM]: Makefile Makefile.common
Makefile.config.in Makefile.rules
src/external/bsd/llvm/dist/llvm/autoconf [LLVM]: AutoRegen.sh
ExportMap.map LICENSE.TXT README.TXT config.guess config.sub
configure.ac install-sh missing mkinstalldirs
src/external/bsd/llvm/dist/llvm/autoconf/m4 [LLVM]: build_exeext.m4
c_printf_a.m4 check_gnu_make.m4 config_makefile.m4
config_project.m4 cxx_flag_check.m4 define_subst.m4
find_std_program.m4 func_mmap_file.m4 header_mmap_anonymous.m4
huge_val.m4 link_options.m4 linux_mixed_64_32.m4
need_dev_zero_for_mmap.m4 sanity_check.m4 single_cxx_check.m4
visibility_inlines_hidden.m4
src/external/bsd/llvm/dist/llvm/bindings [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml [LLVM]: Makefile
Makefile.ocaml
src/external/bsd/llvm/dist/llvm/bindings/ocaml/all_backends [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/analysis [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/backends [LLVM]:
Makefile Makefile.common
src/external/bsd/llvm/dist/llvm/bindings/ocaml/bitreader [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/bitwriter [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/executionengine [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/irreader [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/linker [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/llvm [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/target [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/transforms [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/transforms/ipo [LLVM]:
Makefile

src/external/bsd/llvm/dist/llvm/bindings/ocaml/transforms/passmgr_builder 
[LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/transforms/scalar_opts 
[LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/transforms/utils [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/transforms/vectorize 
[LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/cmake [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/cmake/modules [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/docs [LLVM]: BitSets.rst
BuildingLLVMWithAutotools.rst Makefile MakefileGuide.rst
doxygen.intro
src/external/bsd/llvm/dist/llvm/docs/tutorial [LLVM]: LangImpl1.rst
LangImpl2.rst LangImpl3.rst LangImpl4.rst LangImpl5-cfg.png
LangImpl5.rst LangImpl6.rst LangImpl7.rst LangImpl8.rst
LangImpl9.rst
src/external/bsd/llvm/dist/llvm/examples [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/examples/BrainF [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/examples/ExceptionDemo [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/examples/Fibonacci [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/examples/HowToUseJIT [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/Chapter2 [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/Chapter3 [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/Chapter4 [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/Chapter5 [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/Chapter6 [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/Chapter7 [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/Chapter8 [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/cached 
[LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/complete 
[LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/initial 
[LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/lazy [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/Orc [LLVM]:
CMakeLists.txt
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/Orc/fully_lazy 
[LLVM]:
CMakeLists.txt Makefile README.txt toy.cpp

CVS commit: [LLVM] src/external/bsd/llvm/dist/llvm

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 11:11:07 UTC 2017

Removed Files:
src/external/bsd/llvm/dist/llvm [LLVM]: Makefile Makefile.common
Makefile.config.in Makefile.rules
src/external/bsd/llvm/dist/llvm/autoconf [LLVM]: AutoRegen.sh
ExportMap.map LICENSE.TXT README.TXT config.guess config.sub
configure.ac install-sh missing mkinstalldirs
src/external/bsd/llvm/dist/llvm/autoconf/m4 [LLVM]: build_exeext.m4
c_printf_a.m4 check_gnu_make.m4 config_makefile.m4
config_project.m4 cxx_flag_check.m4 define_subst.m4
find_std_program.m4 func_mmap_file.m4 header_mmap_anonymous.m4
huge_val.m4 link_options.m4 linux_mixed_64_32.m4
need_dev_zero_for_mmap.m4 sanity_check.m4 single_cxx_check.m4
visibility_inlines_hidden.m4
src/external/bsd/llvm/dist/llvm/bindings [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml [LLVM]: Makefile
Makefile.ocaml
src/external/bsd/llvm/dist/llvm/bindings/ocaml/all_backends [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/analysis [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/backends [LLVM]:
Makefile Makefile.common
src/external/bsd/llvm/dist/llvm/bindings/ocaml/bitreader [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/bitwriter [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/executionengine [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/irreader [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/linker [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/llvm [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/target [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/transforms [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/transforms/ipo [LLVM]:
Makefile

src/external/bsd/llvm/dist/llvm/bindings/ocaml/transforms/passmgr_builder 
[LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/transforms/scalar_opts 
[LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/transforms/utils [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/bindings/ocaml/transforms/vectorize 
[LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/cmake [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/cmake/modules [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/docs [LLVM]: BitSets.rst
BuildingLLVMWithAutotools.rst Makefile MakefileGuide.rst
doxygen.intro
src/external/bsd/llvm/dist/llvm/docs/tutorial [LLVM]: LangImpl1.rst
LangImpl2.rst LangImpl3.rst LangImpl4.rst LangImpl5-cfg.png
LangImpl5.rst LangImpl6.rst LangImpl7.rst LangImpl8.rst
LangImpl9.rst
src/external/bsd/llvm/dist/llvm/examples [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/examples/BrainF [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/examples/ExceptionDemo [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/examples/Fibonacci [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/examples/HowToUseJIT [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope [LLVM]: Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/Chapter2 [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/Chapter3 [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/Chapter4 [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/Chapter5 [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/Chapter6 [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/Chapter7 [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/Chapter8 [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/cached 
[LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/complete 
[LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/initial 
[LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/lazy [LLVM]:
Makefile
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/Orc [LLVM]:
CMakeLists.txt
src/external/bsd/llvm/dist/llvm/examples/Kaleidoscope/Orc/fully_lazy 
[LLVM]:
CMakeLists.txt Makefile README.txt toy.cpp

CVS commit: [LLVM] src/external/bsd/llvm/dist/clang

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 11:09:39 UTC 2017

Removed Files:
src/external/bsd/llvm/dist/clang [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/cmake/modules [LLVM]:
ClangConfig.cmake
src/external/bsd/llvm/dist/clang/docs [LLVM]: Makefile doxygen.intro
src/external/bsd/llvm/dist/clang/docs/analyzer [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/examples [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/examples/PrintFunctionNames [LLVM]:
Makefile
src/external/bsd/llvm/dist/clang/examples/analyzer-plugin [LLVM]:
Makefile
src/external/bsd/llvm/dist/clang/examples/clang-interpreter [LLVM]:
Makefile
src/external/bsd/llvm/dist/clang/include [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/include/clang [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/include/clang-c [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/include/clang/AST [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/include/clang/Basic [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/include/clang/Config [LLVM]:
config.h.in
src/external/bsd/llvm/dist/clang/include/clang/Driver [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/include/clang/Parse [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/include/clang/Sema [LLVM]:
LocInfoType.h Makefile
src/external/bsd/llvm/dist/clang/include/clang/Serialization [LLVM]:
Makefile
src/external/bsd/llvm/dist/clang/lib [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/ARCMigrate [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/AST [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/ASTMatchers [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/ASTMatchers/Dynamic [LLVM]:
Makefile
src/external/bsd/llvm/dist/clang/lib/Analysis [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Basic [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/CodeGen [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Driver [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Edit [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Format [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Frontend [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Frontend/Rewrite [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/FrontendTool [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Headers [LLVM]: Intrin.h Makefile
cuda_builtin_vars.h
src/external/bsd/llvm/dist/clang/lib/Index [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Lex [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Parse [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Rewrite [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Sema [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Serialization [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/StaticAnalyzer [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Checkers [LLVM]:
Checkers.td Makefile
src/external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Core [LLVM]:
Makefile
src/external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Frontend [LLVM]:
Makefile
src/external/bsd/llvm/dist/clang/lib/Tooling [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Tooling/Core [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/runtime [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/runtime/compiler-rt [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/runtime/libcxx [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/test [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/test/ARCMT/with space [LLVM]: test.h
test.h.result test1.m.in test1.m.in.result test2.m.in
test2.m.in.result
src/external/bsd/llvm/dist/clang/test/ASTMerge [LLVM]: category.m
class-template.cpp class.cpp codegen-body.c codegen-exprs.c enum.c
exprs.c function.c interface.m namespace.cpp property.m struct.c
typedef.c var.c
src/external/bsd/llvm/dist/clang/test/ASTMerge/Inputs [LLVM]: body1.c
body2.c category1.m category2.m class-template1.cpp
class-template2.cpp class1.cpp class2.cpp enum1.c enum2.c exprs1.c
exprs2.c function1.c function2.c interface1.m interface2.m
namespace1.cpp namespace2.cpp property1.m property2.m struct1.c
struct2.c typedef1.c typedef2.c var1.c var1.h var2.c
src/external/bsd/llvm/dist/clang/test/Analysis [LLVM]:
analyze_display_progress.c

src/external/bsd/llvm/dist/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl
 [LLVM]:

CVS commit: [LLVM] src/external/bsd/llvm/dist/clang

2017-01-11 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 11 11:09:39 UTC 2017

Removed Files:
src/external/bsd/llvm/dist/clang [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/cmake/modules [LLVM]:
ClangConfig.cmake
src/external/bsd/llvm/dist/clang/docs [LLVM]: Makefile doxygen.intro
src/external/bsd/llvm/dist/clang/docs/analyzer [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/examples [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/examples/PrintFunctionNames [LLVM]:
Makefile
src/external/bsd/llvm/dist/clang/examples/analyzer-plugin [LLVM]:
Makefile
src/external/bsd/llvm/dist/clang/examples/clang-interpreter [LLVM]:
Makefile
src/external/bsd/llvm/dist/clang/include [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/include/clang [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/include/clang-c [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/include/clang/AST [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/include/clang/Basic [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/include/clang/Config [LLVM]:
config.h.in
src/external/bsd/llvm/dist/clang/include/clang/Driver [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/include/clang/Parse [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/include/clang/Sema [LLVM]:
LocInfoType.h Makefile
src/external/bsd/llvm/dist/clang/include/clang/Serialization [LLVM]:
Makefile
src/external/bsd/llvm/dist/clang/lib [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/ARCMigrate [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/AST [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/ASTMatchers [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/ASTMatchers/Dynamic [LLVM]:
Makefile
src/external/bsd/llvm/dist/clang/lib/Analysis [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Basic [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/CodeGen [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Driver [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Edit [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Format [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Frontend [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Frontend/Rewrite [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/FrontendTool [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Headers [LLVM]: Intrin.h Makefile
cuda_builtin_vars.h
src/external/bsd/llvm/dist/clang/lib/Index [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Lex [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Parse [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Rewrite [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Sema [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Serialization [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/StaticAnalyzer [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Checkers [LLVM]:
Checkers.td Makefile
src/external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Core [LLVM]:
Makefile
src/external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Frontend [LLVM]:
Makefile
src/external/bsd/llvm/dist/clang/lib/Tooling [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/lib/Tooling/Core [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/runtime [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/runtime/compiler-rt [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/runtime/libcxx [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/test [LLVM]: Makefile
src/external/bsd/llvm/dist/clang/test/ARCMT/with space [LLVM]: test.h
test.h.result test1.m.in test1.m.in.result test2.m.in
test2.m.in.result
src/external/bsd/llvm/dist/clang/test/ASTMerge [LLVM]: category.m
class-template.cpp class.cpp codegen-body.c codegen-exprs.c enum.c
exprs.c function.c interface.m namespace.cpp property.m struct.c
typedef.c var.c
src/external/bsd/llvm/dist/clang/test/ASTMerge/Inputs [LLVM]: body1.c
body2.c category1.m category2.m class-template1.cpp
class-template2.cpp class1.cpp class2.cpp enum1.c enum2.c exprs1.c
exprs2.c function1.c function2.c interface1.m interface2.m
namespace1.cpp namespace2.cpp property1.m property2.m struct1.c
struct2.c typedef1.c typedef2.c var1.c var1.h var2.c
src/external/bsd/llvm/dist/clang/test/Analysis [LLVM]:
analyze_display_progress.c

src/external/bsd/llvm/dist/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl
 [LLVM]:

  1   2   >