CVS commit: src/share/man/man7

2012-07-01 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Sun Jul  1 16:09:12 UTC 2012

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

Log Message:
Add reference to rfc6056.7


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/share/man/man7/intro.7

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

Modified files:

Index: src/share/man/man7/intro.7
diff -u src/share/man/man7/intro.7:1.20 src/share/man/man7/intro.7:1.21
--- src/share/man/man7/intro.7:1.20	Fri Mar 18 22:24:57 2011
+++ src/share/man/man7/intro.7	Sun Jul  1 16:09:12 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: intro.7,v 1.20 2011/03/18 22:24:57 jruoho Exp $
+.\	$NetBSD: intro.7,v 1.21 2012/07/01 16:09:12 perry Exp $
 .\
 .\ Copyright (c) 1983, 1990, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -86,6 +86,8 @@ packages collection
 layout of
 .Nx
 releases and snapshots
+.It Xr rfc6056
+udp port randomization algorithms
 .It Xr script 7
 how interpreter scripts are executed
 .It Xr security 7



CVS commit: src/share/man/man7

2012-07-01 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Sun Jul  1 16:17:06 UTC 2012

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

Log Message:
forgot the 7...


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/share/man/man7/intro.7

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

Modified files:

Index: src/share/man/man7/intro.7
diff -u src/share/man/man7/intro.7:1.21 src/share/man/man7/intro.7:1.22
--- src/share/man/man7/intro.7:1.21	Sun Jul  1 16:09:12 2012
+++ src/share/man/man7/intro.7	Sun Jul  1 16:17:06 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: intro.7,v 1.21 2012/07/01 16:09:12 perry Exp $
+.\	$NetBSD: intro.7,v 1.22 2012/07/01 16:17:06 perry Exp $
 .\
 .\ Copyright (c) 1983, 1990, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -86,7 +86,7 @@ packages collection
 layout of
 .Nx
 releases and snapshots
-.It Xr rfc6056
+.It Xr rfc6056 7
 udp port randomization algorithms
 .It Xr script 7
 how interpreter scripts are executed



CVS commit: src/share/man/man7

2012-07-01 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Sun Jul  1 16:09:12 UTC 2012

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

Log Message:
Add reference to rfc6056.7


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/share/man/man7/intro.7

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



CVS commit: src/share/man/man7

2012-07-01 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Sun Jul  1 16:17:06 UTC 2012

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

Log Message:
forgot the 7...


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/share/man/man7/intro.7

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



CVS commit: src/bin/sh/USD.doc

2010-08-21 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Sun Aug 22 02:03:07 UTC 2010

Modified Files:
src/bin/sh/USD.doc: t1 t2 t3 t4

Log Message:
Extremely extensive updates.

This document should now serve as a reasonable tutorial for the
modern POSIX shell. Comments and additional fixes for mistakes I may
have made are solicited.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/bin/sh/USD.doc/t1 src/bin/sh/USD.doc/t2 \
src/bin/sh/USD.doc/t3 src/bin/sh/USD.doc/t4

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

Modified files:

Index: src/bin/sh/USD.doc/t1
diff -u src/bin/sh/USD.doc/t1:1.1 src/bin/sh/USD.doc/t1:1.2
--- src/bin/sh/USD.doc/t1:1.1	Sun Aug 22 01:58:16 2010
+++ src/bin/sh/USD.doc/t1	Sun Aug 22 02:03:06 2010
@@ -14,7 +14,7 @@
 .\ documentation and/or other materials provided with the distribution.
 .\
 .\ All advertising materials mentioning features or use of this software
-.\ must display the following acknowledgement:
+.\ must display the following acknowledgment:
 .\
 .\ This product includes software developed or owned by Caldera
 .\ International, Inc.  Neither the name of Caldera International, Inc.
@@ -40,7 +40,7 @@
 .EH 'USD:3-%''An Introduction to the UNIX Shell'
 .OH 'An Introduction to the UNIX Shell''USD:3-%'
 .\.RP
-.TL 
+.TL
 An Introduction to the UNIX Shell
 .AU
 S. R. Bourne
@@ -48,15 +48,23 @@
 Murray Hill, NJ
 .AU
 (Updated for 4.3BSD by Mark Seiden)
