Re: CVS commit: [jmcneill-usbmp] src/sys

2012-03-06 Thread Izumi Tsutsui
mrg@ wrote:

 Module Name:  src
 Committed By: mrg
 Date: Tue Mar  6 09:56:29 UTC 2012
 
 :
 Removed Files:
   src/sys/dev/pci [jmcneill-usbmp]: lynxfb.c lynxfbreg.h lynxfbvar.h
 
 Log Message:
 sync to -current

These removal look out of sync. (They were added in previous sync on March 4)
---
Izumi Tsutsui


re: CVS commit: [jmcneill-usbmp] src/sys

2012-03-06 Thread matthew green

  Module Name:src
  Committed By:   mrg
  Date:   Tue Mar  6 09:56:29 UTC 2012
  
  :
  Removed Files:
  src/sys/dev/pci [jmcneill-usbmp]: lynxfb.c lynxfbreg.h lynxfbvar.h
  
  Log Message:
  sync to -current
 
 These removal look out of sync. (They were added in previous sync on March 4)

yes - i tagged a slightly older tree than i thought i was.  so i went
backwards in time, and then forwards again.  it's fixed now.

thanks for looking closely.


.mrg.


CVS commit: src/share/man/man5

2012-03-06 Thread Iain Hibbert
Module Name:src
Committed By:   plunky
Date:   Tue Mar  6 10:12:59 UTC 2012

Modified Files:
src/share/man/man5: daily.5

Log Message:
mention run_makemandb


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man5/daily.5

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

Modified files:

Index: src/share/man/man5/daily.5
diff -u src/share/man/man5/daily.5:1.3 src/share/man/man5/daily.5:1.4
--- src/share/man/man5/daily.5:1.3	Wed Jun  1 11:10:59 2011
+++ src/share/man/man5/daily.5	Tue Mar  6 10:12:59 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: daily.5,v 1.3 2011/06/01 11:10:59 jruoho Exp $
+.\	$NetBSD: daily.5,v 1.4 2012/03/06 10:12:59 plunky Exp $
 .\
 .\ Copyright (c) 1996 Matthew R. Green
 .\ All rights reserved.
@@ -24,7 +24,7 @@
 .\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\ SUCH DAMAGE.
 .\
-.Dd June 1, 2011
+.Dd March 6, 2012
 .Dt DAILY 5
 .Os
 .Sh NAME
@@ -137,6 +137,15 @@ Runs the
 .Xr skeyaudit 1
 program to check the S/Key database and informs users of S/Keys that
 are about to expire.
+.It Sy run_makemandb
+If the
+.Pa /etc/man.conf
+file exists, runs the
+.Xr makemandb 8
+utility to update the
+.Pa man.db
+database for use by
+.Xr apropos 1 .
 .It Sy fetch_pkg_vulnerabilities
 Refreshes the local database of package vulnerabilities.
 See the settings in



CVS commit: src/share/man/man5

2012-03-06 Thread Iain Hibbert
Module Name:src
Committed By:   plunky
Date:   Tue Mar  6 10:23:10 UTC 2012

Modified Files:
src/share/man/man5: weekly.5

Log Message:
document rebuild_mandb


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man5/weekly.5

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

Modified files:

Index: src/share/man/man5/weekly.5
diff -u src/share/man/man5/weekly.5:1.3 src/share/man/man5/weekly.5:1.4
--- src/share/man/man5/weekly.5:1.3	Thu Jul 28 16:14:50 2011
+++ src/share/man/man5/weekly.5	Tue Mar  6 10:23:10 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: weekly.5,v 1.3 2011/07/28 16:14:50 mbalmer Exp $
+.\	$NetBSD: weekly.5,v 1.4 2012/03/06 10:23:10 plunky Exp $
 .\
 .\ Copyright (c) 1996 Matthew R. Green
 .\ All rights reserved.
@@ -24,7 +24,7 @@
 .\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\ SUCH DAMAGE.
 .\
-.Dd May 3, 2011
+.Dd March 6, 2012
 .Dt WEEKLY 5
 .Os
 .Sh NAME
@@ -63,6 +63,16 @@ This rebuilds the
 database,
 .Pa /var/db/locate.database ,
 which must also exist, in order to be rebuilt.
+.It Sy rebuild_mandb
+This rebuilds the
+.Xr apropos 1
+database 
+.Pa /var/db/man.db ,
+using
+.Xr makemandb 8
+with the
+.Fl f
+option.
 .It Sy rebuild_whatisdb
 This rebuilds the
 .Xr whatis 1



CVS commit: src/share/man/man5

2012-03-06 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Tue Mar  6 10:26:19 UTC 2012

Modified Files:
src/share/man/man5: weekly.5

Log Message:
Remove trailing whitespace.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man5/weekly.5

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

Modified files:

Index: src/share/man/man5/weekly.5
diff -u src/share/man/man5/weekly.5:1.4 src/share/man/man5/weekly.5:1.5
--- src/share/man/man5/weekly.5:1.4	Tue Mar  6 10:23:10 2012
+++ src/share/man/man5/weekly.5	Tue Mar  6 10:26:18 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: weekly.5,v 1.4 2012/03/06 10:23:10 plunky Exp $
+.\	$NetBSD: weekly.5,v 1.5 2012/03/06 10:26:18 wiz Exp $
 .\
 .\ Copyright (c) 1996 Matthew R. Green
 .\ All rights reserved.
@@ -66,7 +66,7 @@ which must also exist, in order to be re
 .It Sy rebuild_mandb
 This rebuilds the
 .Xr apropos 1
-database 
+database
 .Pa /var/db/man.db ,
 using
 .Xr makemandb 8



CVS commit: src/sbin/fsck_ffs

2012-03-06 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Tue Mar  6 10:30:20 UTC 2012

Modified Files:
src/sbin/fsck_ffs: fsck_ffs.8

Log Message:
Mention scan_ffs -b.
Based on a patch by Matthew Mondor mm_li...@pulsar-zone.net on
tech-userlevel.
Bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sbin/fsck_ffs/fsck_ffs.8

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

Modified files:

