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

2017-02-16 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Thu Feb 16 15:00:30 UTC 2017

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

Log Message:
On i386 (but not on amd64) we can enable SSE comparatively very late, when
probing/attaching the FPU.  This is a problem for cpu_rng with the VIA
processors because, by design, cpu_rng attaches, and the entropy subsystem
starts up, very early.

If SSE is not enabled, calls to any "PadLock" instructions (ACE, RNG)
on the VIA processors will trap, per the manual:
linux.via.com.tw/support/beginDownload.action?eleid=181&fid=261

All VIA CPUs with PadLock, or which match the model/stepping test as
possibly having PadLock, have SSE.  Just unconditionally enable it before
trying to turn the crypto block on.

Fixes crash at RNG attach time reported by Andrus V.; fix proposed by
jak@.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/sys/arch/x86/x86/identcpu.c

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

Modified files:

Index: src/sys/arch/x86/x86/identcpu.c
diff -u src/sys/arch/x86/x86/identcpu.c:1.52 src/sys/arch/x86/x86/identcpu.c:1.53
--- src/sys/arch/x86/x86/identcpu.c:1.52	Thu Feb  2 08:57:04 2017
+++ src/sys/arch/x86/x86/identcpu.c	Thu Feb 16 15:00:30 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: identcpu.c,v 1.52 2017/02/02 08:57:04 maxv Exp $	*/
+/*	$NetBSD: identcpu.c,v 1.53 2017/02/16 15:00:30 tls Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.52 2017/02/02 08:57:04 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.53 2017/02/16 15:00:30 tls Exp $");
 
 #include "opt_xen.h"
 
@@ -551,7 +551,19 @@ cpu_probe_c3(struct cpu_info *ci)
 			}
 		}
 
-		/* Actually do the enables. */
+		/*
+		 * Actually do the enables.  It's a little gross,
+		 * but per the PadLock programming guide, "Enabling
+		 * PadLock", condition 3, we must enable SSE too or
+		 * else the first use of RNG or ACE instructions
+		 * will generate a trap.
+		 *
+		 * We must do this early because of kernel RNG
+		 * initialization but it is safe without the full
+		 * FPU-detect as all these CPUs have SSE.
+		 */
+		lcr4(rcr4() | CR4_OSFXSR);
+
 		if (rng_enable) {
 			msr = rdmsr(MSR_VIA_RNG);
 			msr |= MSR_VIA_RNG_ENABLE;



CVS commit: src/external/gpl3/gcc/usr.bin/host-libcpp

2016-08-14 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 14 16:04:50 UTC 2016

Modified Files:
src/external/gpl3/gcc/usr.bin/host-libcpp: Makefile

Log Message:
Disable iconv in host-libcpp autoconf: fixes build on Mac OS X.
Thanks to joerg@ for the diagnosis and proposed fix.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile

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

Modified files:

Index: src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile
diff -u src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile:1.1 src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile:1.2
--- src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile:1.1	Tue Mar 15 19:14:47 2016
+++ src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile	Sun Aug 14 16:04:50 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.1 2016/03/15 19:14:47 mrg Exp $
+#	$NetBSD: Makefile,v 1.2 2016/08/14 16:04:50 tls Exp $
 
 libcpp/libcpp.a:
 	[ ! -d libcpp ] && mkdir libcpp || true
@@ -7,7 +7,7 @@ libcpp/libcpp.a:
 		CFLAGS=${HOST_CFLAGS:Q} \
 		MAKE=${TOOL_GMAKE:Q} \
 		CONFIG_SHELL=${HOST_SH:Q} \
-		${HOST_SH} ${DIST}/libcpp/configure \
+		${HOST_SH} ${DIST}/libcpp/configure -v am_cv_func_iconv=no \
 		&& CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} ${TOOL_GMAKE})
 
 cleandir:



CVS commit: src/sys/kern

2016-05-23 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Mon May 23 13:54:34 UTC 2016

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

Log Message:
Fix a longstanding problem with accept filters noticed by Timo Buhrmester:
sockets sitting in the accept filter can consume the entire listen queue,
such that the application is never able to handle any connections.  Handle
this by simply passing through the oldest queued cxn when the queue is full.

This is fair because the longer a cxn lingers in the queue (stays connected
but does not meet the requirements of the filter for passage) the more likely
it is to be passed through, at which point the application can dispose of it.

Works because none of our accept filters actually allocate private state
per-cxn.  If they did, we'd have to fix the API bug that there is presently
no way to tell an accf to finish/deallocate for a single cxn (accf_destroy
kills off the entire filter instance for a given listen socket).


To generate a diff of this commit:
cvs rdiff -u -r1.122 -r1.123 src/sys/kern/uipc_socket2.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/uipc_socket2.c
diff -u src/sys/kern/uipc_socket2.c:1.122 src/sys/kern/uipc_socket2.c:1.123
--- src/sys/kern/uipc_socket2.c:1.122	Mon Aug 24 22:21:26 2015
+++ src/sys/kern/uipc_socket2.c	Mon May 23 13:54:34 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: uipc_socket2.c,v 1.122 2015/08/24 22:21:26 pooka Exp $	*/
+/*	$NetBSD: uipc_socket2.c,v 1.123 2016/05/23 13:54:34 tls Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket2.c,v 1.122 2015/08/24 22:21:26 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket2.c,v 1.123 2016/05/23 13:54:34 tls Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_mbuftrace.h"
@@ -262,8 +262,37 @@ sonewconn(struct socket *head, bool sore
 	KASSERT(solocked(head));
 
 	if (head->so_qlen + head->so_q0len > 3 * head->so_qlimit / 2) {
-		/* Listen queue overflow. */
-		return NULL;
+		/*
+		 * Listen queue overflow.  If there is an accept filter
+		 * active, pass through the oldest cxn it's handling.
+		 */
+		if (head->so_accf == NULL) {
+			return NULL;
+		} else {
+			struct socket *so2, *next;
+
+			/* Pass the oldest connection waiting in the
+			   accept filter */
+			for (so2 = TAILQ_FIRST(&head->so_q0);
+			 so2 != NULL; so2 = next) {
+next = TAILQ_NEXT(so2, so_qe);
+if (so2->so_upcall == NULL) {
+	continue;
+}
+so2->so_upcall = NULL;
+so2->so_upcallarg = NULL;
+so2->so_options &= ~SO_ACCEPTFILTER;
+so2->so_rcv.sb_flags &= ~SB_UPCALL;
+soisconnected(so2);
+break;
+			}
+
+			/* If nothing was nudged out of the acept filter, bail
+			 * out; otherwise proceed allocating the socket. */
+			if (so2 == NULL) {
+return NULL;
+			}
+		}
 	}
 	if ((head->so_options & SO_ACCEPTFILTER) != 0) {
 		soready = false;



CVS commit: src/sys/arch/x86

2016-02-26 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sat Feb 27 00:54:59 UTC 2016

Modified Files:
src/sys/arch/x86/include: via_padlock.h
src/sys/arch/x86/x86: cpu_rng.c via_padlock.c

Log Message:
Remove callout-based RNG support in VIA crypto driver; add VIA RNG backend for 
cpu_rng.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/x86/include/via_padlock.h
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/x86/x86/cpu_rng.c
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/x86/x86/via_padlock.c

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

Modified files:

Index: src/sys/arch/x86/include/via_padlock.h
diff -u src/sys/arch/x86/include/via_padlock.h:1.8 src/sys/arch/x86/include/via_padlock.h:1.9
--- src/sys/arch/x86/include/via_padlock.h:1.8	Mon Apr 13 16:03:51 2015
+++ src/sys/arch/x86/include/via_padlock.h	Sat Feb 27 00:54:59 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: via_padlock.h,v 1.8 2015/04/13 16:03:51 riastradh Exp $	*/
+/*	$NetBSD: via_padlock.h,v 1.9 2016/02/27 00:54:59 tls Exp $	*/
 
 /*-
  * Copyright (c) 2003 Jason Wright
@@ -59,11 +59,6 @@ struct via_padlock_softc {
 	uint8_t	op_iv[16];	/* 128 bit aligned */
 	void		*op_buf;
 
-	int			sc_rnd_hz;
-	struct callout		sc_rnd_co;
-	krndsource_t	sc_rnd_source;
-	bool			sc_rnd_attached;
-
 	/* normal softc stuff */
 	int32_t		sc_cid;
 	bool		sc_cid_attached;
@@ -74,8 +69,6 @@ struct via_padlock_softc {
 #define VIAC3_SESSION(sid)	((sid) & 0x0fff)
 #define VIAC3_SID(crd,ses)	(((crd) << 28) | ((ses) & 0x0fff))
 
-#define VIAC3_RNG_BUFSIZ	16
-
 #endif /* _KERNEL */
 
 #if defined(_KERNEL) || defined(_KMEMUSER)

Index: src/sys/arch/x86/x86/cpu_rng.c
diff -u src/sys/arch/x86/x86/cpu_rng.c:1.2 src/sys/arch/x86/x86/cpu_rng.c:1.3
--- src/sys/arch/x86/x86/cpu_rng.c:1.2	Sat Feb 27 00:43:55 2016
+++ src/sys/arch/x86/x86/cpu_rng.c	Sat Feb 27 00:54:59 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_rng.c,v 1.2 2016/02/27 00:43:55 tls Exp $ */
+/* $NetBSD: cpu_rng.c,v 1.3 2016/02/27 00:54:59 tls Exp $ */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -29,6 +29,12 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+/*
+ * The VIA RNG code in this file is inspired by Jason Wright and
+ * Theo de Raadt's OpenBSD version but has been rewritten in light of
+ * comments from Henric Jungheim on the t...@openbsd.org mailing list.
+ */
+
 #include 
 #include 
 #include 
@@ -42,7 +48,8 @@
 static enum {
 	CPU_RNG_NONE = 0,
 	CPU_RNG_RDRAND,
-	CPU_RNG_RDSEED } cpu_rng_mode __read_mostly = CPU_RNG_NONE;
+	CPU_RNG_RDSEED,
+	CPU_RNG_VIA } cpu_rng_mode __read_mostly = CPU_RNG_NONE;
 
 bool
 cpu_rng_init(void)
@@ -56,6 +63,10 @@ cpu_rng_init(void)
 		cpu_rng_mode = CPU_RNG_RDRAND;
 		aprint_normal("cpu_rng: RDRAND\n");
 		return true;
+	} else if (cpu_feature[4] & CPUID_VIA_HAS_RNG) {
+		cpu_rng_mode = CPU_RNG_VIA;
+		aprint_normal("cpu_rng: VIA\n");
+		return true;
 	}
 	return false;
 }
@@ -121,6 +132,49 @@ exhausted:
 	return cpu_rng_rdrand(out);
 }
 
+static size_t
+cpu_rng_via(cpu_rng_t *out)
+{
+	uint32_t creg0, rndsts;
+
+	/*
+	 * Sadly, we have to monkey with the coprocessor enable and fault
+	 * registers, which are really for the FPU, in order to read
+	 * from the RNG.
+	 *
+	 * Don't remove CR0_TS from the call below -- comments in the Linux
+	 * driver indicate that the xstorerng instruction can generate
+	 * spurious DNA faults though no FPU or SIMD state is changed
+	 * even if such a fault is generated.
+	 *
+	 * XXX can this really happen if we don't use "rep xstorrng"?
+	 *
+	 */
+	kpreempt_disable();
+	x86_disable_intr();
+	creg0 = rcr0();
+	lcr0(creg0 & ~(CR0_EM|CR0_TS)); /* Permit access to SIMD/FPU path */
+	/*
+	 * The VIA RNG has an output queue of 8-byte values.  Read one.
+	 * This is atomic, so if the FPU were already enabled, we could skip
+	 * all the preemption and interrupt frobbing.  If we had bread,
+	 * we could have a ham sandwich, if we had any ham.
+	 */
+	__asm __volatile("xstorerng"
+	: "=a" (rndsts), "+D" (out) : "d" (0) : "memory");
+	/* Put CR0 back how it was */
+	lcr0(creg0);
+	x86_enable_intr();
+	kpreempt_enable();
+
+	/*
+	 * The Cryptography Research paper on the VIA RNG estimates
+	 * 0.75 bits of entropy per output bit and advises users to
+	 * be "even more conservative".
+	 */
+	return rndsts & 0xf ? 0 : sizeof(cpu_rng_t) * NBBY / 2;
+}
+
 size_t
 cpu_rng(cpu_rng_t *out)
 {
@@ -131,6 +185,8 @@ cpu_rng(cpu_rng_t *out)
 		return cpu_rng_rdseed(out);
 	case CPU_RNG_RDRAND:
 		return cpu_rng_rdrand(out);
+	case CPU_RNG_VIA:
+		return cpu_rng_via(out);
 	default:
 		panic("cpu_rng: unknown mode %d", (int)cpu_rng_mode);
 	}

Index: src/sys/arch/x86/x86/via_padlock.c
diff -u src/sys/arch/x86/x86/via_padlock.c:1.24 src/sys/arch/x86/x86/via_padlock.c:1.25
--- src/sys/arch/x86/x86/via_padlock.c:1.24	Mon Apr 13 16:03:51 2015
+++ src/sys/arch/x86/x86/via_padlock.c	Sat Feb 27 00:54:59 2016
@@ -1,5 +1,5 @@
 /*	$OpenBSD: via.c,v 1.8 2006/11/17 07:47:56 tom

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

2016-02-26 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sat Feb 27 00:43:55 UTC 2016

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

Log Message:
Add RDSEED and RDRAND backends for cpu_rng on amd64 and i386.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/x86/x86/cpu_rng.c

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

Modified files:

Index: src/sys/arch/x86/x86/cpu_rng.c
diff -u src/sys/arch/x86/x86/cpu_rng.c:1.1 src/sys/arch/x86/x86/cpu_rng.c:1.2
--- src/sys/arch/x86/x86/cpu_rng.c:1.1	Sat Feb 27 00:09:45 2016
+++ src/sys/arch/x86/x86/cpu_rng.c	Sat Feb 27 00:43:55 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_rng.c,v 1.1 2016/02/27 00:09:45 tls Exp $ */
+/* $NetBSD: cpu_rng.c,v 1.2 2016/02/27 00:43:55 tls Exp $ */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -42,24 +42,95 @@
 static enum {
 	CPU_RNG_NONE = 0,
 	CPU_RNG_RDRAND,
-	CPU_RNG_RDSEED,
-	CPU_RNG_VIA } cpu_rng_mode __read_mostly = CPU_RNG_NONE;
+	CPU_RNG_RDSEED } cpu_rng_mode __read_mostly = CPU_RNG_NONE;
 
 bool
 cpu_rng_init(void)
 {
+
+	if (cpu_feature[5] & CPUID_SEF_RDSEED) {
+		cpu_rng_mode = CPU_RNG_RDSEED;
+		aprint_normal("cpu_rng: RDSEED\n");
+		return true;
+	} else if (cpu_feature[1] & CPUID2_RDRAND) {
+		cpu_rng_mode = CPU_RNG_RDRAND;
+		aprint_normal("cpu_rng: RDRAND\n");
+		return true;
+	}
 	return false;
 }
 
+static inline size_t
+cpu_rng_rdrand(cpu_rng_t *out)
+{
+	uint8_t rndsts;
+
+#ifdef __i386__
+	uint32_t lo, hi;
+
+	__asm __volatile("rdrand %0; setc %1" : "=r"(lo), "=qm"(rndsts));
+	if (rndsts != 1)
+		return 0;
+	__asm __volatile("rdrand %0; setc %1" : "=r"(hi), "=qm"(rndsts));
+
+	*out = (uint64_t)lo | ((uint64_t)hi << 32);
+	explicit_memset(&lo, 0, sizeof(lo));
+	explicit_memset(&hi, 0, sizeof(hi));
+	if (rndsts != 1)
+		return sizeof(lo) * NBBY;
+#else
+	__asm __volatile("rdrand %0; setc %1" : "=r"(*out), "=qm"(rndsts));
+	if (rndsts != 1)
+		return 0;
+#endif
+	return sizeof(*out) * NBBY;
+}
+
+static inline size_t
+cpu_rng_rdseed(cpu_rng_t *out)
+{
+	uint8_t rndsts;
+
+#ifdef __i386__
+	uint32_t lo, hi;
+	
+	__asm __volatile("rdseed %0; setc %1" : "=r"(lo), "=qm"(rndsts));
+if (rndsts != 1)
+		goto exhausted;
+	__asm __volatile("rdseed %0; setc %1" : "=r"(hi), "=qm"(rndsts));
+	if (rndsts != 1)
+		goto exhausted;
+
+	*out = (uint64_t)lo | ((uint64_t)hi << 32);
+	explicit_memset(&lo, 0, sizeof(lo));
+	explicit_memset(&hi, 0, sizeof(hi));
+#else
+	__asm __volatile("rdseed %0; setc %1" : "=r"(*out), "=qm"(rndsts));
+#endif
+	if (rndsts != 1)
+		goto exhausted;
+
+	return sizeof(*out) * NBBY;
+
+	/*
+	 * Userspace could have exhausted RDSEED, but the
+	 * CPU-internal generator feeding RDRAND is guaranteed
+	 * to be seeded even in this case.
+	 */
+exhausted:
+	return cpu_rng_rdrand(out);
+}
+
 size_t
 cpu_rng(cpu_rng_t *out)
 {
 	switch (cpu_rng_mode) {
 	case CPU_RNG_NONE:
+		return 0;
 	case CPU_RNG_RDSEED:
+		return cpu_rng_rdseed(out);
 	case CPU_RNG_RDRAND:
-	case CPU_RNG_VIA:
-		return 0;
+		return cpu_rng_rdrand(out);
 	default:
 		panic("cpu_rng: unknown mode %d", (int)cpu_rng_mode);
 	}



CVS commit: src/sys

2016-02-26 Thread Thor Lancelot Simon
86_CPU_RNG_H_
+#define _I386_CPU_RNG_H_
+
+#include 
+
+#endif

Index: src/sys/arch/x86/include/cpu_rng.h
diff -u /dev/null src/sys/arch/x86/include/cpu_rng.h:1.1
--- /dev/null	Sat Feb 27 00:09:45 2016
+++ src/sys/arch/x86/include/cpu_rng.h	Sat Feb 27 00:09:45 2016
@@ -0,0 +1,42 @@
+/* $NetBSD: cpu_rng.h,v 1.1 2016/02/27 00:09:45 tls Exp $ */
+
+#ifndef _X86_CPU_RNG_H_
+#define _X86_CPU_RNG_H_
+
+/*-
+ * Copyright (c) 2015 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Thor Lancelot Simon.
+ *
+ * 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 
+
+typedef uint64_t cpu_rng_t;
+
+bool cpu_rng_init(void);
+size_t cpu_rng(cpu_rng_t *);
+
+#endif /* _X86_CPU_RNG_H_ */

Index: src/sys/arch/x86/x86/cpu_rng.c
diff -u /dev/null src/sys/arch/x86/x86/cpu_rng.c:1.1
--- /dev/null	Sat Feb 27 00:09:45 2016
+++ src/sys/arch/x86/x86/cpu_rng.c	Sat Feb 27 00:09:45 2016
@@ -0,0 +1,66 @@
+/* $NetBSD: cpu_rng.c,v 1.1 2016/02/27 00:09:45 tls Exp $ */
+
+/*-
+ * Copyright (c) 2015 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Thor Lancelot Simon.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include 
+#include 
+#include 
+
+#include 
+
+#include 
+#include 
+#include 
+
+static enum {
+	CPU_RNG_NONE = 0,
+	CPU_RNG_RDRAND,
+	CPU_RNG_RDSEED,
+	CPU_RNG_VIA } cpu_rng_mode __read_mostly = CPU_RNG_NONE;
+
+bool
+cpu_rng_init(void)
+{
+	return false;
+}
+
+size_t
+cpu_rng(cpu_rng_t *out)
+{
+	switch (cpu_rng_mode) {
+	case CPU_RNG_NONE:
+	case CPU_RNG_RDSEED:
+	case CPU_RNG_RDRAND:
+	case CPU_RNG_VIA:
+		return 0;
+	default:
+		panic("cpu_rng: unknown mode %d", (int)cpu_rng_mode);
+	}
+}



CVS commit: src/sys/kern

2016-01-11 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Mon Jan 11 14:55:52 UTC 2016

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

Log Message:
memset() -> explicit_memset() for sensitive data.


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

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

Modified files:

Index: src/sys/kern/kern_rndq.c
diff -u src/sys/kern/kern_rndq.c:1.74 src/sys/kern/kern_rndq.c:1.75
--- src/sys/kern/kern_rndq.c:1.74	Fri Jan  1 16:09:00 2016
+++ src/sys/kern/kern_rndq.c	Mon Jan 11 14:55:52 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_rndq.c,v 1.74 2016/01/01 16:09:00 tls Exp $	*/
+/*	$NetBSD: kern_rndq.c,v 1.75 2016/01/11 14:55:52 tls Exp $	*/
 
 /*-
  * Copyright (c) 1997-2013 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.74 2016/01/01 16:09:00 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.75 2016/01/11 14:55:52 tls Exp $");
 
 #include 
 #include 
@@ -572,7 +572,7 @@ rnd_init(void)
 		mutex_spin_exit(&rnd_global.lock);
 		rnd_printf("rnd: seeded with %d bits\n",
 		MIN(boot_rsp->entropy, RND_POOLBITS / 2));
-		memset(boot_rsp, 0, sizeof(*boot_rsp));
+		explicit_memset(boot_rsp, 0, sizeof(*boot_rsp));
 	}
 	rnd_attach_source(&rnd_printf_source, "printf", RND_TYPE_UNKNOWN,
 			  RND_FLAG_NO_ESTIMATE);
@@ -621,7 +621,7 @@ static void
 rnd_sample_free(rnd_sample_t *c)
 {
 
-	memset(c, 0, sizeof(*c));
+	explicit_memset(c, 0, sizeof(*c));
 	pool_cache_put(rnd_mempc, c);
 }
 
@@ -996,7 +996,7 @@ rnd_hwrng_test(rnd_sample_t *sample)
 			return 1;
 		}
 		source->test_cnt = -1;
-		memset(source->test, 0, sizeof(*source->test));
+		explicit_memset(source->test, 0, sizeof(*source->test));
 	}
 	return 0;
 }
@@ -1201,7 +1201,7 @@ rnd_extract_data(void *p, uint32_t len, 
 			"STATISTICAL TEST!\n");
 			continue;
 		}
-		memset(&rnd_rt, 0, sizeof(rnd_rt));
+		explicit_memset(&rnd_rt, 0, sizeof(rnd_rt));
 		rndpool_add_data(&rnd_global.pool, rnd_testbits,
 		sizeof(rnd_testbits), entropy_count);
 		memset(rnd_testbits, 0, sizeof(rnd_testbits));
@@ -1319,7 +1319,7 @@ rnd_seed(void *base, size_t len)
 		rndpool_add_data(&rnd_global.pool, boot_rsp->data,
 		sizeof(boot_rsp->data),
 		MIN(boot_rsp->entropy, RND_POOLBITS / 2));
-		memset(boot_rsp, 0, sizeof(*boot_rsp));
+		explicit_memset(boot_rsp, 0, sizeof(*boot_rsp));
 		mutex_spin_exit(&rnd_global.lock);
 	} else {
 		rnd_printf_verbose("rnd: not ready, deferring seed feed.\n");



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

2016-01-01 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Fri Jan  1 19:46:48 UTC 2016

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

Log Message:
Enable second noise source on newer VIA CPUs


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/arch/x86/x86/identcpu.c

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

Modified files:

Index: src/sys/arch/x86/x86/identcpu.c
diff -u src/sys/arch/x86/x86/identcpu.c:1.49 src/sys/arch/x86/x86/identcpu.c:1.50
--- src/sys/arch/x86/x86/identcpu.c:1.49	Sun Dec 13 15:02:19 2015
+++ src/sys/arch/x86/x86/identcpu.c	Fri Jan  1 19:46:48 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: identcpu.c,v 1.49 2015/12/13 15:02:19 maxv Exp $	*/
+/*	$NetBSD: identcpu.c,v 1.50 2016/01/01 19:46:48 tls Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.49 2015/12/13 15:02:19 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.50 2016/01/01 19:46:48 tls Exp $");
 
 #include "opt_xen.h"
 
@@ -554,8 +554,14 @@ cpu_probe_c3(struct cpu_info *ci)
 		/* Actually do the enables. */
 		if (rng_enable) {
 			msr = rdmsr(MSR_VIA_RNG);
-			wrmsr(MSR_VIA_RNG, msr | MSR_VIA_RNG_ENABLE);
+			msr |= MSR_VIA_RNG_ENABLE;
+			/* C7 stepping 8 and subsequent CPUs have dual RNG */
+			if (model > 0xA || (model == 0xA && stepping > 0x7)) {
+msr |= MSR_VIA_RNG_2NOISE;
+			}
+			wrmsr(MSR_VIA_RNG, msr);
 		}
+
 		if (ace_enable) {
 			msr = rdmsr(MSR_VIA_ACE);
 			wrmsr(MSR_VIA_ACE, msr | MSR_VIA_ACE_ENABLE);



CVS commit: src/sys/kern

2016-01-01 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Fri Jan  1 16:09:00 UTC 2016

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

Log Message:
Fix callout-skew source so it runs only when needed (remove second callout,
eliminate race).


To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 src/sys/kern/kern_rndq.c

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

Modified files:

Index: src/sys/kern/kern_rndq.c
diff -u src/sys/kern/kern_rndq.c:1.73 src/sys/kern/kern_rndq.c:1.74
--- src/sys/kern/kern_rndq.c:1.73	Sat Aug 29 10:00:19 2015
+++ src/sys/kern/kern_rndq.c	Fri Jan  1 16:09:00 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_rndq.c,v 1.73 2015/08/29 10:00:19 mlelstv Exp $	*/
+/*	$NetBSD: kern_rndq.c,v 1.74 2016/01/01 16:09:00 tls Exp $	*/
 
 /*-
  * Copyright (c) 1997-2013 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.73 2015/08/29 10:00:19 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.74 2016/01/01 16:09:00 tls Exp $");
 
 #include 
 #include 
@@ -407,8 +407,8 @@ rnd_dv_estimate(krndsource_t *rs, uint32
 #if defined(__HAVE_CPU_COUNTER)
 static struct {
 	kmutex_t	lock;
+	int		iter;
 	struct callout	callout;
-	struct callout	stop_callout;
 	krndsource_t	source;
 } rnd_skew __cacheline_aligned;
 
@@ -426,21 +426,14 @@ rnd_skew_enable(krndsource_t *rs, bool e
 }
 
 static void
-rnd_skew_stop_intr(void *arg)
-{
-
-	callout_stop(&rnd_skew.callout);
-}
-
-static void
 rnd_skew_get(size_t bytes, void *priv)
 {
 	krndsource_t *skewsrcp = priv;
 
 	KASSERT(skewsrcp == &rnd_skew.source);
 	if (RND_ENABLED(skewsrcp)) {
-		/* Measure for 30s */
-		callout_schedule(&rnd_skew.stop_callout, hz * 30);
+		/* Measure 100 times */
+		rnd_skew.iter = 100;
 		callout_schedule(&rnd_skew.callout, 1);
 	}
 }
@@ -448,8 +441,6 @@ rnd_skew_get(size_t bytes, void *priv)
 static void
 rnd_skew_intr(void *arg)
 {
-	static int flipflop;
-
 	/*
 	 * Even on systems with seemingly stable clocks, the
 	 * delta-time entropy estimator seems to think we get 1 bit here
@@ -457,14 +448,15 @@ rnd_skew_intr(void *arg)
 	 *
 	 */
 	mutex_spin_enter(&rnd_skew.lock);
-	flipflop = !flipflop;
 
 	if (RND_ENABLED(&rnd_skew.source)) {
-		if (flipflop) {
+		int next_ticks = 1;
+		if (rnd_skew.iter & 1) {
 			rnd_add_uint32(&rnd_skew.source, rnd_counter());
-			callout_schedule(&rnd_skew.callout, hz / 10);
-		} else {
-			callout_schedule(&rnd_skew.callout, 1);
+			next_ticks = hz / 10;
+		}
+		if (--rnd_skew.iter > 0) {
+			callout_schedule(&rnd_skew.callout, next_ticks);
 		}
 	}
 	mutex_spin_exit(&rnd_skew.lock);
@@ -559,14 +551,13 @@ rnd_init(void)
 	/* IPL_VM because taken while rnd_global.lock is held.  */
 	mutex_init(&rnd_skew.lock, MUTEX_DEFAULT, IPL_VM);
 	callout_init(&rnd_skew.callout, CALLOUT_MPSAFE);
-	callout_init(&rnd_skew.stop_callout, CALLOUT_MPSAFE);
 	callout_setfunc(&rnd_skew.callout, rnd_skew_intr, NULL);
-	callout_setfunc(&rnd_skew.stop_callout, rnd_skew_stop_intr, NULL);
 	rndsource_setcb(&rnd_skew.source, rnd_skew_get, &rnd_skew.source);
 	rndsource_setenable(&rnd_skew.source, rnd_skew_enable);
 	rnd_attach_source(&rnd_skew.source, "callout", RND_TYPE_SKEW,
 	RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_VALUE|
 	RND_FLAG_HASCB|RND_FLAG_HASENABLE);
+	rnd_skew.iter = 100;
 	rnd_skew_intr(NULL);
 #endif
 



CVS commit: src

2014-10-26 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Oct 26 18:48:09 UTC 2014

Modified Files:
src/distrib/sets/lists/man: mi
src/share/man/man4: Makefile

Log Message:
Build and install virtio(4) manual page - missed in previous commit.


To generate a diff of this commit:
cvs rdiff -u -r1.1487 -r1.1488 src/distrib/sets/lists/man/mi
cvs rdiff -u -r1.617 -r1.618 src/share/man/man4/Makefile

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

Modified files:

Index: src/distrib/sets/lists/man/mi
diff -u src/distrib/sets/lists/man/mi:1.1487 src/distrib/sets/lists/man/mi:1.1488
--- src/distrib/sets/lists/man/mi:1.1487	Tue Sep 23 15:05:25 2014
+++ src/distrib/sets/lists/man/mi	Sun Oct 26 18:48:09 2014
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1487 2014/09/23 15:05:25 njoly Exp $
+# $NetBSD: mi,v 1.1488 2014/10/26 18:48:09 tls Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -1915,6 +1915,7 @@
 ./usr/share/man/cat4/vinum.0			man-obsolete		obsolete
 ./usr/share/man/cat4/vioif.0			man-sys-catman		.cat
 ./usr/share/man/cat4/viomb.0			man-sys-catman		.cat
+./usr/share/man/cat4/viornd.0			man-sys-catman		.cat
 ./usr/share/man/cat4/virt.0			man-sys-catman		.cat
 ./usr/share/man/cat4/virtio.0			man-sys-catman		.cat
 ./usr/share/man/cat4/vlan.0			man-sys-catman		.cat
@@ -4884,6 +4885,7 @@
 ./usr/share/man/html4/video.html		man-sys-htmlman		html
 ./usr/share/man/html4/vioif.html		man-sys-htmlman		html
 ./usr/share/man/html4/viomb.html		man-sys-htmlman		html
+./usr/share/man/html4/viornd.html		man-sys-htmlman		html
 ./usr/share/man/html4/virt.html			man-sys-htmlman		html
 ./usr/share/man/html4/virtio.html		man-sys-htmlman		html
 ./usr/share/man/html4/vlan.html			man-sys-htmlman		html
@@ -7783,6 +7785,7 @@
 ./usr/share/man/man4/vinum.4			man-obsolete		obsolete
 ./usr/share/man/man4/vioif.4			man-sys-man		.man
 ./usr/share/man/man4/viomb.4			man-sys-man		.man
+./usr/share/man/man4/viornd.4			man-sys-man		.man
 ./usr/share/man/man4/virt.4			man-sys-man		.man
 ./usr/share/man/man4/virtio.4			man-sys-man		.man
 ./usr/share/man/man4/vlan.4			man-sys-man		.man

Index: src/share/man/man4/Makefile
diff -u src/share/man/man4/Makefile:1.617 src/share/man/man4/Makefile:1.618
--- src/share/man/man4/Makefile:1.617	Mon Aug 25 12:49:22 2014
+++ src/share/man/man4/Makefile	Sun Oct 26 18:48:09 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.617 2014/08/25 12:49:22 tsutsui Exp $
+#	$NetBSD: Makefile,v 1.618 2014/10/26 18:48:09 tls Exp $
 #	@(#)Makefile	8.1 (Berkeley) 6/18/93
 
 MAN=	aac.4 ac97.4 acardide.4 aceride.4 acphy.4 \
@@ -62,7 +62,8 @@ MAN=	aac.4 ac97.4 acardide.4 aceride.4 a
 	ti.4 tl.4 tlp.4 tlphy.4 tpm.4 tprof.4 tr.4 tra.4 \
 	trm.4 tty.4 tun.4 tqphy.4 twa.4 twe.4 txp.4 \
 	uark.4 ubsec.4 udp.4 uep.4 ug.4 uha.4 uk.4 ukphy.4 unix.4 userconf.4 \
-	vald.4 veriexec.4 vga.4 vge.4 viaide.4 video.4 vioif.4 viomb.4 virt.4 \
+	vald.4 veriexec.4 vga.4 vge.4 viaide.4 video.4 vioif.4 viomb.4 \
+	viornd.4 virt.4 \
 	virtio.4 vlan.4 vmmon.4 vmnet.4 vnd.4 voodoofb.4 vr.4 vte.4 \
 	wapbl.4 wb.4 wbsio.4 wd.4 wdc.4 wi.4 wm.4 wpi.4 \
 	wscons.4 wsdisplay.4 wsfont.4 wskbd.4 wsmouse.4 wsmux.4 \



CVS commit: src

2014-10-26 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Oct 26 18:43:18 UTC 2014

Modified Files:
src/doc: CHANGES
src/sys/arch/amd64/conf: GENERIC
src/sys/dev/pci: files.pci
Added Files:
src/share/man/man4: viornd.4
src/sys/dev/pci: viornd.c

Log Message:
Add viornd(4), a driver for the VirtIO entropy source available on
QEMU, KVM, and Google Compute Engine.  From OpenBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.2004 -r1.2005 src/doc/CHANGES
cvs rdiff -u -r0 -r1.1 src/share/man/man4/viornd.4
cvs rdiff -u -r1.400 -r1.401 src/sys/arch/amd64/conf/GENERIC
cvs rdiff -u -r1.371 -r1.372 src/sys/dev/pci/files.pci
cvs rdiff -u -r0 -r1.1 src/sys/dev/pci/viornd.c

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

Modified files:

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.2004 src/doc/CHANGES:1.2005
--- src/doc/CHANGES:1.2004	Sun Oct 26 18:22:32 2014
+++ src/doc/CHANGES	Sun Oct 26 18:43:18 2014
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2004 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2005 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -87,5 +87,7 @@ Changes from NetBSD 7.0 to NetBSD 8.0:
 		sources (be more power friendly). [tls 20141026]
 	rnd(9): Make "skew" source polled so it runs only when there
 	is entropy demand. [tls 20141026]
-	rnd(9): Adjust entropy collection from polled sources so it's
+	rnd(9):	Adjust entropy collection from polled sources so it's
 		processed sooner. [tls 20141026]
+	viornd(4):	Add driver for VirtIO entropy source available on
+			QEMU, KVM, and Google Compute Engine.  From OpenBSD.

Index: src/sys/arch/amd64/conf/GENERIC
diff -u src/sys/arch/amd64/conf/GENERIC:1.400 src/sys/arch/amd64/conf/GENERIC:1.401
--- src/sys/arch/amd64/conf/GENERIC:1.400	Sat Oct 18 16:56:51 2014
+++ src/sys/arch/amd64/conf/GENERIC	Sun Oct 26 18:43:18 2014
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.400 2014/10/18 16:56:51 uebayasi Exp $
+# $NetBSD: GENERIC,v 1.401 2014/10/26 18:43:18 tls Exp $
 #
 # GENERIC machine description file
 #
@@ -22,7 +22,7 @@ include	"arch/amd64/conf/std.amd64"
 
 options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
 
-#ident 		"GENERIC-$Revision: 1.400 $"
+#ident 		"GENERIC-$Revision: 1.401 $"
 
 maxusers	64		# estimated number of users
 
@@ -1171,6 +1171,7 @@ virtio*	at pci? dev ? function ?	# Virti
 viomb*	at virtio?			# Virtio memory balloon device
 ld*	at virtio?			# Virtio disk device
 vioif*	at virtio?			# Virtio network device
+viornd*	at virtio?			# Virtio entropy device
 
 
 # Pull in optional local configuration

Index: src/sys/dev/pci/files.pci
diff -u src/sys/dev/pci/files.pci:1.371 src/sys/dev/pci/files.pci:1.372
--- src/sys/dev/pci/files.pci:1.371	Wed Mar 19 15:26:41 2014
+++ src/sys/dev/pci/files.pci	Sun Oct 26 18:43:18 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: files.pci,v 1.371 2014/03/19 15:26:41 nonaka Exp $
+#	$NetBSD: files.pci,v 1.372 2014/10/26 18:43:18 tls Exp $
 #
 # Config file and device description for machine-independent PCI code.
 # Included by ports that need it.  Requires that the SCSI files be
@@ -1125,6 +1125,10 @@ device	vioif
 attach	vioif at virtio
 file	dev/pci/if_vioif.c	vioif
 
+device	viornd
+attach	viornd at virtio
+file dev/pci/viornd.c		viornd
+
 # Silicon Motion SM712(LynxEM+) frame buffer
 device	lynxfb: wsemuldisplaydev, rasops16
 attach	lynxfb at pci

Added files:

Index: src/share/man/man4/viornd.4
diff -u /dev/null src/share/man/man4/viornd.4:1.1
--- /dev/null	Sun Oct 26 18:43:18 2014
+++ src/share/man/man4/viornd.4	Sun Oct 26 18:43:18 2014
@@ -0,0 +1,61 @@
+.\" $NetBSD: viornd.4,v 1.1 2014/10/26 18:43:18 tls Exp $
+.\"
+.\" Copyright (c) 2014 The NetBSD Foundation, Inc.
+.\" All rights reserved.
+.\"
+.\" This code is derived from software contributed to The NetBSD Foundation
+.\" by Thor Lancelot Simon.
+.\"
+.\" 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 CONTRIBUTO

CVS commit: src

2014-10-26 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Oct 26 18:22:32 UTC 2014

Modified Files:
src/doc: CHANGES
src/sys/dev: rndpseudo.c
src/sys/kern: kern_rndq.c kern_rndsink.c
src/sys/sys: rnd.h

Log Message:
Fixes and enhancements for polled entropy sources:
Add explicit enable/disable hooks for callout-driven sources (be more
power friendly).

Make "skew" source polled so it runs only when there is entropy
demand.

Adjust entropy collection from polled sources so it's processed
sooner.


To generate a diff of this commit:
cvs rdiff -u -r1.2003 -r1.2004 src/doc/CHANGES
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/rndpseudo.c
cvs rdiff -u -r1.27 -r1.28 src/sys/kern/kern_rndq.c
cvs rdiff -u -r1.9 -r1.10 src/sys/kern/kern_rndsink.c
cvs rdiff -u -r1.42 -r1.43 src/sys/sys/rnd.h

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

Modified files:

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.2003 src/doc/CHANGES:1.2004
--- src/doc/CHANGES:1.2003	Sat Oct 25 21:02:31 2014
+++ src/doc/CHANGES	Sun Oct 26 18:22:32 2014
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2003 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2004 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -83,3 +83,9 @@ Changes from NetBSD 7.0 to NetBSD 8.0:
 	openpam(3): update to 20140912 (ourouparia) [christos 20141024]
 	pppd(8): updated to version 2.4.7. [christos 20141025]
 	acpi(4): Updated ACPICA to 20140926. [christos 20141025]
+	rnd(9): Add explicit enable/disable hooks for callout-driven
+		sources (be more power friendly). [tls 20141026]
+	rnd(9): Make "skew" source polled so it runs only when there
+	is entropy demand. [tls 20141026]
+	rnd(9): Adjust entropy collection from polled sources so it's
+		processed sooner. [tls 20141026]

Index: src/sys/dev/rndpseudo.c
diff -u src/sys/dev/rndpseudo.c:1.22 src/sys/dev/rndpseudo.c:1.23
--- src/sys/dev/rndpseudo.c:1.22	Fri Sep  5 09:23:14 2014
+++ src/sys/dev/rndpseudo.c	Sun Oct 26 18:22:32 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: rndpseudo.c,v 1.22 2014/09/05 09:23:14 matt Exp $	*/
+/*	$NetBSD: rndpseudo.c,v 1.23 2014/10/26 18:22:32 tls Exp $	*/
 
 /*-
  * Copyright (c) 1997-2013 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: rndpseudo.c,v 1.22 2014/09/05 09:23:14 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rndpseudo.c,v 1.23 2014/10/26 18:22:32 tls Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -526,6 +526,20 @@ krndsource_to_rndsource_est(krndsource_t
 	re->dv_total = kr->value_delta.outbits;
 }
 
+static void
+krs_setflags(krndsource_t *kr, uint32_t flags, uint32_t mask)
+{
+	uint32_t oflags = kr->flags;
+
+	kr->flags &= ~mask;
+	kr->flags |= (flags & mask);
+
+	if (oflags & RND_FLAG_HASENABLE &&
+((oflags & RND_FLAG_NO_COLLECT) != (flags & RND_FLAG_NO_COLLECT))) {
+		kr->enable(kr, !(flags & RND_FLAG_NO_COLLECT));
+	}
+}
+
 int
 rnd_ioctl(struct file *fp, u_long cmd, void *addr)
 {
@@ -536,7 +550,7 @@ rnd_ioctl(struct file *fp, u_long cmd, v
 	rndstat_est_name_t *rsetnm;
 	rndctl_t *rctl;
 	rnddata_t *rnddata;
-	u_int32_t count, start;
+	uint32_t count, start;
 	int ret = 0;
 	int estimate_ok = 0, estimate = 0;
 
@@ -736,12 +750,9 @@ rnd_ioctl(struct file *fp, u_long cmd, v
 		if (rctl->type != 0xff) {
 			while (kr != NULL) {
 if (kr->type == rctl->type) {
-	kr->flags &= ~rctl->mask;
-
-	kr->flags |=
-	(rctl->flags & rctl->mask);
+	krs_setflags(kr,
+		 rctl->flags, rctl->mask);
 }
-
 kr = kr->list.le_next;
 			}
 			mutex_spin_exit(&rndpool_mtx);
@@ -755,9 +766,7 @@ rnd_ioctl(struct file *fp, u_long cmd, v
 			if (strncmp(kr->name, rctl->name,
 MIN(sizeof(kr->name),
 sizeof(rctl->name))) == 0) {
-kr->flags &= ~rctl->mask;
-kr->flags |= (rctl->flags & rctl->mask);
-
+krs_setflags(kr, rctl->flags, rctl->mask);
 mutex_spin_exit(&rndpool_mtx);
 return (0);
 			}

Index: src/sys/kern/kern_rndq.c
diff -u src/sys/kern/kern_rndq.c:1.27 src/sys/kern/kern_rndq.c:1.28
--- src/sys/kern/kern_rndq.c:1.27	Mon Aug 11 14:07:55 2014
+++ src/sys/kern/kern_rndq.c	Sun Oct 26 18:22:32 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_rndq.c,v 1.27 2014/08/11 14:07:55 riastradh Exp $	*/
+/*	$NetBSD: kern_rndq.c,v 1.28 2014/10/26 18:22:32 tls Exp $	*/
 
 /*-
  * Copyright (c) 1997-2013 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.27 2014/08/11 14:07:55 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.28 2014/10/26 18:22:32 tls Exp $");
 
 #include 
 #include 
@@ -160,7 +160,7 @@ static krndsource_t rnd_source_anonymous
 krndsource_t rnd_printf_source, rnd_autoconf_source;
 
 void *rnd_process, *rnd_wakeup;
-struct callout skew_callout;
+stru

CVS commit: src/sys/dev/iscsi

2014-09-24 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Thu Sep 25 00:30:45 UTC 2014

Modified Files:
src/sys/dev/iscsi: iscsi_send.c

Log Message:
The "throttling" code in the in-kernel iSCSI initiator is very questionable;
it sleeps on a ccb that appears highly unlikely to wake up, since it seems
to be waiting to _submit_ that very ccb!  This is doubtless why someone tried
to disable it in the default case via several #defines.

Unfortunately one of those #defines is later tested backwards.  Fix that.
The in-kernel initiator now seems to survive a system build without hanging.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/iscsi/iscsi_send.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/iscsi/iscsi_send.c
diff -u src/sys/dev/iscsi/iscsi_send.c:1.9 src/sys/dev/iscsi/iscsi_send.c:1.10
--- src/sys/dev/iscsi/iscsi_send.c:1.9	Fri Sep  5 09:27:34 2014
+++ src/sys/dev/iscsi/iscsi_send.c	Thu Sep 25 00:30:45 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: iscsi_send.c,v 1.9 2014/09/05 09:27:34 matt Exp $	*/
+/*	$NetBSD: iscsi_send.c,v 1.10 2014/09/25 00:30:45 tls Exp $	*/
 
 /*-
  * Copyright (c) 2004,2005,2006,2011 The NetBSD Foundation, Inc.
@@ -1378,7 +1378,7 @@ send_command(ccb_t *ccb, ccb_disp_t disp
 
 	s = splbio();
 	while (/*CONSTCOND*/ISCSI_THROTTLING_ENABLED &&
-	/*CONSTCOND*/ISCSI_SERVER_TRUSTED &&
+	/*CONSTCOND*/!ISCSI_SERVER_TRUSTED &&
 	!sn_a_le_b(sess->CmdSN, sess->MaxCmdSN)) {
 
 		ccb->disp = disp;



CVS commit: [tls-earlyentropy] src/sys/rump/librump/rumpkern/opt

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 15:59:38 UTC 2014

Added Files:
src/sys/rump/librump/rumpkern/opt [tls-earlyentropy]: opt_rnd_printf.h

Log Message:
two kernel configuration frameworks must be twice as awesome as one, right?


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1.2.1 src/sys/rump/librump/rumpkern/opt/opt_rnd_printf.h

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

Added files:

Index: src/sys/rump/librump/rumpkern/opt/opt_rnd_printf.h
diff -u /dev/null src/sys/rump/librump/rumpkern/opt/opt_rnd_printf.h:1.1.2.1
--- /dev/null	Sun Aug 10 15:59:38 2014
+++ src/sys/rump/librump/rumpkern/opt/opt_rnd_printf.h	Sun Aug 10 15:59:38 2014
@@ -0,0 +1 @@
+/*	$NetBSD: opt_rnd_printf.h,v 1.1.2.1 2014/08/10 15:59:38 tls Exp $ */



CVS commit: [tls-earlyentropy] src/sys/kern

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 08:30:18 UTC 2014

Modified Files:
src/sys/kern [tls-earlyentropy]: kern_rndpool.c

Log Message:
Fix rndctl accounting.


To generate a diff of this commit:
cvs rdiff -u -r1.5.2.1 -r1.5.2.2 src/sys/kern/kern_rndpool.c

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

Modified files:

Index: src/sys/kern/kern_rndpool.c
diff -u src/sys/kern/kern_rndpool.c:1.5.2.1 src/sys/kern/kern_rndpool.c:1.5.2.2
--- src/sys/kern/kern_rndpool.c:1.5.2.1	Mon Apr  7 02:00:00 2014
+++ src/sys/kern/kern_rndpool.c	Sun Aug 10 08:30:18 2014
@@ -1,4 +1,4 @@
-/*  $NetBSD: kern_rndpool.c,v 1.5.2.1 2014/04/07 02:00:00 tls Exp $*/
+/*  $NetBSD: kern_rndpool.c,v 1.5.2.2 2014/08/10 08:30:18 tls Exp $*/
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: kern_rndpool.c,v 1.5.2.1 2014/04/07 02:00:00 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_rndpool.c,v 1.5.2.2 2014/08/10 08:30:18 tls Exp $");
 
 #include 
 #include 
@@ -88,7 +88,17 @@ rndpool_get_entropy_count(rndpool_t *rp)
 void
 rndpool_set_entropy_count(rndpool_t *rp, u_int32_t count)
 {
+	int32_t difference = count - rp->stats.curentropy;
+
+	if (__predict_true(difference > 0)) {
+		rp->stats.added += difference;
+	}
+
 	rp->stats.curentropy = count;
+	if (rp->stats.curentropy > RND_POOLBITS) {
+		rp->stats.discarded += (rp->stats.curentropy - RND_POOLBITS);
+		rp->stats.curentropy = RND_POOLBITS;
+	}
 }
 
 void rndpool_get_stats(rndpool_t *rp, void *rsp, int size)



CVS commit: [tls-earlyentropy] src/sys

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 08:10:31 UTC 2014

Modified Files:
src/sys/conf [tls-earlyentropy]: files
src/sys/kern [tls-earlyentropy]: init_main.c subr_prf.c

Log Message:
The printf entropy source seems to have a lock-recursion problem.
Temporarily disable it unless options RND_PRINTF is set.


To generate a diff of this commit:
cvs rdiff -u -r1.1090.2.3 -r1.1090.2.4 src/sys/conf/files
cvs rdiff -u -r1.454.2.3 -r1.454.2.4 src/sys/kern/init_main.c
cvs rdiff -u -r1.153.2.3 -r1.153.2.4 src/sys/kern/subr_prf.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/conf/files
diff -u src/sys/conf/files:1.1090.2.3 src/sys/conf/files:1.1090.2.4
--- src/sys/conf/files:1.1090.2.3	Sun Aug 10 06:54:36 2014
+++ src/sys/conf/files	Sun Aug 10 08:10:31 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: files,v 1.1090.2.3 2014/08/10 06:54:36 tls Exp $
+#	$NetBSD: files,v 1.1090.2.4 2014/08/10 08:10:31 tls Exp $
 #	@(#)files.newconf	7.5 (Berkeley) 5/10/93
 
 version 	20100430
@@ -116,6 +116,9 @@ defflag	opt_gre.h		GRE_DEBUG
 defflag opt_wapbl.h		WAPBL WAPBL_DEBUG
 defparam opt_wapbl.h		WAPBL_DEBUG_PRINT
 
+# printf entropy source
+defflag opt_rnd_printf.h	RND_PRINTF
+
 # compatibility options
 #
 defflag opt_compat_netbsd.h	COMPAT_NETBSD

Index: src/sys/kern/init_main.c
diff -u src/sys/kern/init_main.c:1.454.2.3 src/sys/kern/init_main.c:1.454.2.4
--- src/sys/kern/init_main.c:1.454.2.3	Sun Aug 10 06:55:58 2014
+++ src/sys/kern/init_main.c	Sun Aug 10 08:10:31 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: init_main.c,v 1.454.2.3 2014/08/10 06:55:58 tls Exp $	*/
+/*	$NetBSD: init_main.c,v 1.454.2.4 2014/08/10 08:10:31 tls Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.454.2.3 2014/08/10 06:55:58 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.454.2.4 2014/08/10 08:10:31 tls Exp $");
 
 #include "opt_ddb.h"
 #include "opt_ipsec.h"
@@ -112,6 +112,7 @@ __KERNEL_RCSID(0, "$NetBSD: init_main.c,
 #include "opt_compat_netbsd.h"
 #include "opt_wapbl.h"
 #include "opt_ptrace.h"
+#include "opt_rnd_printf.h"
 
 #include "drvctl.h"
 #include "ksyms.h"
@@ -529,8 +530,10 @@ main(void)
 	/* Enable deferred processing of RNG samples */
 	rnd_init_softint();
 
+#ifdef RND_PRINTF
 	/* Enable periodic injection of console output into entropy pool */
 	kprintf_init_callout();
+#endif
 
 #ifdef SYSVSHM
 	/* Initialize System V style shared memory. */

Index: src/sys/kern/subr_prf.c
diff -u src/sys/kern/subr_prf.c:1.153.2.3 src/sys/kern/subr_prf.c:1.153.2.4
--- src/sys/kern/subr_prf.c:1.153.2.3	Thu Jul 17 14:03:33 2014
+++ src/sys/kern/subr_prf.c	Sun Aug 10 08:10:31 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: subr_prf.c,v 1.153.2.3 2014/07/17 14:03:33 tls Exp $	*/
+/*	$NetBSD: subr_prf.c,v 1.153.2.4 2014/08/10 08:10:31 tls Exp $	*/
 
 /*-
  * Copyright (c) 1986, 1988, 1991, 1993
@@ -37,12 +37,13 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v 1.153.2.3 2014/07/17 14:03:33 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v 1.153.2.4 2014/08/10 08:10:31 tls Exp $");
 
 #include "opt_ddb.h"
 #include "opt_ipkdb.h"
 #include "opt_kgdb.h"
 #include "opt_dump.h"
+#include "opt_rnd_printf.h"
 
 #include 
 #include 
@@ -75,7 +76,7 @@ __KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v
 #endif
 
 static kmutex_t kprintf_mtx;
-static bool kprintf_inited = false, kprintf_inited_callout = false;
+static bool kprintf_inited = false;
 
 #ifdef KGDB
 #include 
@@ -113,11 +114,14 @@ long	panicstart, panicend;	/* position i
    end of the formatted panicstr. */
 int	doing_shutdown;	/* set to indicate shutdown in progress */
 
+#ifdef RND_PRINTF
+static bool kprintf_inited_callout = false;
 static SHA512_CTX kprnd_sha;
 static uint8_t kprnd_accum[SHA512_DIGEST_LENGTH];
 static int kprnd_added;
 
 static struct callout kprnd_callout;
+#endif
 
 #ifndef	DUMP_ON_PANIC
 #define	DUMP_ON_PANIC	1
@@ -142,6 +146,7 @@ const char HEXDIGITS[] = "0123456789ABCD
  * functions
  */
 
+#ifdef RND_PRINTF
 static void kprintf_rnd_get(size_t bytes, void *priv)
 {
 	if (kprnd_added)  {
@@ -167,6 +172,8 @@ static void kprintf_rnd_callout(void *ar
 	callout_schedule(&kprnd_callout, hz);
 }
 
+#endif
+
 /*
  * Locking is inited fairly early in MI bootstrap.  Before that
  * prints are done unlocked.  But that doesn't really matter,
@@ -177,11 +184,14 @@ kprintf_init(void)
 {
 
 	KASSERT(!kprintf_inited && cold); /* not foolproof, but ... */
+#ifdef RND_PRINTF
 	SHA512_Init(&kprnd_sha);
+#endif
 	mutex_init(&kprintf_mtx, MUTEX_DEFAULT, IPL_HIGH);
 	kprintf_inited = true;
 }
 
+#ifdef RND_PRINTF
 void
 kprintf_init_callout(void)
 {
@@ -191,6 +201,7 @@ kprintf_init_callout(void)
 	callout_schedule(&kprnd_callout, hz);
 	kprintf_inited_callout = true;
 }
+#endif
 
 void
 kprintf_lock(void)
@@ -450,9 +461,10 @@ addlog(const char *fmt, ...)
 static void
 putchar(

CVS commit: [tls-earlyentropy] src

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:27:19 UTC 2014

Modified Files:
src [tls-earlyentropy]: BUILDING Makefile UPDATING build.sh
Removed Files:
src/gnu/dist/gcc4 [tls-earlyentropy]: ABOUT-NLS COPYING COPYING.LIB
ChangeLog ChangeLog.tree-ssa MAINTAINERS Makefile.def Makefile.in
Makefile.tpl README README.SCO compile config-ml.in config.guess
config.rpath config.sub configure configure.in depcomp install-sh
libtool.m4 ltcf-c.sh ltcf-cxx.sh ltconfig ltmain.sh missing mkdep
mkinstalldirs move-if-change symlink-tree ylwrap
src/gnu/dist/gcc4/gcc [tls-earlyentropy]: ABOUT-GCC-NLS BASE-VER
COPYING COPYING.LIB ChangeLog ChangeLog-1997 ChangeLog-1998
ChangeLog-1999 ChangeLog-2000 ChangeLog-2001 ChangeLog-2002
ChangeLog-2003 ChangeLog-2004 ChangeLog-2005 ChangeLog.lib
ChangeLog.tree-ssa DATESTAMP DEV-PHASE FSFChangeLog FSFChangeLog.10
FSFChangeLog.11 LANGUAGES Makefile.in ONEWS README.Portability
SERVICE acinclude.m4 aclocal.m4 alias.c alias.h alloc-pool.c
alloc-pool.h attribs.c basic-block.h bb-reorder.c bitmap.c bitmap.h
bt-load.c builtin-attrs.def builtin-types.def builtins.c
builtins.def c-aux-info.c c-common.c c-common.def c-common.h
c-config-lang.in c-convert.c c-cppbuiltin.c c-decl.c c-dump.c
c-errors.c c-format.c c-format.h c-gimplify.c c-incpath.c
c-incpath.h c-lang.c c-lex.c c-objc-common.c c-objc-common.h
c-opts.c c-parser.c c-pch.c c-ppoutput.c c-pragma.c c-pragma.h
c-pretty-print.c c-pretty-print.h c-semantics.c c-tree.h c-typeck.c
c.opt caller-save.c calls.c cfg.c cfganal.c cfgbuild.c cfgcleanup.c
cfgexpand.c cfghooks.c cfghooks.h cfglayout.c cfglayout.h cfgloop.c
cfgloop.h cfgloopanal.c cfgloopmanip.c cfgrtl.c cgraph.c cgraph.h
cgraphunit.c collect2.c collect2.h combine.c common.opt
conditions.h config.build config.gcc config.host config.in
configure configure.ac conflict.c convert.c convert.h coretypes.h
coverage.c coverage.h cppdefault.c cppdefault.h cppspec.c
crtstuff.c cse.c cselib.c cselib.h cstamp-h.in dbxout.c dbxout.h
ddg.c ddg.h debug.c debug.h defaults.h df.c df.h diagnostic.c
diagnostic.def diagnostic.h dojump.c dominance.c domwalk.c
domwalk.h dummy-checksum.c dummy-conditions.c dwarf.h dwarf2.h
dwarf2asm.c dwarf2asm.h dwarf2out.c dwarf2out.h emit-rtl.c
emit-rtl.h errors.c errors.h et-forest.c et-forest.h except.c
except.h explow.c expmed.c expr.c expr.h final.c fix-header.c
fixproto flags.h flow.c fold-const.c fp-test.c function.c
function.h gbl-ctors.h gcc.c gcc.h gccbug.in gccspec.c gcov-dump.c
gcov-io.c gcov-io.h gcov-iov.c gcov.c gcse.c gdbinit.in
gen-protos.c genattr.c genattrtab.c genattrtab.h genautomata.c
gencheck.c genchecksum.c gencodes.c genconditions.c genconfig.c
genconstants.c genemit.c genextract.c genflags.c gengenrtl.c
gengtype-lex.c gengtype-lex.l gengtype-yacc.c gengtype-yacc.h
gengtype-yacc.y gengtype.c gengtype.h genmddeps.c genmodes.c
genmultilib genopinit.c genoutput.c genpeep.c genpreds.c genrecog.c
gensupport.c gensupport.h ggc-common.c ggc-none.c ggc-page.c
ggc-zone.c ggc.h gimple-low.c gimplify.c glimits.h global.c graph.c
graph.h gstab.h gsyms.h gsyslimits.h gthr-aix.h gthr-dce.h
gthr-gnat.c gthr-gnat.h gthr-lynx.h gthr-nks.h gthr-posix.c
gthr-posix.h gthr-posix95.h gthr-rtems.h gthr-single.h
gthr-solaris.h gthr-tpf.h gthr-vxworks.h gthr-win32.h gthr.h
haifa-sched.c hard-reg-set.h hooks.c hooks.h host-default.c
hosthooks-def.h hosthooks.h hwint.h ifcvt.c input.h insn-addr.h
insn-notes.def integrate.c integrate.h intl.c intl.h ipa-cp.c
ipa-inline.c ipa-prop.c ipa-prop.h ipa-pure-const.c ipa-reference.c
ipa-reference.h ipa-type-escape.c ipa-type-escape.h ipa-utils.c
ipa-utils.h ipa.c jump.c lambda-code.c lambda-mat.c lambda-trans.c
lambda.h langhooks-def.h langhooks.c langhooks.h lcm.c libada-mk.in
libfuncs.h libgcc-std.ver libgcc2.c libgcc2.h libgcov.c limitx.h
limity.h lists.c local-alloc.c longlong.h loop-doloop.c loop-init.c
loop-invariant.c loop-iv.c loop-unroll.c loop-unswitch.c loop.c
machmode.def machmode.h main.c mips-tdump.c mips-tfile.c
mkconfig.sh mklibgcc.in mkmap-flat.awk mkmap-symver.awk
mode-classes.def mode-switching.c modulo-sched.c opt-functions.awk
opt-gather.awk optabs.c optabs.h optc-gen.awk opth-gen.awk opts.c
opts.h output.h params.c params.def

CVS commit: [tls-earlyentropy] src/gnu/dist/gcc4/maintainer-scripts

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:25:54 UTC 2014

Removed Files:
src/gnu/dist/gcc4/maintainer-scripts [tls-earlyentropy]: ChangeLog
README crontab doc_exclude gcc_release maintainer-addresses
update_version update_version_svn update_web_docs
update_web_docs_libstdcxx update_web_docs_libstdcxx_svn
update_web_docs_svn

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r0 src/gnu/dist/gcc4/maintainer-scripts/ChangeLog
cvs rdiff -u -r1.1.1.1 -r0 src/gnu/dist/gcc4/maintainer-scripts/README \
src/gnu/dist/gcc4/maintainer-scripts/crontab \
src/gnu/dist/gcc4/maintainer-scripts/doc_exclude \
src/gnu/dist/gcc4/maintainer-scripts/gcc_release \
src/gnu/dist/gcc4/maintainer-scripts/maintainer-addresses \
src/gnu/dist/gcc4/maintainer-scripts/update_version \
src/gnu/dist/gcc4/maintainer-scripts/update_version_svn \
src/gnu/dist/gcc4/maintainer-scripts/update_web_docs \
src/gnu/dist/gcc4/maintainer-scripts/update_web_docs_libstdcxx \
src/gnu/dist/gcc4/maintainer-scripts/update_web_docs_libstdcxx_svn \
src/gnu/dist/gcc4/maintainer-scripts/update_web_docs_svn

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



CVS commit: [tls-earlyentropy] src/gnu/dist/gcc4/gcc/treelang

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:24:44 UTC 2014

Removed Files:
src/gnu/dist/gcc4/gcc/treelang [tls-earlyentropy]: ChangeLog
Make-lang.in README config-lang.in lang-specs.h lang.opt lex.l
parse.y spec.c tree-convert.c tree1.c treelang.h treelang.texi
treetree.c treetree.h

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r0 src/gnu/dist/gcc4/gcc/treelang/ChangeLog
cvs rdiff -u -r1.1.1.2 -r0 src/gnu/dist/gcc4/gcc/treelang/Make-lang.in
cvs rdiff -u -r1.1.1.1 -r0 src/gnu/dist/gcc4/gcc/treelang/README \
src/gnu/dist/gcc4/gcc/treelang/config-lang.in \
src/gnu/dist/gcc4/gcc/treelang/lang-specs.h \
src/gnu/dist/gcc4/gcc/treelang/lang.opt \
src/gnu/dist/gcc4/gcc/treelang/lex.l \
src/gnu/dist/gcc4/gcc/treelang/parse.y \
src/gnu/dist/gcc4/gcc/treelang/spec.c \
src/gnu/dist/gcc4/gcc/treelang/tree-convert.c \
src/gnu/dist/gcc4/gcc/treelang/tree1.c \
src/gnu/dist/gcc4/gcc/treelang/treelang.h \
src/gnu/dist/gcc4/gcc/treelang/treelang.texi \
src/gnu/dist/gcc4/gcc/treelang/treetree.c \
src/gnu/dist/gcc4/gcc/treelang/treetree.h

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



CVS commit: [tls-earlyentropy] src/gnu/dist/gcc4/libiberty

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:24:53 UTC 2014

Removed Files:
src/gnu/dist/gcc4/libiberty [tls-earlyentropy]: COPYING.LIB ChangeLog
Makefile.in README _doprnt.c aclocal.m4 alloca.c argv.c asprintf.c
at-file.texi atexit.c basename.c bcmp.c bcopy.c bsearch.c bzero.c
calloc.c choose-temp.c clock.c concat.c config.h-vms config.in
configure configure.ac copying-lib.texi copysign.c cp-demangle.c
cp-demangle.h cp-demint.c cplus-dem.c dyn-string.c fdmatch.c ffs.c
fibheap.c floatformat.c fnmatch.c fnmatch.txh fopen_unlocked.c
functions.texi gather-docs getcwd.c getopt.c getopt1.c
getpagesize.c getpwd.c getruntime.c gettimeofday.c hashtab.c hex.c
index.c insque.c lbasename.c libiberty.texi lrealpath.c maint-tool
make-relative-prefix.c make-temp-file.c makefile.vms md5.c memchr.c
memcmp.c memcpy.c memmove.c mempcpy.c memset.c mkstemps.c msdos.c
objalloc.c obstack.c obstacks.texi partition.c pex-common.c
pex-common.h pex-djgpp.c pex-msdos.c pex-one.c pex-unix.c
pex-win32.c pexecute.c pexecute.txh physmem.c putenv.c random.c
regex.c rename.c rindex.c safe-ctype.c setenv.c sigsetmask.c
snprintf.c sort.c spaces.c splay-tree.c stpcpy.c stpncpy.c
strcasecmp.c strchr.c strdup.c strerror.c strncasecmp.c strncmp.c
strndup.c strrchr.c strsignal.c strstr.c strtod.c strtol.c
strtoul.c strverscmp.c ternary.c tmpnam.c unlink-if-ordinary.c
vasprintf.c vfork.c vfprintf.c vmsbuild.com vprintf.c vsnprintf.c
vsprintf.c waitpid.c xatexit.c xexit.c xmalloc.c xmemdup.c
xstrdup.c xstrerror.c xstrndup.c
src/gnu/dist/gcc4/libiberty/config [tls-earlyentropy]: mh-aix mh-cxux7
mh-fbsd21 mh-openedition mh-windows
src/gnu/dist/gcc4/libiberty/testsuite [tls-earlyentropy]: Makefile.in
demangle-expected test-demangle.c test-pexecute.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r0 src/gnu/dist/gcc4/libiberty/COPYING.LIB \
src/gnu/dist/gcc4/libiberty/README src/gnu/dist/gcc4/libiberty/_doprnt.c \
src/gnu/dist/gcc4/libiberty/aclocal.m4 \
src/gnu/dist/gcc4/libiberty/alloca.c src/gnu/dist/gcc4/libiberty/argv.c \
src/gnu/dist/gcc4/libiberty/asprintf.c \
src/gnu/dist/gcc4/libiberty/at-file.texi \
src/gnu/dist/gcc4/libiberty/atexit.c \
src/gnu/dist/gcc4/libiberty/basename.c src/gnu/dist/gcc4/libiberty/bcmp.c \
src/gnu/dist/gcc4/libiberty/bcopy.c src/gnu/dist/gcc4/libiberty/bsearch.c \
src/gnu/dist/gcc4/libiberty/bzero.c src/gnu/dist/gcc4/libiberty/calloc.c \
src/gnu/dist/gcc4/libiberty/choose-temp.c \
src/gnu/dist/gcc4/libiberty/clock.c src/gnu/dist/gcc4/libiberty/concat.c \
src/gnu/dist/gcc4/libiberty/config.h-vms \
src/gnu/dist/gcc4/libiberty/config.in \
src/gnu/dist/gcc4/libiberty/configure \
src/gnu/dist/gcc4/libiberty/configure.ac \
src/gnu/dist/gcc4/libiberty/copying-lib.texi \
src/gnu/dist/gcc4/libiberty/copysign.c \
src/gnu/dist/gcc4/libiberty/cp-demangle.c \
src/gnu/dist/gcc4/libiberty/cp-demangle.h \
src/gnu/dist/gcc4/libiberty/cp-demint.c \
src/gnu/dist/gcc4/libiberty/cplus-dem.c \
src/gnu/dist/gcc4/libiberty/dyn-string.c \
src/gnu/dist/gcc4/libiberty/fdmatch.c src/gnu/dist/gcc4/libiberty/ffs.c \
src/gnu/dist/gcc4/libiberty/fibheap.c \
src/gnu/dist/gcc4/libiberty/fnmatch.c \
src/gnu/dist/gcc4/libiberty/fnmatch.txh \
src/gnu/dist/gcc4/libiberty/fopen_unlocked.c \
src/gnu/dist/gcc4/libiberty/functions.texi \
src/gnu/dist/gcc4/libiberty/gather-docs \
src/gnu/dist/gcc4/libiberty/getcwd.c src/gnu/dist/gcc4/libiberty/getopt.c \
src/gnu/dist/gcc4/libiberty/getopt1.c \
src/gnu/dist/gcc4/libiberty/getpagesize.c \
src/gnu/dist/gcc4/libiberty/getpwd.c \
src/gnu/dist/gcc4/libiberty/getruntime.c \
src/gnu/dist/gcc4/libiberty/gettimeofday.c \
src/gnu/dist/gcc4/libiberty/hashtab.c src/gnu/dist/gcc4/libiberty/hex.c \
src/gnu/dist/gcc4/libiberty/index.c src/gnu/dist/gcc4/libiberty/insque.c \
src/gnu/dist/gcc4/libiberty/lbasename.c \
src/gnu/dist/gcc4/libiberty/libiberty.texi \
src/gnu/dist/gcc4/libiberty/lrealpath.c \
src/gnu/dist/gcc4/libiberty/maint-tool \
src/gnu/dist/gcc4/libiberty/make-relative-prefix.c \
src/gnu/dist/gcc4/libiberty/make-temp-file.c \
src/gnu/dist/gcc4/libiberty/makefile.vms \
src/gnu/dist/gcc4/libiberty/md5.c src/gnu/dist/gcc4/libiberty/memchr.c \
src/gnu/dist/gcc4/libiberty/memcmp.c src/gnu/dist/gcc4/libiberty/memcpy.c \
src/gnu/dist/gcc4/libiberty/memmove.c \
src/gnu/dist/gcc4/libiberty/mempcpy.c \
src/gnu/dist/gcc4/libiberty/memset.c \
src/gnu/dist/gcc4/libiberty/mkstemps.c \
src/gnu/dist/gcc4/libiberty/msdos.c \
src/gnu/dist/gcc4/libiberty/objalloc.

CVS commit: [tls-earlyentropy] src/gnu/dist/gcc4/INSTALL

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:24:50 UTC 2014

Removed Files:
src/gnu/dist/gcc4/INSTALL [tls-earlyentropy]: README

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r0 src/gnu/dist/gcc4/INSTALL/README

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



CVS commit: [tls-earlyentropy] src/gnu/dist/gcc4/gcc/testsuite/treelang

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:24:41 UTC 2014

Removed Files:
src/gnu/dist/gcc4/gcc/testsuite/treelang [tls-earlyentropy]: ChangeLog
Makefile.in
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile [tls-earlyentropy]:
autofunc.tree badchar.tree badreturn.tree compile.exp exit.tree
externvar.tree extrafunc.tree extravar.tree extref.tree
full_unit.tree function-1.tree memory.tree mismatch.tree
noproto.tree novar.tree syntax-1.tree tabs.tree unsigned.tree
var_defs-2.tree var_defs.tree
src/gnu/dist/gcc4/gcc/testsuite/treelang/execute [tls-earlyentropy]:
execute.exp funccall-2.tree funccall.tree initial.tree main.tree
static.tree
src/gnu/dist/gcc4/gcc/testsuite/treelang/output [tls-earlyentropy]:
output-1.c output-1.out output-1.tree output.exp

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r0 src/gnu/dist/gcc4/gcc/testsuite/treelang/ChangeLog
cvs rdiff -u -r1.1.1.1 -r0 \
src/gnu/dist/gcc4/gcc/testsuite/treelang/Makefile.in
cvs rdiff -u -r1.1.1.1 -r0 \
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile/autofunc.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile/badchar.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile/badreturn.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile/compile.exp \
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile/exit.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile/externvar.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile/extrafunc.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile/extravar.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile/extref.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile/full_unit.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile/function-1.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile/memory.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile/mismatch.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile/noproto.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile/novar.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile/syntax-1.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile/tabs.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile/unsigned.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile/var_defs-2.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/compile/var_defs.tree
cvs rdiff -u -r1.1.1.1 -r0 \
src/gnu/dist/gcc4/gcc/testsuite/treelang/execute/execute.exp \
src/gnu/dist/gcc4/gcc/testsuite/treelang/execute/funccall-2.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/execute/funccall.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/execute/initial.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/execute/main.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/execute/static.tree
cvs rdiff -u -r1.1.1.1 -r0 \
src/gnu/dist/gcc4/gcc/testsuite/treelang/output/output-1.c \
src/gnu/dist/gcc4/gcc/testsuite/treelang/output/output-1.out \
src/gnu/dist/gcc4/gcc/testsuite/treelang/output/output-1.tree \
src/gnu/dist/gcc4/gcc/testsuite/treelang/output/output.exp

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



CVS commit: [tls-earlyentropy] src/gnu/dist/gcc4/include

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:24:47 UTC 2014

Removed Files:
src/gnu/dist/gcc4/include [tls-earlyentropy]: COPYING ChangeLog
ChangeLog-9103 ansidecl.h demangle.h dyn-string.h fibheap.h
filenames.h floatformat.h fnmatch.h getopt.h hashtab.h libiberty.h
md5.h objalloc.h obstack.h partition.h safe-ctype.h sort.h
splay-tree.h symcat.h ternary.h xregex.h xregex2.h xtensa-config.h

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r0 src/gnu/dist/gcc4/include/COPYING \
src/gnu/dist/gcc4/include/ChangeLog-9103 \
src/gnu/dist/gcc4/include/ansidecl.h \
src/gnu/dist/gcc4/include/dyn-string.h \
src/gnu/dist/gcc4/include/fibheap.h src/gnu/dist/gcc4/include/filenames.h \
src/gnu/dist/gcc4/include/floatformat.h \
src/gnu/dist/gcc4/include/fnmatch.h src/gnu/dist/gcc4/include/getopt.h \
src/gnu/dist/gcc4/include/hashtab.h src/gnu/dist/gcc4/include/libiberty.h \
src/gnu/dist/gcc4/include/md5.h src/gnu/dist/gcc4/include/objalloc.h \
src/gnu/dist/gcc4/include/obstack.h src/gnu/dist/gcc4/include/partition.h \
src/gnu/dist/gcc4/include/safe-ctype.h src/gnu/dist/gcc4/include/sort.h \
src/gnu/dist/gcc4/include/splay-tree.h src/gnu/dist/gcc4/include/symcat.h \
src/gnu/dist/gcc4/include/ternary.h src/gnu/dist/gcc4/include/xregex.h \
src/gnu/dist/gcc4/include/xregex2.h \
src/gnu/dist/gcc4/include/xtensa-config.h
cvs rdiff -u -r1.1.1.3 -r0 src/gnu/dist/gcc4/include/ChangeLog
cvs rdiff -u -r1.1.1.2 -r0 src/gnu/dist/gcc4/include/demangle.h

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



CVS commit: [tls-earlyentropy] src/gnu/dist/gcc4/libcpp

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:24:51 UTC 2014

Removed Files:
src/gnu/dist/gcc4/libcpp [tls-earlyentropy]: ChangeLog Makefile.in
aclocal.m4 charset.c config.in configure configure.ac directives.c
errors.c expr.c files.c identifiers.c init.c internal.h lex.c
line-map.c macro.c makedepend.c makeucnid.c mkdeps.c pch.c symtab.c
system.h traditional.c ucnid.h ucnid.tab
src/gnu/dist/gcc4/libcpp/include [tls-earlyentropy]: cpp-id-data.h
cpplib.h line-map.h mkdeps.h symtab.h
src/gnu/dist/gcc4/libcpp/po [tls-earlyentropy]: ChangeLog be.po ca.po
cpplib.pot da.po de.po el.po es.po fr.po ja.po nl.po rw.po sv.po
tr.po vi.po zh_CN.po zh_TW.po

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.4 -r0 src/gnu/dist/gcc4/libcpp/ChangeLog
cvs rdiff -u -r1.2 -r0 src/gnu/dist/gcc4/libcpp/Makefile.in \
src/gnu/dist/gcc4/libcpp/configure src/gnu/dist/gcc4/libcpp/configure.ac \
src/gnu/dist/gcc4/libcpp/files.c src/gnu/dist/gcc4/libcpp/internal.h \
src/gnu/dist/gcc4/libcpp/lex.c
cvs rdiff -u -r1.1.1.1 -r0 src/gnu/dist/gcc4/libcpp/aclocal.m4 \
src/gnu/dist/gcc4/libcpp/charset.c src/gnu/dist/gcc4/libcpp/config.in \
src/gnu/dist/gcc4/libcpp/errors.c src/gnu/dist/gcc4/libcpp/expr.c \
src/gnu/dist/gcc4/libcpp/identifiers.c \
src/gnu/dist/gcc4/libcpp/line-map.c src/gnu/dist/gcc4/libcpp/makedepend.c \
src/gnu/dist/gcc4/libcpp/makeucnid.c src/gnu/dist/gcc4/libcpp/pch.c \
src/gnu/dist/gcc4/libcpp/symtab.c src/gnu/dist/gcc4/libcpp/system.h \
src/gnu/dist/gcc4/libcpp/traditional.c src/gnu/dist/gcc4/libcpp/ucnid.h \
src/gnu/dist/gcc4/libcpp/ucnid.tab
cvs rdiff -u -r1.1.1.2 -r0 src/gnu/dist/gcc4/libcpp/directives.c \
src/gnu/dist/gcc4/libcpp/mkdeps.c
cvs rdiff -u -r1.3 -r0 src/gnu/dist/gcc4/libcpp/init.c
cvs rdiff -u -r1.4 -r0 src/gnu/dist/gcc4/libcpp/macro.c
cvs rdiff -u -r1.1.1.1 -r0 src/gnu/dist/gcc4/libcpp/include/cpp-id-data.h \
src/gnu/dist/gcc4/libcpp/include/line-map.h \
src/gnu/dist/gcc4/libcpp/include/mkdeps.h \
src/gnu/dist/gcc4/libcpp/include/symtab.h
cvs rdiff -u -r1.3 -r0 src/gnu/dist/gcc4/libcpp/include/cpplib.h
cvs rdiff -u -r1.1.1.5 -r0 src/gnu/dist/gcc4/libcpp/po/ChangeLog
cvs rdiff -u -r1.1.1.2 -r0 src/gnu/dist/gcc4/libcpp/po/be.po \
src/gnu/dist/gcc4/libcpp/po/ca.po src/gnu/dist/gcc4/libcpp/po/da.po \
src/gnu/dist/gcc4/libcpp/po/el.po src/gnu/dist/gcc4/libcpp/po/es.po \
src/gnu/dist/gcc4/libcpp/po/fr.po src/gnu/dist/gcc4/libcpp/po/ja.po \
src/gnu/dist/gcc4/libcpp/po/nl.po src/gnu/dist/gcc4/libcpp/po/rw.po \
src/gnu/dist/gcc4/libcpp/po/sv.po src/gnu/dist/gcc4/libcpp/po/tr.po \
src/gnu/dist/gcc4/libcpp/po/zh_CN.po src/gnu/dist/gcc4/libcpp/po/zh_TW.po
cvs rdiff -u -r1.1.1.3 -r0 src/gnu/dist/gcc4/libcpp/po/cpplib.pot \
src/gnu/dist/gcc4/libcpp/po/de.po src/gnu/dist/gcc4/libcpp/po/vi.po

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



CVS commit: [tls-earlyentropy] src/gnu/dist/gcc4/gcc/testsuite/lib

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:24:39 UTC 2014

Removed Files:
src/gnu/dist/gcc4/gcc/testsuite/lib [tls-earlyentropy]: c-compat.exp
c-torture.exp compat.exp copy-file.exp dg-pch.exp file-format.exp
fortran-torture.exp g++-dg.exp g++.exp gcc-defs.exp gcc-dg.exp
gcc.exp gcov.exp gfortran-dg.exp gfortran.exp mike-g++.exp
mike-gcc.exp obj-c++-dg.exp obj-c++.exp objc-dg.exp
objc-torture.exp objc.exp profopt.exp prune.exp scanasm.exp
scandump.exp scanipa.exp scanrtl.exp scantree.exp
target-libpath.exp target-supports-dg.exp target-supports.exp
treelang-dg.exp treelang.exp wrapper.exp

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r0 src/gnu/dist/gcc4/gcc/testsuite/lib/c-compat.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/copy-file.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/dg-pch.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/file-format.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/g++-dg.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/gcc.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/gcov.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/gfortran-dg.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/gfortran.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/mike-g++.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/mike-gcc.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/obj-c++-dg.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/objc-dg.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/prune.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/scandump.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/scanipa.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/scanrtl.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/scantree.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/target-libpath.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/treelang-dg.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/treelang.exp
cvs rdiff -u -r1.1.1.2 -r0 src/gnu/dist/gcc4/gcc/testsuite/lib/c-torture.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/compat.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/fortran-torture.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/g++.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/gcc-defs.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/gcc-dg.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/obj-c++.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/objc-torture.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/objc.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/profopt.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/scanasm.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/target-supports-dg.exp \
src/gnu/dist/gcc4/gcc/testsuite/lib/wrapper.exp
cvs rdiff -u -r1.1.1.4 -r0 \
src/gnu/dist/gcc4/gcc/testsuite/lib/target-supports.exp

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



CVS commit: [tls-earlyentropy] src/gnu/dist/gcc4/gcc/testsuite/gcc.target

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:24:35 UTC 2014

Removed Files:
src/gnu/dist/gcc4/gcc/testsuite/gcc.target/alpha [tls-earlyentropy]:
2715-1.c 20011018-1.c 980217-1.c alpha.exp asm-1.c base-1.c
base-2.c cix-1.c cix-2.c max-1.c max-2.c pr19518.c pr24178.c
src/gnu/dist/gcc4/gcc/testsuite/gcc.target/arm [tls-earlyentropy]:
arm.exp pr27387.C stack-corruption.c
src/gnu/dist/gcc4/gcc/testsuite/gcc.target/cris [tls-earlyentropy]:
cris.exp rld-legit1.c rld-legit2.c
src/gnu/dist/gcc4/gcc/testsuite/gcc.target/cris/torture 
[tls-earlyentropy]:
cris-torture.exp no-pro-epi-1.c pr24750-2.c
src/gnu/dist/gcc4/gcc/testsuite/gcc.target/frv [tls-earlyentropy]:
all-accs-1.c all-mclracca-1.c all-mdpackh-1.c all-read-write-1.c
all-tls-global-dynamic.c all-tls-initial-exec-pic.c
all-tls-initial-exec.c all-tls-local-dynamic-plt-pic.c
all-tls-local-dynamic-plt.c all-tls-local-dynamic.c
all-tls-local-exec-TLS.c all-tls-local-exec.c fr400-builtins-1.c
fr400-builtins-2.c fr405-builtins-1.c fr405-builtins-2.c
fr405-builtins-3.c fr450-builtins-1.c fr450-builtins-2.c
fr450-builtins-3.c fr450-builtins-4.c fr450-builtins-5.c
fr450-builtins-6.c fr450-builtins-7.c fr450-builtins-8.c
fr450-builtins-9.c fr550-builtins-1.c fr550-builtins-2.c
fr550-builtins-3.c fr550-builtins-4.c fr550-builtins-5.c frv.exp
src/gnu/dist/gcc4/gcc/testsuite/gcc.target/i386 [tls-earlyentropy]:
2609-1.c 2614-1.c 2614-2.c 2720-1.c 2807-1.c
2904-1.c 20001127-1.c 20010202-1.c 20010520-1.c 20011009-1.c
20011029-2.c 20011107-1.c 2009-1.c 20020201-3.c 20020218-1.c
20020224-1.c 20020426-1.c 20020523-1.c 20020523-2.c 20020531-1.c
20020616-1.c 20020729-1.c 20030217-1.c 20030926-1.c 20040112-1.c
20050113-1.c 20060218-1.c 20060821-1.c 387-1.c 387-2.c 387-3.c
387-4.c 387-5.c 387-6.c 387-7.c 387-8.c 3dnow-1.c 3dnow-2.c
3dnowA-1.c 3dnowA-2.c 980211-1.c 980226-1.c 980414-1.c 980520-1.c
980709-1.c 990117-1.c 990130-1.c 990213-2.c 990214-1.c 990424-1.c
990524-1.c 991129-1.c 991209-1.c 991214-1.c 991230-1.c abi-1.c
amd64-abi-1.c amd64-abi-2.c asm-1.c asm-2.c asm-3.c asm-4.c asm-5.c
attributes-error.c bitfield1.c bitfield2.c bitfield3.c
builtin-apply-mmx.c cadd.c call-1.c clobbers.c cmov1.c cmov2.c
cmov3.c cmov4.c cmov5.c compress-float-387-pic.c
compress-float-387.c compress-float-sse-pic.c compress-float-sse.c
cvt-1.c defines-1.c defines-2.c fastcall-1.c fastcall-sseregparm.c
fpcvt-1.c fpcvt-2.c fpcvt-3.c fpcvt-4.c i386.exp lea.c local.c
local2.c loop-1.c loop-2.c loop-3.c memset-1.c minmax-1.c
minmax-2.c mmx-1.c mmx-2.c mmx-3.c mmx-4.c mmx-5.c mmx-6.c mmx-7.c
movq-2.c movq.c mul.c ordcmp-1.c pentium4-not-mull.c pic-1.c
pr12092-1.c pr13366.c pr13685.c pr14289-1.c pr17692.c pr18614-1.c
pr19236-1.c pr20204.c pr21101.c pr21291.c pr21518.c pr22362.c
pr22432.c pr22576.c pr22585.c pr23098.c pr23268.c pr23376.c
pr23570.c pr23575.c pr23943.c pr24055.c pr24306.c pr24315.c
pr25254.c pr25293.c pr25654.c pr26600.c pr26826.c pr27790.c
pr27827.c pr28946.c pr30848.c pr32389.c pr9771-1.c
regparm-stdcall.c regparm.c rotate-1.c sibcall-5.c signbit-1.c
signbit-2.c signbit-3.c sse-1.c sse-10.c sse-11.c sse-12.c sse-13.c
sse-14.c sse-15.c sse-16.c sse-2.c sse-3.c sse-4.c sse-5.c sse-6.c
sse-7.c sse-8.c sse-9.c sse-vect-types.c ssefn-1.c ssefn-2.c
ssefn-3.c ssefn-4.c ssefp-1.c ssefp-2.c sseregparm-1.c
sseregparm-2.c sseregparm-3.c sseregparm-4.c sseregparm-5.c
sseregparm-6.c sseregparm-7.c ssetype-1.c ssetype-2.c ssetype-3.c
ssetype-4.c ssetype-5.c tailcall-1.c unordcmp-1.c unroll-1.c
vect-args.c volatile-1.c xorps.c
src/gnu/dist/gcc4/gcc/testsuite/gcc.target/ia64 [tls-earlyentropy]:
20010423-1.c 20020313-1.c 20020326-1.c 20030225-2.c 20030405-1.c
20030811-1.c 20040303-1.c asm-1.c float80-1.c float80-2.c
float80-varargs-1.c fpreg-1.c fpreg-2.c fptr-1.c got-1.c ia64.exp
postinc-1.c sibcall-unwind-1.c sibcall-unwind-2.c small-addr-1.c
types-1.c types-2.c visibility-1.c visibility-2.c
src/gnu/dist/gcc4/gcc/testsuite/gcc.target/mips [tls-earlyentropy]:
args-1.c args-2.c args-3.c asm-1.c branch-1.c ext_ins.c
fix-vr4130-1.c fix-vr4130-2.c fix-vr4130-3.c fix-vr4130-4.c
fpcmp-1.c fpcmp-2.c memcpy-1.c mips-3d-1.c mips-3d-2.c mips-3d-3.c
mips-3d-4.c mips-3d-5.c mips-3d-6.c mips-

CVS commit: [tls-earlyentropy] src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:24:37 UTC 2014

Removed Files:
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework [tls-earlyentropy]:
README dg-bogus-exp-P.c dg-bogus-exp-XF.c dg-do-assemble-exp-P.c
dg-do-compile-exp-P.c dg-do-link-exp-P.c dg-do-run-exp-P.c
dg-do-run-sf-exp-F.c dg-do-run-sf-exp-P.c dg-do-run-sft-exp-F.c
dg-do-run-sft-exp-P.c dg-dot-run-exp-P.c dg-dot-run-exp-U.c
dg-dot-run-sif-exp-P.c dg-dot-run-sif-exp-U.c
dg-dot-run-xif-exp-P.c dg-dot-run-xif-exp-XP.c dg-dox-run-exp-XF.c
dg-dox-run-sf-exp-XF.c dg-dox-run-sf-exp-XP.c dg-error-exp-P.c
dg-error-exp-XP.c dg-excess-errors-exp-XF.c
dg-excess-errors-exp-XP.c dg-outexists-exp-F.c dg-outexists-exp-P.c
dg-outexists-exp-XP.c dg-outexistsnot-exp-F.c
dg-outexistsnot-exp-P.c dg-outexistsnot-exp-XF.c dg-output-exp-P.c
dg-output-exp-XF.c dg-warning-exp-P.c gen_directive_tests
test-framework.awk test-framework.exp

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r0 \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/README \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-bogus-exp-P.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-bogus-exp-XF.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-do-assemble-exp-P.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-do-compile-exp-P.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-do-link-exp-P.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-do-run-exp-P.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-do-run-sf-exp-F.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-do-run-sf-exp-P.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-do-run-sft-exp-F.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-do-run-sft-exp-P.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-dot-run-exp-P.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-dot-run-exp-U.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-dot-run-sif-exp-P.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-dot-run-sif-exp-U.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-dot-run-xif-exp-P.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-dot-run-xif-exp-XP.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-dox-run-exp-XF.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-dox-run-sf-exp-XF.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-dox-run-sf-exp-XP.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-error-exp-P.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-error-exp-XP.c \

src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-excess-errors-exp-XF.c \

src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-excess-errors-exp-XP.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-outexists-exp-F.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-outexists-exp-P.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-outexists-exp-XP.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-outexistsnot-exp-F.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-outexistsnot-exp-P.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-outexistsnot-exp-XF.c 
\
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-output-exp-P.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-output-exp-XF.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/dg-warning-exp-P.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/gen_directive_tests \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/test-framework.exp
cvs rdiff -u -r1.1.1.2 -r0 \
src/gnu/dist/gcc4/gcc/testsuite/gcc.test-framework/test-framework.awk

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



CVS commit: [tls-earlyentropy] src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:24:31 UTC 2014

Removed Files:
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests [tls-earlyentropy]:
acker1.c acker1.exp arm-isr.c arm-isr.exp bprob-1.c bprob-2.c
bprob.exp dhry.c dhry.exp dhry.h gcov-1.c gcov-10.c gcov-10b.c
gcov-11.c gcov-2.c gcov-3.c gcov-4.c gcov-4b.c gcov-5b.c gcov-6.c
gcov-7.c gcov-8.c gcov-9.c gcov.exp i386-pf-3dnow-1.c
i386-pf-athlon-1.c i386-pf-none-1.c i386-pf-sse-1.c
i386-prefetch.exp linkage-x.c linkage-y.c linkage.exp matrix1.c
matrix1.exp mg-2.c mg-2.exp mg.c mg.exp options.exp sieve.c
sieve.exp sort2.c sort2.exp

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r0 \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/acker1.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/acker1.exp \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/arm-isr.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/arm-isr.exp \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/bprob-1.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/bprob-2.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/bprob.exp \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/dhry.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/dhry.exp \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/dhry.h \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/gcov-1.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/gcov-10.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/gcov-10b.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/gcov-11.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/gcov-2.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/gcov-3.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/gcov-4.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/gcov-4b.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/gcov-5b.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/gcov-6.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/gcov-7.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/gcov-8.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/gcov-9.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/gcov.exp \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/i386-pf-3dnow-1.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/i386-pf-athlon-1.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/i386-pf-none-1.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/i386-pf-sse-1.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/i386-prefetch.exp \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/linkage-x.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/linkage-y.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/matrix1.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/matrix1.exp \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/mg-2.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/mg-2.exp \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/mg.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/mg.exp \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/options.exp \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/sieve.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/sieve.exp \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/sort2.c \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/sort2.exp
cvs rdiff -u -r1.1.1.2 -r0 \
src/gnu/dist/gcc4/gcc/testsuite/gcc.misc-tests/linkage.exp

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



CVS commit: [tls-earlyentropy] src/gnu/dist/gcc4/gcc/po

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:23:52 UTC 2014

Removed Files:
src/gnu/dist/gcc4/gcc/po [tls-earlyentropy]: ChangeLog EXCLUDES be.po
ca.po da.po de.po el.po es.po exgettext fr.po gcc.pot ja.po nl.po
ru.po rw.po sr.po sv.po tr.po zh_CN.po zh_TW.po

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.7 -r0 src/gnu/dist/gcc4/gcc/po/ChangeLog \
src/gnu/dist/gcc4/gcc/po/sv.po
cvs rdiff -u -r1.1.1.1 -r0 src/gnu/dist/gcc4/gcc/po/EXCLUDES \
src/gnu/dist/gcc4/gcc/po/exgettext src/gnu/dist/gcc4/gcc/po/ru.po \
src/gnu/dist/gcc4/gcc/po/sr.po
cvs rdiff -u -r1.1.1.2 -r0 src/gnu/dist/gcc4/gcc/po/be.po \
src/gnu/dist/gcc4/gcc/po/ca.po src/gnu/dist/gcc4/gcc/po/da.po \
src/gnu/dist/gcc4/gcc/po/el.po src/gnu/dist/gcc4/gcc/po/fr.po \
src/gnu/dist/gcc4/gcc/po/ja.po src/gnu/dist/gcc4/gcc/po/nl.po \
src/gnu/dist/gcc4/gcc/po/rw.po src/gnu/dist/gcc4/gcc/po/zh_CN.po \
src/gnu/dist/gcc4/gcc/po/zh_TW.po
cvs rdiff -u -r1.1.1.3 -r0 src/gnu/dist/gcc4/gcc/po/de.po \
src/gnu/dist/gcc4/gcc/po/es.po src/gnu/dist/gcc4/gcc/po/gcc.pot
cvs rdiff -u -r1.1.1.4 -r0 src/gnu/dist/gcc4/gcc/po/tr.po

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



CVS commit: [tls-earlyentropy] src/gnu/dist/gcc4/gcc/config

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:23:38 UTC 2014

Removed Files:
src/gnu/dist/gcc4/gcc/config [tls-earlyentropy]: README chorus.h
darwin-c.c darwin-crt2.c darwin-protos.h darwin.c darwin.h
darwin.opt dbx.h dbxcoff.h dbxelf.h divmod.c elfos.h fp-bit.c
fp-bit.h freebsd-nthr.h freebsd-spec.h freebsd.h gnu.h gofast.h
host-darwin.c host-darwin.h host-hpux.c host-linux.c host-solaris.c
interix.h interix3.h kaos.h kfreebsd-gnu.h knetbsd-gnu.h
libgcc-glibc.ver libgloss.h linux.h lynx.h lynx.opt memcmp.c
memcpy.c memmove.c memset.c netbsd-aout.h netbsd-elf.h netbsd.h
openbsd-oldgas.h openbsd.h ptx4.h rtems.h sol2-c.c sol2-protos.h
sol2.c sol2.h sol26.h svr3.h svr4.h t-darwin t-freebsd
t-freebsd-thread t-gnu t-libc-ok t-libgcc-pic t-libunwind
t-libunwind-elf t-linux t-lynx t-netbsd t-openbsd t-openbsd-thread
t-rtems t-slibgcc-darwin t-slibgcc-elf-ver t-slibgcc-nolc-override
t-slibgcc-sld t-sol2 t-svr4 t-vxworks tm-dwarf2.h udivmod.c
udivmodsi4.c usegas.h vx-common.h vxlib.c vxworks.h vxworks.opt
vxworksae.h windiss.h x-darwin x-hpux x-interix x-linux x-solaris
src/gnu/dist/gcc4/gcc/config/alpha [tls-earlyentropy]: alpha-modes.def
alpha-protos.h alpha.c alpha.h alpha.md alpha.opt crtfastmath.c
elf.h ev4.md ev5.md ev6.md freebsd.h gnu.h lib1funcs.asm
linux-elf.h linux-unwind.h linux.h netbsd.h openbsd.h osf.h osf5.h
predicates.md qrnnd.asm sync.md t-alpha t-crtfm t-ieee
t-osf-pthread t-osf4 t-unicosmk t-vms t-vms64 unicosmk.h va_list.h
vms-cc.c vms-crt0-64.c vms-crt0.c vms-dwarf2.asm vms-dwarf2eh.asm
vms-ld.c vms-psxcrt0-64.c vms-psxcrt0.c vms-unwind.h vms.h vms64.h
vms_tramp.asm x-vms xm-vms.h
src/gnu/dist/gcc4/gcc/config/arc [tls-earlyentropy]: arc-modes.def
arc-protos.h arc.c arc.h arc.md arc.opt initfini.c lib1funcs.asm
t-arc
src/gnu/dist/gcc4/gcc/config/arm [tls-earlyentropy]:
README-interworking aof.h aout.h arm-cores.def arm-generic.md
arm-modes.def arm-protos.h arm-tune.md arm.c arm.h arm.md arm.opt
arm1020e.md arm1026ejs.md arm1136jfs.md arm926ejs.md bpabi.S
bpabi.c bpabi.h cirrus.md coff.h crti.asm crtn.asm ecos-elf.h elf.h
fpa.md freebsd.h gentune.sh ieee754-df.S ieee754-sf.S iwmmxt.md
kaos-arm.h kaos-strongarm.h lib1funcs.asm libgcc-bpabi.ver
libunwind.S linux-eabi.h linux-elf.h linux-gas.h mmintrin.h
netbsd-elf.h netbsd.h pe.c pe.h pe.opt pr-support.c predicates.md
rtems-elf.h semi.h semiaof.h strongarm-coff.h strongarm-elf.h
strongarm-pe.h symbian.h t-arm t-arm-coff t-arm-elf t-bpabi t-linux
t-linux-eabi t-netbsd t-pe t-rtems t-semi t-strongarm-elf
t-strongarm-pe t-symbian t-vxworks t-wince-pe t-xscale-coff
t-xscale-elf uclinux-elf.h unaligned-funcs.c unknown-elf.h
unwind-arm.c unwind-arm.h vfp.md vxworks.h wince-pe.h xscale-coff.h
xscale-elf.h
src/gnu/dist/gcc4/gcc/config/avr [tls-earlyentropy]: avr-protos.h avr.c
avr.h avr.md avr.opt libgcc.S rtems.h t-avr t-rtems
src/gnu/dist/gcc4/gcc/config/bfin [tls-earlyentropy]: bfin-modes.def
bfin-protos.h bfin.c bfin.h bfin.md bfin.opt crti.s crtlibid.s
crtn.s elf.h lib1funcs.asm predicates.md t-bfin t-bfin-elf
uclinux.h
src/gnu/dist/gcc4/gcc/config/c4x [tls-earlyentropy]: c4x-c.c
c4x-modes.def c4x-protos.h c4x.c c4x.h c4x.md c4x.opt libgcc.S
predicates.md rtems.h t-c4x t-rtems
src/gnu/dist/gcc4/gcc/config/cris [tls-earlyentropy]: aout.h aout.opt
arit.c cris-protos.h cris.c cris.h cris.md cris.opt
cris_abi_symbol.c elf.opt linux.h linux.opt mulsi3.asm
predicates.md t-aout t-cris t-elfmulti t-linux
src/gnu/dist/gcc4/gcc/config/crx [tls-earlyentropy]: crx-protos.h crx.c
crx.h crx.md crx.opt t-crx
src/gnu/dist/gcc4/gcc/config/fr30 [tls-earlyentropy]: crti.asm crtn.asm
fr30-protos.h fr30.c fr30.h fr30.md fr30.opt lib1funcs.asm
predicates.md t-fr30
src/gnu/dist/gcc4/gcc/config/frv [tls-earlyentropy]: cmovd.c cmovh.c
cmovw.c frv-abi.h frv-asm.h frv-modes.def frv-protos.h frv.c frv.h
frv.md frv.opt frvbegin.c frvend.c lib1funcs.asm libgcc-frv.ver
linux.h modi.c predicates.md t-frv t-linux uitod.c uitof.c ulltod.c
ulltof.c umodi.c
src/gnu/dist/gcc4/gcc/config/h8300 [tls-earlyentropy]: clzhi2.c coff.h
crti.asm crtn.asm ctzhi2.c elf.h fixunssfsi.c genmova.sh
h8300-protos.h h8300.c h8300.h h8300.md h8300.opt lib1funcs.asm
mova.md parityhi2.c popcoun

CVS commit: [tls-earlyentropy] src/gnu/dist/gcc4/gcc/testsuite/config

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:23:58 UTC 2014

Removed Files:
src/gnu/dist/gcc4/gcc/testsuite/config [tls-earlyentropy]: default.exp

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r0 src/gnu/dist/gcc4/gcc/testsuite/config/default.exp

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



CVS commit: [tls-earlyentropy] src/gnu/dist/gcc4/gcc/ginclude

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:23:46 UTC 2014

Removed Files:
src/gnu/dist/gcc4/gcc/ginclude [tls-earlyentropy]: float.h iso646.h
stdarg.h stdbool.h stddef.h varargs.h

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r0 src/gnu/dist/gcc4/gcc/ginclude/float.h \
src/gnu/dist/gcc4/gcc/ginclude/iso646.h \
src/gnu/dist/gcc4/gcc/ginclude/stdarg.h \
src/gnu/dist/gcc4/gcc/ginclude/stdbool.h \
src/gnu/dist/gcc4/gcc/ginclude/varargs.h
cvs rdiff -u -r1.2 -r0 src/gnu/dist/gcc4/gcc/ginclude/stddef.h

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



CVS commit: [tls-earlyentropy] src/gnu/dist/gcc4/fixincludes

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:23:30 UTC 2014

Removed Files:
src/gnu/dist/gcc4/fixincludes [tls-earlyentropy]: ChangeLog Makefile.in
README README-fixinc aclocal.m4 check.tpl config.h.in configure
configure.ac fixfixes.c fixinc.in fixincl.c fixincl.tpl fixincl.x
fixlib.c fixlib.h fixopts.c fixtests.c genfixes inclhack.def
mkfixinc.sh mkheaders.in procopen.c server.c server.h system.h
src/gnu/dist/gcc4/fixincludes/tests/base [tls-earlyentropy]:
AvailabilityMacros.h _G_config.h assert.h c_asm.h com_err.h
ctrl-quotes-def-1.h ctype.h curses.h errno.h fixinc-test-limits.h
inttypes.h io-quotes-def-1.h locale.h malloc.h math.h obstack.h
pthread.h reg_types.h regex.h regexp.h standards.h stdio.h
stdio_tag.h stdlib.h string.h strings.h sym.h testing.h time.h
tinfo.h unistd.h wchar.h widec.h
src/gnu/dist/gcc4/fixincludes/tests/base/X11 [tls-earlyentropy]:
ShellP.h Xmu.h
src/gnu/dist/gcc4/fixincludes/tests/base/Xm [tls-earlyentropy]:
BaseClassI.h Traversal.h
src/gnu/dist/gcc4/fixincludes/tests/base/ansi [tls-earlyentropy]:
math.h stdlib.h
src/gnu/dist/gcc4/fixincludes/tests/base/arch/i960 [tls-earlyentropy]:
archI960.h
src/gnu/dist/gcc4/fixincludes/tests/base/arpa [tls-earlyentropy]:
inet.h
src/gnu/dist/gcc4/fixincludes/tests/base/bits [tls-earlyentropy]:
huge_val.h
src/gnu/dist/gcc4/fixincludes/tests/base/bsd [tls-earlyentropy]: libc.h
src/gnu/dist/gcc4/fixincludes/tests/base/fs/rfs [tls-earlyentropy]:
rf_cache.h
src/gnu/dist/gcc4/fixincludes/tests/base/hsfs [tls-earlyentropy]:
hsfs_spec.h
src/gnu/dist/gcc4/fixincludes/tests/base/ia64/sys [tls-earlyentropy]:
getppdp.h
src/gnu/dist/gcc4/fixincludes/tests/base/internal [tls-earlyentropy]:
math_core.h sgimacros.h wchar_core.h
src/gnu/dist/gcc4/fixincludes/tests/base/iso [tls-earlyentropy]:
math_c99.h
src/gnu/dist/gcc4/fixincludes/tests/base/mach-o [tls-earlyentropy]:
dyld.h
src/gnu/dist/gcc4/fixincludes/tests/base/machine [tls-earlyentropy]:
cpu.h
src/gnu/dist/gcc4/fixincludes/tests/base/netdnet [tls-earlyentropy]:
dnetdb.h
src/gnu/dist/gcc4/fixincludes/tests/base/netinet [tls-earlyentropy]:
in.h ip.h
src/gnu/dist/gcc4/fixincludes/tests/base/pixrect [tls-earlyentropy]:
memvar.h
src/gnu/dist/gcc4/fixincludes/tests/base/rpc [tls-earlyentropy]: auth.h
rpc.h svc.h xdr.h
src/gnu/dist/gcc4/fixincludes/tests/base/rpcsvc [tls-earlyentropy]:
rstat.h rusers.h
src/gnu/dist/gcc4/fixincludes/tests/base/sparc [tls-earlyentropy]:
asm_linkage.h
src/gnu/dist/gcc4/fixincludes/tests/base/sundev [tls-earlyentropy]:
vuid_event.h
src/gnu/dist/gcc4/fixincludes/tests/base/sunwindow [tls-earlyentropy]:
win_lock.h
src/gnu/dist/gcc4/fixincludes/tests/base/sys [tls-earlyentropy]: asm.h
cdefs.h file.h ioctl.h limits.h machine.h mman.h pthread.h regset.h
signal.h socket.h spinlock.h stat.h time.h times.h types.h
ucontext.h utsname.h wait.h
src/gnu/dist/gcc4/fixincludes/tests/base/types [tls-earlyentropy]:
vxTypesBase.h

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.6 -r0 src/gnu/dist/gcc4/fixincludes/ChangeLog
cvs rdiff -u -r1.1.1.1 -r0 src/gnu/dist/gcc4/fixincludes/Makefile.in \
src/gnu/dist/gcc4/fixincludes/README \
src/gnu/dist/gcc4/fixincludes/README-fixinc \
src/gnu/dist/gcc4/fixincludes/aclocal.m4 \
src/gnu/dist/gcc4/fixincludes/check.tpl \
src/gnu/dist/gcc4/fixincludes/config.h.in \
src/gnu/dist/gcc4/fixincludes/configure \
src/gnu/dist/gcc4/fixincludes/configure.ac \
src/gnu/dist/gcc4/fixincludes/fixfixes.c \
src/gnu/dist/gcc4/fixincludes/fixinc.in \
src/gnu/dist/gcc4/fixincludes/fixincl.c \
src/gnu/dist/gcc4/fixincludes/fixincl.tpl \
src/gnu/dist/gcc4/fixincludes/fixlib.c \
src/gnu/dist/gcc4/fixincludes/fixlib.h \
src/gnu/dist/gcc4/fixincludes/fixopts.c \
src/gnu/dist/gcc4/fixincludes/fixtests.c \
src/gnu/dist/gcc4/fixincludes/genfixes \
src/gnu/dist/gcc4/fixincludes/mkfixinc.sh \
src/gnu/dist/gcc4/fixincludes/mkheaders.in \
src/gnu/dist/gcc4/fixincludes/procopen.c \
src/gnu/dist/gcc4/fixincludes/server.c \
src/gnu/dist/gcc4/fixincludes/server.h \
src/gnu/dist/gcc4/fixincludes/system.h
cvs rdiff -u -r1.1.1.4 -r0 src/gnu/dist/gcc4/fixincludes/fixincl.x
cvs rdiff -u -r1.1.1.5 -r0 src/gnu/dist/gcc4/fixincludes/inclhack.def
cvs rdiff -u -r1.1.1.1 -r0 \
src/gnu/dist/gcc4/fixincludes/tests/base/AvailabilityMacros.h \

CVS commit: [tls-earlyentropy] src/gnu/dist/gcc4/gcc/cp

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:23:40 UTC 2014

Removed Files:
src/gnu/dist/gcc4/gcc/cp [tls-earlyentropy]: ChangeLog ChangeLog-1993
ChangeLog-1994 ChangeLog-1995 ChangeLog-1996 ChangeLog-1997
ChangeLog-1998 ChangeLog-1999 ChangeLog-2000 ChangeLog-2001
ChangeLog-2002 ChangeLog-2003 ChangeLog-2004 ChangeLog.tree-ssa
Make-lang.in NEWS call.c cfns.gperf cfns.h class.c config-lang.in
cp-gimplify.c cp-lang.c cp-objcp-common.c cp-objcp-common.h
cp-tree.def cp-tree.h cvt.c cxx-pretty-print.c cxx-pretty-print.h
decl.c decl.h decl2.c dump.c error.c except.c expr.c friend.c
g++spec.c init.c lang-specs.h lex.c mangle.c method.c name-lookup.c
name-lookup.h operators.def optimize.c parser.c pt.c ptree.c repo.c
rtti.c search.c semantics.c tree.c typeck.c typeck2.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r0 src/gnu/dist/gcc4/gcc/cp/ChangeLog
cvs rdiff -u -r1.1.1.1 -r0 src/gnu/dist/gcc4/gcc/cp/ChangeLog-1993 \
src/gnu/dist/gcc4/gcc/cp/ChangeLog-1994 \
src/gnu/dist/gcc4/gcc/cp/ChangeLog-1995 \
src/gnu/dist/gcc4/gcc/cp/ChangeLog-1996 \
src/gnu/dist/gcc4/gcc/cp/ChangeLog-1997 \
src/gnu/dist/gcc4/gcc/cp/ChangeLog-1998 \
src/gnu/dist/gcc4/gcc/cp/ChangeLog-1999 \
src/gnu/dist/gcc4/gcc/cp/ChangeLog-2000 \
src/gnu/dist/gcc4/gcc/cp/ChangeLog-2001 \
src/gnu/dist/gcc4/gcc/cp/ChangeLog-2002 \
src/gnu/dist/gcc4/gcc/cp/ChangeLog-2003 \
src/gnu/dist/gcc4/gcc/cp/ChangeLog-2004 \
src/gnu/dist/gcc4/gcc/cp/ChangeLog.tree-ssa \
src/gnu/dist/gcc4/gcc/cp/Make-lang.in src/gnu/dist/gcc4/gcc/cp/NEWS \
src/gnu/dist/gcc4/gcc/cp/cfns.gperf src/gnu/dist/gcc4/gcc/cp/cfns.h \
src/gnu/dist/gcc4/gcc/cp/config-lang.in \
src/gnu/dist/gcc4/gcc/cp/cp-lang.c \
src/gnu/dist/gcc4/gcc/cp/cp-objcp-common.c \
src/gnu/dist/gcc4/gcc/cp/cp-objcp-common.h \
src/gnu/dist/gcc4/gcc/cp/cxx-pretty-print.h \
src/gnu/dist/gcc4/gcc/cp/decl.h src/gnu/dist/gcc4/gcc/cp/dump.c \
src/gnu/dist/gcc4/gcc/cp/expr.c src/gnu/dist/gcc4/gcc/cp/g++spec.c \
src/gnu/dist/gcc4/gcc/cp/lang-specs.h \
src/gnu/dist/gcc4/gcc/cp/name-lookup.h \
src/gnu/dist/gcc4/gcc/cp/operators.def src/gnu/dist/gcc4/gcc/cp/ptree.c
cvs rdiff -u -r1.1.1.7 -r0 src/gnu/dist/gcc4/gcc/cp/call.c \
src/gnu/dist/gcc4/gcc/cp/typeck.c
cvs rdiff -u -r1.1.1.4 -r0 src/gnu/dist/gcc4/gcc/cp/class.c \
src/gnu/dist/gcc4/gcc/cp/init.c src/gnu/dist/gcc4/gcc/cp/rtti.c \
src/gnu/dist/gcc4/gcc/cp/search.c src/gnu/dist/gcc4/gcc/cp/typeck2.c
cvs rdiff -u -r1.1.1.2 -r0 src/gnu/dist/gcc4/gcc/cp/cp-gimplify.c \
src/gnu/dist/gcc4/gcc/cp/cp-tree.def \
src/gnu/dist/gcc4/gcc/cp/cxx-pretty-print.c \
src/gnu/dist/gcc4/gcc/cp/except.c src/gnu/dist/gcc4/gcc/cp/friend.c \
src/gnu/dist/gcc4/gcc/cp/lex.c src/gnu/dist/gcc4/gcc/cp/mangle.c \
src/gnu/dist/gcc4/gcc/cp/method.c src/gnu/dist/gcc4/gcc/cp/optimize.c \
src/gnu/dist/gcc4/gcc/cp/repo.c
cvs rdiff -u -r1.1.1.5 -r0 src/gnu/dist/gcc4/gcc/cp/cp-tree.h
cvs rdiff -u -r1.1.1.3 -r0 src/gnu/dist/gcc4/gcc/cp/cvt.c \
src/gnu/dist/gcc4/gcc/cp/error.c src/gnu/dist/gcc4/gcc/cp/name-lookup.c \
src/gnu/dist/gcc4/gcc/cp/tree.c
cvs rdiff -u -r1.6 -r0 src/gnu/dist/gcc4/gcc/cp/decl.c
cvs rdiff -u -r1.1.1.6 -r0 src/gnu/dist/gcc4/gcc/cp/decl2.c \
src/gnu/dist/gcc4/gcc/cp/semantics.c
cvs rdiff -u -r1.4 -r0 src/gnu/dist/gcc4/gcc/cp/parser.c
cvs rdiff -u -r1.1.1.8 -r0 src/gnu/dist/gcc4/gcc/cp/pt.c

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



CVS commit: [tls-earlyentropy] src/gnu/dist/gcc4/gcc/doc

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:23:42 UTC 2014

Removed Files:
src/gnu/dist/gcc4/gcc/doc [tls-earlyentropy]: bugreport.texi
c-tree.texi cfg.texi collect2.texi compat.texi configfiles.texi
configterms.texi contrib.texi contribute.texi cpp.texi cppenv.texi
cppinternals.texi cppopts.texi extend.texi fragments.texi
frontends.texi gcc.texi gccint.texi gcov.texi gnu.texi gty.texi
headerdirs.texi hostconfig.texi implement-c.texi install-old.texi
install.texi install.texi2html interface.texi invoke.texi
languages.texi libgcc.texi makefile.texi md.texi objc.texi
options.texi passes.texi portability.texi rtl.texi service.texi
sourcebuild.texi standards.texi tm.texi tree-ssa.texi trouble.texi
src/gnu/dist/gcc4/gcc/doc/include [tls-earlyentropy]: fdl.texi
funding.texi gcc-common.texi gpl.texi texinfo.tex

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r0 src/gnu/dist/gcc4/gcc/doc/bugreport.texi \
src/gnu/dist/gcc4/gcc/doc/cfg.texi \
src/gnu/dist/gcc4/gcc/doc/collect2.texi \
src/gnu/dist/gcc4/gcc/doc/compat.texi \
src/gnu/dist/gcc4/gcc/doc/configfiles.texi \
src/gnu/dist/gcc4/gcc/doc/configterms.texi \
src/gnu/dist/gcc4/gcc/doc/contribute.texi \
src/gnu/dist/gcc4/gcc/doc/fragments.texi \
src/gnu/dist/gcc4/gcc/doc/frontends.texi \
src/gnu/dist/gcc4/gcc/doc/gcc.texi src/gnu/dist/gcc4/gcc/doc/gccint.texi \
src/gnu/dist/gcc4/gcc/doc/gnu.texi src/gnu/dist/gcc4/gcc/doc/gty.texi \
src/gnu/dist/gcc4/gcc/doc/headerdirs.texi \
src/gnu/dist/gcc4/gcc/doc/hostconfig.texi \
src/gnu/dist/gcc4/gcc/doc/install-old.texi \
src/gnu/dist/gcc4/gcc/doc/install.texi2html \
src/gnu/dist/gcc4/gcc/doc/interface.texi \
src/gnu/dist/gcc4/gcc/doc/languages.texi \
src/gnu/dist/gcc4/gcc/doc/libgcc.texi \
src/gnu/dist/gcc4/gcc/doc/makefile.texi src/gnu/dist/gcc4/gcc/doc/md.texi \
src/gnu/dist/gcc4/gcc/doc/objc.texi \
src/gnu/dist/gcc4/gcc/doc/options.texi \
src/gnu/dist/gcc4/gcc/doc/portability.texi \
src/gnu/dist/gcc4/gcc/doc/service.texi \
src/gnu/dist/gcc4/gcc/doc/standards.texi \
src/gnu/dist/gcc4/gcc/doc/trouble.texi
cvs rdiff -u -r1.1.1.2 -r0 src/gnu/dist/gcc4/gcc/doc/c-tree.texi \
src/gnu/dist/gcc4/gcc/doc/contrib.texi \
src/gnu/dist/gcc4/gcc/doc/cppinternals.texi \
src/gnu/dist/gcc4/gcc/doc/rtl.texi \
src/gnu/dist/gcc4/gcc/doc/tree-ssa.texi
cvs rdiff -u -r1.6 -r0 src/gnu/dist/gcc4/gcc/doc/cpp.texi
cvs rdiff -u -r1.2 -r0 src/gnu/dist/gcc4/gcc/doc/cppenv.texi \
src/gnu/dist/gcc4/gcc/doc/gcov.texi \
src/gnu/dist/gcc4/gcc/doc/implement-c.texi
cvs rdiff -u -r1.3 -r0 src/gnu/dist/gcc4/gcc/doc/cppopts.texi
cvs rdiff -u -r1.1.1.4 -r0 src/gnu/dist/gcc4/gcc/doc/extend.texi \
src/gnu/dist/gcc4/gcc/doc/sourcebuild.texi
cvs rdiff -u -r1.1.1.5 -r0 src/gnu/dist/gcc4/gcc/doc/install.texi
cvs rdiff -u -r1.9 -r0 src/gnu/dist/gcc4/gcc/doc/invoke.texi
cvs rdiff -u -r1.1.1.3 -r0 src/gnu/dist/gcc4/gcc/doc/passes.texi \
src/gnu/dist/gcc4/gcc/doc/tm.texi
cvs rdiff -u -r1.1.1.1 -r0 src/gnu/dist/gcc4/gcc/doc/include/fdl.texi \
src/gnu/dist/gcc4/gcc/doc/include/funding.texi \
src/gnu/dist/gcc4/gcc/doc/include/gcc-common.texi \
src/gnu/dist/gcc4/gcc/doc/include/gpl.texi \
src/gnu/dist/gcc4/gcc/doc/include/texinfo.tex

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



CVS commit: [tls-earlyentropy] src/gnu/dist/gcc4/contrib

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:23:26 UTC 2014

Removed Files:
src/gnu/dist/gcc4/contrib [tls-earlyentropy]: ChangeLog
ChangeLog.tree-ssa analyze_brprob compare_tests
filter_gcc_for_doxygen filter_knr2ansi.pl filter_params.pl
gcc_build gcc_update gccbug.el gennews gthr_supp_vxw_5x.c
index-prop newcvsroot paranoia.cc test_installed test_summary
texi2pod.pl tree-ssa.doxy warn_summary
src/gnu/dist/gcc4/contrib/reghunt [tls-earlyentropy]: ChangeLog README
reg_periodic reg_search reg_test_template
src/gnu/dist/gcc4/contrib/regression [tls-earlyentropy]: ChangeLog
README btest-gcc.sh objs-gcc.sh site.exp

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r0 src/gnu/dist/gcc4/contrib/ChangeLog
cvs rdiff -u -r1.1.1.1 -r0 src/gnu/dist/gcc4/contrib/ChangeLog.tree-ssa \
src/gnu/dist/gcc4/contrib/analyze_brprob \
src/gnu/dist/gcc4/contrib/compare_tests \
src/gnu/dist/gcc4/contrib/filter_gcc_for_doxygen \
src/gnu/dist/gcc4/contrib/filter_knr2ansi.pl \
src/gnu/dist/gcc4/contrib/filter_params.pl \
src/gnu/dist/gcc4/contrib/gcc_build src/gnu/dist/gcc4/contrib/gcc_update \
src/gnu/dist/gcc4/contrib/gccbug.el src/gnu/dist/gcc4/contrib/gennews \
src/gnu/dist/gcc4/contrib/gthr_supp_vxw_5x.c \
src/gnu/dist/gcc4/contrib/index-prop src/gnu/dist/gcc4/contrib/newcvsroot \
src/gnu/dist/gcc4/contrib/paranoia.cc \
src/gnu/dist/gcc4/contrib/test_installed \
src/gnu/dist/gcc4/contrib/test_summary \
src/gnu/dist/gcc4/contrib/texi2pod.pl \
src/gnu/dist/gcc4/contrib/tree-ssa.doxy \
src/gnu/dist/gcc4/contrib/warn_summary
cvs rdiff -u -r1.1.1.3 -r0 src/gnu/dist/gcc4/contrib/reghunt/ChangeLog
cvs rdiff -u -r1.1.1.1 -r0 src/gnu/dist/gcc4/contrib/reghunt/README \
src/gnu/dist/gcc4/contrib/reghunt/reg_periodic \
src/gnu/dist/gcc4/contrib/reghunt/reg_search \
src/gnu/dist/gcc4/contrib/reghunt/reg_test_template
cvs rdiff -u -r1.1.1.3 -r0 src/gnu/dist/gcc4/contrib/regression/ChangeLog
cvs rdiff -u -r1.1.1.1 -r0 src/gnu/dist/gcc4/contrib/regression/README \
src/gnu/dist/gcc4/contrib/regression/btest-gcc.sh \
src/gnu/dist/gcc4/contrib/regression/objs-gcc.sh \
src/gnu/dist/gcc4/contrib/regression/site.exp

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



CVS commit: [tls-earlyentropy] src/gnu/dist/gcc4/config

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:23:24 UTC 2014

Removed Files:
src/gnu/dist/gcc4/config [tls-earlyentropy]: ChangeLog acinclude.m4
acx.m4 codeset.m4 depstand.m4 enable.m4 gettext-sister.m4
gettext.m4 glibc21.m4 gxx-include-dir.m4 iconv.m4 intdiv0.m4
inttypes-pri.m4 inttypes.m4 inttypes_h.m4 lcmessage.m4 lead-dot.m4
lib-ld.m4 lib-link.m4 lib-prefix.m4 mh-armpic mh-cxux mh-cygwin
mh-decstation mh-dgux386 mh-djgpp mh-elfalphapic mh-i370pic
mh-ia64pic mh-interix mh-lynxrs6k mh-m68kpic mh-ncr3000 mh-necv4
mh-papic mh-ppc-darwin mh-ppcpic mh-s390pic mh-sco mh-solaris
mh-sparcpic mh-sysv4 mh-sysv5 mh-x86omitfp mh-x86pic mt-alphaieee
mt-d30v mt-gnu mt-netware mt-ospace mt-v810 mt-wince nls.m4
no-executables.m4 po.m4 progtest.m4 stdint.m4 stdint_h.m4 tls.m4
uintmax_t.m4 ulonglong.m4 warnings.m4

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r0 src/gnu/dist/gcc4/config/ChangeLog
cvs rdiff -u -r1.1.1.1 -r0 src/gnu/dist/gcc4/config/acinclude.m4 \
src/gnu/dist/gcc4/config/acx.m4 src/gnu/dist/gcc4/config/codeset.m4 \
src/gnu/dist/gcc4/config/depstand.m4 src/gnu/dist/gcc4/config/enable.m4 \
src/gnu/dist/gcc4/config/gettext-sister.m4 \
src/gnu/dist/gcc4/config/gettext.m4 src/gnu/dist/gcc4/config/glibc21.m4 \
src/gnu/dist/gcc4/config/gxx-include-dir.m4 \
src/gnu/dist/gcc4/config/iconv.m4 src/gnu/dist/gcc4/config/intdiv0.m4 \
src/gnu/dist/gcc4/config/inttypes-pri.m4 \
src/gnu/dist/gcc4/config/inttypes.m4 \
src/gnu/dist/gcc4/config/inttypes_h.m4 \
src/gnu/dist/gcc4/config/lcmessage.m4 \
src/gnu/dist/gcc4/config/lead-dot.m4 src/gnu/dist/gcc4/config/lib-ld.m4 \
src/gnu/dist/gcc4/config/lib-link.m4 \
src/gnu/dist/gcc4/config/lib-prefix.m4 src/gnu/dist/gcc4/config/mh-armpic \
src/gnu/dist/gcc4/config/mh-cxux src/gnu/dist/gcc4/config/mh-cygwin \
src/gnu/dist/gcc4/config/mh-decstation \
src/gnu/dist/gcc4/config/mh-dgux386 src/gnu/dist/gcc4/config/mh-djgpp \
src/gnu/dist/gcc4/config/mh-elfalphapic \
src/gnu/dist/gcc4/config/mh-i370pic src/gnu/dist/gcc4/config/mh-ia64pic \
src/gnu/dist/gcc4/config/mh-interix src/gnu/dist/gcc4/config/mh-lynxrs6k \
src/gnu/dist/gcc4/config/mh-m68kpic src/gnu/dist/gcc4/config/mh-ncr3000 \
src/gnu/dist/gcc4/config/mh-necv4 src/gnu/dist/gcc4/config/mh-papic \
src/gnu/dist/gcc4/config/mh-ppc-darwin src/gnu/dist/gcc4/config/mh-ppcpic \
src/gnu/dist/gcc4/config/mh-s390pic src/gnu/dist/gcc4/config/mh-sco \
src/gnu/dist/gcc4/config/mh-solaris src/gnu/dist/gcc4/config/mh-sparcpic \
src/gnu/dist/gcc4/config/mh-sysv4 src/gnu/dist/gcc4/config/mh-sysv5 \
src/gnu/dist/gcc4/config/mh-x86omitfp src/gnu/dist/gcc4/config/mh-x86pic \
src/gnu/dist/gcc4/config/mt-alphaieee src/gnu/dist/gcc4/config/mt-d30v \
src/gnu/dist/gcc4/config/mt-gnu src/gnu/dist/gcc4/config/mt-netware \
src/gnu/dist/gcc4/config/mt-ospace src/gnu/dist/gcc4/config/mt-v810 \
src/gnu/dist/gcc4/config/mt-wince src/gnu/dist/gcc4/config/nls.m4 \
src/gnu/dist/gcc4/config/no-executables.m4 src/gnu/dist/gcc4/config/po.m4 \
src/gnu/dist/gcc4/config/progtest.m4 src/gnu/dist/gcc4/config/stdint.m4 \
src/gnu/dist/gcc4/config/stdint_h.m4 src/gnu/dist/gcc4/config/tls.m4 \
src/gnu/dist/gcc4/config/uintmax_t.m4 \
src/gnu/dist/gcc4/config/ulonglong.m4 \
src/gnu/dist/gcc4/config/warnings.m4

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



CVS commit: [tls-earlyentropy] src/gnu/dist/gkermit

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:16:49 UTC 2014

Removed Files:
src/gnu/dist/gkermit [tls-earlyentropy]: ANNOUNCE COPYING README
gcmdline.c gkermit.c gkermit.h gkermit.nr gproto.c gproto.w
gunixio.c gwart.c makefile

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r0 src/gnu/dist/gkermit/ANNOUNCE \
src/gnu/dist/gkermit/COPYING src/gnu/dist/gkermit/README \
src/gnu/dist/gkermit/gkermit.h src/gnu/dist/gkermit/gproto.c \
src/gnu/dist/gkermit/gproto.w src/gnu/dist/gkermit/gwart.c \
src/gnu/dist/gkermit/makefile
cvs rdiff -u -r1.2 -r0 src/gnu/dist/gkermit/gcmdline.c \
src/gnu/dist/gkermit/gkermit.nr
cvs rdiff -u -r1.4 -r0 src/gnu/dist/gkermit/gkermit.c
cvs rdiff -u -r1.3 -r0 src/gnu/dist/gkermit/gunixio.c

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



CVS commit: [tls-earlyentropy] src/gnu/dist/grep/src

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:16:50 UTC 2014

Modified Files:
src/gnu/dist/grep/src [tls-earlyentropy]: grep.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.14.6.1 src/gnu/dist/grep/src/grep.c

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

Modified files:

Index: src/gnu/dist/grep/src/grep.c
diff -u src/gnu/dist/grep/src/grep.c:1.14 src/gnu/dist/grep/src/grep.c:1.14.6.1
--- src/gnu/dist/grep/src/grep.c:1.14	Sat Jan  5 09:40:16 2013
+++ src/gnu/dist/grep/src/grep.c	Sun Aug 10 07:16:50 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: grep.c,v 1.14 2013/01/05 09:40:16 apb Exp $	*/
+/*	$NetBSD: grep.c,v 1.14.6.1 2014/08/10 07:16:50 tls Exp $	*/
 
 /* grep.c - main driver file for grep.
Copyright 1992, 1997-1999, 2000 Free Software Foundation, Inc.
@@ -1066,8 +1066,11 @@ Regexp selection and interpretation:\n")
   printf (_("\
   -E, --extended-regexp PATTERN is an extended regular expression\n\
   -F, --fixed-strings   PATTERN is a set of newline-separated strings\n\
-  -G, --basic-regexpPATTERN is a basic regular expression\n\
+  -G, --basic-regexpPATTERN is a basic regular expression\n"));
+#if HAVE_LIBPCRE
+  printf (_("\
   -P, --perl-regexp PATTERN is a Perl regular expression\n"));
+#endif
   printf (_("\
   -e, --regexp=PATTERN  use PATTERN as a regular expression\n\
   -f, --file=FILE   obtain PATTERN from FILE\n\



CVS commit: [tls-earlyentropy] src/external

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:13:27 UTC 2014

Modified Files:
src/external/bsd [tls-earlyentropy]: Makefile
src/external/gpl3 [tls-earlyentropy]: Makefile

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.46.2.1 src/external/bsd/Makefile
cvs rdiff -u -r1.9 -r1.9.2.1 src/external/gpl3/Makefile

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

Modified files:

Index: src/external/bsd/Makefile
diff -u src/external/bsd/Makefile:1.46 src/external/bsd/Makefile:1.46.2.1
--- src/external/bsd/Makefile:1.46	Wed Dec 25 22:04:20 2013
+++ src/external/bsd/Makefile	Sun Aug 10 07:13:27 2014
@@ -1,8 +1,9 @@
-#	$NetBSD: Makefile,v 1.46 2013/12/25 22:04:20 christos Exp $
+#	$NetBSD: Makefile,v 1.46.2.1 2014/08/10 07:13:27 tls Exp $
 
 .include 
 
-SUBDIR=	acpica am-utils bind byacc cron dhcpcd elftosb fetch file flex less \
+SUBDIR=	acpica am-utils bind byacc cron dhcpcd ekermit elftosb \
+	fetch file flex less \
 	libarchive libevent liblzf libpcap mdocml ntp openresolv tcpdump \
 	tmux top tre wpa
 

Index: src/external/gpl3/Makefile
diff -u src/external/gpl3/Makefile:1.9 src/external/gpl3/Makefile:1.9.2.1
--- src/external/gpl3/Makefile:1.9	Wed Feb 26 09:54:32 2014
+++ src/external/gpl3/Makefile	Sun Aug 10 07:13:27 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.9 2014/02/26 09:54:32 mrg Exp $
+#	$NetBSD: Makefile,v 1.9.2.1 2014/08/10 07:13:27 tls Exp $
 
 .include 
 
@@ -7,12 +7,10 @@ SUBDIR+=	binutils
 .endif
 
 .if ${MKGCC} != "no"
-.if ${HAVE_GCC} >= 45
 .if ${MKGCCCMDS} != "no"
 SUBDIR+=	${EXTERNAL_GCC_SUBDIR}
 .endif
 .endif
-.endif
 
 .if ${MKGDB} != "no"
 .if ${HAVE_GDB} == "7"



CVS commit: [tls-earlyentropy] src/external/ibm-public/postfix

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:12:51 UTC 2014

Modified Files:
src/external/ibm-public/postfix [tls-earlyentropy]: Makefile.inc
src/external/ibm-public/postfix/dist [tls-earlyentropy]: AAAREADME
HISTORY INSTALL Makefile.in RELEASE_NOTES makedefs
src/external/ibm-public/postfix/dist/README_FILES [tls-earlyentropy]:
AAAREADME ADDRESS_REWRITING_README ADDRESS_VERIFICATION_README
BACKSCATTER_README CONNECTION_CACHE_README DATABASE_README INSTALL
MULTI_INSTANCE_README POSTSCREEN_README RELEASE_NOTES
RESTRICTION_CLASS_README SASL_README SCHEDULER_README
SMTPD_ACCESS_README STRESS_README TLS_README
src/external/ibm-public/postfix/dist/conf [tls-earlyentropy]: access
canonical main.cf master.cf post-install postfix-files virtual
src/external/ibm-public/postfix/dist/html [tls-earlyentropy]:
ADDRESS_REWRITING_README.html ADDRESS_VERIFICATION_README.html
BACKSCATTER_README.html BASIC_CONFIGURATION_README.html
BUILTIN_FILTER_README.html CONNECTION_CACHE_README.html
DATABASE_README.html ETRN_README.html INSTALL.html LDAP_README.html
MAILDROP_README.html MULTI_INSTANCE_README.html Makefile.in
POSTSCREEN_README.html QSHAPE_README.html
RESTRICTION_CLASS_README.html SASL_README.html
SCHEDULER_README.html SMTPD_ACCESS_README.html
SMTPD_POLICY_README.html SOHO_README.html
STANDARD_CONFIGURATION_README.html STRESS_README.html
TLS_LEGACY_README.html TLS_README.html UUCP_README.html
VIRTUAL_README.html access.5.html aliases.5.html anvil.8.html
bounce.5.html bounce.8.html canonical.5.html cidr_table.5.html
cleanup.8.html defer.8.html discard.8.html dnsblog.8.html
error.8.html flush.8.html generic.5.html header_checks.5.html
index.html ldap_table.5.html lmtp.8.html local.8.html mailq.1.html
master.5.html master.8.html memcache_table.5.html
mysql_table.5.html newaliases.1.html nisplus_table.5.html
oqmgr.8.html pcre_table.5.html pgsql_table.5.html pickup.8.html
pipe.8.html postalias.1.html postcat.1.html postconf.1.html
postconf.5.html postdrop.1.html postfix-manuals.html
postfix-wrapper.5.html postfix.1.html postkick.1.html
postlock.1.html postlog.1.html postmap.1.html postmulti.1.html
postqueue.1.html postscreen.8.html postsuper.1.html proxymap.8.html
qmgr.8.html qmqp-sink.1.html qmqp-source.1.html qmqpd.8.html
qshape.1.html regexp_table.5.html relocated.5.html scache.8.html
sendmail.1.html showq.8.html smtp-sink.1.html smtp-source.1.html
smtp.8.html smtpd.8.html spawn.8.html sqlite_table.5.html
tcp_table.5.html tlsmgr.8.html tlsproxy.8.html trace.8.html
transport.5.html trivial-rewrite.8.html verify.8.html
virtual.5.html virtual.8.html
src/external/ibm-public/postfix/dist/man [tls-earlyentropy]:
Makefile.in
src/external/ibm-public/postfix/dist/man/man1 [tls-earlyentropy]:
postconf.1 postfix.1 postmulti.1
src/external/ibm-public/postfix/dist/man/man5 [tls-earlyentropy]:
access.5 canonical.5 cidr_table.5 header_checks.5 ldap_table.5
master.5 memcache_table.5 mysql_table.5 nisplus_table.5
pcre_table.5 pgsql_table.5 postconf.5 regexp_table.5 sqlite_table.5
tcp_table.5 virtual.5
src/external/ibm-public/postfix/dist/man/man8 [tls-earlyentropy]:
discard.8 local.8 oqmgr.8 pipe.8 postscreen.8 qmgr.8 smtp.8 smtpd.8
tlsmgr.8 tlsproxy.8 trivial-rewrite.8
src/external/ibm-public/postfix/dist/mantools [tls-earlyentropy]:
ccformat man2html postconf2man postlink
src/external/ibm-public/postfix/dist/proto [tls-earlyentropy]:
ADDRESS_VERIFICATION_README.html CONNECTION_CACHE_README.html
DATABASE_README.html INSTALL.html MULTI_INSTANCE_README.html
Makefile.in POSTSCREEN_README.html SASL_README.html
SCHEDULER_README.html STRESS_README.html TLS_README.html access
canonical cidr_table header_checks ldap_table master memcache_table
mysql_table nisplus_table pcre_table pgsql_table
postconf.man.prolog postconf.proto regexp_table sqlite_table stop
tcp_table virtual
src/external/ibm-public/postfix/dist/src/cleanup [tls-earlyentropy]:
Makefile.in cleanup.h cleanup_addr.c cleanup_map11.c
cleanup_map1n.c cleanup_masquerade.c cleanup_message.c
cleanup_milter.c cleanup_state.c
src/external/ibm-public/postfix/dist/src/discard [tls-earlyentropy]:
discard.c
src/external/ibm-public/postfix/dist/src/dns [tls-earlyentropy]:

CVS commit: [tls-earlyentropy] src/external/gpl3/gcc.old

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:11:11 UTC 2014

Modified Files:
src/external/gpl3/gcc.old [tls-earlyentropy]: Makefile.gcc_path
src/external/gpl3/gcc.old/dist [tls-earlyentropy]: configure
src/external/gpl3/gcc.old/dist/fixincludes [tls-earlyentropy]:
configure
src/external/gpl3/gcc.old/dist/gcc [tls-earlyentropy]: configure
src/external/gpl3/gcc.old/dist/gcc/config/m68k [tls-earlyentropy]:
t-floatlib
src/external/gpl3/gcc.old/dist/intl [tls-earlyentropy]: configure
src/external/gpl3/gcc.old/dist/libcpp [tls-earlyentropy]: configure
src/external/gpl3/gcc.old/dist/libdecnumber [tls-earlyentropy]:
configure
src/external/gpl3/gcc.old/dist/libgcc [tls-earlyentropy]: configure
src/external/gpl3/gcc.old/dist/libgomp [tls-earlyentropy]: configure
src/external/gpl3/gcc.old/dist/libiberty [tls-earlyentropy]: configure
src/external/gpl3/gcc.old/dist/libmudflap [tls-earlyentropy]: configure
src/external/gpl3/gcc.old/dist/libobjc [tls-earlyentropy]: configure
src/external/gpl3/gcc.old/dist/libssp [tls-earlyentropy]: configure
src/external/gpl3/gcc.old/dist/libstdc++-v3 [tls-earlyentropy]:
configure
src/external/gpl3/gcc.old/dist/lto-plugin [tls-earlyentropy]: configure
src/external/gpl3/gcc.old/dist/zlib [tls-earlyentropy]: configure
src/external/gpl3/gcc.old/lib/libgcc/arch [tls-earlyentropy]: m68k.mk
src/external/gpl3/gcc.old/lib/libstdc++-v3 [tls-earlyentropy]: Makefile
src/external/gpl3/gcc.old/usr.bin [tls-earlyentropy]: Makefile.inc

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 \
src/external/gpl3/gcc.old/Makefile.gcc_path
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 src/external/gpl3/gcc.old/dist/configure
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 \
src/external/gpl3/gcc.old/dist/fixincludes/configure
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 \
src/external/gpl3/gcc.old/dist/gcc/configure
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 \
src/external/gpl3/gcc.old/dist/gcc/config/m68k/t-floatlib
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 \
src/external/gpl3/gcc.old/dist/intl/configure
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 \
src/external/gpl3/gcc.old/dist/libcpp/configure
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 \
src/external/gpl3/gcc.old/dist/libdecnumber/configure
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 \
src/external/gpl3/gcc.old/dist/libgcc/configure
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 \
src/external/gpl3/gcc.old/dist/libgomp/configure
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 \
src/external/gpl3/gcc.old/dist/libiberty/configure
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 \
src/external/gpl3/gcc.old/dist/libmudflap/configure
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 \
src/external/gpl3/gcc.old/dist/libobjc/configure
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 \
src/external/gpl3/gcc.old/dist/libssp/configure
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 \
src/external/gpl3/gcc.old/dist/libstdc++-v3/configure
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 \
src/external/gpl3/gcc.old/dist/lto-plugin/configure
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 \
src/external/gpl3/gcc.old/dist/zlib/configure
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 \
src/external/gpl3/gcc.old/lib/libgcc/arch/m68k.mk
cvs rdiff -u -r1.1.1.2 -r1.1.1.2.2.1 \
src/external/gpl3/gcc.old/lib/libstdc++-v3/Makefile
cvs rdiff -u -r1.1.1.2 -r1.1.1.2.2.1 \
src/external/gpl3/gcc.old/usr.bin/Makefile.inc

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

Modified files:

Index: src/external/gpl3/gcc.old/Makefile.gcc_path
diff -u src/external/gpl3/gcc.old/Makefile.gcc_path:1.1.1.1 src/external/gpl3/gcc.old/Makefile.gcc_path:1.1.1.1.2.1
--- src/external/gpl3/gcc.old/Makefile.gcc_path:1.1.1.1	Wed Feb 26 10:56:10 2014
+++ src/external/gpl3/gcc.old/Makefile.gcc_path	Sun Aug 10 07:11:10 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.gcc_path,v 1.1.1.1 2014/02/26 10:56:10 mrg Exp $
+#	$NetBSD: Makefile.gcc_path,v 1.1.1.1.2.1 2014/08/10 07:11:10 tls Exp $
 
 # Define some commom paths
 
@@ -7,11 +7,7 @@ _EXTERNAL_GPL3_GCC_MAKEFILE_INC_=1
 
 .include 
 
-.if ${HAVE_GCC} >= 45
 GCC_SUBDIR=	${NETBSDSRCDIR}/external/gpl3/${EXTERNAL_GCC_SUBDIR}
-.else
-GCC_SUBDIR=	/not/here/for/you
-.endif
 
 #.if exists(${GCC_SUBDIR}/dist)
 GCCDIST=	${GCC_SUBDIR}/dist

Index: src/external/gpl3/gcc.old/dist/configure
diff -u src/external/gpl3/gcc.old/dist/configure:1.1.1.1 src/external/gpl3/gcc.old/dist/configure:1.1.1.1.2.1
--- src/external/gpl3/gcc.old/dist/configure:1.1.1.1	Tue Feb 25 18:38:34 2014
+++ src/external/gpl3/gcc.old/dist/configure	Sun Aug 10 07:11:10 2014
@@ -2404,7 +2404,7 @@ for ac_dir in "$srcdir" "$srcdir/.." "$s
   for ac_t in install-sh install.sh shtool; do
 if test -f "$ac_dir/$ac_t"; then
   ac_aux_dir=$ac_dir
-  ac_i

CVS commit: [tls-earlyentropy] src/external/gpl3/gcc

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:10:59 UTC 2014

Modified Files:
src/external/gpl3/gcc [tls-earlyentropy]: Makefile.gcc_path
README.gcc48
src/external/gpl3/gcc/dist [tls-earlyentropy]: ChangeLog config.guess
config.sub configure libtool.m4
src/external/gpl3/gcc/dist/config [tls-earlyentropy]: ChangeLog
src/external/gpl3/gcc/dist/contrib [tls-earlyentropy]: ChangeLog
src/external/gpl3/gcc/dist/contrib/reghunt [tls-earlyentropy]:
ChangeLog
src/external/gpl3/gcc/dist/contrib/regression [tls-earlyentropy]:
ChangeLog
src/external/gpl3/gcc/dist/fixincludes [tls-earlyentropy]: ChangeLog
configure
src/external/gpl3/gcc/dist/gcc [tls-earlyentropy]: ChangeLog DATESTAMP
DEV-PHASE Makefile.in alias.c bb-reorder.c builtins.c builtins.def
calls.c config.gcc configure configure.ac cse.c cselib.c dse.c
expr.c expr.h fold-const.c function.c gcc.c
gimple-ssa-strength-reduction.c gimple.h gimplify.c
graphite-scop-detection.c ipa-cp.c ipa.c lra-constraints.c optabs.c
opts.c params.def reload.c rtl.h rtlanal.c sdbout.c stmt.c
tree-cfgcleanup.c tree-eh.c tree-inline.c tree-sra.c
tree-ssa-loop-im.c tree-ssa-loop-ivopts.c tree-ssa-math-opts.c
tree-ssa-operands.c tree-ssa-propagate.c tree-ssa-reassoc.c
tree-ssa-structalias.c tree-ssa-uninit.c tree-ssanames.c
tree-vect-data-refs.c tree-vect-generic.c tree-vect-loop.c tree.c
tree.h
src/external/gpl3/gcc/dist/gcc/c [tls-earlyentropy]: ChangeLog
Make-lang.in c-decl.c c-parser.c c-tree.h c-typeck.c
src/external/gpl3/gcc/dist/gcc/c-family [tls-earlyentropy]: ChangeLog
c-common.c c-opts.c c-pragma.c c.opt
src/external/gpl3/gcc/dist/gcc/common/config/arm [tls-earlyentropy]:
arm-common.c
src/external/gpl3/gcc/dist/gcc/config [tls-earlyentropy]: darwin.c
netbsd.h
src/external/gpl3/gcc/dist/gcc/config/aarch64 [tls-earlyentropy]:
aarch64.c aarch64.h
src/external/gpl3/gcc/dist/gcc/config/arm [tls-earlyentropy]: arm.c
arm.h netbsd-eabi.h
src/external/gpl3/gcc/dist/gcc/config/avr [tls-earlyentropy]: avr.c
avr.md
src/external/gpl3/gcc/dist/gcc/config/i386 [tls-earlyentropy]: i386.c
src/external/gpl3/gcc/dist/gcc/config/rs6000 [tls-earlyentropy]:
altivec.h altivec.md constraints.md darwin.h dfp.md linux64.h
option-defaults.h ppc-asm.h predicates.md rs6000-builtin.def
rs6000-c.c rs6000-cpus.def rs6000-modes.def rs6000-opts.h
rs6000-protos.h rs6000.c rs6000.h rs6000.md rs6000.opt sync.md
sysv4.h sysv4le.h t-linux64 t-rs6000 vector.md vsx.md
src/external/gpl3/gcc/dist/gcc/config/s390 [tls-earlyentropy]: s390.c
src/external/gpl3/gcc/dist/gcc/config/sh [tls-earlyentropy]: sh.c sh.md
src/external/gpl3/gcc/dist/gcc/config/sparc [tls-earlyentropy]:
sparc-protos.h sparc.c sparc.md sparc.opt sync.md
src/external/gpl3/gcc/dist/gcc/config/vax [tls-earlyentropy]:
vax-protos.h vax.c vax.h vax.md
src/external/gpl3/gcc/dist/gcc/cp [tls-earlyentropy]: ChangeLog
Make-lang.in call.c decl.c typeck.c typeck2.c
src/external/gpl3/gcc/dist/gcc/doc [tls-earlyentropy]: extend.texi
invoke.texi md.texi sourcebuild.texi
src/external/gpl3/gcc/dist/gcc/lto [tls-earlyentropy]: ChangeLog
src/external/gpl3/gcc/dist/gcc/objc [tls-earlyentropy]: ChangeLog
Make-lang.in objc-next-runtime-abi-01.c objc-next-runtime-abi-02.c
src/external/gpl3/gcc/dist/gcc/objcp [tls-earlyentropy]: ChangeLog
Make-lang.in
src/external/gpl3/gcc/dist/gnattools [tls-earlyentropy]: ChangeLog
configure
src/external/gpl3/gcc/dist/include [tls-earlyentropy]: ChangeLog
src/external/gpl3/gcc/dist/intl [tls-earlyentropy]: ChangeLog configure
src/external/gpl3/gcc/dist/libbacktrace [tls-earlyentropy]: ChangeLog
configure
src/external/gpl3/gcc/dist/libcpp [tls-earlyentropy]: ChangeLog
configure files.c lex.c line-map.c macro.c
src/external/gpl3/gcc/dist/libdecnumber [tls-earlyentropy]: ChangeLog
configure
src/external/gpl3/gcc/dist/libgcc [tls-earlyentropy]: ChangeLog
Makefile.in config.host configure
src/external/gpl3/gcc/dist/libgcc/config/arm [tls-earlyentropy]:
sfp-machine.h
src/external/gpl3/gcc/dist/libgcc/config/libbid [tls-earlyentropy]:
ChangeLog
src/external/gpl3/gcc/dist/libgcc/config/m68k [tls-earlyentropy]:
t-floatlib
src/external/gpl3/gcc/dist/libgcc/config/rs6000 [tls-earlyentropy]:
linux-unwind.h tramp.S
  

CVS commit: [tls-earlyentropy] src/external/bsd/ntp

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:09:33 UTC 2014

Modified Files:
src/external/bsd/ntp [tls-earlyentropy]: Makefile.inc
src/external/bsd/ntp/html [tls-earlyentropy]: Makefile
src/external/bsd/ntp/lib/libiscntp [tls-earlyentropy]: Makefile
src/external/bsd/ntp/lib/libntp [tls-earlyentropy]: Makefile
src/external/bsd/ntp/lib/libopts [tls-earlyentropy]: Makefile

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.13.2.1 src/external/bsd/ntp/Makefile.inc
cvs rdiff -u -r1.2 -r1.2.2.1 src/external/bsd/ntp/html/Makefile
cvs rdiff -u -r1.8 -r1.8.2.1 src/external/bsd/ntp/lib/libiscntp/Makefile
cvs rdiff -u -r1.11 -r1.11.2.1 src/external/bsd/ntp/lib/libntp/Makefile
cvs rdiff -u -r1.9 -r1.9.2.1 src/external/bsd/ntp/lib/libopts/Makefile

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

Modified files:

Index: src/external/bsd/ntp/Makefile.inc
diff -u src/external/bsd/ntp/Makefile.inc:1.13 src/external/bsd/ntp/Makefile.inc:1.13.2.1
--- src/external/bsd/ntp/Makefile.inc:1.13	Thu Jan  2 21:38:38 2014
+++ src/external/bsd/ntp/Makefile.inc	Sun Aug 10 07:09:32 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.13 2014/01/02 21:38:38 joerg Exp $
+#	$NetBSD: Makefile.inc,v 1.13.2.1 2014/08/10 07:09:32 tls Exp $
 
 .if !defined(NTP_MAKEFILE_INC)
 NTP_MAKEFILE_INC=yes
@@ -17,7 +17,7 @@ WARNS?=	4
 
 IDIST=		${NETBSDSRCDIR}/external/bsd/ntp/dist
 NTP_SRCDIR=	${NETBSDSRCDIR}/external/bsd/ntp
-NTP_HTMLDIR=	/usr/share/doc/html/ntp
+NTP_HTMLDIR=	/usr/share/doc/reference/ref8
 
 SYSCONFDIR=/etc
 LOCALSTATEDIR=/var

Index: src/external/bsd/ntp/html/Makefile
diff -u src/external/bsd/ntp/html/Makefile:1.2 src/external/bsd/ntp/html/Makefile:1.2.2.1
--- src/external/bsd/ntp/html/Makefile:1.2	Sat Dec 28 18:06:41 2013
+++ src/external/bsd/ntp/html/Makefile	Sun Aug 10 07:09:33 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.2 2013/12/28 18:06:41 christos Exp $
+#	$NetBSD: Makefile,v 1.2.2.1 2014/08/10 07:09:33 tls Exp $
 
 .include 
 .include "${.CURDIR}/../Makefile.inc"
@@ -112,7 +112,7 @@ NTP_DOCFILES= \
 _FDIR:=		ntp/${F:H}# subdir
 _FDIR:=		${_FDIR:S,/.$,,}			# remove trivial directory
 _FNAME:=	${F:T}	# name override
-_F:=		${DESTDIR}${HTMLDOCDIR}/${_FDIR}/${_FNAME}		# installed path
+_F:=		${DESTDIR}${NTP_HTMLDIR}/${_FDIR}/${_FNAME}		# installed path
 _FILE:=		${F}
 
 .if ${MKUPDATE} == "no"

Index: src/external/bsd/ntp/lib/libiscntp/Makefile
diff -u src/external/bsd/ntp/lib/libiscntp/Makefile:1.8 src/external/bsd/ntp/lib/libiscntp/Makefile:1.8.2.1
--- src/external/bsd/ntp/lib/libiscntp/Makefile:1.8	Thu Jan 23 14:06:28 2014
+++ src/external/bsd/ntp/lib/libiscntp/Makefile	Sun Aug 10 07:09:33 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.8 2014/01/23 14:06:28 joerg Exp $
+#	$NetBSD: Makefile,v 1.8.2.1 2014/08/10 07:09:33 tls Exp $
 
 LIBISPRIVATE=yes
 
@@ -43,8 +43,6 @@ SRCS=   assertions.c   \
 time.c \
 sockaddr.c
 
-.if !defined(HAVE_GCC) || ${HAVE_GCC} >= 45
 COPTS.log.c+=	-Wno-error=format-nonliteral
-.endif
 
 .include 

Index: src/external/bsd/ntp/lib/libntp/Makefile
diff -u src/external/bsd/ntp/lib/libntp/Makefile:1.11 src/external/bsd/ntp/lib/libntp/Makefile:1.11.2.1
--- src/external/bsd/ntp/lib/libntp/Makefile:1.11	Fri Jan 24 23:42:31 2014
+++ src/external/bsd/ntp/lib/libntp/Makefile	Sun Aug 10 07:09:33 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.11 2014/01/24 23:42:31 matt Exp $
+#	$NetBSD: Makefile,v 1.11.2.1 2014/08/10 07:09:33 tls Exp $
 
 LIBISPRIVATE=yes
 
@@ -77,9 +77,7 @@ ymd2yd.c
 
 CPPFLAGS+= -I${IDIST}/sntp/libopts
 
-.if !defined(HAVE_GCC) || ${HAVE_GCC} >= 45
 COPTS.msyslog.c+=	-Wno-error=format-nonliteral
-.endif
 
 # For MKREPRO, avoid using __DATE__ and __TIME__.
 # Instead, use the date and time from ${IMPORTDATE_FILE}.

Index: src/external/bsd/ntp/lib/libopts/Makefile
diff -u src/external/bsd/ntp/lib/libopts/Makefile:1.9 src/external/bsd/ntp/lib/libopts/Makefile:1.9.2.1
--- src/external/bsd/ntp/lib/libopts/Makefile:1.9	Mon Jan 20 01:43:34 2014
+++ src/external/bsd/ntp/lib/libopts/Makefile	Sun Aug 10 07:09:33 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.9 2014/01/20 01:43:34 christos Exp $
+#	$NetBSD: Makefile,v 1.9.2.1 2014/08/10 07:09:33 tls Exp $
 
 LIBISPRIVATE=yes
 
@@ -17,10 +17,6 @@ CPPFLAGS+=-I${DIST}
 SRCS=libopts.c
 
 COPTS.libopts.c += -DPOSIX_SHELL="\"/bin/sh\"" -Wno-format-nonliteral
-.if ${HAVE_GCC:U} >= 45
 COPTS.libopts.c+=	${${ACTIVE_CC} == "gcc":? -Wno-format-contains-nul :}
-.else
-COPTS.libopts.c+=	-Wno-format
-.endif
 
 .include 



CVS commit: [tls-earlyentropy] src/external/bsd/kyua-cli

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:07:20 UTC 2014

Modified Files:
src/external/bsd/kyua-cli [tls-earlyentropy]: Makefile.inc

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.3.2.1 src/external/bsd/kyua-cli/Makefile.inc

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

Modified files:

Index: src/external/bsd/kyua-cli/Makefile.inc
diff -u src/external/bsd/kyua-cli/Makefile.inc:1.3 src/external/bsd/kyua-cli/Makefile.inc:1.3.2.1
--- src/external/bsd/kyua-cli/Makefile.inc:1.3	Sat Feb 15 19:42:10 2014
+++ src/external/bsd/kyua-cli/Makefile.inc	Sun Aug 10 07:07:20 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.3 2014/02/15 19:42:10 jmmv Exp $
+# $NetBSD: Makefile.inc,v 1.3.2.1 2014/08/10 07:07:20 tls Exp $
 
 .include 
 
@@ -11,7 +11,7 @@ KYUA_LIBS?=
 # Layout of installed files.
 KYUA_BINDIR=		/usr/bin
 KYUA_CONFDIR=		/etc/kyua
-KYUA_DOCDIR=		/usr/share/doc/kyua-cli
+KYUA_DOCDIR=		/usr/share/doc/reference/ref1/kyua/kyua-cli
 KYUA_EXAMPLESDIR=	/usr/share/examples/kyua-cli
 KYUA_MISCDIR=		/usr/share/kyua-cli/misc
 KYUA_STOREDIR=		/usr/share/kyua-cli/store



CVS commit: [tls-earlyentropy] src/external/gpl3/binutils/dist

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:10:23 UTC 2014

Modified Files:
src/external/gpl3/binutils/dist/bfd [tls-earlyentropy]: elf32-arm.c
src/external/gpl3/binutils/dist/ld/emulparams [tls-earlyentropy]:
armelf_nbsd.sh elf32_sparc.sh

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.4.2.1 src/external/gpl3/binutils/dist/bfd/elf32-arm.c
cvs rdiff -u -r1.4 -r1.4.2.1 \
src/external/gpl3/binutils/dist/ld/emulparams/armelf_nbsd.sh
cvs rdiff -u -r1.3 -r1.3.18.1 \
src/external/gpl3/binutils/dist/ld/emulparams/elf32_sparc.sh

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/bfd/elf32-arm.c
diff -u src/external/gpl3/binutils/dist/bfd/elf32-arm.c:1.4 src/external/gpl3/binutils/dist/bfd/elf32-arm.c:1.4.2.1
--- src/external/gpl3/binutils/dist/bfd/elf32-arm.c:1.4	Sun Sep 29 14:03:29 2013
+++ src/external/gpl3/binutils/dist/bfd/elf32-arm.c	Sun Aug 10 07:10:23 2014
@@ -15644,7 +15644,7 @@ const struct elf_size_info elf32_arm_siz
 #ifdef __QNXTARGET__
 #define ELF_MAXPAGESIZE			0x1000
 #else
-#define ELF_MAXPAGESIZE			0x8000
+#define ELF_MAXPAGESIZE			0x1
 #endif
 #define ELF_MINPAGESIZE			0x1000
 #define ELF_COMMONPAGESIZE		0x1000
@@ -15773,9 +15773,6 @@ elf32_arm_nacl_modify_segment_map (bfd *
 #undef	elf_backend_modify_program_headers
 #define	elf_backend_modify_program_headers	nacl_modify_program_headers
 
-#undef	ELF_MAXPAGESIZE
-#define ELF_MAXPAGESIZE			0x1
-
 #include "elf32-target.h"
 
 /* Reset to defaults.  */

Index: src/external/gpl3/binutils/dist/ld/emulparams/armelf_nbsd.sh
diff -u src/external/gpl3/binutils/dist/ld/emulparams/armelf_nbsd.sh:1.4 src/external/gpl3/binutils/dist/ld/emulparams/armelf_nbsd.sh:1.4.2.1
--- src/external/gpl3/binutils/dist/ld/emulparams/armelf_nbsd.sh:1.4	Fri Nov 29 23:01:54 2013
+++ src/external/gpl3/binutils/dist/ld/emulparams/armelf_nbsd.sh	Sun Aug 10 07:10:23 2014
@@ -1,6 +1,6 @@
 . ${srcdir}/emulparams/armelf.sh
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
-TEXT_START_ADDR=0x8000
+TEXT_START_ADDR=0x0001
 TARGET2_TYPE=got-rel
 
 unset DATA_START_SYMBOLS

Index: src/external/gpl3/binutils/dist/ld/emulparams/elf32_sparc.sh
diff -u src/external/gpl3/binutils/dist/ld/emulparams/elf32_sparc.sh:1.3 src/external/gpl3/binutils/dist/ld/emulparams/elf32_sparc.sh:1.3.18.1
--- src/external/gpl3/binutils/dist/ld/emulparams/elf32_sparc.sh:1.3	Sun Sep 25 04:32:43 2011
+++ src/external/gpl3/binutils/dist/ld/emulparams/elf32_sparc.sh	Sun Aug 10 07:10:23 2014
@@ -17,3 +17,9 @@ GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
 NOP=0x0100
 NO_SMALL_DATA=yes
+
+case "$target" in
+  sparc64-*-netbsd*)
+LIB_PATH='=/usr/lib/sparc'
+;;
+esac



CVS commit: [tls-earlyentropy] src/external/bsd/dhcp

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:06:57 UTC 2014

Modified Files:
src/external/bsd/dhcp [tls-earlyentropy]: Makefile.inc
src/external/bsd/dhcp/dist [tls-earlyentropy]: LICENSE Makefile.am
Makefile.in README RELNOTES aclocal.m4 configure configure.ac
depcomp install-sh missing
src/external/bsd/dhcp/dist/client [tls-earlyentropy]: Makefile.am
Makefile.in clparse.c dhc6.c dhclient-script.8 dhclient.8
dhclient.c dhclient.conf.5 dhclient.leases.5
src/external/bsd/dhcp/dist/client/scripts [tls-earlyentropy]: bsdos
freebsd macos netbsd openbsd openwrt
src/external/bsd/dhcp/dist/common [tls-earlyentropy]: Makefile.in
alloc.c bpf.c comapi.c conflex.c ctrace.c dhcp-eval.5
dhcp-options.5 discover.c dispatch.c dlpi.c dns.c ethernet.c
execute.c fddi.c icmp.c inet.c lpf.c memory.c nit.c ns_name.c
options.c packet.c parse.c print.c raw.c resolv.c socket.c tables.c
tr.c tree.c upf.c
src/external/bsd/dhcp/dist/common/tests [tls-earlyentropy]: Makefile.am
Makefile.in test_alloc.c
src/external/bsd/dhcp/dist/dhcpctl [tls-earlyentropy]: Makefile.am
Makefile.in callback.c cltest.c dhcpctl.3 dhcpctl.c dhcpctl.h
omshell.1 omshell.c remote.c
src/external/bsd/dhcp/dist/doc [tls-earlyentropy]: References.xml
src/external/bsd/dhcp/dist/doc/ja_JP.eucJP [tls-earlyentropy]:
dhclient-script.8 dhclient.8 dhclient.conf.5 dhclient.leases.5
dhcp-eval.5 dhcp-options.5
src/external/bsd/dhcp/dist/dst [tls-earlyentropy]: Makefile.in base64.c
dst_api.c dst_internal.h dst_support.c hmac_link.c md5.h md5_dgst.c
md5_locl.h prandom.c
src/external/bsd/dhcp/dist/includes [tls-earlyentropy]: Makefile.in
cdefs.h config.h.in ctrace.h dhcp.h dhcp6.h dhcpd.h dhctoken.h
failover.h heap.h inet.h minires.h osdep.h site.h statement.h
t_api.h tree.h
src/external/bsd/dhcp/dist/includes/arpa [tls-earlyentropy]: nameser.h
nameser_compat.h
src/external/bsd/dhcp/dist/includes/isc-dhcp [tls-earlyentropy]: dst.h
src/external/bsd/dhcp/dist/includes/netinet [tls-earlyentropy]:
if_ether.h ip.h ip_icmp.h udp.h
src/external/bsd/dhcp/dist/includes/omapip [tls-earlyentropy]: alloc.h
buffer.h convert.h hash.h isclib.h omapip.h omapip_p.h result.h
trace.h
src/external/bsd/dhcp/dist/omapip [tls-earlyentropy]: Makefile.am
Makefile.in alloc.c array.c auth.c buffer.c connection.c convert.c
dispatch.c errwarn.c generic.c handle.c hash.c inet_addr.c isclib.c
iscprint.c listener.c message.c omapi.3 protocol.c result.c
support.c test.c toisc.c trace.c
src/external/bsd/dhcp/dist/relay [tls-earlyentropy]: Makefile.am
Makefile.in dhcrelay.8 dhcrelay.c
src/external/bsd/dhcp/dist/server [tls-earlyentropy]: Makefile.am
Makefile.in bootp.c class.c confpars.c db.c ddns.c dhcp.c dhcpd.8
dhcpd.c dhcpd.conf.5 dhcpd.leases.5 dhcpleasequery.c dhcpv6.c
failover.c ldap.c ldap_casa.c mdb.c mdb6.c omapi.c salloc.c
stables.c
src/external/bsd/dhcp/dist/server/tests [tls-earlyentropy]: Makefile.am
Makefile.in hash_unittest.c load_bal_unittest.c mdb6_unittest.c
simple_unittest.c
src/external/bsd/dhcp/dist/tests [tls-earlyentropy]: Makefile.in
t_api.c t_api_dhcp.c unit_test_sample.c
src/external/bsd/dhcp/dist/tests/DHCPv6 [tls-earlyentropy]: README
src/external/bsd/dhcp/include [tls-earlyentropy]: config.h
Added Files:
src/external/bsd/dhcp/dist [tls-earlyentropy]: compile config.guess
config.sub test-driver
src/external/bsd/dhcp/dist/common/tests [tls-earlyentropy]:
dns_unittest.c
src/external/bsd/dhcp/dist/contrib [tls-earlyentropy]:
dhcp-lease-list.pl
src/external/bsd/dhcp/dist/doc/devel [tls-earlyentropy]: arch.dox
atf.dox contrib.dox debug.dox isc-logo.jpg mainpage.dox omapi.dox
qa.dox

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.10.2.1 src/external/bsd/dhcp/Makefile.inc
cvs rdiff -u -r1.1.1.2 -r1.1.1.2.8.1 src/external/bsd/dhcp/dist/LICENSE \
src/external/bsd/dhcp/dist/Makefile.am \
src/external/bsd/dhcp/dist/Makefile.in \
src/external/bsd/dhcp/dist/aclocal.m4
cvs rdiff -u -r1.1.1.3 -r1.1.1.3.8.1 src/external/bsd/dhcp/dist/README \
src/external/bsd/dhcp/dist/RELNOTES src/external/bsd/dhcp/dist/configure \
src/external/bsd/dhcp/dist/configure.ac
cvs rdiff -u -r0 -r1.1.1.1.2.2 src/external/bsd/dhcp/dist/compile \
src/external/bsd/dhcp/dist/config.guess \
src/external/bsd/dhcp/dist/config.sub \
src/external/bsd/dh

CVS commit: [tls-earlyentropy] src/external/bsd/libpcap/include

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:07:40 UTC 2014

Modified Files:
src/external/bsd/libpcap/include [tls-earlyentropy]: config.h

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.5.2.1 src/external/bsd/libpcap/include/config.h

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

Modified files:

Index: src/external/bsd/libpcap/include/config.h
diff -u src/external/bsd/libpcap/include/config.h:1.5 src/external/bsd/libpcap/include/config.h:1.5.2.1
--- src/external/bsd/libpcap/include/config.h:1.5	Tue Dec 31 17:08:14 2013
+++ src/external/bsd/libpcap/include/config.h	Sun Aug 10 07:07:40 2014
@@ -5,7 +5,7 @@
 /* #undef BDEBUG */
 
 /* define if you have a cloning BPF device */
-/* #undef HAVE_CLONING_BPF */
+#define HAVE_CLONING_BPF 1
 
 /* define if you have the DAG API */
 /* #undef HAVE_DAG_API */



CVS commit: [tls-earlyentropy] src/external/bsd/ekermit

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:07:02 UTC 2014

Added Files:
src/external/bsd/ekermit [tls-earlyentropy]: Makefile Makefile.inc
src/external/bsd/ekermit/bin [tls-earlyentropy]: Makefile
src/external/bsd/ekermit/bin/ekermit [tls-earlyentropy]: Makefile
ekermit.1
src/external/bsd/ekermit/dist [tls-earlyentropy]: COPYING cdefs.h
debug.h kermit.c kermit.h main.c makefile platform.h unix.h
unixio.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1.2.2 src/external/bsd/ekermit/Makefile \
src/external/bsd/ekermit/Makefile.inc
cvs rdiff -u -r0 -r1.1.2.2 src/external/bsd/ekermit/bin/Makefile
cvs rdiff -u -r0 -r1.3.2.2 src/external/bsd/ekermit/bin/ekermit/Makefile \
src/external/bsd/ekermit/bin/ekermit/ekermit.1
cvs rdiff -u -r0 -r1.1.1.1.2.2 src/external/bsd/ekermit/dist/COPYING \
src/external/bsd/ekermit/dist/cdefs.h \
src/external/bsd/ekermit/dist/debug.h \
src/external/bsd/ekermit/dist/kermit.c \
src/external/bsd/ekermit/dist/makefile \
src/external/bsd/ekermit/dist/unix.h \
src/external/bsd/ekermit/dist/unixio.c
cvs rdiff -u -r0 -r1.2.2.2 src/external/bsd/ekermit/dist/kermit.h \
src/external/bsd/ekermit/dist/platform.h
cvs rdiff -u -r0 -r1.3.2.2 src/external/bsd/ekermit/dist/main.c

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

Added files:

Index: src/external/bsd/ekermit/Makefile
diff -u /dev/null src/external/bsd/ekermit/Makefile:1.1.2.2
--- /dev/null	Sun Aug 10 07:07:02 2014
+++ src/external/bsd/ekermit/Makefile	Sun Aug 10 07:07:02 2014
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1.2.2 2014/08/10 07:07:02 tls Exp $
+
+SUBDIR=	bin
+
+.include 
Index: src/external/bsd/ekermit/Makefile.inc
diff -u /dev/null src/external/bsd/ekermit/Makefile.inc:1.1.2.2
--- /dev/null	Sun Aug 10 07:07:02 2014
+++ src/external/bsd/ekermit/Makefile.inc	Sun Aug 10 07:07:02 2014
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile.inc,v 1.1.2.2 2014/08/10 07:07:02 tls Exp $
+
+.include 
+
+EKERMITDIST:=  ${.PARSEDIR}/dist

Index: src/external/bsd/ekermit/bin/Makefile
diff -u /dev/null src/external/bsd/ekermit/bin/Makefile:1.1.2.2
--- /dev/null	Sun Aug 10 07:07:02 2014
+++ src/external/bsd/ekermit/bin/Makefile	Sun Aug 10 07:07:02 2014
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1.2.2 2014/08/10 07:07:02 tls Exp $
+
+SUBDIR=	ekermit
+
+.include 

Index: src/external/bsd/ekermit/bin/ekermit/Makefile
diff -u /dev/null src/external/bsd/ekermit/bin/ekermit/Makefile:1.3.2.2
--- /dev/null	Sun Aug 10 07:07:02 2014
+++ src/external/bsd/ekermit/bin/ekermit/Makefile	Sun Aug 10 07:07:02 2014
@@ -0,0 +1,15 @@
+#	$NetBSD: Makefile,v 1.3.2.2 2014/08/10 07:07:02 tls Exp $
+
+.include "../../Makefile.inc"
+
+BINDIR=	/usr/bin
+PROG=	ekermit
+SRCS=	main.c kermit.c unixio.c
+
+MAN=	ekermit.1
+
+.PATH: ${EKERMITDIST}
+
+CWARNFLAGS+=	-Wno-error=pointer-sign
+
+.include 
Index: src/external/bsd/ekermit/bin/ekermit/ekermit.1
diff -u /dev/null src/external/bsd/ekermit/bin/ekermit/ekermit.1:1.3.2.2
--- /dev/null	Sun Aug 10 07:07:02 2014
+++ src/external/bsd/ekermit/bin/ekermit/ekermit.1	Sun Aug 10 07:07:02 2014
@@ -0,0 +1,143 @@
+.\" $NetBSD: ekermit.1,v 1.3.2.2 2014/08/10 07:07:02 tls Exp $
+.Dd August 8, 2014
+.Dt EKERMIT 1
+.Os
+.Sh NAME
+.Nm ekermit
+.Nd Send or receive files using Kermit file transfer protocol
+.Sh SYNOPSIS
+.Nm
+.Op Fl BdhkLRrT
+.Op Fl b Ar 1235
+.Op Fl E Ar number
+.Op Fl p Ar neoms
+.Op Fl s Ar file
+.Sh DESCRIPTION
+.Nm
+is a simple command line interface to
+EK (Embedded Kermit, E-Kermit),
+which is an implementation of the Kermit file
+transfer protocol written in ANSI C and designed for embedding in devices or
+firmware, use in realtime applications, or for construction of DLLs and
+libraries.
+.Pp
+.\" "What E-Kermit Does"
+.Nm
+performs just two functions: sending files and receiving files.
+.\" "What E-Kermit Does NOT Do"
+.Pp
+.Nm
+does not include client/server functions; a command or script
+programming language; character-set conversion; transport encryption;
+or any form of communications or file input/output.
+It does not dial modems, it does not make connections,
+it does not have a built-in TCP/IP stack or interface to an external one.
+If you need these features, then you should use a full Kermit program,
+such as C-Kermit or Kermit 95.
+.Pp
+The following options are available:
+.Bl -tag -width "XsXfileX..." -offset indent
+.It Fl B
+Force binary mode.
+.It Fl b Ar 1235
+Block check type: 1, 2, 3, or 5.
+.It Fl d
+Create
+.Pa debug.log .
+.It Fl E Ar number
+Simulated error rate (0-100).
+.It Fl h
+Display a help message.
+.It Fl k
+Keep incompletely received files.
+.It Fl L
+Local mode (vs remote).
+.It Fl p Ar neoms
+Parity: none, even, odd, mark, space.
+.It Fl R
+Remote mode (vs local).
+.It Fl r
+Receive files.
+.It Fl s Ar file ...
+Send files.
+.It Fl T
+Force text mode.
+.El
+.
+.Sh IMPLEMENTATI

CVS commit: [tls-earlyentropy] src/external/bsd/wpa/dist/src/drivers

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:10:21 UTC 2014

Modified Files:
src/external/bsd/wpa/dist/src/drivers [tls-earlyentropy]: driver_bsd.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.7.2.1 \
src/external/bsd/wpa/dist/src/drivers/driver_bsd.c

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

Modified files:

Index: src/external/bsd/wpa/dist/src/drivers/driver_bsd.c
diff -u src/external/bsd/wpa/dist/src/drivers/driver_bsd.c:1.7 src/external/bsd/wpa/dist/src/drivers/driver_bsd.c:1.7.2.1
--- src/external/bsd/wpa/dist/src/drivers/driver_bsd.c:1.7	Fri Jan  3 02:08:17 2014
+++ src/external/bsd/wpa/dist/src/drivers/driver_bsd.c	Sun Aug 10 07:10:21 2014
@@ -853,12 +853,13 @@ bsd_init(struct hostapd_data *hapd, stru
 
 	return drv;
 bad:
-	if (drv->sock_xmit != NULL)
-		l2_packet_deinit(drv->sock_xmit);
-	if (drv->sock >= 0)
-		close(drv->sock);
-	if (drv != NULL)
+	if (drv != NULL) {
+		if (drv->sock_xmit != NULL)
+			l2_packet_deinit(drv->sock_xmit);
+		if (drv->sock >= 0)
+			close(drv->sock);
 		os_free(drv);
+	}
 	return NULL;
 }
 
@@ -1353,7 +1354,7 @@ wpa_driver_bsd_add_scan_entry(struct wpa
 	result->freq = sr->isr_freq;
 	result->beacon_int = sr->isr_intval;
 	result->caps = sr->isr_capinfo;
-	result->qual = sr->isr_rssi;
+	result->level = sr->isr_rssi;
 	result->noise = sr->isr_noise;
 
 	pos = (u8 *)(result + 1);



CVS commit: [tls-earlyentropy] src/external/bsd/sljit

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:10:11 UTC 2014

Modified Files:
src/external/bsd/sljit [tls-earlyentropy]: Makefile.inc

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.1.10.1 src/external/bsd/sljit/Makefile.inc

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

Modified files:

Index: src/external/bsd/sljit/Makefile.inc
diff -u src/external/bsd/sljit/Makefile.inc:1.1 src/external/bsd/sljit/Makefile.inc:1.1.10.1
--- src/external/bsd/sljit/Makefile.inc:1.1	Mon Nov  5 00:23:18 2012
+++ src/external/bsd/sljit/Makefile.inc	Sun Aug 10 07:10:11 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.1 2012/11/05 00:23:18 alnsn Exp $
+# $NetBSD: Makefile.inc,v 1.1.10.1 2014/08/10 07:10:11 tls Exp $
 
 .include 
 
@@ -6,3 +6,9 @@ SLJITDIST=	${NETBSDSRCDIR}/sys/external/
 LIBSLJITDIR!=	cd ${NETBSDSRCDIR}/external/bsd/sljit/lib && ${PRINTOBJDIR}
 
 CPPFLAGS+=	-I${SLJITDIST}/sljit_src
+
+# Link to libarm to get arm_sync_icache(2), for mips it's not
+# required because _cacheflush() is in libc.
+.if !empty(MACHINE_ARCH:Marm*) || !empty(MACHINE_ARCH:Mearm*)
+LDADD+=	-larm
+.endif



CVS commit: [tls-earlyentropy] src/external/bsd/tcpdump/dist

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:10:13 UTC 2014

Modified Files:
src/external/bsd/tcpdump/dist [tls-earlyentropy]: tcpdump.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.7.2.1 src/external/bsd/tcpdump/dist/tcpdump.c

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

Modified files:

Index: src/external/bsd/tcpdump/dist/tcpdump.c
diff -u src/external/bsd/tcpdump/dist/tcpdump.c:1.7 src/external/bsd/tcpdump/dist/tcpdump.c:1.7.2.1
--- src/external/bsd/tcpdump/dist/tcpdump.c:1.7	Tue Dec 31 17:33:31 2013
+++ src/external/bsd/tcpdump/dist/tcpdump.c	Sun Aug 10 07:10:13 2014
@@ -34,7 +34,7 @@ The Regents of the University of Califor
 static const char rcsid[] _U_ =
 "@(#) Header: /tcpdump/master/tcpdump/tcpdump.c,v 1.283 2008-09-25 21:45:50 guy Exp  (LBL)";
 #else
-__RCSID("$NetBSD: tcpdump.c,v 1.7 2013/12/31 17:33:31 christos Exp $");
+__RCSID("$NetBSD: tcpdump.c,v 1.7.2.1 2014/08/10 07:10:13 tls Exp $");
 #endif
 #endif
 
@@ -1482,8 +1482,12 @@ main(int argc, char **argv)
 #endif /* HAVE_CAP_NG_H */
 
 	if (getuid() == 0 || geteuid() == 0) {
-		if (username || chroot_dir)
+		if (username || chroot_dir) {
+#ifndef HAVE_CAP_NG_H
+			if (!WFileName)
+#endif
 			droproot(username, chroot_dir);
+		}
 
 	}
 #endif /* WIN32 */



CVS commit: [tls-earlyentropy] src/external/bsd/top/dist

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:10:19 UTC 2014

Modified Files:
src/external/bsd/top/dist [tls-earlyentropy]: display.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.9.22.1 src/external/bsd/top/dist/display.c

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

Modified files:

Index: src/external/bsd/top/dist/display.c
diff -u src/external/bsd/top/dist/display.c:1.9 src/external/bsd/top/dist/display.c:1.9.22.1
--- src/external/bsd/top/dist/display.c:1.9	Sat Jul  3 13:18:57 2010
+++ src/external/bsd/top/dist/display.c	Sun Aug 10 07:10:19 2014
@@ -723,8 +723,9 @@ display_resize()
 
 /* adjust total lines on screen to lines available for procs */
 if (top_lines < y_procs)
-	return -1;
-top_lines -= y_procs;
+	top_lines = 0;
+else
+	top_lines -= y_procs;
 
 /* return number of lines available */
 return top_lines;



CVS commit: [tls-earlyentropy] src/external/bsd/cron/dist

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:06:51 UTC 2014

Modified Files:
src/external/bsd/cron/dist [tls-earlyentropy]: do_command.c entry.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.3.20.1 src/external/bsd/cron/dist/do_command.c
cvs rdiff -u -r1.4 -r1.4.24.1 src/external/bsd/cron/dist/entry.c

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

Modified files:

Index: src/external/bsd/cron/dist/do_command.c
diff -u src/external/bsd/cron/dist/do_command.c:1.3 src/external/bsd/cron/dist/do_command.c:1.3.20.1
--- src/external/bsd/cron/dist/do_command.c:1.3	Sun Jul 17 01:14:25 2011
+++ src/external/bsd/cron/dist/do_command.c	Sun Aug 10 07:06:51 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: do_command.c,v 1.3 2011/07/17 01:14:25 christos Exp $	*/
+/*	$NetBSD: do_command.c,v 1.3.20.1 2014/08/10 07:06:51 tls Exp $	*/
 
 /* Copyright 1988,1990,1993,1994 by Paul Vixie
  * All rights reserved
@@ -25,7 +25,7 @@
 #if 0
 static char rcsid[] = "Id: do_command.c,v 1.9 2004/01/23 18:56:42 vixie Exp";
 #else
-__RCSID("$NetBSD: do_command.c,v 1.3 2011/07/17 01:14:25 christos Exp $");
+__RCSID("$NetBSD: do_command.c,v 1.3.20.1 2014/08/10 07:06:51 tls Exp $");
 #endif
 #endif
 
@@ -71,7 +71,7 @@ static void
 child_process(entry *e) {
 	int stdin_pipe[2], stdout_pipe[2];
 	char * volatile input_data;
-	char *usernm, * volatile mailto;
+	char *homedir, *usernm, * volatile mailto;
 	int children = 0;
 
 	Debug(DPROC, ("[%ld] child_process('%s')\n", (long)getpid(), e->cmd));
@@ -243,28 +243,33 @@ child_process(entry *e) {
 		}
 #else
 		if (setgid(e->pwd->pw_gid) != 0) {
-			syslog(LOG_ERR, "setgid failed");
+			syslog(LOG_ERR, "setgid(%d) failed for %s: %m",
+			e->pwd->pw_gid, e->pwd->pw_name);
 			_exit(ERROR_EXIT);
 		}
 		if (initgroups(usernm, e->pwd->pw_gid) != 0) {
-			syslog(LOG_ERR, "initgroups failed");
+			syslog(LOG_ERR, "initgroups(%s, %d) failed for %s: %m",
+			usernm, e->pwd->pw_gid, e->pwd->pw_name);
 			_exit(ERROR_EXIT);
 		}
 #if (defined(BSD)) && (BSD >= 199103)
 		if (setlogin(usernm) < 0) {
-			syslog(LOG_ERR, "setlogin() failure: %m");
+			syslog(LOG_ERR, "setlogin(%s) failure for %s: %m",
+			usernm, e->pwd->pw_name);
 			_exit(ERROR_EXIT);
 		}
 #endif /* BSD */
 		if (setuid(e->pwd->pw_uid) != 0) {
-			syslog(LOG_ERR, "setuid failed");
+			syslog(LOG_ERR, "setuid(%d) failed for %s: %m",
+			e->pwd->pw_uid, e->pwd->pw_name);
 			_exit(ERROR_EXIT);
 		}
 		/* we aren't root after this... */
 #endif /* LOGIN_CAP */
-
-		if (chdir(env_get("HOME", e->envp)) != 0) {
-			syslog(LOG_ERR, "chdir $HOME failed");
+		homedir = env_get("HOME", e->envp);
+		if (chdir(homedir) != 0) {
+			syslog(LOG_ERR, "chdir(%s) $HOME failed for %s: %m",
+			homedir, e->pwd->pw_name);
 			_exit(ERROR_EXIT);
 		}
 

Index: src/external/bsd/cron/dist/entry.c
diff -u src/external/bsd/cron/dist/entry.c:1.4 src/external/bsd/cron/dist/entry.c:1.4.24.1
--- src/external/bsd/cron/dist/entry.c:1.4	Thu Jul 15 20:03:28 2010
+++ src/external/bsd/cron/dist/entry.c	Sun Aug 10 07:06:51 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: entry.c,v 1.4 2010/07/15 20:03:28 christos Exp $	*/
+/*	$NetBSD: entry.c,v 1.4.24.1 2014/08/10 07:06:51 tls Exp $	*/
 
 /*
  * Copyright 1988,1990,1993,1994 by Paul Vixie
@@ -26,7 +26,7 @@
 #if 0
 static char rcsid[] = "Id: entry.c,v 1.17 2004/01/23 18:56:42 vixie Exp";
 #else
-__RCSID("$NetBSD: entry.c,v 1.4 2010/07/15 20:03:28 christos Exp $");
+__RCSID("$NetBSD: entry.c,v 1.4.24.1 2014/08/10 07:06:51 tls Exp $");
 #endif
 #endif
 
@@ -479,7 +479,6 @@ get_range(bitstr_t *bits, int low, int h
 		if (ch == EOF)
 			return (EOF);
 	} else if (ch == '?') {
-	} else if (ch == '?') {
 		qmark = TRUE;
 		ch = get_char(file);
 		if (ch == EOF)



CVS commit: [tls-earlyentropy] src/external/bsd/openpam/dist

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:10:01 UTC 2014

Modified Files:
src/external/bsd/openpam/dist/doc/man [tls-earlyentropy]: openpam.3
pam.3
src/external/bsd/openpam/dist/lib [tls-earlyentropy]:
openpam_configure.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.5.2.1 src/external/bsd/openpam/dist/doc/man/openpam.3 \
src/external/bsd/openpam/dist/doc/man/pam.3
cvs rdiff -u -r1.7 -r1.7.2.1 \
src/external/bsd/openpam/dist/lib/openpam_configure.c

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

Modified files:

Index: src/external/bsd/openpam/dist/doc/man/openpam.3
diff -u src/external/bsd/openpam/dist/doc/man/openpam.3:1.5 src/external/bsd/openpam/dist/doc/man/openpam.3:1.5.2.1
--- src/external/bsd/openpam/dist/doc/man/openpam.3:1.5	Fri Dec 27 20:10:20 2013
+++ src/external/bsd/openpam/dist/doc/man/openpam.3	Sun Aug 10 07:10:01 2014
@@ -1,10 +1,11 @@
-.\"	$NetBSD: openpam.3,v 1.5 2013/12/27 20:10:20 christos Exp $
+.\"	$NetBSD: openpam.3,v 1.5.2.1 2014/08/10 07:10:01 tls Exp $
 .\"
 .\" Generated by gendoc.pl
 .Dd September 7, 2013
 .Dt OPENPAM 3
 .Os
 .Sh NAME
+.Nm pam
 .Nd Pluggable Authentication Modules Library
 .Sh LIBRARY
 .Lb libpam
Index: src/external/bsd/openpam/dist/doc/man/pam.3
diff -u src/external/bsd/openpam/dist/doc/man/pam.3:1.5 src/external/bsd/openpam/dist/doc/man/pam.3:1.5.2.1
--- src/external/bsd/openpam/dist/doc/man/pam.3:1.5	Fri Dec 27 20:10:20 2013
+++ src/external/bsd/openpam/dist/doc/man/pam.3	Sun Aug 10 07:10:01 2014
@@ -1,10 +1,11 @@
-.\"	$NetBSD: pam.3,v 1.5 2013/12/27 20:10:20 christos Exp $
+.\"	$NetBSD: pam.3,v 1.5.2.1 2014/08/10 07:10:01 tls Exp $
 .\"
 .\" Generated by gendoc.pl
 .Dd September 7, 2013
 .Dt PAM 3
 .Os
 .Sh NAME
+.Nm openpam
 .Nd Pluggable Authentication Modules Library
 .Sh LIBRARY
 .Lb libpam

Index: src/external/bsd/openpam/dist/lib/openpam_configure.c
diff -u src/external/bsd/openpam/dist/lib/openpam_configure.c:1.7 src/external/bsd/openpam/dist/lib/openpam_configure.c:1.7.2.1
--- src/external/bsd/openpam/dist/lib/openpam_configure.c:1.7	Fri Jan  3 22:49:21 2014
+++ src/external/bsd/openpam/dist/lib/openpam_configure.c	Sun Aug 10 07:10:01 2014
@@ -1,8 +1,8 @@
-/*	$NetBSD: openpam_configure.c,v 1.7 2014/01/03 22:49:21 joerg Exp $	*/
+/*	$NetBSD: openpam_configure.c,v 1.7.2.1 2014/08/10 07:10:01 tls Exp $	*/
 
 /*-
  * Copyright (c) 2001-2003 Networks Associates Technology, Inc.
- * Copyright (c) 2004-2012 Dag-Erling Smørgrav
+ * Copyright (c) 2004-2014 Dag-Erling Smørgrav
  * All rights reserved.
  *
  * This software was developed for the FreeBSD Project by ThinkSec AS and
@@ -195,6 +195,7 @@ openpam_parse_chain(pam_handle_t *pamh,
 			openpam_log(PAM_LOG_ERROR,
 			"%s(%d): missing or invalid facility",
 			filename, lineno);
+			errno = EINVAL;
 			goto fail;
 		}
 		if (facility != fclt && facility != PAM_FACILITY_ANY) {
@@ -210,18 +211,39 @@ openpam_parse_chain(pam_handle_t *pamh,
 openpam_log(PAM_LOG_ERROR,
 "%s(%d): missing or invalid service name",
 filename, lineno);
+errno = EINVAL;
 goto fail;
 			}
 			if (wordv[i] != NULL) {
 openpam_log(PAM_LOG_ERROR,
 "%s(%d): garbage at end of line",
 filename, lineno);
+errno = EINVAL;
 goto fail;
 			}
 			ret = openpam_load_chain(pamh, servicename, fclt);
 			FREEV(wordc, wordv);
-			if (ret < 0)
+			if (ret < 0) {
+/*
+ * Bogus errno, but this ensures that the
+ * outer loop does not just ignore the
+ * error and keep searching.
+ */
+if (errno == ENOENT) {
+	/*
+	 * we're failing load, make sure
+	 * there's a log message of severity
+	 * higher than debug
+	 */
+	openpam_log(PAM_LOG_ERROR,
+	"failed loading include for service "
+	"%s in %s(%d): %s",
+	servicename, filename, lineno,
+	strerror(errno));
+	errno = EINVAL;
+}
 goto fail;
+			}
 			continue;
 		}
 
@@ -231,6 +253,7 @@ openpam_parse_chain(pam_handle_t *pamh,
 			openpam_log(PAM_LOG_ERROR,
 			"%s(%d): missing or invalid control flag",
 			filename, lineno);
+			errno = EINVAL;
 			goto fail;
 		}
 
@@ -240,6 +263,7 @@ openpam_parse_chain(pam_handle_t *pamh,
 			openpam_log(PAM_LOG_ERROR,
 			"%s(%d): missing or invalid module name",
 			filename, lineno);
+			errno = EINVAL;
 			goto fail;
 		}
 
@@ -249,8 +273,11 @@ openpam_parse_chain(pam_handle_t *pamh,
 		this->flag = ctlf;
 
 		/* load module */
-		if ((this->module = openpam_load_module(modulename)) == NULL)
+		if ((this->module = openpam_load_module(modulename)) == NULL) {
+			if (errno == ENOENT)
+errno = ENOEXEC;
 			goto fail;
+		}
 
 		/*
 		 * The remaining items in wordv are the module's
@@ -283,7 +310,11 @@ openpam_parse_chain(pam_handle_t *pamh,
 	 * The loop ended because openpam_readword() returned NULL, which
 	 * can happen for four diffe

CVS commit: [tls-earlyentropy] src/external/bsd/openldap

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:09:54 UTC 2014

Modified Files:
src/external/bsd/openldap [tls-earlyentropy]: openldap.mk
src/external/bsd/openldap/bin [tls-earlyentropy]: Makefile.inc
src/external/bsd/openldap/dist [tls-earlyentropy]: ANNOUNCEMENT CHANGES
COPYRIGHT INSTALL Makefile.in README configure configure.in
src/external/bsd/openldap/dist/build [tls-earlyentropy]: config.guess
config.sub dir.mk info.mk lib-shared.mk lib-static.mk lib.mk
ltmain.sh man.mk missing mkdep mkdep.aix mkrelease mkvers.bat
mkversion mod.mk openldap.m4 rules.mk srv.mk top.mk version.h
version.sh version.var
src/external/bsd/openldap/dist/clients [tls-earlyentropy]: Makefile.in
src/external/bsd/openldap/dist/clients/tools [tls-earlyentropy]:
Makefile.in common.c common.h ldapcompare.c ldapdelete.c ldapexop.c
ldapmodify.c ldapmodrdn.c ldappasswd.c ldapsearch.c ldapurl.c
ldapwhoami.c
src/external/bsd/openldap/dist/contrib [tls-earlyentropy]: ConfigOIDs
README
src/external/bsd/openldap/dist/contrib/ldapc++ [tls-earlyentropy]:
COPYRIGHT Makefile.am Makefile.in configure configure.in doxygen.rc
version.sh version.var
src/external/bsd/openldap/dist/contrib/ldapc++/examples 
[tls-earlyentropy]:
Makefile.am Makefile.in main.cpp readSchema.cpp startTls.cpp
urlTest.cpp
src/external/bsd/openldap/dist/contrib/ldapc++/src [tls-earlyentropy]:
LDAPAddRequest.cpp LDAPAddRequest.h LDAPAsynConnection.cpp
LDAPAsynConnection.h LDAPAttrType.cpp LDAPAttrType.h
LDAPAttribute.cpp LDAPAttribute.h LDAPAttributeList.cpp
LDAPAttributeList.h LDAPBindRequest.cpp LDAPBindRequest.h
LDAPCompareRequest.cpp LDAPCompareRequest.h LDAPConnection.cpp
LDAPConnection.h LDAPConstraints.cpp LDAPConstraints.h
LDAPControl.cpp LDAPControl.h LDAPControlSet.cpp LDAPControlSet.h
LDAPDeleteRequest.cpp LDAPDeleteRequest.h LDAPEntry.cpp LDAPEntry.h
LDAPEntryList.cpp LDAPEntryList.h LDAPException.cpp LDAPException.h
LDAPExtRequest.cpp LDAPExtRequest.h LDAPExtResult.cpp
LDAPExtResult.h LDAPMessage.cpp LDAPMessage.h LDAPMessageQueue.cpp
LDAPMessageQueue.h LDAPModDNRequest.cpp LDAPModDNRequest.h
LDAPModList.cpp LDAPModList.h LDAPModification.cpp
LDAPModification.h LDAPModifyRequest.cpp LDAPModifyRequest.h
LDAPObjClass.cpp LDAPObjClass.h LDAPRebind.cpp LDAPRebind.h
LDAPRebindAuth.cpp LDAPRebindAuth.h LDAPReferenceList.cpp
LDAPReferenceList.h LDAPRequest.cpp LDAPRequest.h LDAPResult.cpp
LDAPResult.h LDAPSaslBindResult.cpp LDAPSaslBindResult.h
LDAPSchema.cpp LDAPSchema.h LDAPSearchReference.cpp
LDAPSearchReference.h LDAPSearchRequest.cpp LDAPSearchRequest.h
LDAPSearchResult.cpp LDAPSearchResult.h LDAPSearchResults.cpp
LDAPSearchResults.h LDAPUrl.cpp LDAPUrl.h LDAPUrlList.cpp
LDAPUrlList.h LdifReader.cpp LdifReader.h LdifWriter.cpp
LdifWriter.h Makefile.am Makefile.in SaslInteraction.cpp
SaslInteraction.h SaslInteractionHandler.cpp
SaslInteractionHandler.h StringList.cpp StringList.h TlsOptions.cpp
TlsOptions.h debug.h
src/external/bsd/openldap/dist/contrib/ldapc++/src/ac 
[tls-earlyentropy]:
time.h
src/external/bsd/openldap/dist/contrib/ldaptcl [tls-earlyentropy]:
COPYRIGHT Makefile.in configure configure.in neoXldap.c tkAppInit.c
src/external/bsd/openldap/dist/contrib/slapd-modules [tls-earlyentropy]:
README
src/external/bsd/openldap/dist/contrib/slapd-modules/acl 
[tls-earlyentropy]:
README.posixgroup posixgroup.c
src/external/bsd/openldap/dist/contrib/slapd-modules/addpartial 
[tls-earlyentropy]:
Makefile README addpartial-overlay.c
src/external/bsd/openldap/dist/contrib/slapd-modules/allop 
[tls-earlyentropy]:
README allop.c slapo-allop.5
src/external/bsd/openldap/dist/contrib/slapd-modules/allowed 
[tls-earlyentropy]:
Makefile README allowed.c
src/external/bsd/openldap/dist/contrib/slapd-modules/autogroup 
[tls-earlyentropy]:
Makefile README autogroup.c
src/external/bsd/openldap/dist/contrib/slapd-modules/cloak 
[tls-earlyentropy]:
Makefile cloak.c slapo-cloak.5
src/external/bsd/openldap/dist/contrib/slapd-modules/comp_match 
[tls-earlyentropy]:
Makefile
src/external/bsd/openldap/dist/contrib/slapd-modules/denyop 
[tls-earlyentropy]:
denyop.c
src/external/bsd/openldap/dist/contrib/slapd-modules/dsaschema 
[tls-earlyentropy]:
README dsaschema.c
src/ex

CVS commit: [tls-earlyentropy] src/external/bsd/libevent/man

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:07:38 UTC 2014

Modified Files:
src/external/bsd/libevent/man [tls-earlyentropy]: Makefile

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.2.8.1 src/external/bsd/libevent/man/Makefile

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

Modified files:

Index: src/external/bsd/libevent/man/Makefile
diff -u src/external/bsd/libevent/man/Makefile:1.2 src/external/bsd/libevent/man/Makefile:1.2.8.1
--- src/external/bsd/libevent/man/Makefile:1.2	Thu Apr 11 17:49:12 2013
+++ src/external/bsd/libevent/man/Makefile	Sun Aug 10 07:07:38 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2013/04/11 17:49:12 christos Exp $
+# $NetBSD: Makefile,v 1.2.8.1 2014/08/10 07:07:38 tls Exp $
 
 # Try to undo the doxygen lossage in the man pages.
 
@@ -20,7 +20,7 @@ HMAN1=${HSRCS1:S/^/ev/g:S/.h.3/.3/g}
 
 .for i in ${HSRCS1}
 ev${i:S/.h.3/.3/g}: $i
-	${.CURDIR}/fixman ${TOOL_SED} ${.ALLSRC} ${.TARGET}
+	${HOST_SH} ${.CURDIR}/fixman ${TOOL_SED} ${.ALLSRC} ${.TARGET}
 .endfor
 
 HSRCS2= \
@@ -30,7 +30,7 @@ event_compat.h.3
 
 .for i in ${HSRCS2}
 ${i:S/.h.3/.3/g}: $i
-	${.CURDIR}/fixman ${TOOL_SED} ${.ALLSRC} ${.TARGET}
+	${HOST_SH} ${.CURDIR}/fixman ${TOOL_SED} ${.ALLSRC} ${.TARGET}
 .endfor
 
 HMAN2=${HSRCS2:S/.h.3/.3/g}
@@ -59,4 +59,6 @@ MAN+= ${HMAN1} ${HMAN2} ${MAN1}
 
 CLEANFILES+=${HMAN1} ${HMAN2} ${MAN1}
 
+USETBL=	yes
+
 .include 



CVS commit: [tls-earlyentropy] src/external/bsd/kyua-testers/share/doc/kyua-testers

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:07:22 UTC 2014

Modified Files:
src/external/bsd/kyua-testers/share/doc/kyua-testers [tls-earlyentropy]:
Makefile

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.1.10.1 \
src/external/bsd/kyua-testers/share/doc/kyua-testers/Makefile

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

Modified files:

Index: src/external/bsd/kyua-testers/share/doc/kyua-testers/Makefile
diff -u src/external/bsd/kyua-testers/share/doc/kyua-testers/Makefile:1.1 src/external/bsd/kyua-testers/share/doc/kyua-testers/Makefile:1.1.10.1
--- src/external/bsd/kyua-testers/share/doc/kyua-testers/Makefile:1.1	Sun Feb 24 03:12:59 2013
+++ src/external/bsd/kyua-testers/share/doc/kyua-testers/Makefile	Sun Aug 10 07:07:22 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2013/02/24 03:12:59 jmmv Exp $
+# $NetBSD: Makefile,v 1.1.10.1 2014/08/10 07:07:22 tls Exp $
 
 .include 
 
@@ -8,7 +8,7 @@ SRCDIR=		${NETBSDSRCDIR}/external/bsd/ky
 .if ${MKSHARE} != "no"
 .PATH:		${SRCDIR}
 
-FILESDIR=	/usr/share/doc/kyua-testers
+FILESDIR=	/usr/share/doc/reference/ref1/kyua/kyua-testers
 FILESMODE=	444
 FILES=		AUTHORS COPYING NEWS README
 .endif



CVS commit: [tls-earlyentropy] src/external/bsd/nvi

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:09:35 UTC 2014

Modified Files:
src/external/bsd/nvi/docs/USD.doc/edit [tls-earlyentropy]: Makefile
src/external/bsd/nvi/docs/USD.doc/exref [tls-earlyentropy]: Makefile
src/external/bsd/nvi/docs/USD.doc/vi.ref [tls-earlyentropy]: Makefile
src/external/bsd/nvi/docs/USD.doc/vitut [tls-earlyentropy]: Makefile
src/external/bsd/nvi/usr.bin/nvi [tls-earlyentropy]: Makefile

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.1.2.1 src/external/bsd/nvi/docs/USD.doc/edit/Makefile
cvs rdiff -u -r1.1 -r1.1.2.1 src/external/bsd/nvi/docs/USD.doc/exref/Makefile
cvs rdiff -u -r1.1 -r1.1.2.1 \
src/external/bsd/nvi/docs/USD.doc/vi.ref/Makefile
cvs rdiff -u -r1.1 -r1.1.2.1 src/external/bsd/nvi/docs/USD.doc/vitut/Makefile
cvs rdiff -u -r1.4 -r1.4.2.1 src/external/bsd/nvi/usr.bin/nvi/Makefile

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

Modified files:

Index: src/external/bsd/nvi/docs/USD.doc/edit/Makefile
diff -u src/external/bsd/nvi/docs/USD.doc/edit/Makefile:1.1 src/external/bsd/nvi/docs/USD.doc/edit/Makefile:1.1.2.1
--- src/external/bsd/nvi/docs/USD.doc/edit/Makefile:1.1	Fri Nov 22 16:00:45 2013
+++ src/external/bsd/nvi/docs/USD.doc/edit/Makefile	Sun Aug 10 07:09:35 2014
@@ -1,17 +1,18 @@
-#	$NetBSD: Makefile,v 1.1 2013/11/22 16:00:45 christos Exp $
+#	$NetBSD: Makefile,v 1.1.2.1 2014/08/10 07:09:35 tls Exp $
 #
 #	@(#)Makefile	8.1 (Berkeley) 6/8/93
 
 .include "../../../Makefile.inc"
 .PATH: ${DIST}/docs/edit
-DIR=	usd/11.edit
+
+SECTION=usd
+ARTICLE=edit
 SRCS=	edittut.ms
 MACROS=	-ms
+ROFF_TBL=yes
+EXTRAHTMLFILES=edit1.png edit2.png edit3.png
 
-all: paper.ps
-
-paper.ps: ${SRCS}
-	${TOOL_TBL} ${.ALLSRC} | ${TOOL_ROFF_PS} ${MACROS} > ${.TARGET}
+.include 
 
 # index for versatec is different from the one in edit.tut
 # because the fonts are different and entries reference page
@@ -20,5 +21,3 @@ paper.ps: ${SRCS}
 
 editvindex:
 	${TOOL_ROFF_RAW} ${MACROS} -n22 edit.vindex
-
-.include 

Index: src/external/bsd/nvi/docs/USD.doc/exref/Makefile
diff -u src/external/bsd/nvi/docs/USD.doc/exref/Makefile:1.1 src/external/bsd/nvi/docs/USD.doc/exref/Makefile:1.1.2.1
--- src/external/bsd/nvi/docs/USD.doc/exref/Makefile:1.1	Fri Nov 22 16:00:45 2013
+++ src/external/bsd/nvi/docs/USD.doc/exref/Makefile	Sun Aug 10 07:09:35 2014
@@ -1,21 +1,27 @@
-#	$NetBSD: Makefile,v 1.1 2013/11/22 16:00:45 christos Exp $
+#	$NetBSD: Makefile,v 1.1.2.1 2014/08/10 07:09:35 tls Exp $
 #
 # @(#)Makefile	8.8 (Berkeley) 10/10/96
 
 .include "../../../Makefile.inc"
 .PATH: ${DIST}/docs/exref
 
-DIR=		usd/12.ex
-SRCS=		ex.rm ex.summary
+SECTION=	reference/ref1
+ARTICLE=	ex
+SUBARTICLES=	reference summary
+SRCS.reference=	ex.rm
+SRCS.summary=	ex.summary
 MACROS=		-ms
-CLEANFILES=	summary.ps
-
-all: paper.ps summary.ps
-
-paper.ps: ex.rm
-	${TOOL_TBL} ${.ALLSRC} | ${TOOL_ROFF_PS} ${MACROS} > ${.TARGET}
-
-summary.ps: ex.summary
-	${TOOL_TBL} ${.ALLSRC} | ${TOOL_ROFF_PS} ${MACROS} > ${.TARGET}
+ROFF_TBL=	yes
+EXTRAHTMLFILES= \
+	reference1.png  reference2.png  reference3.png  reference4.png  \
+	reference5.png  reference6.png  reference7.png  reference8.png  \
+	reference9.png  reference10.png reference11.png reference12.png \
+	reference13.png reference14.png reference15.png reference16.png \
+	reference17.png reference18.png reference19.png reference20.png \
+	reference21.png reference22.png reference23.png reference24.png \
+	reference25.png reference26.png reference27.png \
+	summary1.png summary2.png summary3.png summary4.png \
+	summary5.png summary6.png summary7.png summary8.png \
+	summary9.png
 
 .include 

Index: src/external/bsd/nvi/docs/USD.doc/vi.ref/Makefile
diff -u src/external/bsd/nvi/docs/USD.doc/vi.ref/Makefile:1.1 src/external/bsd/nvi/docs/USD.doc/vi.ref/Makefile:1.1.2.1
--- src/external/bsd/nvi/docs/USD.doc/vi.ref/Makefile:1.1	Fri Nov 22 16:00:45 2013
+++ src/external/bsd/nvi/docs/USD.doc/vi.ref/Makefile	Sun Aug 10 07:09:35 2014
@@ -1,26 +1,19 @@
-#	$NetBSD: Makefile,v 1.1 2013/11/22 16:00:45 christos Exp $
+#	$NetBSD: Makefile,v 1.1.2.1 2014/08/10 07:09:35 tls Exp $
 #
 #	@(#)Makefile	8.20 (Berkeley) 8/18/96
 
-DIR=		usd/13.viref
-SRCS=		vi.ref ex.cmd.roff set.opt.roff vi.cmd.roff ref.so
+SECTION=	reference/ref1
+ARTICLE=	vi
+SRCS=		vi.ref
+DEPSRCS=	ex.cmd.roff set.opt.roff vi.cmd.roff ref.so index.so
 MACROS=		-me
-CLEANFILES+=	vi.ref.txt vi.ref.ps index index.so
+ROFF_TBL=	yes
+CLEANFILES+=	index index.so
 
-all: vi.ref.txt vi.ref.ps
-
-vi.ref.txt: vi.ref index.so
-	${TOOL_SOELIM} vi.ref | ${TOOL_TBL} | ${TOOL_ROFF_ASCII} ${MACROS} > $@
-	rm -f index
-	chmod 444 $@
-
-vi.ref.ps: vi.ref index.so
-	${TOOL_SOELIM} vi.ref | ${TOOL_TBL} | ${TOOL_ROFF_PS} ${MACROS} > $@
-	rm -f index
-	chmod 444 $@
+.include 
 
+# index.so is generated.
 index.so: vi.ref
-	# Build index.so, side-effect of building the paper.
 	${TOOL_SOELIM} vi.ref |

CVS commit: src/external/gpl2/xcvs/dist/src

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:09:51 UTC 2014

Modified Files:
src/external/gpl2/xcvs/dist/src: server.c

Log Message:
Relax arbitrary limit of 10,000 changed files per commit idiotically
introduced in CVS 1.11.17.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl2/xcvs/dist/src/server.c

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

Modified files:

Index: src/external/gpl2/xcvs/dist/src/server.c
diff -u src/external/gpl2/xcvs/dist/src/server.c:1.5 src/external/gpl2/xcvs/dist/src/server.c:1.6
--- src/external/gpl2/xcvs/dist/src/server.c:1.5	Thu Sep 13 17:45:07 2012
+++ src/external/gpl2/xcvs/dist/src/server.c	Sun Aug 10 07:09:51 2014
@@ -1130,7 +1130,7 @@ serve_max_dotdot (char *arg)
 if (proxy_log) return;
 #endif /* PROXY_SUPPORT */
 
-if (lim < 0 || lim > 1)
+if (lim < 0 || lim > 100)
 	return;
 p = xmalloc (strlen (server_temp_dir) + 2 * lim + 10);
 if (p == NULL)
@@ -2989,7 +2989,7 @@ serve_argument (char *arg)
 
 if (error_pending()) return;
 
-if (argument_count >= 1)
+if (argument_count >= 100)
 {
 	if (alloc_pending (80))
 	sprintf (pending_error_text, 



CVS commit: [tls-earlyentropy] src/external/bsd/file/dist

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:07:11 UTC 2014

Modified Files:
src/external/bsd/file/dist [tls-earlyentropy]: ChangeLog Makefile.in
README aclocal.m4 compile config.guess config.h.in config.sub
configure configure.ac depcomp install-sh ltmain.sh missing
src/external/bsd/file/dist/doc [tls-earlyentropy]: Makefile.in file.1
libmagic.3 magic.5
src/external/bsd/file/dist/m4 [tls-earlyentropy]: libtool.m4
ltoptions.m4 ltversion.m4 lt~obsolete.m4
src/external/bsd/file/dist/magic [tls-earlyentropy]: Makefile.am
Makefile.in
src/external/bsd/file/dist/magic/magdir [tls-earlyentropy]: android
animation apple archive assembler att3b audio bflt bsdi c-lang cad
cafebabe clarion claris clipper commands compress cups database
dolby dump dyadic efi elf encore epoc filesystems flash fonts
fortran games gimp gnome gnu gpt graphviz hp ibm370 images intel
isz karma linux mach marc21 mips misctools motorola msdos msooxml
msx natinst ncr netbsd nitpicker oasis palm pdp perl printer python
riff scientific sequent sgi sgml sharc sql sun symbos sysex tcl tex
ti-8x troff uterus varied.out varied.script vax virtual vorbis
windows xilinx xwindows zfs
src/external/bsd/file/dist/python [tls-earlyentropy]: Makefile.in
magic.py
src/external/bsd/file/dist/src [tls-earlyentropy]: Makefile.in
apprentice.c apptype.c ascmagic.c asctime_r.c asprintf.c cdf.c
cdf.h cdf_time.c compress.c ctime_r.c elfclass.h encoding.c file.c
file.h file_opts.h fsmagic.c funcs.c getline.c getopt_long.c
is_tar.c magic.c mygetopt.h pread.c print.c readcdf.c readelf.c
readelf.h softmagic.c strlcat.c strlcpy.c tar.h vasprintf.c
src/external/bsd/file/dist/tests [tls-earlyentropy]: Makefile.am
Makefile.in README gedcom.result test.c
Added Files:
src/external/bsd/file/dist/magic/magdir [tls-earlyentropy]: blackberry
map neko pbf pgf sereal
src/external/bsd/file/dist/src [tls-earlyentropy]: fmtcheck.c
strcasestr.c
src/external/bsd/file/dist/tests [tls-earlyentropy]: escapevel.result
escapevel.testfile issue311docx.result issue311docx.testfile
Removed Files:
src/external/bsd/file/dist/tests [tls-earlyentropy]: gedcom.magic

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.7 -r1.1.1.7.2.1 src/external/bsd/file/dist/ChangeLog
cvs rdiff -u -r1.9 -r1.9.2.1 src/external/bsd/file/dist/Makefile.in
cvs rdiff -u -r1.1.1.4 -r1.1.1.4.2.1 src/external/bsd/file/dist/README
cvs rdiff -u -r1.7 -r1.7.2.1 src/external/bsd/file/dist/aclocal.m4 \
src/external/bsd/file/dist/config.h.in \
src/external/bsd/file/dist/configure.ac
cvs rdiff -u -r1.6 -r1.6.2.1 src/external/bsd/file/dist/compile
cvs rdiff -u -r1.6 -r1.6.8.1 src/external/bsd/file/dist/config.guess
cvs rdiff -u -r1.5 -r1.5.8.1 src/external/bsd/file/dist/config.sub
cvs rdiff -u -r1.10 -r1.10.2.1 src/external/bsd/file/dist/configure
cvs rdiff -u -r1.4 -r1.4.2.1 src/external/bsd/file/dist/depcomp \
src/external/bsd/file/dist/missing
cvs rdiff -u -r1.8 -r1.8.2.1 src/external/bsd/file/dist/install-sh
cvs rdiff -u -r1.1.1.3 -r1.1.1.3.20.1 src/external/bsd/file/dist/ltmain.sh
cvs rdiff -u -r1.7 -r1.7.2.1 src/external/bsd/file/dist/doc/Makefile.in
cvs rdiff -u -r1.13 -r1.13.2.1 src/external/bsd/file/dist/doc/file.1
cvs rdiff -u -r1.11 -r1.11.8.1 src/external/bsd/file/dist/doc/libmagic.3
cvs rdiff -u -r1.11 -r1.11.2.1 src/external/bsd/file/dist/doc/magic.5
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.22.1 \
src/external/bsd/file/dist/m4/libtool.m4 \
src/external/bsd/file/dist/m4/ltoptions.m4 \
src/external/bsd/file/dist/m4/ltversion.m4 \
src/external/bsd/file/dist/m4/lt~obsolete.m4
cvs rdiff -u -r1.8 -r1.8.2.1 src/external/bsd/file/dist/magic/Makefile.am
cvs rdiff -u -r1.10 -r1.10.2.1 src/external/bsd/file/dist/magic/Makefile.in
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.2.1 \
src/external/bsd/file/dist/magic/magdir/android \
src/external/bsd/file/dist/magic/magdir/msx \
src/external/bsd/file/dist/magic/magdir/symbos
cvs rdiff -u -r1.1.1.6 -r1.1.1.6.2.1 \
src/external/bsd/file/dist/magic/magdir/animation \
src/external/bsd/file/dist/magic/magdir/commands \
src/external/bsd/file/dist/magic/magdir/database \
src/external/bsd/file/dist/magic/magdir/images \
src/external/bsd/file/dist/magic/magdir/linux
cvs rdiff -u -r1.4 -r1.4.8.1 src/external/bsd/file/dist/magic/magdir/apple
cvs rdiff -u -r1.8 -r1.8.8.1 src/external/bsd/file/dist/magic/magdir/archive
cvs rdiff -u -r1.4 -r1.4.2.1 \
src/external/bsd/file/dist/magic/magdir/assembler
cvs rdiff -u -r1.1.1.2 -r1.1.1.2.22.1 \
src/external/bsd/file/dist/magic/magdir/att3b \
src/external/bsd/file/dist/magic/m

CVS commit: [tls-earlyentropy] src/external/bsd/elftoolchain/dist/libelf

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:07:04 UTC 2014

Modified Files:
src/external/bsd/elftoolchain/dist/libelf [tls-earlyentropy]:
libelf_align.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.2.2.1 \
src/external/bsd/elftoolchain/dist/libelf/libelf_align.c

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

Modified files:

Index: src/external/bsd/elftoolchain/dist/libelf/libelf_align.c
diff -u src/external/bsd/elftoolchain/dist/libelf/libelf_align.c:1.2 src/external/bsd/elftoolchain/dist/libelf/libelf_align.c:1.2.2.1
--- src/external/bsd/elftoolchain/dist/libelf/libelf_align.c:1.2	Sun Mar  9 16:58:04 2014
+++ src/external/bsd/elftoolchain/dist/libelf/libelf_align.c	Sun Aug 10 07:07:04 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: libelf_align.c,v 1.2 2014/03/09 16:58:04 christos Exp $	*/
+/*	$NetBSD: libelf_align.c,v 1.2.2.1 2014/08/10 07:07:04 tls Exp $	*/
 
 /*-
  * Copyright (c) 2006,2008 Joseph Koshy
@@ -38,7 +38,7 @@
 
 #include "_libelf.h"
 
-__RCSID("$NetBSD: libelf_align.c,v 1.2 2014/03/09 16:58:04 christos Exp $");
+__RCSID("$NetBSD: libelf_align.c,v 1.2.2.1 2014/08/10 07:07:04 tls Exp $");
 ELFTC_VCSID("Id: libelf_align.c 2225 2011-11-26 18:55:54Z jkoshy ");
 
 struct align {
@@ -46,7 +46,7 @@ struct align {
 	int a64;
 };
 
-#ifdef	__GNUC__
+#if defined(__GNUC__) || defined(__lint__)
 #define	MALIGN(N)	{	\
 		.a32 = __alignof__(Elf32_##N),			\
 		.a64 = __alignof__(Elf64_##N)			\



CVS commit: [tls-earlyentropy] src/external/bsd/atf/share/doc/atf

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:06:27 UTC 2014

Modified Files:
src/external/bsd/atf/share/doc/atf [tls-earlyentropy]: Makefile

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.6.2.1 src/external/bsd/atf/share/doc/atf/Makefile

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

Modified files:

Index: src/external/bsd/atf/share/doc/atf/Makefile
diff -u src/external/bsd/atf/share/doc/atf/Makefile:1.6 src/external/bsd/atf/share/doc/atf/Makefile:1.6.2.1
--- src/external/bsd/atf/share/doc/atf/Makefile:1.6	Wed Feb 12 04:08:31 2014
+++ src/external/bsd/atf/share/doc/atf/Makefile	Sun Aug 10 07:06:27 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2014/02/12 04:08:31 jmmv Exp $
+# $NetBSD: Makefile,v 1.6.2.1 2014/08/10 07:06:27 tls Exp $
 
 .include 
 
@@ -10,7 +10,7 @@
 .PATH:	${SRCDIR}/tools
 
 .if ${MKDOC} != "no"
-FILESDIR=	/usr/share/doc/atf
+FILESDIR=	/usr/share/doc/reference/ref1/atf
 FILES=		AUTHORS COPYING NEWS README
 .endif
 



CVS commit: [tls-earlyentropy] src/external/bsd/kyua-atf-compat/share/doc/kyua-atf-compat

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:07:18 UTC 2014

Modified Files:
src/external/bsd/kyua-atf-compat/share/doc/kyua-atf-compat 
[tls-earlyentropy]:
Makefile

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.1.10.1 \
src/external/bsd/kyua-atf-compat/share/doc/kyua-atf-compat/Makefile

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

Modified files:

Index: src/external/bsd/kyua-atf-compat/share/doc/kyua-atf-compat/Makefile
diff -u src/external/bsd/kyua-atf-compat/share/doc/kyua-atf-compat/Makefile:1.1 src/external/bsd/kyua-atf-compat/share/doc/kyua-atf-compat/Makefile:1.1.10.1
--- src/external/bsd/kyua-atf-compat/share/doc/kyua-atf-compat/Makefile:1.1	Mon Feb 25 00:20:09 2013
+++ src/external/bsd/kyua-atf-compat/share/doc/kyua-atf-compat/Makefile	Sun Aug 10 07:07:18 2014
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.1 2013/02/25 00:20:09 jmmv Exp $
+# $NetBSD: Makefile,v 1.1.10.1 2014/08/10 07:07:18 tls Exp $
 
 .include 
 
 .if ${MKSHARE} != "no"
-FILESDIR=	/usr/share/doc/kyua-atf-compat
+FILESDIR=	/usr/share/doc/reference/ref1/kyua/kyua-atf-compat
 FILESMODE=	444
 FILES=		AUTHORS COPYING NEWS README
 .endif



CVS commit: [tls-earlyentropy] src/external/bsd/ipf/dist

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:07:15 UTC 2014

Modified Files:
src/external/bsd/ipf/dist [tls-earlyentropy]: ip_dstlist.c
src/external/bsd/ipf/dist/lib [tls-earlyentropy]: gethost.c printnat.c
src/external/bsd/ipf/dist/tools [tls-earlyentropy]: ipf_y.y ipfstat.c
ipnat_y.y

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.2.10.1 src/external/bsd/ipf/dist/ip_dstlist.c
cvs rdiff -u -r1.2 -r1.2.10.1 src/external/bsd/ipf/dist/lib/gethost.c \
src/external/bsd/ipf/dist/lib/printnat.c
cvs rdiff -u -r1.1.1.2 -r1.1.1.2.10.1 src/external/bsd/ipf/dist/tools/ipf_y.y \
src/external/bsd/ipf/dist/tools/ipnat_y.y
cvs rdiff -u -r1.3 -r1.3.10.1 src/external/bsd/ipf/dist/tools/ipfstat.c

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

Modified files:

Index: src/external/bsd/ipf/dist/ip_dstlist.c
diff -u src/external/bsd/ipf/dist/ip_dstlist.c:1.2 src/external/bsd/ipf/dist/ip_dstlist.c:1.2.10.1
--- src/external/bsd/ipf/dist/ip_dstlist.c:1.2	Sun Jul 22 14:27:35 2012
+++ src/external/bsd/ipf/dist/ip_dstlist.c	Sun Aug 10 07:07:15 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: ip_dstlist.c,v 1.2 2012/07/22 14:27:35 darrenr Exp $	*/
+/*	$NetBSD: ip_dstlist.c,v 1.2.10.1 2014/08/10 07:07:15 tls Exp $	*/
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -1195,7 +1195,7 @@ ipf_dstlist_select(fin, d)
 		MD5Update(&ctx, (u_char *)&fin->fin_dst6,
 			  sizeof(fin->fin_dst6));
 		MD5Final((u_char *)hash, &ctx);
-		x = hash[0] % d->ipld_nodes;
+		x = ntohl(hash[0]) % d->ipld_nodes;
 		sel = d->ipld_dests[x];
 		break;
 
@@ -1205,7 +1205,7 @@ ipf_dstlist_select(fin, d)
 		MD5Update(&ctx, (u_char *)&fin->fin_src6,
 			  sizeof(fin->fin_src6));
 		MD5Final((u_char *)hash, &ctx);
-		x = hash[0] % d->ipld_nodes;
+		x = ntohl(hash[0]) % d->ipld_nodes;
 		sel = d->ipld_dests[x];
 		break;
 
@@ -1215,7 +1215,7 @@ ipf_dstlist_select(fin, d)
 		MD5Update(&ctx, (u_char *)&fin->fin_dst6,
 			  sizeof(fin->fin_dst6));
 		MD5Final((u_char *)hash, &ctx);
-		x = hash[0] % d->ipld_nodes;
+		x = ntohl(hash[0]) % d->ipld_nodes;
 		sel = d->ipld_dests[x];
 		break;
 

Index: src/external/bsd/ipf/dist/lib/gethost.c
diff -u src/external/bsd/ipf/dist/lib/gethost.c:1.2 src/external/bsd/ipf/dist/lib/gethost.c:1.2.10.1
--- src/external/bsd/ipf/dist/lib/gethost.c:1.2	Sun Jul 22 14:27:36 2012
+++ src/external/bsd/ipf/dist/lib/gethost.c	Sun Aug 10 07:07:15 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: gethost.c,v 1.2 2012/07/22 14:27:36 darrenr Exp $	*/
+/*	$NetBSD: gethost.c,v 1.2.10.1 2014/08/10 07:07:15 tls Exp $	*/
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -19,16 +19,17 @@ int gethost(family, name, hostp)
 	struct netent *n;
 	u_32_t addr;
 
+	memset(hostp, 0, sizeof(*hostp));
 	if (!strcmp(name, "test.host.dots")) {
 		if (family == AF_INET) {
 			hostp->in4.s_addr = htonl(0xfedcba98);
 		}
 #ifdef USE_INET6
 		if (family == AF_INET6) {
-			hostp->i6[0] = 0xfe80aa55;
-			hostp->i6[1] = 0x12345678;
-			hostp->i6[2] = 0x5a5aa5a5;
-			hostp->i6[3] = 0xfedcba98;
+			hostp->i6[0] = htonl(0xfe80aa55);
+			hostp->i6[1] = htonl(0x12345678);
+			hostp->i6[2] = htonl(0x5a5aa5a5);
+			hostp->i6[3] = htonl(0xfedcba98);
 		}
 #endif
 		return 0;
@@ -59,7 +60,7 @@ int gethost(family, name, hostp)
 		struct addrinfo hints, *res;
 		struct sockaddr_in6 *sin6;
 
-		bzero((char *)&hints, sizeof(hints));
+		memset(&hints, 0, sizeof(hints));
 		hints.ai_family = PF_INET6;
 
 		getaddrinfo(name, NULL, &hints, &res);
Index: src/external/bsd/ipf/dist/lib/printnat.c
diff -u src/external/bsd/ipf/dist/lib/printnat.c:1.2 src/external/bsd/ipf/dist/lib/printnat.c:1.2.10.1
--- src/external/bsd/ipf/dist/lib/printnat.c:1.2	Sun Jul 22 14:27:37 2012
+++ src/external/bsd/ipf/dist/lib/printnat.c	Sun Aug 10 07:07:15 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: printnat.c,v 1.2 2012/07/22 14:27:37 darrenr Exp $	*/
+/*	$NetBSD: printnat.c,v 1.2.10.1 2014/08/10 07:07:15 tls Exp $	*/
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -153,7 +153,8 @@ printnat(np, opts)
 
 	} else if (np->in_redir & NAT_REWRITE) {
 		PRINTF(" -> src ");
-		if (np->in_nsrc.na_type == IPLT_DSTLIST) {
+		if (np->in_nsrc.na_atype == FRI_LOOKUP &&
+		np->in_nsrc.na_type == IPLT_DSTLIST) {
 			PRINTF("dstlist/");
 			if (np->in_nsrc.na_subtype == 0)
 PRINTF("%d", np->in_nsrc.na_num);
@@ -174,7 +175,8 @@ printnat(np, opts)
 			}
 		}
 		PRINTF(" dst ");
-		if (np->in_ndst.na_type == IPLT_DSTLIST) {
+		if (np->in_ndst.na_atype == FRI_LOOKUP &&
+		np->in_ndst.na_type == IPLT_DSTLIST) {
 			PRINTF("dstlist/");
 			if (np->in_ndst.na_subtype == 0)
 PRINTF("%d", np->in_nsrc.na_num);

Index: src/external/bsd/ipf/dist/tools/ipf_y.y
diff -u src/external/bsd/ipf/dist/tools/ipf_y.y:1.1.1.2 src/external/bsd/ipf/dist/tools/ipf_y.y:1.1.1.2.10.1
--- src/external/bsd/ipf/dist/tools/ipf_y.y:1.1.1.2	Sun Jul 22 13:44:52 2012
+++ src/external/bsd/ipf/dist/tools/ipf_y.y	Sun Aug 10 07:07:15 2

CVS commit: [tls-earlyentropy] src/tools

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:04:04 UTC 2014

Modified Files:
src/tools [tls-earlyentropy]: Makefile

Log Message:
Rebase.


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

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

Modified files:

Index: src/tools/Makefile
diff -u src/tools/Makefile:1.173 src/tools/Makefile:1.173.2.1
--- src/tools/Makefile:1.173	Thu Apr  3 18:23:38 2014
+++ src/tools/Makefile	Sun Aug 10 07:04:04 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.173 2014/04/03 18:23:38 riastradh Exp $
+#	$NetBSD: Makefile,v 1.173.2.1 2014/08/10 07:04:04 tls Exp $
 
 .include 
 .include 
@@ -25,17 +25,12 @@
 TOOLS_BUILDRUMP?=no
 
 .if ${TOOLCHAIN_MISSING} == "no"
-.if defined(HAVE_GCC)
+. if defined(HAVE_GCC)
 TOOLCHAIN_BITS= gmake .WAIT
-.endif
-
-.if defined(HAVE_GCC)
-.if ${HAVE_GCC} >= 45
 TOOLCHAIN_BITS+= gmp .WAIT
 TOOLCHAIN_BITS+= mpfr .WAIT
 TOOLCHAIN_BITS+= mpc .WAIT
-.endif
-.endif
+. endif
 .endif
 
 .if ${TOOLCHAIN_MISSING} == "no"
@@ -43,19 +38,19 @@ TOOLCHAIN_BITS+= binutils .WAIT
 .endif
 
 .if defined(HAVE_GCC)
-.if ${TOOLCHAIN_MISSING} == "no"
+. if ${TOOLCHAIN_MISSING} == "no"
 TOOLCHAIN_BITS+= gcc
 .  if ${MKCROSSGDB:Uno} != "no" || make(obj)
 TOOLCHAIN_BITS+= gdb
 .  endif
 TOOLCHAIN_BITS+= .WAIT
-.endif
+. endif
 .endif
 
 .if defined(HAVE_PCC)
-.if ${TOOLCHAIN_MISSING} == "no"
+. if ${TOOLCHAIN_MISSING} == "no"
 TOOLCHAIN_BITS+= pcc
-.endif
+. endif
 .endif
 
 .if ${TOOLCHAIN_MISSING} == "no"
@@ -104,10 +99,10 @@ SUBDIR=	host-mkdep compat binstall \
 .if ${TOOLS_BUILDRUMP} == "no"
 SUBDIR+= cap_mkdb crunchgen ctags genassym gencat hexdump \
 		${LINT_BITS} \
-		makewhatis mtree nbperf .WAIT rpcgen uudecode
+		makewhatis mtree nbperf .WAIT uudecode
 .endif
 
-SUBDIR+= join lorder m4 mkdep tsort .WAIT yacc .WAIT awk .WAIT lex
+SUBDIR+= cat rpcgen join lorder m4 mkdep tsort .WAIT yacc .WAIT awk .WAIT lex
 
 .if ${TOOLS_BUILDRUMP} == "no"
 SUBDIR += .WAIT texinfo \
@@ -115,16 +110,16 @@ SUBDIR += .WAIT texinfo \
 	.WAIT pax \
 	.WAIT ${TOOLCHAIN_BITS} \
 	${DTRACE_BITS} \
-		asn1_compile cat cksum compile_et db \
+		asn1_compile cksum compile_et db \
 		file lint1 slc \
 		makefs .WAIT menuc mkcsmapper mkesdb mklocale mknod msgc \
 		.WAIT disklabel \
 		.WAIT paxctl \
 		.WAIT fdisk \
 		.WAIT installboot \
-		pwd_mkdb stat strfile sunlabel zic
+		pwd_mkdb strfile sunlabel vgrind zic
 .endif
-SUBDIR+= .WAIT config
+SUBDIR+= stat .WAIT config
 
 .if ${MKLLVM} != "no"
 SUBDIR+= \
@@ -134,18 +129,18 @@ SUBDIR+= \
 	llvm-include .WAIT \
 	llvm-lib .WAIT \
 	llvm-clang
-.if ${MKLLD} != "no"
+. if ${MKLLD} != "no"
 SUBDIR+=	llvm-lld
-.endif
-.if ${MKMCLINKER} != "no"
+. endif
+. if ${MKMCLINKER} != "no"
 SUBDIR+=	llvm-mcld
-.endif
+. endif
 .endif
 
 .if ${MKMAN} != "no" || ${MKDOC} != "no" || ${MKHTML} != "no"
-.  if ${MKGROFF} != "no"
+. if ${MKGROFF} != "no"
 SUBDIR+=	groff
-.  endif
+. endif
 SUBDIR+=	mandoc
 .endif
 



CVS commit: [tls-earlyentropy] src/usr.bin

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:04:07 UTC 2014

Modified Files:
src/usr.bin [tls-earlyentropy]: Makefile

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.216 -r1.216.2.1 src/usr.bin/Makefile

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

Modified files:

Index: src/usr.bin/Makefile
diff -u src/usr.bin/Makefile:1.216 src/usr.bin/Makefile:1.216.2.1
--- src/usr.bin/Makefile:1.216	Thu Jan 16 01:54:47 2014
+++ src/usr.bin/Makefile	Sun Aug 10 07:04:07 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.216 2014/01/16 01:54:47 pooka Exp $
+#	$NetBSD: Makefile,v 1.216.2.1 2014/08/10 07:04:07 tls Exp $
 #	from: @(#)Makefile	8.3 (Berkeley) 1/7/94
 
 .include 
@@ -11,7 +11,8 @@ SUBDIR= apply asa at audio audiocfg \
 	deroff db dirname du \
 	eject elf2aout elf2ecoff env error expand extattr \
 	false fdformat fgen fincore find finger flock fmt fold fpr from \
-	fsplit fstat ftp gcore genassym gencat getconf getent getopt gprof \
+	fsplit fstat ftp gcore genassym gencat getaddrinfo getconf getent \
+	getopt gprof \
 	head hexdump iconv id indent infocmp innetgr ipcrm ipcs join jot \
 	kdump ktrace ktruss lam last lastcomm ldd leave \
 	locale locate lock logger login logname look lorder m4 \
@@ -25,7 +26,8 @@ SUBDIR= apply asa at audio audiocfg \
 	rup ruptime rusers rwall rwho \
 	script sdiff sdpquery sed seq shar shlock \
 	showmount shuffle sockstat sort spell split stat su systat \
-	tabs tail talk tcopy tee telnet tftp tic time tip touch tpfmt tput \
+	tabs tail talk tcopy tee telnet tftp tic time timeout tip touch \
+	tpfmt tput \
 	tr true tset tsort tty ul uname unexpand unifdef \
 	uniq units unvis unzip usbhidaction usbhidctl users utoppya \
 	uudecode uuencode uuidgen vacation vgrind videoctl vis \



CVS commit: [tls-earlyentropy] src/lib

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:03:56 UTC 2014

Modified Files:
src/lib [tls-earlyentropy]: Makefile

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.212 -r1.212.2.1 src/lib/Makefile

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

Modified files:

Index: src/lib/Makefile
diff -u src/lib/Makefile:1.212 src/lib/Makefile:1.212.2.1
--- src/lib/Makefile:1.212	Sun Mar  9 17:09:20 2014
+++ src/lib/Makefile	Sun Aug 10 07:03:56 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.212 2014/03/09 17:09:20 christos Exp $
+#	$NetBSD: Makefile,v 1.212.2.1 2014/08/10 07:03:56 tls Exp $
 #	from: @(#)Makefile	5.25.1.1 (Berkeley) 5/7/91
 
 .include 
@@ -6,17 +6,7 @@
 SUBDIR=		csu .WAIT
 
 .if (${MKGCC} != "no")
-. if ${HAVE_GCC} == 4
-.  if (${USE_COMPILERCRTSTUFF} == "yes")
-SUBDIR+=	../gnu/lib/crtstuff4 .WAIT
-.  endif
-SUBDIR+=	../gnu/lib/libgcc4 .WAIT
-. else
-.  if (${USE_COMPILERCRTSTUFF} == "yes")
-SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/crtstuff .WAIT
-.  endif
 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgcc .WAIT
-. endif
 .endif
 
 SUBDIR+=	libc
@@ -68,6 +58,11 @@ SUBDIR+=	../external/bsd/elftoolchain/li
 SUBDIR+=	../external/bsd/liblzf/lib
 SUBDIR+=	../external/bsd/libpcap/lib
 
+.if ${MKSLJIT} != "no"
+SUBDIR+=	../external/bsd/sljit/lib
+SUBDIR+=	libbpfjit
+.endif
+
 SUBDIR+=	../external/mit/expat/lib
 
 SUBDIR+=	../external/public-domain/sqlite/lib
@@ -76,15 +71,12 @@ SUBDIR+=	../external/public-domain/xz/li
 SUBDIR+=	../gnu/lib/libmalloc
 
 .if (${MKGCC} != "no")
-. if ${HAVE_GCC} == 4
-SUBDIR+=	../gnu/lib/libobjc4
-. else
 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libobjc
 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgomp
-. endif
-. if ${HAVE_GCC} >= 45 && !defined(MLIBDIR)
 # Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
 # specific build area, but we get better parallelism this way.
+# We don't build compat versions of these.
+. if !defined(MLIBDIR)
 SUBDIR+=	../external/lgpl3/gmp/lib/libgmp
 SUBDIR+=	../external/lgpl3/mpfr/lib/libmpfr
 SUBDIR+=	../external/lgpl3/mpc/lib/libmpc
@@ -148,13 +140,8 @@ SUBDIR+=	../external/bsd/libc++
 .endif
 
 .if (${MKGCC} != "no" && ${MKCXX} != "no" && ${MKLIBSTDCXX} != "no")
-. if ${HAVE_GCC} == 4
-SUBDIR+=	../gnu/lib/libstdc++-v3_4	# depends on libm
-SUBDIR+=	../gnu/lib/libsupc++4
-. else
 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libstdc++-v3
 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libsupc++
-. endif
 .endif
 
 # 2nd library dependency barrier 
@@ -215,12 +202,6 @@ SUBDIR+=	libpam		# depends on heimdal
 SUBDIR+=	../crypto/external/bsd/libsaslc	# depends on heimdal, openssl
 .endif
 
-.if ${MKSLJIT} != "no"
-SUBDIR+=	../external/bsd/sljit/lib
-SUBDIR+=	.WAIT
-SUBDIR+=	libbpfjit
-.endif
-
 SUBDIR+=	../external/bsd/mdocml/lib
 
 .if (${MKRUMP} != "no")



CVS commit: [tls-earlyentropy] src/usr.sbin

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:04:09 UTC 2014

Modified Files:
src/usr.sbin [tls-earlyentropy]: Makefile

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.268 -r1.268.2.1 src/usr.sbin/Makefile

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/Makefile
diff -u src/usr.sbin/Makefile:1.268 src/usr.sbin/Makefile:1.268.2.1
--- src/usr.sbin/Makefile:1.268	Thu Nov 28 22:34:44 2013
+++ src/usr.sbin/Makefile	Sun Aug 10 07:04:09 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.268 2013/11/28 22:34:44 christos Exp $
+#	$NetBSD: Makefile,v 1.268.2.1 2014/08/10 07:04:09 tls Exp $
 #	from: @(#)Makefile	5.20 (Berkeley) 6/12/93
 
 .include 
@@ -25,7 +25,7 @@ SUBDIR=	ac accton acpitools altq apm apm
 	rarpd rbootd rdate repquota rmt rpc.bootparamd rpc.lockd \
 	rpc.pcnfsd rpc.statd rpcbind rwhod \
 	sa screenblank sdpd services_mkdb sesd schedctl sliplogin spray \
-	srtconfig sti sunlabel sup syslogd \
+	srtconfig sti sunlabel sup sysinst syslogd \
 	tadpolectl tcpdchk tcpdmatch tcpdrop timed tpctl tprof traceroute trpt \
 	unlink usbdevs user \
 	videomode vipw veriexecgen vnconfig \



CVS commit: [tls-earlyentropy] src/share

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:03:59 UTC 2014

Modified Files:
src/share [tls-earlyentropy]: Makefile

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.32.22.1 src/share/Makefile

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

Modified files:

Index: src/share/Makefile
diff -u src/share/Makefile:1.32 src/share/Makefile:1.32.22.1
--- src/share/Makefile:1.32	Wed Feb  3 15:34:44 2010
+++ src/share/Makefile	Sun Aug 10 07:03:59 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.32 2010/02/03 15:34:44 roy Exp $
+#	$NetBSD: Makefile,v 1.32.22.1 2014/08/10 07:03:59 tls Exp $
 #	from @(#)Makefile	8.1 (Berkeley) 6/5/93
 
 # Missing:  ms
@@ -8,7 +8,7 @@
 .if ${MKSHARE} != "no" || \
 	make(clean) || make(cleandir) || make(distclean) || make(obj)
 SUBDIR=	dict doc examples legal man me misc mk \
-	tabset terminfo tmac wscons xml zoneinfo
+	tabset terminfo tmac wscons xml
 .if ${MKNLS} != "no"
 SUBDIR+=i18n locale nls
 .endif



CVS commit: [tls-earlyentropy] src/doc

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:03:02 UTC 2014

Modified Files:
src/doc [tls-earlyentropy]: 3RDPARTY BUILDING.mdoc CHANGES HACKS
RESPONSIBLE TODO TODO.clang TODO.i18n

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.1105 -r1.1105.2.1 src/doc/3RDPARTY
cvs rdiff -u -r1.95 -r1.95.2.1 src/doc/BUILDING.mdoc
cvs rdiff -u -r1.1910 -r1.1910.2.1 src/doc/CHANGES
cvs rdiff -u -r1.147 -r1.147.2.1 src/doc/HACKS
cvs rdiff -u -r1.108 -r1.108.2.1 src/doc/RESPONSIBLE
cvs rdiff -u -r1.17 -r1.17.20.1 src/doc/TODO
cvs rdiff -u -r1.9 -r1.9.2.1 src/doc/TODO.clang
cvs rdiff -u -r1.8 -r1.8.60.1 src/doc/TODO.i18n

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

Modified files:

Index: src/doc/3RDPARTY
diff -u src/doc/3RDPARTY:1.1105 src/doc/3RDPARTY:1.1105.2.1
--- src/doc/3RDPARTY:1.1105	Sat Apr  5 11:18:03 2014
+++ src/doc/3RDPARTY	Sun Aug 10 07:03:02 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: 3RDPARTY,v 1.1105 2014/04/05 11:18:03 apb Exp $
+#	$NetBSD: 3RDPARTY,v 1.1105.2.1 2014/08/10 07:03:02 tls Exp $
 #
 # This file contains a list of the software that has been integrated into
 # NetBSD where we are not the primary maintainer.
@@ -41,7 +41,7 @@
 
 Package:	acpica
 Version:	20131218
-Current Vers:	20131218
+Current Vers:	20140627
 Maintainer:	Intel
 Archive Site:	http://www.acpica.org/downloads/
 Home Page:	http://www.acpica.org/
@@ -113,8 +113,8 @@ Notes:
 bc includes dc, both of which are in the NetBSD tree.
 
 Package:	bind [named and utils]
-Version:	9.10.0b1
-Current Vers:	9.10.0b1
+Version:	9.10.0-P2
+Current Vers:	9.10.0-P2
 Maintainer:	Paul Vixie 
 Archive Site:	ftp://ftp.isc.org/isc/bind9/
 Home Page:	http://www.isc.org/software/bind/
@@ -191,6 +191,9 @@ Responsible:
 License:	BSD (2-clause) (see http://www.freebsd.org/cgi/cvsweb.cgi/src/COPYRIGHT)
 Location:	share/misc/bsd-family-tree
 Notes:
+Please send all updates upstream.  Eitan Adler 
+is a FreeBSD committer who has been helpful with incorporating changes
+in the past.
 
 Package:	byacc
 Version:	20130304
@@ -286,8 +289,8 @@ distribution into the netbsd format.  Th
 src/lib/libc/db/db2netbsd.
 
 Package:	dhcp
-Version:	4.2.5-P1
-Current Vers:	4.2.5-P1
+Version:	4.3.0
+Current Vers:	4.3.0
 Maintainer:	mellon
 Archive Site:	ftp://ftp.isc.org/isc/dhcp/
 Home Page:	http://www.isc.org/software/dhcp/
@@ -302,8 +305,8 @@ Notes:
 Use the dhcp2netbsd script.
 
 Package:	dhcpcd
-Version:	6.3.2
-Current Vers:	6.3.2
+Version:	6.4.3
+Current Vers:	6.4.3
 Maintainer:	roy
 Archive Site:	ftp://roy.marples.name/pub/dhcpcd/
 Home Page:	http://roy.marples.name/projects/dhcpcd/
@@ -328,6 +331,18 @@ Notes:
 Use src/gnu/dist/diffutils/diffutils2netbsd for preparing the source tree
 for the import.
 
+Package:	ekermit
+Version:	1.7
+Current Vers:	1.7
+Maintainer:	Kermit Project
+Archive Site:	ftp://ftp.kermitproject.org/kermit/ekermit/
+Home Page:	http://www.kermitproject.org/ek.html
+Mailing List:
+Responsible:	apb
+License:	BSD (3 clause)
+Location:	external/bsd/ekermit
+Notes:
+
 Package:	expat
 Version:	2.1.0
 Current Vers:	2.1.0
@@ -342,8 +357,8 @@ Notes:
 Please use "expat" as the vendor tag for CVS imports.
 
 Package:	file
-Version:	5.16
-Current Vers:	5.18
+Version:	5.19
+Current Vers:	5.19
 Maintainer:	Christos Zoulas 
 Archive Site:	ftp://ftp.astron.com/pub/file/
 Home Page:	http://www.darwinsys.com/file/
@@ -368,8 +383,8 @@ Notes:
 There is a flex2netbsd script to help newer imports.
 
 Package:	gcc
-Version:	4.1.3-20080831/4.5.4/4.8.2r206687
-Current Vers:	4.8.2
+Version:	4.1.3-20080831/4.5.4/4.8.3
+Current Vers:	4.8.3
 Maintainer:	FSF
 Archive Site:	ftp://ftp.gnu.org/gnu/gcc/
 Home Page:	http://www.gnu.org/software/gcc/
@@ -397,8 +412,8 @@ Before importing a new version of extern
 	- you can use the gcc2netbsd script for the above (except version)
 
 Package:	gdb
-Version:	7.6.1
-Current Vers:	7.7
+Version:	7.7.1
+Current Vers:	7.7.1
 Maintainer:	FSF
 Archive Site:	ftp://ftp.gnu.org/gnu/gdb/
 Home Page:	http://www.gnu.org/software/gdb/
@@ -442,21 +457,9 @@ GNU gettext is used for userland tools l
 we use BSD-licensed implementation from Citrus project (see entry for
 "Citrus XPG4DL").  We hope to replace userland tools with BSD-licensed one.
 
-Package:	gkermit
-Version:	1.00
-Current Vers:	1.00
-Maintainer:	Kermit Project - Columbia University 
-Archive Site:	ftp://kermit.columbia.edu/kermit/archives/
-Home Page:	http://www.columbia.edu/kermit/
-Mailing List:
-Responsible:	apb
-License:	GPLv2
-Location:	gnu/dist/gkermit
-Notes:
-
 Package:	grep
 Version:	2.5.1
-Current Vers:	2.17
+Current Vers:	2.19
 Maintainer:	FSF
 Archive Site:	ftp://ftp.gnu.org/gnu/grep/
 Home Page:	http://www.gnu.org/software/grep/
@@ -489,8 +492,8 @@ Use groff2netbsd from src/gnu/dist/groff
 for import.
 
 Package:	heimdal
-Version:	1.5pre1
-Current Vers:	1.5.2
+Version:	1.5.3
+Current Vers:	1.5.3
 Maintainer:	Heimdal 
 Archive Site:	ftp://ftp.pdc.kth.se/pub/he

CVS commit: [tls-earlyentropy] src/etc

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:03:07 UTC 2014

Modified Files:
src/etc [tls-earlyentropy]: Makefile Makefile.params daily locate.conf
rc rc.conf rc.subr services

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.412 -r1.412.2.1 src/etc/Makefile
cvs rdiff -u -r1.11 -r1.11.2.1 src/etc/Makefile.params
cvs rdiff -u -r1.90 -r1.90.2.1 src/etc/daily
cvs rdiff -u -r1.1 -r1.1.76.1 src/etc/locate.conf
cvs rdiff -u -r1.166 -r1.166.20.1 src/etc/rc
cvs rdiff -u -r1.96 -r1.96.78.1 src/etc/rc.conf
cvs rdiff -u -r1.92 -r1.92.8.1 src/etc/rc.subr
cvs rdiff -u -r1.97 -r1.97.8.1 src/etc/services

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

Modified files:

Index: src/etc/Makefile
diff -u src/etc/Makefile:1.412 src/etc/Makefile:1.412.2.1
--- src/etc/Makefile:1.412	Mon Jan 27 21:37:17 2014
+++ src/etc/Makefile	Sun Aug 10 07:03:06 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.412 2014/01/27 21:37:17 apb Exp $
+#	$NetBSD: Makefile,v 1.412.2.1 2014/08/10 07:03:06 tls Exp $
 #	from: @(#)Makefile	8.7 (Berkeley) 5/25/95
 
 # Environment variables without default values:
@@ -47,6 +47,8 @@ CKSUM?=		${TOOL_CKSUM}
 MAKESUMS=	MAKE=${MAKE:Q} CKSUM=${CKSUM:Q} ${HOST_SH} ${NETBSDSRCDIR}/distrib/sets/makesums
 DISTRIBVER!=	${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh
 
+GZIP_FLAGS= -9 ${GZIP_N_FLAG}
+
 # Flags for creating ISO CDROM image
 # mkisofs is expected to be in $PATH, install via pkgsrc/sysutils/cdrtools
 # Note: At least mkisofs 2.0 should be used.
@@ -193,9 +195,20 @@ etc-release: .EXEC .MAKE
 		echo ; \
 		cat ${NETBSDSRCDIR}/sys/conf/copyright; \
 		echo ; \
-		echo "Build settings:"; \
+		echo "Build information:"; \
 		printf "%20s   %s\n" "Build date" "$$(date -u)"; \
 		printf "%20s   %s\n"  "Built by" "$${USER-root}@$$(hostname)"; \
+		if [ -n "${BUILDID}" ]; then \
+		printf "%20s   %s\n"  "Build ID" "${BUILDID}" ; \
+		fi ; \
+		if [ -n "${BUILDINFO}" ]; then \
+		echo ; \
+		info="$$(printf "%b" ${BUILDINFO:Q})" ; \
+		printf "%s\n" "$${info}" \
+		| ${TOOL_SED} -e 's/^//' ; \
+		fi ; \
+		echo ; \
+		echo "Build settings:"; \
 		echo ; \
 		${PRINT_PARAMS} ; \
 	) >${.OBJDIR}/${.TARGET}
@@ -402,7 +415,7 @@ release snapshot: .PHONY .MAKE check_DES
 #	Note: At least mkisofs 2.0 should be used.
 #
 CDROM_NAME_ADD?=
-CDROM_IMAGE?=${RELEASEDIR}/iso/NetBSD-${DISTRIBVER}-${MACHINE}.iso
+CDROM_IMAGE?=${RELEASEDIR}/images/NetBSD-${DISTRIBVER}-${MACHINE}.iso
 CDROM.dir=	${.OBJDIR}/cdrom.dir
 CDROM.pathlist=	${.OBJDIR}/cdrom.pathlist
 
@@ -410,7 +423,7 @@ iso-image:
 
 .if ${MKISOFS} != true
 do-iso-image: .PHONY check_DESTDIR check_RELEASEDIR iso-image-md-post
-	${MAKESUMS} -t ${RELEASEDIR}/iso/ '*.iso'
+	${MAKESUMS} -t ${RELEASEDIR}/images/ '*.iso'
 	@echo "iso-image created as: ${CDROM_IMAGE}"
 .else
 do-iso-image:
@@ -426,12 +439,14 @@ iso-image-setup: .PHONY check_RELEASEDIR
 .endfor
 	echo "${MACHINE}/=${RELEASEDIR}/${RELEASEMACHINEDIR}/" >> ${CDROM.pathlist}
 	mkdir -p ${CDROM.dir}
-	mkdir -p ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/cdrom
+
+check_imagedir:
+	mkdir -p ${RELEASEDIR}/images
 
 # iso-image-mi --
 #	Create the image after the MD operations have completed.
 #
-iso-image-mi: .PHONY check_DESTDIR check_RELEASEDIR iso-image-md-pre
+iso-image-mi: .PHONY check_DESTDIR check_RELEASEDIR iso-image-md-pre check_imagedir
 	@if ! ${MKISOFS} --version; then \
 		echo "install pkgsrc/sysutils/cdrtools and run 'make iso-image'." ; \
 		false; \
@@ -558,7 +573,7 @@ build_kernels: .PHONY
 build_kernels: kern-${configfile}
 kern-${configfile}: .PHONY .MAKE
 	cd ${KERNCONFDIR} && ${TOOL_CONFIG} -s ${KERNSRCDIR} \
-	-b ${KERNOBJDIR}/${configfile:C/.*\///} ${configfile}
+	-U DEBUG -b ${KERNOBJDIR}/${configfile:C/.*\///} ${configfile}
 .if ${MKUPDATE} == "no"
 	cd ${KERNOBJDIR}/${configfile:C/.*\///} && ${MAKE} distclean
 .endif
@@ -580,7 +595,7 @@ kernset-${configfile}: .PHONY build_kern
 	kerndir=${KERNOBJDIR}/${configfile:C/.*\///}; \
 	kernsuffixes="${KERNEL_SUFFIXES:S/^/./}"; \
 	kern_tgz=${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/sets/kern-${configfile}.tgz; \
-	pax_cmd="COMPRESS_PROGRAM=${TOOL_GZIP:Q} GZIP=-9n ${TOOL_PAX} -O -zw -M -N ${NETBSDSRCDIR}/etc -f $${kern_tgz}"; \
+	pax_cmd="GZIP=${GZIP_FLAGS:Q} ${TOOL_PAX} --use-compress-program ${TOOL_GZIP:Q} -O -w -M -N ${NETBSDSRCDIR}/etc -f $${kern_tgz}"; \
 	cd $${kerndir} && { \
 		kernels=; newest=; \
 		for kernel in $${kernlist}; do \
@@ -625,8 +640,8 @@ releasekern-${configfile}: .PHONY build_
 knl_gz="${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/$${kernel}-${configfile:C/.*\///}$${s}.gz"; \
 [ $${knl_gz} -nt $${ks} ] && continue; \
 rm -f $${knl_gz}; \
-echo "${TOOL_GZIP} -nc -9 < $${kerndir}/$${ks} > $${knl_gz}"; \
-${TOOL_GZIP} -nc -9 < $${ks} > $${knl_gz}; \
+echo "${TOOL_GZIP} ${GZIP_FLAGS} -c < $${kerndir}/$${ks} > $${knl_gz}"; \
+${TOOL_GZ

CVS commit: [tls-earlyentropy] src/x11/lib/GLU

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:00:41 UTC 2014

Modified Files:
src/x11/lib/GLU [tls-earlyentropy]: Makefile

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.10.2.1 src/x11/lib/GLU/Makefile

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

Modified files:

Index: src/x11/lib/GLU/Makefile
diff -u src/x11/lib/GLU/Makefile:1.10 src/x11/lib/GLU/Makefile:1.10.2.1
--- src/x11/lib/GLU/Makefile:1.10	Thu Sep 12 17:14:20 2013
+++ src/x11/lib/GLU/Makefile	Sun Aug 10 07:00:41 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.10 2013/09/12 17:14:20 joerg Exp $
+#	$NetBSD: Makefile,v 1.10.2.1 2014/08/10 07:00:41 tls Exp $
 
 NOLINT=		1	# XTODO: tess.ln SIGSEGVs lint :(
 
@@ -69,7 +69,7 @@ LIBDPLIBS=\
 .include 
 
 # Many const char * vs char * issues in xsrc/xfree
-.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45
+.if defined(HAVE_GCC)
 # XXX -Wno-deprecated doesn't work?
 CXXFLAGS+=	-Wno-error
 .endif



CVS commit: [tls-earlyentropy] src/usr.sbin/mtree

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 06:59:56 UTC 2014

Modified Files:
src/usr.sbin/mtree [tls-earlyentropy]: create.c extern.h mtree.c spec.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.72.2.1 src/usr.sbin/mtree/create.c
cvs rdiff -u -r1.38 -r1.38.6.1 src/usr.sbin/mtree/extern.h
cvs rdiff -u -r1.48 -r1.48.4.1 src/usr.sbin/mtree/mtree.c
cvs rdiff -u -r1.88 -r1.88.2.1 src/usr.sbin/mtree/spec.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/mtree/create.c
diff -u src/usr.sbin/mtree/create.c:1.72 src/usr.sbin/mtree/create.c:1.72.2.1
--- src/usr.sbin/mtree/create.c:1.72	Thu Oct 17 17:22:59 2013
+++ src/usr.sbin/mtree/create.c	Sun Aug 10 06:59:56 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: create.c,v 1.72 2013/10/17 17:22:59 christos Exp $	*/
+/*	$NetBSD: create.c,v 1.72.2.1 2014/08/10 06:59:56 tls Exp $	*/
 
 /*-
  * Copyright (c) 1989, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)create.c	8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: create.c,v 1.72 2013/10/17 17:22:59 christos Exp $");
+__RCSID("$NetBSD: create.c,v 1.72.2.1 2014/08/10 06:59:56 tls Exp $");
 #endif
 #endif /* not lint */
 
@@ -91,13 +91,14 @@ static u_long flags;
 #endif
 
 static int	dcmp(const FTSENT *FTS_CONST *, const FTSENT *FTS_CONST *);
-static void	output(int, int *, const char *, ...)
-	__attribute__((__format__(__printf__, 3, 4)));
-static int	statd(FTS *, FTSENT *, uid_t *, gid_t *, mode_t *, u_long *);
-static void	statf(int, FTSENT *);
+static void	output(FILE *, int, int *, const char *, ...)
+__printflike(4, 5);
+static int	statd(FILE *, FTS *, FTSENT *, uid_t *, gid_t *, mode_t *,
+u_long *);
+static void	statf(FILE *, int, FTSENT *);
 
 void
-cwalk(void)
+cwalk(FILE *fp)
 {
 	FTS *t;
 	FTSENT *p;
@@ -121,7 +122,7 @@ cwalk(void)
 	}
 
 	if (!nflag)
-		printf(
+		fprintf(fp,
 		"#\t   user: %s\n#\tmachine: %s\n#\t   tree: %s\n"
 		"#\t   date: %s",
 		user, host, fullpath, ctime(&clocktime));
@@ -142,21 +143,21 @@ cwalk(void)
 		switch(p->fts_info) {
 		case FTS_D:
 			if (!bflag)
-printf("\n");
+fprintf(fp, "\n");
 			if (!nflag)
-printf("# %s\n", p->fts_path);
-			statd(t, p, &uid, &gid, &mode, &flags);
-			statf(indent, p);
+fprintf(fp, "# %s\n", p->fts_path);
+			statd(fp, t, p, &uid, &gid, &mode, &flags);
+			statf(fp, indent, p);
 			break;
 		case FTS_DP:
 			if (p->fts_level > 0)
 if (!nflag)
-	printf("%*s# %s\n", indent, "",
+	fprintf(fp, "%*s# %s\n", indent, "",
 	p->fts_path);
 			if (p->fts_level > 0 || flavor == F_FREEBSD9) {
-printf("%*s..\n", indent, "");
+fprintf(fp, "%*s..\n", indent, "");
 if (!bflag)
-	printf("\n");
+	fprintf(fp, "\n");
 			}
 			break;
 		case FTS_DNR:
@@ -167,7 +168,7 @@ cwalk(void)
 			break;
 		default:
 			if (!dflag)
-statf(indent, p);
+statf(fp, indent, p);
 			break;
 
 		}
@@ -178,7 +179,7 @@ cwalk(void)
 }
 
 static void
-statf(int indent, FTSENT *p)
+statf(FILE *fp, int indent, FTSENT *p)
 {
 	u_int32_t len, val;
 	int fd, offset;
@@ -187,51 +188,54 @@ statf(int indent, FTSENT *p)
 	char *digestbuf;
 #endif
 
-	offset = printf("%*s%s%s", indent, "",
+	offset = fprintf(fp, "%*s%s%s", indent, "",
 	S_ISDIR(p->fts_statp->st_mode) ? "" : "", vispath(p->fts_name));
 
 	if (offset > (INDENTNAMELEN + indent))
 		offset = MAXLINELEN;
 	else
-		offset += printf("%*s", (INDENTNAMELEN + indent) - offset, "");
+		offset += fprintf(fp, "%*s",
+		(INDENTNAMELEN + indent) - offset, "");
 
 	if (!S_ISREG(p->fts_statp->st_mode) && (flavor == F_NETBSD6 || !dflag))
-		output(indent, &offset, "type=%s",
+		output(fp, indent, &offset, "type=%s",
 		inotype(p->fts_statp->st_mode));
 	if (keys & (F_UID | F_UNAME) && p->fts_statp->st_uid != uid) {
 		if (keys & F_UNAME &&
 		(name = user_from_uid(p->fts_statp->st_uid, 1)) != NULL)
-			output(indent, &offset, "uname=%s", name);
+			output(fp, indent, &offset, "uname=%s", name);
 		if (keys & F_UID || (keys & F_UNAME && name == NULL))
-			output(indent, &offset, "uid=%u", p->fts_statp->st_uid);
+			output(fp, indent, &offset, "uid=%u",
+			p->fts_statp->st_uid);
 	}
 	if (keys & (F_GID | F_GNAME) && p->fts_statp->st_gid != gid) {
 		if (keys & F_GNAME &&
 		(name = group_from_gid(p->fts_statp->st_gid, 1)) != NULL)
-			output(indent, &offset, "gname=%s", name);
+			output(fp, indent, &offset, "gname=%s", name);
 		if (keys & F_GID || (keys & F_GNAME && name == NULL))
-			output(indent, &offset, "gid=%u", p->fts_statp->st_gid);
+			output(fp, indent, &offset, "gid=%u",
+			p->fts_statp->st_gid);
 	}
 	if (keys & F_MODE && (p->fts_statp->st_mode & MBITS) != mode)
-		output(indent, &offset, "mode=%#o",
+		output(fp, indent, &offset, "mode=%#o",
 		p->fts_statp->st_mode & MBITS);
 	if (keys & F_DEV &&
 	(S_ISBLK(p->fts_statp->st_mode) || S_ISCHR(p->ft

CVS commit: [tls-earlyentropy] src/usr.sbin/ypbind

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:00:38 UTC 2014

Modified Files:
src/usr.sbin/ypbind [tls-earlyentropy]: ypbind.8 ypbind.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.18.38.1 src/usr.sbin/ypbind/ypbind.8
cvs rdiff -u -r1.90 -r1.90.18.1 src/usr.sbin/ypbind/ypbind.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/ypbind/ypbind.8
diff -u src/usr.sbin/ypbind/ypbind.8:1.18 src/usr.sbin/ypbind/ypbind.8:1.18.38.1
--- src/usr.sbin/ypbind/ypbind.8:1.18	Wed Apr 30 13:11:03 2008
+++ src/usr.sbin/ypbind/ypbind.8	Sun Aug 10 07:00:38 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: ypbind.8,v 1.18 2008/04/30 13:11:03 martin Exp $
+.\"	$NetBSD: ypbind.8,v 1.18.38.1 2014/08/10 07:00:38 tls Exp $
 .\"
 .\" Copyright (c) 1996 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd February 26, 2005
+.Dd June 14, 2014
 .Dt YPBIND 8
 .Os
 .Sh NAME
@@ -94,9 +94,9 @@ it is bound.
 If the binding is somehow lost, e.g by server reboot,
 .Nm
 marks the domain as unbound and attempts to re-establish the binding.
-When the binding is once again successful,
+If a binding cannot be re-established within 60 seconds,
 .Nm
-marks the domain as bound and resumes its periodic check.
+backs off exponentially to trying only once per hour.
 .Pp
 The options are as follows:
 .Bl -tag -width "-broadcast"
@@ -114,7 +114,7 @@ or
 servers.
 .It Fl ypset
 .Xr ypset 8
-may be used to change the server to which a domain is bound.
+may be used from anywhere to change the server to which a domain is bound.
 .It Fl ypsetme
 .Xr ypset 8
 may be used only from this machine to change the server
@@ -122,11 +122,22 @@ to which a domain is bound.
 .El
 .Pp
 The
-.Fl broadcast
+.Fl broadcast ,
 .Fl ypset ,
 and
-.Fl ypsetme ,
+.Fl ypsetme
 options are inherently insecure and should be avoided.
+.Sh SIGNALS
+.Nm
+responds to the following signals:
+.Bl -tag -width TERM -compact
+.It Dv HUP
+causes
+.Nm
+to immediately retry any unbound domains that are currently in
+exponential backoff.
+Use this to resume immediately after a long network outage is
+resolved.
 .Sh FILES
 .Pa /var/yp/binding/\*[Lt]domain\*[Gt].version
 - binding file for \*[Lt]domain\*[Gt].
@@ -147,7 +158,10 @@ facility.
 .Xr yppoll 8 ,
 .Xr ypset 8
 .Sh AUTHORS
+.An -nosplit
 This version of
 .Nm
-was originally implemented by Theo de Raadt.
-The ypservers support was implemented by Luke Mewburn.
+was originally implemented by
+.An Theo de Raadt .
+The ypservers support was implemented by
+.An Luke Mewburn .

Index: src/usr.sbin/ypbind/ypbind.c
diff -u src/usr.sbin/ypbind/ypbind.c:1.90 src/usr.sbin/ypbind/ypbind.c:1.90.18.1
--- src/usr.sbin/ypbind/ypbind.c:1.90	Tue Aug 30 17:06:22 2011
+++ src/usr.sbin/ypbind/ypbind.c	Sun Aug 10 07:00:38 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: ypbind.c,v 1.90 2011/08/30 17:06:22 plunky Exp $	*/
+/*	$NetBSD: ypbind.c,v 1.90.18.1 2014/08/10 07:00:38 tls Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993 Theo de Raadt 
@@ -28,7 +28,7 @@
 
 #include 
 #ifndef LINT
-__RCSID("$NetBSD: ypbind.c,v 1.90 2011/08/30 17:06:22 plunky Exp $");
+__RCSID("$NetBSD: ypbind.c,v 1.90.18.1 2014/08/10 07:00:38 tls Exp $");
 #endif
 
 #include 
@@ -50,6 +50,7 @@ __RCSID("$NetBSD: ypbind.c,v 1.90 2011/0
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -84,16 +85,26 @@ typedef enum {
 	YPBIND_DIRECT, YPBIND_BROADCAST,
 } ypbind_mode_t;
 
+enum domainstates {
+	DOM_NEW,		/* not yet bound */
+	DOM_ALIVE,		/* bound and healthy */
+	DOM_PINGING,		/* ping outstanding */
+	DOM_LOST,		/* binding timed out, looking for a new one */
+	DOM_DEAD,		/* long-term lost, in exponential backoff */
+};
+
 struct domain {
 	struct domain *dom_next;
 
 	char dom_name[YPMAXDOMAIN + 1];
 	struct sockaddr_in dom_server_addr;
 	long dom_vers;
-	time_t dom_checktime;
-	time_t dom_asktime;
+	time_t dom_checktime;		/* time of next check/contact */
+	time_t dom_asktime;		/* time we were last DOMAIN'd */
+	time_t dom_losttime;		/* time the binding was lost, or 0 */
+	unsigned dom_backofftime;	/* current backoff period, when DEAD */
 	int dom_lockfd;
-	int dom_alive;
+	enum domainstates dom_state;
 	uint32_t dom_xid;
 	FILE *dom_serversfile;		/* /var/yp/binding/foo.ypservers */
 	int dom_been_ypset;		/* ypset been done on this domain? */
@@ -102,26 +113,36 @@ struct domain {
 
 #define BUFSIZE		1400
 
-static char *domainname;
-
+/* the list of all domains */
 static struct domain *domains;
 static int check;
 
+/* option settings */
 static ypbind_mode_t default_ypbindmode;
-
 static int allow_local_ypset = 0, allow_any_ypset = 0;
 static int insecure;
 
+/* the sockets we use to interact with servers */
 static int rpcsock, pingsock;
+
+/* stuff used for manually interacting with servers */

CVS commit: [tls-earlyentropy] src/include

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:03:53 UTC 2014

Modified Files:
src/include [tls-earlyentropy]: search.h stdio.h stdlib.h unistd.h

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.20.4.1 src/include/search.h
cvs rdiff -u -r1.88 -r1.88.4.1 src/include/stdio.h
cvs rdiff -u -r1.107 -r1.107.2.1 src/include/stdlib.h
cvs rdiff -u -r1.140 -r1.140.2.1 src/include/unistd.h

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

Modified files:

Index: src/include/search.h
diff -u src/include/search.h:1.20 src/include/search.h:1.20.4.1
--- src/include/search.h:1.20	Sat Apr 27 21:35:25 2013
+++ src/include/search.h	Sun Aug 10 07:03:53 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: search.h,v 1.20 2013/04/27 21:35:25 joerg Exp $	*/
+/*	$NetBSD: search.h,v 1.20.4.1 2014/08/10 07:03:53 tls Exp $	*/
 
 /*
  * Written by J.T. Conklin 
@@ -62,8 +62,10 @@ void	 hdestroy(void);
 ENTRY	*hsearch(ENTRY, ACTION);
 
 #ifdef _NETBSD_SOURCE
+void	 hdestroy1(void (*)(void *), void (*)(void *));
 int	 hcreate_r(size_t, struct hsearch_data *);
 void	 hdestroy_r(struct hsearch_data *);
+void	 hdestroy1_r(struct hsearch_data *, void (*)(void *), void (*)(void *));
 int	 hsearch_r(ENTRY, ACTION, ENTRY **, struct hsearch_data *);
 #endif /* _NETBSD_SOURCE */
 

Index: src/include/stdio.h
diff -u src/include/stdio.h:1.88 src/include/stdio.h:1.88.4.1
--- src/include/stdio.h:1.88	Sat May  4 18:30:14 2013
+++ src/include/stdio.h	Sun Aug 10 07:03:53 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: stdio.h,v 1.88 2013/05/04 18:30:14 christos Exp $	*/
+/*	$NetBSD: stdio.h,v 1.88.4.1 2014/08/10 07:03:53 tls Exp $	*/
 
 /*-
  * Copyright (c) 1990, 1993
@@ -242,9 +242,6 @@ long	 ftell(FILE *);
 size_t	 fwrite(const void * __restrict, size_t, size_t, FILE * __restrict);
 int	 getc(FILE *);
 int	 getchar(void);
-ssize_t	 getdelim(char ** __restrict, size_t * __restrict, int,
-	FILE * __restrict);
-ssize_t	 getline(char ** __restrict, size_t * __restrict, FILE * __restrict);
 void	 perror(const char *);
 int	 printf(const char * __restrict, ...)
 		__printflike(1, 2);
@@ -461,9 +458,9 @@ __END_DECLS
 #if defined(__GNUC__) && defined(__STDC__)
 static __inline int __sputc(int _c, FILE *_p) {
 	if (--_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != '\n'))
-		return (*_p->_p++ = _c);
+		return *_p->_p++ = (unsigned char)_c;
 	else
-		return (__swbuf(_c, _p));
+		return __swbuf(_c, _p);
 }
 #else
 /*
@@ -508,10 +505,12 @@ static __inline int __sputc(int _c, FILE
 #endif /* !_ANSI_SOURCE && !__cplusplus*/
 
 #if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE)
+__BEGIN_DECLS
 int	 vdprintf(int, const char * __restrict, __va_list)
 		__printflike(2, 0);
 int	 dprintf(int, const char * __restrict, ...)
 		__printflike(2, 3);
+__END_DECLS
 #endif /* (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) */
 
 #if (_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \
@@ -525,7 +524,12 @@ int	 dprintf(int, const char * __restric
 
 #if (_POSIX_C_SOURCE - 0) >= 200809L || (_XOPEN_SOURCE - 0) >= 700 || \
 defined(_NETBSD_SOURCE)
+__BEGIN_DECLS
 FILE *fmemopen(void * __restrict, size_t, const char * __restrict);
+ssize_t	 getdelim(char ** __restrict, size_t * __restrict, int,
+	FILE * __restrict);
+ssize_t	 getline(char ** __restrict, size_t * __restrict, FILE * __restrict);
+__END_DECLS
 #endif
 
 #if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE)

Index: src/include/stdlib.h
diff -u src/include/stdlib.h:1.107 src/include/stdlib.h:1.107.2.1
--- src/include/stdlib.h:1.107	Wed Jan  8 02:16:03 2014
+++ src/include/stdlib.h	Sun Aug 10 07:03:53 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: stdlib.h,v 1.107 2014/01/08 02:16:03 christos Exp $	*/
+/*	$NetBSD: stdlib.h,v 1.107.2.1 2014/08/10 07:03:53 tls Exp $	*/
 
 /*-
  * Copyright (c) 1990, 1993
@@ -174,12 +174,16 @@ int	 putenv(char *) __RENAME(__putenv50)
 long	 a64l(const char *);
 char	*l64a(long);
 
-char	*initstate(unsigned long, char *, size_t);
 long	 random(void);
 char	*setstate(char *);
-void	 srandom(unsigned long);
+#ifndef __LIBC12_SOURCE__
+char	*initstate(unsigned int, char *, size_t) __RENAME(__initstate60);
+void	 srandom(unsigned int) __RENAME(__srandom60);
+#endif
 #ifdef _NETBSD_SOURCE
 #define	RANDOM_MAX	0x7fff	/* (((long)1 << 31) - 1) */
+int	 mkostemp(char *, int);
+int	 mkostemps(char *, int, int);
 #endif
 
 char	*mkdtemp(char *);

Index: src/include/unistd.h
diff -u src/include/unistd.h:1.140 src/include/unistd.h:1.140.2.1
--- src/include/unistd.h:1.140	Thu Jan  2 23:33:50 2014
+++ src/include/unistd.h	Sun Aug 10 07:03:53 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: unistd.h,v 1.140 2014/01/02 23:33:50 christos Exp $	*/
+/*	$NetBSD: unistd.h,v 1.140.2.1 2014/08/10 07:03:53 tls Exp $	*/
 
 /*-
  * Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc.
@@ -173,6 +173,7 @@ ssize_t	 readlink(const char * __restric
  */
 #if (_POSIX_C_SOURCE - 0)

CVS commit: [tls-earlyentropy] src/x11/share/fonts

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:00:45 UTC 2014

Modified Files:
src/x11/share/fonts/bdf [tls-earlyentropy]: Makefile.bdf
src/x11/share/fonts/encodings [tls-earlyentropy]: Makefile.enc

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.8.2.1 src/x11/share/fonts/bdf/Makefile.bdf
cvs rdiff -u -r1.9 -r1.9.2.1 src/x11/share/fonts/encodings/Makefile.enc

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

Modified files:

Index: src/x11/share/fonts/bdf/Makefile.bdf
diff -u src/x11/share/fonts/bdf/Makefile.bdf:1.8 src/x11/share/fonts/bdf/Makefile.bdf:1.8.2.1
--- src/x11/share/fonts/bdf/Makefile.bdf:1.8	Mon Jan 27 08:18:08 2014
+++ src/x11/share/fonts/bdf/Makefile.bdf	Sun Aug 10 07:00:45 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.bdf,v 1.8 2014/01/27 08:18:08 apb Exp $
+#	$NetBSD: Makefile.bdf,v 1.8.2.1 2014/08/10 07:00:45 tls Exp $
 
 # Font files built using this makefile are cleaned in two ways:
 #
@@ -17,7 +17,7 @@ FILESDIR=	${X11FONTDIR}/${FONTSUBDIR}
 .PATH:  	${X11SRCDIR.xc}/fonts/bdf/${FONTSUBDIR}
 
 FONTSUFFIX=	.gz
-FONTGZIP=	| ${TOOL_GZIP} ${GZIPLEVEL:U-9} -ncf
+FONTGZIP=	| ${TOOL_GZIP_N} ${GZIPLEVEL:U-9} -cf
 
 .include "${NETBSDSRCDIR}/x11/tools/bdftopcf/Makefile.bdftopcf"
 .include "${NETBSDSRCDIR}/x11/tools/ucs2any/Makefile.ucs2any"

Index: src/x11/share/fonts/encodings/Makefile.enc
diff -u src/x11/share/fonts/encodings/Makefile.enc:1.9 src/x11/share/fonts/encodings/Makefile.enc:1.9.2.1
--- src/x11/share/fonts/encodings/Makefile.enc:1.9	Mon Jan 27 08:18:08 2014
+++ src/x11/share/fonts/encodings/Makefile.enc	Sun Aug 10 07:00:45 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.enc,v 1.9 2014/01/27 08:18:08 apb Exp $
+#	$NetBSD: Makefile.enc,v 1.9.2.1 2014/08/10 07:00:45 tls Exp $
 
 FILESDIR=	${X11FONTDIR}/${ENCDIR}
 .PATH:  	${X11SRCDIR.xc}/fonts/${ENCDIR}
@@ -11,7 +11,7 @@ CLEANFILES+=	${GZFILES:S/.gz$/.gz.tmp/}
 .SUFFIXES: .enc .enc.gz
 .enc.enc.gz:
 	${_MKTARGET_CREATE}
-	${TOOL_GZIP} -9nfc ${.IMPSRC} > ${.TARGET}.tmp \
+	${TOOL_GZIP_N} -9fc ${.IMPSRC} > ${.TARGET}.tmp \
 	&& mv ${.TARGET}.tmp ${.TARGET}
 
 



CVS commit: [tls-earlyentropy] src/usr.sbin/wlanctl

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:00:35 UTC 2014

Modified Files:
src/usr.sbin/wlanctl [tls-earlyentropy]: wlanctl.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.13.18.1 src/usr.sbin/wlanctl/wlanctl.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/wlanctl/wlanctl.c
diff -u src/usr.sbin/wlanctl/wlanctl.c:1.13 src/usr.sbin/wlanctl/wlanctl.c:1.13.18.1
--- src/usr.sbin/wlanctl/wlanctl.c:1.13	Wed Aug 31 13:32:41 2011
+++ src/usr.sbin/wlanctl/wlanctl.c	Sun Aug 10 07:00:35 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: wlanctl.c,v 1.13 2011/08/31 13:32:41 joerg Exp $ */
+/* $NetBSD: wlanctl.c,v 1.13.18.1 2014/08/10 07:00:35 tls Exp $ */
 /*-
  * Copyright (c) 2005 David Young.  All rights reserved.
  *
@@ -56,7 +56,6 @@ struct flagname {
 };
 
 struct cmdflags {
-	int	cf_v;	/* verbose */
 	int	cf_a;	/* all 802.11 interfaces */
   	int cf_p;   /* public (i.e. non-private) dests */
 };
@@ -179,7 +178,8 @@ print_channel(u_int16_t chanidx, u_int16
  * hdr_type: header type: IEEE80211_SYSCTL_T_NODE -> generic node,
  *IEEE80211_SYSCTL_T_RSSADAPT -> rssadapt(9) info,
  *IEEE80211_SYSCTL_T_DRVSPEC -> driver specific.
- * cf:   command flags, cf_v != 0 -> verbose
+ * cf:   command flags: cf_a != 0 -> all 802.11 interfaces
+ *  cf_p != 0 -> public dests
  */
 static int
 dump_nodes(const char *ifname_arg, int hdr_type, struct cmdflags *cf)
@@ -287,8 +287,10 @@ dump_nodes(const char *ifname_arg, int h
 static void
 usage(void)
 {
-	fprintf(stderr, "usage: %s [ -p ] [ -v ] -a\n"
-	"\t[ -v ] interface [ interface ... ]\n", getprogname());
+	fprintf(stderr,
+	"Usage: %s [ -p ] -a\n"
+	"   %s [ -p ] interface [ interface ... ]\n",
+	getprogname(), getprogname());
 	exit(EXIT_FAILURE);
 }
 
@@ -299,7 +301,7 @@ parse_args(int *argcp, char ***argvp, st
 
 	(void)memset(cf, 0, sizeof(*cf));
 
-	while ((ch = getopt(*argcp, *argvp, "apv")) != -1) {
+	while ((ch = getopt(*argcp, *argvp, "ap")) != -1) {
 		switch (ch) {
 		case 'a':
 			cf->cf_a = 1;
@@ -307,9 +309,6 @@ parse_args(int *argcp, char ***argvp, st
 		case 'p':
 			cf->cf_p = 1;
 			break;
-		case 'v':
-			cf->cf_v = 1;
-			break;
 		default:
 			warnx("unknown option -%c", ch);
 			usage();



CVS commit: [tls-earlyentropy] src/usr.sbin/vnconfig

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:00:33 UTC 2014

Modified Files:
src/usr.sbin/vnconfig [tls-earlyentropy]: vnconfig.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.41.4.1 src/usr.sbin/vnconfig/vnconfig.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/vnconfig/vnconfig.c
diff -u src/usr.sbin/vnconfig/vnconfig.c:1.41 src/usr.sbin/vnconfig/vnconfig.c:1.41.4.1
--- src/usr.sbin/vnconfig/vnconfig.c:1.41	Sun Jun  9 13:25:40 2013
+++ src/usr.sbin/vnconfig/vnconfig.c	Sun Aug 10 07:00:33 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: vnconfig.c,v 1.41 2013/06/09 13:25:40 christos Exp $	*/
+/*	$NetBSD: vnconfig.c,v 1.41.4.1 2014/08/10 07:00:33 tls Exp $	*/
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -318,9 +318,10 @@ config(char *dev, char *file, char *geom
 		int	ffd;
 
 		ffd = open(file, readonly ? O_RDONLY : O_RDWR);
-		if (ffd < 0)
+		if (ffd < 0) {
 			warn("%s", file);
-		else {
+			rv = -1;
+		} else {
 			(void) close(ffd);
 
 			rv = ioctl(fd, VNDIOCSET, &vndio);



CVS commit: [tls-earlyentropy] src/usr.sbin/sysinst

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:00:29 UTC 2014

Added Files:
src/usr.sbin/sysinst [tls-earlyentropy]: Makefile Makefile.inc
SPELLING.en TODO aout2elf.c bsddisklabel.c checkrc.c configmenu.c
defs.h disks.c disks_lfs.c endian.h factor.c geom.c install.c
label.c main.c mbr.c mbr.h menus.mbr menus.mi msg.mbr.de msg.mbr.en
msg.mbr.es msg.mbr.fr msg.mbr.pl msg.mi.de msg.mi.en msg.mi.es
msg.mi.fr msg.mi.pl msg_xlat.sh net.c partman.c run.c
savenewlabel.c sizemultname.c target.c txtwalk.c txtwalk.h unif.awk
upgrade.c util.c wskbd.c
src/usr.sbin/sysinst/arch/acorn26 [tls-earlyentropy]: Makefile md.c
md.h menus.md.en menus.md.es menus.md.fr menus.md.pl msg.md.de
msg.md.en msg.md.es msg.md.fr msg.md.pl
src/usr.sbin/sysinst/arch/acorn32 [tls-earlyentropy]: Makefile md.c
md.h menus.md.en menus.md.es menus.md.fr menus.md.pl msg.md.de
msg.md.en msg.md.es msg.md.fr msg.md.pl
src/usr.sbin/sysinst/arch/alpha [tls-earlyentropy]: Makefile md.c md.h
menus.md.en menus.md.es menus.md.fr menus.md.pl msg.md.de msg.md.en
msg.md.es msg.md.fr msg.md.pl
src/usr.sbin/sysinst/arch/amd64 [tls-earlyentropy]: Makefile md.c md.h
src/usr.sbin/sysinst/arch/amiga [tls-earlyentropy]: Makefile md.c md.h
menus.md.en menus.md.es menus.md.fr msg.md.de msg.md.en msg.md.es
msg.md.fr
src/usr.sbin/sysinst/arch/arc [tls-earlyentropy]: Makefile md.c md.h
menus.md.en msg.md.en
src/usr.sbin/sysinst/arch/atari [tls-earlyentropy]: Makefile md.c md.h
menus.md.en menus.md.es msg.md.de msg.md.en msg.md.es
src/usr.sbin/sysinst/arch/bebox [tls-earlyentropy]: Makefile md.c md.h
menus.md.en menus.md.es menus.md.fr menus.md.pl msg.md.de msg.md.en
msg.md.es msg.md.fr msg.md.pl
src/usr.sbin/sysinst/arch/cats [tls-earlyentropy]: Makefile md.c md.h
menus.md.en menus.md.es menus.md.fr menus.md.pl msg.md.de msg.md.en
msg.md.es msg.md.fr msg.md.pl
src/usr.sbin/sysinst/arch/cobalt [tls-earlyentropy]: Makefile md.c md.h
menus.md.en msg.md.en
src/usr.sbin/sysinst/arch/dummy [tls-earlyentropy]: Makefile md.c md.h
msg.md.de msg.md.en msg.md.es msg.md.fr msg.md.pl
src/usr.sbin/sysinst/arch/emips [tls-earlyentropy]: Makefile md.c md.h
menus.md.en menus.md.es menus.md.fr menus.md.pl msg.md.de msg.md.en
msg.md.es msg.md.fr msg.md.pl
src/usr.sbin/sysinst/arch/evbarm [tls-earlyentropy]: Makefile md.c md.h
menus.md.en menus.md.es menus.md.fr menus.md.pl msg.md.de msg.md.en
msg.md.es msg.md.fr msg.md.pl
src/usr.sbin/sysinst/arch/evbmips [tls-earlyentropy]: Makefile md.c
md.h menus.md.en menus.md.es menus.md.fr menus.md.pl msg.md.de
msg.md.en msg.md.es msg.md.fr msg.md.pl
src/usr.sbin/sysinst/arch/evbppc [tls-earlyentropy]: Makefile md.c md.h
menus.md.en menus.md.es menus.md.fr menus.md.pl msg.md.de msg.md.en
msg.md.es msg.md.fr msg.md.pl
src/usr.sbin/sysinst/arch/evbsh3 [tls-earlyentropy]: Makefile md.c md.h
menus.md.en menus.md.fr menus.md.pl msg.md.de msg.md.en msg.md.es
msg.md.fr msg.md.pl
src/usr.sbin/sysinst/arch/ews4800mips [tls-earlyentropy]: Makefile md.c
md.h menus.md.en msg.md.en
src/usr.sbin/sysinst/arch/hp300 [tls-earlyentropy]: Makefile md.c md.h
menus.md.en msg.md.en
src/usr.sbin/sysinst/arch/hpcarm [tls-earlyentropy]: Makefile md.c md.h
menus.md.en menus.md.es menus.md.fr menus.md.pl msg.md.de msg.md.en
msg.md.es msg.md.fr msg.md.pl
src/usr.sbin/sysinst/arch/hpcmips [tls-earlyentropy]: Makefile md.c
md.h menus.md.en menus.md.es menus.md.fr menus.md.pl msg.md.de
msg.md.en msg.md.es msg.md.fr msg.md.pl
src/usr.sbin/sysinst/arch/hpcsh [tls-earlyentropy]: Makefile md.c md.h
menus.md.en msg.md.en
src/usr.sbin/sysinst/arch/hppa [tls-earlyentropy]: Makefile md.c md.h
menus.md.en menus.md.es menus.md.fr menus.md.pl msg.md.de msg.md.en
msg.md.es msg.md.fr msg.md.pl
src/usr.sbin/sysinst/arch/i386 [tls-earlyentropy]: Makefile md.c md.h
menus.md msg.md.de msg.md.en msg.md.es msg.md.fr msg.md.pl
src/usr.sbin/sysinst/arch/landisk [tls-earlyentropy]: Makefile md.c
md.h menus.md.en menus.md.es menus.md.fr menus.md.pl msg.md.de
msg.md.en msg.md.es msg.md.fr msg.md.pl
src/usr.sbin/sysinst/arch/luna68k [tls-earlyentropy]: Makefile md.c
md.h menus.md.en msg.md.en
src/usr.sbin/sysinst/arch/mac68k [tls-earlyentropy]: Makefile md.c md.h
menus.md.de menus.md.en menus.md.es menus.md.pl msg.md.

CVS commit: [tls-earlyentropy] src/usr.sbin/timed

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:00:31 UTC 2014

Modified Files:
src/usr.sbin/timed [tls-earlyentropy]: Makefile
src/usr.sbin/timed/SMM.doc/timed [tls-earlyentropy]: Makefile
src/usr.sbin/timed/SMM.doc/timedop [tls-earlyentropy]: Makefile

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.4.84.1 src/usr.sbin/timed/Makefile
cvs rdiff -u -r1.5 -r1.5.72.1 src/usr.sbin/timed/SMM.doc/timed/Makefile
cvs rdiff -u -r1.2 -r1.2.84.1 src/usr.sbin/timed/SMM.doc/timedop/Makefile

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/timed/Makefile
diff -u src/usr.sbin/timed/Makefile:1.4 src/usr.sbin/timed/Makefile:1.4.84.1
--- src/usr.sbin/timed/Makefile:1.4	Sun Dec 21 16:14:41 1997
+++ src/usr.sbin/timed/Makefile	Sun Aug 10 07:00:31 2014
@@ -1,10 +1,7 @@
-#	$NetBSD: Makefile,v 1.4 1997/12/21 16:14:41 christos Exp $
+#	$NetBSD: Makefile,v 1.4.84.1 2014/08/10 07:00:31 tls Exp $
 #	@(#)Makefile	8.1 (Berkeley) 6/6/93
 
 SUBDIR=	timed timedc
-
-.if make(install)
 SUBDIR+= SMM.doc
-.endif
 
 .include 

Index: src/usr.sbin/timed/SMM.doc/timed/Makefile
diff -u src/usr.sbin/timed/SMM.doc/timed/Makefile:1.5 src/usr.sbin/timed/SMM.doc/timed/Makefile:1.5.72.1
--- src/usr.sbin/timed/SMM.doc/timed/Makefile:1.5	Thu Jul 10 10:34:49 2003
+++ src/usr.sbin/timed/SMM.doc/timed/Makefile	Sun Aug 10 07:00:31 2014
@@ -1,13 +1,18 @@
-#	$NetBSD: Makefile,v 1.5 2003/07/10 10:34:49 lukem Exp $
+#	$NetBSD: Makefile,v 1.5.72.1 2014/08/10 07:00:31 tls Exp $
 #
 #	@(#)Makefile	8.2 (Berkeley) 5/11/94
 
-DIR=	smm/12.timed
+SECTION=reference/ref5
+ARTICLE=timed
 SRCS=	timed.ms
+DEPSRCS=time date unused loop # spell.ok?
 MACROS=	-ms
-
-paper.ps: ${SRCS}
-	${TOOL_SOELIM} -I${.CURDIR} ${.ALLSRC} | ${TOOL_TBL} | \
-	${TOOL_ROFF_PS} ${MACROS} > ${.TARGET}
+ROFF_TBL=yes
+EXTRAHTMLFILES=\
+	timed1.png timed2.png timed3.png timed4.png timed5.png \
+	timed6.png timed7.png timed8.png timed9.png timed10.png \
+	timed11.png timed12.png timed13.png timed14.png timed15.png \
+	timed16.png timed17.png timed18.png timed19.png timed20.png \
+	timed21.png timed22.png timed23.png timed24.png
 
 .include 

Index: src/usr.sbin/timed/SMM.doc/timedop/Makefile
diff -u src/usr.sbin/timed/SMM.doc/timedop/Makefile:1.2 src/usr.sbin/timed/SMM.doc/timedop/Makefile:1.2.84.1
--- src/usr.sbin/timed/SMM.doc/timedop/Makefile:1.2	Fri Jan  9 08:11:58 1998
+++ src/usr.sbin/timed/SMM.doc/timedop/Makefile	Sun Aug 10 07:00:31 2014
@@ -1,9 +1,11 @@
-#	$NetBSD: Makefile,v 1.2 1998/01/09 08:11:58 perry Exp $
+#	$NetBSD: Makefile,v 1.2.84.1 2014/08/10 07:00:31 tls Exp $
 #
 #	@(#)Makefile	8.1 (Berkeley) 6/8/93
 
-DIR=	smm/11.timedop
+SECTION=reference/ref8
+ARTICLE=timed
 SRCS=	timed.ms
 MACROS=	-ms
+EXTRAHTMLFILES=timed1.png timed2.png
 
 .include 



CVS commit: [tls-earlyentropy] src/usr.sbin/ndp

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 06:59:59 UTC 2014

Modified Files:
src/usr.sbin/ndp [tls-earlyentropy]: ndp.8 ndp.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.26.2.1 src/usr.sbin/ndp/ndp.8
cvs rdiff -u -r1.42 -r1.42.2.1 src/usr.sbin/ndp/ndp.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/ndp/ndp.8
diff -u src/usr.sbin/ndp/ndp.8:1.26 src/usr.sbin/ndp/ndp.8:1.26.2.1
--- src/usr.sbin/ndp/ndp.8:1.26	Thu Mar 20 13:34:35 2014
+++ src/usr.sbin/ndp/ndp.8	Sun Aug 10 06:59:59 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: ndp.8,v 1.26 2014/03/20 13:34:35 roy Exp $
+.\"	$NetBSD: ndp.8,v 1.26.2.1 2014/08/10 06:59:59 tls Exp $
 .\"	$KAME: ndp.8,v 1.33 2005/10/19 14:57:42 suz Exp $
 .\"
 .\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -28,7 +28,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd March 20, 2014
+.Dd June 5, 2014
 .Dt NDP 8
 .Os
 .\"
@@ -189,6 +189,12 @@ variable is non-0, or the flag
 .Ic override_rtadv
 is on.
 This flag is set to 1 by default.
+.It Ic auto_linklocal
+Specify whether or not to perform automatic link-local address configuration on
+.Ar interface .
+This flag is set by
+.Li net.inet6.ip6.auto_linklocal
+sysctl variable.
 .It Ic override_rtadv
 Specify whether or not to override the
 .Li net.inet6.ip6.accept_rtadv

Index: src/usr.sbin/ndp/ndp.c
diff -u src/usr.sbin/ndp/ndp.c:1.42 src/usr.sbin/ndp/ndp.c:1.42.2.1
--- src/usr.sbin/ndp/ndp.c:1.42	Tue Dec 17 20:26:46 2013
+++ src/usr.sbin/ndp/ndp.c	Sun Aug 10 06:59:59 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: ndp.c,v 1.42 2013/12/17 20:26:46 martin Exp $	*/
+/*	$NetBSD: ndp.c,v 1.42.2.1 2014/08/10 06:59:59 tls Exp $	*/
 /*	$KAME: ndp.c,v 1.121 2005/07/13 11:30:13 keiichi Exp $	*/
 
 /*
@@ -918,6 +918,9 @@ ifinfo(char *ifname, int argc, char **ar
 #ifdef ND6_IFF_OVERRIDE_RTADV
 		SETFLAG("override_rtadv", ND6_IFF_OVERRIDE_RTADV);
 #endif
+#ifdef ND6_IFF_AUTO_LINKLOCAL
+		SETFLAG("auto_linklocal", ND6_IFF_AUTO_LINKLOCAL);
+#endif
 #ifdef ND6_IFF_PREFER_SOURCE
 		SETFLAG("prefer_source", ND6_IFF_PREFER_SOURCE);
 #endif
@@ -996,6 +999,10 @@ ifinfo(char *ifname, int argc, char **ar
 		if ((ND.flags & ND6_IFF_OVERRIDE_RTADV))
 			(void)printf("override_rtadv ");
 #endif
+#ifdef ND6_IFF_AUTO_LINKLOCAL
+		if ((ND.flags & ND6_IFF_AUTO_LINKLOCAL))
+			(void)printf("auto_linklocal ");
+#endif
 #ifdef ND6_IFF_PREFER_SOURCE
 		if ((ND.flags & ND6_IFF_PREFER_SOURCE))
 			(void)printf("prefer_source ");



CVS commit: [tls-earlyentropy] src/usr.sbin/npf

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:00:01 UTC 2014

Modified Files:
src/usr.sbin/npf [tls-earlyentropy]: Makefile
src/usr.sbin/npf/npfctl [tls-earlyentropy]: npf.conf.5 npf_bpf_comp.c
npf_build.c npf_scan.l npf_show.c npfctl.8 npfctl.c npfctl.h
src/usr.sbin/npf/npftest [tls-earlyentropy]: README
src/usr.sbin/npf/npftest/libnpftest [tls-earlyentropy]: npf_bpf_test.c
npf_nat_test.c npf_perf_test.c npf_rule_test.c npf_state_test.c
npf_test_subr.c
Added Files:
src/usr.sbin/npf [tls-earlyentropy]: npf.7

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.4.6.1 src/usr.sbin/npf/Makefile
cvs rdiff -u -r0 -r1.1.2.2 src/usr.sbin/npf/npf.7
cvs rdiff -u -r1.39 -r1.39.2.1 src/usr.sbin/npf/npfctl/npf.conf.5
cvs rdiff -u -r1.4 -r1.4.2.1 src/usr.sbin/npf/npfctl/npf_bpf_comp.c
cvs rdiff -u -r1.36 -r1.36.2.1 src/usr.sbin/npf/npfctl/npf_build.c \
src/usr.sbin/npf/npfctl/npfctl.h
cvs rdiff -u -r1.20 -r1.20.2.1 src/usr.sbin/npf/npfctl/npf_scan.l
cvs rdiff -u -r1.13 -r1.13.2.1 src/usr.sbin/npf/npfctl/npf_show.c
cvs rdiff -u -r1.15 -r1.15.2.1 src/usr.sbin/npf/npfctl/npfctl.8
cvs rdiff -u -r1.40 -r1.40.2.1 src/usr.sbin/npf/npfctl/npfctl.c
cvs rdiff -u -r1.4 -r1.4.6.1 src/usr.sbin/npf/npftest/README
cvs rdiff -u -r1.4 -r1.4.2.1 \
src/usr.sbin/npf/npftest/libnpftest/npf_bpf_test.c
cvs rdiff -u -r1.8 -r1.8.2.1 \
src/usr.sbin/npf/npftest/libnpftest/npf_nat_test.c
cvs rdiff -u -r1.3 -r1.3.2.1 \
src/usr.sbin/npf/npftest/libnpftest/npf_perf_test.c
cvs rdiff -u -r1.10 -r1.10.2.1 \
src/usr.sbin/npf/npftest/libnpftest/npf_rule_test.c
cvs rdiff -u -r1.5 -r1.5.2.1 \
src/usr.sbin/npf/npftest/libnpftest/npf_state_test.c
cvs rdiff -u -r1.9.2.1 -r1.9.2.2 \
src/usr.sbin/npf/npftest/libnpftest/npf_test_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/usr.sbin/npf/Makefile
diff -u src/usr.sbin/npf/Makefile:1.4 src/usr.sbin/npf/Makefile:1.4.6.1
--- src/usr.sbin/npf/Makefile:1.4	Thu Sep 13 21:02:50 2012
+++ src/usr.sbin/npf/Makefile	Sun Aug 10 07:00:01 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2012/09/13 21:02:50 martin Exp $
+# $NetBSD: Makefile,v 1.4.6.1 2014/08/10 07:00:01 tls Exp $
 
 .include 
 
@@ -8,4 +8,7 @@ SUBDIR=		npfctl
 SUBDIR+=	npftest
 .endif
 
+MAN=		npf.7
+
+.include 
 .include 

Index: src/usr.sbin/npf/npfctl/npf.conf.5
diff -u src/usr.sbin/npf/npfctl/npf.conf.5:1.39 src/usr.sbin/npf/npfctl/npf.conf.5:1.39.2.1
--- src/usr.sbin/npf/npfctl/npf.conf.5:1.39	Fri Feb 14 01:52:58 2014
+++ src/usr.sbin/npf/npfctl/npf.conf.5	Sun Aug 10 07:00:01 2014
@@ -1,4 +1,4 @@
-.\"$NetBSD: npf.conf.5,v 1.39 2014/02/14 01:52:58 rmind Exp $
+.\"$NetBSD: npf.conf.5,v 1.39.2.1 2014/08/10 07:00:01 tls Exp $
 .\"
 .\" Copyright (c) 2009-2014 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd February 14, 2014
+.Dd August 2, 2014
 .Dt NPF.CONF 5
 .Os
 .Sh NAME
@@ -155,6 +155,25 @@ block out final pcap-filter "tcp and dst
 .Pp
 Fragments are not selectable since NPF always reassembles packets
 before further processing.
+.Ss Stateful
+Stateful packet inspection is enabled using
+.Cd stateful
+or
+.Cd stateful-ends
+keywords.
+The former creates a state which is uniquely identified by a 5-tuple (source
+and destination IP addresses, port numbers and an interface identifier).
+The latter excludes the interface identifier and must be used with
+precaution.
+In both cases, a full TCP state tracking is performed for TCP connections
+and a limited tracking for message-based protocols (UDP and ICMP).
+.Pp
+By default, a stateful rule implies SYN-only flag check ("flags S/SAFR")
+for the TCP packets.
+It is not advisable to change this behavior; however,
+it can be overridden with the
+.Cd flags
+keyword.
 .Ss Map
 Network Address Translation (NAT) is expressed in a form of segment mapping.
 The translation may be dynamic (stateful) or static (stateless).
@@ -252,7 +271,8 @@ rule-list	= [ rule new-line ] rule-list
 
 npf-filter	= [ "family" family-opt ] [ "proto" protocol [ proto-opts ] ]
 		  ( "all" | filt-opts )
-static-rule	= ( "block" [ block-opts ] | "pass" ) [ "stateful" ]
+static-rule	= ( "block" [ block-opts ] | "pass" )
+		  [ "stateful" | "stateful-ends" ]
 		  [ "in" | out" ] [ "final" ] [ "on" interface ]
 		  ( npf-filter | "pcap-filter" pcap-filter-expr )
 		  [ "apply" proc-name ]
@@ -332,6 +352,7 @@ group default {
 .\" -
 .Sh SEE ALSO
 .Xr bpf 4 ,
+.Xr npf 7 ,
 .Xr pcap-filter 7 ,
 .Xr npfctl 8
 .Sh HISTORY

Index: src/usr.sbin/npf/npfctl/npf_bpf_comp.c
diff -u src/usr.sbin/npf/npfctl/npf_bpf_comp.c:1.4 src/usr.sbin/npf/npfctl/npf_bpf_comp.c:1.4.2.1
--- src/usr.sbin/npf/npfctl/npf_bpf_comp.c:1.4	Sat Mar 15 08:46:01 2014
+++ src/u

CVS commit: [tls-earlyentropy] src/usr.sbin/postinstall

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:00:05 UTC 2014

Modified Files:
src/usr.sbin/postinstall [tls-earlyentropy]: postinstall

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.165 -r1.165.2.1 src/usr.sbin/postinstall/postinstall

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/postinstall/postinstall
diff -u src/usr.sbin/postinstall/postinstall:1.165 src/usr.sbin/postinstall/postinstall:1.165.2.1
--- src/usr.sbin/postinstall/postinstall:1.165	Sat Mar  8 16:36:24 2014
+++ src/usr.sbin/postinstall/postinstall	Sun Aug 10 07:00:04 2014
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.165 2014/03/08 16:36:24 martin Exp $
+# $NetBSD: postinstall,v 1.165.2.1 2014/08/10 07:00:04 tls Exp $
 #
 # Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -58,6 +58,8 @@
 : ${HOST_SH:=sh}
 : ${MAKE:=make}
 : ${PWD_MKDB:=/usr/sbin/pwd_mkdb}
+: ${SED:=sed}
+: ${SORT:=sort}
 : ${STAT:=stat}
 
 #
@@ -110,22 +112,71 @@ mkdtemp()
 #eval "set -- $quotedlist"
 # or like this:
 #eval "\$command $quotedlist \$filename"
+#
 shell_quote()
-{
+{(
 	local result=''
-	local arg
+	local arg qarg
+	LC_COLLATE=C ; export LC_COLLATE # so [a-zA-Z0-9] works in ASCII
 	for arg in "$@" ; do
-		# Append a space if necessary
-		result="${result}${result:+ }"
-		# Convert each embedded ' to '\'',
-		# then insert ' at the beginning of the first line,
-		# and append ' at the end of the last line.
-		result="${result}$(printf "%s\n" "$arg" | \
-			sed -e "s/'/'''/g" -e "1s/^/'/" -e "\$s/\$/'/")"
+		case "${arg}" in
+		'')
+			qarg="''"
+			;;
+		*[!-./a-zA-Z0-9]*)
+			# Convert each embedded ' to '\'',
+			# then insert ' at the beginning of the first line,
+			# and append ' at the end of the last line.
+			# Finally, elide unnecessary '' pairs at the
+			# beginning and end of the result and as part of
+			# '\'''\'' sequences that result from multiple
+			# adjacent quotes in he input.
+			qarg="$(printf "%s\n" "$arg" | \
+			${SED:-sed} -e "s/'/'''/g" \
+-e "1s/^/'/" -e "\$s/\$/'/" \
+-e "1s/^''//" -e "\$s/''\$//" \
+-e "s/'''/'/g"
+)"
+			;;
+		*)
+			# Arg is not the empty string, and does not contain
+			# any unsafe characters.  Leave it unchanged for
+			# readability.
+			qarg="${arg}"
+			;;
+		esac
+		result="${result}${result:+ }${qarg}"
 	done
 	printf "%s\n" "$result"
-}
+)}
 
+# Convert arg $1 to a basic regular expression (as in sed)
+# that will match the arg.  This works by inserting backslashes
+# before characters that are special in basic regular expressions.
+# It also inserts backslashes before the extra characters specified
+# in $2 (which defaults to "/,").
+# XXX: Does not handle embedded newlines.
+# Usage: regex="$(bre_quote "${string}")"
+bre_quote()
+{
+	local arg="$1"
+	local extra="${2-/,}"
+	printf "%s\n" "${arg}" | ${SED} -e 's/[][^$.*\\'"${extra}"']/\\&/g'
+}
+
+# unprefix dir
+#	Remove any dir prefix from a list of paths on stdin,
+#	and write the result to stdout.  Useful for converting
+#	from ${DEST_DIR}/path to /path.
+#
+unprefix()
+{
+	[ $# -eq 1 ] || err 3 "USAGE: unprefix dir"
+	local prefix="${1%/}"
+	prefix="$(bre_quote "${prefix}")"
+
+	${SED} -e "s,^${prefix}/,/,"
+}
 
 # additem item description
 #	Add item to list of supported items to check/fix,
@@ -448,8 +499,8 @@ file_exists_exact()
 
 # obsolete_paths op
 #	Obsolete the list of paths provided on stdin.
-#	Each path is relative to ${DEST_DIR}, and should
-#	be an absolute path or start with `./'.
+#	Each path should start with '/' or './', and
+#	will be interpreted relative to ${DEST_DIR}.
 #
 obsolete_paths()
 {
@@ -561,6 +612,37 @@ function checklib(results, line, regex) 
 	)
 }
 
+# obsolete_stand dir
+#	Prints the names of all obsolete files and subdirs below the
+#	provided dir.  dir should be something like /stand/${MACHINE}.
+#	The input dir and all output paths are interpreted
+#	relative to ${DEST_DIR}.
+#
+#	Assumes that the numerically largest subdir is current, and all
+#	others are obsolete.
+#
+obsolete_stand()
+{
+	[ $# -eq 1 ] || err 3 "USAGE: obsolete_stand dir"
+	local dir="$1"
+	local subdir
+
+	if ! [ -d "${DEST_DIR}/${dir}" ]; then
+		msg "${DEST_DIR}${dir} doesn't exist; can't check for obsolete files"
+		return 1
+	fi
+
+	( cd "${DEST_DIR}${dir}" && ls -1d [0-9]*[0-9]/. ) \
+	| ${GREP} -v '[^0-9./]' \
+	| sort -t. -r -k1n -k2n -k3n \
+	| tail -n +2 \
+	| while read subdir ; do
+		subdir="${subdir%/.}"
+		find "${DEST_DIR}/${dir#/}/${subdir}" -depth -print
+	done \
+	| unprefix "${DEST_DIR}"
+}
+
 # modify_file op srcfile scratchfile awkprog
 #	Apply awkprog to srcfile sending output to scratchfile, and
 #	if appropriate replace srcfile with scratchfile.
@@ -718,9 +800,9 @@ do_ddbonpanic()
 			result=1
 		else
 			echo >> "${DEST_DIR}/etc/sysctl.conf"
-			sed < "${SRC_DIR}/etc/sysctl.conf" 

CVS commit: [tls-earlyentropy] src/usr.sbin/puffs/mount_psshfs

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:00:09 UTC 2014

Modified Files:
src/usr.sbin/puffs/mount_psshfs [tls-earlyentropy]: mount_psshfs.8

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.26.6.1 src/usr.sbin/puffs/mount_psshfs/mount_psshfs.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/puffs/mount_psshfs/mount_psshfs.8
diff -u src/usr.sbin/puffs/mount_psshfs/mount_psshfs.8:1.26 src/usr.sbin/puffs/mount_psshfs/mount_psshfs.8:1.26.6.1
--- src/usr.sbin/puffs/mount_psshfs/mount_psshfs.8:1.26	Tue Dec 25 20:31:03 2012
+++ src/usr.sbin/puffs/mount_psshfs/mount_psshfs.8	Sun Aug 10 07:00:09 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: mount_psshfs.8,v 1.26 2012/12/25 20:31:03 reed Exp $
+.\"	$NetBSD: mount_psshfs.8,v 1.26.6.1 2014/08/10 07:00:09 tls Exp $
 .\"
 .\" Copyright (c) 2007-2009 Antti Kantee.  All rights reserved.
 .\"
@@ -198,7 +198,7 @@ Do not expect the file system to behave 
 .Pp
 Depending on if the server supports the
 .Xr sftp 1
-stavfs protocol extension,
+statvfs protocol extension,
 free disk space may be displayed for the mount by
 .Xr df 1 .
 This information reflects the status at the server's mountpoint



CVS commit: [tls-earlyentropy] src/usr.sbin/mopd

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 06:59:53 UTC 2014

Modified Files:
src/usr.sbin/mopd [tls-earlyentropy]: Makefile.inc
src/usr.sbin/mopd/common [tls-earlyentropy]: Makefile log.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.10.52.1 src/usr.sbin/mopd/Makefile.inc
cvs rdiff -u -r1.19 -r1.19.8.1 src/usr.sbin/mopd/common/Makefile
cvs rdiff -u -r1.2 -r1.2.38.1 src/usr.sbin/mopd/common/log.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/mopd/Makefile.inc
diff -u src/usr.sbin/mopd/Makefile.inc:1.10 src/usr.sbin/mopd/Makefile.inc:1.10.52.1
--- src/usr.sbin/mopd/Makefile.inc:1.10	Mon May 28 12:06:37 2007
+++ src/usr.sbin/mopd/Makefile.inc	Sun Aug 10 06:59:53 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.10 2007/05/28 12:06:37 tls Exp $
+#	$NetBSD: Makefile.inc,v 1.10.52.1 2014/08/10 06:59:53 tls Exp $
 
 .include 
 
@@ -6,8 +6,8 @@ USE_FORT?=yes	# network server
 
 LIBCOMMON != cd ${.CURDIR}/../common && ${PRINTOBJDIR}
 CPPFLAGS+=-I${.CURDIR}/../common
-DPADD+=	${LIBKVM} ${LIBCOMMON}/libcommon.a
-LDADD+=	-lkvm -L${LIBCOMMON} -lcommon
+DPADD+=	${LIBCOMMON}/libcommon.a
+LDADD+=	-L${LIBCOMMON} -lcommon
 
 .if exists(${.CURDIR}/../../Makefile.inc)
 .include "${.CURDIR}/../../Makefile.inc"

Index: src/usr.sbin/mopd/common/Makefile
diff -u src/usr.sbin/mopd/common/Makefile:1.19 src/usr.sbin/mopd/common/Makefile:1.19.8.1
--- src/usr.sbin/mopd/common/Makefile:1.19	Fri Aug 10 12:10:29 2012
+++ src/usr.sbin/mopd/common/Makefile	Sun Aug 10 06:59:53 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.19 2012/08/10 12:10:29 joerg Exp $
+#	$NetBSD: Makefile,v 1.19.8.1 2014/08/10 06:59:53 tls Exp $
 
 LIBISPRIVATE=	yes
 
@@ -21,4 +21,3 @@ version.c: VERSION
 .include 
 
 COPTS.print.c+=	-Wno-pointer-sign
-COPTS.log.c+=	-Wno-format-nonliteral

Index: src/usr.sbin/mopd/common/log.c
diff -u src/usr.sbin/mopd/common/log.c:1.2 src/usr.sbin/mopd/common/log.c:1.2.38.1
--- src/usr.sbin/mopd/common/log.c:1.2	Mon Apr 28 20:24:17 2008
+++ src/usr.sbin/mopd/common/log.c	Sun Aug 10 06:59:53 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: log.c,v 1.2 2008/04/28 20:24:17 martin Exp $	*/
+/*	$NetBSD: log.c,v 1.2.38.1 2014/08/10 06:59:53 tls Exp $	*/
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: log.c,v 1.2 2008/04/28 20:24:17 martin Exp $");
+__RCSID("$NetBSD: log.c,v 1.2.38.1 2014/08/10 06:59:53 tls Exp $");
 #endif
 
 #include 
@@ -47,13 +47,15 @@ mopLogErr(const char *fmt, ...)
 {
 	va_list ap;
 	char buf[1024];
+	int error;
 
 	va_start(ap, fmt);
 	if (mopInteractive)
 		verr(1, fmt, ap);
 	else {
-		snprintf(buf, sizeof(buf), "%s: %%m", buf);
-		vsyslog(LOG_ERR, buf, ap);
+		error = errno;
+		vsnprintf(buf, sizeof(buf), fmt, ap);
+		syslog(LOG_ERR, "%s: %s", buf, strerror(error));
 	}
 	va_end(ap);
 	exit(1);
@@ -64,13 +66,15 @@ mopLogWarn(const char *fmt, ...)
 {
 	va_list ap;
 	char buf[1024];
+	int error;
 
 	va_start(ap, fmt);
 	if (mopInteractive)
 		vwarn(fmt, ap);
 	else {
-		snprintf(buf, sizeof(buf), "%s: %%m", buf);
-		vsyslog(LOG_WARNING, buf, ap);
+		error = errno;
+		vsnprintf(buf, sizeof(buf), fmt, ap);
+		syslog(LOG_WARNING, "%s: %s", buf, strerror(error));
 	}
 	va_end(ap);
 }



CVS commit: [tls-earlyentropy] src/usr.sbin/schedctl

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:00:12 UTC 2014

Modified Files:
src/usr.sbin/schedctl [tls-earlyentropy]: schedctl.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.15.18.1 src/usr.sbin/schedctl/schedctl.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/schedctl/schedctl.c
diff -u src/usr.sbin/schedctl/schedctl.c:1.15 src/usr.sbin/schedctl/schedctl.c:1.15.18.1
--- src/usr.sbin/schedctl/schedctl.c:1.15	Wed Aug 31 13:32:41 2011
+++ src/usr.sbin/schedctl/schedctl.c	Sun Aug 10 07:00:12 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: schedctl.c,v 1.15 2011/08/31 13:32:41 joerg Exp $	*/
+/*	$NetBSD: schedctl.c,v 1.15.18.1 2014/08/10 07:00:12 tls Exp $	*/
 
 /*
  * Copyright (c) 2008, Mindaugas Rasiukevicius 
@@ -33,9 +33,10 @@
 #include 
 
 #ifndef lint
-__RCSID("$NetBSD: schedctl.c,v 1.15 2011/08/31 13:32:41 joerg Exp $");
+__RCSID("$NetBSD: schedctl.c,v 1.15.18.1 2014/08/10 07:00:12 tls Exp $");
 #endif
 
+#include 
 #include 
 #include 
 #include 
@@ -60,7 +61,7 @@ static const char *class_str[] = {
 static void	sched_set(pid_t, lwpid_t, int, struct sched_param *, cpuset_t *);
 static void	thread_info(pid_t, lwpid_t);
 static cpuset_t	*makecpuset(char *);
-static char	*showcpuset(cpuset_t *);
+static void	printcpuset(cpuset_t *);
 __dead static void	usage(void);
 
 static u_int	ncpu;
@@ -205,7 +206,6 @@ thread_info(pid_t pid, lwpid_t lid)
 {
 	struct sched_param sp;
 	cpuset_t *cpuset;
-	char *cpus;
 	int error, policy;
 
 	cpuset = cpuset_create();
@@ -224,9 +224,9 @@ thread_info(pid_t pid, lwpid_t lid)
 	printf("  Priority: %d\n", sp.sched_priority);
 	printf("  Class:%s\n", class_str[policy]);
 
-	cpus = showcpuset(cpuset);
-	printf("  Affinity (CPUs):  %s\n", cpus);
-	free(cpus);
+	printf("  Affinity (CPUs):  ");
+	printcpuset(cpuset);
+	printf("\n");
 
 	cpuset_destroy(cpuset);
 }
@@ -280,31 +280,26 @@ makecpuset(char *str)
 	return cpuset;
 }
 
-static char *
-showcpuset(cpuset_t *cpuset)
+static void
+printcpuset(cpuset_t *cpuset)
 {
-	char *buf;
-	size_t size;
 	unsigned int i;
+	bool seen;
 
-	size = 3 * ncpu;	/* XXX */
-	buf = malloc(size + 1);
-	if (buf == NULL)
-		err(EXIT_FAILURE, "malloc");
-	memset(buf, '\0', size + 1);
-
-	for (i = 0; i < ncpu; i++)
-		if (cpuset_isset(i, cpuset))
-			snprintf(buf, size, "%s%d,", buf, i);
-
-	i = strlen(buf);
-	if (i != 0) {
-		buf[i - 1] = '\0';
-	} else {
-		strncpy(buf, "", size);
+	seen = false;
+	for (i = 0; i < ncpu; i++) {
+		if (cpuset_isset(i, cpuset)) {
+			if (seen) {
+putchar(',');
+			}
+			printf("%d", i);
+			seen = true;
+		}
 	}
 
-	return buf;
+	if (!seen) {
+		printf("");
+	}
 }
 
 static void



CVS commit: [tls-earlyentropy] src/usr.sbin/services_mkdb

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:00:21 UTC 2014

Modified Files:
src/usr.sbin/services_mkdb [tls-earlyentropy]: uniq.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.5.22.1 src/usr.sbin/services_mkdb/uniq.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/services_mkdb/uniq.c
diff -u src/usr.sbin/services_mkdb/uniq.c:1.5 src/usr.sbin/services_mkdb/uniq.c:1.5.22.1
--- src/usr.sbin/services_mkdb/uniq.c:1.5	Sun Apr 25 00:54:46 2010
+++ src/usr.sbin/services_mkdb/uniq.c	Sun Aug 10 07:00:21 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: uniq.c,v 1.5 2010/04/25 00:54:46 joerg Exp $	*/
+/*	$NetBSD: uniq.c,v 1.5.22.1 2014/08/10 07:00:21 tls Exp $	*/
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include 
-__RCSID("$NetBSD: uniq.c,v 1.5 2010/04/25 00:54:46 joerg Exp $");
+__RCSID("$NetBSD: uniq.c,v 1.5.22.1 2014/08/10 07:00:21 tls Exp $");
 
 #include 
 #include 
@@ -96,6 +96,7 @@ uniq(const char *fname)
 			break;
 		case -1:
 			err(1, "put");
+			/*NOTREACHED*/
 		default:
 			abort();
 			break;



CVS commit: [tls-earlyentropy] src/usr.sbin/pstat

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 07:00:07 UTC 2014

Modified Files:
src/usr.sbin/pstat [tls-earlyentropy]: pstat.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.123 -r1.123.2.1 src/usr.sbin/pstat/pstat.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/pstat/pstat.c
diff -u src/usr.sbin/pstat/pstat.c:1.123 src/usr.sbin/pstat/pstat.c:1.123.2.1
--- src/usr.sbin/pstat/pstat.c:1.123	Mon Mar 24 13:42:41 2014
+++ src/usr.sbin/pstat/pstat.c	Sun Aug 10 07:00:07 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: pstat.c,v 1.123 2014/03/24 13:42:41 hannken Exp $	*/
+/*	$NetBSD: pstat.c,v 1.123.2.1 2014/08/10 07:00:07 tls Exp $	*/
 
 /*-
  * Copyright (c) 1980, 1991, 1993, 1994
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
 #if 0
 static char sccsid[] = "@(#)pstat.c	8.16 (Berkeley) 5/9/95";
 #else
-__RCSID("$NetBSD: pstat.c,v 1.123 2014/03/24 13:42:41 hannken Exp $");
+__RCSID("$NetBSD: pstat.c,v 1.123.2.1 2014/08/10 07:00:07 tls Exp $");
 #endif
 #endif /* not lint */
 
@@ -330,6 +330,9 @@ vnodemode(void)
 			maddr = vp->v_mount;
 			mount_print(mp);
 			vnode_header();
+			/*
+			 * XXX do this in a more fs-independent way
+			 */
 			if (FSTYPE_IS(mp, MOUNT_FFS) ||
 			FSTYPE_IS(mp, MOUNT_MFS)) {
 ufs_header();
@@ -455,8 +458,6 @@ const struct flagbit_desc ufs_flags[] = 
 	{ IN_ACCESSED,	'a' },
 	{ IN_SHLOCK,	'S' },
 	{ IN_EXLOCK,	'E' },
-	{ IN_CLEANING,	'c' },
-	{ IN_ADIROP,	'D' },
 	{ IN_SPACECOUNTED, 's' },
 	{ 0,		'\0' },
 };



CVS commit: [tls-earlyentropy] src/usr.sbin/makefs

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 06:59:43 UTC 2014

Modified Files:
src/usr.sbin/makefs/cd9660 [tls-earlyentropy]: iso9660_rrip.c
src/usr.sbin/makefs/msdos [tls-earlyentropy]: msdosfs_vfsops.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.13.2.1 src/usr.sbin/makefs/cd9660/iso9660_rrip.c
cvs rdiff -u -r1.7 -r1.7.8.1 src/usr.sbin/makefs/msdos/msdosfs_vfsops.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/makefs/cd9660/iso9660_rrip.c
diff -u src/usr.sbin/makefs/cd9660/iso9660_rrip.c:1.13 src/usr.sbin/makefs/cd9660/iso9660_rrip.c:1.13.2.1
--- src/usr.sbin/makefs/cd9660/iso9660_rrip.c:1.13	Tue Jul 30 16:02:23 2013
+++ src/usr.sbin/makefs/cd9660/iso9660_rrip.c	Sun Aug 10 06:59:43 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: iso9660_rrip.c,v 1.13 2013/07/30 16:02:23 reinoud Exp $	*/
+/*	$NetBSD: iso9660_rrip.c,v 1.13.2.1 2014/08/10 06:59:43 tls Exp $	*/
 
 /*
  * Copyright (c) 2005 Daniel Watt, Walter Deignan, Ryan Gabrys, Alan
@@ -44,7 +44,7 @@
 
 #include 
 #if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: iso9660_rrip.c,v 1.13 2013/07/30 16:02:23 reinoud Exp $");
+__RCSID("$NetBSD: iso9660_rrip.c,v 1.13.2.1 2014/08/10 06:59:43 tls Exp $");
 #endif  /* !__lint */
 
 static void cd9660_rrip_initialize_inode(cd9660node *);
@@ -657,13 +657,14 @@ cd9660node_rrip_pn(struct ISO_SUSP_ATTRI
 	pn_field->attr.rr_entry.PN.h.length[0] = 20;
 	pn_field->attr.rr_entry.PN.h.version[0] = 1;
 
-	if (sizeof (fnode->inode->st.st_dev) > 32)
-		cd9660_bothendian_dword((uint64_t)fnode->inode->st.st_dev >> 32,
+	if (sizeof (fnode->inode->st.st_rdev) > 4)
+		cd9660_bothendian_dword(
+		(uint64_t)fnode->inode->st.st_rdev >> 32,
 		pn_field->attr.rr_entry.PN.high);
 	else
 		cd9660_bothendian_dword(0, pn_field->attr.rr_entry.PN.high);
 
-	cd9660_bothendian_dword(fnode->inode->st.st_dev & 0x,
+	cd9660_bothendian_dword(fnode->inode->st.st_rdev & 0x,
 		pn_field->attr.rr_entry.PN.low);
 	return 1;
 }

Index: src/usr.sbin/makefs/msdos/msdosfs_vfsops.c
diff -u src/usr.sbin/makefs/msdos/msdosfs_vfsops.c:1.7 src/usr.sbin/makefs/msdos/msdosfs_vfsops.c:1.7.8.1
--- src/usr.sbin/makefs/msdos/msdosfs_vfsops.c:1.7	Wed Jan 30 19:19:19 2013
+++ src/usr.sbin/makefs/msdos/msdosfs_vfsops.c	Sun Aug 10 06:59:43 2014
@@ -50,7 +50,7 @@
 #endif
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.7 2013/01/30 19:19:19 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.7.8.1 2014/08/10 06:59:43 tls Exp $");
 
 #include 
 
@@ -407,7 +407,7 @@ error_exit:
 		free(pmp);
 	}
 	errno = error;
-	return pmp;
+	return NULL;
 }
 
 int



CVS commit: [tls-earlyentropy] src/usr.sbin/mlxctl

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 06:59:51 UTC 2014

Modified Files:
src/usr.sbin/mlxctl [tls-earlyentropy]: Makefile dklist.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.3.18.1 src/usr.sbin/mlxctl/Makefile
cvs rdiff -u -r1.9 -r1.9.22.1 src/usr.sbin/mlxctl/dklist.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/mlxctl/Makefile
diff -u src/usr.sbin/mlxctl/Makefile:1.3 src/usr.sbin/mlxctl/Makefile:1.3.18.1
--- src/usr.sbin/mlxctl/Makefile:1.3	Sun Aug 14 17:57:44 2011
+++ src/usr.sbin/mlxctl/Makefile	Sun Aug 10 06:59:51 2014
@@ -1,10 +1,10 @@
-#	$NetBSD: Makefile,v 1.3 2011/08/14 17:57:44 christos Exp $
+#	$NetBSD: Makefile,v 1.3.18.1 2014/08/10 06:59:51 tls Exp $
 
 PROG=	mlxctl
 SRCS=	cmds.c config.c dklist.c main.c util.c
 MAN=	mlxctl.8
 
-LDADD=	-lkvm
-DPADD=	${LIBKVM}
+LDADD=	-lutil
+DPADD=	${LIButil}
 
 .include 

Index: src/usr.sbin/mlxctl/dklist.c
diff -u src/usr.sbin/mlxctl/dklist.c:1.9 src/usr.sbin/mlxctl/dklist.c:1.9.22.1
--- src/usr.sbin/mlxctl/dklist.c:1.9	Fri Apr 17 04:03:39 2009
+++ src/usr.sbin/mlxctl/dklist.c	Sun Aug 10 06:59:51 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: dklist.c,v 1.9 2009/04/17 04:03:39 lukem Exp $	*/
+/*	$NetBSD: dklist.c,v 1.9.22.1 2014/08/10 06:59:51 tls Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -63,53 +63,32 @@
 
 #ifndef lint
 #include 
-__RCSID("$NetBSD: dklist.c,v 1.9 2009/04/17 04:03:39 lukem Exp $");
+__RCSID("$NetBSD: dklist.c,v 1.9.22.1 2014/08/10 06:59:51 tls Exp $");
 #endif /* not lint */
 
 #include 
-#include 
+#include 
 #include 
+#include 
 
 #include 
 #include 
 
+#include 
 #include 
+#include 
 #include 
-#include 
 #include 
-#include 
 #include 
 #include 
 #include 
-#include 
 #include 
+#include 
 
 #include "extern.h"
 
 static SIMPLEQ_HEAD(, mlx_disk) mlx_disks;
 
-static struct nlist namelist[] = {
-#define X_DISK_COUNT	0
-	{ "_iostat_count", 0, 0, 0, 0 },	/* number of disks */
-#define X_DISKLIST	1
-	{ "_iostatlist", 0, 0, 0, 0 },	/* TAILQ of disks */
-	{ NULL, 0, 0, 0, 0 },
-};
-
-#define	KVM_ERROR(_string) {		\
-	warnx("%s", (_string));		\
-	errx(1, "%s", kvm_geterr(kd));	\
-}
-
-/*
- * Dereference the namelist pointer `v' and fill in the local copy 
- * 'p' which is of size 's'.
- */
-#define deref_nl(kd, v, p, s)	\
-deref_kptr(kd, (void *)namelist[(v)].n_value, (p), (s));
-
-static void	deref_kptr(kvm_t *, void *, void *, size_t);
-
 void
 mlx_disk_init(void)
 {
@@ -170,59 +149,20 @@ mlx_disk_add(const char *name)
 void
 mlx_disk_add_all(void)
 {
-	struct iostatlist_head iostat_head;
-	struct io_stats cur_drive, *drv;
-char errbuf[_POSIX2_LINE_MAX];
-	char buf[12];
-	int i, ndrives;
-	kvm_t *kd;
-
-	/* Open the kernel. */
-if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf)) == NULL)
-		errx(1, "kvm_openfiles: %s", errbuf);
-
-	/* Obtain the namelist symbols from the kernel. */
-	if (kvm_nlist(kd, namelist))
-		KVM_ERROR("kvm_nlist failed to read symbols.");
-
-	/* Get the number of attached drives. */
-	deref_nl(kd, X_DISK_COUNT, &ndrives, sizeof(ndrives));
-
-	if (ndrives < 0)
-		errx(EXIT_FAILURE, "invalid _disk_count %d.", ndrives);
-	if (ndrives == 0)
-		errx(EXIT_FAILURE, "no drives attached.");
+	struct io_sysctl *data;
+	size_t i, len;
+	static const int mib[3] = { CTL_HW, HW_IOSTATS, sizeof(*data) };
 
-	/* Get a pointer to the first disk. */
-	deref_nl(kd, X_DISKLIST, &iostat_head, sizeof(iostat_head));
-	drv = TAILQ_FIRST(&iostat_head);
-
-	/* Try to add each disk to the list. */
-	for (i = 0; i < ndrives; i++) {
-		deref_kptr(kd, drv, &cur_drive, sizeof(cur_drive));
-		deref_kptr(kd, cur_drive.io_name, buf, sizeof(buf));
-		if (cur_drive.io_type == IOSTAT_DISK)
-			mlx_disk_add0(buf);
-		drv = TAILQ_NEXT(&cur_drive, io_link);
-	}
-
-	kvm_close(kd);
-}
+	data = asysctl(mib, __arraycount(mib), &len);
+	len /= sizeof(*data);
 
-/*
- * Dereference the kernel pointer `kptr' and fill in the local copy pointed
- * to by `ptr'.  The storage space must be pre-allocated, and the size of
- * the copy passed in `len'.
- */
-static void
-deref_kptr(kvm_t *kd, void *kptr, void *ptr, size_t len)
-{
-	char buf[128];
+	if (data == NULL || len == 0)
+		errx(EXIT_FAILURE, "no drives attached.");
 
-	if ((size_t)kvm_read(kd, (u_long)kptr, (char *)ptr, len) != len) {
-		memset(buf, 0, sizeof(buf));
-		snprintf(buf, sizeof buf, "can't dereference kptr 0x%lx",
-		(u_long)kptr);
-		KVM_ERROR(buf);
+	for (i = 0; i < len; ++i) {
+		if (data[i].type == IOSTAT_DISK)
+			mlx_disk_add0(data[i].name);
 	}
+
+	free(data);
 }



CVS commit: [tls-earlyentropy] src/usr.sbin/lpr

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 06:59:40 UTC 2014

Modified Files:
src/usr.sbin/lpr [tls-earlyentropy]: Makefile
src/usr.sbin/lpr/SMM.doc [tls-earlyentropy]: Makefile

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.10.74.1 src/usr.sbin/lpr/Makefile
cvs rdiff -u -r1.5 -r1.5.72.1 src/usr.sbin/lpr/SMM.doc/Makefile

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/lpr/Makefile
diff -u src/usr.sbin/lpr/Makefile:1.10 src/usr.sbin/lpr/Makefile:1.10.74.1
--- src/usr.sbin/lpr/Makefile:1.10	Tue Jan  9 03:13:42 2001
+++ src/usr.sbin/lpr/Makefile	Sun Aug 10 06:59:40 2014
@@ -1,10 +1,7 @@
-#	$NetBSD: Makefile,v 1.10 2001/01/09 03:13:42 lukem Exp $
+#	$NetBSD: Makefile,v 1.10.74.1 2014/08/10 06:59:40 tls Exp $
 #	from: @(#)Makefile	8.1 (Berkeley) 6/6/93
 
 SUBDIR=	common_source .WAIT lp lpc lpd lpq lpr lprm lptest pac filters
-
-.if make(install)
 SUBDIR+= SMM.doc
-.endif
 
 .include 

Index: src/usr.sbin/lpr/SMM.doc/Makefile
diff -u src/usr.sbin/lpr/SMM.doc/Makefile:1.5 src/usr.sbin/lpr/SMM.doc/Makefile:1.5.72.1
--- src/usr.sbin/lpr/SMM.doc/Makefile:1.5	Thu Jul 10 10:34:48 2003
+++ src/usr.sbin/lpr/SMM.doc/Makefile	Sun Aug 10 06:59:40 2014
@@ -1,12 +1,11 @@
-#	$NetBSD: Makefile,v 1.5 2003/07/10 10:34:48 lukem Exp $
+#	$NetBSD: Makefile,v 1.5.72.1 2014/08/10 06:59:40 tls Exp $
 #	@(#)Makefile	8.1 (Berkeley) 6/8/93
 
-DIR=	smm/07.lpd
+SECTION=reference/ref8
+ARTICLE=lpd
 SRCS=	0.t 1.t 2.t 3.t 4.t 5.t 6.t 7.t
 MACROS=	-ms
-
-paper.ps: ${SRCS}
-	${TOOL_SOELIM} -I${.CURDIR} ${.ALLSRC} | ${TOOL_TBL} | \
-	${TOOL_ROFF_PS} ${MACROS} > ${.TARGET}
+ROFF_TBL=yes
+EXTRAHTMLFILES=lpd1.png lpd2.png lpd3.png
 
 .include 



CVS commit: [tls-earlyentropy] src/usr.sbin/makemandb

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 06:59:45 UTC 2014

Modified Files:
src/usr.sbin/makemandb [tls-earlyentropy]: apropos-utils.c makemandb.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.15.4.1 src/usr.sbin/makemandb/apropos-utils.c
cvs rdiff -u -r1.22 -r1.22.2.1 src/usr.sbin/makemandb/makemandb.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/makemandb/apropos-utils.c
diff -u src/usr.sbin/makemandb/apropos-utils.c:1.15 src/usr.sbin/makemandb/apropos-utils.c:1.15.4.1
--- src/usr.sbin/makemandb/apropos-utils.c:1.15	Tue Apr  2 17:16:50 2013
+++ src/usr.sbin/makemandb/apropos-utils.c	Sun Aug 10 06:59:45 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: apropos-utils.c,v 1.15 2013/04/02 17:16:50 christos Exp $	*/
+/*	$NetBSD: apropos-utils.c,v 1.15.4.1 2014/08/10 06:59:45 tls Exp $	*/
 /*-
  * Copyright (c) 2011 Abhinav Upadhyay 
  * All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include 
-__RCSID("$NetBSD: apropos-utils.c,v 1.15 2013/04/02 17:16:50 christos Exp $");
+__RCSID("$NetBSD: apropos-utils.c,v 1.15.4.1 2014/08/10 06:59:45 tls Exp $");
 
 #include 
 #include 
@@ -704,9 +704,9 @@ callback_html(void *data, const char *se
 			break;
 		}
 	}
-	qsnippet[++i] = 0;
+	qsnippet[i] = 0;
 	(*callback)(orig_data->data, section, name, name_desc,
-		(const char *)qsnippet,	qsnippet_length);
+		(const char *)qsnippet,	strlen(qsnippet));
 	free(qsnippet);
 	return 0;
 }

Index: src/usr.sbin/makemandb/makemandb.c
diff -u src/usr.sbin/makemandb/makemandb.c:1.22 src/usr.sbin/makemandb/makemandb.c:1.22.2.1
--- src/usr.sbin/makemandb/makemandb.c:1.22	Mon Feb 10 00:23:36 2014
+++ src/usr.sbin/makemandb/makemandb.c	Sun Aug 10 06:59:45 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: makemandb.c,v 1.22 2014/02/10 00:23:36 chs Exp $	*/
+/*	$NetBSD: makemandb.c,v 1.22.2.1 2014/08/10 06:59:45 tls Exp $	*/
 /*
  * Copyright (c) 2011 Abhinav Upadhyay 
  * Copyright (c) 2011 Kristaps Dzonsons 
@@ -17,7 +17,7 @@
  */
 
 #include 
-__RCSID("$NetBSD: makemandb.c,v 1.22 2014/02/10 00:23:36 chs Exp $");
+__RCSID("$NetBSD: makemandb.c,v 1.22.2.1 2014/08/10 06:59:45 tls Exp $");
 
 #include 
 #include 
@@ -124,6 +124,7 @@ static void update_db(sqlite3 *, struct 
 __dead static void usage(void);
 static void optimize(sqlite3 *);
 static char *parse_escape(const char *);
+static void replace_hyph(char *);
 static makemandb_flags mflags = { .verbosity = 1 };
 
 typedef	void (*pman_nf)(const struct man_node *n, mandb_rec *);
@@ -978,6 +979,7 @@ pmdoc_Nd(const struct mdoc_node *n, mand
 	 */
 	char *buf = NULL;
 	char *temp;
+	char *nd_text;
 
 	if (n == NULL)
 		return;
@@ -995,7 +997,10 @@ pmdoc_Nd(const struct mdoc_node *n, mand
 			free(buf);
 			free(temp);
 		} else {
-			concat(&rec->name_desc, n->string);
+			nd_text = estrdup(n->string);
+			replace_hyph(nd_text);
+			concat(&rec->name_desc, nd_text);
+			free(nd_text);
 		}
 		rec->xr_found = 0;
 	} else if (mdocs[n->tok] == pmdoc_Xr) {
@@ -1713,7 +1718,7 @@ insert_into_db(sqlite3 *db, mandb_rec *r
 
 	rc = sqlite3_step(stmt);
 	sqlite3_finalize(stmt);
-	if (rc == SQLITE_CONSTRAINT) {
+	if (rc == SQLITE_CONSTRAINT_UNIQUE) {
 		/* The *most* probable reason for reaching here is that
 		 * the UNIQUE contraint on the file column of the mandb_meta
 		 * table was violated.
@@ -2009,6 +2014,10 @@ replace_hyph(char *str)
 	char *iter = str;
 	while ((iter = strchr(iter, ASCII_HYPH)) != NULL)
 		*iter = '-';
+
+	iter = str;
+	while ((iter = strchr(iter, ASCII_NBRSP)) != NULL)
+		*iter = '-';
 }
 
 static char *



CVS commit: [tls-earlyentropy] src/usr.sbin/ifmcstat

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 06:59:31 UTC 2014

Modified Files:
src/usr.sbin/ifmcstat [tls-earlyentropy]: Makefile ifmcstat.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.3.72.1 src/usr.sbin/ifmcstat/Makefile
cvs rdiff -u -r1.12 -r1.12.2.1 src/usr.sbin/ifmcstat/ifmcstat.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/ifmcstat/Makefile
diff -u src/usr.sbin/ifmcstat/Makefile:1.3 src/usr.sbin/ifmcstat/Makefile:1.3.72.1
--- src/usr.sbin/ifmcstat/Makefile:1.3	Fri Aug  2 03:58:10 2002
+++ src/usr.sbin/ifmcstat/Makefile	Sun Aug 10 06:59:31 2014
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.3 2002/08/02 03:58:10 simonb Exp $
+# $NetBSD: Makefile,v 1.3.72.1 2014/08/10 06:59:31 tls Exp $
 #	@(#)Makefile	8.1 (Berkeley) 6/5/93
 
 PROG=	ifmcstat
 MAN=	ifmcstat.8
 
-LDADD=	-lkvm
-DPADD=	${LIBKVM}
+LDADD+=	-lutil
+DPADD+=	${LIBUTIL}
 
 CPPFLAGS+=	-DINET6
 

Index: src/usr.sbin/ifmcstat/ifmcstat.c
diff -u src/usr.sbin/ifmcstat/ifmcstat.c:1.12 src/usr.sbin/ifmcstat/ifmcstat.c:1.12.2.1
--- src/usr.sbin/ifmcstat/ifmcstat.c:1.12	Sat Oct 19 17:16:25 2013
+++ src/usr.sbin/ifmcstat/ifmcstat.c	Sun Aug 10 06:59:31 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: ifmcstat.c,v 1.12 2013/10/19 17:16:25 christos Exp $	*/
+/*	$NetBSD: ifmcstat.c,v 1.12.2.1 2014/08/10 06:59:31 tls Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -28,7 +28,11 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  */
+#include 
+__RCSID("$NetBSD: ifmcstat.c,v 1.12.2.1 2014/08/10 06:59:31 tls Exp $");
 
+#include 
+#include 
 #include 
 #include 
 #include 
@@ -36,77 +40,27 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 #include 
+#include 
 #include 
-#if defined(__FreeBSD__) && __FreeBSD__ >= 3
-# include 
-#endif
 #include 
 #include 
 #include 
-#ifndef __NetBSD__
-# ifdef	__FreeBSD__
-#  define	KERNEL
-# endif
-# include 
-# ifdef	__FreeBSD__
-#  undef	KERNEL
-# endif
-#else
-# include 
-#endif
+#include 
 #include 
 #include 
 
 #include 
 
-kvm_t	*kvmd;
+static const char *inet6_n2a(void *);
+static void print_ether_mcast(u_short);
+static void print_inet6_mcast(u_short, const char *);
 
-struct	nlist nl[] = {
-#define	N_IFNET	0
-	{ "_ifnet", 0, 0, 0, 0 },
-#if !(defined(__FreeBSD__) && __FreeBSD__ >= 3)
-#define N_IN6_MK 1
-	{ "_in6_mk", 0, 0, 0, 0 },
-#endif
-	{ "", 0, 0, 0, 0 },
-};
-
-const char *inet6_n2a __P((struct in6_addr *));
-int main __P((void));
-char *ifname __P((struct ifnet *));
-void kread __P((u_long, void *, int));
-#if !(defined(__FreeBSD__) && __FreeBSD__ >= 3)
-void acmc __P((struct ether_multi *));
-#endif
-void if6_addrlist __P((struct ifaddr *));
-void in6_multilist __P((struct in6_multi *));
-struct in6_multi * in6_multientry __P((struct in6_multi *));
-
-#if !defined(__NetBSD__) && !(defined(__FreeBSD__) && __FreeBSD__ >= 3) && !defined(__OpenBSD__)
-#ifdef __bsdi__
-struct ether_addr {
-	u_int8_t ether_addr_octet[6];
-};
-#endif
-static char *ether_ntoa __P((struct ether_addr *));
-#endif
-
-#define	KREAD(addr, buf, type) \
-	kread((u_long)addr, (void *)buf, sizeof(type))
-
-#ifdef N_IN6_MK
-struct multi6_kludge {
-	LIST_ENTRY(multi6_kludge) mk_entry;
-	struct ifnet *mk_ifp;
-	struct in6_multihead mk_head;
-};
-#endif
-
-const char *inet6_n2a(p)
-	struct in6_addr *p;
+static const char *
+inet6_n2a(void *p)
 {
 	static char buf[NI_MAXHOST];
 	struct sockaddr_in6 sin6;
@@ -115,7 +69,7 @@ const char *inet6_n2a(p)
 	memset(&sin6, 0, sizeof(sin6));
 	sin6.sin6_family = AF_INET6;
 	sin6.sin6_len = sizeof(struct sockaddr_in6);
-	sin6.sin6_addr = *p;
+	memcpy(&sin6.sin6_addr, p, sizeof(sin6.sin6_addr));
 	inet6_getscopeid(&sin6, INET6_IS_ADDR_LINKLOCAL|
 	INET6_IS_ADDR_MC_LINKLOCAL);
 	if (getnameinfo((struct sockaddr *)&sin6, sin6.sin6_len,
@@ -125,263 +79,165 @@ const char *inet6_n2a(p)
 		return "(invalid)";
 }
 
-int main()
+int
+main(void)
 {
-	char	buf[_POSIX2_LINE_MAX], ifnam[IFNAMSIZ];
-	struct	ifnet	*ifp, *nifp, ifnet;
-#ifndef __NetBSD__
-	struct	arpcom	arpcom;
-#else
-	struct ethercom ec;
-	union {
-		struct sockaddr_storage st;
-		struct sockaddr_dl sdl;
-	} su;
-	struct sockaddr_dl *sdlp;
-	sdlp = &su.sdl;
-#endif
-
-	if ((kvmd = kvm_openfiles(NULL, NULL, NULL, O_RDONLY, buf)) == NULL) {
-		perror("kvm_openfiles");
-		exit(1);
-	}
-	if (kvm_nlist(kvmd, nl) < 0) {
-		perror("kvm_nlist");
-		exit(1);
-	}
-	if (nl[N_IFNET].n_value == 0) {
-		printf("symbol %s not found\n", nl[N_IFNET].n_name);
-		exit(1);
-	}
-	KREAD(nl[N_IFNET].n_value, &ifp, struct ifnet *);
-	while (ifp) {
-		KREAD(ifp, &ifnet, struct ifnet);
-		printf("%s:\n", if_indextoname(ifnet.if_index, ifnam));
-
-#if defined(__NetBSD__) || defined(__OpenBSD__)
-		if6_addrlist(ifnet.if_addrlist.tqh_first);
-		nifp = ifnet.if_list.tqe_next;
-#elif defined(__FreeBSD__) && __FreeBSD__ >= 3
-		if6_addrlist(TAILQ

CVS commit: [tls-earlyentropy] src/usr.sbin/inetd

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 06:59:34 UTC 2014

Modified Files:
src/usr.sbin/inetd [tls-earlyentropy]: inetd.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.121 -r1.121.6.1 src/usr.sbin/inetd/inetd.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/inetd/inetd.c
diff -u src/usr.sbin/inetd/inetd.c:1.121 src/usr.sbin/inetd/inetd.c:1.121.6.1
--- src/usr.sbin/inetd/inetd.c:1.121	Thu Dec 13 19:38:40 2012
+++ src/usr.sbin/inetd/inetd.c	Sun Aug 10 06:59:34 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: inetd.c,v 1.121 2012/12/13 19:38:40 christos Exp $	*/
+/*	$NetBSD: inetd.c,v 1.121.6.1 2014/08/10 06:59:34 tls Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2003 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 19
 #if 0
 static char sccsid[] = "@(#)inetd.c	8.4 (Berkeley) 4/13/94";
 #else
-__RCSID("$NetBSD: inetd.c,v 1.121 2012/12/13 19:38:40 christos Exp $");
+__RCSID("$NetBSD: inetd.c,v 1.121.6.1 2014/08/10 06:59:34 tls Exp $");
 #endif
 #endif /* not lint */
 
@@ -762,11 +762,11 @@ reapchild(void)
 
 if (WIFEXITED(status) && WEXITSTATUS(status))
 	syslog(LOG_WARNING,
-	"%s: exit status 0x%x",
+	"%s: exit status %u",
 	sep->se_server, WEXITSTATUS(status));
 else if (WIFSIGNALED(status))
 	syslog(LOG_WARNING,
-	"%s: exit signal 0x%x",
+	"%s: exit signal %u",
 	sep->se_server, WTERMSIG(status));
 sep->se_wait = 1;
 ev = allocchange();



CVS commit: [tls-earlyentropy] src/usr.sbin/envstat

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 06:59:27 UTC 2014

Modified Files:
src/usr.sbin/envstat [tls-earlyentropy]: envstat.8 envstat.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.61.16.1 src/usr.sbin/envstat/envstat.8
cvs rdiff -u -r1.94 -r1.94.6.1 src/usr.sbin/envstat/envstat.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/envstat/envstat.8
diff -u src/usr.sbin/envstat/envstat.8:1.61 src/usr.sbin/envstat/envstat.8:1.61.16.1
--- src/usr.sbin/envstat/envstat.8:1.61	Thu Feb  9 18:10:26 2012
+++ src/usr.sbin/envstat/envstat.8	Sun Aug 10 06:59:27 2014
@@ -1,6 +1,6 @@
-.\"	$NetBSD: envstat.8,v 1.61 2012/02/09 18:10:26 riz Exp $
+.\"	$NetBSD: envstat.8,v 1.61.16.1 2014/08/10 06:59:27 tls Exp $
 .\"
-.\" Copyright (c) 2000, 2007, 2008, 2009 The NetBSD Foundation, Inc.
+.\" Copyright (c) 2000, 2007, 2008, 2009, 2014 The NetBSD Foundation, Inc.
 .\" All rights reserved.
 .\"
 .\" This code is derived from software contributed to The NetBSD Foundation
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd June 7, 2011
+.Dd May 18, 2014
 .Dt ENVSTAT 8
 .Os
 .Sh NAME
@@ -166,6 +166,8 @@ Volts AC
 Watts
 .It Wh
 Watt-hours
+.It %rH
+relative Humidity
 .El
 .Sh EXAMPLES
 To display the
@@ -217,6 +219,7 @@ invalid states every second:
 .Xr envctrl 4 ,
 .Xr envsys 4 ,
 .Xr finsio 4 ,
+.Xr hythygtemp 4 ,
 .Xr ipmi 4 ,
 .Xr itesio 4 ,
 .Xr lm 4 ,

Index: src/usr.sbin/envstat/envstat.c
diff -u src/usr.sbin/envstat/envstat.c:1.94 src/usr.sbin/envstat/envstat.c:1.94.6.1
--- src/usr.sbin/envstat/envstat.c:1.94	Fri Dec 14 05:29:28 2012
+++ src/usr.sbin/envstat/envstat.c	Sun Aug 10 06:59:27 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: envstat.c,v 1.94 2012/12/14 05:29:28 pgoyette Exp $ */
+/* $NetBSD: envstat.c,v 1.94.6.1 2014/08/10 06:59:27 tls Exp $ */
 
 /*-
  * Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -27,7 +27,7 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: envstat.c,v 1.94 2012/12/14 05:29:28 pgoyette Exp $");
+__RCSID("$NetBSD: envstat.c,v 1.94.6.1 2014/08/10 06:59:27 tls Exp $");
 #endif /* not lint */
 
 #include 
@@ -975,6 +975,8 @@ do {	\
 stype = "Wh";
 			else if (strcmp(sensor->type, "Ampere hour") == 0)
 stype = "Ah";
+			else if (strcmp(sensor->type, "relative Humidity") == 0)
+stype = "%rH";
 			else
 stype = "?";
 



CVS commit: [tls-earlyentropy] src/usr.sbin/iostat

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 06:59:37 UTC 2014

Modified Files:
src/usr.sbin/iostat [tls-earlyentropy]: Makefile iostat.8 iostat.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.24.22.1 src/usr.sbin/iostat/Makefile
cvs rdiff -u -r1.22 -r1.22.72.1 src/usr.sbin/iostat/iostat.8
cvs rdiff -u -r1.60 -r1.60.18.1 src/usr.sbin/iostat/iostat.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/iostat/Makefile
diff -u src/usr.sbin/iostat/Makefile:1.24 src/usr.sbin/iostat/Makefile:1.24.22.1
--- src/usr.sbin/iostat/Makefile:1.24	Fri Jan  7 03:12:27 2011
+++ src/usr.sbin/iostat/Makefile	Sun Aug 10 06:59:37 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.24 2011/01/07 03:12:27 jakllsch Exp $
+#	$NetBSD: Makefile,v 1.24.22.1 2014/08/10 06:59:37 tls Exp $
 #	from: @(#)Makefile	8.1 (Berkeley) 6/6/93
 
 .include 
@@ -13,7 +13,7 @@ CPPFLAGS+=-I${NETBSDSRCDIR}/usr.bin/vmst
 # drvstats.c pulled in from ../../usr.bin/vmstat
 SRCS=	drvstats.c iostat.c
 
-DPADD=	${LIBKVM} ${LIBM}
-LDADD=	-lkvm -lm
+DPADD=	${LIBM}
+LDADD=	-lm
 
 .include 

Index: src/usr.sbin/iostat/iostat.8
diff -u src/usr.sbin/iostat/iostat.8:1.22 src/usr.sbin/iostat/iostat.8:1.22.72.1
--- src/usr.sbin/iostat/iostat.8:1.22	Thu Aug  7 11:25:22 2003
+++ src/usr.sbin/iostat/iostat.8	Sun Aug 10 06:59:37 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: iostat.8,v 1.22 2003/08/07 11:25:22 agc Exp $
+.\"	$NetBSD: iostat.8,v 1.22.72.1 2014/08/10 06:59:37 tls Exp $
 .\"
 .\" Copyright (c) 1985, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"	from: @(#)iostat.8	8.1 (Berkeley) 6/6/93
 .\"
-.Dd March 1, 2003
+.Dd June 11, 2014
 .Dt IOSTAT 8
 .Os
 .Sh NAME
@@ -41,8 +41,6 @@ statistics
 .Nm
 .Op Fl CdDITx
 .Op Fl c Ar count
-.Op Fl M Ar core
-.Op Fl N Ar system
 .Op Fl w Ar wait
 .Op Ar drives
 .Sh DESCRIPTION
@@ -106,13 +104,6 @@ transfers, and time spent in transfers.
 Use of this flag disables the default display.
 .It Fl I
 Show the running total values, rather than an average.
-.It Fl M Ar core
-Extract values associated with the name list from the specified core
-instead of the default
-.Dq Pa /dev/mem .
-.It Fl N Ar system
-Extract the name list from the specified system instead of the default
-.Dq Pa /netbsd .
 .It Fl T
 Show tty statistics.
 This is enabled by default unless the
@@ -191,13 +182,6 @@ Seconds spent in disk activity
 % of CPU time in idle mode
 .El
 .El
-.Sh FILES
-.Bl -tag -width /dev/mem -compact
-.It Pa /netbsd
-Default kernel namelist.
-.It Pa /dev/mem
-Default memory file.
-.El
 .Sh SEE ALSO
 .Xr fstat 1 ,
 .Xr netstat 1 ,

Index: src/usr.sbin/iostat/iostat.c
diff -u src/usr.sbin/iostat/iostat.c:1.60 src/usr.sbin/iostat/iostat.c:1.60.18.1
--- src/usr.sbin/iostat/iostat.c:1.60	Tue Aug 30 19:06:06 2011
+++ src/usr.sbin/iostat/iostat.c	Sun Aug 10 06:59:37 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: iostat.c,v 1.60 2011/08/30 19:06:06 joerg Exp $	*/
+/*	$NetBSD: iostat.c,v 1.60.18.1 2014/08/10 06:59:37 tls Exp $	*/
 
 /*
  * Copyright (c) 1996 John M. Vinopal
@@ -71,7 +71,7 @@ __COPYRIGHT("@(#) Copyright (c) 1986, 19
 #if 0
 static char sccsid[] = "@(#)iostat.c	8.3 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: iostat.c,v 1.60 2011/08/30 19:06:06 joerg Exp $");
+__RCSID("$NetBSD: iostat.c,v 1.60.18.1 2014/08/10 06:59:37 tls Exp $");
 #endif
 #endif /* not lint */
 
@@ -91,9 +91,6 @@ __RCSID("$NetBSD: iostat.c,v 1.60 2011/0
 
 #include "drvstats.h"
 
-/* Namelist and memory files. */
-char	*nlistf, *memf;
-
 int		hz;
 static int	reps, interval;
 static int	todo = 0;
@@ -130,7 +127,7 @@ main(int argc, char *argv[])
 	struct timespec	tv;
 	struct ttysize ts;
 
-	while ((ch = getopt(argc, argv, "Cc:dDIM:N:Tw:x")) != -1)
+	while ((ch = getopt(argc, argv, "Cc:dDITw:x")) != -1)
 		switch (ch) {
 		case 'c':
 			if ((reps = atoi(optarg)) <= 0)
@@ -150,12 +147,6 @@ main(int argc, char *argv[])
 		case 'I':
 			todo |= SHOW_TOTALS;
 			break;
-		case 'M':
-			memf = optarg;
-			break;
-		case 'N':
-			nlistf = optarg;
-			break;
 		case 'T':
 			todo |= SHOW_TTY;
 			break;
@@ -450,8 +441,8 @@ static void
 usage(void)
 {
 
-	(void)fprintf(stderr, "usage: iostat [-CdDITx] [-c count] [-M core] "
-	"[-N system] [-w wait] [drives]\n");
+	(void)fprintf(stderr, "usage: iostat [-CdDITx] [-c count] "
+	"[-w wait] [drives]\n");
 	exit(1);
 }
 



CVS commit: [tls-earlyentropy] src/usr.bin/xlint

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 06:59:20 UTC 2014

Modified Files:
src/usr.bin/xlint/common [tls-earlyentropy]: emit.c externs.h
src/usr.bin/xlint/lint1 [tls-earlyentropy]: cgram.y decl.c externs1.h
init.c lint1.h main1.c mem1.c scan.l tree.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.5.22.1 src/usr.bin/xlint/common/emit.c
cvs rdiff -u -r1.4 -r1.4.62.1 src/usr.bin/xlint/common/externs.h
cvs rdiff -u -r1.59 -r1.59.2.1 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.58 -r1.58.2.1 src/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.31 -r1.31.4.1 src/usr.bin/xlint/lint1/externs1.h
cvs rdiff -u -r1.24 -r1.24.22.1 src/usr.bin/xlint/lint1/init.c
cvs rdiff -u -r1.27 -r1.27.4.1 src/usr.bin/xlint/lint1/lint1.h
cvs rdiff -u -r1.21 -r1.21.4.1 src/usr.bin/xlint/lint1/main1.c
cvs rdiff -u -r1.15 -r1.15.18.1 src/usr.bin/xlint/lint1/mem1.c
cvs rdiff -u -r1.54 -r1.54.2.1 src/usr.bin/xlint/lint1/scan.l
cvs rdiff -u -r1.75 -r1.75.2.1 src/usr.bin/xlint/lint1/tree.c

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

Modified files:

Index: src/usr.bin/xlint/common/emit.c
diff -u src/usr.bin/xlint/common/emit.c:1.5 src/usr.bin/xlint/common/emit.c:1.5.22.1
--- src/usr.bin/xlint/common/emit.c:1.5	Wed Apr 15 01:20:57 2009
+++ src/usr.bin/xlint/common/emit.c	Sun Aug 10 06:59:20 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: emit.c,v 1.5 2009/04/15 01:20:57 christos Exp $	*/
+/*	$NetBSD: emit.c,v 1.5.22.1 2014/08/10 06:59:20 tls Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include 
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: emit.c,v 1.5 2009/04/15 01:20:57 christos Exp $");
+__RCSID("$NetBSD: emit.c,v 1.5.22.1 2014/08/10 06:59:20 tls Exp $");
 #endif
 
 #include 
@@ -216,11 +216,11 @@ outint(int i)
  * the name is preceded by its length
  */
 void
-outname(const char *name)
+outname1(const char *file, size_t line, const char *name)
 {
 
 	if (name == NULL)
-		errx(1, "internal error: outname() 1");
+		errx(1, "%s, %zu: internal error: outname(NULL)", file, line);
 	outint((int)strlen(name));
 	outstrg(name);
 }

Index: src/usr.bin/xlint/common/externs.h
diff -u src/usr.bin/xlint/common/externs.h:1.4 src/usr.bin/xlint/common/externs.h:1.4.62.1
--- src/usr.bin/xlint/common/externs.h:1.4	Thu Apr  7 16:28:40 2005
+++ src/usr.bin/xlint/common/externs.h	Sun Aug 10 06:59:20 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: externs.h,v 1.4 2005/04/07 16:28:40 christos Exp $	*/
+/*	$NetBSD: externs.h,v 1.4.62.1 2014/08/10 06:59:20 tls Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -69,5 +69,6 @@ extern	void	outchar(int);
 extern	void	outqchar(int);
 extern	void	outstrg(const char *);
 extern	void	outint(int);
-extern	void	outname(const char *);
+#define outname(a)	outname1(__FILE__, __LINE__, a);
+extern	void	outname1(const char *, size_t, const char *);
 extern	void	outsrc(const char *);

Index: src/usr.bin/xlint/lint1/cgram.y
diff -u src/usr.bin/xlint/lint1/cgram.y:1.59 src/usr.bin/xlint/lint1/cgram.y:1.59.2.1
--- src/usr.bin/xlint/lint1/cgram.y:1.59	Sun Mar 23 04:58:16 2014
+++ src/usr.bin/xlint/lint1/cgram.y	Sun Aug 10 06:59:20 2014
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.59 2014/03/23 04:58:16 dholland Exp $ */
+/* $NetBSD: cgram.y,v 1.59.2.1 2014/08/10 06:59:20 tls Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -35,7 +35,7 @@
 
 #include 
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: cgram.y,v 1.59 2014/03/23 04:58:16 dholland Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.59.2.1 2014/08/10 06:59:20 tls Exp $");
 #endif
 
 #include 
@@ -107,7 +107,7 @@ static inline void RESTORE(const char *f
 #endif
 %}
 
-%expect 5
+%expect 75
 
 %union {
 	int	y_int;
@@ -189,13 +189,21 @@ static inline void RESTORE(const char *f
 %token 		T_ATTRIBUTE
 %token 		T_AT_ALIGNED
 %token 		T_AT_DEPRECATED
+%token 		T_AT_NORETURN
 %token 		T_AT_MAY_ALIAS
 %token 		T_AT_PACKED
+%token 		T_AT_PURE
 %token 		T_AT_TUINION
 %token 		T_AT_TUNION
 %token 		T_AT_UNUSED
-
-
+%token 		T_AT_FORMAT
+%token 		T_AT_FORMAT_PRINTF
+%token 		T_AT_FORMAT_SCANF
+%token 		T_AT_FORMAT_STRFTIME
+%token 		T_AT_FORMAT_ARG
+%token 		T_AT_SENTINEL
+%token 		T_AT_RETURNS_TWICE
+%token 		T_AT_COLD
 
 %left	T_COMMA
 %right	T_ASSIGN T_OPASS
@@ -470,19 +478,41 @@ declaration:
 	| error T_SEMI
 	;
 
+type_attribute_format_type:
+	  T_AT_FORMAT_PRINTF
+	| T_AT_FORMAT_SCANF
+	| T_AT_FORMAT_STRFTIME
+	;
+
 type_attribute_spec:
 	  T_AT_DEPRECATED
 	| T_AT_ALIGNED T_LPARN constant T_RPARN
+	| T_AT_SENTINEL T_LPARN constant T_RPARN
+	| T_AT_FORMAT_ARG T_LPARN constant T_RPARN
 	| T_AT_MAY_ALIAS
+	| T_AT_NORETURN
+	| T_AT_COLD
+	| T_AT_RETURNS_TWICE
 	| T_AT_PACKED {
 		addpacked();
 	}
+	| T_AT_PURE
 	| T_AT_TUNION
+	| T_AT_FORMAT T_LPARN type_attribute_format_type T_COMMA
+	constant T_COMMA constant T_RPARN
 	| T_AT_UNUSED
+	| T_QUAL {
+		if ($1 !

CVS commit: [tls-earlyentropy] src/usr.sbin/etcupdate

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 06:59:29 UTC 2014

Modified Files:
src/usr.sbin/etcupdate [tls-earlyentropy]: etcupdate etcupdate.8

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.51.8.1 src/usr.sbin/etcupdate/etcupdate
cvs rdiff -u -r1.20 -r1.20.8.1 src/usr.sbin/etcupdate/etcupdate.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/etcupdate/etcupdate
diff -u src/usr.sbin/etcupdate/etcupdate:1.51 src/usr.sbin/etcupdate/etcupdate:1.51.8.1
--- src/usr.sbin/etcupdate/etcupdate:1.51	Wed Aug 15 16:26:41 2012
+++ src/usr.sbin/etcupdate/etcupdate	Sun Aug 10 06:59:29 2014
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: etcupdate,v 1.51 2012/08/15 16:26:41 apb Exp $
+# $NetBSD: etcupdate,v 1.51.8.1 2014/08/10 06:59:29 tls Exp $
 #
 # Copyright (c) 2001-2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -46,6 +46,8 @@ PATH="/sbin:/usr/sbin:/bin:/usr/bin:${PA
 
 # Default settings
 PROG="${0##*/}"
+DESTDIR=""		# must not have a trailing slash
+DESTDIR_BRE=""		# basic regex to match ${DESTDIR}
 TEMPROOT="${TEMPROOT:=/tmp/temproot}"
 PAGER="${PAGER:=/usr/bin/more}"
 SWIDTH="$(stty size | awk '{w=$2}END{if(w==0){w=80}print w}')"
@@ -60,7 +62,7 @@ BINARYDIRMODE=false	# true for "-s extra
 BINARYDIR=		# directory name for BINARYDIRMODE
 BINARYTGZMODE=false	# true for "-s etc.tgz"
 TGZLIST=		# quoted list list of files for BINARYTGZMODE
-SRC_ARGLIST=		# quoted list of one or more "-s" args
+SRC_ARGLIST=		# quoted list of "-s" args
 N_SRC_ARGS=0		# number of "-s" args
 AUTOMATIC=false
 LOCALSKIP=false
@@ -70,6 +72,7 @@ MACHINE_ARCH="${MACHINE_ARCH:="$(uname -
 export MACHINE_ARCH
 
 # Settings for post-installation procedures
+NEED_ANYTHING=false
 NEED_MAKEDEV=false
 NEED_MTREE=false
 NEED_NEWALIASES=false
@@ -94,6 +97,7 @@ Options:
* A temporary directory in which one or both of "etc.tgz"
  and "xetc.tgz" have been extracted.
   -t temproot  Where to store temporary files  (default: /tmp/temproot)
+  -d destdir   Destination directory to check. (default: /)
   -w width Screen width(default: 80)
   -a   Automatically update unmodified files
   -l   Automatically skip files with strictly local changes
@@ -134,38 +138,76 @@ yesno() {
 #eval "set -- $quotedlist"
 # or like this:
 #eval "\$command $quotedlist \$filename"
+#
 shell_quote()
-{
+{(
 	local result=''
-	local arg
+	local arg qarg
+	LC_COLLATE=C ; export LC_COLLATE # so [a-zA-Z0-9] works in ASCII
 	for arg in "$@" ; do
-		# Append a space if necessary
-		result="${result}${result:+ }"
-		# Convert each embedded ' to '\'',
-		# then insert ' at the beginning of the first line,
-		# and append ' at the end of the last line.
-		result="${result}$(printf "%s\n" "$arg" | \
-			sed -e "s/'/'''/g" -e "1s/^/'/" -e "\$s/\$/'/")"
+		case "${arg}" in
+		'')
+			qarg="''"
+			;;
+		*[!-./a-zA-Z0-9]*)
+			# Convert each embedded ' to '\'',
+			# then insert ' at the beginning of the first line,
+			# and append ' at the end of the last line.
+			# Finally, elide unnecessary '' pairs at the
+			# beginning and end of the result and as part of
+			# '\'''\'' sequences that result from multiple
+			# adjacent quotes in he input.
+			qarg="$(printf "%s\n" "$arg" | \
+			${SED:-sed} -e "s/'/'''/g" \
+-e "1s/^/'/" -e "\$s/\$/'/" \
+-e "1s/^''//" -e "\$s/''\$//" \
+-e "s/'''/'/g"
+)"
+			;;
+		*)
+			# Arg is not the empty string, and does not contain
+			# any unsafe characters.  Leave it unchanged for
+			# readability.
+			qarg="${arg}"
+			;;
+		esac
+		result="${result}${result:+ }${qarg}"
 	done
 	printf "%s\n" "$result"
+)}
+
+# Convert arg $1 to a basic regular expression (as in sed)
+# that will match the arg.  This works by inserting backslashes
+# before characters that are special in basic regular expressions.
+# It also inserts backslashes before the extra characters specified
+# in $2 (which defaults to "/,").
+# XXX: Does not handle embedded newlines.
+# Usage: regex="$(bre_quote "${string}")"
+bre_quote()
+{
+	local arg="$1"
+	local extra="${2-/,}"
+	printf "%s\n" "${arg}" | sed -e 's/[][^$.*\\'"${extra}"']/\\&/g'
 }
 
 install_dir() {
-	# $1 = target directory
+	# $1 = target directory (relative to ${DESTDIR})
 
-	if yesno "Create ${1}"; then
-		verbose "Creating ${1}"
-		mkdir -p "${1}" || exit 1
+	NEED_ANYTHING=true
+	if yesno "Create ${DESTDIR}${1}"; then
+		verbose "Creating ${DESTDIR}${1}"
+		mkdir -p "${DESTDIR}${1}" || exit 1
 		NEED_MTREE=true
 	fi
 }
 
 install_file() {
-	# $1 = target file
+	# $1 = target file (relative to ${DESTDIR})
 
+	NEED_ANYTHING=true
 	# Install the new file
-	verbose "Installing ${1}"
-	cp -p "${TEMPROOT}${1}" "${1}" && rm -f "${TEMPROOT}${1}"
+	verbose "Installing ${DESTDIR}${1}"
+	cp -p "${TEMPROOT}${1}" "${DESTDIR}${1}" && rm -f "${TEMPROOT}${1}"

CVS commit: [tls-earlyentropy] src/usr.bin/who

2014-08-10 Thread Thor Lancelot Simon
Module Name:src
Committed By:   tls
Date:   Sun Aug 10 06:59:16 UTC 2014

Modified Files:
src/usr.bin/who [tls-earlyentropy]: who.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.23.36.1 src/usr.bin/who/who.c

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

Modified files:

Index: src/usr.bin/who/who.c
diff -u src/usr.bin/who/who.c:1.23 src/usr.bin/who/who.c:1.23.36.1
--- src/usr.bin/who/who.c:1.23	Thu Jul 24 15:35:41 2008
+++ src/usr.bin/who/who.c	Sun Aug 10 06:59:16 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: who.c,v 1.23 2008/07/24 15:35:41 christos Exp $	*/
+/*	$NetBSD: who.c,v 1.23.36.1 2014/08/10 06:59:16 tls Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 19
 #if 0
 static char sccsid[] = "@(#)who.c	8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: who.c,v 1.23 2008/07/24 15:35:41 christos Exp $");
+__RCSID("$NetBSD: who.c,v 1.23.36.1 2014/08/10 06:59:16 tls Exp $");
 #endif /* not lint */
 
 #include 
@@ -285,6 +285,7 @@ print(const char *name, const char *line
 	time_t idle;
 	const char *types = NULL;
 	size_t i;
+	char *tstr;
 
 	state = '?';
 	idle = 0;
@@ -312,7 +313,8 @@ print(const char *name, const char *line
 		(void)printf("%c ", state);
 
 	(void)printf("%-*.*s ", maxline, maxline, line);
-	(void)printf("%.12s ", ctime(&t) + 4);
+	tstr = ctime(&t);
+	(void)printf("%.12s ", tstr ? tstr + 4 : "?");
 
 	if (show_idle) {
 		if (idle < 60) 



  1   2   3   4   >