Re: CVS commit: src

2011-05-16 Thread David Holland
On Tue, May 03, 2011 at 06:28:46PM +, David Young wrote:
  Module Name: src
  Committed By:dyoung
  Date:Tue May  3 18:28:46 UTC 2011
  
  Modified Files:
   src/distrib/sets/lists/comp: mi
   src/sys/dist/pf/net: pf.c
   src/sys/netinet: Makefile files.netinet in_pcb.c in_pcb.h in_pcb_hdr.h
   tcp_input.c tcp_subr.c tcp_usrreq.c tcp_var.h udp_usrreq.c
   src/sys/netinet6: in6_pcb.c in6_pcb.h in6_src.c ip6_input.c raw_ip6.c
   udp6_usrreq.c
   src/sys/rump/net/lib/libnetinet: Makefile.inc
   src/usr.bin/netstat: Makefile inet.c inet6.c main.c netstat.h
  Added Files:
   src/sys/netinet: tcp_vtw.c tcp_vtw.h
   src/usr.bin/netstat: vtw.c vtw.h
  
  Log Message:
  Reduces the resources demanded by TCP sessions in TIME_WAIT-state using
  methods called Vestigial Time-Wait (VTW) and Maximum Segment Lifetime
  Truncation (MSLT).
  [...]

This changeset broke my qemu test environment. With DIAGNOSTIC, DEBUG,
and LOCKDEBUG boot gets as far as starting init; then it sits there
for a while and after a few moments prints

   UVM: pid 2 (sh), uid 0 killed: out of swap
   Out of memory allocating ksiginfo for pid 2

several times (that is, it kills pid 2 several times, which is itself
odd) and then asserts at line 2383 of pmap.c, which is in pmap_destroy
checking pmap.pm_obj[i].uo_npages == 0.

GENERIC is less overtly broken, but hangs during multiuser boot
sometime after printing Adding interface aliases:.

This is on amd64 and it appears to be qemu-specific, or possibly
specific to my qemu setup; at least nobody else seems to have hit it.
It's also possible that it only happens with a new kernel and older
userland; the userland in the VM image is 5.99.45 from mid-February.

Suggestions? I can try to apply the changes piecemeal to see at what
point things blow up, but I'm not familiar enough with the TCP code to
tackle it properly without putting a big chunk of time into it, which
I don't really have...

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


Re: CVS commit: src/tests/lib/libposix

2011-05-16 Thread Julio Merino

On 5/16/11 1:03 AM, Christos Zoulas wrote:

Module Name:src
Committed By:   christos
Date:   Mon May 16 00:03:36 UTC 2011

Modified Files:
src/tests/lib/libposix: t_rename.c

Log Message:
h_macros need strlcat and random ugh, please someone remove this header.
define _NETBSD_SOURCE so those are defined.


The original intent of h_macros was as a place to provide 
NetBSD-specific check macros that can't be part of the generic codebase 
of atf.  I'm not sure what it currently includes, but I presume it does 
not follow this rule any more.  I'll check later (FSVO later ;-) what 
pieces could be now moved to atf to clean this up a bit.


Re: CVS commit: src/sys

2011-05-16 Thread Martin S. Weber
On Mon, May 16, 2011 at 06:35:35PM +0200, Hauke Fath wrote:
 Module Name:src
 Committed By:   rmind
 Date:   Sat May 14 17:57:05 UTC 2011
 
 Modified Files:
 src/sys/kern: kern_resource.c
 src/sys/sys: resource.h resourcevar.h
 
 Log Message:
 - Sprinkle __read_mostly, consitify maxdmap and maxsmap.
 
 
 This breaks the sparc build, which sets 'maxdmap', see
 http://nxr.netbsd.org/search?q=project=srcdefs=refs=maxdmappath=hist=.
 

Reminds me of http://www.netbsd.org/ports/ -- remember
sparc is tier 2 aka Go fix it yourself if you don't
hurt me...


Re: CVS commit: src/sys

2011-05-16 Thread Martin S. Weber
On Mon, May 16, 2011 at 08:18:08PM +0200, Martin Husemann wrote:
 On Mon, May 16, 2011 at 07:29:26PM +0200, Martin S. Weber wrote:
  Reminds me of http://www.netbsd.org/ports/ -- remember
  sparc is tier 2 aka Go fix it yourself if you don't
  hurt me...
 
 Well, but the fix is simple in this case: turn it into a MD macro like
 MAXDMAP() and allow other archs to provide a const implementation, while
 sparc pays the price and has to fetch it from a variable.
 

or just hack it brutally

( cvs rdiff -u -r1.308 -r1.309 src/sys/arch/sparc/sparc/machdep.c )
 -- who cares about hacks in tier 2 architectures when the netbsd
