CVS commit: src/share/termcap

2011-01-20 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Fri Jan 21 07:59:05 UTC 2011

Removed Files:
src/share/termcap: Makefile README termcap.5 termcap.src

Log Message:
Move the termcap man page and capabilities to the Attic as we have been
using terminfo now for quite some time.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r0 src/share/termcap/Makefile
cvs rdiff -u -r1.3 -r0 src/share/termcap/README
cvs rdiff -u -r1.35 -r0 src/share/termcap/termcap.5
cvs rdiff -u -r1.103 -r0 src/share/termcap/termcap.src

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

2011-01-20 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Fri Jan 21 07:55:12 UTC 2011

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

Log Message:
Describe the new terminfo environment settings.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/share/man/man7/environ.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/environ.7
diff -u src/share/man/man7/environ.7:1.23 src/share/man/man7/environ.7:1.24
--- src/share/man/man7/environ.7:1.23	Wed Jan 19 04:00:21 2011
+++ src/share/man/man7/environ.7	Fri Jan 21 07:55:12 2011
@@ -1,4 +1,4 @@
-.\"	$NetBSD: environ.7,v 1.23 2011/01/19 04:00:21 uwe Exp $
+.\"	$NetBSD: environ.7,v 1.24 2011/01/21 07:55:12 roy Exp $
 .\"
 .\" Copyright (c) 1983, 1990, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"	@(#)environ.7	8.3 (Berkeley) 4/19/94
 .\"
-.Dd July 5, 2005
+.Dd January 21, 2011
 .Dt ENVIRON 7
 .Os
 .Sh NAME
@@ -188,8 +188,8 @@
 .\" .Xr plot 1
 which may exploit special terminal capabilities.
 See
-.Pa /usr/share/misc/termcap
-.Pq Xr termcap 5
+.Pa /usr/share/misc/terminfo
+.Pq Xr terminfo 5
 for a list of terminal types.
 .It Ev TERMCAP
 The string describing the terminal in
@@ -197,27 +197,15 @@
 or, if it begins with a
 .Ql / ,
 the name of the termcap file.
-See
-.Ev TERMPATH
-below,
-.Xr termcap 5 ,
-and
-.Xr termcap 3 .
-.It Ev TERMPATH
-A sequence of pathnames of termcap files, separated by colons or spaces,
-which are searched for terminal descriptions in the order listed.
-Having no
-.Ev TERMPATH
-is equivalent to a
-.Ev TERMPATH
-of
-.Pp
-.Dl $HOME/.termcap:/usr/share/misc/termcap
-.Pp
-.Ev TERMPATH
-is ignored if
-.Ev TERMCAP
-contains a full pathname.
+This is only checked if
+.Ev TERMINFO
+is not set.
+.It Ev TERMINFO
+The string describing the terminal in
+.Ev TERM ,
+or, if it begins with a
+.Ql / ,
+the name of the terminfo file.
 .It Ev TIMEFORMAT
 A
 .Xr strftime 3
@@ -288,8 +276,9 @@
 .Xr rcmd 3 ,
 .Xr system 3 ,
 .Xr termcap 3 ,
+.Xr terminfo 3 ,
 .Xr audio 4 ,
-.Xr termcap 5 ,
+.Xr terminfo 5
 .Xr nls 7 ,
 .Xr dump 8
 .Sh HISTORY



CVS commit: src/share/man/man7

2011-01-20 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Thu Jan 20 23:01:55 UTC 2011

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

Log Message:
A place for Lua 5.1 modules.


To generate a diff of this commit:
cvs rdiff -u -r1.93 -r1.94 src/share/man/man7/hier.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/hier.7
diff -u src/share/man/man7/hier.7:1.93 src/share/man/man7/hier.7:1.94
--- src/share/man/man7/hier.7:1.93	Mon Dec 20 18:11:35 2010
+++ src/share/man/man7/hier.7	Thu Jan 20 23:01:55 2011
@@ -1,4 +1,4 @@
-.\"	$NetBSD: hier.7,v 1.93 2010/12/20 18:11:35 njoly Exp $
+.\"	$NetBSD: hier.7,v 1.94 2011/01/20 23:01:55 mbalmer Exp $
 .\"
 .\" Copyright (c) 1990, 1993, 1994
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"	@(#)hier.7	8.5 (Berkeley) 6/1/94
 .\"
-.Dd October 24, 2010
+.Dd January 20, 2011
 .Dt HIER 7
 .Os
 .Sh NAME
@@ -465,6 +465,15 @@
 .Pp
 .It Sy lib/
 archive, profiled, position independent archive, and shared libraries
+.Pp
+.Bl -tag -width "lua/" -compact
+.It Sy lua/
+.Bl -tag -width "5.1/" -compact
+.It Sy 5.1/
+Lua 5.1 modules
+.El
+.El
+.Pp
 .It Sy libdata/
 miscellaneous utility data files
 .It Sy libexec/



CVS commit: src/external/historical/nawk/dist

2011-01-20 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Thu Jan 20 21:26:20 UTC 2011

Modified Files:
src/external/historical/nawk/dist: tran.c

Log Message:
fix bug introduced in rev. 1.3: need to set the string before
converting it into a numerical value, otherwise we might get junk or crash


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/historical/nawk/dist/tran.c

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

Modified files:

Index: src/external/historical/nawk/dist/tran.c
diff -u src/external/historical/nawk/dist/tran.c:1.3 src/external/historical/nawk/dist/tran.c:1.4
--- src/external/historical/nawk/dist/tran.c:1.3	Sun Nov  7 22:55:26 2010
+++ src/external/historical/nawk/dist/tran.c	Thu Jan 20 21:26:20 2011
@@ -353,6 +353,7 @@
 	   dprintf( ("setsval %p: %s = \"%s (%p) \", t=%o r,f=%d,%d\n", 
 		vp, NN(vp->nval), t,t, vp->tval, donerec, donefld) );
 
+	vp->sval = t;
 	if (&vp->fval == NF) {
 		donerec = 0;	/* mark $0 invalid */
 		f = getfval(vp);
@@ -360,7 +361,7 @@
 		dprintf( ("setting NF to %g\n", f) );
 	}
 
-	return(vp->sval = t);
+	return(vp->sval);
 }
 
 Awkfloat getfval(Cell *vp)	/* get float val of a Cell */



CVS commit: src/external/historical/nawk/dist

2011-01-20 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Thu Jan 20 21:23:11 UTC 2011

Modified Files:
src/external/historical/nawk/dist: lib.c

Log Message:
avoid crash if certain operations are done before an input record is
read, ie in a BEGIN rule


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/historical/nawk/dist/lib.c

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

Modified files:

Index: src/external/historical/nawk/dist/lib.c
diff -u src/external/historical/nawk/dist/lib.c:1.3 src/external/historical/nawk/dist/lib.c:1.4
--- src/external/historical/nawk/dist/lib.c:1.3	Sun Nov  7 22:55:26 2010
+++ src/external/historical/nawk/dist/lib.c	Thu Jan 20 21:23:11 2011
@@ -328,7 +328,9 @@
 	}
 	fr = fields;
 	i = 0;	/* number of fields accumulated here */