+.AU
+(Further updated by Perry E. Metzger)\(dg
 .AB
+.FS
+\(dg This paper was updated in 2010 to reflect most features of modern
+POSIX shells, which all follow the design of S.R. Bourne's original v7
+Unix shell.
+Among these are ash, bash, ksh and others.
+Typically one of these will be installed as /bin/sh on a modern system.
+It does not describe the behavior of the c shell (csh).
+If it's the c shell (csh) you're interested in, a good place to
+begin is William Joy's paper An Introduction to the C shell (USD:4).
+.FE
 .LP
 The
 .ul
-shell\(dd
-.FS 
-\(dd This paper describes sh(1). If it's the c shell (csh) you're interested in, 
-a good place to begin is William Joy's paper An Introduction to the C shell (USD:4).
-.FE
+shell
 is a command programming language that provides an interface
 to the
 .UX
@@ -156,28 +164,7 @@
 to print status information, size and
 the creation date for each file.
 .SH
-1.2\ Background\ commands
-.LP
-To execute a command the shell normally
-creates a new \fIprocess\fP
-and waits for it to finish.
-A command may be run without waiting
-for it to finish.
-For example,
-.DS
-	cc pgm.c 
-.DE
-calls the C compiler to compile
-the file \fIpgm.c\|.\fP
-The trailing \fB\fP is an operator that instructs the shell
-not to wait for the command to finish.
-To help keep track of such a process
-the shell reports its process
-number following its creation.
-A list of currently active processes may be obtained
-using the \fIps\fP command.
-.SH
-1.3\ Input\ output\ redirection
+1.2\ Input\ output\ redirection
 .LP
 Most commands produce output on the standard output
 that is initially connected to the terminal.
@@ -218,8 +205,30 @@
 	wc \(mil file
 .DE
 could be used.
+.\ I considered adding the following, but have thought better of it
+.\ for now.
+.\ -- Perry Metzger
+.\
+.\ .LP
+.\ Error messages are typically printed by commands on a different
+.\ channel, called standard error, which may also be redirected using the
+.\ notation 2\|.
+.\ For example
+.\ .DS
+.\ command some args out 2errors
+.\ .DE
+.\ will redirect standard output to the file `out' but standard error
+.\ (and thus all error messages) to `errors'.
+.\ The notation 21 sets standard error pointing to the same
+.\ place as standard out.
+.\ Thus:
+.\ .DS
+.\ command some args 21 everything
+.\ .DE
+.\ will put both standard out and standard error into the file `everything'.
+.\ See section 3.7 below for more details.
 .SH
-1.4\ Pipelines\ and\ filters
+1.3\ Pipelines\ and\ filters
 .LP
 The standard output of one command may be
 connected to the standard input of another
@@ -237,8 +246,8 @@
 	ls \(mil file; wc file
 .DE
 except that no \fIfile\fP is used.
-Instead the two processes are connected
-by a pipe (see \fIpipe\fP (2)) and are
+Instead the two \fIprocesses\fP are connected
+by a pipe (see \fIpipe\fP(2)) and are
 run in parallel.
 Pipes are unidirectional and
 synchronization is achieved by
@@ -277,6 +286,37 @@
 in the current directory containing
 the string \fIold.\fP
 .SH
+1.4\ Background\ commands
+.LP
+To execute a command (or pipeline) the shell normally
+creates the new \fIprocesses\fP
+and waits for them to finish.
+A command may be run without waiting
+for it to finish.
+For example,
+.DS
+	cc pgm.c 
+.DE
+calls the C compiler to compile
+the file \fIpgm.c\|.\fP
+The trailing \fB\fP is an operator that instructs the shell
+not to wait for the command to finish.
+To help keep track of such a process
+the shell reports its job

CVS commit: src/bin/sh

2010-08-21 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Sun Aug 22 02:09:36 UTC 2010

Modified Files:
src/bin/sh: Makefile

Log Message:
build the tutoral


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/bin/sh/Makefile

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

Modified files:

Index: src/bin/sh/Makefile
diff -u src/bin/sh/Makefile:1.91 src/bin/sh/Makefile:1.92
--- src/bin/sh/Makefile:1.91	Sat Feb  6 23:45:26 2010
+++ src/bin/sh/Makefile	Sun Aug 22 02:09:36 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.91 2010/02/06 23:45:26 he Exp $
+#	$NetBSD: Makefile,v 1.92 2010/08/22 02:09:36 perry Exp $
 #	@(#)Makefile	8.4 (Berkeley) 5/5/95
 
 .include bsd.own.mk
@@ -77,4 +77,8 @@
 NBCOMPATLIB=	-L${COMPATOBJDIR} -lnbcompat
 .endif
 
+.if make(install)
+SUBDIR+=USD.doc
+.endif
+
 .include bsd.prog.mk



CVS commit: src/distrib/sets/lists/misc

2010-08-21 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Sun Aug 22 02:16:17 UTC 2010

Modified Files:
src/distrib/sets/lists/misc: mi

Log Message:
add 03.shell


To generate a diff of this commit:
cvs rdiff -u -r1.166 -r1.167 src/distrib/sets/lists/misc/mi

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

Modified files:

Index: src/distrib/sets/lists/misc/mi
diff -u src/distrib/sets/lists/misc/mi:1.166 src/distrib/sets/lists/misc/mi:1.167
--- src/distrib/sets/lists/misc/mi:1.166	Sat Aug  7 20:48:54 2010
+++ src/distrib/sets/lists/misc/mi	Sun Aug 22 02:16:17 2010
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.166 2010/08/07 20:48:54 christos Exp $
+# $NetBSD: mi,v 1.167 2010/08/22 02:16:17 perry Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -574,6 +574,13 @@
 ./usr/share/doc/usd/01.begin/u3			misc-usd-doc		doc
 ./usr/share/doc/usd/01.begin/u4			misc-usd-doc		doc
 ./usr/share/doc/usd/01.begin/u5			misc-usd-doc		doc
+./usr/share/doc/usd/03.shell/Makefile		misc-usd-doc		doc
+./usr/share/doc/usd/03.shell/Rv7man		misc-usd-doc		doc
+./usr/share/doc/usd/03.shell/t.mac		misc-usd-doc		doc
+./usr/share/doc/usd/03.shell/t1			misc-usd-doc		doc
+./usr/share/doc/usd/03.shell/t2			misc-usd-doc		doc
+./usr/share/doc/usd/03.shell/t3			misc-usd-doc		doc
+./usr/share/doc/usd/03.shell/t4			misc-usd-doc		doc
 ./usr/share/doc/usd/04.csh/Makefile		misc-usd-doc		doc
 ./usr/share/doc/usd/04.csh/csh.1		misc-usd-doc		doc
 ./usr/share/doc/usd/04.csh/csh.2		misc-usd-doc		doc



CVS commit: src/bin/sh/USD.doc

2010-08-21 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Sun Aug 22 02:19:07 UTC 2010

Modified Files:
src/bin/sh/USD.doc: t.mac t1 t2 t3 t4

Log Message:
RCSIds


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/bin/sh/USD.doc/t.mac
cvs rdiff -u -r1.2 -r1.3 src/bin/sh/USD.doc/t1 src/bin/sh/USD.doc/t2 \
src/bin/sh/USD.doc/t3 src/bin/sh/USD.doc/t4

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

Modified files:

Index: src/bin/sh/USD.doc/t.mac
diff -u src/bin/sh/USD.doc/t.mac:1.1 src/bin/sh/USD.doc/t.mac:1.2
--- src/bin/sh/USD.doc/t.mac:1.1	Sun Aug 22 01:58:16 2010
+++ src/bin/sh/USD.doc/t.mac	Sun Aug 22 02:19:07 2010
@@ -1,3 +1,4 @@
+.\	$NetBSD: t.mac,v 1.2 2010/08/22 02:19:07 perry Exp $
 .\
 .\ Copyright (C) Caldera International Inc. 2001-2002.  All rights reserved.
 .\

Index: src/bin/sh/USD.doc/t1
diff -u src/bin/sh/USD.doc/t1:1.2 src/bin/sh/USD.doc/t1:1.3
--- src/bin/sh/USD.doc/t1:1.2	Sun Aug 22 02:03:06 2010
+++ src/bin/sh/USD.doc/t1	Sun Aug 22 02:19:07 2010
@@ -1,3 +1,4 @@
+.\	$NetBSD: t1,v 1.3 2010/08/22 02:19:07 perry Exp $
 .\
 .\ Copyright (C) Caldera International Inc. 2001-2002.  All rights reserved.
 .\
Index: src/bin/sh/USD.doc/t2
diff -u src/bin/sh/USD.doc/t2:1.2 src/bin/sh/USD.doc/t2:1.3
--- src/bin/sh/USD.doc/t2:1.2	Sun Aug 22 02:03:06 2010
+++ src/bin/sh/USD.doc/t2	Sun Aug 22 02:19:07 2010
@@ -1,3 +1,4 @@
+.\	$NetBSD: t2,v 1.3 2010/08/22 02:19:07 perry Exp $
 .\
 .\ Copyright (C) Caldera International Inc. 2001-2002.  All rights reserved.
 .\
Index: src/bin/sh/USD.doc/t3
diff -u src/bin/sh/USD.doc/t3:1.2 src/bin/sh/USD.doc/t3:1.3
--- src/bin/sh/USD.doc/t3:1.2	Sun Aug 22 02:03:06 2010
+++ src/bin/sh/USD.doc/t3	Sun Aug 22 02:19:07 2010
@@ -1,3 +1,4 @@
+.\	$NetBSD: t3,v 1.3 2010/08/22 02:19:07 perry Exp $
 .\
 .\ Copyright (C) Caldera International Inc. 2001-2002.  All rights reserved.
 .\
Index: src/bin/sh/USD.doc/t4
diff -u src/bin/sh/USD.doc/t4:1.2 src/bin/sh/USD.doc/t4:1.3
--- src/bin/sh/USD.doc/t4:1.2	Sun Aug 22 02:03:06 2010
+++ src/bin/sh/USD.doc/t4	Sun Aug 22 02:19:07 2010
@@ -1,3 +1,4 @@
+.\	$NetBSD: t4,v 1.3 2010/08/22 02:19:07 perry Exp $
 .\
 .\ Copyright (C) Caldera International Inc. 2001-2002.  All rights reserved.
 .\



CVS commit: src/bin/sh

2010-08-21 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Sun Aug 22 02:21:31 UTC 2010

Modified Files:
src/bin/sh: Makefile

Log Message:
add bsd.subdir.mk


To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 src/bin/sh/Makefile

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

Modified files:

Index: src/bin/sh/Makefile
diff -u src/bin/sh/Makefile:1.92 src/bin/sh/Makefile:1.93
--- src/bin/sh/Makefile:1.92	Sun Aug 22 02:09:36 2010
+++ src/bin/sh/Makefile	Sun Aug 22 02:21:31 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.92 2010/08/22 02:09:36 perry Exp $
+#	$NetBSD: Makefile,v 1.93 2010/08/22 02:21:31 perry Exp $
 #	@(#)Makefile	8.4 (Berkeley) 5/5/95
 
 .include bsd.own.mk
@@ -82,3 +82,4 @@
 .endif
 
 .include bsd.prog.mk
+.include bsd.subdir.mk



CVS commit: src/bin/sh/USD.doc

2010-08-21 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Sun Aug 22 01:58:17 UTC 2010

Added Files:
src/bin/sh/USD.doc: Makefile Rv7man t.mac t1 t2 t3 t4

Log Message:
Revive S.R. Bourne's original tutorial on using the Bourne Shell.
This initial commit consists of the files as they existed in 4.4BSD,
with the copyrights altered to reflect the subsequent BSD relicensing.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/bin/sh/USD.doc/Makefile src/bin/sh/USD.doc/Rv7man \
src/bin/sh/USD.doc/t.mac src/bin/sh/USD.doc/t1 src/bin/sh/USD.doc/t2 \
src/bin/sh/USD.doc/t3 src/bin/sh/USD.doc/t4

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



CVS commit: src/bin/sh/USD.doc

2010-08-21 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Sun Aug 22 02:03:07 UTC 2010

Modified Files:
src/bin/sh/USD.doc: t1 t2 t3 t4

Log Message:
Extremely extensive updates.

This document should now serve as a reasonable tutorial for the
modern POSIX shell. Comments and additional fixes for mistakes I may
have made are solicited.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/bin/sh/USD.doc/t1 src/bin/sh/USD.doc/t2 \
src/bin/sh/USD.doc/t3 src/bin/sh/USD.doc/t4

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



CVS commit: src/bin/sh

2010-08-21 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Sun Aug 22 02:09:36 UTC 2010

Modified Files:
src/bin/sh: Makefile

Log Message:
build the tutoral


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/bin/sh/Makefile

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



CVS commit: src/distrib/sets/lists/misc

2010-08-21 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Sun Aug 22 02:16:17 UTC 2010

Modified Files:
src/distrib/sets/lists/misc: mi

Log Message:
add 03.shell


To generate a diff of this commit:
cvs rdiff -u -r1.166 -r1.167 src/distrib/sets/lists/misc/mi

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



CVS commit: src/bin/sh/USD.doc

2010-08-21 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Sun Aug 22 02:19:07 UTC 2010

Modified Files:
src/bin/sh/USD.doc: t.mac t1 t2 t3 t4

Log Message:
RCSIds


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/bin/sh/USD.doc/t.mac
cvs rdiff -u -r1.2 -r1.3 src/bin/sh/USD.doc/t1 src/bin/sh/USD.doc/t2 \
src/bin/sh/USD.doc/t3 src/bin/sh/USD.doc/t4

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



CVS commit: src/bin/sh

2010-08-21 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Sun Aug 22 02:21:31 UTC 2010

Modified Files:
src/bin/sh: Makefile

Log Message:
add bsd.subdir.mk


To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 src/bin/sh/Makefile

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



CVS commit: src/etc/rc.d

2009-08-03 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Mon Aug  3 17:45:48 UTC 2009

Modified Files:
src/etc/rc.d: named ntpdate

Log Message:
ntpdate can't work without named because a modern ntp.conf has dns
names in it. We therefore now depend on it.

However, this would have then created a circular dependency because named
depended on SERVERS, and racoon was before SERVERS and required kdc,
and kdc needs the time to be right and thus depended on ntp.

Instead, have named depend on NETWORKING (so that there is a network
there), mountcritremote (so we know that named has a directory to work
from) and syslogd (so that named has some place to spew information).

I'm not sure this is perfect, but it is certainly a big improvement
over constantly failing ntpdate runs during boot.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/etc/rc.d/named
cvs rdiff -u -r1.18 -r1.19 src/etc/rc.d/ntpdate

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

Modified files:

Index: src/etc/rc.d/named
diff -u src/etc/rc.d/named:1.21 src/etc/rc.d/named:1.22
--- src/etc/rc.d/named:1.21	Sat Apr 25 15:46:19 2009
+++ src/etc/rc.d/named	Mon Aug  3 17:45:48 2009
@@ -1,10 +1,10 @@
 #!/bin/sh
 #
-# $NetBSD: named,v 1.21 2009/04/25 15:46:19 christos Exp $
+# $NetBSD: named,v 1.22 2009/08/03 17:45:48 perry Exp $
 #
 
 # PROVIDE: named
-# REQUIRE: SERVERS
+# REQUIRE: NETWORKING mountcritremote syslogd
 # BEFORE:  DAEMON
 # KEYWORD: chrootdir
 

Index: src/etc/rc.d/ntpdate
diff -u src/etc/rc.d/ntpdate:1.18 src/etc/rc.d/ntpdate:1.19
--- src/etc/rc.d/ntpdate:1.18	Tue Mar 15 12:06:12 2005
+++ src/etc/rc.d/ntpdate	Mon Aug  3 17:45:48 2009
@@ -1,10 +1,10 @@
 #!/bin/sh
 #
-# $NetBSD: ntpdate,v 1.18 2005/03/15 12:06:12 lukem Exp $
+# $NetBSD: ntpdate,v 1.19 2009/08/03 17:45:48 perry Exp $
 #
 
 # PROVIDE: ntpdate
-# REQUIRE: NETWORKING mountcritremote syslogd
+# REQUIRE: NETWORKING mountcritremote syslogd named
 
 $_rc_subr_loaded . /etc/rc.subr
 



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

2009-07-30 Thread Perry E. Metzger

David Laight d...@netbsd.org writes:
 Module Name:  src
 Committed By: dsl
 Date: Thu Jul 30 21:42:06 UTC 2009

 Modified Files:
   src/lib/libc/string: strcspn.c strspn.c

 Log Message:
 Use a 'register only' str[c]spn() on 64 bit systems.

How much of a speedup is this?

Also, you have a spelling error in a comment.

Perry


Re: CVS commit: src/sys/dev/gpio

2009-07-27 Thread Perry E. Metzger

Arnaud Lacombe lacom...@gmail.com writes:
 On Sun, Jul 26, 2009 at 5:26 PM, matthew greenm...@eterna.com.au wrote:
 incidentially, i actually did object to this change on ICB last night
 but i was off to bed and didn't feel like arguing at the time.  i
 didn't expect to see it commited straight away.  so marc's claim that
 it did not get any objections is infact not entirely right.

 OOTH, it's not like the code in question was already heavily used:

 -/* $NetBSD: gpiosim.c,v 1.1 2009/07/25 16:17:10 mbalmer Exp $ */
 +/* $NetBSD: gpiosim.c,v 1.2 2009/07/26 13:45:20 mbalmer Exp $ */


And in addition to being less than 24 hours old, the code was his own
code. The clear de facto rule is that you can change code you wrote and
own with a lot less approval, even for a new developer, than other stuff
requires.

I'm equally upset that Tonnerre sent him a public rebuke. He could have
said, in private, hey, thanks for the enthusiasm, though FYI, you
should still be checking stuff with your mentors -- but instead he was
very cold about it and did it in public. Neither of those is acceptable.

 I join perry@ on this thread, and chritos@ too as this should have
 been privately discussed.

Violent agreement all around.

Perry
-- 
Perry E. Metzgerpe...@piermont.com


Re: CVS commit: src/sys/dev/gpio

2009-07-27 Thread Perry E. Metzger

Arnaud Lacombe lacom...@gmail.com writes:
 On Mon, Jul 27, 2009 at 1:41 PM, Perry E. Metzgerpe...@piermont.com wrote:
 And in addition to being less than 24 hours old, the code was his own
 code. The clear de facto rule is that you can change code you wrote and
 own with a lot less approval, even for a new developer, than other stuff
 requires.

 As you comment on this, let me put my original comment on hold. There
 has been only a few hours (~6) between Marc's update and the first
 commit. I'm not sure I should have commented on this.

Eh, if we make it too hard to commit to code under active development,
people won't actively develop. Marc has also shown that he's willing to
make reasonable changes when improvements are pointed out to him.

In the end, if we're more concerned about strict rules than code we'll
get more strict rules than code.

Perry
-- 
Perry E. Metzgerpe...@piermont.com


Re: CVS commit: src/sys/dev/gpio

2009-07-26 Thread Perry E. Metzger

Tonnerre LOMBARD tonne...@netbsd.ch writes:
 I am somehow missing an approved by: in this commit message. Whose
 approval did you get?
 
 It was discussed on ICB and no one really objected after the name
 was changed.

 While you're still a newdev, please get approval from a specific person
 before you commit changes.

I don't think the change was unreasonable or required more approval than
Marc already got.

Perry
-- 
Perry E. Metzgerpe...@piermont.com


CVS commit: src/lib/libedit

2009-07-05 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Sun Jul  5 21:55:24 UTC 2009

Modified Files:
src/lib/libedit: editline.3

Log Message:
note that the return value of el_gets doesn't remain valid across
calls.


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/lib/libedit/editline.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/libedit/editline.3
diff -u src/lib/libedit/editline.3:1.69 src/lib/libedit/editline.3:1.70
--- src/lib/libedit/editline.3:1.69	Tue May 12 08:14:07 2009
+++ src/lib/libedit/editline.3	Sun Jul  5 21:55:24 2009
@@ -1,4 +1,4 @@
-.\	$NetBSD: editline.3,v 1.69 2009/05/12 08:14:07 wiz Exp $
+.\	$NetBSD: editline.3,v 1.70 2009/07/05 21:55:24 perry Exp $
 .\
 .\ Copyright (c) 1997-2003 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -26,7 +26,7 @@
 .\ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\ POSSIBILITY OF SUCH DAMAGE.
 .\
-.Dd May 11, 2009
+.Dd July 5, 2009
 .Dt EDITLINE 3
 .Os
 .Sh NAME
@@ -162,6 +162,9 @@
 is set to \-1 and
 .Dv errno
 contains the error code that caused it.
+The return value may not remain valid across calls to
+.Fn el_gets
+and must be copied if the data is to be retained.
 .It Fn el_getc
 Read a character from the tty.
 .Fa ch



Re: CVS commit: src/external/ibm-public

2009-06-25 Thread Perry E. Metzger

Matthias Scheler t...@netbsd.org writes:
 On Thu, Jun 25, 2009 at 10:04:01AM -0400, Perry E. Metzger wrote:
 Ah, well, if that has changed, then clearly it should be left in the new
 setup. That does leave the question of whether we should obsolete the
 /etc/postfix/postfix-script etc files in the set lists.

 Yes, we should. And I've already done that.

Excellent.

Oh, and thank you for doing all the work needed to get Postfix up to
date -- it is much appreciated!

Perry


Re: CVS commit: src/sys

2009-06-25 Thread Perry E. Metzger

Arnaud Lacombe lacom...@gmail.com writes:
 On Wed, Jun 24, 2009 at 6:42 AM, Izumi Tsutsuitsut...@ceres.dti.ne.jp wrote:
 - it's reasonable for me that we should wait at least a week
  before to consider no response means no objections.

 FWIW, I'm not sure the policy wait for objection and commit if none
 is the best to follow. I (personally) prefers the wait for approval
 and commit one.

90% of the time no one cares enough and since no one is in charge of
approving, approval would never come.

Perry


Re: CVS commit: src/external/ibm-public

2009-06-23 Thread Perry E. Metzger

Matthias Scheler t...@netbsd.org writes:
 Log Message:
 Add makefile framework to build Postfix 2.6.2. Don't turn it on yet as
 the Postfix 2.6.2 binary doesn't work yet because it cannot
 find /usr/libexec/postfix/postfix-script.

That has to be /etc/postfix/postfix-script (yes, I know, it is unusual,
but Wietse had reasons for wanting it that way -- it is partially
configuration oriented.)

Perry


Re: CVS commit: src/sys

2009-06-23 Thread Perry E. Metzger

Andrew Doran a...@netbsd.org writes:
 On Tue, Jun 23, 2009 at 07:36:41PM +, Elad Efrat wrote:

 Log Message:
 Move the implementation of vaccess() to genfs_can_access(), in line with
 the other routines of the same spirit.
 ...
 No objections on tech-kern@:
 
  http://mail-index.netbsd.org/tech-kern/2009/06/21/msg005310.html

 48 hours is not long enough, it has been raised with you before. Are you
 deliberately trying to piss everyone off? Because it certainly comes over
 that way.

Two days without comments isn't always unreasonable, is it?

Perry


Re: CVS commit: src/external/ibm-public

2009-06-23 Thread Perry E. Metzger

Perry E. Metzger pe...@piermont.com writes:
 Matthias Scheler t...@netbsd.org writes:
 Log Message:
 Add makefile framework to build Postfix 2.6.2. Don't turn it on yet as
 the Postfix 2.6.2 binary doesn't work yet because it cannot
 find /usr/libexec/postfix/postfix-script.

 That has to be /etc/postfix/postfix-script (yes, I know, it is unusual,
 but Wietse had reasons for wanting it that way -- it is partially
 configuration oriented.)

Change that from has to to has been and possibly should be -- at the
very least, we should discuss what the change means.

-- 
Perry E. Metzgerpe...@piermont.com


Re: CVS commit: src/crypto/external/bsd/netpgp/dist

2009-05-26 Thread Perry E. Metzger

David Holland dholland-sourcechan...@netbsd.org writes:
 On Mon, May 11, 2009 at 10:32:30AM -0400, Perry E. Metzger wrote:
   The only thing I will directly advocate for (besides scrapping the
   current UI) is something like the ssh-agent functionality. It is painful
   having to type in your passphrase for every email message you read,
   every one you want to sign, etc.

 What do you think of plan9 factotum? I remember thinking it was
 reasonably sane, although that was long enough ago that I forget all
 the details.

As do I -- I would need to re-read about it.

Perry
-- 
Perry E. Metzgerpe...@piermont.com


CVS commit: xsrc/external/mit/xorg-cf-files/dist

2009-05-13 Thread Perry E. Metzger
Module Name:xsrc
Committed By:   perry
Date:   Wed May 13 21:27:48 UTC 2009

Modified Files:
xsrc/external/mit/xorg-cf-files/dist: X11.tmpl

Log Message:
remove libXaw dependencies on libXp. okayed by mrg.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 xsrc/external/mit/xorg-cf-files/dist/X11.tmpl

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

Modified files:

Index: xsrc/external/mit/xorg-cf-files/dist/X11.tmpl
diff -u xsrc/external/mit/xorg-cf-files/dist/X11.tmpl:1.1.1.1 xsrc/external/mit/xorg-cf-files/dist/X11.tmpl:1.2
--- xsrc/external/mit/xorg-cf-files/dist/X11.tmpl:1.1.1.1	Wed Jul 30 04:32:46 2008
+++ xsrc/external/mit/xorg-cf-files/dist/X11.tmpl	Wed May 13 21:27:48 2009
@@ -3928,21 +3928,13 @@
 #endif
 
 #ifndef ExtraXawReqs
-# if BuildXaw
-#  define ExtraXawReqs $(XPLIB)
-# else
-#  define ExtraXawReqs /**/
-# endif
+# define ExtraXawReqs /**/
 #endif
 
 EXTRAXAWREQS = ExtraXawReqs
 
 #ifndef ExtraXawClientDepLibs
-# if BuildXaw
-#  define ExtraXawClientDepLibs $(DEPXPLIB)
-# else
-#  define ExtraXawClientDepLibs /**/
-# endif
+# define ExtraXawClientDepLibs /**/
 #endif
 
 EXTRAXAWCLIENTDEPLIBS = ExtraXawClientDepLibs
@@ -3952,11 +3944,7 @@
 #endif
 
 #ifndef ExtraXawClientLibs
-# if BuildXaw
-#  define ExtraXawClientLibs $(XPLIB)
-# else
-#  define ExtraXawClientLibs /**/
-# endif
+# define ExtraXawClientLibs /**/
 #endif
 
 EXTRAXAWCLIENTLIBS = ExtraXawClientLibs



Re: CVS commit: src/crypto/external/bsd/netpgp/dist

2009-05-12 Thread Perry E. Metzger


Alistair G. Crooks a...@netbsd.org writes:
 + allow a choice of hash algorithms for the signature digest (rather
   than hardcoding SHA1 - it is looking as though collisions are easier
   to manufacture based on recent findings)
 + move default signature RSA hash algorithm to SHA256 (from SHA1). This is
   passed as a string parameter from the high-level interface. We'll
   revisit this later after a good way to specify the algorithm has been
   found.

I presume this isn't in the man page because you're waiting on the final
method to handle it?

Perry


Re: CVS commit: src/sys/dev/dec

2009-05-12 Thread Perry E. Metzger

Christoph Egger christoph_eg...@gmx.de writes:
 Izumi Tsutsui wrote:
 Now, of course, that doesn't come as a surprise.  Some people just never
 learn or listen.  Or apologise.
 
 Honestly, I'd like to see proper fixes for output of
 grep -r 'memcpy( ' sys/arch ,
 before another set of mechanical changes.

 I broke it, so I will fix it.
 Do you want to review the patch ?

If you compare the binary file output, there will be no need for review
because you won't be guessing that stuff hasn't changed, you will
*know*.

I don't think you should commit any more cosmetic changes if you aren't
willing to do that sort of check. If you script it, it isn't even
terribly much effort.

Perry
-- 
Perry E. Metzgerpe...@piermont.com


Re: CVS commit: src/crypto/external/bsd/netpgp/dist

2009-05-11 Thread Perry E. Metzger

Alistair Crooks a...@pkgsrc.org writes:
 I'll look into providing that somehow (I've been of the opinion that
 we need one binary for key management, and one binary for
 signing/verification and encrypting/decrypting for a while now - it's
 the way that the old nbpg SoC project was going too), and that
 definitely gives me an incentive to do that kind of split.

The worst part of pgp and gpg have always been the user interfaces --
bulky, so many options you can't remember which ones you want at any
given time, complicated init files, etc.

I would suggest ignoring any prior precedents on such matters because
they're all bad and start from a clean slate. Start fresh as though you
were a sane Unix geek building from scratch and produce an interface
that is intuitive to Unix users -- if you do, netpgp will take over the
world.

The only thing I will directly advocate for (besides scrapping the
current UI) is something like the ssh-agent functionality. It is painful
having to type in your passphrase for every email message you read,
every one you want to sign, etc.

Perry
-- 
Perry E. Metzgerpe...@piermont.com


Re: CVS commit: src/crypto/external/bsd/netpgp/dist

2009-05-10 Thread Perry E. Metzger

Simon Burge sim...@netbsd.org writes:
 Perry E. Metzger wrote:

 [ ... ] Encrypted swap should
 be the default -- either using cgd or by simply encrypting the blocks as
 they go in and out without using the cgd layer.

 You've benchmarked the effect of this, especially on older hardware?

No, but others have, and it is generally negligible. Why is this the
case? Well, think about it for a moment -- the time to encrypt a disk
block is a tiny fraction of the time needed to write it to disk. It is
true that on older machines there is less processor, but there is also
even less disk bandwidth. The situation is a lot worse if you're
thrashing, but of course the situation is always a lot worse if you're
thrashing.

In any case: there would clearly be a knob to this on and off, and it
can even be left off by default, at least on older ports. The problem is
this: it is a significant effort to set this up at all, so no one does
it. If it was trivial to set up, even something listed in sysinst, it
would be widely used, unlike the situation now where it is barely if
ever done.

Perry
-- 
Perry E. Metzgerpe...@piermont.com


CVS commit: src/include

2009-05-01 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Fri May  1 17:16:49 UTC 2009

Modified Files:
src/include: string.h

Log Message:
Add prototypes for stpcpy, stpncpy, strnlen, added in the latest POSIX.

Implementations in libc to follow.

For POSIX compliance, we are still missing:

strcoll_l
strerror_l
strsignal
strxfrm_l


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/include/string.h

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

Modified files:

Index: src/include/string.h
diff -u src/include/string.h:1.36 src/include/string.h:1.37
--- src/include/string.h:1.36	Fri Apr 10 23:00:53 2009
+++ src/include/string.h	Fri May  1 17:16:49 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: string.h,v 1.36 2009/04/10 23:00:53 christos Exp $	*/
+/*	$NetBSD: string.h,v 1.37 2009/05/01 17:16:49 perry Exp $	*/
 
 /*-
  * Copyright (c) 1990, 1993
@@ -79,6 +79,20 @@
 char	*strdup(const char *);
 #endif
 
+#if (_POSIX_C_SOURCE - 0 = 200809L) || (_XOPEN_SOURCE - 0 = 700) || \
+defined(_NETBSD_SOURCE)
+char	*stpcpy(char * __restrict, const char * __restrict);
+char	*stpncpy(char * __restrict, const char * __restrict, size_t);
+size_t	strnlen(const char *, size_t);
+/*
+ * For POSIX compliance, we still need:
+ * strcoll_l
+ * strerror_l
+ * strsignal
+ * strxfrm_l
+ */
+#endif
+
 #if defined(_NETBSD_SOURCE)
 #include strings.h		/* for backwards-compatibilty */
 void	*memmem(const void *, size_t, const void *, size_t);



CVS commit: src/lib/libc

2009-05-01 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Fri May  1 17:27:01 UTC 2009

Modified Files:
src/lib/libc: shlib_version
src/lib/libc/string: Makefile.inc strcpy.3 string.3 strlen.3 wmemchr.3
Added Files:
src/lib/libc/string: stpcpy.c stpncpy.c strnlen.c

Log Message:
Add versions of stpcpy(3), stpncpy(3), strnlen(3), all from FreeBSD.
These are defined in the latest POSIX

Also make related updates to documentation, mostly from FreeBSD,
though I cleaned a few other things up along the way.

Bump shlib_version.

We are still missing strcoll_l, strerror_l, strsignal, strxfrm_l to be
POSIX conformant.


To generate a diff of this commit:
cvs rdiff -u -r1.210 -r1.211 src/lib/libc/shlib_version
cvs rdiff -u -r1.70 -r1.71 src/lib/libc/string/Makefile.inc
cvs rdiff -u -r0 -r1.1 src/lib/libc/string/stpcpy.c \
src/lib/libc/string/stpncpy.c src/lib/libc/string/strnlen.c
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/string/strcpy.3
cvs rdiff -u -r1.15 -r1.16 src/lib/libc/string/string.3
cvs rdiff -u -r1.8 -r1.9 src/lib/libc/string/strlen.3
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/string/wmemchr.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/shlib_version
diff -u src/lib/libc/shlib_version:1.210 src/lib/libc/shlib_version:1.211
--- src/lib/libc/shlib_version:1.210	Sun Apr 12 17:07:16 2009
+++ src/lib/libc/shlib_version	Fri May  1 17:27:01 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: shlib_version,v 1.210 2009/04/12 17:07:16 christos Exp $
+#	$NetBSD: shlib_version,v 1.211 2009/05/01 17:27:01 perry Exp $
 #	Remember to update distrib/sets/lists/base/shl.* when changing
 #
 # things we wish to do on next major version bump:
@@ -35,4 +35,4 @@
 #   it's insufficient bitwidth to implement all ctype class.
 #   see isblank's comment in ctype.h.
 major=12
-minor=166
+minor=167

Index: src/lib/libc/string/Makefile.inc
diff -u src/lib/libc/string/Makefile.inc:1.70 src/lib/libc/string/Makefile.inc:1.71
--- src/lib/libc/string/Makefile.inc:1.70	Fri Apr 10 23:13:38 2009
+++ src/lib/libc/string/Makefile.inc	Fri May  1 17:27:01 2009
@@ -1,11 +1,13 @@
 #	from: @(#)Makefile.inc	8.1 (Berkeley) 6/4/93
-#	$NetBSD: Makefile.inc,v 1.70 2009/04/10 23:13:38 christos Exp $
+#	$NetBSD: Makefile.inc,v 1.71 2009/05/01 17:27:01 perry Exp $
 
 # string sources
 .PATH: ${ARCHDIR}/string ${.CURDIR}/string
 
-SRCS+=	bm.c strcasecmp.c strncasecmp.c strcasestr.c strcoll.c strdup.c \
-	strerror.c strlcat.c strlcpy.c strmode.c strsignal.c strtok.c \
+SRCS+=	bm.c stpcpy.c stpncpy.c \
+	strcasecmp.c strncasecmp.c strcasestr.c strcoll.c strdup.c \
+	strerror.c strlcat.c strlcpy.c strnlen.c \
+	strmode.c strsignal.c strtok.c \
 	strtok_r.c strxfrm.c __strsignal.c strerror_r.c strndup.c \
 	stresep.c memrchr.c
 
@@ -66,8 +68,9 @@
 MLINKS+=strcasecmp.3 strncasecmp.3
 MLINKS+=strcat.3 strncat.3
 MLINKS+=strcmp.3 strncmp.3
-MLINKS+=strcpy.3 strncpy.3
+MLINKS+=strcpy.3 strncpy.3 strcpy.3 stpcpy.3 strcpy.3 stpncpy.3
 MLINKS+=strlcpy.3 strlcat.3
+MLINKS+=strlen.3 strnlen.3
 MLINKS+=strstr.3 strcasestr.3
 MLINKS+=memchr.3 memrchr.3
 MLINKS+=strtok.3 strtok_r.3

Index: src/lib/libc/string/strcpy.3
diff -u src/lib/libc/string/strcpy.3:1.17 src/lib/libc/string/strcpy.3:1.18
--- src/lib/libc/string/strcpy.3:1.17	Mon Oct 16 08:48:45 2006
+++ src/lib/libc/string/strcpy.3	Fri May  1 17:27:01 2009
@@ -30,12 +30,14 @@
 .\ SUCH DAMAGE.
 .\
 .\ from: @(#)strcpy.3	8.1 (Berkeley) 6/4/93
-.\	$NetBSD: strcpy.3,v 1.17 2006/10/16 08:48:45 wiz Exp $
+.\	$NetBSD: strcpy.3,v 1.18 2009/05/01 17:27:01 perry Exp $
 .\
-.Dd May 6, 2002
+.Dd May 1, 2009
 .Dt STRCPY 3
 .Os
 .Sh NAME
+.Nm stpcpy ,
+.Nm stpncpy ,
 .Nm strcpy ,
 .Nm strncpy
 .Nd copy strings
@@ -44,14 +46,18 @@
 .Sh SYNOPSIS
 .In string.h
 .Ft char *
+.Fn stpcpy char * restrict dst const char * restrict src
+.Ft char *
+.Fn stpncpy char * restrict dst const char * restrict src size_t len
+.Ft char *
 .Fn strcpy char * restrict dst const char * restrict src
 .Ft char *
 .Fn strncpy char * restrict dst const char * restrict src size_t len
 .Sh DESCRIPTION
 The
-.Fn strcpy
+.Fn stpcpy
 and
-.Fn strncpy
+.Fn strcpy
 functions
 copy the string
 .Fa src
@@ -62,26 +68,30 @@
 character).
 .Pp
 The
+.Fn stpncpy
+and
 .Fn strncpy
-function copies not more than
+functions copy at most
 .Fa len
-characters into
-.Fa dst ,
-appending
-.Ql \e0
-characters if
+characters from
+.Fa src
+into
+.Fa dst .
+If
 .Fa src
 is less than
 .Fa len
-characters long, and
-.Em not
-terminating
+characters long,
+the remainder of
+.Fa dst
+is filled with
+.Ql \e0
+characters.
+Otherwise,
 .Fa dst
-if
-.Fa src
 is
-.Fa len
-or more characters long.
+.Em not
+terminated.
 .Sh RETURN VALUES
 The
 .Fn strcpy
@@ -90,64 +100,105 @@
 functions
 return
 .Fa dst .
+The
+.Fn stpcpy
+and
+.Fn stpncpy
+functions return a pointer to the terminating
+.Ql \e0
+character of
+.Fa dst .
+If
+.Fn stpncpy
+does not terminate
+.Fa dst
+with a
+.Dv 

CVS commit: src/gnu/dist/groff/tmac

2009-05-01 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Fri May  1 17:31:56 UTC 2009

Modified Files:
src/gnu/dist/groff/tmac: doc-syms

Log Message:
add a POSIX 2008 macro


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/gnu/dist/groff/tmac/doc-syms

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

Modified files:

Index: src/gnu/dist/groff/tmac/doc-syms
diff -u src/gnu/dist/groff/tmac/doc-syms:1.11 src/gnu/dist/groff/tmac/doc-syms:1.12
--- src/gnu/dist/groff/tmac/doc-syms:1.11	Sat Jun  9 10:19:43 2007
+++ src/gnu/dist/groff/tmac/doc-syms	Fri May  1 17:31:56 2009
@@ -567,6 +567,8 @@
 .as doc-str-St--p1003.1-2001(\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
 .ds doc-str-St--p1003.1-2004   \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1-2004
 .as doc-str-St--p1003.1-2004(\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
+.ds doc-str-St--p1003.1-2008   \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1-2008
+.as doc-str-St--p1003.1-2008(\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
 .
 .\ POSIX Part 2: Shell and Utilities
 .ds doc-str-St--p1003.2\*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.2



CVS commit: src/share/tmac

2009-05-01 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Fri May  1 17:52:27 UTC 2009

Modified Files:
src/share/tmac: doc2html

Log Message:
add support for St -p1003.1-2008


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/share/tmac/doc2html

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

Modified files:

Index: src/share/tmac/doc2html
diff -u src/share/tmac/doc2html:1.59 src/share/tmac/doc2html:1.60
--- src/share/tmac/doc2html:1.59	Sun Sep 14 20:29:10 2008
+++ src/share/tmac/doc2html	Fri May  1 17:52:27 2009
@@ -1,4 +1,4 @@
-.\ $NetBSD: doc2html,v 1.59 2008/09/14 20:29:10 apb Exp $
+.\ $NetBSD: doc2html,v 1.60 2009/05/01 17:52:27 perry Exp $
 .\
 .\ Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -1198,6 +1198,11 @@
 .			as std-tmp1  \exactly one space
 .			as std-tmp1 (``\\*(Px.1'')
 .		\}
+.		if \\$1-p1003.1-2008 \{\
+.			ds std-tmp1 \IEEE Std 1003.1-2008
+.			as std-tmp1  \exactly one space
+.			as std-tmp1 (``\\*(Px.1'')
+.		\}
 .\ POSIX Part 2: Shell and Utilities
 .		if \\$1-p1003.2 \{\
 .			ds std-tmp1 \IEEE Std 1003.2



CVS commit: src/distrib/sets/lists/comp

2009-05-01 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Fri May  1 18:02:24 UTC 2009

Modified Files:
src/distrib/sets/lists/comp: mi

Log Message:
add stpcpy, stpncpy, strnlen pages.
also sort


To generate a diff of this commit:
cvs rdiff -u -r1.1246 -r1.1247 src/distrib/sets/lists/comp/mi

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

Modified files:

Index: src/distrib/sets/lists/comp/mi
diff -u src/distrib/sets/lists/comp/mi:1.1246 src/distrib/sets/lists/comp/mi:1.1247
--- src/distrib/sets/lists/comp/mi:1.1246	Sat Apr 25 05:54:50 2009
+++ src/distrib/sets/lists/comp/mi	Fri May  1 18:02:24 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.1246 2009/04/25 05:54:50 agc Exp $
+#	$NetBSD: mi,v 1.1247 2009/05/01 18:02:24 perry Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -1624,6 +1624,7 @@
 ./usr/include/netns/spp_debug.h			comp-obsolete		obsolete
 ./usr/include/netns/spp_timer.h			comp-obsolete		obsolete
 ./usr/include/netns/spp_var.h			comp-obsolete		obsolete
+./usr/include/netpgp.hcomp-c-include		crypto
 ./usr/include/nfs/krpc.h			comp-c-include
 ./usr/include/nfs/nfs.hcomp-c-include
 ./usr/include/nfs/nfs_var.h			comp-obsolete		obsolete
@@ -1663,7 +1664,6 @@
 ./usr/include/objc/sarray.h			comp-c-include
 ./usr/include/objc/thr.h			comp-c-include
 ./usr/include/objc/typedstream.h		comp-c-include
-./usr/include/netpgp.hcomp-c-include		crypto
 ./usr/include/openpgpsdk/accumulate.h		comp-c-include		crypto
 ./usr/include/openpgpsdk/armour.h		comp-c-include		crypto
 ./usr/include/openpgpsdk/callback.h		comp-c-include		crypto
@@ -7490,6 +7490,8 @@
 ./usr/share/man/cat3/stat_flags.0		comp-c-catman		.cat
 ./usr/share/man/cat3/stdarg.0			comp-c-catman		.cat
 ./usr/share/man/cat3/stdio.0			comp-c-catman		.cat
+./usr/share/man/cat3/stpcpy.0			comp-c-catman		.cat
+./usr/share/man/cat3/stpnpy.0			comp-c-catman		.cat
 ./usr/share/man/cat3/strcasecmp.0		comp-c-catman		.cat
 ./usr/share/man/cat3/strcasestr.0		comp-c-catman		.cat
 ./usr/share/man/cat3/strcat.0			comp-c-catman		.cat
@@ -7517,6 +7519,7 @@
 ./usr/share/man/cat3/strncmp.0			comp-c-catman		.cat
 ./usr/share/man/cat3/strncpy.0			comp-c-catman		.cat
 ./usr/share/man/cat3/strndup.0			comp-c-catman		.cat
+./usr/share/man/cat3/strnlen.0			comp-c-catman		.cat
 ./usr/share/man/cat3/strpbrk.0			comp-c-catman		.cat
 ./usr/share/man/cat3/strptime.0			comp-c-catman		.cat
 ./usr/share/man/cat3/strrchr.0			comp-c-catman		.cat
@@ -12798,6 +12801,8 @@
 ./usr/share/man/html3/stat_flags.html		comp-c-htmlman		html
 ./usr/share/man/html3/stdarg.html		comp-c-htmlman		html
 ./usr/share/man/html3/stdio.html		comp-c-htmlman		html
+./usr/share/man/html3/stpcpy.html		comp-c-htmlman		html
+./usr/share/man/html3/stpncpy.html		comp-c-htmlman		html
 ./usr/share/man/html3/strcasecmp.html		comp-c-htmlman		html
 ./usr/share/man/html3/strcasestr.html		comp-c-htmlman		html
 ./usr/share/man/html3/strcat.html		comp-c-htmlman		html
@@ -12825,6 +12830,7 @@
 ./usr/share/man/html3/strncmp.html		comp-c-htmlman		html
 ./usr/share/man/html3/strncpy.html		comp-c-htmlman		html
 ./usr/share/man/html3/strndup.html		comp-c-htmlman		html
+./usr/share/man/html3/strnlen.html		comp-c-htmlman		html
 ./usr/share/man/html3/strpbrk.html		comp-c-htmlman		html
 ./usr/share/man/html3/strptime.html		comp-c-htmlman		html
 ./usr/share/man/html3/strrchr.html		comp-c-htmlman		html
@@ -18145,6 +18151,8 @@
 ./usr/share/man/man3/stat_flags.3		comp-c-man		.man
 ./usr/share/man/man3/stdarg.3			comp-c-man		.man
 ./usr/share/man/man3/stdio.3			comp-c-man		.man
+./usr/share/man/man3/stpcpy.3			comp-c-man		.man
+./usr/share/man/man3/stpncpy.3			comp-c-man		.man
 ./usr/share/man/man3/strcasecmp.3		comp-c-man		.man
 ./usr/share/man/man3/strcasestr.3		comp-c-man		.man
 ./usr/share/man/man3/strcat.3			comp-c-man		.man
@@ -18172,6 +18180,7 @@
 ./usr/share/man/man3/strncmp.3			comp-c-man		.man
 ./usr/share/man/man3/strncpy.3			comp-c-man		.man
 ./usr/share/man/man3/strndup.3			comp-c-man		.man
+./usr/share/man/man3/strnlen.3			comp-c-man		.man
 ./usr/share/man/man3/strpbrk.3			comp-c-man		.man
 ./usr/share/man/man3/strptime.3			comp-c-man		.man
 ./usr/share/man/man3/strrchr.3			comp-c-man		.man



CVS commit: src/include

2009-05-01 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Fri May  1 20:01:23 UTC 2009

Modified Files:
src/include: string.h

Log Message:
note that we have strsignal but it is in the wrong include file.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/include/string.h

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

Modified files:

Index: src/include/string.h
diff -u src/include/string.h:1.37 src/include/string.h:1.38
--- src/include/string.h:1.37	Fri May  1 17:16:49 2009
+++ src/include/string.h	Fri May  1 20:01:23 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: string.h,v 1.37 2009/05/01 17:16:49 perry Exp $	*/
+/*	$NetBSD: string.h,v 1.38 2009/05/01 20:01:23 perry Exp $	*/
 
 /*-
  * Copyright (c) 1990, 1993
@@ -88,8 +88,9 @@
  * For POSIX compliance, we still need:
  * strcoll_l
  * strerror_l
- * strsignal
  * strxfrm_l
+ *
+ * and strsignal needs to be moved from unistd.h to here.
  */
 #endif
 



CVS commit: src/distrib/sets/lists/base

2009-05-01 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Fri May  1 21:45:46 UTC 2009

Modified Files:
src/distrib/sets/lists/base: shl.mi

Log Message:
update libc minor number


To generate a diff of this commit:
cvs rdiff -u -r1.466 -r1.467 src/distrib/sets/lists/base/shl.mi

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

Modified files:

Index: src/distrib/sets/lists/base/shl.mi
diff -u src/distrib/sets/lists/base/shl.mi:1.466 src/distrib/sets/lists/base/shl.mi:1.467
--- src/distrib/sets/lists/base/shl.mi:1.466	Fri May  1 15:30:46 2009
+++ src/distrib/sets/lists/base/shl.mi	Fri May  1 21:45:45 2009
@@ -1,4 +1,4 @@
-# $NetBSD: shl.mi,v 1.466 2009/05/01 15:30:46 christos Exp $
+# $NetBSD: shl.mi,v 1.467 2009/05/01 21:45:45 perry Exp $
 #
 # Note:	Don't delete entries from here - mark them as obsolete instead,
 #	unless otherwise stated below.
@@ -13,7 +13,7 @@
 #
 # Note:	libtermcap and libtermlib are hardlinked and share the same version.
 #
-./lib/libc.so.12.166base-sys-shlib		dynamicroot
+./lib/libc.so.12.167base-sys-shlib		dynamicroot
 ./lib/libcrypt.so.1.0base-sys-shlib		dynamicroot
 ./lib/libcrypto.so.5.0base-crypto-shlib	crypto,dynamicroot
 ./lib/libdevmapper.so.1.0			base-lvm-shlib		lvm,dynamicroot
@@ -60,7 +60,7 @@
 ./usr/lib/libbluetooth.so.4.0			base-sys-shlib
 ./usr/lib/libbsdmalloc.so.0.0			base-sys-shlib
 ./usr/lib/libbz2.so.1.1base-sys-shlib
-./usr/lib/libc.so.12.166			base-sys-shlib
+./usr/lib/libc.so.12.167			base-sys-shlib
 ./usr/lib/libcom_err.so.6.0			base-krb5-shlib		kerberos
 ./usr/lib/libcrypt.so.1.0			base-sys-shlib
 ./usr/lib/libcrypto.so.5.0			base-crypto-shlib	crypto



CVS commit: src/distrib/sets/lists/comp

2009-05-01 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Fri May  1 21:50:00 UTC 2009

Modified Files:
src/distrib/sets/lists/comp: mi

Log Message:
fix a tyop


To generate a diff of this commit:
cvs rdiff -u -r1.1247 -r1.1248 src/distrib/sets/lists/comp/mi

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

Modified files:

Index: src/distrib/sets/lists/comp/mi
diff -u src/distrib/sets/lists/comp/mi:1.1247 src/distrib/sets/lists/comp/mi:1.1248
--- src/distrib/sets/lists/comp/mi:1.1247	Fri May  1 18:02:24 2009
+++ src/distrib/sets/lists/comp/mi	Fri May  1 21:49:59 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.1247 2009/05/01 18:02:24 perry Exp $
+#	$NetBSD: mi,v 1.1248 2009/05/01 21:49:59 perry Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -7491,7 +7491,7 @@
 ./usr/share/man/cat3/stdarg.0			comp-c-catman		.cat
 ./usr/share/man/cat3/stdio.0			comp-c-catman		.cat
 ./usr/share/man/cat3/stpcpy.0			comp-c-catman		.cat
-./usr/share/man/cat3/stpnpy.0			comp-c-catman		.cat
+./usr/share/man/cat3/stpncpy.0			comp-c-catman		.cat
 ./usr/share/man/cat3/strcasecmp.0		comp-c-catman		.cat
 ./usr/share/man/cat3/strcasestr.0		comp-c-catman		.cat
 ./usr/share/man/cat3/strcat.0			comp-c-catman		.cat



CVS commit: src

2009-05-01 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Fri May  1 23:08:26 UTC 2009

Modified Files:
src: UPDATING

Log Message:
note a new failure mode thanks to the new string functions
requested by mrg


To generate a diff of this commit:
cvs rdiff -u -r1.194 -r1.195 src/UPDATING

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

Modified files:

Index: src/UPDATING
diff -u src/UPDATING:1.194 src/UPDATING:1.195
--- src/UPDATING:1.194	Sun Mar 29 18:33:56 2009
+++ src/UPDATING	Fri May  1 23:08:25 2009
@@ -1,4 +1,4 @@
-$NetBSD: UPDATING,v 1.194 2009/03/29 18:33:56 mrg Exp $
+$NetBSD: UPDATING,v 1.195 2009/05/01 23:08:25 perry Exp $
 
 This file (UPDATING) is intended to be a brief reference to recent
 changes that might cause problems in the build process, and a guide for
@@ -16,6 +16,14 @@
 Recent changes:
 ^^^
 
+20090501:
+	Several new functions were added to string.h/libc, and this
+	can cause autoconf problems during the tool build for people
+	who fail to clean out their tools objects properly. If you
+	note messages about stpcpy, stpncpy or strnlen accompanying a
+	failure during the tool build, clean out all your tools
+	objects and start again.
+
 20090325:
 	The i386 port was switched to i486 default toolchain.  This requires
 	cleaning your src/tools directory and $TOOLDIR and rebuilding them.



Re: CVS commit: src/external/bsd/bind/dist/bin/named

2009-04-24 Thread Perry E. Metzger

chris...@zoulas.com (Christos Zoulas) writes:
 And I don't really see the need to make the whole namedb directory owned
 by named. Even the pri directory does not need to be writable by named.

The only time named really needs to write to the config dir is for
dynamic update. The only other time it writes is to dump a debugging
file -- the latter is supposed to be done in /var/tmp though.


Perry
-- 
Perry E. Metzgerpe...@piermont.com


Re: CVS commit: src

2009-04-15 Thread Perry E. Metzger

Joerg Sonnenberger jo...@netbsd.org writes:
 Module Name:  src
 Committed By: joerg
 Date: Wed Apr 15 22:36:05 UTC 2009

 Modified Files:
   src/etc/rc.d: Makefile
 Added Files:
   src/sbin/rcorder: rcorder-visualize.sh

 Log Message:
 Add a small script to visualize the rc dependency graph and point to it.

I would just give it a man page, slap it in its own build directory and
install it for real as rcorder-visualize. Why not? It will add
practically no space and it is a useful tool.

Perry



CVS commit: src/etc/rc.d

2009-04-15 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Wed Apr 15 22:03:54 UTC 2009

Modified Files:
src/etc/rc.d: postfix

Log Message:
uppercase pseudodependency


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/etc/rc.d/postfix

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

Modified files:

Index: src/etc/rc.d/postfix
diff -u src/etc/rc.d/postfix:1.14 src/etc/rc.d/postfix:1.15
--- src/etc/rc.d/postfix:1.14	Mon Aug 27 10:59:06 2007
+++ src/etc/rc.d/postfix	Wed Apr 15 22:03:54 2009
@@ -1,9 +1,9 @@
 #!/bin/sh
 #
-# $NetBSD: postfix,v 1.14 2007/08/27 10:59:06 pavel Exp $
+# $NetBSD: postfix,v 1.15 2009/04/15 22:03:54 perry Exp $
 #
 
-# PROVIDE: mail
+# PROVIDE: MAIL
 # REQUIRE: LOGIN
 #	we make mail start late, so that things like .forward's are not
 #	processed until the system is fully operational



CVS commit: src/etc/rc.d

2009-04-15 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Wed Apr 15 22:11:32 UTC 2009

Modified Files:
src/etc/rc.d: postfix

Log Message:
un-uppercase pseudodependency for the moment so as not to break pkgsrc


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/etc/rc.d/postfix

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

Modified files:

Index: src/etc/rc.d/postfix
diff -u src/etc/rc.d/postfix:1.15 src/etc/rc.d/postfix:1.16
--- src/etc/rc.d/postfix:1.15	Wed Apr 15 22:03:54 2009
+++ src/etc/rc.d/postfix	Wed Apr 15 22:11:32 2009
@@ -1,9 +1,9 @@
 #!/bin/sh
 #
-# $NetBSD: postfix,v 1.15 2009/04/15 22:03:54 perry Exp $
+# $NetBSD: postfix,v 1.16 2009/04/15 22:11:32 perry Exp $
 #
 
-# PROVIDE: MAIL
+# PROVIDE: mail
 # REQUIRE: LOGIN
 #	we make mail start late, so that things like .forward's are not
 #	processed until the system is fully operational



CVS commit: src/share/man/man8/man8.i386

2009-04-10 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Fri Apr 10 21:11:28 UTC 2009

Modified Files:
src/share/man/man8/man8.i386: pxeboot.8

Log Message:
Make this reflect reality more -- next-server is necessary, there is
now this boot.cfg thing, etc. Also add a reasonable hint on how to set
up dhcp for booting install kernels via tftp.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/share/man/man8/man8.i386/pxeboot.8

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/man8/man8.i386/pxeboot.8
diff -u src/share/man/man8/man8.i386/pxeboot.8:1.13 src/share/man/man8/man8.i386/pxeboot.8:1.14
--- src/share/man/man8/man8.i386/pxeboot.8:1.13	Wed Mar 11 19:26:09 2009
+++ src/share/man/man8/man8.i386/pxeboot.8	Fri Apr 10 21:11:28 2009
@@ -1,4 +1,4 @@
-.\	$NetBSD: pxeboot.8,v 1.13 2009/03/11 19:26:09 joerg Exp $
+.\	$NetBSD: pxeboot.8,v 1.14 2009/04/10 21:11:28 perry Exp $
 .\
 .\ Copyright (c) 2003
 .\ 	Matthias Drochner.  All rights reserved.
@@ -24,7 +24,7 @@
 .\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\ SUCH DAMAGE.
 .\
-.Dd October 13, 2008
+.Dd April 10, 2008
 .Dt PXEBOOT 8 i386
 .Os
 .Sh NAME
@@ -66,16 +66,33 @@
 .Nx
 .Nm
 program takes control.
-An interactive mode is entered if the
-user presses a key within five seconds.
-After this time or after the user's
+It immediately issues another
+.Tn DHCP
+request to get the name of a
+.Xr boot.cfg 5
+file to load, using
+.Dq boot.cfg
+by default.
+If the boot config file is not found, or if the supplied file appears
+not to be a boot configuration file, the file is skipped.
+Otherwise it is loaded and obeyed as described in 
+.Xr boot.cfg 5 .
+.\ XXX Now, if the boot.cfg is loaded, is DHCP still used to get the
+.\ XXX file name for the kernel? If only the person who had made the
+.\ XXX changes had documented them.
+If a boot configuration is not loaded, the user has the option to
+enter a limited version of the standard interactive boot mode by
+pressing a key within five seconds.
+After this time, or after the user's
 .Ic boot
 command, another
 .Tn DHCP
-request is issued and the kernel
-is loaded as specified in the
+request is issued and the kernel filename returned by the
 .Tn DHCP
-reply.
+reply, using
+.Dq netbsd
+by default,
+is loaded.
 To read the kernel file, the
 .Tn NFS
 .Pq version 2
@@ -92,11 +109,14 @@
 program has the following special parameters:
 .Bl -tag -width 
 .It Bootfile name
-is set to the
+is set to
+.Dq boot.cfg
+during the first request, and then to
+the
 .Va filename
 argument on the
 .Ic boot
-command line typed in by the user (can be empty), or to
+command line typed in by the user (can be empty), using
 .Dq netbsd
 in the non-interactive case.
 .It DHCP Vendor class identifier tag
@@ -106,15 +126,18 @@
 .Pp
 The
 .Tn DHCP
-server can use these fields to distinguish between
-the various originators of requests (first and second
-.Tn PXE
+server can use these fields (i.e. the
+.Tn DHCP
+vendor class identifier tag and the requested file name, possibly
+supplied by the user's command line input to the
+.Nm
+program) to distinguish between the various originators of requests
+(PXE BIOS, first and second
+.Nm
 stage,
 .Nx
-kernel), and to control conditional behaviour depending on the
-user's command line input to the
-.Nm
-program, e.g. to support alternative
+kernel), and to alter its behaviour. 
+For example, this can be used to support alternative
 .Nx
 installations on one machine.
 .Pp
@@ -125,14 +148,15 @@
 .Bl -tag -width 
 .It Bootfile name
 specifies the protocol to be used, and the filename of the
+boot config or
 .Nx
 kernel to be booted, separated by a colon.
 Available protocols are
 .Dq nfs
 and
 .Dq tftp .
-The kernel filename part is interpreted relatively to the NFS root directory
-(see the
+The boot config or kernel filename part is interpreted relatively to
+the NFS root directory (see the
 .Em Root path
 reply field below) or the TFTP server's root directory (which might be a
 subdirectory within the TFTP server's filesystem, depending on the
@@ -152,6 +176,8 @@
 If no protocol was specified,
 .Dq nfs
 is assumed.
+.It Next server
+is used as the location of the tftp server.
 .It Swap server
 can be used to override the
 .Dq server IP address
@@ -221,7 +247,9 @@
 .Sh EXAMPLES
 The first
 .Pa /etc/dhcpd.conf
-example shows a simple configuration which just loads a file
+example shows a simple configuration which just loads
+.Dq boot.cfg
+and
 .Dq netbsd
 from the client's NFS root directory, using the defaults for
 protocol and kernel filename.
@@ -240,6 +268,36 @@
 .Pp
 The following
 .Pa /etc/dhcpd.conf
+entry sets loads the boot config and kernel over tftp.
+This can be used, for example, for installing machines by using
+an install kernel.
+.Pp
+.Bd -literal
+host myhost {
+hardware ethernet 00:00:00:00:00:00;
+fixed-address 

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

2009-04-10 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Fri Apr 10 23:01:47 UTC 2009

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

Log Message:
add (commented out) options LOCKDEBUG


To generate a diff of this commit:
cvs rdiff -u -r1.239 -r1.240 src/sys/arch/amd64/conf/GENERIC

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

Modified files:

Index: src/sys/arch/amd64/conf/GENERIC
diff -u src/sys/arch/amd64/conf/GENERIC:1.239 src/sys/arch/amd64/conf/GENERIC:1.240
--- src/sys/arch/amd64/conf/GENERIC:1.239	Fri Mar  6 09:58:14 2009
+++ src/sys/arch/amd64/conf/GENERIC	Fri Apr 10 23:01:46 2009
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.239 2009/03/06 09:58:14 cegger Exp $
+# $NetBSD: GENERIC,v 1.240 2009/04/10 23:01:46 perry Exp $
 #
 # GENERIC machine description file
 #
@@ -22,7 +22,7 @@
 
 options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
 
-#ident 		GENERIC-$Revision: 1.239 $
+#ident 		GENERIC-$Revision: 1.240 $
 
 maxusers	64		# estimated number of users
 
@@ -89,6 +89,7 @@
 # Diagnostic/debugging support options
 #options 	DIAGNOSTIC	# expensive kernel consistency checks
 #options 	DEBUG		# expensive debugging checks/support
+#options 	LOCKDEBUG	# expensive locking checks/support
 #options 	KMEMSTATS	# kernel memory statistics (vmstat -m)
 
 #



CVS commit: src/sys/fs/tmpfs

2009-04-10 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Sat Apr 11 00:21:57 UTC 2009

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

Log Message:
SAVENAME was not set for rename and delete as required

Patch from christos, fixes pr 41183


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

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

Modified files:

Index: src/sys/fs/tmpfs/tmpfs_vnops.c
diff -u src/sys/fs/tmpfs/tmpfs_vnops.c:1.56 src/sys/fs/tmpfs/tmpfs_vnops.c:1.57
--- src/sys/fs/tmpfs/tmpfs_vnops.c:1.56	Sun Apr  5 15:10:41 2009
+++ src/sys/fs/tmpfs/tmpfs_vnops.c	Sat Apr 11 00:21:57 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: tmpfs_vnops.c,v 1.56 2009/04/05 15:10:41 pooka Exp $	*/
+/*	$NetBSD: tmpfs_vnops.c,v 1.57 2009/04/11 00:21:57 perry Exp $	*/
 
 /*
  * Copyright (c) 2005, 2006, 2007 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: tmpfs_vnops.c,v 1.56 2009/04/05 15:10:41 pooka Exp $);
+__KERNEL_RCSID(0, $NetBSD: tmpfs_vnops.c,v 1.57 2009/04/11 00:21:57 perry Exp $);
 
 #include sys/param.h
 #include sys/dirent.h
@@ -219,6 +219,7 @@
 error = VOP_ACCESS(dvp, VWRITE, cnp-cn_cred);
 if (error != 0)
 	goto out;
+cnp-cn_flags |= SAVENAME;
 			} else
 de = NULL;
 



Re: CVS commit: src/distrib/sets/lists/comp

2009-04-04 Thread Perry E. Metzger

Alan Barrett a...@netbsd.org writes:
 Module Name:  src
 Committed By: apb
 Date: Sat Apr  4 15:27:48 UTC 2009

 Modified Files:
   src/distrib/sets/lists/comp: mi

 Log Message:
 Mention html versions of recently-added bit* man pages

Thanks for getting that, Alan.

Perry
-- 
Perry E. Metzgerpe...@piermont.com


CVS commit: src/usr.sbin/cron

2009-04-04 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Sat Apr  4 16:05:10 UTC 2009

Modified Files:
src/usr.sbin/cron: crontab.5 entry.c

Log Message:
New feature: ? for time specifications, means a single time selected at
random from within the range at file read time. Very useful if you
want to avoid having a fleet of machines melt a server by all trying to
contact it at a precise time every morning. See docs for details.

Reviewed by: christos, apb, vixie, others.

XXX apb suggests, quite reasonably, that ?10-16/2 should mean
something like 10,12,14,16 or 11,13,15. I'm too lazy to do it right
now, but it should be done.

XXX vixie suggests, quite reasonably, that if you're using ? one
should delay randomly by 0-59 seconds. In the modern NTP world, you
could imagine that with a million well synchronized machines the
second just at the minute would be hit quite hard. I'm too lazy to do
it right now, but it should be done.

XXX cron needs to be updated to Vixie's cron 4.1 code.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/usr.sbin/cron/crontab.5
cvs rdiff -u -r1.9 -r1.10 src/usr.sbin/cron/entry.c

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

Modified files:

Index: src/usr.sbin/cron/crontab.5
diff -u src/usr.sbin/cron/crontab.5:1.11 src/usr.sbin/cron/crontab.5:1.12
--- src/usr.sbin/cron/crontab.5:1.11	Thu Sep  2 11:41:27 2004
+++ src/usr.sbin/cron/crontab.5	Sat Apr  4 16:05:10 2009
@@ -1,4 +1,4 @@
-.\	$NetBSD: crontab.5,v 1.11 2004/09/02 11:41:27 jmmv Exp $
+.\	$NetBSD: crontab.5,v 1.12 2009/04/04 16:05:10 perry Exp $
 .\
 .\/* Copyright 1988,1990,1993,1994 by Paul Vixie
 .\ * All rights reserved
@@ -135,6 +135,20 @@
 8-11 for an ``hours'' entry specifies execution at hours 8, 9, 10
 and 11.
 .PP
+A field may begin with a question mark (?), which indicates a
+single value randomly selected when the crontab file is read.
+If the field contains only a question mark, the value is randomly
+selected from the range of all possible values for the field.
+If the question mark precedes a range, the value is randomly selected
+from the range.
+For example, ``? ?2-5 * * *'' specifies that a task will be performed
+daily between 2:00am and and 5:59am at a time randomly selected when
+the crontab file is first read.
+As just one example, this feature can be used to prevent a large
+number of hosts from contacting a server simultaneously and
+overloading it by staggering the time at which a download script is
+executed.
+.PP
 Lists are allowed.  A list is a set of numbers (or ranges)
 separated by commas.  Examples: ``1,2,5,9'', ``0-4,8-12''.
 .PP
@@ -211,6 +225,7 @@
 0 22 * * 1-5mail -s It's 10pm joe%Joe,%%Where are your kids?%
 23 0-23/2 * * * echo run 23 minutes after midn, 2am, 4am ..., everyday
 5 4 * * sun echo run at 5 after 4 every sunday
+? ?2-4 1,15 * * echo random between 2am-4:59am on the 1st and 15th
 .fi
 .SH SEE ALSO
 cron(8), crontab(1)

Index: src/usr.sbin/cron/entry.c
diff -u src/usr.sbin/cron/entry.c:1.9 src/usr.sbin/cron/entry.c:1.10
--- src/usr.sbin/cron/entry.c:1.9	Sat Feb 16 07:26:00 2008
+++ src/usr.sbin/cron/entry.c	Sat Apr  4 16:05:10 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: entry.c,v 1.9 2008/02/16 07:26:00 matt Exp $	*/
+/*	$NetBSD: entry.c,v 1.10 2009/04/04 16:05:10 perry Exp $	*/
 
 /* Copyright 1988,1990,1993,1994 by Paul Vixie
  * All rights reserved
@@ -22,7 +22,7 @@
 #if 0
 static char rcsid[] = Id: entry.c,v 2.12 1994/01/17 03:20:37 vixie Exp;
 #else
-__RCSID($NetBSD: entry.c,v 1.9 2008/02/16 07:26:00 matt Exp $);
+__RCSID($NetBSD: entry.c,v 1.10 2009/04/04 16:05:10 perry Exp $);
 #endif
 #endif
 
@@ -358,6 +358,18 @@
 }
 
 
+static int
+random_with_range(int low, int high)
+{
+	/* Kind of crappy error detection, but...
+	 */
+	if (low = high)
+		return low;
+	else
+		return arc4random() % (high - low + 1) + low;
+}
+
+
 static char
 get_range(bitstr_t *bits,   /* one bit per flag, default=FALSE */
   int low,  /* bounds, impl. offset for bitstr */
@@ -371,24 +383,44 @@
 
 	int	i;
 	int	num1, num2, num3;
+	int	qmark, star;
+
+	qmark = star = FALSE;
 
 	Debug(DPARS|DEXT, (get_range()...entering, exit won't show\n))
 
 	if (ch == '*') {
 		/* '*' means first-last but can still be modified by /step
 		 */
+		star = TRUE;
 		num1 = low;
 		num2 = high;
 		ch = get_char(file);
 		if (ch == EOF)
 			return EOF;
-	} else {
+	} else if (ch == '?') {
+		qmark = TRUE;
+		ch = get_char(file);
+		if (ch == EOF)
+			return EOF;
+		if (!isdigit(ch)) {
+			num1 = random_with_range(low, high);
+			if (EOF == set_element(bits, low, high, num1))
+return EOF;
+			return ch;
+		}
+	}
+
+	if (!star) {
 		if (EOF == (ch = get_number(num1, low, names, ch, file)))
 			return EOF;
 
 		if (ch != '-') {
 			/* not a range, it's a single number.
+			 * a single number after '?' is bogus.
 			 */
+			if (qmark)
+return EOF;
 			if (EOF == set_element(bits, low, high, num1))
 return EOF;
 			

Re: CVS commit: src/distrib/sets

2009-04-03 Thread Perry E. Metzger

Izumi Tsutsui tsut...@netbsd.org writes:
 Module Name:  src
 Committed By: tsutsui
 Date: Thu Apr  2 23:06:16 UTC 2009

 Modified Files:
   src/distrib/sets: maketars

 Log Message:
 Explicitly sort entries on preparing set files from METALOG.
 METALOG could have different order due to install(1) race
 on parallel builds, and mtree(8) doesn't sort files.
 Should fix inconsistent shared sets among builds as seen in
 /pub/NetBSD-daily/netbsd-5/20090401Z/shared/ and
 /pub/NetBSD-daily/netbsd-5/200904010002Z/shared/ dirs.
 Okay'ed by s...@.

I think the invocation of mtree -C may have also had the effect of
sorting, in which case this is redundant. You might want to check
quickly.

Perry


CVS commit: src

2009-04-03 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Fri Apr  3 16:21:08 UTC 2009

Modified Files:
src/distrib/sets/lists/xbase: shl.elf
src/external/mit/xorg/lib/libXaw: Makefile
src/external/mit/xorg/lib/libXaw6: Makefile
src/external/mit/xorg/lib/libXaw7: Makefile

Log Message:
Remove the creation of the following symlinks to nowhere:

/usr/X11R7/lib/libXaw.so.6
/usr/X11R7/lib/libXaw.so.7
/usr/X11R7/lib/libXaw.so.8

Note that there is still some use of the LIBOLD variables in the
Makefiles associated with PKG* variables that I don't understand.

Discussed with mrg and martin


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/distrib/sets/lists/xbase/shl.elf
cvs rdiff -u -r1.3 -r1.4 src/external/mit/xorg/lib/libXaw/Makefile
cvs rdiff -u -r1.3 -r1.4 src/external/mit/xorg/lib/libXaw6/Makefile
cvs rdiff -u -r1.4 -r1.5 src/external/mit/xorg/lib/libXaw7/Makefile

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

Modified files:

Index: src/distrib/sets/lists/xbase/shl.elf
diff -u src/distrib/sets/lists/xbase/shl.elf:1.21 src/distrib/sets/lists/xbase/shl.elf:1.22
--- src/distrib/sets/lists/xbase/shl.elf:1.21	Sun Jan 11 23:14:53 2009
+++ src/distrib/sets/lists/xbase/shl.elf	Fri Apr  3 16:21:08 2009
@@ -1,4 +1,4 @@
-# $NetBSD: shl.elf,v 1.21 2009/01/11 23:14:53 jnemeth Exp $
+# $NetBSD: shl.elf,v 1.22 2009/04/03 16:21:08 perry Exp $
 ./usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2	-unknown-		x11
 ./usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2	-unknown-		x11
 ./usr/X11R6/lib/X11/locale/lib/common/xlcUTF8Load.so.2	-unknown-		x11
@@ -132,9 +132,6 @@
 ./usr/X11R7/lib/libXau.so			-unknown-		xorg
 ./usr/X11R7/lib/libXau.so.7			-unknown-		xorg
 ./usr/X11R7/lib/libXaw.so			-unknown-		xorg
-./usr/X11R7/lib/libXaw.so.6			-unknown-		xorg
-./usr/X11R7/lib/libXaw.so.7			-unknown-		xorg
-./usr/X11R7/lib/libXaw.so.8			-unknown-		xorg
 ./usr/X11R7/lib/libXaw6.so.7			-unknown-		xorg
 ./usr/X11R7/lib/libXaw7.so			-unknown-		xorg
 ./usr/X11R7/lib/libXaw7.so.8			-unknown-		xorg

Index: src/external/mit/xorg/lib/libXaw/Makefile
diff -u src/external/mit/xorg/lib/libXaw/Makefile:1.3 src/external/mit/xorg/lib/libXaw/Makefile:1.4
--- src/external/mit/xorg/lib/libXaw/Makefile:1.3	Sun Oct 12 20:20:49 2008
+++ src/external/mit/xorg/lib/libXaw/Makefile	Fri Apr  3 16:21:08 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.3 2008/10/12 20:20:49 hubertf Exp $
+#	$NetBSD: Makefile,v 1.4 2009/04/03 16:21:08 perry Exp $
 
 .include bsd.own.mk
 
@@ -15,7 +15,6 @@
 
 .if ${MKPIC} != no
 SYMLINKS+=	lib${LIB}.so ${X11USRLIBDIR}/lib${LIBOLD}.so
-SYMLINKS+=	lib${LIB}.so.8 ${X11USRLIBDIR}/lib${LIBOLD}.so.8
 .endif
 
 .PATH:	${X11SRCDIR.Xaw}/src

Index: src/external/mit/xorg/lib/libXaw6/Makefile
diff -u src/external/mit/xorg/lib/libXaw6/Makefile:1.3 src/external/mit/xorg/lib/libXaw6/Makefile:1.4
--- src/external/mit/xorg/lib/libXaw6/Makefile:1.3	Sun Oct 12 20:20:49 2008
+++ src/external/mit/xorg/lib/libXaw6/Makefile	Fri Apr  3 16:21:08 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.3 2008/10/12 20:20:49 hubertf Exp $
+#	$NetBSD: Makefile,v 1.4 2009/04/03 16:21:08 perry Exp $
 
 NOCHECKVER=	yes	# we want to install an older version ...
 MKLINKLIB=	no
@@ -8,10 +8,6 @@
 LIB=	Xaw6
 LIBOLD=	Xaw
 
-.if ${MKPIC} != no
-SYMLINKS+=	lib${LIB}.so.6 ${X11USRLIBDIR}/lib${LIBOLD}.so.6
-.endif
-
 .PATH:	${X11SRCDIR.Xaw}/src
 
 SRCS=	Actions.c AllWidgets.c AsciiSink.c AsciiSrc.c AsciiText.c \

Index: src/external/mit/xorg/lib/libXaw7/Makefile
diff -u src/external/mit/xorg/lib/libXaw7/Makefile:1.4 src/external/mit/xorg/lib/libXaw7/Makefile:1.5
--- src/external/mit/xorg/lib/libXaw7/Makefile:1.4	Wed Nov  5 19:50:06 2008
+++ src/external/mit/xorg/lib/libXaw7/Makefile	Fri Apr  3 16:21:08 2009
@@ -1,14 +1,10 @@
-#	$NetBSD: Makefile,v 1.4 2008/11/05 19:50:06 cube Exp $
+#	$NetBSD: Makefile,v 1.5 2009/04/03 16:21:08 perry Exp $
 
 .include bsd.own.mk
 
 LIB=	Xaw7
 LIBOLD=	Xaw
 
-.if ${MKPIC} != no
-SYMLINKS+=	lib${LIB}.so.7 ${X11USRLIBDIR}/lib${LIBOLD}.so.7
-.endif
-
 .PATH:	${X11SRCDIR.Xaw}/src
 
 SRCS=	Actions.c AllWidgets.c AsciiSink.c AsciiSrc.c AsciiText.c \



CVS commit: src/distrib/sets

2009-04-02 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Thu Apr  2 18:06:54 UTC 2009

Modified Files:
src/distrib/sets: maketars

Log Message:
Clean up set files to make them consistent using mtree. Patch from lukem.


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/distrib/sets/maketars

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

Modified files:

Index: src/distrib/sets/maketars
diff -u src/distrib/sets/maketars:1.64 src/distrib/sets/maketars:1.65
--- src/distrib/sets/maketars:1.64	Sun Mar 16 07:02:22 2008
+++ src/distrib/sets/maketars	Thu Apr  2 18:06:54 2009
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: maketars,v 1.64 2008/03/16 07:02:22 lukem Exp $
+# $NetBSD: maketars,v 1.65 2009/04/02 18:06:54 perry Exp $
 #
 # Make release tar files for some or all lists.  Usage:
 # maketars [-b] [-x] [-i installdir] [-a arch] [-m machine] [-s setsdir]
@@ -150,7 +150,8 @@
 			${AWK} -f ${rundir}/join.awk \
 ${SDIR}/flist.${setname}.full ${metalog}
 			echo ./etc/mtree/set.${setname} type=file mode=0444
-		)  ${setlistdir}/set.${setname}
+		) | ${MTREE} -C -k all -R time -N ${etcdir} \
+		 ${setlistdir}/set.${setname}
 		# We deliberately do not add set.${setname} to ${metalog},
 		# because we depend on it as an input.
 	elif ! cmp -s ${SDIR}/flist.${setname} \



CVS commit: src/share/mk

2009-04-01 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Wed Apr  1 17:47:39 UTC 2009

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

Log Message:
Add a _ARRANFL for the flags for invoking ar as ranlib.
Will be used only for Makefile.rump for now.


To generate a diff of this commit:
cvs rdiff -u -r1.296 -r1.297 src/share/mk/bsd.lib.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.lib.mk
diff -u src/share/mk/bsd.lib.mk:1.296 src/share/mk/bsd.lib.mk:1.297
--- src/share/mk/bsd.lib.mk:1.296	Fri Mar 13 16:23:31 2009
+++ src/share/mk/bsd.lib.mk	Wed Apr  1 17:47:39 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.lib.mk,v 1.296 2009/03/13 16:23:31 perry Exp $
+#	$NetBSD: bsd.lib.mk,v 1.297 2009/04/01 17:47:39 perry Exp $
 #	@(#)bsd.lib.mk	8.3 (Berkeley) 4/22/94
 
 .include bsd.init.mk
@@ -442,9 +442,11 @@
 
 .if ${MKARZERO} == yes
 _ARFL=crsD
+_ARRANFL=sD
 _INSTRANLIB=
 .else
 _ARFL=crs
+_ARRANFL=s
 _INSTRANLIB=${empty(PRESERVE):?-a ${RANLIB} -t:}
 .endif
 



CVS commit: src/sys/rump

2009-04-01 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Wed Apr  1 17:51:12 UTC 2009

Modified Files:
src/sys/rump: Makefile.rump

Log Message:
More reproducible build fixes:

1) invoke objcopy with --preserve-dates or it will update all the
   dates in the .a file to the present date.
2) add an invocation of ar-as-ranlib or the object file index ends up
   with the date in it. (it might also end up with an incorrect
   index.)


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/rump/Makefile.rump

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

Modified files:

Index: src/sys/rump/Makefile.rump
diff -u src/sys/rump/Makefile.rump:1.35 src/sys/rump/Makefile.rump:1.36
--- src/sys/rump/Makefile.rump:1.35	Sat Mar 21 04:59:08 2009
+++ src/sys/rump/Makefile.rump	Wed Apr  1 17:51:12 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.rump,v 1.35 2009/03/21 04:59:08 pooka Exp $
+#	$NetBSD: Makefile.rump,v 1.36 2009/04/01 17:51:12 perry Exp $
 #
 
 WARNS?=		3	# XXX: src/sys won't compile with -Wsign-compare yet
@@ -61,5 +61,6 @@
 	$$NF!~/^(rump|RUMP|__|_GLOBAL_OFFSET_TABLE'${_SYMQUIRK}')/ \
 	  {printf %s rumpns_%s\n, $$NF, $$NF}' \
 	| sort | uniq   renametab.${.TARGET}
-	${OBJCOPY} --redefine-syms renametab.${.TARGET} ${.TARGET}
+	${OBJCOPY} --preserve-dates --redefine-syms renametab.${.TARGET} ${.TARGET}
 	rm -f renametab.${.TARGET}
+	${AR} ${_ARRANFL} ${.TARGET}



CVS commit: src/share/mk

2009-03-31 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Tue Mar 31 21:00:35 UTC 2009

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

Log Message:
add -n to gzip invocation


To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/share/mk/bsd.man.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.man.mk
diff -u src/share/mk/bsd.man.mk:1.98 src/share/mk/bsd.man.mk:1.99
--- src/share/mk/bsd.man.mk:1.98	Fri Aug 29 04:52:44 2008
+++ src/share/mk/bsd.man.mk	Tue Mar 31 21:00:34 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.man.mk,v 1.98 2008/08/29 04:52:44 lukem Exp $
+#	$NetBSD: bsd.man.mk,v 1.99 2009/03/31 21:00:34 perry Exp $
 #	@(#)bsd.man.mk	8.1 (Berkeley) 6/8/93
 
 .include bsd.init.mk
@@ -34,7 +34,7 @@
 MANCOMPRESS?=
 MANSUFFIX?=
 .else
-MANCOMPRESS?=	gzip -cf
+MANCOMPRESS?=	gzip -ncf
 MANSUFFIX?=	.gz
 .endif
 



CVS commit: src/external/mit/xorg/share/fonts/encodings

2009-03-31 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Tue Mar 31 21:21:48 UTC 2009

Modified Files:
src/external/mit/xorg/share/fonts/encodings: Makefile.enc

Log Message:
add -n to gzip invocation


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/mit/xorg/share/fonts/encodings/Makefile.enc

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

Modified files:

Index: src/external/mit/xorg/share/fonts/encodings/Makefile.enc
diff -u src/external/mit/xorg/share/fonts/encodings/Makefile.enc:1.1.1.1 src/external/mit/xorg/share/fonts/encodings/Makefile.enc:1.2
--- src/external/mit/xorg/share/fonts/encodings/Makefile.enc:1.1.1.1	Tue Jul 29 05:01:23 2008
+++ src/external/mit/xorg/share/fonts/encodings/Makefile.enc	Tue Mar 31 21:21:48 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.enc,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $
+#	$NetBSD: Makefile.enc,v 1.2 2009/03/31 21:21:48 perry Exp $
 
 FILESDIR=	${X11FONTDIR}/${ENCDIR}
 
@@ -9,7 +9,7 @@
 .SUFFIXES: .enc .enc.gz
 .enc.enc.gz:
 	${_MKTARGET_CREATE}
-	gzip -9fc ${.IMPSRC}  ${.TARGET}.tmp  mv ${.TARGET}.tmp ${.TARGET}
+	gzip -9nfc ${.IMPSRC}  ${.TARGET}.tmp  mv ${.TARGET}.tmp ${.TARGET}
 
 
 realall: ${FILES}



CVS commit: src/sys/conf

2009-03-30 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Mon Mar 30 16:34:19 UTC 2009

Modified Files:
src/sys/conf: Makefile.kern.inc

Log Message:
Add a MKREPRO variable (defaults to no) that invokes newvers.sh with
the -r flag if it is set to yes, resulting in a reproducible kernel build.


To generate a diff of this commit:
cvs rdiff -u -r1.122 -r1.123 src/sys/conf/Makefile.kern.inc

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

Modified files:

Index: src/sys/conf/Makefile.kern.inc
diff -u src/sys/conf/Makefile.kern.inc:1.122 src/sys/conf/Makefile.kern.inc:1.123
--- src/sys/conf/Makefile.kern.inc:1.122	Fri Mar 20 09:13:06 2009
+++ src/sys/conf/Makefile.kern.inc	Mon Mar 30 16:34:19 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.kern.inc,v 1.122 2009/03/20 09:13:06 pooka Exp $
+#	$NetBSD: Makefile.kern.inc,v 1.123 2009/03/30 16:34:19 perry Exp $
 #
 # This file contains common `MI' targets and definitions and it is included
 # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -254,11 +254,19 @@
 ${MD_SFILES:C/\.[Ss]/.o/} ${SFILES:C/\.[Ss]/.o/}: assym.h
 .endif
 
+MKREPRO?=no
+
+.if ${MKREPRO} == yes
+_NVFLAGS=-r
+.else
+_NVFLAGS=
+.endif
+
 .if !target(vers.o)
 newvers: vers.o
 vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP} $S/conf/newvers.sh $S/conf/osrelease.sh
 	${_MKMSG_CREATE} vers.c
-	${HOST_SH} $S/conf/newvers.sh
+	${HOST_SH} $S/conf/newvers.sh ${_NVFLAGS}
 	${_MKTARGET_COMPILE}
 	${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
 .endif



Re: CVS commit: src/usr.bin/make

2009-03-29 Thread Perry E. Metzger

Alistair Crooks a...@pkgsrc.org writes:
 This is veering off topic, I fear, but a datapoint:

 We used a mmdd-based time value for version numbering of the
 pkg_install tools, derived from embedded RCS Ids, for years (to check
 tools had sufficient features for what they were going to be asked to
 do).  This was across NetBSD and pkgsrc branches.

That's fine, but those are

a) essentially monotonic because of your management practices
b) not based on build time (which is my main complaint about things like
   the old make(1) version stamp.

Also, the pkg tools are under quite active development and have
substantial interface shifts with time, and you need to automatically
decide when to rebuild them so you *need* a version.

Perry


Re: CVS commit: src

2009-03-29 Thread Perry E. Metzger

Martin Husemann mar...@duskware.de writes:
 On Sun, Mar 29, 2009 at 02:59:59PM +, Christos Zoulas wrote:
 Or add some syntax to the file for optional assignments, like:
 
 ddb.onpanic?=1
 or
 ddb.onpanic?ddb.onpanic=1

 I like those two variants (not sure which one better).

The second reminds me too much of the C ternary operator. The first
seems better for that reason.

Perry


CVS commit: src/etc

2009-03-29 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Sun Mar 29 16:04:15 UTC 2009

Modified Files:
src/etc: daily

Log Message:
add ptyfs to the list of file systems that don't get put into the
nightly df listing


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/etc/daily

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

Modified files:

Index: src/etc/daily
diff -u src/etc/daily:1.71 src/etc/daily:1.72
--- src/etc/daily:1.71	Sat Aug 30 10:53:22 2008
+++ src/etc/daily	Sun Mar 29 16:04:15 2009
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#	$NetBSD: daily,v 1.71 2008/08/30 10:53:22 bouyer Exp $
+#	$NetBSD: daily,v 1.72 2009/03/29 16:04:15 perry Exp $
 #	@(#)daily	8.2 (Berkeley) 1/25/94
 #
 
@@ -146,9 +146,9 @@
 
 if checkyesno check_disks; then
 	if checkyesno show_remote_fs; then
-		df -hi -t nokernfs,procfs,null,fdesc  $TMP
+		df -hi -t nokernfs,procfs,ptyfs,null,fdesc  $TMP
 	else
-		df -hil -t nokernfs,procfs,null,fdesc  $TMP
+		df -hil -t nokernfs,procfs,ptyfs,null,fdesc  $TMP
 	fi
 	if [ -s /etc/dumpdates ] ; then
 		dump -W  $TMP2



CVS commit: src/usr.bin/make

2009-03-24 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Tue Mar 24 13:53:21 UTC 2009

Modified Files:
src/usr.bin/make: main.c

Log Message:
per dholland, put back MAKE_VERSION for the benefit of third party users.


To generate a diff of this commit:
cvs rdiff -u -r1.169 -r1.170 src/usr.bin/make/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/usr.bin/make/main.c
diff -u src/usr.bin/make/main.c:1.169 src/usr.bin/make/main.c:1.170
--- src/usr.bin/make/main.c:1.169	Fri Mar 20 20:48:00 2009
+++ src/usr.bin/make/main.c	Tue Mar 24 13:53:21 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.169 2009/03/20 20:48:00 perry Exp $	*/
+/*	$NetBSD: main.c,v 1.170 2009/03/24 13:53:21 perry Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,7 +69,7 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = $NetBSD: main.c,v 1.169 2009/03/20 20:48:00 perry Exp $;
+static char rcsid[] = $NetBSD: main.c,v 1.170 2009/03/24 13:53:21 perry Exp $;
 #else
 #include sys/cdefs.h
 #ifndef lint
@@ -81,7 +81,7 @@
 #if 0
 static char sccsid[] = @(#)main.c	8.3 (Berkeley) 3/19/94;
 #else
-__RCSID($NetBSD: main.c,v 1.169 2009/03/20 20:48:00 perry Exp $);
+__RCSID($NetBSD: main.c,v 1.170 2009/03/24 13:53:21 perry Exp $);
 #endif
 #endif /* not lint */
 #endif
@@ -830,6 +830,9 @@
 	Var_Set(.CURDIR, curdir, VAR_GLOBAL, 0);
 	Var_Set(MACHINE, machine, VAR_GLOBAL, 0);
 	Var_Set(MACHINE_ARCH, machine_arch, VAR_GLOBAL, 0);
+#ifdef MAKE_VERSION
+	Var_Set(MAKE_VERSION, MAKE_VERSION, VAR_GLOBAL, 0);
+#endif
 	Var_Set(.newline, \n, VAR_GLOBAL, 0); /* handy for :@ loops */
 
 	/*



CVS commit: src/usr.bin/make

2009-03-24 Thread Perry E. Metzger
Module Name:src
Committed By:   perry
Date:   Tue Mar 24 13:54:37 UTC 2009

Modified Files:
src/usr.bin/make: Makefile

Log Message:
remove unneeded special rule for main.o


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/usr.bin/make/Makefile

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

Modified files:

Index: src/usr.bin/make/Makefile
diff -u src/usr.bin/make/Makefile:1.47 src/usr.bin/make/Makefile:1.48
--- src/usr.bin/make/Makefile:1.47	Fri Mar 20 20:48:00 2009
+++ src/usr.bin/make/Makefile	Tue Mar 24 13:54:37 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.47 2009/03/20 20:48:00 perry Exp $
+#	$NetBSD: Makefile,v 1.48 2009/03/24 13:54:37 perry Exp $
 #	@(#)Makefile	5.2 (Berkeley) 12/28/90
 
 PROG=	make
@@ -26,8 +26,6 @@
 .include bsd.subdir.mk
 
 CPPFLAGS+= -DMAKE_NATIVE
-# XXX is this special rule for main.o actually needed?
-main.o:	${OBJS:Nmain.o} ${MAKEFILE}
 COPTS.var.c+= -Wno-cast-qual
 
 .ifdef TOOLDIR