goals (http://www.netbsd.org/about/system.html - well designed)
only apply to tier 1 ports? (the goals page should be updated anyways
to exclude examples such as EISA, TurboChannel, the alpha or pmap port
etc)

/me shrugs


Re: CVS commit: src/sys

2011-05-16 Thread Mindaugas Rasiukevicius
Martin S. Weber ephae...@gmx.net wrote:
 On Mon, May 16, 2011 at 08:18:08PM +0200, Martin Husemann wrote:
  On Mon, May 16, 2011 at 07:29:26PM +0200, Martin S. Weber wrote:
   Reminds me of http://www.netbsd.org/ports/ -- remember
   sparc is tier 2 aka Go fix it yourself if you don't
   hurt me...
  
  Well, but the fix is simple in this case: turn it into a MD macro like
  MAXDMAP() and allow other archs to provide a const implementation, while
  sparc pays the price and has to fetch it from a variable.
  
 
 or just hack it brutally
 
 ( cvs rdiff -u -r1.308 -r1.309 src/sys/arch/sparc/sparc/machdep.c )
  -- who cares about hacks in tier 2 architectures when the netbsd
 goals (http://www.netbsd.org/about/system.html - well designed)
 only apply to tier 1 ports? (the goals page should be updated anyways
 to exclude examples such as EISA, TurboChannel, the alpha or pmap port
 etc)

The *modification* of those variables in such way is rather a hack.  Note
that I have asked sparc guys whether they are happy with such change.

Tell me more about well designed.

-- 
Mindaugas


Re: CVS commit: src/lib/libc/stdlib

2011-05-16 Thread tsugutomo . enami
Christos Zoulas chris...@netbsd.org writes:

 Module Name:  src
 Committed By: christos
 Date: Fri May 13 23:11:00 UTC 2011

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

 Log Message:
 don't let readlink trash errno.;


 To generate a diff of this commit:
 cvs rdiff -u -r1.22 -r1.23 src/lib/libc/stdlib/jemalloc.c
 cvs rdiff -u -r1.52 -r1.53 src/lib/libc/stdlib/malloc.c

- Is the existing guard in malloc_init() of malloc.c insufficient?

- In the malloc_init_hard() of jemalloc.c, there are another calls may
set errno.  Especially, the code explicitly handles an error from
sysctl(3).

enami.


CVS commit: src/sys/netipsec

2011-05-16 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Mon May 16 10:05:23 UTC 2011

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

Log Message:
remove redundant declaration


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/netipsec/ipsec_mbuf.c

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

Modified files:

Index: src/sys/netipsec/ipsec_mbuf.c
diff -u src/sys/netipsec/ipsec_mbuf.c:1.11 src/sys/netipsec/ipsec_mbuf.c:1.12
--- src/sys/netipsec/ipsec_mbuf.c:1.11	Wed Apr 23 06:09:05 2008
+++ src/sys/netipsec/ipsec_mbuf.c	Mon May 16 10:05:23 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: ipsec_mbuf.c,v 1.11 2008/04/23 06:09:05 thorpej Exp $	*/
+/*	$NetBSD: ipsec_mbuf.c,v 1.12 2011/05/16 10:05:23 drochner Exp $	*/
 /*-
  * Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
  * All rights reserved.
@@ -28,7 +28,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: ipsec_mbuf.c,v 1.11 2008/04/23 06:09:05 thorpej Exp $);
+__KERNEL_RCSID(0, $NetBSD: ipsec_mbuf.c,v 1.12 2011/05/16 10:05:23 drochner Exp $);
 
 /*
  * IPsec-specific mbuf routines.
@@ -53,8 +53,6 @@
 #include netipsec/ipsec_osdep.h
 #include net/net_osdep.h
 
-extern	struct mbuf *m_getptr(struct mbuf *, int, int *);
-
 /*
  * Create a writable copy of the mbuf chain.  While doing this
  * we compact the chain with a goal of producing a chain with



CVS commit: src/sys/opencrypto

2011-05-16 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Mon May 16 10:18:52 UTC 2011

Modified Files:
src/sys/opencrypto: cryptodev.h

Log Message:
remove redundant declarations


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/opencrypto/cryptodev.h

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

Modified files:

Index: src/sys/opencrypto/cryptodev.h
diff -u src/sys/opencrypto/cryptodev.h:1.20 src/sys/opencrypto/cryptodev.h:1.21
--- src/sys/opencrypto/cryptodev.h:1.20	Thu May  5 17:42:17 2011
+++ src/sys/opencrypto/cryptodev.h	Mon May 16 10:18:52 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: cryptodev.h,v 1.20 2011/05/05 17:42:17 drochner Exp $ */
+/*	$NetBSD: cryptodev.h,v 1.21 2011/05/16 10:18:52 drochner Exp $ */
 /*	$FreeBSD: src/sys/opencrypto/cryptodev.h,v 1.2.2.6 2003/07/02 17:04:50 sam Exp $	*/
 /*	$OpenBSD: cryptodev.h,v 1.33 2002/07/17 23:52:39 art Exp $	*/
 
@@ -623,9 +623,6 @@
  * XXX these don't really belong here; but for now they're
  * kept apart from the rest of the system.
  */
-struct mbuf;
-struct	mbuf	*m_getptr(struct mbuf *, int, int *);
-
 struct uio;
 extern	void cuio_copydata(struct uio* uio, int off, int len, void *cp);
 extern	void cuio_copyback(struct uio* uio, int off, int len, void *cp);



CVS commit: src/lib/libcrypt

2011-05-16 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Mon May 16 10:39:12 UTC 2011

Modified Files:
src/lib/libcrypt: hmac.c

Log Message:
fix ipad/opad buffer length (was one too much), just for sanity


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libcrypt/hmac.c

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

Modified files:

Index: src/lib/libcrypt/hmac.c
diff -u src/lib/libcrypt/hmac.c:1.2 src/lib/libcrypt/hmac.c:1.3
--- src/lib/libcrypt/hmac.c:1.2	Sun Jan 18 12:15:27 2009
+++ src/lib/libcrypt/hmac.c	Mon May 16 10:39:12 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: hmac.c,v 1.2 2009/01/18 12:15:27 lukem Exp $ */
+/* $NetBSD: hmac.c,v 1.3 2011/05/16 10:39:12 drochner Exp $ */
 
 /*
  * Copyright (c) 2004, Juniper Networks, Inc.
@@ -42,7 +42,7 @@
  */
 #include sys/cdefs.h
 #if !defined(lint)
-__RCSID($NetBSD: hmac.c,v 1.2 2009/01/18 12:15:27 lukem Exp $);
+__RCSID($NetBSD: hmac.c,v 1.3 2011/05/16 10:39:12 drochner Exp $);
 #endif /* not lint */
 
 #include stdlib.h
@@ -70,9 +70,9 @@
 {
 HASH_CTX context;
 /* Inner padding key XOR'd with ipad */
-unsigned char k_ipad[HMAC_BLOCKSZ + 1];
+unsigned char k_ipad[HMAC_BLOCKSZ];
 /* Outer padding key XOR'd with opad */
-unsigned char k_opad[HMAC_BLOCKSZ + 1];
+unsigned char k_opad[HMAC_BLOCKSZ];
 /* HASH(key) if needed */
 unsigned char tk[HASH_LENGTH];	
 size_t i;



CVS commit: src/lib/libcrypt

2011-05-16 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Mon May 16 10:45:56 UTC 2011

Modified Files:
src/lib/libcrypt: bcrypt.c

Log Message:
-fix maximum length of salt (missing prefix, rounding error)
-clip number of rounds at 31 -- this is log2 of the real number,
 and anything larger would break exponentation
-catch possible atoi() error where log2(rounds) is parsed in the
 salt prefix
-zero crypto state on exit
from Open/FreeBSD


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

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

Modified files:

Index: src/lib/libcrypt/bcrypt.c
diff -u src/lib/libcrypt/bcrypt.c:1.9 src/lib/libcrypt/bcrypt.c:1.10
--- src/lib/libcrypt/bcrypt.c:1.9	Fri Oct 27 19:39:11 2006
+++ src/lib/libcrypt/bcrypt.c	Mon May 16 10:45:56 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: bcrypt.c,v 1.9 2006/10/27 19:39:11 drochner Exp $	*/
+/*	$NetBSD: bcrypt.c,v 1.10 2011/05/16 10:45:56 drochner Exp $	*/
 /*	$OpenBSD: bcrypt.c,v 1.16 2002/02/19 19:39:36 millert Exp $	*/
 
 /*
@@ -46,7 +46,7 @@
  *
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: bcrypt.c,v 1.9 2006/10/27 19:39:11 drochner Exp $);
+__RCSID($NetBSD: bcrypt.c,v 1.10 2011/05/16 10:45:56 drochner Exp $);
 
 #include stdio.h
 #include stdlib.h
@@ -66,7 +66,7 @@
 
 #define BCRYPT_VERSION '2'
 #define BCRYPT_MAXSALT 16	/* Precomputation is just so nice */
-#define BCRYPT_MAXSALTLEN 	(BCRYPT_MAXSALT * 4 / 3 + 1)
+#define BCRYPT_MAXSALTLEN 	(7 + (BCRYPT_MAXSALT * 4 + 2) / 3 + 1)
 #define BCRYPT_BLOCKS 6		/* Ciphertext blocks */
 #define BCRYPT_MINROUNDS 16	/* we have log2(rounds) in salt */
 
@@ -175,13 +175,10 @@
 	if (errno == ERANGE  nrounds == ULONG_MAX)
 		return -1;
 
-	if (nrounds  255) {
-		errno = EINVAL;
-		return -1;
-	}
-
 	if (nrounds  4)
 		nrounds = 4;
+	else if (nrounds  31)
+		nrounds = 31;
 
 	for (i = 0; i  BCRYPT_MAXSALT; i++) {
 		if (i % 4 == 0)
@@ -225,6 +222,7 @@
 	u_int8_t ciphertext[4 * BCRYPT_BLOCKS] = OrpheanBeholderScryDoubt;
 	u_int8_t csalt[BCRYPT_MAXSALT];
 	u_int32_t cdata[BCRYPT_BLOCKS];
+	int n;
 
 	/* Discard $ identifier */
 	salt++;
@@ -256,7 +254,11 @@
 		return error;
 
 	/* Computer power doesn't increase linear, 2^x should be fine */
-	if ((rounds = (u_int32_t) 1  (logr = atoi(salt)))  BCRYPT_MINROUNDS)
+	n = atoi(salt);
+	if (n  31 || n  0)
+		return error;
+	logr = (u_int8_t)n;
+	if ((rounds = (u_int32_t) 1  logr)  BCRYPT_MINROUNDS)
 		return error;
 
 	/* Discard num rounds + $ identifier */
@@ -311,6 +313,7 @@
 	encode_base64((u_int8_t *) encrypted + i + 3, csalt, BCRYPT_MAXSALT);
 	encode_base64((u_int8_t *) encrypted + strlen(encrypted), ciphertext,
 	4 * BCRYPT_BLOCKS - 1);
+	memset(state, 0, sizeof(state));
 	return encrypted;
 }
 



CVS commit: src/sys/dev/usb

2011-05-16 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Mon May 16 10:53:20 UTC 2011

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

Log Message:
fix detach() to avoid use-after-free problems:
-stop transfers before freeing data structures
 (and comment out a useless delay)
-free devinfo later
Hot-unplugging an USB cam while in use doesn't crash my box anymore now.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/usb/uvideo.c

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

Modified files:

Index: src/sys/dev/usb/uvideo.c
diff -u src/sys/dev/usb/uvideo.c:1.33 src/sys/dev/usb/uvideo.c:1.34
--- src/sys/dev/usb/uvideo.c:1.33	Fri Dec 24 20:54:28 2010
+++ src/sys/dev/usb/uvideo.c	Mon May 16 10:53:19 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvideo.c,v 1.33 2010/12/24 20:54:28 jmcneill Exp $	*/
+/*	$NetBSD: uvideo.c,v 1.34 2011/05/16 10:53:19 drochner Exp $	*/
 
 /*
  * Copyright (c) 2008 Patrick Mahoney
@@ -42,7 +42,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: uvideo.c,v 1.33 2010/12/24 20:54:28 jmcneill Exp $);
+__KERNEL_RCSID(0, $NetBSD: uvideo.c,v 1.34 2011/05/16 10:53:19 drochner Exp $);
 
 #ifdef _MODULE
 #include sys/module.h
@@ -671,20 +671,21 @@
 
 	pmf_device_deregister(self);
 
-	usbd_devinfo_free(sc-sc_devname);
-
 	/* TODO: close the device if it is currently opened?  Or will
 	 * close be called automatically? */
 
 	while (!SLIST_EMPTY(sc-sc_stream_list)) {
 		vs = SLIST_FIRST(sc-sc_stream_list);
 		SLIST_REMOVE_HEAD(sc-sc_stream_list, entries);
+		uvideo_stream_stop_xfer(vs);
 		uvideo_stream_free(vs);
 	}
 
+#if 0
 	/* Wait for outstanding request to complete.  TODO: what is
 	 * appropriate here? */
 	usbd_delay_ms(sc-sc_udev, 1000);
+#endif
 
 	DPRINTFN(15, (uvideo: detaching from %s\n,
 		device_xname(sc-sc_dev)));
@@ -695,6 +696,8 @@
 	usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc-sc_udev,
 	sc-sc_dev);
 
+	usbd_devinfo_free(sc-sc_devname);
+
 	return rv;
 }
 



CVS commit: src/sys/kern

2011-05-16 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Mon May 16 15:09:31 UTC 2011

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

Log Message:
Hack for PR 44961: restore the prior logic pertaining to looking up /
to prevent a crash when attempting rename(/, foo). This is not really
what I want going forward and it may cause e.g. rmdir(blah/) to fail, so
if it causes trouble for anyone back it out. The right fix is going to have
to wait until the qemu/tcp_vtw problems I ran into last night get sorted out.


To generate a diff of this commit:
cvs rdiff -u -r1.183 -r1.184 src/sys/kern/vfs_lookup.c

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

Modified files:

Index: src/sys/kern/vfs_lookup.c
diff -u src/sys/kern/vfs_lookup.c:1.183 src/sys/kern/vfs_lookup.c:1.184
--- src/sys/kern/vfs_lookup.c:1.183	Mon Apr 18 00:47:24 2011
+++ src/sys/kern/vfs_lookup.c	Mon May 16 15:09:31 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_lookup.c,v 1.183 2011/04/18 00:47:24 dholland Exp $	*/
+/*	$NetBSD: vfs_lookup.c,v 1.184 2011/05/16 15:09:31 dholland Exp $	*/
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -37,7 +37,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: vfs_lookup.c,v 1.183 2011/04/18 00:47:24 dholland Exp $);
+__KERNEL_RCSID(0, $NetBSD: vfs_lookup.c,v 1.184 2011/05/16 15:09:31 dholland Exp $);
 
 #include opt_magiclinks.h
 