Index: src/sbin/fsck_ffs/fsck_ffs.8
diff -u src/sbin/fsck_ffs/fsck_ffs.8:1.48 src/sbin/fsck_ffs/fsck_ffs.8:1.49
--- src/sbin/fsck_ffs/fsck_ffs.8:1.48	Sat May 14 19:46:10 2011
+++ src/sbin/fsck_ffs/fsck_ffs.8	Tue Mar  6 10:30:20 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: fsck_ffs.8,v 1.48 2011/05/14 19:46:10 dholland Exp $
+.\	$NetBSD: fsck_ffs.8,v 1.49 2012/03/06 10:30:20 wiz Exp $
 .\
 .\ Copyright (c) 1980, 1989, 1991, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\
 .\	@(#)fsck.8	8.3 (Berkeley) 11/29/94
 .\
-.Dd May 14, 2011
+.Dd March 6, 2012
 .Dt FSCK_FFS 8
 .Os
 .Sh NAME
@@ -163,6 +163,12 @@ Use the block number
 .Ar block
 as the super block for the file system.
 Block 32 is usually an alternative super block.
+The
+.Fl b
+option of the
+.Xr scan_ffs 8
+utility can also be used to find the offset of other super block backups
+in a file system.
 .It Fl c Ar level
 Convert the FFSv1 file system to the level
 .Ar level .
@@ -367,4 +373,5 @@ are fully enumerated and explained in Ap
 .Xr fsck 8 ,
 .Xr fsdb 8 ,
 .Xr newfs 8 ,
-.Xr reboot 8
+.Xr reboot 8 ,
+.Xr scan_ffs 8



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

2012-03-06 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Mar  6 10:32:15 UTC 2012

Modified Files:
src/tests/lib/libc/sys: t_stat.c

Log Message:
A test case for PR kern/46077: fstat() returns EINVAL on dup'd connected
socket. Expected failure on NetBSD x86, 5.0 - 6.0. Does not fail on Linux.


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

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

Modified files:

Index: src/tests/lib/libc/sys/t_stat.c
diff -u src/tests/lib/libc/sys/t_stat.c:1.2 src/tests/lib/libc/sys/t_stat.c:1.3
--- src/tests/lib/libc/sys/t_stat.c:1.2	Sun Oct 16 08:28:10 2011
+++ src/tests/lib/libc/sys/t_stat.c	Tue Mar  6 10:32:15 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: t_stat.c,v 1.2 2011/10/16 08:28:10 jruoho Exp $ */
+/* $NetBSD: t_stat.c,v 1.3 2012/03/06 10:32:15 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,11 +29,14 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: t_stat.c,v 1.2 2011/10/16 08:28:10 jruoho Exp $);
+__RCSID($NetBSD: t_stat.c,v 1.3 2012/03/06 10:32:15 jruoho Exp $);
 
 #include sys/stat.h
+#include sys/socket.h
 #include sys/types.h
 
+#include arpa/inet.h
+
 #include atf-c.h
 #include errno.h
 #include fcntl.h
@@ -314,6 +317,51 @@ ATF_TC_CLEANUP(stat_size, tc)
 	(void)unlink(path);
 }
 
+ATF_TC(stat_socket);
+ATF_TC_HEAD(stat_socket, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test fstat(2) with a socket);
+}
+
+ATF_TC_BODY(stat_socket, tc)
+{
+	struct sockaddr_in addr;
+	struct stat st;
+	uint32_t iaddr;
+	int fd, flags;
+
+	atf_tc_expect_fail(PR kern/46077);
+
+	(void)memset(st, 0, sizeof(struct stat));
+	(void)memset(addr, 0, sizeof(struct sockaddr_in));
+
+	fd = socket(AF_INET, SOCK_STREAM, 0);
+	ATF_REQUIRE(fd = 0);
+
+	flags = fcntl(fd, F_GETFL);
+
+	ATF_REQUIRE(flags != -1);
+	ATF_REQUIRE(fcntl(fd, F_SETFL, flags | O_NONBLOCK) != -1);
+	ATF_REQUIRE(inet_pton(AF_INET, 127.0.0.1, iaddr) == 1);
+
+	addr.sin_port = htons(42);
+	addr.sin_family = AF_INET;
+	addr.sin_addr.s_addr = iaddr;
+
+	errno = 0;
+
+	ATF_REQUIRE_ERRNO(EINPROGRESS,
+	connect(fd, (struct sockaddr *)addr,
+		sizeof(struct sockaddr_in)) == -1);
+
+	errno = 0;
+
+	if (fstat(fd, st) != 0 || errno != 0)
+		atf_tc_fail(fstat(2) failed for a EINPROGRESS socket);
+
+	(void)close(fd);
+}
+
 ATF_TC_WITH_CLEANUP(stat_symlink);
 ATF_TC_HEAD(stat_symlink, tc)
 {
@@ -363,6 +411,7 @@ ATF_TP_ADD_TCS(tp)
 	ATF_TP_ADD_TC(tp, stat_mtime);
 	ATF_TP_ADD_TC(tp, stat_perm);
 	ATF_TP_ADD_TC(tp, stat_size);
+	ATF_TP_ADD_TC(tp, stat_socket);
 	ATF_TP_ADD_TC(tp, stat_symlink);
 
 	return atf_no_error();



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

2012-03-06 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Mar  6 11:02:56 UTC 2012

Modified Files:
src/tests/lib/libc/sys: t_mmap.c

Log Message:
A test case for serious PR kern/38889: crash on open/mmap/close of block
device. The test case is skipped for the time being as it replicates the
panic described in the PR (tested on NetBSD/amd64 6.0 BETA).


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

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

Modified files:

Index: src/tests/lib/libc/sys/t_mmap.c
diff -u src/tests/lib/libc/sys/t_mmap.c:1.2 src/tests/lib/libc/sys/t_mmap.c:1.3
--- src/tests/lib/libc/sys/t_mmap.c:1.2	Thu Jul 14 11:08:45 2011
+++ src/tests/lib/libc/sys/t_mmap.c	Tue Mar  6 11:02:55 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mmap.c,v 1.2 2011/07/14 11:08:45 jruoho Exp $ */
+/* $NetBSD: t_mmap.c,v 1.3 2012/03/06 11:02:55 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -55,7 +55,7 @@
  * SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: t_mmap.c,v 1.2 2011/07/14 11:08:45 jruoho Exp $);
+__RCSID($NetBSD: t_mmap.c,v 1.3 2012/03/06 11:02:55 jruoho Exp $);
 
 #include sys/param.h
 #include sys/mman.h
@@ -67,6 +67,7 @@ __RCSID($NetBSD: t_mmap.c,v 1.2 2011/07
 #include errno.h
 #include fcntl.h
 #include signal.h
+#include stdio.h
 #include stdlib.h
 #include string.h
 #include unistd.h
@@ -152,6 +153,42 @@ map_sighandler(int signo)
 	_exit(signo);
 }
 
+ATF_TC(mmap_block);
+ATF_TC_HEAD(mmap_block, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test mmap(2) with a block device);
+}
+
+ATF_TC_BODY(mmap_block, tc)
+{
+	static const char *dev[] = { /dev/wd0c, /dev/wd0d, /dev/wd0g };
+	char *map;
+	size_t i;
+	int fd;
+
+	atf_tc_skip(The test case causes a panic (PR kern/38889));
+
+	for (i = 0; i  __arraycount(dev); i++) {
+
+		if ((fd = open(dev[i], O_RDONLY)) = 0) {
+			(void)fprintf(stderr, using %s\n, dev[i]);
+			break;
+		}
+	}
+
+	if (i == __arraycount(dev))	/* Skip. */
+		return;
+
+	map = mmap(NULL, 4096, PROT_READ, MAP_FILE, fd, 0);
+	ATF_REQUIRE(map != MAP_FAILED);
+
+	(void)fprintf(stderr, first byte %x\n, *map);
+	ATF_REQUIRE(close(fd) == 0);
+	(void)fprintf(stderr, first byte %x\n, *map);
+
+	ATF_REQUIRE(munmap(map, 4096) == 0);
+}
+
 ATF_TC(mmap_err);
 ATF_TC_HEAD(mmap_err, tc)
 {
@@ -444,6 +481,7 @@ ATF_TP_ADD_TCS(tp)
 	page = sysconf(_SC_PAGESIZE);
 	ATF_REQUIRE(page = 0);
 
+	ATF_TP_ADD_TC(tp, mmap_block);
 	ATF_TP_ADD_TC(tp, mmap_err);
 	ATF_TP_ADD_TC(tp, mmap_loan);
 	ATF_TP_ADD_TC(tp, mmap_prot_1);



CVS commit: src/sbin/newfs_ext2fs

2012-03-06 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Tue Mar  6 15:39:41 UTC 2012

Modified Files:
src/sbin/newfs_ext2fs: mke2fs.c

Log Message:
Stop zero'ing all possible superblock backup leftovers conservatively.
Instead, explicitly zap only possible first backups and FFS superblocks.

Fixes Extreamly slow newfs_ext2fs on 60Gb USB stick problem
reported by Aleksey Cheusov on tech-kern@.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sbin/newfs_ext2fs/mke2fs.c

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

Modified files:

Index: src/sbin/newfs_ext2fs/mke2fs.c
diff -u src/sbin/newfs_ext2fs/mke2fs.c:1.14 src/sbin/newfs_ext2fs/mke2fs.c:1.15
--- src/sbin/newfs_ext2fs/mke2fs.c:1.14	Fri Sep 10 15:51:20 2010
+++ src/sbin/newfs_ext2fs/mke2fs.c	Tue Mar  6 15:39:41 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: mke2fs.c,v 1.14 2010/09/10 15:51:20 tsutsui Exp $	*/
+/*	$NetBSD: mke2fs.c,v 1.15 2012/03/06 15:39:41 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 2007 Izumi Tsutsui.  All rights reserved.
@@ -100,7 +100,7 @@
 #if 0
 static char sccsid[] = @(#)mkfs.c	8.11 (Berkeley) 5/3/95;
 #else
-__RCSID($NetBSD: mke2fs.c,v 1.14 2010/09/10 15:51:20 tsutsui Exp $);
+__RCSID($NetBSD: mke2fs.c,v 1.15 2012/03/06 15:39:41 tsutsui Exp $);
 #endif
 #endif /* not lint */
 
@@ -124,7 +124,7 @@ __RCSID($NetBSD: mke2fs.c,v 1.14 2010/0
 #include extern.h
 
 static void initcg(uint);
-static void zap_old_sblock(daddr_t);
+static void zap_old_sblock(int);
 static uint cgoverhead(uint);
 static int fsinit(const struct timeval *);
 static int makedir(struct ext2fs_direct *, int);
@@ -552,7 +552,7 @@ mke2fs(const char *fsys, int fi, int fo)
 
 	if (!Nflag) {
 		static const uint pbsize[] = { 1024, 2048, 4096, 0 };
-		uint pblock, epblock;
+		uint pblock;
 		/*
 		 * Validate the given file system size.
 		 * Verify that its last block can actually be accessed.
@@ -566,19 +566,23 @@ mke2fs(const char *fsys, int fi, int fo)
 		/*
 		 * Ensure there is nothing that looks like a filesystem
 		 * superblock anywhere other than where ours will be.
-		 * If fsck_ext2fs finds the wrong one all hell breaks loose!
 		 *
-		 * XXX: needs to check how fsck_ext2fs programs even
-		 *  on other OSes determine alternate superblocks
+		 * Ext2fs superblock is always placed at the same SBOFF,
+		 * so we just zap possible first backups.
 		 */
 		for (i = 0; pbsize[i] != 0; i++) {
-			epblock = (uint64_t)bcount * bsize / pbsize[i];
-			for (pblock = ((pbsize[i] == SBSIZE) ? 1 : 0);
-			pblock  epblock;
-			pblock += pbsize[i] * NBBY /* bpg */)
-zap_old_sblock((daddr_t)pblock *
-pbsize[i] / sectorsize);
+ 			pblock = (pbsize[i]  BBSIZE) ? 0 : 1;	/* 1st dblk */
+			pblock += pbsize[i] * NBBY;		/* next bg */
+			/* zap first backup */
+			zap_old_sblock(pblock * pbsize[i]);
 		}
+		/*
+		 * Also zap possbile FFS magic leftover to prevent
+		 * kernel vfs_mountroot() and bootloadres from mis-recognizing
+		 * this file system as FFS.
+		 */
+		zap_old_sblock(8192);	/* SBLOCK_UFS1 */
+		zap_old_sblock(65536);	/* SBLOCK_UFS2 */
 	}
 
 	if (verbosity = 3)
@@ -769,9 +773,9 @@ initcg(uint cylno)
  * Zap possible lingering old superblock data
  */
 static void
-zap_old_sblock(daddr_t sec)
+zap_old_sblock(int sblkoff)
 {
-	static daddr_t cg0_data;
+	static int cg0_data;
 	uint32_t oldfs[SBSIZE / sizeof(uint32_t)];
 	static const struct fsm {
 		uint32_t offset;
@@ -793,24 +797,25 @@ zap_old_sblock(daddr_t sec)
 		return;
 
 	/* don't override data before superblock */
-	if (sec  SBOFF / sectorsize)
+	if (sblkoff  SBOFF)
 		return;
 
 	if (cg0_data == 0) {
 		cg0_data =
 		((daddr_t)sblock.e2fs.e2fs_first_dblock + cgoverhead(0)) *
-		sblock.e2fs_bsize / sectorsize;
+		sblock.e2fs_bsize;
 	}
 
 	/* Ignore anything that is beyond our filesystem */
-	if (sec = fssize)
+	if (sblkoff / sectorsize = fssize)
 		return;
 	/* Zero anything inside our filesystem... */
-	if (sec = sblock.e2fs.e2fs_first_dblock * bsize / sectorsize) {
+	if (sblkoff = sblock.e2fs.e2fs_first_dblock * bsize) {
 		/* ...unless we will write that area anyway */
-		if (sec = cg0_data)
+		if (sblkoff = cg0_data)
 			/* assume iobuf is zero'ed here */
-			wtfs(sec, roundup(SBSIZE, sectorsize), iobuf);
+			wtfs(sblkoff / sectorsize,
+			roundup(SBSIZE, sectorsize), iobuf);
 		return;
 	}
 
@@ -820,7 +825,7 @@ zap_old_sblock(daddr_t sec)
 	 * XXX: ext2fs won't preserve data after SBOFF,
 	 *  but first_dblock could have a different value.
 	 */
-	rdfs(sec, sizeof(oldfs), oldfs);
+	rdfs(sblkoff / sectorsize, sizeof(oldfs), oldfs);
 	for (fsm = fs_magics;; fsm++) {
 		uint32_t v;
 		if (fsm-mask == 0)
@@ -833,7 +838,7 @@ zap_old_sblock(daddr_t sec)
 
 	/* Just zap the magic number */
 	oldfs[fsm-offset] = 0;
-	wtfs(sec, sizeof(oldfs), oldfs);
+	wtfs(sblkoff / sectorsize, sizeof(oldfs), oldfs);
 }
 
 /*



CVS commit: src/usr.bin/msgc

2012-03-06 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Tue Mar  6 16:26:01 UTC 2012

Modified Files:
src/usr.bin/msgc: defs.h msg_sys.def msgc.1 msgdb.c msgdb.h msgmain.c
msgparse.y msgscan.l

Log Message:
Remove the advertising clause with the explicit ok from Perry E. Metzger.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/msgc/defs.h src/usr.bin/msgc/msgparse.y
cvs rdiff -u -r1.40 -r1.41 src/usr.bin/msgc/msg_sys.def
cvs rdiff -u -r1.25 -r1.26 src/usr.bin/msgc/msgc.1
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/msgc/msgdb.c
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/msgc/msgdb.h
cvs rdiff -u -r1.8 -r1.9 src/usr.bin/msgc/msgmain.c
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/msgc/msgscan.l

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/msgc/defs.h
diff -u src/usr.bin/msgc/defs.h:1.4 src/usr.bin/msgc/defs.h:1.5
--- src/usr.bin/msgc/defs.h:1.4	Mon Oct 27 00:12:43 2003
+++ src/usr.bin/msgc/defs.h	Tue Mar  6 16:26:01 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: defs.h,v 1.4 2003/10/27 00:12:43 lukem Exp $	*/
+/*	$NetBSD: defs.h,v 1.5 2012/03/06 16:26:01 mbalmer Exp $	*/
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -14,11 +14,7 @@
  * 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.
- * 3. All advertising materials mentioning features or use of this software
- *must display the following acknowledgement:
- *  This product includes software develooped for the NetBSD Project by
- *  Piermont Information Systems Inc.
- * 4. The name of Piermont Information Systems Inc. may not be used to endorse
+ * 3. The name of Piermont Information Systems Inc. may not be used to endorse
  *or promote products derived from this software without specific prior
  *written permission.
  *
Index: src/usr.bin/msgc/msgparse.y
diff -u src/usr.bin/msgc/msgparse.y:1.4 src/usr.bin/msgc/msgparse.y:1.5
--- src/usr.bin/msgc/msgparse.y:1.4	Fri Mar  2 13:11:57 2012
+++ src/usr.bin/msgc/msgparse.y	Tue Mar  6 16:26:01 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: msgparse.y,v 1.4 2012/03/02 13:11:57 mbalmer Exp $	*/
+/*	$NetBSD: msgparse.y,v 1.5 2012/03/06 16:26:01 mbalmer Exp $	*/
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -14,11 +14,7 @@
  * 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.
- * 3. All advertising materials mentioning features or use of this software
- *must display the following acknowledgement:
- *  This product includes software develooped for the NetBSD Project by
- *  Piermont Information Systems Inc.
- * 4. The name of Piermont Information Systems Inc. may not be used to endorse
+ * 3. The name of Piermont Information Systems Inc. may not be used to endorse
  *or promote products derived from this software without specific prior
  *written permission.
  *
@@ -41,7 +37,7 @@
 #include sys/cdefs.h
 
 #if defined(__RCSID)  !defined(lint)
-__RCSID($NetBSD: msgparse.y,v 1.4 2012/03/02 13:11:57 mbalmer Exp $);
+__RCSID($NetBSD: msgparse.y,v 1.5 2012/03/06 16:26:01 mbalmer Exp $);
 #endif
 
 

Index: src/usr.bin/msgc/msg_sys.def
diff -u src/usr.bin/msgc/msg_sys.def:1.40 src/usr.bin/msgc/msg_sys.def:1.41
--- src/usr.bin/msgc/msg_sys.def:1.40	Fri Mar  2 14:27:48 2012
+++ src/usr.bin/msgc/msg_sys.def	Tue Mar  6 16:26:01 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: msg_sys.def,v 1.40 2012/03/02 14:27:48 mbalmer Exp $	*/
+/*	$NetBSD: msg_sys.def,v 1.41 2012/03/06 16:26:01 mbalmer Exp $	*/
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -14,11 +14,7 @@
  * 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.
- * 3. All advertising materials mentioning features or use of this software
- *must display the following acknowledgement:
- *  This product includes software develooped for the NetBSD Project by
- *  Piermont Information Systems Inc.
- * 4. The name of Piermont Information Systems Inc. may not be used to endorse
+ * 3. The name of Piermont Information Systems Inc. may not be used to endorse
  *or promote products derived from this software without specific prior
  *written permission.
  *

Index: src/usr.bin/msgc/msgc.1
diff -u src/usr.bin/msgc/msgc.1:1.25 src/usr.bin/msgc/msgc.1:1.26
--- src/usr.bin/msgc/msgc.1:1.25	Fri Mar  2 14:36:04 2012
+++ src/usr.bin/msgc/msgc.1	Tue Mar  6 16:26:01 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: msgc.1,v 1.25 2012/03/02 14:36:04 wiz Exp $
+.\	$NetBSD: msgc.1,v 1.26 2012/03/06 16:26:01 mbalmer Exp 

CVS commit: src/usr.bin/menuc

2012-03-06 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Tue Mar  6 16:55:18 UTC 2012

Modified Files:
src/usr.bin/menuc: defs.h main.c mdb.c mdb.h menu_sys.def menuc.1
parse.y scan.l util.c

Log Message:
Remove the advertising clause and appease the eye a bit (still not good, but
better).  Almost no functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/usr.bin/menuc/defs.h src/usr.bin/menuc/mdb.h
cvs rdiff -u -r1.10 -r1.11 src/usr.bin/menuc/main.c
cvs rdiff -u -r1.45 -r1.46 src/usr.bin/menuc/mdb.c
cvs rdiff -u -r1.58 -r1.59 src/usr.bin/menuc/menu_sys.def
cvs rdiff -u -r1.29 -r1.30 src/usr.bin/menuc/menuc.1
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/menuc/parse.y src/usr.bin/menuc/scan.l
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/menuc/util.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/menuc/defs.h
diff -u src/usr.bin/menuc/defs.h:1.8 src/usr.bin/menuc/defs.h:1.9
--- src/usr.bin/menuc/defs.h:1.8	Mon Oct 27 00:12:43 2003
+++ src/usr.bin/menuc/defs.h	Tue Mar  6 16:55:18 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: defs.h,v 1.8 2003/10/27 00:12:43 lukem Exp $	 */
+/*	$NetBSD: defs.h,v 1.9 2012/03/06 16:55:18 mbalmer Exp $	 */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -14,11 +14,7 @@
  * 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.
- * 3. All advertising materials mentioning features or use of this software
- *must display the following acknowledgement:
- *  This product includes software develooped for the NetBSD Project by
- *  Piermont Information Systems Inc.
- * 4. The name of Piermont Information Systems Inc. may not be used to endorse
+ * 3. The name of Piermont Information Systems Inc. may not be used to endorse
  *or promote products derived from this software without specific prior
  *written permission.
  *
Index: src/usr.bin/menuc/mdb.h
diff -u src/usr.bin/menuc/mdb.h:1.8 src/usr.bin/menuc/mdb.h:1.9
--- src/usr.bin/menuc/mdb.h:1.8	Mon Feb 20 21:06:40 2006
+++ src/usr.bin/menuc/mdb.h	Tue Mar  6 16:55:18 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: mdb.h,v 1.8 2006/02/20 21:06:40 dsl Exp $	*/
+/*	$NetBSD: mdb.h,v 1.9 2012/03/06 16:55:18 mbalmer Exp $	*/
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -14,11 +14,7 @@
  * 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.
- * 3. All advertising materials mentioning features or use of this software
- *must display the following acknowledgement:
- *  This product includes software develooped for the NetBSD Project by
- *  Piermont Information Systems Inc.
- * 4. The name of Piermont Information Systems Inc. may not be used to endorse
+ * 3. The name of Piermont Information Systems Inc. may not be used to endorse
  *or promote products derived from this software without specific prior
  *written permission.
  *

Index: src/usr.bin/menuc/main.c
diff -u src/usr.bin/menuc/main.c:1.10 src/usr.bin/menuc/main.c:1.11
--- src/usr.bin/menuc/main.c:1.10	Sun Jun 20 22:20:16 2004
+++ src/usr.bin/menuc/main.c	Tue Mar  6 16:55:18 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.10 2004/06/20 22:20:16 jmc Exp $	*/
+/*	$NetBSD: main.c,v 1.11 2012/03/06 16:55:18 mbalmer Exp $	*/
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -14,11 +14,7 @@
  * 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.
- * 3. All advertising materials mentioning features or use of this software
- *must display the following acknowledgement:
- *  This product includes software develooped for the NetBSD Project by
- *  Piermont Information Systems Inc.
- * 4. The name of Piermont Information Systems Inc. may not be used to endorse
+ * 3. The name of Piermont Information Systems Inc. may not be used to endorse
  *or promote products derived from this software without specific prior
  *written permission.
  *
@@ -45,7 +41,7 @@
 #include sys/cdefs.h
 
 #if defined(__RCSID)  !defined(lint)
-__RCSID($NetBSD: main.c,v 1.10 2004/06/20 22:20:16 jmc Exp $);
+__RCSID($NetBSD: main.c,v 1.11 2012/03/06 16:55:18 mbalmer Exp $);
 #endif
 
 
@@ -57,36 +53,34 @@ __RCSID($NetBSD: main.c,v 1.10 2004/06/
 #include defs.h
 
 /* Local prototypes */
-void usage (char *);
+__dead void usage(void);
 
 int
-main (int argc, char **argv)
+main(int argc, char **argv)
 {
 	int ch;
 
-	prog_name = argv[0];
-	
 	/* Process the arguments. */
-	while ( (ch = getopt (argc, argv, o:)) != -1 ) {
+	

CVS commit: src/share/misc

2012-03-06 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Tue Mar  6 17:04:54 UTC 2012

Modified Files:
src/share/misc: acronyms

Log Message:
Oxford serial comma, FFS.


To generate a diff of this commit:
cvs rdiff -u -r1.209 -r1.210 src/share/misc/acronyms

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

Modified files:

Index: src/share/misc/acronyms
diff -u src/share/misc/acronyms:1.209 src/share/misc/acronyms:1.210
--- src/share/misc/acronyms:1.209	Sat Nov 19 17:40:19 2011
+++ src/share/misc/acronyms	Tue Mar  6 17:04:54 2012
@@ -1,4 +1,4 @@
-$NetBSD: acronyms,v 1.209 2011/11/19 17:40:19 mbalmer Exp $
+$NetBSD: acronyms,v 1.210 2012/03/06 17:04:54 mbalmer Exp $
 10Q	thank you
 10X	thanks
 1337	elite (leet)
@@ -154,7 +154,7 @@ FTS	fuck that shit
 FTTT	from time to time
 FTW	for the win
 FUBAR	fucked up beyond all recognition
-FUD	fear, uncertainty and doubt
+FUD	fear, uncertainty, and doubt
 FWIW	for what it's worth
 FYEO	for your eyes only
 FYI	for your information



CVS commit: src/share/misc

2012-03-06 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Tue Mar  6 17:08:11 UTC 2012

Modified Files:
src/share/misc: zipcodes

Log Message:
Add a missing zipcode.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/share/misc/zipcodes

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

Modified files:

Index: src/share/misc/zipcodes
diff -u src/share/misc/zipcodes:1.6 src/share/misc/zipcodes:1.7
--- src/share/misc/zipcodes:1.6	Sun May 11 01:55:18 2003
+++ src/share/misc/zipcodes	Tue Mar  6 17:08:10 2012
@@ -1,5 +1,5 @@
 # Zip Code : Location
-#	$NetBSD: zipcodes,v 1.6 2003/05/11 01:55:18 wiz Exp $
+#	$NetBSD: zipcodes,v 1.7 2012/03/06 17:08:10 mbalmer Exp $
 #	@(#)zipcodes	8.1 (Berkeley) 6/8/93
 00401:Pleasantville, NY
 00501:Holtsville, NY
@@ -42157,3 +42157,4 @@
 99645:Palmer, AK
 99647:Pedro Bay, AK
 99648:Perryville, AK
+CH-5073:Gipf-Oberfrick, Switzerland



CVS commit: src/share/misc

2012-03-06 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Tue Mar  6 17:11:15 UTC 2012

Modified Files:
src/share/misc: inter.phone

Log Message:
Add a few.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/share/misc/inter.phone

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

Modified files:

Index: src/share/misc/inter.phone
diff -u src/share/misc/inter.phone:1.26 src/share/misc/inter.phone:1.27
--- src/share/misc/inter.phone:1.26	Fri May 27 17:12:47 2011
+++ src/share/misc/inter.phone	Tue Mar  6 17:11:15 2012
@@ -1,5 +1,5 @@
 # Country Code : City Code : City : Country
-#	$NetBSD: inter.phone,v 1.26 2011/05/27 17:12:47 drochner Exp $
+#	$NetBSD: inter.phone,v 1.27 2012/03/06 17:11:15 mbalmer Exp $
 #	@(#)inter.phone	8.1 (Berkeley) 6/9/93
 20:2:Cairo:Egypt, Arab Rep. of
 20:3:Alexandria:Egypt, Arab Rep. of
@@ -91,10 +91,12 @@
 40:0:Bucharest:Romania
 41:22:Geneva:Switzerland
 41:31:Berne:Switzerland
+41:32:Jura:Switzerland
 41:43:Zurich:Switzerland
 41:44:Zurich (before March 2005):Switzerland
 41:52:Winterthur:Switzerland
 41:61:Basel:Switzerland
+41:62:Argovia:Switzerland
 423:::Liechtenstein
 43:1:Vienna:Austria
 43:316:Graz:Austria



CVS commit: src/share/misc

2012-03-06 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Tue Mar  6 17:20:38 UTC 2012

Modified Files:
src/share/misc: zipcodes

Log Message:
Add another missing zipcode - this is where I live!


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/share/misc/zipcodes

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

Modified files:

Index: src/share/misc/zipcodes
diff -u src/share/misc/zipcodes:1.7 src/share/misc/zipcodes:1.8
--- src/share/misc/zipcodes:1.7	Tue Mar  6 17:08:10 2012
+++ src/share/misc/zipcodes	Tue Mar  6 17:20:38 2012
@@ -1,5 +1,5 @@
 # Zip Code : Location
-#	$NetBSD: zipcodes,v 1.7 2012/03/06 17:08:10 mbalmer Exp $
+#	$NetBSD: zipcodes,v 1.8 2012/03/06 17:20:38 pgoyette Exp $
 #	@(#)zipcodes	8.1 (Berkeley) 6/8/93
 00401:Pleasantville, NY
 00501:Holtsville, NY
@@ -39430,6 +39430,7 @@
 94074:San Gregorio, CA
 94080:South San Francisco, CA
 94083:South San Francisco, CA
+94085:Sunnyvale, CA
 94086:Sunnyvale, CA
 94087:Sunnyvale, CA
 94088:Sunnyvale, CA



CVS commit: src/sys/dev/pci

2012-03-06 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Tue Mar  6 18:29:24 UTC 2012

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

Log Message:
bnx_start() is not MP-safe, so do not create the bnx_alloc_pkts()'s
workqueue MPSAFE. This could lead to bnx_start() being running at
the same time on 2 CPUs, with packets being sent twice.
Problem found and reported by Beverly Schwartz and Greg Troxel.


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/dev/pci/if_bnx.c

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

Modified files:

Index: src/sys/dev/pci/if_bnx.c
diff -u src/sys/dev/pci/if_bnx.c:1.45 src/sys/dev/pci/if_bnx.c:1.46
--- src/sys/dev/pci/if_bnx.c:1.45	Thu Sep 22 08:42:53 2011
+++ src/sys/dev/pci/if_bnx.c	Tue Mar  6 18:29:23 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_bnx.c,v 1.45 2011/09/22 08:42:53 jym Exp $	*/
+/*	$NetBSD: if_bnx.c,v 1.46 2012/03/06 18:29:23 bouyer Exp $	*/
 /*	$OpenBSD: if_bnx.c,v 1.85 2009/11/09 14:32:41 dlg Exp $ */
 
 /*-
@@ -35,7 +35,7 @@
 #if 0
 __FBSDID($FreeBSD: src/sys/dev/bce/if_bce.c,v 1.3 2006/04/13 14:12:26 ru Exp $);
 #endif
-__KERNEL_RCSID(0, $NetBSD: if_bnx.c,v 1.45 2011/09/22 08:42:53 jym Exp $);
+__KERNEL_RCSID(0, $NetBSD: if_bnx.c,v 1.46 2012/03/06 18:29:23 bouyer Exp $);
 
 /*
  * The following controllers are supported by this driver:
@@ -707,7 +707,7 @@ bnx_attach(device_t parent, device_t sel
 
 	/* create workqueue to handle packet allocations */
 	if (workqueue_create(sc-bnx_wq, device_xname(self),
-	bnx_alloc_pkts, sc, PRI_NONE, IPL_NET, WQ_MPSAFE) != 0) {
+	bnx_alloc_pkts, sc, PRI_NONE, IPL_NET, 0) != 0) {
 		aprint_error_dev(self, failed to create workqueue\n);
 		goto bnx_attach_fail;
 	}



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

2012-03-06 Thread John Klos
Module Name:src
Committed By:   jklos
Date:   Tue Mar  6 22:50:24 UTC 2012

Modified Files:
src/sys/arch/vax/vax: clock.c

Log Message:
Missing end of line.


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/sys/arch/vax/vax/clock.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/vax/vax/clock.c
diff -u src/sys/arch/vax/vax/clock.c:1.55 src/sys/arch/vax/vax/clock.c:1.56
--- src/sys/arch/vax/vax/clock.c:1.55	Tue Dec 14 23:44:49 2010
+++ src/sys/arch/vax/vax/clock.c	Tue Mar  6 22:50:24 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: clock.c,v 1.55 2010/12/14 23:44:49 matt Exp $	 */
+/*	$NetBSD: clock.c,v 1.56 2012/03/06 22:50:24 jklos Exp $	 */
 /*
  * Copyright (c) 1995 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: clock.c,v 1.55 2010/12/14 23:44:49 matt Exp $);
+__KERNEL_RCSID(0, $NetBSD: clock.c,v 1.56 2012/03/06 22:50:24 jklos Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -277,7 +277,7 @@ chip_gettime(struct timeval *tvp)
 #endif
 
 	if ((REGPEEK(CSRD_OFF)  CSRD_VRT) == 0) {
-		printf(WARNING: TOY clock not marked valid);
+		printf(WARNING: TOY clock not marked valid\n);
 		return EINVAL;
 	}
 	while (REGPEEK(CSRA_OFF)  CSRA_UIP) {



CVS commit: [matt-nb5-mips64] src/distrib/utils/more

2012-03-06 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Tue Mar  6 23:40:47 UTC 2012

Modified Files:
src/distrib/utils/more [matt-nb5-mips64]: main.c

Log Message:
Change to use C89 concatenated strings.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.9.38.1 src/distrib/utils/more/main.c

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

Modified files:

Index: src/distrib/utils/more/main.c
diff -u src/distrib/utils/more/main.c:1.9 src/distrib/utils/more/main.c:1.9.38.1
--- src/distrib/utils/more/main.c:1.9	Wed Sep  1 01:46:56 2004
+++ src/distrib/utils/more/main.c	Tue Mar  6 23:40:47 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.9 2004/09/01 01:46:56 chs Exp $	*/
+/*	main.c,v 1.9 2004/09/01 01:46:56 chs Exp	*/
 
 /*
  * Copyright (c) 1988 Mark Nudelman
@@ -32,17 +32,17 @@
 
 #include sys/cdefs.h
 #ifndef lint
-__COPYRIGHT(\
-@(#) Copyright (c) 1988 Mark Nudelman.\n\
-@(#) Copyright (c) 1988, 1993\n\
-	Regents of the University of California.  All rights reserved.\n);
+__COPYRIGHT(
+@(#) Copyright (c) 1988 Mark Nudelman.\n
+@(#) Copyright (c) 1988, 1993\n
+	Regents of the University of California.  All rights reserved.\n);
 #endif /* not lint */
 
 #ifndef lint
 #if 0
 static char sccsid[] = @(#)main.c	8.1 (Berkeley) 6/7/93;
 #else
-__RCSID($NetBSD: main.c,v 1.9 2004/09/01 01:46:56 chs Exp $);
+__RCSID(main.c,v 1.9 2004/09/01 01:46:56 chs Exp);
 #endif
 #endif /* not lint */
 



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

2012-03-06 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Wed Mar  7 07:24:06 UTC 2012

Modified Files:
src/tests/lib/libc/sys: t_listen.c

Log Message:
Check the error values from listen(2), incl. case for standards/46150.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/sys/t_listen.c

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

Modified files:

Index: src/tests/lib/libc/sys/t_listen.c
diff -u src/tests/lib/libc/sys/t_listen.c:1.1 src/tests/lib/libc/sys/t_listen.c:1.2
--- src/tests/lib/libc/sys/t_listen.c:1.1	Sat Nov  5 18:19:02 2011
+++ src/tests/lib/libc/sys/t_listen.c	Wed Mar  7 07:24:05 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_listen.c,v 1.1 2011/11/05 18:19:02 jruoho Exp $	*/
+/*	$NetBSD: t_listen.c,v 1.2 2012/03/07 07:24:05 jruoho Exp $	*/
 /*
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -26,22 +26,82 @@
  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include atf-c.h
 #include err.h
 #include errno.h
+#include fcntl.h
 #include string.h
 #include unistd.h
 
+#include arpa/inet.h
 #include netinet/in.h
 
-#include atf-c.h
+static const char *path = listen;
+
+ATF_TC_WITH_CLEANUP(listen_err);
+ATF_TC_HEAD(listen_err, tc)
+{
+	atf_tc_set_md_var(tc, descr, Checks errors from listen(2));
+}
+
+ATF_TC_BODY(listen_err, tc)
+{
+	static const size_t siz = sizeof(struct sockaddr_in);
+	struct sockaddr_in sina, sinb;
+	int fda, fdb, fdc;
+
+	(void)memset(sina, 0, sizeof(struct sockaddr_in));
+	(void)memset(sinb, 0, sizeof(struct sockaddr_in));
+
+	sina.sin_family = AF_INET;
+	sina.sin_port = htons(31522);
+	sina.sin_addr.s_addr = inet_addr(127.0.0.1);
+
+	sinb.sin_family = AF_INET;
+	sinb.sin_port = htons(31522);
+	sinb.sin_addr.s_addr = inet_addr(127.0.0.1);
+
+	fda = socket(AF_INET, SOCK_STREAM, 0);
+	fdb = socket(AF_INET, SOCK_STREAM, 0);
+	fdc = open(listen, O_RDWR | O_CREAT, 0600);
+
+	ATF_REQUIRE(fda = 0  fdb = 0  fdc = 0);
+	ATF_REQUIRE_ERRNO(ENOTSOCK, listen(fdc, 1) == -1);
+
+	(void)close(fdc);
+	(void)unlink(path);
+
+	ATF_REQUIRE(bind(fda, (struct sockaddr *)sina, siz) == 0);
+	ATF_REQUIRE(listen(fda, 1) == 0);
+
+	/*
+	 * According to IEEE Std 1003.1-2008: if the socket is
+	 * already connected, the call should fail with EINVAL.
+	 */
+	atf_tc_expect_fail(PR standards/46150);
+
+	ATF_REQUIRE(connect(fdb, (struct sockaddr *)sinb, siz) == 0);
+	ATF_REQUIRE_ERRNO(EINVAL, listen(fdb, 1) == -1);
+
+	(void)close(fda);
+	(void)close(fdb);
+
+	ATF_REQUIRE_ERRNO(EBADF, connect(fdb,
+		(struct sockaddr *)sinb, siz) == -1);
+}
+
+ATF_TC_CLEANUP(listen_err, tc)
+{
+	(void)unlink(path);
+}
 
 ATF_TC(listen_low_port);
 ATF_TC_HEAD(listen_low_port, tc)
 {
-	atf_tc_set_md_var(tc, descr, Checks that low-port allocation 
-	works);
+	atf_tc_set_md_var(tc, descr, Does low-port allocation work?);
 	atf_tc_set_md_var(tc, require.user, root);
 }
+
 ATF_TC_BODY(listen_low_port, tc)
 {
 	int sd, val;
@@ -68,6 +128,7 @@ ATF_TC_BODY(listen_low_port, tc)
 ATF_TP_ADD_TCS(tp)
 {
 
+	ATF_TP_ADD_TC(tp, listen_err);
 	ATF_TP_ADD_TC(tp, listen_low_port);
 
 	return 0;



CVS commit: [jmcneill-usbmp] src/sys

2012-03-06 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Mar  6 09:56:29 UTC 2012

Modified Files:
src/sys/arch/algor/algor [jmcneill-usbmp]: machdep.c
src/sys/arch/amd64/amd64 [jmcneill-usbmp]: machdep.c
src/sys/arch/amd64/conf [jmcneill-usbmp]: GENERIC
src/sys/arch/evbmips/adm5120 [jmcneill-usbmp]: machdep.c
src/sys/arch/evbmips/alchemy [jmcneill-usbmp]: machdep.c
src/sys/arch/evbmips/atheros [jmcneill-usbmp]: machdep.c
src/sys/arch/evbmips/conf [jmcneill-usbmp]: LOONGSON files.loongson
src/sys/arch/evbmips/loongson [jmcneill-usbmp]: autoconf.c
bonito_mainbus.c loongson_bus_defs.h loongson_bus_io.c machdep.c
yeeloong_machdep.c
src/sys/arch/evbmips/loongson/dev [jmcneill-usbmp]: glx.c
src/sys/arch/evbmips/malta [jmcneill-usbmp]: machdep.c
src/sys/arch/evbmips/rasoc [jmcneill-usbmp]: machdep.c
src/sys/arch/evbmips/rmixl [jmcneill-usbmp]: machdep.c
src/sys/arch/hp700/hp700 [jmcneill-usbmp]: intr.c
src/sys/arch/hppa/hppa [jmcneill-usbmp]: pmap.c
src/sys/arch/i386/conf [jmcneill-usbmp]: ALL
src/sys/arch/i386/i386 [jmcneill-usbmp]: locore.S machdep.c
src/sys/arch/mips/include [jmcneill-usbmp]: intr.h
src/sys/arch/mips/mips [jmcneill-usbmp]: mips_fpu.c mips_machdep.c
src/sys/arch/shark/ofw [jmcneill-usbmp]: ofw.c
src/sys/arch/sparc64/conf [jmcneill-usbmp]: Makefile.sparc64
files.sparc64
src/sys/arch/sparc64/sparc64 [jmcneill-usbmp]: locore.s
src/sys/arch/usermode/dev [jmcneill-usbmp]: cpu.c ttycons.c
src/sys/arch/usermode/include [jmcneill-usbmp]: intr.h thunk.h
src/sys/arch/usermode/usermode [jmcneill-usbmp]: pmap.c thunk.c trap.c
src/sys/arch/vax/include [jmcneill-usbmp]: cpu.h
src/sys/arch/vax/vax [jmcneill-usbmp]: machdep.c
src/sys/arch/x86/include [jmcneill-usbmp]: cpu.h specialreg.h
src/sys/arch/x86/isa [jmcneill-usbmp]: isa_machdep.c
src/sys/arch/x86/pci [jmcneill-usbmp]: amdtemp.c pci_machdep.c
src/sys/arch/xen/x86 [jmcneill-usbmp]: x86_xpmap.c xen_pmap.c
src/sys/dev/ic [jmcneill-usbmp]: gcscpcib.c rtl8169.c rtl81x9reg.h
src/sys/dev/pci [jmcneill-usbmp]: files.pci gcscaudio.c pcidevs
pcidevs.h pcidevs_data.h radeonfb.c radeonfbvar.h sdhc_pci.c
src/sys/dev/pci/hdaudio [jmcneill-usbmp]: hdaudio_ids.c
src/sys/dev/scsipi [jmcneill-usbmp]: ss.c ss_mustek.c ss_scanjet.c
ssvar.h st.c st_atapi.c st_scsi.c stvar.h
src/sys/dev/sdmmc [jmcneill-usbmp]: sdhc.c sdhcreg.h
src/sys/dev/usb [jmcneill-usbmp]: if_urndis.c umass.c umass_isdata.c
umass_quirks.c umass_scsipi.c umassvar.h usbdevs usbdevs.h
usbdevs_data.h
src/sys/fs/tmpfs [jmcneill-usbmp]: tmpfs_vnops.c
src/sys/kern [jmcneill-usbmp]: kern_fork.c kern_synch.c
src/sys/lib/libsa [jmcneill-usbmp]: ls.c
src/sys/sys [jmcneill-usbmp]: cdefs_elf.h
src/sys/ufs/chfs [jmcneill-usbmp]: chfs_inode.h chfs_malloc.c
chfs_pool.c
Removed Files:
src/sys/dev/pci [jmcneill-usbmp]: lynxfb.c lynxfbreg.h lynxfbvar.h

Log Message:
sync to -current


To generate a diff of this commit:
cvs rdiff -u -r1.51.6.1 -r1.51.6.2 src/sys/arch/algor/algor/machdep.c
cvs rdiff -u -r1.171.2.3 -r1.171.2.4 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -u -r1.340.2.2 -r1.340.2.3 src/sys/arch/amd64/conf/GENERIC
cvs rdiff -u -r1.21.6.1 -r1.21.6.2 src/sys/arch/evbmips/adm5120/machdep.c
cvs rdiff -u -r1.51.6.1 -r1.51.6.2 src/sys/arch/evbmips/alchemy/machdep.c
cvs rdiff -u -r1.27.6.1 -r1.27.6.2 src/sys/arch/evbmips/atheros/machdep.c
cvs rdiff -u -r1.7.2.2 -r1.7.2.3 src/sys/arch/evbmips/conf/LOONGSON
cvs rdiff -u -r1.2.6.1 -r1.2.6.2 src/sys/arch/evbmips/conf/files.loongson
cvs rdiff -u -r1.1.6.1 -r1.1.6.2 src/sys/arch/evbmips/loongson/autoconf.c \
src/sys/arch/evbmips/loongson/bonito_mainbus.c \
src/sys/arch/evbmips/loongson/loongson_bus_defs.h \
src/sys/arch/evbmips/loongson/loongson_bus_io.c
cvs rdiff -u -r1.3.6.1 -r1.3.6.2 src/sys/arch/evbmips/loongson/machdep.c
cvs rdiff -u -r1.1.6.2 -r1.1.6.3 \
src/sys/arch/evbmips/loongson/yeeloong_machdep.c
cvs rdiff -u -r1.1.6.2 -r1.1.6.3 src/sys/arch/evbmips/loongson/dev/glx.c
cvs rdiff -u -r1.41.6.1 -r1.41.6.2 src/sys/arch/evbmips/malta/machdep.c
cvs rdiff -u -r1.5.6.2 -r1.5.6.3 src/sys/arch/evbmips/rasoc/machdep.c
cvs rdiff -u -r1.9.8.2 -r1.9.8.3 src/sys/arch/evbmips/rmixl/machdep.c
cvs rdiff -u -r1.36.8.1 -r1.36.8.2 src/sys/arch/hp700/hp700/intr.c
cvs rdiff -u -r1.81.6.2 -r1.81.6.3 src/sys/arch/hppa/hppa/pmap.c
cvs rdiff -u -r1.327.2.2 -r1.327.2.3 src/sys/arch/i386/conf/ALL
cvs rdiff -u -r1.95.8.1 -r1.95.8.2 src/sys/arch/i386/i386/locore.S
cvs rdiff -u -r1.714.2.3 -r1.714.2.4 src/sys/arch/i386/i386/machdep.c
cvs rdiff -u -r1.5.8.1 -r1.5.8.2 src/sys/arch/mips/include/intr.h
cvs rdiff -u -r1.7.6.1 -r1.7.6.2 

CVS commit: src/share/man/man5

2012-03-06 Thread Iain Hibbert
Module Name:src
Committed By:   plunky
Date:   Tue Mar  6 10:12:59 UTC 2012

Modified Files:
src/share/man/man5: daily.5

Log Message:
mention run_makemandb


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man5/daily.5

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



CVS commit: src/share/man/man5

2012-03-06 Thread Iain Hibbert
Module Name:src
Committed By:   plunky
Date:   Tue Mar  6 10:23:10 UTC 2012

Modified Files:
src/share/man/man5: weekly.5

Log Message:
document rebuild_mandb


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man5/weekly.5

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



CVS commit: src/share/man/man5

2012-03-06 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Tue Mar  6 10:26:19 UTC 2012

Modified Files:
src/share/man/man5: weekly.5

Log Message:
Remove trailing whitespace.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man5/weekly.5

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



CVS commit: src/sbin/fsck_ffs

2012-03-06 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Tue Mar  6 10:30:20 UTC 2012

Modified Files:
src/sbin/fsck_ffs: fsck_ffs.8

Log Message:
Mention scan_ffs -b.
Based on a patch by Matthew Mondor mm_li...@pulsar-zone.net on
tech-userlevel.
Bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sbin/fsck_ffs/fsck_ffs.8

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



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

2012-03-06 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Mar  6 10:32:15 UTC 2012

Modified Files:
src/tests/lib/libc/sys: t_stat.c

Log Message:
A test case for PR kern/46077: fstat() returns EINVAL on dup'd connected
socket. Expected failure on NetBSD x86, 5.0 - 6.0. Does not fail on Linux.


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

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



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

2012-03-06 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Mar  6 11:02:56 UTC 2012

Modified Files:
src/tests/lib/libc/sys: t_mmap.c

Log Message:
A test case for serious PR kern/38889: crash on open/mmap/close of block
device. The test case is skipped for the time being as it replicates the
panic described in the PR (tested on NetBSD/amd64 6.0 BETA).


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

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



CVS commit: src/sbin/newfs_ext2fs

2012-03-06 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Tue Mar  6 15:39:41 UTC 2012

Modified Files:
src/sbin/newfs_ext2fs: mke2fs.c

Log Message:
Stop zero'ing all possible superblock backup leftovers conservatively.
Instead, explicitly zap only possible first backups and FFS superblocks.

Fixes Extreamly slow newfs_ext2fs on 60Gb USB stick problem
reported by Aleksey Cheusov on tech-kern@.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sbin/newfs_ext2fs/mke2fs.c

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



CVS commit: src/usr.bin/msgc

2012-03-06 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Tue Mar  6 16:26:01 UTC 2012

Modified Files:
src/usr.bin/msgc: defs.h msg_sys.def msgc.1 msgdb.c msgdb.h msgmain.c
msgparse.y msgscan.l

Log Message:
Remove the advertising clause with the explicit ok from Perry E. Metzger.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/msgc/defs.h src/usr.bin/msgc/msgparse.y
cvs rdiff -u -r1.40 -r1.41 src/usr.bin/msgc/msg_sys.def
cvs rdiff -u -r1.25 -r1.26 src/usr.bin/msgc/msgc.1
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/msgc/msgdb.c
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/msgc/msgdb.h
cvs rdiff -u -r1.8 -r1.9 src/usr.bin/msgc/msgmain.c
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/msgc/msgscan.l

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



CVS commit: src/usr.bin/menuc

2012-03-06 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Tue Mar  6 16:55:18 UTC 2012

Modified Files:
src/usr.bin/menuc: defs.h main.c mdb.c mdb.h menu_sys.def menuc.1
parse.y scan.l util.c

Log Message:
Remove the advertising clause and appease the eye a bit (still not good, but
better).  Almost no functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/usr.bin/menuc/defs.h src/usr.bin/menuc/mdb.h
cvs rdiff -u -r1.10 -r1.11 src/usr.bin/menuc/main.c
cvs rdiff -u -r1.45 -r1.46 src/usr.bin/menuc/mdb.c
cvs rdiff -u -r1.58 -r1.59 src/usr.bin/menuc/menu_sys.def
cvs rdiff -u -r1.29 -r1.30 src/usr.bin/menuc/menuc.1
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/menuc/parse.y src/usr.bin/menuc/scan.l
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/menuc/util.c

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



CVS commit: src/share/misc

2012-03-06 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Tue Mar  6 17:04:54 UTC 2012

Modified Files:
src/share/misc: acronyms

Log Message:
Oxford serial comma, FFS.


To generate a diff of this commit:
cvs rdiff -u -r1.209 -r1.210 src/share/misc/acronyms

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



CVS commit: src/share/misc

2012-03-06 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Tue Mar  6 17:08:11 UTC 2012

Modified Files:
src/share/misc: zipcodes

Log Message:
Add a missing zipcode.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/share/misc/zipcodes

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



CVS commit: src/share/misc

2012-03-06 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Tue Mar  6 17:11:15 UTC 2012

Modified Files:
src/share/misc: inter.phone

Log Message:
Add a few.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/share/misc/inter.phone

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



CVS commit: src/share/misc

2012-03-06 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Tue Mar  6 17:20:38 UTC 2012

Modified Files:
src/share/misc: zipcodes

Log Message:
Add another missing zipcode - this is where I live!


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/share/misc/zipcodes

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



CVS commit: [jmcneill-usbmp] src/sys

2012-03-06 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Mar  6 18:26:49 UTC 2012

Modified Files:
src/sys/arch/algor/algor [jmcneill-usbmp]: machdep.c
src/sys/arch/amd64/amd64 [jmcneill-usbmp]: machdep.c
src/sys/arch/amd64/conf [jmcneill-usbmp]: GENERIC
src/sys/arch/evbmips/adm5120 [jmcneill-usbmp]: machdep.c
src/sys/arch/evbmips/alchemy [jmcneill-usbmp]: machdep.c
src/sys/arch/evbmips/atheros [jmcneill-usbmp]: machdep.c
src/sys/arch/evbmips/conf [jmcneill-usbmp]: LOONGSON files.loongson
src/sys/arch/evbmips/loongson [jmcneill-usbmp]: autoconf.c
bonito_mainbus.c loongson_bus_defs.h loongson_bus_io.c machdep.c
yeeloong_machdep.c
src/sys/arch/evbmips/loongson/dev [jmcneill-usbmp]: glx.c
src/sys/arch/evbmips/malta [jmcneill-usbmp]: machdep.c
src/sys/arch/evbmips/rasoc [jmcneill-usbmp]: machdep.c
src/sys/arch/evbmips/rmixl [jmcneill-usbmp]: machdep.c
src/sys/arch/hp700/hp700 [jmcneill-usbmp]: intr.c
src/sys/arch/hpcarm/hpcarm [jmcneill-usbmp]: pxa2x0_hpc_machdep.c
src/sys/arch/hppa/hppa [jmcneill-usbmp]: pmap.c
src/sys/arch/i386/conf [jmcneill-usbmp]: ALL
src/sys/arch/i386/i386 [jmcneill-usbmp]: locore.S machdep.c
src/sys/arch/mips/include [jmcneill-usbmp]: intr.h
src/sys/arch/mips/mips [jmcneill-usbmp]: mips_fpu.c mips_machdep.c
src/sys/arch/shark/ofw [jmcneill-usbmp]: ofw.c
src/sys/arch/sparc64/conf [jmcneill-usbmp]: Makefile.sparc64
files.sparc64
src/sys/arch/sparc64/sparc64 [jmcneill-usbmp]: locore.s
src/sys/arch/usermode/dev [jmcneill-usbmp]: cpu.c ttycons.c
src/sys/arch/usermode/include [jmcneill-usbmp]: intr.h thunk.h
src/sys/arch/usermode/usermode [jmcneill-usbmp]: pmap.c thunk.c trap.c
src/sys/arch/vax/include [jmcneill-usbmp]: cpu.h
src/sys/arch/vax/vax [jmcneill-usbmp]: machdep.c
src/sys/arch/x86/include [jmcneill-usbmp]: cpu.h specialreg.h
src/sys/arch/x86/isa [jmcneill-usbmp]: isa_machdep.c
src/sys/arch/x86/pci [jmcneill-usbmp]: amdtemp.c pci_machdep.c
src/sys/arch/xen/x86 [jmcneill-usbmp]: x86_xpmap.c xen_pmap.c
src/sys/arch/xen/xen [jmcneill-usbmp]: xpci_xenbus.c
src/sys/compat/netbsd32 [jmcneill-usbmp]: netbsd32.h netbsd32_fs.c
src/sys/dev/ic [jmcneill-usbmp]: gcscpcib.c rtl8169.c rtl81x9reg.h
src/sys/dev/pci [jmcneill-usbmp]: files.pci gcscaudio.c pcidevs
pcidevs.h pcidevs_data.h piixide.c radeonfb.c radeonfbvar.h
sdhc_pci.c
src/sys/dev/pci/hdaudio [jmcneill-usbmp]: hdaudio_ids.c
src/sys/dev/scsipi [jmcneill-usbmp]: ss.c ss_mustek.c ss_scanjet.c
ssvar.h st.c st_atapi.c st_scsi.c stvar.h
src/sys/dev/sdmmc [jmcneill-usbmp]: sdhc.c sdhcreg.h
src/sys/dev/usb [jmcneill-usbmp]: if_aue.c if_axe.c if_udav.c
if_urndis.c ohci.c ohcivar.h uhci.c uhcivar.h uhid.c uhub.c ulpt.c
umass.c umass_isdata.c umass_quirks.c umass_scsipi.c umassvar.h
usb.h usbdevs usbdevs.h usbdevs_data.h usbdi.c usbdi_util.c
usbdivar.h
src/sys/fs/tmpfs [jmcneill-usbmp]: tmpfs_vnops.c
src/sys/kern [jmcneill-usbmp]: kern_fork.c kern_synch.c subr_vmem.c
src/sys/lib/libsa [jmcneill-usbmp]: ls.c
src/sys/rump/librump/rumpkern [jmcneill-usbmp]: vm.c
src/sys/sys [jmcneill-usbmp]: cdefs_elf.h
src/sys/ufs/chfs [jmcneill-usbmp]: chfs_inode.h chfs_malloc.c
chfs_pool.c
Added Files:
src/sys/dev/pci [jmcneill-usbmp]: lynxfb.c lynxfbreg.h lynxfbvar.h

Log Message:
sync to -current


To generate a diff of this commit:
cvs rdiff -u -r1.51.6.2 -r1.51.6.3 src/sys/arch/algor/algor/machdep.c
cvs rdiff -u -r1.171.2.4 -r1.171.2.5 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -u -r1.340.2.3 -r1.340.2.4 src/sys/arch/amd64/conf/GENERIC
cvs rdiff -u -r1.21.6.2 -r1.21.6.3 src/sys/arch/evbmips/adm5120/machdep.c
cvs rdiff -u -r1.51.6.2 -r1.51.6.3 src/sys/arch/evbmips/alchemy/machdep.c
cvs rdiff -u -r1.27.6.2 -r1.27.6.3 src/sys/arch/evbmips/atheros/machdep.c
cvs rdiff -u -r1.7.2.3 -r1.7.2.4 src/sys/arch/evbmips/conf/LOONGSON
cvs rdiff -u -r1.2.6.2 -r1.2.6.3 src/sys/arch/evbmips/conf/files.loongson
cvs rdiff -u -r1.1.6.2 -r1.1.6.3 src/sys/arch/evbmips/loongson/autoconf.c \
src/sys/arch/evbmips/loongson/bonito_mainbus.c \
src/sys/arch/evbmips/loongson/loongson_bus_defs.h \
src/sys/arch/evbmips/loongson/loongson_bus_io.c
cvs rdiff -u -r1.3.6.2 -r1.3.6.3 src/sys/arch/evbmips/loongson/machdep.c
cvs rdiff -u -r1.1.6.3 -r1.1.6.4 \
src/sys/arch/evbmips/loongson/yeeloong_machdep.c
cvs rdiff -u -r1.1.6.3 -r1.1.6.4 src/sys/arch/evbmips/loongson/dev/glx.c
cvs rdiff -u -r1.41.6.2 -r1.41.6.3 src/sys/arch/evbmips/malta/machdep.c
cvs rdiff -u -r1.5.6.3 -r1.5.6.4 src/sys/arch/evbmips/rasoc/machdep.c
cvs rdiff -u -r1.9.8.3 -r1.9.8.4 src/sys/arch/evbmips/rmixl/machdep.c

CVS commit: src/sys/dev/pci

2012-03-06 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Tue Mar  6 18:29:24 UTC 2012

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

Log Message:
bnx_start() is not MP-safe, so do not create the bnx_alloc_pkts()'s
workqueue MPSAFE. This could lead to bnx_start() being running at
the same time on 2 CPUs, with packets being sent twice.
Problem found and reported by Beverly Schwartz and Greg Troxel.


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/dev/pci/if_bnx.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/vax/vax

2012-03-06 Thread John Klos
Module Name:src
Committed By:   jklos
Date:   Tue Mar  6 22:50:24 UTC 2012

Modified Files:
src/sys/arch/vax/vax: clock.c

Log Message:
Missing end of line.


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/sys/arch/vax/vax/clock.c

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



CVS commit: [matt-nb5-mips64] src/distrib/utils/more

2012-03-06 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Tue Mar  6 23:40:47 UTC 2012

Modified Files:
src/distrib/utils/more [matt-nb5-mips64]: main.c

Log Message:
Change to use C89 concatenated strings.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.9.38.1 src/distrib/utils/more/main.c

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



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

2012-03-06 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Wed Mar  7 07:24:06 UTC 2012

Modified Files:
src/tests/lib/libc/sys: t_listen.c

Log Message:
Check the error values from listen(2), incl. case for standards/46150.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/sys/t_listen.c

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