-	if (inputFS[0] && inputFS[1]) {	/* it's a regular expression */
+	if (!inputFS) {
+		/* do nothing */
+	} else if (inputFS[0] && inputFS[1]) {	/* it's a regular expression */
 		i = refldbld(r, inputFS);
 	} else if ((sep = *inputFS) == ' ') {	/* default whitespace */
 		for (i = 0; ; ) {



CVS commit: src/sys/arch/hppa/hppa

2011-01-20 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Jan 20 19:51:54 UTC 2011

Modified Files:
src/sys/arch/hppa/hppa: lock_stubs.S

Log Message:
Remove trailing whitespace.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/hppa/hppa/lock_stubs.S

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/hppa/hppa/lock_stubs.S
diff -u src/sys/arch/hppa/hppa/lock_stubs.S:1.16 src/sys/arch/hppa/hppa/lock_stubs.S:1.17
--- src/sys/arch/hppa/hppa/lock_stubs.S:1.16	Thu Jan 20 19:50:41 2011
+++ src/sys/arch/hppa/hppa/lock_stubs.S	Thu Jan 20 19:51:54 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: lock_stubs.S,v 1.16 2011/01/20 19:50:41 skrll Exp $	*/
+/*	$NetBSD: lock_stubs.S,v 1.17 2011/01/20 19:51:54 skrll Exp $	*/
 
 /*-
  * Copyright (c) 2006, 2007 The NetBSD Foundation, Inc.
@@ -121,7 +121,7 @@
 	stw	%t2,0(%t3)			/* %t3 is properly aligned */
 	sync
 
-	/*	
+	/*
 	 * We have posted a read memory barrier so the check of mtx_waiters
 	 * will happen in sequence.  If it's set then trap into mutex_wakeup()
 	 * to wake up any threads sleeping on the lock.



CVS commit: src/sys/arch/hppa/hppa

2011-01-20 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Jan 20 19:50:41 UTC 2011

Modified Files:
src/sys/arch/hppa/hppa: lock_stubs.S

Log Message:
Another comment tweak


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/hppa/hppa/lock_stubs.S

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/hppa/hppa/lock_stubs.S
diff -u src/sys/arch/hppa/hppa/lock_stubs.S:1.15 src/sys/arch/hppa/hppa/lock_stubs.S:1.16
--- src/sys/arch/hppa/hppa/lock_stubs.S:1.15	Thu Jan 20 19:49:22 2011
+++ src/sys/arch/hppa/hppa/lock_stubs.S	Thu Jan 20 19:50:41 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: lock_stubs.S,v 1.15 2011/01/20 19:49:22 skrll Exp $	*/
+/*	$NetBSD: lock_stubs.S,v 1.16 2011/01/20 19:50:41 skrll Exp $	*/
 
 /*-
  * Copyright (c) 2006, 2007 The NetBSD Foundation, Inc.
@@ -47,8 +47,8 @@
  *
  * Perform an atomic compare-and-swap operation.
  *
- * On single CPU systems, this can use a restartable sequence:
- * there we don't need the overhead of interlocking.
+ * On single CPU systems this can use a restartable sequence as there
+ * we don't need the overhead of interlocking.
  */
 
 #ifndef MULTIPROCESSOR



CVS commit: src/sys/arch/hppa/hppa

2011-01-20 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Jan 20 19:49:23 UTC 2011

Modified Files:
src/sys/arch/hppa/hppa: lock_stubs.S

Log Message:
Tweak comment.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/hppa/hppa/lock_stubs.S

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/hppa/hppa/lock_stubs.S
diff -u src/sys/arch/hppa/hppa/lock_stubs.S:1.14 src/sys/arch/hppa/hppa/lock_stubs.S:1.15
--- src/sys/arch/hppa/hppa/lock_stubs.S:1.14	Thu Apr 30 07:01:27 2009
+++ src/sys/arch/hppa/hppa/lock_stubs.S	Thu Jan 20 19:49:22 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: lock_stubs.S,v 1.14 2009/04/30 07:01:27 skrll Exp $	*/
+/*	$NetBSD: lock_stubs.S,v 1.15 2011/01/20 19:49:22 skrll Exp $	*/
 
 /*-
  * Copyright (c) 2006, 2007 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
 #include "assym.h"
 
 /*
- * uintptr_t _lock_cas(volatile uintptr_t *val, uintptr_t old, uintptr_t new);
+ * uintptr_t _lock_cas(volatile uintptr_t *ptr, uintptr_t old, uintptr_t new);
  *
  * Perform an atomic compare-and-swap operation.
  *



CVS commit: src/sys/arch/hp700/include

2011-01-20 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Jan 20 19:47:40 UTC 2011

Modified Files:
src/sys/arch/hp700/include: autoconf.h cpu.h

Log Message:
Move the clock_intr declaration.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/hp700/include/autoconf.h
cvs rdiff -u -r1.56 -r1.57 src/sys/arch/hp700/include/cpu.h

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

Modified files:

Index: src/sys/arch/hp700/include/autoconf.h
diff -u src/sys/arch/hp700/include/autoconf.h:1.17 src/sys/arch/hp700/include/autoconf.h:1.18
--- src/sys/arch/hp700/include/autoconf.h:1.17	Thu Jan 13 21:15:16 2011
+++ src/sys/arch/hp700/include/autoconf.h	Thu Jan 20 19:47:40 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: autoconf.h,v 1.17 2011/01/13 21:15:16 skrll Exp $	*/
+/*	$NetBSD: autoconf.h,v 1.18 2011/01/20 19:47:40 skrll Exp $	*/
 
 /*	$OpenBSD: autoconf.h,v 1.10 2001/05/05 22:33:42 art Exp $	*/
 
@@ -91,6 +91,4 @@
 int	mbprint(void *, const char *);
 int	mbsubmatch(device_t, struct cfdata *, const int *, void *);
 
-int	clock_intr(void *);
-
 void	dumpconf(void);

Index: src/sys/arch/hp700/include/cpu.h
diff -u src/sys/arch/hp700/include/cpu.h:1.56 src/sys/arch/hp700/include/cpu.h:1.57
--- src/sys/arch/hp700/include/cpu.h:1.56	Mon Jan 17 12:42:41 2011
+++ src/sys/arch/hp700/include/cpu.h	Thu Jan 20 19:47:40 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpu.h,v 1.56 2011/01/17 12:42:41 skrll Exp $	*/
+/*	$NetBSD: cpu.h,v 1.57 2011/01/20 19:47:40 skrll Exp $	*/
 
 /*	$OpenBSD: cpu.h,v 1.55 2008/07/23 17:39:35 kettenis Exp $	*/
 
@@ -212,6 +212,8 @@
 #define	CLKF_INTR(framep)	((framep)->cf_flags & TFF_INTR)
 #define	CLKF_USERMODE(framep)	((framep)->cf_flags & T_USER)
 
+int	clock_intr(void *);
+
 #define	cpu_signotify(l)	(setsoftast(l))
 #define	cpu_need_proftick(l)	((l)->l_pflag |= LP_OWEUPC, setsoftast(l))
 



CVS commit: src/sys/arch/hp700/hp700

2011-01-20 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Jan 20 19:43:17 UTC 2011

Modified Files:
src/sys/arch/hp700/hp700: intr.h

Log Message:
#define


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/hp700/hp700/intr.h

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

Modified files:

Index: src/sys/arch/hp700/hp700/intr.h
diff -u src/sys/arch/hp700/hp700/intr.h:1.13 src/sys/arch/hp700/hp700/intr.h:1.14
--- src/sys/arch/hp700/hp700/intr.h:1.13	Sun Dec  5 12:19:09 2010
+++ src/sys/arch/hp700/hp700/intr.h	Thu Jan 20 19:43:16 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: intr.h,v 1.13 2010/12/05 12:19:09 skrll Exp $	*/
+/*	$NetBSD: intr.h,v 1.14 2011/01/20 19:43:16 skrll Exp $	*/
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  * and the maximum number of interrupt registers.
  */
 #define	HP700_INT_BITS	(32)
-#define CPU_NINTS	HP700_INT_BITS		/* Use this one */
+#define	CPU_NINTS	HP700_INT_BITS		/* Use this one */
 
 /*
  * This describes one HP700 interrupt register.



CVS commit: src/sys/conf

2011-01-20 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Thu Jan 20 19:10:02 UTC 2011

Modified Files:
src/sys/conf: majors

Log Message:
unreserve kmixer


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/conf/majors

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/majors
diff -u src/sys/conf/majors:1.54 src/sys/conf/majors:1.55
--- src/sys/conf/majors:1.54	Wed Jan  5 22:35:08 2011
+++ src/sys/conf/majors	Thu Jan 20 19:10:02 2011
@@ -1,4 +1,4 @@
-# $NetBSD: majors,v 1.54 2011/01/05 22:35:08 jmcneill Exp $
+# $NetBSD: majors,v 1.55 2011/01/20 19:10:02 jmcneill Exp $
 #
 # Device majors for Machine-Independent drivers.
 #
@@ -45,4 +45,3 @@
 device-major rumpblk   char 197 block 197  rumpblk
 device-major npf   char 198		   npf
 device-major flash char 199 block 199  flash
-device-major kmixerchar 200		   kmixer



CVS commit: src

2011-01-20 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Thu Jan 20 18:55:39 UTC 2011

Modified Files:
src/distrib/sets/lists/xbase: md.amd64 md.i386
src/distrib/sets/lists/xcomp: md.amd64 md.i386
src/external/mit/xorg/lib/libchromeXvMC: shlib_version

Log Message:
bump libchromeXvMC major to match the other hw libraries to make
libXvMCW happy


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/distrib/sets/lists/xbase/md.amd64
cvs rdiff -u -r1.25 -r1.26 src/distrib/sets/lists/xbase/md.i386
cvs rdiff -u -r1.30 -r1.31 src/distrib/sets/lists/xcomp/md.amd64
cvs rdiff -u -r1.37 -r1.38 src/distrib/sets/lists/xcomp/md.i386
cvs rdiff -u -r1.1 -r1.2 \
src/external/mit/xorg/lib/libchromeXvMC/shlib_version

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/md.amd64
diff -u src/distrib/sets/lists/xbase/md.amd64:1.9 src/distrib/sets/lists/xbase/md.amd64:1.10
--- src/distrib/sets/lists/xbase/md.amd64:1.9	Thu Jan 20 18:36:46 2011
+++ src/distrib/sets/lists/xbase/md.amd64	Thu Jan 20 18:55:38 2011
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.9 2011/01/20 18:36:46 jmcneill Exp $
+# $NetBSD: md.amd64,v 1.10 2011/01/20 18:55:38 jmcneill Exp $
 ./usr/X11R7/share/pciids/pci.ids		-unknown-		obsolete
 ./usr/X11R7/lib/libI810XvMC.so			-unknown-		xorg
 ./usr/X11R7/lib/libI810XvMC.so.1		-unknown-		xorg
@@ -7,8 +7,8 @@
 ./usr/X11R7/lib/libIntelXvMC.so.1		-unknown-		xorg
 ./usr/X11R7/lib/libIntelXvMC.so.1.0		-unknown-		xorg
 ./usr/X11R7/lib/libchromeXvMC.so		-unknown-		xorg
-./usr/X11R7/lib/libchromeXvMC.so.0		-unknown-		xorg
-./usr/X11R7/lib/libchromeXvMC.so.0.0		-unknown-		xorg
+./usr/X11R7/lib/libchromeXvMC.so.1		-unknown-		xorg
+./usr/X11R7/lib/libchromeXvMC.so.1.0		-unknown-		xorg
 ./usr/X11R7/lib/libchromeXvMCPro.so		-unknown-		xorg
 ./usr/X11R7/lib/libchromeXvMCPro.so.1		-unknown-		xorg
 ./usr/X11R7/lib/libchromeXvMCPro.so.1.0		-unknown-		xorg

Index: src/distrib/sets/lists/xbase/md.i386
diff -u src/distrib/sets/lists/xbase/md.i386:1.25 src/distrib/sets/lists/xbase/md.i386:1.26
--- src/distrib/sets/lists/xbase/md.i386:1.25	Thu Jan 20 18:36:46 2011
+++ src/distrib/sets/lists/xbase/md.i386	Thu Jan 20 18:55:38 2011
@@ -1,4 +1,4 @@
-# $NetBSD: md.i386,v 1.25 2011/01/20 18:36:46 jmcneill Exp $
+# $NetBSD: md.i386,v 1.26 2011/01/20 18:55:38 jmcneill Exp $
 ./usr/X11R7/share/pciids/pci.ids		-unknown-		obsolete
 ./usr/X11R7/lib/libI810XvMC.so			-unknown-		xorg
 ./usr/X11R7/lib/libI810XvMC.so.1		-unknown-		xorg
@@ -7,8 +7,8 @@
 ./usr/X11R7/lib/libIntelXvMC.so.1		-unknown-		xorg
 ./usr/X11R7/lib/libIntelXvMC.so.1.0		-unknown-		xorg
 ./usr/X11R7/lib/libchromeXvMC.so		-unknown-		xorg
-./usr/X11R7/lib/libchromeXvMC.so.0		-unknown-		xorg
-./usr/X11R7/lib/libchromeXvMC.so.0.0		-unknown-		xorg
+./usr/X11R7/lib/libchromeXvMC.so.1		-unknown-		xorg
+./usr/X11R7/lib/libchromeXvMC.so.1.0		-unknown-		xorg
 ./usr/X11R7/lib/libchromeXvMCPro.so		-unknown-		xorg
 ./usr/X11R7/lib/libchromeXvMCPro.so.1		-unknown-		xorg
 ./usr/X11R7/lib/libchromeXvMCPro.so.1.0		-unknown-		xorg

Index: src/distrib/sets/lists/xcomp/md.amd64
diff -u src/distrib/sets/lists/xcomp/md.amd64:1.30 src/distrib/sets/lists/xcomp/md.amd64:1.31
--- src/distrib/sets/lists/xcomp/md.amd64:1.30	Thu Jan 20 18:36:46 2011
+++ src/distrib/sets/lists/xcomp/md.amd64	Thu Jan 20 18:55:38 2011
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.30 2011/01/20 18:36:46 jmcneill Exp $
+# $NetBSD: md.amd64,v 1.31 2011/01/20 18:55:38 jmcneill Exp $
 ./usr/X11R6/include/xf86Optrec.h			-unknown-	x11
 ./usr/X11R6/include/xf86Parser.h			-unknown-	x11
 ./usr/X11R6/man/cat3/XF86VidMode.0			-unknown-	.cat,x11
@@ -113,7 +113,7 @@
 ./usr/libdata/debug/usr/X11R7/bin/xorgconfig.debug	-unknown-	obsolete
 ./usr/libdata/debug/usr/X11R7/lib/libI810XvMC.so.1.0.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/libIntelXvMC.so.1.0.debug	-unknown-		xorg,debug
-./usr/libdata/debug/usr/X11R7/lib/libchromeXvMC.so.0.0.debug	-unknown-		xorg,debug
+./usr/libdata/debug/usr/X11R7/lib/libchromeXvMC.so.1.0.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/libchromeXvMCPro.so.1.0.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/libdrm_intel.so.0.0.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/modules/dri/libi810_dri.so.0.debug	-unknown-		xorg,debug

Index: src/distrib/sets/lists/xcomp/md.i386
diff -u src/distrib/sets/lists/xcomp/md.i386:1.37 src/distrib/sets/lists/xcomp/md.i386:1.38
--- src/distrib/sets/lists/xcomp/md.i386:1.37	Thu Jan 20 18:36:46 2011
+++ src/distrib/sets/lists/xcomp/md.i386	Thu Jan 20 18:55:38 2011
@@ -1,4 +1,4 @@
-# $NetBSD: md.i386,v 1.37 2011/01/20 18:36:46 jmcneill Exp $
+# $NetBSD: md.i386,v 1.38 2011/01/20 18:55:38 jmcneill Exp $
 ./usr/X11R6/include/xf86Optrec.h			-unknown-	x11
 ./usr/X11R6/include/xf86Parser.h			-unknown-	x11
 ./usr/X11R6/man/cat3/XF86VidMode.0			-unknown-	.cat,x11
@@ -110,7 +110,7 @@
 ./u

CVS commit: src/compat

2011-01-20 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Jan 20 18:43:53 UTC 2011

Modified Files:
src/compat: compatsubdir.mk

Log Message:
Change to use MAKEOBJDIR instead of MAKEOBJDIRPREFIX


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/compat/compatsubdir.mk

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

Modified files:

Index: src/compat/compatsubdir.mk
diff -u src/compat/compatsubdir.mk:1.5 src/compat/compatsubdir.mk:1.6
--- src/compat/compatsubdir.mk:1.5	Fri Dec  3 21:38:48 2010
+++ src/compat/compatsubdir.mk	Thu Jan 20 18:43:52 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: compatsubdir.mk,v 1.5 2010/12/03 21:38:48 plunky Exp $
+#	$NetBSD: compatsubdir.mk,v 1.6 2011/01/20 18:43:52 matt Exp $
 
 # Build netbsd libraries.
 
@@ -10,8 +10,7 @@
 # make sure we get an objdir built early enough
 .include 
 
-# XXX make this use MAKEOBJDIR
-MAKEDIRTARGETENV=	MAKEOBJDIRPREFIX=${.OBJDIR} MKOBJDIRS=yes MKSHARE=no BSD_MK_COMPAT_FILE=${BSD_MK_COMPAT_FILE}
+MAKEDIRTARGETENV=	MAKEOBJDIR='$${.CURDIR:C,^${NETBSDSRCDIR},${.OBJDIR},}' MKOBJDIRS=yes MKSHARE=no BSD_MK_COMPAT_FILE=${BSD_MK_COMPAT_FILE}
 
 .if defined(BOOTSTRAP_SUBDIRS)
 SUBDIR=	${BOOTSTRAP_SUBDIRS}



CVS commit: src/lib/libc/arch/mips/gdtoa

2011-01-20 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Jan 20 18:41:39 UTC 2011

Modified Files:
src/lib/libc/arch/mips/gdtoa: Makefile.inc

Log Message:
Remove CPUFLAGS?= since it's no longer needed.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/mips/gdtoa/Makefile.inc

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

Modified files:

Index: src/lib/libc/arch/mips/gdtoa/Makefile.inc
diff -u src/lib/libc/arch/mips/gdtoa/Makefile.inc:1.3 src/lib/libc/arch/mips/gdtoa/Makefile.inc:1.4
--- src/lib/libc/arch/mips/gdtoa/Makefile.inc:1.3	Tue Jan 18 08:12:05 2011
+++ src/lib/libc/arch/mips/gdtoa/Makefile.inc	Thu Jan 20 18:41:39 2011
@@ -1,6 +1,5 @@
-#	$NetBSD: Makefile.inc,v 1.3 2011/01/18 08:12:05 matt Exp $
+#	$NetBSD: Makefile.inc,v 1.4 2011/01/20 18:41:39 matt Exp $
 
-CPUFLAGS?=
 SRCS+=	strtof.c
 .if (${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el")
 .if !defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32)



CVS commit: src

2011-01-20 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Thu Jan 20 18:36:46 UTC 2011

Modified Files:
src/distrib/sets/lists/xbase: md.amd64 md.i386
src/distrib/sets/lists/xcomp: md.amd64 md.i386
src/external/mit/xorg/lib: Makefile
Added Files:
src/external/mit/xorg/lib/libchromeXvMCPro: Makefile shlib_version

Log Message:
build and install libchromeXvMCPro from xf86-video-openchrome


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/distrib/sets/lists/xbase/md.amd64
cvs rdiff -u -r1.24 -r1.25 src/distrib/sets/lists/xbase/md.i386
cvs rdiff -u -r1.29 -r1.30 src/distrib/sets/lists/xcomp/md.amd64
cvs rdiff -u -r1.36 -r1.37 src/distrib/sets/lists/xcomp/md.i386
cvs rdiff -u -r1.22 -r1.23 src/external/mit/xorg/lib/Makefile
cvs rdiff -u -r0 -r1.1 src/external/mit/xorg/lib/libchromeXvMCPro/Makefile \
src/external/mit/xorg/lib/libchromeXvMCPro/shlib_version

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/md.amd64
diff -u src/distrib/sets/lists/xbase/md.amd64:1.8 src/distrib/sets/lists/xbase/md.amd64:1.9
--- src/distrib/sets/lists/xbase/md.amd64:1.8	Wed Jan 19 00:36:40 2011
+++ src/distrib/sets/lists/xbase/md.amd64	Thu Jan 20 18:36:46 2011
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.8 2011/01/19 00:36:40 jmcneill Exp $
+# $NetBSD: md.amd64,v 1.9 2011/01/20 18:36:46 jmcneill Exp $
 ./usr/X11R7/share/pciids/pci.ids		-unknown-		obsolete
 ./usr/X11R7/lib/libI810XvMC.so			-unknown-		xorg
 ./usr/X11R7/lib/libI810XvMC.so.1		-unknown-		xorg
@@ -9,6 +9,9 @@
 ./usr/X11R7/lib/libchromeXvMC.so		-unknown-		xorg
 ./usr/X11R7/lib/libchromeXvMC.so.0		-unknown-		xorg
 ./usr/X11R7/lib/libchromeXvMC.so.0.0		-unknown-		xorg
+./usr/X11R7/lib/libchromeXvMCPro.so		-unknown-		xorg
+./usr/X11R7/lib/libchromeXvMCPro.so.1		-unknown-		xorg
+./usr/X11R7/lib/libchromeXvMCPro.so.1.0		-unknown-		xorg
 ./usr/X11R7/lib/libdrm_intel.so			-unknown-		xorg
 ./usr/X11R7/lib/libdrm_intel.so.0		-unknown-		xorg
 ./usr/X11R7/lib/libdrm_intel.so.0.0		-unknown-		xorg

Index: src/distrib/sets/lists/xbase/md.i386
diff -u src/distrib/sets/lists/xbase/md.i386:1.24 src/distrib/sets/lists/xbase/md.i386:1.25
--- src/distrib/sets/lists/xbase/md.i386:1.24	Wed Jan 19 00:36:40 2011
+++ src/distrib/sets/lists/xbase/md.i386	Thu Jan 20 18:36:46 2011
@@ -1,4 +1,4 @@
-# $NetBSD: md.i386,v 1.24 2011/01/19 00:36:40 jmcneill Exp $
+# $NetBSD: md.i386,v 1.25 2011/01/20 18:36:46 jmcneill Exp $
 ./usr/X11R7/share/pciids/pci.ids		-unknown-		obsolete
 ./usr/X11R7/lib/libI810XvMC.so			-unknown-		xorg
 ./usr/X11R7/lib/libI810XvMC.so.1		-unknown-		xorg
@@ -9,6 +9,9 @@
 ./usr/X11R7/lib/libchromeXvMC.so		-unknown-		xorg
 ./usr/X11R7/lib/libchromeXvMC.so.0		-unknown-		xorg
 ./usr/X11R7/lib/libchromeXvMC.so.0.0		-unknown-		xorg
+./usr/X11R7/lib/libchromeXvMCPro.so		-unknown-		xorg
+./usr/X11R7/lib/libchromeXvMCPro.so.1		-unknown-		xorg
+./usr/X11R7/lib/libchromeXvMCPro.so.1.0		-unknown-		xorg
 ./usr/X11R7/lib/libdrm_intel.so			-unknown-		xorg
 ./usr/X11R7/lib/libdrm_intel.so.0		-unknown-		xorg
 ./usr/X11R7/lib/libdrm_intel.so.0.0		-unknown-		xorg

Index: src/distrib/sets/lists/xcomp/md.amd64
diff -u src/distrib/sets/lists/xcomp/md.amd64:1.29 src/distrib/sets/lists/xcomp/md.amd64:1.30
--- src/distrib/sets/lists/xcomp/md.amd64:1.29	Wed Jan 19 01:52:43 2011
+++ src/distrib/sets/lists/xcomp/md.amd64	Thu Jan 20 18:36:46 2011
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.29 2011/01/19 01:52:43 jakllsch Exp $
+# $NetBSD: md.amd64,v 1.30 2011/01/20 18:36:46 jmcneill Exp $
 ./usr/X11R6/include/xf86Optrec.h			-unknown-	x11
 ./usr/X11R6/include/xf86Parser.h			-unknown-	x11
 ./usr/X11R6/man/cat3/XF86VidMode.0			-unknown-	.cat,x11
@@ -83,6 +83,10 @@
 ./usr/X11R7/lib/libchromeXvMC_g.a			-unknown-	debuglib,xorg
 ./usr/X11R7/lib/libchromeXvMC_p.a			-unknown-	profile,xorg
 ./usr/X11R7/lib/libchromeXvMC_pic.a			-unknown-	xorg
+./usr/X11R7/lib/libchromeXvMCPro.a			-unknown-	xorg
+./usr/X11R7/lib/libchromeXvMCPro_g.a			-unknown-	debuglib,xorg
+./usr/X11R7/lib/libchromeXvMCPro_p.a			-unknown-	profile,xorg
+./usr/X11R7/lib/libchromeXvMCPro_pic.a			-unknown-	xorg
 ./usr/X11R7/lib/libdrm_intel.a-unknown-	xorg
 ./usr/X11R7/lib/libdrm_intel_g.a			-unknown-	debuglib,xorg
 ./usr/X11R7/lib/libdrm_intel_p.a			-unknown-	profile,xorg
@@ -110,6 +114,7 @@
 ./usr/libdata/debug/usr/X11R7/lib/libI810XvMC.so.1.0.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/libIntelXvMC.so.1.0.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/libchromeXvMC.so.0.0.debug	-unknown-		xorg,debug
+./usr/libdata/debug/usr/X11R7/lib/libchromeXvMCPro.so.1.0.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/libdrm_intel.so.0.0.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/modules/dri/libi810_dri.so.0.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/modules/dri/libi915_dri.so.0.debug	-unknown-		xorg,debug
@@ -189,4

CVS commit: xsrc/external/mit/xf86-video-openchrome/dist/src

2011-01-20 Thread Jared D. McNeill
Module Name:xsrc
Committed By:   jmcneill
Date:   Thu Jan 20 18:23:56 UTC 2011

Modified Files:
xsrc/external/mit/xf86-video-openchrome/dist/src: via_dri.c

Log Message:
Use DRICreatePCIBusID if present instead of building the Bus ID string
manually.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
xsrc/external/mit/xf86-video-openchrome/dist/src/via_dri.c

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/xf86-video-openchrome/dist/src/via_dri.c
diff -u xsrc/external/mit/xf86-video-openchrome/dist/src/via_dri.c:1.1.1.1 xsrc/external/mit/xf86-video-openchrome/dist/src/via_dri.c:1.2
--- xsrc/external/mit/xf86-video-openchrome/dist/src/via_dri.c:1.1.1.1	Thu May 27 07:31:59 2010
+++ xsrc/external/mit/xf86-video-openchrome/dist/src/via_dri.c	Thu Jan 20 18:23:55 2011
@@ -599,17 +599,21 @@
 pDRIInfo->clientDriverName = VIAClientDriverName;
 break;
 }
-pDRIInfo->busIdString = xalloc(64);
-sprintf(pDRIInfo->busIdString, "PCI:%d:%d:%d",
+if (xf86LoaderCheckSymbol("DRICreatePCIBusID")) {
+pDRIInfo->busIdString = DRICreatePCIBusID(pVia->PciInfo);
+} else {
+pDRIInfo->busIdString = xalloc(64);
+sprintf(pDRIInfo->busIdString, "PCI:%d:%d:%d",
 #ifdef XSERVER_LIBPCIACCESS
-((pVia->PciInfo->domain << 8) | pVia->PciInfo->bus),
-pVia->PciInfo->dev, pVia->PciInfo->func
+((pVia->PciInfo->domain << 8) | pVia->PciInfo->bus),
+pVia->PciInfo->dev, pVia->PciInfo->func
 #else
-((pciConfigPtr)pVia->PciInfo->thisCard)->busnum,
-((pciConfigPtr)pVia->PciInfo->thisCard)->devnum,
-((pciConfigPtr)pVia->PciInfo->thisCard)->funcnum
+((pciConfigPtr)pVia->PciInfo->thisCard)->busnum,
+((pciConfigPtr)pVia->PciInfo->thisCard)->devnum,
+((pciConfigPtr)pVia->PciInfo->thisCard)->funcnum
 #endif
-   );
+   );
+}
 pDRIInfo->ddxDriverMajorVersion = VIA_DRIDDX_VERSION_MAJOR;
 pDRIInfo->ddxDriverMinorVersion = VIA_DRIDDX_VERSION_MINOR;
 pDRIInfo->ddxDriverPatchVersion = VIA_DRIDDX_VERSION_PATCH;



CVS commit: src/crypto/dist/ipsec-tools/src/libipsec

2011-01-20 Thread VANHULLEBUS Yvan
Module Name:src
Committed By:   vanhu
Date:   Thu Jan 20 16:08:35 UTC 2011

Modified Files:
src/crypto/dist/ipsec-tools/src/libipsec: pfkey.c

Log Message:
fixed a typo, it will now compile when KMADDRESS is defined. reported by Roman 
Hoog Antink (rha (at) open.ch)


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/crypto/dist/ipsec-tools/src/libipsec/pfkey.c

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

Modified files:

Index: src/crypto/dist/ipsec-tools/src/libipsec/pfkey.c
diff -u src/crypto/dist/ipsec-tools/src/libipsec/pfkey.c:1.20 src/crypto/dist/ipsec-tools/src/libipsec/pfkey.c:1.21
--- src/crypto/dist/ipsec-tools/src/libipsec/pfkey.c:1.20	Wed Dec  8 01:55:12 2010
+++ src/crypto/dist/ipsec-tools/src/libipsec/pfkey.c	Thu Jan 20 16:08:35 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: pfkey.c,v 1.20 2010/12/08 01:55:12 joerg Exp $	*/
+/*	$NetBSD: pfkey.c,v 1.21 2011/01/20 16:08:35 vanhu Exp $	*/
 
 /*	$KAME: pfkey.c,v 1.47 2003/10/02 19:52:12 itojun Exp $	*/
 
@@ -2282,7 +2282,7 @@
  * `buf' must has been allocated sufficiently.
  */
 static caddr_t
-pfkey_setsadbkmaddr(caddr_t buf, caddr_T lim, struct sockaddr *local,
+pfkey_setsadbkmaddr(caddr_t buf, caddr_t lim, struct sockaddr *local,
 struct sockaddr *remote)
 {
 	struct sadb_x_kmaddress *p;



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

2011-01-20 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Thu Jan 20 15:50:06 UTC 2011

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

Log Message:
+librumphijack.so.0.0.debug


To generate a diff of this commit:
cvs rdiff -u -r1.152 -r1.153 src/distrib/sets/lists/comp/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/comp/shl.mi
diff -u src/distrib/sets/lists/comp/shl.mi:1.152 src/distrib/sets/lists/comp/shl.mi:1.153
--- src/distrib/sets/lists/comp/shl.mi:1.152	Wed Jan 19 21:07:18 2011
+++ src/distrib/sets/lists/comp/shl.mi	Thu Jan 20 15:50:06 2011
@@ -1,4 +1,4 @@
-# $NetBSD: shl.mi,v 1.152 2011/01/19 21:07:18 he Exp $
+# $NetBSD: shl.mi,v 1.153 2011/01/20 15:50:06 njoly Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -356,6 +356,7 @@
 ./usr/libdata/debug/usr/lib/librumpnet_sockin.so.0.0.debug	comp-rump-debug	debug
 ./usr/libdata/debug/usr/lib/librumpnet_virtif.so.0.0.debug	comp-rump-debug	debug
 ./usr/libdata/debug/usr/lib/librumpuser.so.0.0.debug	comp-rump-debug	debug
+./usr/libdata/debug/usr/lib/librumphijack.so.0.0.debug	comp-rump-debug	debug
 ./usr/libdata/debug/usr/lib/librumpclient.so.0.0.debug	comp-rump-debug	debug
 ./usr/libdata/debug/usr/lib/librumpvfs.so.0.0.debug	comp-rump-debug	debug
 ./usr/libdata/debug/usr/lib/librumpvfs_fifofs.so.0.0.debug	comp-rump-debug	debug



CVS commit: src/usr.sbin/lpr/lpr

2011-01-20 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Thu Jan 20 15:48:12 UTC 2011

Modified Files:
src/usr.sbin/lpr/lpr: lpr.c

Log Message:
- Replace fatal2() with the appropriate err(3)/errx(3) calls.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/usr.sbin/lpr/lpr/lpr.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/lpr/lpr/lpr.c
diff -u src/usr.sbin/lpr/lpr/lpr.c:1.43 src/usr.sbin/lpr/lpr/lpr.c:1.44
--- src/usr.sbin/lpr/lpr/lpr.c:1.43	Thu Aug 20 21:25:59 2009
+++ src/usr.sbin/lpr/lpr/lpr.c	Thu Jan 20 15:48:11 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: lpr.c,v 1.43 2009/08/20 21:25:59 he Exp $	*/
+/*	$NetBSD: lpr.c,v 1.44 2011/01/20 15:48:11 ginsbach Exp $	*/
 
 /*
  * Copyright (c) 1983, 1989, 1993
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)lpr.c	8.4 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: lpr.c,v 1.43 2009/08/20 21:25:59 he Exp $");
+__RCSID("$NetBSD: lpr.c,v 1.44 2011/01/20 15:48:11 ginsbach Exp $");
 #endif
 #endif /* not lint */
 
@@ -106,8 +106,6 @@
 static void	 chkprinter(const char *);
 static void	 cleanup(int);
 static void	 copy(int, const char *);
-static void	 fatal2(const char *, ...)
-__attribute__((__format__(__printf__, 1, 2),__noreturn__));
 static char	*itoa(int);
 static const char	*linked(const char *);
 static char	*lmktemp(const char *, int, int);
@@ -262,9 +260,9 @@
 		printer = DEFLP;
 	chkprinter(printer);
 	if (SC && ncopies > 1)
-		fatal2("multiple copies are not allowed");
+		errx(EXIT_FAILURE, "multiple copies are not allowed");
 	if (MC > 0 && ncopies > MC)
-		fatal2("only %ld copies are allowed", MC);
+		errx(EXIT_FAILURE, "only %ld copies are allowed", MC);
 	/*
 	 * Get the identity of the person doing the lpr using the same
 	 * algorithm as lprm. 
@@ -272,7 +270,7 @@
 	userid = getuid();
 	if (userid != DU || person == 0) {
 		if ((pw = getpwuid(userid)) == NULL)
-			fatal2("Who are you?");
+			errx(EXIT_FAILURE, "Who are you?");
 		person = pw->pw_name;
 	}
 	/*
@@ -280,7 +278,8 @@
 	 */
 	if (RG != NULL && userid != DU) {
 		if ((gptr = getgrnam(RG)) == NULL)
-			fatal2("Restricted group specified incorrectly");
+			errx(EXIT_FAILURE,
+			 "Restricted group specified incorrectly");
 		if (gptr->gr_gid != getgid()) {
 			while (*gptr->gr_mem != NULL) {
 if ((strcmp(person, *gptr->gr_mem)) == 0)
@@ -288,7 +287,8 @@
 gptr->gr_mem++;
 			}
 			if (*gptr->gr_mem == NULL)
-fatal2("Not a member of the restricted group");
+errx(EXIT_FAILURE,
+ "Not a member of the restricted group");
 		}
 	}
 	/*
@@ -296,7 +296,7 @@
 	 */
 	(void)snprintf(buf, sizeof buf, "%s/%s", SD, LO);
 	if (userid && stat(buf, &stb) == 0 && (stb.st_mode & S_IXGRP))
-		fatal2("Printer queue is disabled");
+		errx(EXIT_FAILURE, "Printer queue is disabled");
 	/*
 	 * Initialize the control file.
 	 */
@@ -515,7 +515,8 @@
 	size_t len = 2;
 
 	if (strlen(p2) > BUFSIZ - 2)
-		errx(1, "Internal error:  String longer than %d", BUFSIZ);
+		errx(EXIT_FAILURE,
+		 "Internal error:  String longer than %d", BUFSIZ);
 
 	*p1++ = c;
 	while ((c = *p2++) != '\0') {
@@ -732,26 +733,11 @@
 	char *s;
 
 	if ((s = malloc(len)) == NULL)
-		fatal2("out of memory");
+		err(EXIT_FAILURE, NULL);
 	(void)snprintf(s, len, "%s/%sA%03d%s", SD, id, num, host);
 	return(s);
 }
 
-#include 
-
-static void
-fatal2(const char *msg, ...)
-{
-	va_list ap;
-
-	va_start(ap, msg);
-	printf("%s: ", getprogname());
-	vprintf(msg, ap);
-	putchar('\n');
-	va_end(ap);
-	exit(1);
-}
-
 static void
 usage(void)
 {



CVS commit: src/sys/arch/amigappc/include

2011-01-20 Thread Frank Wille
Module Name:src
Committed By:   phx
Date:   Thu Jan 20 15:44:56 UTC 2011

Modified Files:
src/sys/arch/amigappc/include: cpu.h

Log Message:
Add missing is_a600() definition, used by amiga devices.
We simply define it as 0, because an A600 will never have a PPC installed.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/amigappc/include/cpu.h

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

Modified files:

Index: src/sys/arch/amigappc/include/cpu.h
diff -u src/sys/arch/amigappc/include/cpu.h:1.18 src/sys/arch/amigappc/include/cpu.h:1.19
--- src/sys/arch/amigappc/include/cpu.h:1.18	Tue Feb  9 18:13:10 2010
+++ src/sys/arch/amigappc/include/cpu.h	Thu Jan 20 15:44:56 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpu.h,v 1.18 2010/02/09 18:13:10 phx Exp $	*/
+/*	$NetBSD: cpu.h,v 1.19 2011/01/20 15:44:56 phx Exp $	*/
 
 /*
  * Copyright (C) 1995-1997 Wolfgang Solfrank.
@@ -47,14 +47,15 @@
 /*
  * Prototypes from amiga_init.c
  */
-void	*alloc_z2mem (long);
+void	*alloc_z2mem(long);
 
 /*
  * Prototypes from autoconf.c
  */
-int is_a1200 (void);
-int is_a3000 (void);
-int is_a4000 (void);
+#define	is_a600()	0
+int is_a1200(void);
+int is_a3000(void);
+int is_a4000(void);
 
 /*
  * Prototypes from machdep.c



CVS commit: src/usr.bin/unifdef

2011-01-20 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Thu Jan 20 15:24:24 UTC 2011

Modified Files:
src/usr.bin/unifdef: unifdef.c

Log Message:
- Fix an incorrect comparison (always true)
  This created an unnecessary temporary file when using the -o option
  to create a new file.

- Fix -o option bug reported by Tony Finch
  The output file was incorrectly called "[stdin]" when overwriting
  the the input file via standard in (unifdef -o file < file).


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/unifdef/unifdef.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/unifdef/unifdef.c
diff -u src/usr.bin/unifdef/unifdef.c:1.18 src/usr.bin/unifdef/unifdef.c:1.19
--- src/usr.bin/unifdef/unifdef.c:1.18	Thu Jan 28 14:15:18 2010
+++ src/usr.bin/unifdef/unifdef.c	Thu Jan 20 15:24:24 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: unifdef.c,v 1.18 2010/01/28 14:15:18 mbalmer Exp $	*/
+/*	$NetBSD: unifdef.c,v 1.19 2011/01/20 15:24:24 ginsbach Exp $	*/
 
 /*
  * Copyright (c) 1985, 1993
@@ -77,7 +77,7 @@
 #endif
 #ifdef __IDSTRING
 __IDSTRING(Berkeley, "@(#)unifdef.c	8.1 (Berkeley) 6/6/93");
-__IDSTRING(NetBSD, "$NetBSD: unifdef.c,v 1.18 2010/01/28 14:15:18 mbalmer Exp $");
+__IDSTRING(NetBSD, "$NetBSD: unifdef.c,v 1.19 2011/01/20 15:24:24 ginsbach Exp $");
 __IDSTRING(dotat, "$dotat: things/unifdef.c,v 1.161 2003/07/01 15:32:48 fanf2 Exp $");
 #endif
 #endif /* not lint */
@@ -347,7 +347,7 @@
 err(2, "can't fstat %s", filename);
 
 			overwriting = (osb.st_dev == isb.st_dev &&
-			osb.st_ino == osb.st_ino);
+			osb.st_ino == isb.st_ino);
 		}
 		if (overwriting) {
 			int ofd;
@@ -506,12 +506,12 @@
 	if (fclose(output)) {
 		if (overwriting) {
 			unlink(tmpname);
-			errx(2, "%s unchanged", filename);
+			errx(2, "%s unchanged", ofilename);
 		}
 	}
-	if (overwriting && rename(tmpname, filename)) {
+	if (overwriting && rename(tmpname, ofilename)) {
 		unlink(tmpname);
-		errx(2, "%s unchanged", filename);
+		errx(2, "%s unchanged", ofilename);
 	}
 	exit(exitstat);
 }
@@ -1034,7 +1034,7 @@
 	fclose(output);
 	if (overwriting) {
 		unlink(tmpname);
-		errx(2, "%s unchanged", filename);
+		errx(2, "%s unchanged", ofilename);
 	}
 	errx(2, "output may be truncated");
 }



CVS commit: src/lib/librumpuser

2011-01-20 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Thu Jan 20 15:00:13 UTC 2011

Modified Files:
src/lib/librumpuser: rumpuser.c

Log Message:
include pid of rump server in hostname


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/librumpuser/rumpuser.c

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

Modified files:

Index: src/lib/librumpuser/rumpuser.c
diff -u src/lib/librumpuser/rumpuser.c:1.12 src/lib/librumpuser/rumpuser.c:1.13
--- src/lib/librumpuser/rumpuser.c:1.12	Wed Jan  5 09:43:00 2011
+++ src/lib/librumpuser/rumpuser.c	Thu Jan 20 15:00:12 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: rumpuser.c,v 1.12 2011/01/05 09:43:00 pooka Exp $	*/
+/*	$NetBSD: rumpuser.c,v 1.13 2011/01/20 15:00:12 pooka Exp $	*/
 
 /*
  * Copyright (c) 2007-2010 Antti Kantee.  All Rights Reserved.
@@ -27,7 +27,7 @@
 
 #include 
 #if !defined(lint)
-__RCSID("$NetBSD: rumpuser.c,v 1.12 2011/01/05 09:43:00 pooka Exp $");
+__RCSID("$NetBSD: rumpuser.c,v 1.13 2011/01/20 15:00:12 pooka Exp $");
 #endif /* !lint */
 
 /* thank the maker for this */
@@ -491,8 +491,17 @@
 int
 rumpuser_gethostname(char *name, size_t namelen, int *error)
 {
+	char tmp[MAXHOSTNAMELEN];
 
-	DOCALL(int, (gethostname(name, namelen)));
+	if (gethostname(tmp, sizeof(tmp)) == -1) {
+		snprintf(name, namelen, "rump-%05d.rumpdomain", getpid());
+	} else {
+		snprintf(name, namelen, "rump-%05d.%s.rumpdomain",
+		getpid(), tmp);
+	}
+
+	*error = 0;
+	return 0;
 }
 
 int



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

2011-01-20 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Thu Jan 20 14:54:25 UTC 2011

Modified Files:
src/distrib/sets/lists/comp: md.amd64

Log Message:
Add missing .debug extension.


To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 src/distrib/sets/lists/comp/md.amd64

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/md.amd64
diff -u src/distrib/sets/lists/comp/md.amd64:1.92 src/distrib/sets/lists/comp/md.amd64:1.93
--- src/distrib/sets/lists/comp/md.amd64:1.92	Tue Jan 18 21:07:51 2011
+++ src/distrib/sets/lists/comp/md.amd64	Thu Jan 20 14:54:24 2011
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.92 2011/01/18 21:07:51 pooka Exp $
+# $NetBSD: md.amd64,v 1.93 2011/01/20 14:54:24 njoly Exp $
 ./usr/include/amd64comp-c-include
 ./usr/include/amd64/ansi.h			comp-c-include
 ./usr/include/amd64/aout_machdep.h		comp-c-include
@@ -935,7 +935,7 @@
 ./usr/libdata/debug/usr/lib/i386/libisccc.so.5.2.debug	comp-compat-shlib	compat,pic,debug
 ./usr/libdata/debug/usr/lib/i386/libisccfg.so.5.2.debug	comp-compat-shlib	compat,pic,debug
 ./usr/libdata/debug/usr/lib/i386/libiscsi.so.2.0.debug	comp-compat-shlib	compat,pic,debug,iscsi
-./usr/libdata/debug/usr/lib/i386/libisns.so.0.0		comp-compat-shlib	compat,pic,debug
+./usr/libdata/debug/usr/lib/i386/libisns.so.0.0.debug	comp-compat-shlib	compat,pic,debug
 ./usr/libdata/debug/usr/lib/i386/libkadm5clnt.so.12.0.debug	comp-compat-shlib	compat,pic,kerberos,debug
 ./usr/libdata/debug/usr/lib/i386/libkadm5srv.so.13.0.debug	comp-compat-shlib	compat,pic,kerberos,debug
 ./usr/libdata/debug/usr/lib/i386/libkafs.so.11.0.debug	comp-compat-shlib	compat,pic,kerberos,debug



CVS commit: src/sys/dev/mii

2011-01-20 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Thu Jan 20 14:26:11 UTC 2011

Modified Files:
src/sys/dev/mii: rlphy.c

Log Message:
Match only first instance of rlphy, following suite from Free/OpenBSD.

should fix PR kern/42950, variant of patch from "js" on irc


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/mii/rlphy.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/mii/rlphy.c
diff -u src/sys/dev/mii/rlphy.c:1.26 src/sys/dev/mii/rlphy.c:1.27
--- src/sys/dev/mii/rlphy.c:1.26	Sun Nov 14 13:40:36 2010
+++ src/sys/dev/mii/rlphy.c	Thu Jan 20 14:26:11 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: rlphy.c,v 1.26 2010/11/14 13:40:36 mlelstv Exp $	*/
+/*	$NetBSD: rlphy.c,v 1.27 2011/01/20 14:26:11 pooka Exp $	*/
 /*	$OpenBSD: rlphy.c,v 1.20 2005/07/31 05:27:30 pvalchev Exp $	*/
 
 /*
@@ -38,7 +38,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: rlphy.c,v 1.26 2010/11/14 13:40:36 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rlphy.c,v 1.27 2011/01/20 14:26:11 pooka Exp $");
 
 #include 
 #include 
@@ -90,6 +90,10 @@
 rlphymatch(device_t parent, cfdata_t match, void *aux)
 {
 	struct mii_attach_args *ma = aux;
+	struct mii_data *mii = ma->mii_data;
+
+	if (mii->mii_instance != 0)
+		return 0;
 
 	if (mii_phy_match(ma, rlphys) != NULL)
 		return (10);



CVS commit: src/sys/compat/linux/arch/powerpc

2011-01-20 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Thu Jan 20 11:59:25 UTC 2011

Modified Files:
src/sys/compat/linux/arch/powerpc: linux_machdep.c

Log Message:
save_fpu_lwp() was renamed to fpu_save_lwp(), so follow suit.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/compat/linux/arch/powerpc/linux_machdep.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/compat/linux/arch/powerpc/linux_machdep.c
diff -u src/sys/compat/linux/arch/powerpc/linux_machdep.c:1.44 src/sys/compat/linux/arch/powerpc/linux_machdep.c:1.45
--- src/sys/compat/linux/arch/powerpc/linux_machdep.c:1.44	Tue Jan 18 01:13:03 2011
+++ src/sys/compat/linux/arch/powerpc/linux_machdep.c	Thu Jan 20 11:59:24 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_machdep.c,v 1.44 2011/01/18 01:13:03 matt Exp $ */
+/*	$NetBSD: linux_machdep.c,v 1.45 2011/01/20 11:59:24 he Exp $ */
 
 /*-
  * Copyright (c) 1995, 2000, 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.44 2011/01/18 01:13:03 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.45 2011/01/20 11:59:24 he Exp $");
 
 #include 
 #include 
@@ -181,7 +181,7 @@
 	memset(&frame, 0, sizeof(frame));
 	memcpy(&frame.lgp_regs, &linux_regs, sizeof(linux_regs));
 
-	save_fpu_lwp(curlwp, FPU_SAVE);
+	fpu_save_lwp(curlwp, FPU_SAVE);
 	memcpy(&frame.lfp_regs, curpcb->pcb_fpu.fpreg, sizeof(frame.lfp_regs));
 
 	/*
@@ -319,7 +319,7 @@
 	/*
 	 * Make sure the fpu state is discarded
 	 */
-	save_fpu_lwp(curlwp, FPU_DISCARD);
+	fpu_save_lwp(curlwp, FPU_DISCARD);
 
 	memcpy(curpcb->pcb_fpu.fpreg, (void *)&sregs.lfp_regs,
 	   sizeof(curpcb->pcb_fpu.fpreg));
@@ -409,7 +409,7 @@
 	/*
 	 * Make sure the fpu state is discarded
 	 */
-	save_fpu_lwp(curlwp, FPU_DISCARD);
+	fpu_save_lwp(curlwp, FPU_DISCARD);
 
 	memcpy(curpcb->pcb_fpu.fpreg, (void *)&sregs.lfp_regs,
 	   sizeof(curpcb->pcb_fpu.fpreg));



CVS commit: src/doc

2011-01-20 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Thu Jan 20 11:46:19 UTC 2011

Modified Files:
src/doc: BRANCHES

Log Message:
Add bouyer-quota2 branch


To generate a diff of this commit:
cvs rdiff -u -r1.303 -r1.304 src/doc/BRANCHES

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

Modified files:

Index: src/doc/BRANCHES
diff -u src/doc/BRANCHES:1.303 src/doc/BRANCHES:1.304
--- src/doc/BRANCHES:1.303	Mon Jan 17 07:35:02 2011
+++ src/doc/BRANCHES	Thu Jan 20 11:46:19 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: BRANCHES,v 1.303 2011/01/17 07:35:02 jruoho Exp $
+#	$NetBSD: BRANCHES,v 1.304 2011/01/20 11:46:19 bouyer Exp $
 #
 # This file contains a list of branches that exist in the NetBSD CVS
 # tree and their current state.
@@ -630,6 +630,16 @@
 Notes:		Used as experiment sandbox and if successful hopefully one day
 		to be integrated.
 
+Branch:		bouyer-quota2
+Description:	modernise disk quotas
+Status:		Active
+Start Date:	Thu Jan 20 2011
+End Date:
+Base Tag:	bouyer-quota2-base
+Maintainer:	Manuel Bouyer 
+Scope:		src/
+Notes:
+
 
 # Individual developers' branches (Terminated):
 



CVS commit: src/common

2011-01-20 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Thu Jan 20 11:17:59 UTC 2011

Modified Files:
src/common/include/prop: prop_array.h prop_dictionary.h
src/common/lib/libprop: prop_kern.c

Log Message:
prop_*_copyout takes an object as second parameter, not a pointer to object.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/common/include/prop/prop_array.h
cvs rdiff -u -r1.11 -r1.12 src/common/include/prop/prop_dictionary.h
cvs rdiff -u -r1.15 -r1.16 src/common/lib/libprop/prop_kern.c

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

Modified files:

Index: src/common/include/prop/prop_array.h
diff -u src/common/include/prop/prop_array.h:1.10 src/common/include/prop/prop_array.h:1.11
--- src/common/include/prop/prop_array.h:1.10	Wed Jan 19 20:34:23 2011
+++ src/common/include/prop/prop_array.h	Thu Jan 20 11:17:58 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: prop_array.h,v 1.10 2011/01/19 20:34:23 bouyer Exp $*/
+/* $NetBSD: prop_array.h,v 1.11 2011/01/20 11:17:58 bouyer Exp $*/
 
 /*-
  * Copyright (c) 2006, 2009 The NetBSD Foundation, Inc.
@@ -77,7 +77,7 @@
 	prop_array_t *);
 #elif defined(_KERNEL)
 int		prop_array_copyin(const struct plistref *, prop_array_t *);
-int		prop_array_copyout(struct plistref *, prop_array_t *);
+int		prop_array_copyout(struct plistref *, prop_array_t);
 int		prop_array_copyin_ioctl(const struct plistref *, const u_long,
 	prop_array_t *);
 int		prop_array_copyout_ioctl(struct plistref *, const u_long,

Index: src/common/include/prop/prop_dictionary.h
diff -u src/common/include/prop/prop_dictionary.h:1.11 src/common/include/prop/prop_dictionary.h:1.12
--- src/common/include/prop/prop_dictionary.h:1.11	Wed Jan 19 20:34:23 2011
+++ src/common/include/prop/prop_dictionary.h	Thu Jan 20 11:17:58 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: prop_dictionary.h,v 1.11 2011/01/19 20:34:23 bouyer Exp $	*/
+/*	$NetBSD: prop_dictionary.h,v 1.12 2011/01/20 11:17:58 bouyer Exp $	*/
 
 /*-
  * Copyright (c) 2006, 2009 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
 int		prop_dictionary_copyin(const struct plistref *,
    prop_dictionary_t *);
 int		prop_dictionary_copyout(struct plistref *,
-   prop_dictionary_t *);
+   prop_dictionary_t);
 int		prop_dictionary_copyin_ioctl(const struct plistref *,
 	 const u_long,
 	 prop_dictionary_t *);

Index: src/common/lib/libprop/prop_kern.c
diff -u src/common/lib/libprop/prop_kern.c:1.15 src/common/lib/libprop/prop_kern.c:1.16
--- src/common/lib/libprop/prop_kern.c:1.15	Wed Jan 19 20:34:23 2011
+++ src/common/lib/libprop/prop_kern.c	Thu Jan 20 11:17:58 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: prop_kern.c,v 1.15 2011/01/19 20:34:23 bouyer Exp $	*/
+/*	$NetBSD: prop_kern.c,v 1.16 2011/01/20 11:17:58 bouyer Exp $	*/
 
 /*-
  * Copyright (c) 2006, 2009 The NetBSD Foundation, Inc.
@@ -471,9 +471,9 @@
  *	Copy out an array to a syscall arg.
  */
 int
-prop_array_copyout(struct plistref *pref, prop_array_t *arrayp)
+prop_array_copyout(struct plistref *pref, prop_array_t array)
 {
-	return (_prop_object_copyout(pref, (prop_object_t *)arrayp));
+	return (_prop_object_copyout(pref, array));
 }
 
 /*
@@ -481,9 +481,9 @@
  *	Copy out a dictionary to a syscall arg.
  */
 int
-prop_dictionary_copyout(struct plistref *pref, prop_dictionary_t *dictp)
+prop_dictionary_copyout(struct plistref *pref, prop_dictionary_t dict)
 {
-	return (_prop_object_copyout(pref, (prop_object_t *)dictp));
+	return (_prop_object_copyout(pref, dict));
 }
 
 static int



CVS commit: src/common/lib/libprop

2011-01-20 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Thu Jan 20 10:48:37 UTC 2011

Modified Files:
src/common/lib/libprop: prop_send_syscall.3

Log Message:
Typos, wording.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/common/lib/libprop/prop_send_syscall.3

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

Modified files:

Index: src/common/lib/libprop/prop_send_syscall.3
diff -u src/common/lib/libprop/prop_send_syscall.3:1.2 src/common/lib/libprop/prop_send_syscall.3:1.3
--- src/common/lib/libprop/prop_send_syscall.3:1.2	Thu Jan 20 10:42:19 2011
+++ src/common/lib/libprop/prop_send_syscall.3	Thu Jan 20 10:48:37 2011
@@ -1,4 +1,4 @@
-.\"	$NetBSD: prop_send_syscall.3,v 1.2 2011/01/20 10:42:19 wiz Exp $
+.\"	$NetBSD: prop_send_syscall.3,v 1.3 2011/01/20 10:48:37 wiz Exp $
 .\"
 .\" Copyright (c) 2006 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -34,9 +34,8 @@
 .Nm prop_array_send_syscall ,
 .Nm prop_array_recv_syscall ,
 .Nm prop_dictionary_send_syscall ,
-.Nm prop_dictionary_recv_syscall ,
-.Nd Helper to send and receive propertly lists to and from the kernel using
-syscall
+.Nm prop_dictionary_recv_syscall
+.Nd send and receive property lists to and from the kernel using syscalls
 .Sh SYNOPSIS
 .In prop/proplib.h
 .Ft bool
@@ -61,7 +60,7 @@
 lists to and from the kernel using
 .Xr syscall 2 .
 .Sh RETURN VALUES
-If successful, functions return true, false otherwise.
+If successful, the functions return true, false otherwise.
 .Sh EXAMPLES
 The following
 .Pq simplified



CVS commit: src/common/lib/libprop

2011-01-20 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Thu Jan 20 10:47:34 UTC 2011

Modified Files:
src/common/lib/libprop: prop_copyin_ioctl.9

Log Message:
Add commas in enumerations.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/common/lib/libprop/prop_copyin_ioctl.9

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

Modified files:

Index: src/common/lib/libprop/prop_copyin_ioctl.9
diff -u src/common/lib/libprop/prop_copyin_ioctl.9:1.8 src/common/lib/libprop/prop_copyin_ioctl.9:1.9
--- src/common/lib/libprop/prop_copyin_ioctl.9:1.8	Wed Jan 19 20:34:23 2011
+++ src/common/lib/libprop/prop_copyin_ioctl.9	Thu Jan 20 10:47:33 2011
@@ -1,4 +1,4 @@
-.\"	$NetBSD: prop_copyin_ioctl.9,v 1.8 2011/01/19 20:34:23 bouyer Exp $
+.\"	$NetBSD: prop_copyin_ioctl.9,v 1.9 2011/01/20 10:47:33 wiz Exp $
 .\"
 .\" Copyright (c) 2006, 2009 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -37,7 +37,7 @@
 .Nm prop_array_copyout ,
 .Nm prop_dictionary_copyin_ioctl ,
 .Nm prop_dictionary_copyout_ioctl ,
-.Nm prop_dictionary_copyin
+.Nm prop_dictionary_copyin ,
 .Nm prop_dictionary_copyout
 .Nd Copy property lists to and from kernel space
 .Sh SYNOPSIS
@@ -79,7 +79,7 @@
 The functions
 .Nm prop_array_copyin ,
 .Nm prop_array_copyout ,
-.Nm prop_dictionary_copyin
+.Nm prop_dictionary_copyin ,
 and
 .Nm prop_dictionary_copyout
 implement the kernel side of a protocol for copying property lists to the



CVS commit: src/common/lib/libprop

2011-01-20 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Thu Jan 20 10:45:11 UTC 2011

Modified Files:
src/common/lib/libprop: prop_send_ioctl.3

Log Message:
Sort sections.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/common/lib/libprop/prop_send_ioctl.3

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

Modified files:

Index: src/common/lib/libprop/prop_send_ioctl.3
diff -u src/common/lib/libprop/prop_send_ioctl.3:1.6 src/common/lib/libprop/prop_send_ioctl.3:1.7
--- src/common/lib/libprop/prop_send_ioctl.3:1.6	Thu Jan 20 10:44:42 2011
+++ src/common/lib/libprop/prop_send_ioctl.3	Thu Jan 20 10:45:10 2011
@@ -1,4 +1,4 @@
-.\"	$NetBSD: prop_send_ioctl.3,v 1.6 2011/01/20 10:44:42 wiz Exp $
+.\"	$NetBSD: prop_send_ioctl.3,v 1.7 2011/01/20 10:45:10 wiz Exp $
 .\"
 .\" Copyright (c) 2006 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -65,32 +65,6 @@
 .Sh RETURN VALUES
 If successful, functions return zero.
 Otherwise, an error number is returned to indicate the error.
-.Sh ERRORS
-.Fn prop_array_send_ioctl
-and
-.Fn prop_dictionary_send_ioctl
-will fail if:
-.Bl -tag -width Er
-.It Bq Er ENOMEM
-Cannot allocate memory
-.It Bq Er ENOTSUP
-Not supported
-.El
-.Pp
-.Fn prop_array_recv_ioctl
-and
-.Fn prop_dictionary_recv_ioctl
-will fail if:
-.Bl -tag -width Er
-.It Bq Er EIO
-Input/output error
-.It Bq Er ENOTSUP
-Not supported
-.El
-.Pp
-In addition to these,
-.Xr ioctl 2
-errors may be returned.
 .Sh EXAMPLES
 The following
 .Pq simplified
@@ -138,6 +112,32 @@
 function combines the send and receive functionality, allowing for
 ioctls that require two-way communication
 .Pq for example to specify arguments for the ioctl operation .
+.Sh ERRORS
+.Fn prop_array_send_ioctl
+and
+.Fn prop_dictionary_send_ioctl
+will fail if:
+.Bl -tag -width Er
+.It Bq Er ENOMEM
+Cannot allocate memory
+.It Bq Er ENOTSUP
+Not supported
+.El
+.Pp
+.Fn prop_array_recv_ioctl
+and
+.Fn prop_dictionary_recv_ioctl
+will fail if:
+.Bl -tag -width Er
+.It Bq Er EIO
+Input/output error
+.It Bq Er ENOTSUP
+Not supported
+.El
+.Pp
+In addition to these,
+.Xr ioctl 2
+errors may be returned.
 .Sh SEE ALSO
 .Xr prop_array 3 ,
 .Xr prop_dictionary 3 ,



CVS commit: src/common/lib/libprop

2011-01-20 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Thu Jan 20 10:44:42 UTC 2011

Modified Files:
src/common/lib/libprop: prop_number.3 prop_object.3 prop_send_ioctl.3

Log Message:
New sentence, new line. Use Dq.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/common/lib/libprop/prop_number.3
cvs rdiff -u -r1.7 -r1.8 src/common/lib/libprop/prop_object.3
cvs rdiff -u -r1.5 -r1.6 src/common/lib/libprop/prop_send_ioctl.3

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

Modified files:

Index: src/common/lib/libprop/prop_number.3
diff -u src/common/lib/libprop/prop_number.3:1.9 src/common/lib/libprop/prop_number.3:1.10
--- src/common/lib/libprop/prop_number.3:1.9	Wed Apr 30 13:10:46 2008
+++ src/common/lib/libprop/prop_number.3	Thu Jan 20 10:44:42 2011
@@ -1,4 +1,4 @@
-.\"	$NetBSD: prop_number.3,v 1.9 2008/04/30 13:10:46 martin Exp $
+.\"	$NetBSD: prop_number.3,v 1.10 2011/01/20 10:44:42 wiz Exp $
 .\"
 .\" Copyright (c) 2006 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -150,14 +150,20 @@
 if the numeric value object has an unsigned value.
 .It Fn prop_number_integer_value "prop_number_t number"
 Returns the signed integer value of the numeric value object.
-If the supplied object isn't a numeric value, zero is returned. Thus,
-it is not possible to distinguish between ``not a prop_number_t''
-and ``prop_number_t has a value of 0''.
+If the supplied object isn't a numeric value, zero is returned.
+Thus,
+it is not possible to distinguish between
+.Dq not a prop_number_t
+and
+.Dq prop_number_t has a value of 0 .
 .It Fn prop_number_unsigned_integer_value "prop_number_t number"
 Returns the unsigned integer value of the numeric value object.
-If the supplied object isn't a numeric value, zero is returned. Thus,
-it is not possible to distinguish between ``not a prop_number_t''
-and ``prop_number_t has a value of 0''.
+If the supplied object isn't a numeric value, zero is returned.
+Thus,
+it is not possible to distinguish between
+.Dq not a prop_number_t
+and
+.Dq prop_number_t has a value of 0 .
 .It Fn prop_number_equals "prop_number_t num1" "prop_number_t num2"
 Returns
 .Dv true

Index: src/common/lib/libprop/prop_object.3
diff -u src/common/lib/libprop/prop_object.3:1.7 src/common/lib/libprop/prop_object.3:1.8
--- src/common/lib/libprop/prop_object.3:1.7	Wed Apr 30 13:10:46 2008
+++ src/common/lib/libprop/prop_object.3	Thu Jan 20 10:44:42 2011
@@ -1,4 +1,4 @@
-.\"	$NetBSD: prop_object.3,v 1.7 2008/04/30 13:10:46 martin Exp $
+.\"	$NetBSD: prop_object.3,v 1.8 2011/01/20 10:44:42 wiz Exp $
 .\"
 .\" Copyright (c) 2006 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -72,7 +72,8 @@
 Decrement the reference count on an object.
 If the last reference is dropped, the object is freed.
 .It Fn prop_object_type "prop_object_t obj"
-Determine the type of the object.  Objects are one of the following types:
+Determine the type of the object.
+Objects are one of the following types:
 .Pp
 .Bl -tag -width "PROP_TYPE_DICT_KEYSYM" -compact
 .It Dv PROP_TYPE_BOOL

Index: src/common/lib/libprop/prop_send_ioctl.3
diff -u src/common/lib/libprop/prop_send_ioctl.3:1.5 src/common/lib/libprop/prop_send_ioctl.3:1.6
--- src/common/lib/libprop/prop_send_ioctl.3:1.5	Wed Apr 30 13:10:46 2008
+++ src/common/lib/libprop/prop_send_ioctl.3	Thu Jan 20 10:44:42 2011
@@ -1,4 +1,4 @@
-.\"	$NetBSD: prop_send_ioctl.3,v 1.5 2008/04/30 13:10:46 martin Exp $
+.\"	$NetBSD: prop_send_ioctl.3,v 1.6 2011/01/20 10:44:42 wiz Exp $
 .\"
 .\" Copyright (c) 2006 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -63,7 +63,8 @@
 lists to and from the kernel using
 .Xr ioctl 2 .
 .Sh RETURN VALUES
-If successful, functions return zero. Otherwise, an error number is returned to indicate the error.
+If successful, functions return zero.
+Otherwise, an error number is returned to indicate the error.
 .Sh ERRORS
 .Fn prop_array_send_ioctl
 and



CVS commit: src/common/lib/libprop

2011-01-20 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Thu Jan 20 10:42:19 UTC 2011

Modified Files:
src/common/lib/libprop: prop_array_util.3 prop_send_syscall.3

Log Message:
Remove trailing whitespace.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/common/lib/libprop/prop_array_util.3
cvs rdiff -u -r1.1 -r1.2 src/common/lib/libprop/prop_send_syscall.3

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

Modified files:

Index: src/common/lib/libprop/prop_array_util.3
diff -u src/common/lib/libprop/prop_array_util.3:1.3 src/common/lib/libprop/prop_array_util.3:1.4
--- src/common/lib/libprop/prop_array_util.3:1.3	Thu Sep 11 13:15:13 2008
+++ src/common/lib/libprop/prop_array_util.3	Thu Jan 20 10:42:19 2011
@@ -1,4 +1,4 @@
-.\"	$NetBSD: prop_array_util.3,v 1.3 2008/09/11 13:15:13 haad Exp $
+.\"	$NetBSD: prop_array_util.3,v 1.4 2011/01/20 10:42:19 wiz Exp $
 .\"
 .\" Copyright (c) 2006 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -127,12 +127,12 @@
 "uint64_t val"
 .\"
 .Ft bool
-.Fn prop_array_set_int32 "prop_array_t dict" "unsigned int indx" \  
+.Fn prop_array_set_int32 "prop_array_t dict" "unsigned int indx" \
 "int32_t val"
 .Ft bool
-.Fn prop_array_set_uint32 "prop_array_t dict" "unsigned int indx" \ 
+.Fn prop_array_set_uint32 "prop_array_t dict" "unsigned int indx" \
 "uint32_t val"
-.\"   
+.\"
 .Ft bool
 .Fn prop_array_add_int8 "prop_array_t dict" "int8_t val"
 .Ft bool

Index: src/common/lib/libprop/prop_send_syscall.3
diff -u src/common/lib/libprop/prop_send_syscall.3:1.1 src/common/lib/libprop/prop_send_syscall.3:1.2
--- src/common/lib/libprop/prop_send_syscall.3:1.1	Wed Jan 19 20:34:23 2011
+++ src/common/lib/libprop/prop_send_syscall.3	Thu Jan 20 10:42:19 2011
@@ -1,4 +1,4 @@
-.\"	$NetBSD: prop_send_syscall.3,v 1.1 2011/01/19 20:34:23 bouyer Exp $
+.\"	$NetBSD: prop_send_syscall.3,v 1.2 2011/01/20 10:42:19 wiz Exp $
 .\"
 .\" Copyright (c) 2006 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -56,7 +56,7 @@
 .Nm prop_array_recv_syscall ,
 .Nm prop_dictionary_send_syscall ,
 and
-.Nm prop_dictionary_recv_syscall 
+.Nm prop_dictionary_recv_syscall
 functions implement the user space side of a protocol for sending property
 lists to and from the kernel using
 .Xr syscall 2 .



CVS commit: src/share/man/man4/man4.x86

2011-01-20 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Thu Jan 20 08:53:25 UTC 2011

Modified Files:
src/share/man/man4/man4.x86: ichlpcib.4

Log Message:
Note in SYNOPSIS that fwhrng(4) attachs to ichlpcib(4).


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/man/man4/man4.x86/ichlpcib.4

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/man4/man4.x86/ichlpcib.4
diff -u src/share/man/man4/man4.x86/ichlpcib.4:1.2 src/share/man/man4/man4.x86/ichlpcib.4:1.3
--- src/share/man/man4/man4.x86/ichlpcib.4:1.2	Fri Jan 14 06:46:35 2011
+++ src/share/man/man4/man4.x86/ichlpcib.4	Thu Jan 20 08:53:24 2011
@@ -1,4 +1,4 @@
-.\"	$NetBSD: ichlpcib.4,v 1.2 2011/01/14 06:46:35 jruoho Exp $
+.\"	$NetBSD: ichlpcib.4,v 1.3 2011/01/20 08:53:24 jruoho Exp $
 .\"
 .\" Copyright (c) 2004 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd January 14, 2011
+.Dd January 20, 2011
 .Dt ICHLPCIB 4 x86
 .Os
 .Sh NAME
@@ -35,6 +35,7 @@
 .Nd Intel ICH LPC Interface Bridge
 .Sh SYNOPSIS
 .Cd "ichlpcib* at pci? dev ? function ?"
+.Cd "fwhrng*   at ichlpcib?"
 .Cd "hpet0 at ichlpcib?"
 .Cd "isa0  at ichlpcib?"
 .Cd "gpio* at ichlpcib?"
@@ -55,7 +56,7 @@
 A 24-bit timer available to be used by the timecounters framework.
 .It
 SpeedStep.
-In some systems the SpeedStep function is also available, and can be
+In some older systems the SpeedStep function is also available, and can be
 used to switch between high and low frequency (to reduce power consumption)
 via the
 .Li machdep.speedstep_state