@@ -1145,8 +1145,8 @@
 		 * current node.
 		 */
 		if (cnp-cn_nameptr[0] == '\0') {
-			vref(searchdir);
 			foundobj = searchdir;
+			searchdir = NULL;
 			cnp-cn_flags |= ISLASTCN;
 
 			/* bleh */



CVS commit: src/sys/dev/ic

2011-05-16 Thread Michael L. Hitch
Module Name:src
Committed By:   mhitch
Date:   Mon May 16 17:21:38 UTC 2011

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

Log Message:
I was allowing adapt_max_periph to use all available command slots, which
easily exceeds the maximum of 256 tags used by the scsipi layer because
the tag information from the scsipi layer was ignored and all the tagging
is handled implicitly internal to ciss(4).  But with the DIAGNOSTIC option,
the scsipi layer does a check for  256 tags and will panic.  So, lets just
limit the adapt_max_periph to 256 so the scsipi layer won't try to user more.


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

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

Modified files:

Index: src/sys/dev/ic/ciss.c
diff -u src/sys/dev/ic/ciss.c:1.24 src/sys/dev/ic/ciss.c:1.25
--- src/sys/dev/ic/ciss.c:1.24	Sat Nov 13 13:52:00 2010
+++ src/sys/dev/ic/ciss.c	Mon May 16 17:21:37 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: ciss.c,v 1.24 2010/11/13 13:52:00 uebayasi Exp $	*/
+/*	$NetBSD: ciss.c,v 1.25 2011/05/16 17:21:37 mhitch Exp $	*/
 /*	$OpenBSD: ciss.c,v 1.14 2006/03/13 16:02:23 mickey Exp $	*/
 
 /*
@@ -19,7 +19,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: ciss.c,v 1.24 2010/11/13 13:52:00 uebayasi Exp $);
+__KERNEL_RCSID(0, $NetBSD: ciss.c,v 1.25 2011/05/16 17:21:37 mhitch Exp $);
 
 #include bio.h
 
@@ -373,7 +373,7 @@
 
 	sc-sc_adapter.adapt_dev = (device_t) sc;
 	sc-sc_adapter.adapt_openings = sc-sc_channel.chan_openings;
-	sc-sc_adapter.adapt_max_periph = sc-sc_channel.chan_openings;
+	sc-sc_adapter.adapt_max_periph = min(sc-sc_adapter.adapt_openings, 256);
 	sc-sc_adapter.adapt_request = ciss_scsi_cmd;
 	sc-sc_adapter.adapt_minphys = cissminphys;
 	sc-sc_adapter.adapt_ioctl = ciss_scsi_ioctl;



CVS commit: othersrc/external/bsd/gensetlist

2011-05-16 Thread Alistair G. Crooks
Module Name:othersrc
Committed By:   agc
Date:   Tue May 17 00:22:44 UTC 2011

Modified Files:
othersrc/external/bsd/gensetlist: gensetlist.c

Log Message:
print the set name for scripts as well as program definitions (or both)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 othersrc/external/bsd/gensetlist/gensetlist.c

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

Modified files:

Index: othersrc/external/bsd/gensetlist/gensetlist.c
diff -u othersrc/external/bsd/gensetlist/gensetlist.c:1.4 othersrc/external/bsd/gensetlist/gensetlist.c:1.5
--- othersrc/external/bsd/gensetlist/gensetlist.c:1.4	Sat May 14 00:08:45 2011
+++ othersrc/external/bsd/gensetlist/gensetlist.c	Tue May 17 00:22:44 2011
@@ -394,10 +394,13 @@
 pdefs(vars, buf, sizeof(buf), NULL));
 		}
 	}
-	/* programs */
-	if (vars.progname[0]) {
+	/* if a program or a script, then print the set name */
+	if (vars.progname[0] || vars.scriptc  0) {
 		psetname(setname, sizeof(setname),
 			\n[src/distrib/sets/lists/base/mi]\n);
+	}
+	/* programs */
+	if (vars.progname[0]) {
 		printf(.%s/%s\t\tbase-%s-bin\t%s\n,
 			vars.bindir, vars.progname, vars.category,
 			pdefs(vars, buf, sizeof(buf), NULL));



CVS commit: src/share/mk

2011-05-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue May 17 01:12:34 UTC 2011

Modified Files:
src/share/mk: bsd.kmodule.mk bsd.sys.mk

Log Message:
Enable c99 mode by default.

This has the side effect of complaining for missing prototypes
implicit type declarations and missing return statements.

NB: I've only ran a build on amd64, so other platforms MI code might break.
If you can't wait for me to fix them, revert this commit.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/share/mk/bsd.kmodule.mk
cvs rdiff -u -r1.193 -r1.194 src/share/mk/bsd.sys.mk

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

Modified files:

Index: src/share/mk/bsd.kmodule.mk
diff -u src/share/mk/bsd.kmodule.mk:1.28 src/share/mk/bsd.kmodule.mk:1.29
--- src/share/mk/bsd.kmodule.mk:1.28	Sun Apr 17 05:47:40 2011
+++ src/share/mk/bsd.kmodule.mk	Mon May 16 21:12:34 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.kmodule.mk,v 1.28 2011/04/17 09:47:40 mrg Exp $
+#	$NetBSD: bsd.kmodule.mk,v 1.29 2011/05/17 01:12:34 christos Exp $
 
 # We are not building this with PIE
 MKPIE=no
@@ -17,7 +17,6 @@
 CPPFLAGS+=	-nostdinc -I. -I${.CURDIR} -isystem $S -isystem $S/arch
 CPPFLAGS+=	-isystem ${S}/../common/include
 CPPFLAGS+=	-D_KERNEL -D_LKM -D_MODULE
-CPPFLAGS+=	-std=gnu99
 
 # XXX until the kernel is fixed again...
 .if (defined(HAVE_GCC)  ${HAVE_GCC} == 4) || defined(HAVE_PCC)

Index: src/share/mk/bsd.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.193 src/share/mk/bsd.sys.mk:1.194
--- src/share/mk/bsd.sys.mk:1.193	Sat Dec 25 13:56:45 2010
+++ src/share/mk/bsd.sys.mk	Mon May 16 21:12:34 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.sys.mk,v 1.193 2010/12/25 18:56:45 joerg Exp $
+#	$NetBSD: bsd.sys.mk,v 1.194 2011/05/17 01:12:34 christos Exp $
 #
 # Build definitions used for NetBSD source tree builds.
 
@@ -10,6 +10,13 @@
 CPPFLAGS+=	-Wp,-iremap,${DESTDIR}/:/
 .endif
 
+# Enable c99 mode by default.
+# This has the side effect of complaining for missing prototypes
+# implicit type declarations and missing return statements.
+.if defined(HAVE_GCC)  ${HAVE_GCC} = 3
+CFLAGS+=	-std=gnu99
+.endif
+
 .if defined(WARNS)
 .if ${WARNS}  0
 CFLAGS+=	-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
@@ -47,7 +54,6 @@
 .endif
 .if ${WARNS}  3  defined(HAVE_GCC)  ${HAVE_GCC} = 3
 CFLAGS+=	-Wsign-compare
-CFLAGS+=	-std=gnu99
 .endif
 .endif
 



CVS commit: src/lib/libc

2011-05-16 Thread enami tsugutomo
Module Name:src
Committed By:   enami
Date:   Tue May 17 03:35:39 UTC 2011

Modified Files:
src/lib/libc/gen: vis.3
src/lib/libc/regex: regex.3
src/lib/libc/rpc: rpc_clnt_create.3

Log Message:
Use Pq or Po macro for better output rather than putting raw open paren
at the end of line.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/lib/libc/gen/vis.3
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/regex/regex.3
cvs rdiff -u -r1.11 -r1.12 src/lib/libc/rpc/rpc_clnt_create.3

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

Modified files:

Index: src/lib/libc/gen/vis.3
diff -u src/lib/libc/gen/vis.3:1.25 src/lib/libc/gen/vis.3:1.26
--- src/lib/libc/gen/vis.3:1.25	Sun Mar 13 09:12:35 2011
+++ src/lib/libc/gen/vis.3	Tue May 17 03:35:38 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: vis.3,v 1.25 2011/03/13 09:12:35 wiz Exp $
+.\	$NetBSD: vis.3,v 1.26 2011/05/17 03:35:38 enami Exp $
 .\
 .\ Copyright (c) 1989, 1991, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -429,13 +429,13 @@
 .Fn strsvisx
 functions appeared in
 .Nx 1.5 .
-The buffer size limited versions of the functions (
-.Fn nvis ,
+The buffer size limited versions of the functions
+.Po Fn nvis ,
 .Fn strnvis ,
 .Fn strnvisx ,
 .Fn snvis ,
 .Fn strsnvis ,
 and 
-.Fn strsnvisx )
+.Fn strsnvisx Pc
 appeared in
 .Nx 6.0 .

Index: src/lib/libc/regex/regex.3
diff -u src/lib/libc/regex/regex.3:1.21 src/lib/libc/regex/regex.3:1.22
--- src/lib/libc/regex/regex.3:1.21	Mon Mar 22 19:30:54 2010
+++ src/lib/libc/regex/regex.3	Tue May 17 03:35:38 2011
@@ -1,4 +1,4 @@
-.\	$NetBSD: regex.3,v 1.21 2010/03/22 19:30:54 joerg Exp $
+.\	$NetBSD: regex.3,v 1.22 2011/05/17 03:35:38 enami Exp $
 .\
 .\ Copyright (c) 1992, 1993, 1994
 .\	The Regents of the University of California.  All rights reserved.
@@ -394,11 +394,11 @@
 it should have been the result from the most recent
 .Fn regcomp
 using that
-.Fa regex_t . (
-.Fn regerror
+.Fa regex_t .
+.Po Fn regerror
 may be able to supply a more detailed message using information
 from the
-.Fa regex_t . )
+.Fa regex_t . Pc
 .Fn regerror
 places the NUL-terminated message into the buffer pointed to by
 .Fa errbuf ,

Index: src/lib/libc/rpc/rpc_clnt_create.3
diff -u src/lib/libc/rpc/rpc_clnt_create.3:1.11 src/lib/libc/rpc/rpc_clnt_create.3:1.12
--- src/lib/libc/rpc/rpc_clnt_create.3:1.11	Sat May 23 18:57:25 2009
+++ src/lib/libc/rpc/rpc_clnt_create.3	Tue May 17 03:35:39 2011
@@ -2,7 +2,7 @@
 .\ Copyright 1989 ATT
 .\ @(#)rpc_clnt_create 1.5 89/07/24 SMI;
 .\ Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved.
-.\	$NetBSD: rpc_clnt_create.3,v 1.11 2009/05/23 18:57:25 christos Exp $
+.\	$NetBSD: rpc_clnt_create.3,v 1.12 2011/05/17 03:35:39 enami Exp $
 .Dd May 23, 2009
 .Dt RPC_CLNT_CREATE 3
 .Os
@@ -84,8 +84,8 @@
 Note:
 If you set the timeout value to 0
 .Fn clnt_control
-immediately returns an error (
-.Dv RPC_TIMEDOUT ) .
+immediately returns an error
+.Pq Dv RPC_TIMEDOUT .
 Set the timeout parameter to 0 for batching calls.
 .Bl -column CLSET_FD_NCLOSE struct timeval * do not close fd on destroy
 .It Dv CLGET_SVC_ADDR Ta struct netbuf * Ta get servers address



CVS commit: othersrc/external/bsd/genraidconf

2011-05-16 Thread Alistair G. Crooks
Module Name:othersrc
Committed By:   agc
Date:   Tue May 17 03:48:50 UTC 2011

Update of /cvsroot/othersrc/external/bsd/genraidconf
In directory ivanova.netbsd.org:/tmp/cvs-serv2114

Log Message:
initial import of genraidconf, an embryonic RAIDframe configuration file
generator, into opthersrc.

 The genraidconf command constructs a configuration file for a RAID set.
 It uses various pieces of information to construct a number of disklabels
 for the RAID set component disks using disklabel(8), and a configuration
 file for RAID frame itself, raid(4) producing a file as described in
 raidctl(8).

It also can zero components before use, performs some basic sanity checks
on its inputs, and, in general, prepares the RAID set to the stage where a
newfs(8) may occur on it.

This utility is embryonic, since it needs much more testing. As such, it
must be considered experimental at this stage.

Examples of sage:

 % uname -m
 amd64
 % genraidconf.sh -n -o raid5 -d raid0 sd0 sd1 sd2
 fdisk -uai -A 2048 sd0a
 fdisk -uai -A 2048 sd1a
 fdisk -uai -A 2048 sd2a
 disklabel -R sd0 /tmp/label.20322a
 disklabel -R sd1 /tmp/label.20322a
 disklabel -R sd2 /tmp/label.20322a
 raidctl -I 20110516143616 raid0
 raidctl -i raid0
 raidctl -A yes raid0
 % genraidconf.sh -n -o raid1 -d raid1 sd0 sd1 sd2
 RAIDframe RAID1 requires 2 disks
 % genraidconf.sh -n -r 1 -d raid1 sd0 sd1
 fdisk -uai -A 2048 sd0a
 fdisk -uai -A 2048 sd1a
 disklabel -R sd0 /tmp/label.26009a
 disklabel -R sd1 /tmp/label.26009a
 raidctl -I 20110516143702 raid1
 raidctl -i raid1
 raidctl -A yes raid1
 % genraidconf.sh -n -o raid1 -d raid1 -o zero sd0 sd1
 dd if=/dev/zero bs=32k of=/dev/rsd0a
 dd if=/dev/zero bs=32k of=/dev/rsd1a
 fdisk -uai -A 2048 sd0a
 fdisk -uai -A 2048 sd1a
 disklabel -R sd0 /tmp/label.23760a
 disklabel -R sd1 /tmp/label.23760a
 raidctl -I 20110516143710 raid1
 raidctl -i raid1
 raidctl -A yes raid1
 % genraidconf.sh -n -o raid1 -d raid1 -o zero -o root sd0 sd1
 dd if=/dev/zero bs=32k of=/dev/rsd0a
 dd if=/dev/zero bs=32k of=/dev/rsd1a
 fdisk -uai -A 2048 sd0a
 fdisk -uai -A 2048 sd1a
 disklabel -R sd0 /tmp/label.25286a
 disklabel -R sd1 /tmp/label.25286a
 raidctl -I 20110516143738 raid1
 raidctl -i raid1
 raidctl -A yes raid1
 raidctl -A root raid1
 %

With a huge thankyou to Matthew Green for guidance on a number of
issues.


Status:

Vendor Tag: CROOKS
Release Tags:   genraidconf-base

N othersrc/external/bsd/genraidconf/genraidconf.8
N othersrc/external/bsd/genraidconf/genraidconf.sh
N othersrc/external/bsd/genraidconf/Makefile

No conflicts created by this import



CVS commit: othersrc/external/bsd/genraidconf

2011-05-16 Thread Alistair G. Crooks
Module Name:othersrc
Committed By:   agc
Date:   Tue May 17 03:51:40 UTC 2011

Modified Files:
othersrc/external/bsd/genraidconf: genraidconf.8

Log Message:
invoke the commands in the example properly


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 othersrc/external/bsd/genraidconf/genraidconf.8

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

Modified files:

Index: othersrc/external/bsd/genraidconf/genraidconf.8
diff -u othersrc/external/bsd/genraidconf/genraidconf.8:1.1.1.1 othersrc/external/bsd/genraidconf/genraidconf.8:1.2
--- othersrc/external/bsd/genraidconf/genraidconf.8:1.1.1.1	Tue May 17 03:48:50 2011
+++ othersrc/external/bsd/genraidconf/genraidconf.8	Tue May 17 03:51:40 2011
@@ -1,4 +1,4 @@
-.\ $NetBSD: genraidconf.8,v 1.1.1.1 2011/05/17 03:48:50 agc Exp $
+.\ $NetBSD: genraidconf.8,v 1.2 2011/05/17 03:51:40 agc Exp $
 .\
 .\ Copyright (c) 2011 Alistair Crooks a...@netbsd.org
 .\ All rights reserved.
@@ -116,7 +116,7 @@
 .Bd -literal
 % uname -m
 amd64
-% genraidconf.sh -n -o raid5 -d raid0 sd0 sd1 sd2
+% genraidconf -n -o raid5 -d raid0 sd0 sd1 sd2
 fdisk -uai -A 2048 sd0a
 fdisk -uai -A 2048 sd1a
 fdisk -uai -A 2048 sd2a
@@ -126,9 +126,9 @@
 raidctl -I 20110516143616 raid0
 raidctl -i raid0
 raidctl -A yes raid0
-% genraidconf.sh -n -o raid1 -d raid1 sd0 sd1 sd2
+% genraidconf -n -o raid1 -d raid1 sd0 sd1 sd2
 RAIDframe RAID1 requires 2 disks
-% genraidconf.sh -n -r 1 -d raid1 sd0 sd1
+% genraidconf -n -r 1 -d raid1 sd0 sd1
 fdisk -uai -A 2048 sd0a
 fdisk -uai -A 2048 sd1a
 disklabel -R sd0 /tmp/label.26009a
@@ -136,7 +136,7 @@
 raidctl -I 20110516143702 raid1
 raidctl -i raid1
 raidctl -A yes raid1
-% genraidconf.sh -n -o raid1 -d raid1 -o zero sd0 sd1
+% genraidconf -n -o raid1 -d raid1 -o zero sd0 sd1
 dd if=/dev/zero bs=32k of=/dev/rsd0a
 dd if=/dev/zero bs=32k of=/dev/rsd1a
 fdisk -uai -A 2048 sd0a
@@ -146,7 +146,7 @@
 raidctl -I 20110516143710 raid1
 raidctl -i raid1
 raidctl -A yes raid1
-% genraidconf.sh -n -o raid1 -d raid1 -o zero -o root sd0 sd1
+% genraidconf -n -o raid1 -d raid1 -o zero -o root sd0 sd1
 dd if=/dev/zero bs=32k of=/dev/rsd0a
 dd if=/dev/zero bs=32k of=/dev/rsd1a
 fdisk -uai -A 2048 sd0a



CVS commit: src

2011-05-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue May 17 04:18:07 UTC 2011

Modified Files:
src/sys/arch/sparc64/conf: GENERIC
src/sys/conf: files
src/sys/ddb: db_command.c
src/sys/dev/ic: sl811hs.c
src/sys/uvm: uvm.h uvm_ddb.h uvm_map.c uvm_stat.c uvm_stat.h
src/usr.bin/vmstat: vmstat.c
Added Files:
src/sys/kern: kern_history.c
src/sys/sys: kernhist.h

Log Message:
move and rename the uvm history code out of uvm_stat to kernhist.

rename UVMHIST option to enable the uvm histories.

TODO:
- make UVMHIST properly depend upon KERNHIST
- enable dynamic registration of histories.  this is mostly just
  allocating something in a bitmap, and is only for viewing multiple
  histories in a merged form.

tested on amd64 and sparc64.


To generate a diff of this commit:
cvs rdiff -u -r1.137 -r1.138 src/sys/arch/sparc64/conf/GENERIC
cvs rdiff -u -r1.1011 -r1.1012 src/sys/conf/files
cvs rdiff -u -r1.135 -r1.136 src/sys/ddb/db_command.c
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/ic/sl811hs.c
cvs rdiff -u -r0 -r1.1 src/sys/kern/kern_history.c
cvs rdiff -u -r0 -r1.1 src/sys/sys/kernhist.h
cvs rdiff -u -r1.61 -r1.62 src/sys/uvm/uvm.h
cvs rdiff -u -r1.14 -r1.15 src/sys/uvm/uvm_ddb.h
cvs rdiff -u -r1.296 -r1.297 src/sys/uvm/uvm_map.c
cvs rdiff -u -r1.36 -r1.37 src/sys/uvm/uvm_stat.c
cvs rdiff -u -r1.49 -r1.50 src/sys/uvm/uvm_stat.h
cvs rdiff -u -r1.180 -r1.181 src/usr.bin/vmstat/vmstat.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/sparc64/conf/GENERIC
diff -u src/sys/arch/sparc64/conf/GENERIC:1.137 src/sys/arch/sparc64/conf/GENERIC:1.138
--- src/sys/arch/sparc64/conf/GENERIC:1.137	Thu May 12 07:06:00 2011
+++ src/sys/arch/sparc64/conf/GENERIC	Tue May 17 04:18:05 2011
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.137 2011/05/12 07:06:00 mrg Exp $
+# $NetBSD: GENERIC,v 1.138 2011/05/17 04:18:05 mrg Exp $
 #
 # GENERIC machine description file
 #
@@ -22,7 +22,7 @@
 
 options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
 
-#ident 		GENERIC-$Revision: 1.137 $
+#ident 		GENERIC-$Revision: 1.138 $
 
 maxusers	64
 
@@ -99,7 +99,7 @@
 ## Compile the kernel with debugging symbols (`netbsd.gdb' is the debug file),
 ## such that gdb(1) can be used on a kernel coredump.
 
-#makeoptions	DEBUG=-g
+makeoptions	DEBUG=-g
 
 
 ## Adds code to the kernel that does internal consistency checks, and will

Index: src/sys/conf/files
diff -u src/sys/conf/files:1.1011 src/sys/conf/files:1.1012
--- src/sys/conf/files:1.1011	Thu May  5 17:38:35 2011
+++ src/sys/conf/files	Tue May 17 04:18:06 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: files,v 1.1011 2011/05/05 17:38:35 drochner Exp $
+#	$NetBSD: files,v 1.1012 2011/05/17 04:18:06 mrg Exp $
 #	@(#)files.newconf	7.5 (Berkeley) 5/10/93
 
 version 	20100430
@@ -1384,6 +1384,13 @@
 include uvm/files.uvm
 
 #
+# Kernel history/tracing. Old UVMHIST depends upon this.
+# XXXMRG can't make UVMHIST depend properly on KERNHIST?
+#
+defflag opt_kernhist.h			KERNHIST KERNHIST_PRINT
+file	kern/kern_history.c		kernhist
+
+#
 # Security models
 #
 include secmodel/files.secmodel

Index: src/sys/ddb/db_command.c
diff -u src/sys/ddb/db_command.c:1.135 src/sys/ddb/db_command.c:1.136
--- src/sys/ddb/db_command.c:1.135	Sun Apr 10 20:59:22 2011
+++ src/sys/ddb/db_command.c	Tue May 17 04:18:06 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: db_command.c,v 1.135 2011/04/10 20:59:22 christos Exp $	*/
+/*	$NetBSD: db_command.c,v 1.136 2011/05/17 04:18:06 mrg Exp $	*/
 
 /*
  * Copyright (c) 1996, 1997, 1998, 1999, 2002, 2009 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: db_command.c,v 1.135 2011/04/10 20:59:22 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: db_command.c,v 1.136 2011/05/17 04:18:06 mrg Exp $);
 
 #ifdef _KERNEL_OPT
 #include opt_aio.h
@@ -68,7 +68,7 @@
 #include opt_kgdb.h
 #include opt_mqueue.h
 #include opt_inet.h
-#include opt_uvmhist.h
+#include opt_kernhist.h
 #include opt_ddbparam.h
 #include opt_multiprocessor.h
 #include arp.h
@@ -90,6 +90,7 @@
 #include sys/cpu.h
 #include sys/buf.h
 #include sys/module.h
+#include sys/kernhist.h
 
 /*include queue macros*/
 #include sys/queue.h
@@ -205,8 +206,8 @@
 static void	db_sync_cmd(db_expr_t, bool, db_expr_t, const char *);
 static void	db_whatis_cmd(db_expr_t, bool, db_expr_t, const char *);
 static void	db_uvmexp_print_cmd(db_expr_t, bool, db_expr_t, const char *);
-#ifdef UVMHIST
-static void	db_uvmhist_print_cmd(db_expr_t, bool, db_expr_t, const char *);
+#ifdef KERNHIST
+static void	db_kernhist_print_cmd(db_expr_t, bool, db_expr_t, const char *);
 #endif
 static void	db_vnode_print_cmd(db_expr_t, bool, db_expr_t, const char *);
 static void	db_vmem_print_cmd(db_expr_t, bool, db_expr_t, const char *);
@@ -276,8 +277,8 @@
 	{ DDB_ADD_CMD(uvmexp,	db_uvmexp_print_cmd, 0,
 	Print a selection of UVM counters and statistics.,
 	NULL,NULL) },

CVS commit: src/sys/netinet6

2011-05-16 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Tue May 17 04:39:57 UTC 2011

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

Log Message:
Add missing $NetBSD$ header.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/netinet6/in6_src.c

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

Modified files:

Index: src/sys/netinet6/in6_src.c
diff -u src/sys/netinet6/in6_src.c:1.50 src/sys/netinet6/in6_src.c:1.51
--- src/sys/netinet6/in6_src.c:1.50	Tue May  3 18:28:45 2011
+++ src/sys/netinet6/in6_src.c	Tue May 17 04:39:57 2011
@@ -1,3 +1,4 @@
+/*	$NetBSD: in6_src.c,v 1.51 2011/05/17 04:39:57 dholland Exp $	*/
 /*	$KAME: in6_src.c,v 1.159 2005/10/19 01:40:32 t-momose Exp $	*/
 
 /*
@@ -65,7 +66,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: in6_src.c,v 1.50 2011/05/03 18:28:45 dyoung Exp $);
+__KERNEL_RCSID(0, $NetBSD: in6_src.c,v 1.51 2011/05/17 04:39:57 dholland Exp $);
 
 #include opt_inet.h
 



CVS commit: src/sys/netinet

2011-05-16 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Tue May 17 05:40:24 UTC 2011

Modified Files:
src/sys/netinet: tcp_input.c

Log Message:
typo in comment


To generate a diff of this commit:
cvs rdiff -u -r1.312 -r1.313 src/sys/netinet/tcp_input.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/netinet/tcp_input.c
diff -u src/sys/netinet/tcp_input.c:1.312 src/sys/netinet/tcp_input.c:1.313
--- src/sys/netinet/tcp_input.c:1.312	Tue May  3 18:28:45 2011
+++ src/sys/netinet/tcp_input.c	Tue May 17 05:40:24 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: tcp_input.c,v 1.312 2011/05/03 18:28:45 dyoung Exp $	*/
+/*	$NetBSD: tcp_input.c,v 1.313 2011/05/17 05:40:24 dholland Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -148,7 +148,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: tcp_input.c,v 1.312 2011/05/03 18:28:45 dyoung Exp $);
+__KERNEL_RCSID(0, $NetBSD: tcp_input.c,v 1.313 2011/05/17 05:40:24 dholland Exp $);
 
 #include opt_inet.h
 #include opt_ipsec.h
@@ -2248,7 +2248,7 @@
 			TCP_STATINC(TCP_STAT_CONNECTS);
 			/*
 			 * move tcp_established before soisconnected
-			 * becasue upcall handler can drive tcp_output
+			 * because upcall handler can drive tcp_output
 			 * functionality.
 			 * XXX we might call soisconnected at the end of
 			 * all processing



CVS commit: src

2011-05-16 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Mon May 16 07:59:19 UTC 2011

Modified Files:
src/include: fenv.h
src/tests/lib/libc/stdlib: t_strtod.c

Log Message:
The support of fenv.h is actually for __sparc64__, not for __sparc__
(which is also defined on sparc64).  This fixes a build problem for
plain sparc.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/include/fenv.h
cvs rdiff -u -r1.9 -r1.10 src/tests/lib/libc/stdlib/t_strtod.c

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



CVS commit: src/sys/netipsec

2011-05-16 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Mon May 16 10:00:32 UTC 2011

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

Log Message:
cosmetical whitespace changes


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/netipsec/ipsec.c

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



CVS commit: src/sys/netipsec

2011-05-16 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Mon May 16 10:02:30 UTC 2011

Modified Files:
src/sys/netipsec: ipsec.h keydb.h

Log Message:
use time_t rather than long for timestamps


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/netipsec/ipsec.h
cvs rdiff -u -r1.8 -r1.9 src/sys/netipsec/keydb.h

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



CVS commit: src/sys/netipsec

2011-05-16 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Mon May 16 10:04:02 UTC 2011

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

Log Message:
remove a useless m_freem() call where the argument is known to be NULL


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/netipsec/keysock.c

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



CVS commit: src/sys/netipsec

2011-05-16 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Mon May 16 10:05:23 UTC 2011

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

Log Message:
remove redundant declaration


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/netipsec/ipsec_mbuf.c

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



CVS commit: src/sys/opencrypto

2011-05-16 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Mon May 16 10:18:52 UTC 2011

Modified Files:
src/sys/opencrypto: cryptodev.h

Log Message:
remove redundant declarations


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/opencrypto/cryptodev.h

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



CVS commit: src/sys/opencrypto

2011-05-16 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Mon May 16 10:27:49 UTC 2011

Modified Files:
src/sys/opencrypto: crypto.c cryptodev.c ocryptodev.c

Log Message:
split the crypto_mtx spinlock into 3: one spinlock each for
the incoming and outgoing request queues (which can be dealt with
by hardware accelerators) and an adaptive lock for all the rest
(mostly driver configuration, but also some unrelated stuff in
cryptodev.c which should be revisited)
The latter one seems to be uneeded at many places, but for now I've
done simple replacements only, except minor fixes (where
softint_schedule() was called without the lock held)


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/opencrypto/crypto.c
cvs rdiff -u -r1.56 -r1.57 src/sys/opencrypto/cryptodev.c
cvs rdiff -u -r1.3 -r1.4 src/sys/opencrypto/ocryptodev.c

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



CVS commit: src/lib/libcrypt

2011-05-16 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Mon May 16 10:39:12 UTC 2011

Modified Files:
src/lib/libcrypt: hmac.c

Log Message:
fix ipad/opad buffer length (was one too much), just for sanity


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libcrypt/hmac.c

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



CVS commit: src/lib/libcrypt

2011-05-16 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Mon May 16 10:45:56 UTC 2011

Modified Files:
src/lib/libcrypt: bcrypt.c

Log Message:
-fix maximum length of salt (missing prefix, rounding error)
-clip number of rounds at 31 -- this is log2 of the real number,
 and anything larger would break exponentation
-catch possible atoi() error where log2(rounds) is parsed in the
 salt prefix
-zero crypto state on exit
from Open/FreeBSD


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

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



CVS commit: src/sys/dev/usb

2011-05-16 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Mon May 16 10:53:20 UTC 2011

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

Log Message:
fix detach() to avoid use-after-free problems:
-stop transfers before freeing data structures
 (and comment out a useless delay)
-free devinfo later
Hot-unplugging an USB cam while in use doesn't crash my box anymore now.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/usb/uvideo.c

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



CVS commit: src/regress/sys/fs/lseek

2011-05-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon May 16 12:43:59 UTC 2011

Modified Files:
src/regress/sys/fs/lseek: lseek.c

Log Message:
use err instead of printf, fix missing prototypes.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/regress/sys/fs/lseek/lseek.c

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



CVS commit: src/sys/arch

2011-05-16 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Mon May 16 13:22:56 UTC 2011

Modified Files:
src/sys/arch/amiga/amiga: machdep.c
src/sys/arch/amiga/include: cpu.h
src/sys/arch/atari/atari: machdep.c
src/sys/arch/atari/include: cpu.h
src/sys/arch/cesfic/cesfic: machdep.c
src/sys/arch/cesfic/include: cpu.h
src/sys/arch/hp300/hp300: machdep.c
src/sys/arch/hp300/include: cpu.h
src/sys/arch/luna68k/conf: files.luna68k
src/sys/arch/luna68k/include: cpu.h
src/sys/arch/luna68k/luna68k: machdep.c
src/sys/arch/m68k/include: m68k.h
src/sys/arch/m68k/m68k: m68k_machdep.c
src/sys/arch/mac68k/include: cpu.h
src/sys/arch/mac68k/mac68k: machdep.c
src/sys/arch/mvme68k/mvme68k: machdep.c
src/sys/arch/news68k/include: cpu.h
src/sys/arch/news68k/news68k: machdep.c
src/sys/arch/next68k/include: cpu.h
src/sys/arch/next68k/next68k: machdep.c
src/sys/arch/sun2/sun2: machdep.c
src/sys/arch/sun3/sun3: machdep.c machdep.h
src/sys/arch/sun3/sun3x: machdep.c
src/sys/arch/x68k/include: cpu.h
src/sys/arch/x68k/x68k: machdep.c

Log Message:
- merge and move pasted m68k MD setreg() functions into m68k/m68k_machdep.c
- move m68881_save() and m68881_restore() declarations into m68k/m68k.h

Briefly tested and no obvious breakage on atari, sun3, and x68k.


To generate a diff of this commit:
cvs rdiff -u -r1.232 -r1.233 src/sys/arch/amiga/amiga/machdep.c
cvs rdiff -u -r1.78 -r1.79 src/sys/arch/amiga/include/cpu.h
cvs rdiff -u -r1.170 -r1.171 src/sys/arch/atari/atari/machdep.c
cvs rdiff -u -r1.66 -r1.67 src/sys/arch/atari/include/cpu.h
cvs rdiff -u -r1.58 -r1.59 src/sys/arch/cesfic/cesfic/machdep.c
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/cesfic/include/cpu.h
cvs rdiff -u -r1.221 -r1.222 src/sys/arch/hp300/hp300/machdep.c
cvs rdiff -u -r1.65 -r1.66 src/sys/arch/hp300/include/cpu.h
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/luna68k/conf/files.luna68k
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/luna68k/include/cpu.h
cvs rdiff -u -r1.78 -r1.79 src/sys/arch/luna68k/luna68k/machdep.c
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/m68k/include/m68k.h
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/m68k/m68k/m68k_machdep.c
cvs rdiff -u -r1.95 -r1.96 src/sys/arch/mac68k/include/cpu.h
cvs rdiff -u -r1.339 -r1.340 src/sys/arch/mac68k/mac68k/machdep.c
cvs rdiff -u -r1.147 -r1.148 src/sys/arch/mvme68k/mvme68k/machdep.c
cvs rdiff -u -r1.38 -r1.39 src/sys/arch/news68k/include/cpu.h
cvs rdiff -u -r1.93 -r1.94 src/sys/arch/news68k/news68k/machdep.c
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/next68k/include/cpu.h
cvs rdiff -u -r1.103 -r1.104 src/sys/arch/next68k/next68k/machdep.c
cvs rdiff -u -r1.68 -r1.69 src/sys/arch/sun2/sun2/machdep.c
cvs rdiff -u -r1.200 -r1.201 src/sys/arch/sun3/sun3/machdep.c
cvs rdiff -u -r1.36 -r1.37 src/sys/arch/sun3/sun3/machdep.h
cvs rdiff -u -r1.127 -r1.128 src/sys/arch/sun3/sun3x/machdep.c
cvs rdiff -u -r1.53 -r1.54 src/sys/arch/x68k/include/cpu.h
cvs rdiff -u -r1.176 -r1.177 src/sys/arch/x68k/x68k/machdep.c

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



CVS commit: src/include

2011-05-16 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon May 16 14:50:37 UTC 2011

Modified Files:
src/include: fenv.h

Log Message:
Actually test for sparc v9 architecture, doesn't matter if we are building
32bit or 64bit (fixes 32bit compat library build on sparc64 - yes, they
differ from native sparc libs!)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/include/fenv.h

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



CVS commit: src/sys/kern

2011-05-16 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Mon May 16 15:09:31 UTC 2011

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

Log Message:
Hack for PR 44961: restore the prior logic pertaining to looking up /
to prevent a crash when attempting rename(/, foo). This is not really
what I want going forward and it may cause e.g. rmdir(blah/) to fail, so
if it causes trouble for anyone back it out. The right fix is going to have
to wait until the qemu/tcp_vtw problems I ran into last night get sorted out.


To generate a diff of this commit:
cvs rdiff -u -r1.183 -r1.184 src/sys/kern/vfs_lookup.c

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



CVS commit: src/sys/dev/ic

2011-05-16 Thread Michael L. Hitch
Module Name:src
Committed By:   mhitch
Date:   Mon May 16 17:21:38 UTC 2011

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

Log Message:
I was allowing adapt_max_periph to use all available command slots, which
easily exceeds the maximum of 256 tags used by the scsipi layer because
the tag information from the scsipi layer was ignored and all the tagging
is handled implicitly internal to ciss(4).  But with the DIAGNOSTIC option,
the scsipi layer does a check for  256 tags and will panic.  So, lets just
limit the adapt_max_periph to 256 so the scsipi layer won't try to user more.


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

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



CVS commit: src

2011-05-16 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Mon May 16 19:27:48 UTC 2011

Modified Files:
src/external/bsd/llvm: Makefile.inc
src/external/bsd/llvm/config/llvm/Config: config.h
src/external/bsd/llvm/lib/libLLVMAsmPrinter: Makefile
src/external/bsd/llvm/lib/libLLVMExecutionEngine: Makefile
src/tools/llvm: Makefile

Log Message:
Update to LLVM/Clang revision 131404. This includes the fix for asm labels
on builtins (broke longjmp usage) and a better cross-compiling support
in combination with -m32/-m64.

Update configuration to include /usr/include/clang-3.0 in the search
path.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/bsd/llvm/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 src/external/bsd/llvm/config/llvm/Config/config.h
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/llvm/lib/libLLVMAsmPrinter/Makefile
cvs rdiff -u -r1.1 -r1.2 \
src/external/bsd/llvm/lib/libLLVMExecutionEngine/Makefile
cvs rdiff -u -r1.3 -r1.4 src/tools/llvm/Makefile

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



CVS commit: src/regress/sys/kern/sigtramp

2011-05-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon May 16 21:51:31 UTC 2011

Modified Files:
src/regress/sys/kern/sigtramp: sigtramp.c

Log Message:
fix prototypes.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/regress/sys/kern/sigtramp/sigtramp.c

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



CVS commit: othersrc/external/bsd/gensetlist

2011-05-16 Thread Alistair G. Crooks
Module Name:othersrc
Committed By:   agc
Date:   Tue May 17 00:22:44 UTC 2011

Modified Files:
othersrc/external/bsd/gensetlist: gensetlist.c

Log Message:
print the set name for scripts as well as program definitions (or both)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 othersrc/external/bsd/gensetlist/gensetlist.c

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



CVS commit: src/share/mk

2011-05-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue May 17 01:12:34 UTC 2011

Modified Files:
src/share/mk: bsd.kmodule.mk bsd.sys.mk

Log Message:
Enable c99 mode by default.

This has the side effect of complaining for missing prototypes
implicit type declarations and missing return statements.

NB: I've only ran a build on amd64, so other platforms MI code might break.
If you can't wait for me to fix them, revert this commit.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/share/mk/bsd.kmodule.mk
cvs rdiff -u -r1.193 -r1.194 src/share/mk/bsd.sys.mk

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



CVS commit: src/lib/libc

2011-05-16 Thread enami tsugutomo
Module Name:src
Committed By:   enami
Date:   Tue May 17 03:35:39 UTC 2011

Modified Files:
src/lib/libc/gen: vis.3
src/lib/libc/regex: regex.3
src/lib/libc/rpc: rpc_clnt_create.3

Log Message:
Use Pq or Po macro for better output rather than putting raw open paren
at the end of line.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/lib/libc/gen/vis.3
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/regex/regex.3
cvs rdiff -u -r1.11 -r1.12 src/lib/libc/rpc/rpc_clnt_create.3

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



CVS commit: othersrc/external/bsd/genraidconf

2011-05-16 Thread Alistair G. Crooks
Module Name:othersrc
Committed By:   agc
Date:   Tue May 17 03:48:50 UTC 2011

Update of /cvsroot/othersrc/external/bsd/genraidconf
In directory ivanova.netbsd.org:/tmp/cvs-serv2114

Log Message:
initial import of genraidconf, an embryonic RAIDframe configuration file
generator, into opthersrc.

 The genraidconf command constructs a configuration file for a RAID set.
 It uses various pieces of information to construct a number of disklabels
 for the RAID set component disks using disklabel(8), and a configuration
 file for RAID frame itself, raid(4) producing a file as described in
 raidctl(8).

It also can zero components before use, performs some basic sanity checks
on its inputs, and, in general, prepares the RAID set to the stage where a
newfs(8) may occur on it.

This utility is embryonic, since it needs much more testing. As such, it
must be considered experimental at this stage.

Examples of sage:

 % uname -m
 amd64
 % genraidconf.sh -n -o raid5 -d raid0 sd0 sd1 sd2
 fdisk -uai -A 2048 sd0a
 fdisk -uai -A 2048 sd1a
 fdisk -uai -A 2048 sd2a
 disklabel -R sd0 /tmp/label.20322a
 disklabel -R sd1 /tmp/label.20322a
 disklabel -R sd2 /tmp/label.20322a
 raidctl -I 20110516143616 raid0
 raidctl -i raid0
 raidctl -A yes raid0
 % genraidconf.sh -n -o raid1 -d raid1 sd0 sd1 sd2
 RAIDframe RAID1 requires 2 disks
 % genraidconf.sh -n -r 1 -d raid1 sd0 sd1
 fdisk -uai -A 2048 sd0a
 fdisk -uai -A 2048 sd1a
 disklabel -R sd0 /tmp/label.26009a
 disklabel -R sd1 /tmp/label.26009a
 raidctl -I 20110516143702 raid1
 raidctl -i raid1
 raidctl -A yes raid1
 % genraidconf.sh -n -o raid1 -d raid1 -o zero sd0 sd1
 dd if=/dev/zero bs=32k of=/dev/rsd0a
 dd if=/dev/zero bs=32k of=/dev/rsd1a
 fdisk -uai -A 2048 sd0a
 fdisk -uai -A 2048 sd1a
 disklabel -R sd0 /tmp/label.23760a
 disklabel -R sd1 /tmp/label.23760a
 raidctl -I 20110516143710 raid1
 raidctl -i raid1
 raidctl -A yes raid1
 % genraidconf.sh -n -o raid1 -d raid1 -o zero -o root sd0 sd1
 dd if=/dev/zero bs=32k of=/dev/rsd0a
 dd if=/dev/zero bs=32k of=/dev/rsd1a
 fdisk -uai -A 2048 sd0a
 fdisk -uai -A 2048 sd1a
 disklabel -R sd0 /tmp/label.25286a
 disklabel -R sd1 /tmp/label.25286a
 raidctl -I 20110516143738 raid1
 raidctl -i raid1
 raidctl -A yes raid1
 raidctl -A root raid1
 %

With a huge thankyou to Matthew Green for guidance on a number of
issues.


Status:

Vendor Tag: CROOKS
Release Tags:   genraidconf-base

N othersrc/external/bsd/genraidconf/genraidconf.8
N othersrc/external/bsd/genraidconf/genraidconf.sh
N othersrc/external/bsd/genraidconf/Makefile

No conflicts created by this import



CVS commit: othersrc/external/bsd/genraidconf

2011-05-16 Thread Alistair G. Crooks
Module Name:othersrc
Committed By:   agc
Date:   Tue May 17 03:51:40 UTC 2011

Modified Files:
othersrc/external/bsd/genraidconf: genraidconf.8

Log Message:
invoke the commands in the example properly


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 othersrc/external/bsd/genraidconf/genraidconf.8

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



CVS commit: src

2011-05-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue May 17 04:18:07 UTC 2011

Modified Files:
src/sys/arch/sparc64/conf: GENERIC
src/sys/conf: files
src/sys/ddb: db_command.c
src/sys/dev/ic: sl811hs.c
src/sys/uvm: uvm.h uvm_ddb.h uvm_map.c uvm_stat.c uvm_stat.h
src/usr.bin/vmstat: vmstat.c
Added Files:
src/sys/kern: kern_history.c
src/sys/sys: kernhist.h

Log Message:
move and rename the uvm history code out of uvm_stat to kernhist.

rename UVMHIST option to enable the uvm histories.

TODO:
- make UVMHIST properly depend upon KERNHIST
- enable dynamic registration of histories.  this is mostly just
  allocating something in a bitmap, and is only for viewing multiple
  histories in a merged form.

tested on amd64 and sparc64.


To generate a diff of this commit:
cvs rdiff -u -r1.137 -r1.138 src/sys/arch/sparc64/conf/GENERIC
cvs rdiff -u -r1.1011 -r1.1012 src/sys/conf/files
cvs rdiff -u -r1.135 -r1.136 src/sys/ddb/db_command.c
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/ic/sl811hs.c
cvs rdiff -u -r0 -r1.1 src/sys/kern/kern_history.c
cvs rdiff -u -r0 -r1.1 src/sys/sys/kernhist.h
cvs rdiff -u -r1.61 -r1.62 src/sys/uvm/uvm.h
cvs rdiff -u -r1.14 -r1.15 src/sys/uvm/uvm_ddb.h
cvs rdiff -u -r1.296 -r1.297 src/sys/uvm/uvm_map.c
cvs rdiff -u -r1.36 -r1.37 src/sys/uvm/uvm_stat.c
cvs rdiff -u -r1.49 -r1.50 src/sys/uvm/uvm_stat.h
cvs rdiff -u -r1.180 -r1.181 src/usr.bin/vmstat/vmstat.c

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



CVS commit: src/sys/netinet6

2011-05-16 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Tue May 17 04:39:57 UTC 2011

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

Log Message:
Add missing $NetBSD$ header.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/netinet6/in6_src.c

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



CVS commit: src/sys

2011-05-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue May 17 05:32:31 UTC 2011

Modified Files:
src/sys/conf: files
src/sys/uvm: files.uvm

Log Message:
fix the ordering and make UVMHIST enable KERNHIST automatically.


To generate a diff of this commit:
cvs rdiff -u -r1.1012 -r1.1013 src/sys/conf/files
cvs rdiff -u -r1.19 -r1.20 src/sys/uvm/files.uvm

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



CVS commit: src/sys/netinet

2011-05-16 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Tue May 17 05:40:24 UTC 2011

Modified Files:
src/sys/netinet: tcp_input.c

Log Message:
typo in comment


To generate a diff of this commit:
cvs rdiff -u -r1.312 -r1.313 src/sys/netinet/tcp_input.c

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



CVS commit: src/sys/netinet

2011-05-16 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Tue May 17 05:42:40 UTC 2011

Modified Files:
src/sys/netinet: tcp_vtw.c tcp_vtw.h

Log Message:
typo in comment


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/netinet/tcp_vtw.c
cvs rdiff -u -r1.2 -r1.3 src/sys/netinet/tcp_vtw.h

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