Re: CVS commit: [netbsd-6] src/etc/root

2012-03-18 Thread Bernd Ernesti
Hi Havard,

see the issue at the end.

On Sun, Mar 18, 2012 at 01:20:02AM +0400, Aleksej Saushev wrote:
 Manuel Bouyer bou...@netbsd.org writes:
 
  Module Name:src
  Committed By:   bouyer
  Date:   Sat Mar 17 17:22:54 UTC 2012
 
  Modified Files:
  src/etc/root [netbsd-6]: dot.cshrc dot.profile
 
  Log Message:
  Pull up following revision(s) (requested by he in ticket #109):
  etc/root/dot.cshrc: revision 1.23
  etc/root/dot.cshrc: revision 1.24
  etc/root/dot.profile: revision 1.26
  Can't use Bourne shell syntax here... (Even in comments, for PKG_PATH.)
  Point first to 6.0 packages, then to packages for 5.1 or 5.0.
  The latter have reduced usefullness in -current or netbsd-6 until
  we have a compat50 package.
 
 
  To generate a diff of this commit:
  cvs rdiff -u -r1.22 -r1.22.4.1 src/etc/root/dot.cshrc
  cvs rdiff -u -r1.25 -r1.25.4.1 src/etc/root/dot.profile
 
  Please note that diffs are not public domain; they are subject to the
  copyright notices on the relevant files.
 
 
  Modified files:
 ...
  Index: src/etc/root/dot.profile
  diff -u src/etc/root/dot.profile:1.25 src/etc/root/dot.profile:1.25.4.1
  --- src/etc/root/dot.profile:1.25   Tue Jun 21 05:31:29 2011
  +++ src/etc/root/dot.profileSat Mar 17 17:22:54 2012
  @@ -1,11 +1,12 @@
  -#  $NetBSD: dot.profile,v 1.25 2011/06/21 05:31:29 erh Exp $
  +#  $NetBSD: dot.profile,v 1.25.4.1 2012/03/17 17:22:54 bouyer Exp $
   
   export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin
   export 
  PATH=${PATH}:/usr/X11R7/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin
   
   # Uncomment the following line(s) to install binary packages
   # from ftp.NetBSD.org via pkg_add.  (See also pkg_install.conf)
  -#export PKG_PATH=ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname 
  -m)/5.1/All
  +#export PKG_PATH=ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname 
  -m)/6.0/All
  +#export 
  PKG_PATH=${PKG_PATH};ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname
   -m)/5.1/All
   #export 
  PKG_PATH=${PKG_PATH};ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname
   -m)/5.0/All
   
   export BLOCKSIZE=1k
 
 Why were quotes dropped?

You are asking the wrong person. That change come from the HEAD commit
by Havard, this is just the pullup.

Bernd



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

2012-03-18 Thread Jukka Ruohonen
On Sat, Mar 17, 2012 at 10:14:16PM -0400, Christos Zoulas wrote:
 Module Name:  src
 Committed By: christos
 Date: Sun Mar 18 02:14:16 UTC 2012
 
 Modified Files:
   src/tests/lib/librt: t_sched.c
 
 Log Message:
 this should be fixed.

Hmm. But now it fails with the third check:

pid_t p = getpid();   
   
/*
 * IEEE Std 1003.1-2008: if the supplied pid is zero,
 * the parameters for the calling process are returned.
 */
ATF_REQUIRE(sched_getparam(0, s1) == 0);
ATF_REQUIRE(sched_getparam(p, s2) == 0);
[HERE]  ATF_REQUIRE(s1.sched_priority == s2.sched_priority);

- Jukka.


Re: CVS commit: [netbsd-6] src/etc/root

2012-03-18 Thread Aleksej Saushev
  Hello,

Bernd Ernesti net...@lists.veego.de writes:

 Hi Havard,

 see the issue at the end.

 On Sun, Mar 18, 2012 at 01:20:02AM +0400, Aleksej Saushev wrote:
 Manuel Bouyer bou...@netbsd.org writes:
 
  Module Name:   src
  Committed By:  bouyer
  Date:  Sat Mar 17 17:22:54 UTC 2012
 
  Modified Files:
 src/etc/root [netbsd-6]: dot.cshrc dot.profile
 
  Log Message:
  Pull up following revision(s) (requested by he in ticket #109):
 etc/root/dot.cshrc: revision 1.23
 etc/root/dot.cshrc: revision 1.24
 etc/root/dot.profile: revision 1.26
  Can't use Bourne shell syntax here... (Even in comments, for PKG_PATH.)
  Point first to 6.0 packages, then to packages for 5.1 or 5.0.
  The latter have reduced usefullness in -current or netbsd-6 until
  we have a compat50 package.
 
 
  To generate a diff of this commit:
  cvs rdiff -u -r1.22 -r1.22.4.1 src/etc/root/dot.cshrc
  cvs rdiff -u -r1.25 -r1.25.4.1 src/etc/root/dot.profile
 
  Please note that diffs are not public domain; they are subject to the
  copyright notices on the relevant files.
 
 
  Modified files:
 ...
  Index: src/etc/root/dot.profile
  diff -u src/etc/root/dot.profile:1.25 src/etc/root/dot.profile:1.25.4.1
  --- src/etc/root/dot.profile:1.25  Tue Jun 21 05:31:29 2011
  +++ src/etc/root/dot.profile   Sat Mar 17 17:22:54 2012
  @@ -1,11 +1,12 @@
  -# $NetBSD: dot.profile,v 1.25 2011/06/21 05:31:29 erh Exp $
  +# $NetBSD: dot.profile,v 1.25.4.1 2012/03/17 17:22:54 bouyer Exp $
   
   export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin
   export 
  PATH=${PATH}:/usr/X11R7/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin
   
   # Uncomment the following line(s) to install binary packages
   # from ftp.NetBSD.org via pkg_add.  (See also pkg_install.conf)
  -#export PKG_PATH=ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname 
  -m)/5.1/All
  +#export PKG_PATH=ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname 
  -m)/6.0/All
  +#export 
  PKG_PATH=${PKG_PATH};ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname
   -m)/5.1/All
   #export 
  PKG_PATH=${PKG_PATH};ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname
   -m)/5.0/All
   
   export BLOCKSIZE=1k
 
 Why were quotes dropped?

 You are asking the wrong person. That change come from the HEAD commit
 by Havard, this is just the pullup.

I understand it. I must have missed the original commit mail.

I'm just a bit puzzled why it was changed to a different style.


-- 
HE CE3OH...



Re: CVS commit: src/sbin/ifconfig

2012-03-18 Thread Julio Merino

On 3/18/12 1:53 AM, Jukka Ruohonen wrote:

On Fri, Mar 16, 2012 at 10:25:08PM -0400, Christos Zoulas wrote:

Module Name:src
Committed By:   christos
Date:   Sat Mar 17 02:25:08 UTC 2012

Modified Files:
src/sbin/ifconfig: af_inetany.c

Log Message:
PR/43141: Tobias Nygren: Print an error on unknown interfaces.


Now this is trival and it is fixed. But I guess there is a bug here in ATF.
The test only checks that the exit code is not zero:

 atf_check -s not-exit:0 ifconfig nonexistent0 1.2.3.4/24

But why is stderr being involved?


If you really want to ignore stderr in the test, pass -e ignore to 
atf_check.  The default is -o empty -e empty.


Now, the question is: do you really want to ignore the message, or do 
you want to validate that the appropriate error message is printed?  If 
the later (which should be the preferred way), -e inline:'foo bar\n' 
or -e match:'foo bar' or -e file:experr (with experr being 
pre-populated with the expected message) will do the job.


Re: CVS commit: src/sbin/ifconfig

2012-03-18 Thread Jukka Ruohonen
On Sun, Mar 18, 2012 at 11:57:08PM +0900, Julio Merino wrote:
 But why is stderr being involved?
 
 If you really want to ignore stderr in the test, pass -e ignore to 
 atf_check.  The default is -o empty -e empty.
 
 Now, the question is: do you really want to ignore the message, or do 
 you want to validate that the appropriate error message is printed?  If 
 the later (which should be the preferred way), -e inline:'foo bar\n' 
 or -e match:'foo bar' or -e file:experr (with experr being 
 pre-populated with the expected message) will do the job.

Thanks; this was pointed out already.

But I have a related question. Supposedly ATF uses something like freopen(3)
to capture the output in the standard streams. Now consider this from one
test I just added:

$ find /etc -type f -exit
$ echo $?
0

All good; exited without nothing printed to stderr and the status is zero.
But this:

atf_check -o ignore \
-s exit:0 -x find /etc -type f -exit

yields

tc-so:Executing command [ /bin/sh -c find /etc -type f -exit ]
tc-se:Fail: incorrect exit status: 1, expected: 0
tc-se:stdout:
tc-se:
tc-se:stderr:
tc-se:find: fts_read: Inappropriate ioctl for device
tc-se:
tc-end: 1332083101.965143, exit, failed, atf-check failed;
see the output of the test for details

So what is going on here? Likewise

$ find / -exit 99
$ echo $?
99

contra

atf_check -o ignore -e ignore -s exit:99 -x find / -exit 99

and

tc-so:Executing command [ /bin/sh -c find / -exit 99 ]
tc-se:Fail: incorrect exit status: 1, expected: 99
tc-se:stdout:
tc-se:
tc-se:stderr:
tc-se:find: fts_read: Inappropriate ioctl for device
tc-se:
tc-end: 1332083172.374247, exit_status, failed, atf-check failed;
see the output of the test for details

- Jukka.


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

2012-03-18 Thread Jukka Ruohonen
On Sat, Mar 17, 2012 at 10:04:40PM -0400, Christos Zoulas wrote:
 Module Name:  src
 Committed By: christos
 Date: Sun Mar 18 02:04:40 UTC 2012
 
 Modified Files:
   src/lib/libc/sys: sched.c
 
 Log Message:
 fail as the man page says sched_rr_get_interval should.

 #include string.h
 #include unistd.h
 #include errno.h
 #include sched.h
+#include signal.h
 #include sys/param.h
 #include sys/types.h

@@ -123,6 +124,8 @@ int
 sched_rr_get_interval(pid_t pid, struct timespec *interval)
 {

+   if (pid  kill(pid, 0) == -1)
+   return -1;
interval-tv_sec = 0;
interval-tv_nsec = sysconf(_SC_SCHED_RT_TS) * 1000;
return 0;

So to return to this: surely this can't be right?

- Jukka.


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

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 06:20:52 UTC 2012

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

Log Message:
Get rid of the weird macros.


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

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

Modified files:

Index: src/tests/lib/libc/sys/t_lwp_ctl.c
diff -u src/tests/lib/libc/sys/t_lwp_ctl.c:1.1 src/tests/lib/libc/sys/t_lwp_ctl.c:1.2
--- src/tests/lib/libc/sys/t_lwp_ctl.c:1.1	Sat Mar 17 17:23:34 2012
+++ src/tests/lib/libc/sys/t_lwp_ctl.c	Sun Mar 18 06:20:51 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: t_lwp_ctl.c,v 1.1 2012/03/17 17:23:34 jruoho Exp $ */
+/* $NetBSD: t_lwp_ctl.c,v 1.2 2012/03/18 06:20:51 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -29,18 +29,15 @@
 #include sys/cdefs.h
 __COPYRIGHT(@(#) Copyright (c) 2008\
  The NetBSD Foundation, inc. All rights reserved.);
-__RCSID($NetBSD: t_lwp_ctl.c,v 1.1 2012/03/17 17:23:34 jruoho Exp $);
+__RCSID($NetBSD: t_lwp_ctl.c,v 1.2 2012/03/18 06:20:51 jruoho Exp $);
 
 #include sys/lwpctl.h
 
+#include atf-c.h
 #include lwp.h
 #include stdio.h
 #include time.h
 
-#include atf-c.h
-
-#include ../../../h_macros.h
-
 ATF_TC(lwpctl_counter);
 ATF_TC_HEAD(lwpctl_counter, tc)
 {
@@ -53,14 +50,16 @@ ATF_TC_BODY(lwpctl_counter, tc)
 	struct timespec ts;
 	int ctr1, ctr2;
 
-	RL(_lwp_ctl(LWPCTL_FEATURE_PCTR, lc));
+	ATF_REQUIRE(_lwp_ctl(LWPCTL_FEATURE_PCTR, lc) == 0);
 
 	/* Ensure that preemption is reported. */
 	ctr1 = lc-lc_pctr;
 	(void)printf(pctr = %d\n, ctr1);
 	ts.tv_nsec = 10*100;
 	ts.tv_sec = 0;
-	RL(nanosleep(ts, 0));
+
+	ATF_REQUIRE(nanosleep(ts, 0) != -1);
+
 	ctr2 = lc-lc_pctr;
 	(void)printf(pctr = %d\n, ctr2);
 



CVS commit: src/tests/lib/libc

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 07:00:52 UTC 2012

Modified Files:
src/tests/lib/libc/gen: t_nice.c t_syslog.c
src/tests/lib/libc/stdio: t_printf.c t_scanf.c
src/tests/lib/libc/stdlib: t_strtod.c
src/tests/lib/libc/sys: t_dup.c t_fsync.c t_kevent.c t_listen.c
t_mknod.c t_poll.c t_select.c t_timer_create.c

Log Message:
Move the references to PRs from code comments to the test description. Once
ATF has the ability to output the metadata in the HTML reports, it should be
easy to traverse between releng and gnats -reports via links.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libc/gen/t_nice.c
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/gen/t_syslog.c
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libc/stdio/t_printf.c
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/stdio/t_scanf.c
cvs rdiff -u -r1.27 -r1.28 src/tests/lib/libc/stdlib/t_strtod.c
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libc/sys/t_dup.c
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/sys/t_fsync.c \
src/tests/lib/libc/sys/t_kevent.c src/tests/lib/libc/sys/t_mknod.c
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/sys/t_listen.c \
src/tests/lib/libc/sys/t_timer_create.c
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/sys/t_poll.c \
src/tests/lib/libc/sys/t_select.c

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

Modified files:

Index: src/tests/lib/libc/gen/t_nice.c
diff -u src/tests/lib/libc/gen/t_nice.c:1.7 src/tests/lib/libc/gen/t_nice.c:1.8
--- src/tests/lib/libc/gen/t_nice.c:1.7	Sun May  1 06:42:29 2011
+++ src/tests/lib/libc/gen/t_nice.c	Sun Mar 18 07:00:51 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_nice.c,v 1.7 2011/05/01 06:42:29 jruoho Exp $ */
+/*	$NetBSD: t_nice.c,v 1.8 2012/03/18 07:00:51 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: t_nice.c,v 1.7 2011/05/01 06:42:29 jruoho Exp $);
+__RCSID($NetBSD: t_nice.c,v 1.8 2012/03/18 07:00:51 jruoho Exp $);
 
 #include sys/resource.h
 #include sys/wait.h
@@ -63,7 +63,8 @@ threadfunc(void *arg)
 ATF_TC(nice_err);
 ATF_TC_HEAD(nice_err, tc)
 {
-	atf_tc_set_md_var(tc, descr, Test nice(3) for invalid parameters);
+	atf_tc_set_md_var(tc, descr,
+	Test nice(3) for invalid parameters (PR lib/42587));
 	atf_tc_set_md_var(tc, require.user, unprivileged);
 }
 
@@ -74,8 +75,7 @@ ATF_TC_BODY(nice_err, tc)
 	/*
 	 * The call should fail with EPERM if the
 	 * supplied parameter is negative and the
-	 * caller does not have privileges; see
-	 * the closed PR lib/42587.
+	 * caller does not have privileges.
 	 */
 	for (i = -20; i  0; i++) {
 

Index: src/tests/lib/libc/gen/t_syslog.c
diff -u src/tests/lib/libc/gen/t_syslog.c:1.1 src/tests/lib/libc/gen/t_syslog.c:1.2
--- src/tests/lib/libc/gen/t_syslog.c:1.1	Thu Jul  7 10:02:53 2011
+++ src/tests/lib/libc/gen/t_syslog.c	Sun Mar 18 07:00:51 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_syslog.c,v 1.1 2011/07/07 10:02:53 jruoho Exp $ */
+/*	$NetBSD: t_syslog.c,v 1.2 2012/03/18 07:00:51 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -37,16 +37,13 @@ ATF_TC(syslog_pthread);
 ATF_TC_HEAD(syslog_pthread, tc)
 {
 
-	atf_tc_set_md_var(tc, descr, Test that syslog works at all);
+	atf_tc_set_md_var(tc, descr, Test that syslog(3) 
+	works when linked to pthread(3) (PR lib/44248));
 	atf_tc_set_md_var(tc, timeout, 2);
 }
 
 ATF_TC_BODY(syslog_pthread, tc)
 {
-
-	/*
-	 * See the old PR lib/44248; syslog(3) fails with pthread(3).
-	 */
 	syslog(LOG_DEBUG, from tests/lib/libc/gen/t_syslog);
 }
 

Index: src/tests/lib/libc/stdio/t_printf.c
diff -u src/tests/lib/libc/stdio/t_printf.c:1.5 src/tests/lib/libc/stdio/t_printf.c:1.6
--- src/tests/lib/libc/stdio/t_printf.c:1.5	Thu Mar 15 01:44:44 2012
+++ src/tests/lib/libc/stdio/t_printf.c	Sun Mar 18 07:00:51 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: t_printf.c,v 1.5 2012/03/15 01:44:44 joerg Exp $ */
+/* $NetBSD: t_printf.c,v 1.6 2012/03/18 07:00:51 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -137,8 +137,8 @@ ATF_TC_BODY(snprintf_float, tc)
 ATF_TC(sprintf_zeropad);
 ATF_TC_HEAD(sprintf_zeropad, tc)
 {
- 
-	atf_tc_set_md_var(tc, descr, output format zero padding);
+	atf_tc_set_md_var(tc, descr,
+	Test output format zero padding (PR lib/44113));
 }
 
 ATF_TC_BODY(sprintf_zeropad, tc)
@@ -150,7 +150,7 @@ ATF_TC_BODY(sprintf_zeropad, tc)
 
 	/* ieeefp */
 #ifndef __vax__
-	/* PR/44113: printf(3) should ignore zero padding for nan/inf */
+	/* printf(3) should ignore zero padding for nan/inf */
 	ATF_CHECK(sprintf(str, %010f, NAN) == 10);
 	ATF_REQUIRE_STREQ(str,nan);
 	ATF_CHECK(sprintf(str, %010f, INFINITY) == 10);

Index: src/tests/lib/libc/stdio/t_scanf.c
diff -u src/tests/lib/libc/stdio/t_scanf.c:1.2 src/tests/lib/libc/stdio/t_scanf.c:1.3
--- src/tests/lib/libc/stdio/t_scanf.c:1.2	Thu 

CVS commit: src/tests

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 07:14:08 UTC 2012

Modified Files:
src/tests/include/sys: t_types.c
src/tests/lib/libc/gen: t_dir.c t_humanize_number.c t_siginfo.c
src/tests/lib/libc/termios: t_tcsetpgrp.c
src/tests/lib/librt: t_sched.c
src/tests/lib/libutil: t_parsedate.c

Log Message:
To be on the safe side, use the category/number notation when referring to
PRs (otherwise third-party sed-scripts might miss the references). Also
remove white-space.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/include/sys/t_types.c
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/gen/t_dir.c
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libc/gen/t_humanize_number.c
cvs rdiff -u -r1.13 -r1.14 src/tests/lib/libc/gen/t_siginfo.c
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/termios/t_tcsetpgrp.c
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/librt/t_sched.c
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libutil/t_parsedate.c

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

Modified files:

Index: src/tests/include/sys/t_types.c
diff -u src/tests/include/sys/t_types.c:1.3 src/tests/include/sys/t_types.c:1.4
--- src/tests/include/sys/t_types.c:1.3	Sat Mar 17 21:31:29 2012
+++ src/tests/include/sys/t_types.c	Sun Mar 18 07:14:08 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_types.c,v 1.3 2012/03/17 21:31:29 christos Exp $ */
+/*	$NetBSD: t_types.c,v 1.4 2012/03/18 07:14:08 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: t_types.c,v 1.3 2012/03/17 21:31:29 christos Exp $);
+__RCSID($NetBSD: t_types.c,v 1.4 2012/03/18 07:14:08 jruoho Exp $);
 
 #include sys/types.h
 
@@ -77,7 +77,7 @@ ATF_TC(types_signed);
 ATF_TC_HEAD(types_signed, tc)
 {
 	atf_tc_set_md_var(tc, descr, Signed types(3)
-	 PR/44847);
+	 (PR standards/44847));
 }
 
 ATF_TC_BODY(types_signed, tc)
@@ -108,7 +108,8 @@ ATF_TC_BODY(types_signed, tc)
 ATF_TC(types_unsigned);
 ATF_TC_HEAD(types_unsigned, tc)
 {
-	atf_tc_set_md_var(tc, descr, Unsigned types(3));
+	atf_tc_set_md_var(tc, descr, Unsigned types(3)
+		 (PR standards/18067));
 }
 
 ATF_TC_BODY(types_unsigned, tc)
@@ -122,19 +123,14 @@ ATF_TC_BODY(types_unsigned, tc)
 	fb = 0;
 	ff = 0;
 	ino = 0;
+	lim = 0;
 	size = 0;
 
 	ATF_CHECK((fb - 1)  0);
 	ATF_CHECK((ff - 1)  0);
 	ATF_CHECK((ino - 1)  0);
-	ATF_CHECK((size - 1)  0);
-
-	/*
-	 * Test also rlim_t; PR standards/18067.
-	 */
-	lim = 0;
-
 	ATF_CHECK((lim - 1)  0);
+	ATF_CHECK((size - 1)  0);
 }
 
 ATF_TP_ADD_TCS(tp)

Index: src/tests/lib/libc/gen/t_dir.c
diff -u src/tests/lib/libc/gen/t_dir.c:1.4 src/tests/lib/libc/gen/t_dir.c:1.5
--- src/tests/lib/libc/gen/t_dir.c:1.4	Thu Jul  7 09:49:59 2011
+++ src/tests/lib/libc/gen/t_dir.c	Sun Mar 18 07:14:08 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: t_dir.c,v 1.4 2011/07/07 09:49:59 jruoho Exp $ */
+/* $NetBSD: t_dir.c,v 1.5 2012/03/18 07:14:08 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -43,8 +43,8 @@ ATF_TC(seekdir_basic);
 ATF_TC_HEAD(seekdir_basic, tc)
 {
 
-	atf_tc_set_md_var(tc, descr,
-	Check telldir(3) and seekdir(3) for correct behavior (PR/24324));
+	atf_tc_set_md_var(tc, descr, Check telldir(3) and seekdir(3) 
+	for correct behavior (PR lib/24324));
 }
 
 ATF_TC_BODY(seekdir_basic, tc)
@@ -116,7 +116,7 @@ ATF_TC_HEAD(telldir_leak, tc)
 {
 
 	atf_tc_set_md_var(tc, descr,
-	Check telldir(3) for memory leakage (PR/24324));
+	Check telldir(3) for memory leakage (PR lib/24324));
 }
 
 ATF_TC_BODY(telldir_leak, tc)

Index: src/tests/lib/libc/gen/t_humanize_number.c
diff -u src/tests/lib/libc/gen/t_humanize_number.c:1.7 src/tests/lib/libc/gen/t_humanize_number.c:1.8
--- src/tests/lib/libc/gen/t_humanize_number.c:1.7	Sat Mar 17 20:06:46 2012
+++ src/tests/lib/libc/gen/t_humanize_number.c	Sun Mar 18 07:14:08 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_humanize_number.c,v 1.7 2012/03/17 20:06:46 christos Exp $	*/
+/*	$NetBSD: t_humanize_number.c,v 1.8 2012/03/18 07:14:08 jruoho Exp $	*/
 
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
@@ -247,7 +247,8 @@ ATF_TC(humanize_number_big);
 ATF_TC_HEAD(humanize_number_big, tc)
 {
 
-	atf_tc_set_md_var(tc, descr, Test humanize big numbers (PR/44097));
+	atf_tc_set_md_var(tc, descr, Test humanize 
+	big numbers (PR lib/44097));
 }
 
 ATF_TC_BODY(humanize_number_big, tc)

Index: src/tests/lib/libc/gen/t_siginfo.c
diff -u src/tests/lib/libc/gen/t_siginfo.c:1.13 src/tests/lib/libc/gen/t_siginfo.c:1.14
--- src/tests/lib/libc/gen/t_siginfo.c:1.13	Sat Mar 17 20:10:08 2012
+++ src/tests/lib/libc/gen/t_siginfo.c	Sun Mar 18 07:14:08 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: t_siginfo.c,v 1.13 2012/03/17 20:10:08 christos Exp $ */
+/* $NetBSD: t_siginfo.c,v 1.14 2012/03/18 07:14:08 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@ sig_debug(int 

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

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 07:33:58 UTC 2012

Modified Files:
src/tests/lib/libc/time: t_mktime.c

Log Message:
Add a test case for the old NetBSD 2.0 era PR lib/28324.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/time/t_mktime.c

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

Modified files:

Index: src/tests/lib/libc/time/t_mktime.c
diff -u src/tests/lib/libc/time/t_mktime.c:1.4 src/tests/lib/libc/time/t_mktime.c:1.5
--- src/tests/lib/libc/time/t_mktime.c:1.4	Sat Jan  7 15:05:22 2012
+++ src/tests/lib/libc/time/t_mktime.c	Sun Mar 18 07:33:58 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mktime.c,v 1.4 2012/01/07 15:05:22 martin Exp $ */
+/* $NetBSD: t_mktime.c,v 1.5 2012/03/18 07:33:58 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -33,11 +33,32 @@
 #include string.h
 #include time.h
 
-ATF_TC(mktime_negyear);
+ATF_TC(localtime_r_gmt);
+ATF_TC_HEAD(localtime_r_gmt, tc)
+{
+	atf_tc_set_md_var(tc, descr, Test that localtime_r(3) 
+	returns localtime, not GMT (PR lib/28324));
+}
 
-ATF_TC_HEAD(mktime_negyear, tc)
+ATF_TC_BODY(localtime_r_gmt, tc)
 {
+	struct tm *t;
+	struct tm tt;
+	time_t x;
+
+	x = time(NULL);
+	localtime_r(x, tt);
+	t = localtime(x);
+
+	if (t-tm_sec != tt.tm_sec || t-tm_min != tt.tm_min ||
+	t-tm_hour != tt.tm_hour || t-tm_mday != tt.tm_mday)
+		atf_tc_fail(inconsistencies between 
+		localtime(3) and localtime_r(3));
+}
 
+ATF_TC(mktime_negyear);
+ATF_TC_HEAD(mktime_negyear, tc)
+{
 	atf_tc_set_md_var(tc, descr, Test mktime(3) with negative year);
 }
 
@@ -55,10 +76,8 @@ ATF_TC_BODY(mktime_negyear, tc)
 }
 
 ATF_TC(timegm_epoch);
-
 ATF_TC_HEAD(timegm_epoch, tc)
 {
-
 	atf_tc_set_md_var(tc, descr, Test timegm(3) close to the epoch);
 }
 
@@ -128,6 +147,7 @@ ATF_TC_BODY(timegm_epoch, tc)
 ATF_TP_ADD_TCS(tp)
 {
 
+	ATF_TP_ADD_TC(tp, localtime_r_gmt);
 	ATF_TP_ADD_TC(tp, mktime_negyear);
 	ATF_TP_ADD_TC(tp, timegm_epoch);
 



CVS commit: src/regress/lib/libc

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 07:54:00 UTC 2012

Modified Files:
src/regress/lib/libc: Makefile
Removed Files:
src/regress/lib/libc/int_fmtio: Makefile fmtio_check.c

Log Message:
The inttypes(3) check has already been moved to ATF.


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/regress/lib/libc/Makefile
cvs rdiff -u -r1.4 -r0 src/regress/lib/libc/int_fmtio/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/int_fmtio/fmtio_check.c

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

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.80 src/regress/lib/libc/Makefile:1.81
--- src/regress/lib/libc/Makefile:1.80	Sat Apr  9 17:55:51 2011
+++ src/regress/lib/libc/Makefile	Sun Mar 18 07:54:00 2012
@@ -1,6 +1,6 @@
-#	$NetBSD: Makefile,v 1.80 2011/04/09 17:55:51 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.81 2012/03/18 07:54:00 jruoho Exp $
 
-SUBDIR+= citrus divrem int_fmtio
+SUBDIR+= citrus divrem
 
 .include bsd.own.mk
 .include bsd.sys.mk



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

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 08:13:57 UTC 2012

Modified Files:
src/tests/lib/libc/stdio: t_printf.c

Log Message:
Verify that PR lib/22019 is no longer an issue.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libc/stdio/t_printf.c

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

Modified files:

Index: src/tests/lib/libc/stdio/t_printf.c
diff -u src/tests/lib/libc/stdio/t_printf.c:1.6 src/tests/lib/libc/stdio/t_printf.c:1.7
--- src/tests/lib/libc/stdio/t_printf.c:1.6	Sun Mar 18 07:00:51 2012
+++ src/tests/lib/libc/stdio/t_printf.c	Sun Mar 18 08:13:57 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: t_printf.c,v 1.6 2012/03/18 07:00:51 jruoho Exp $ */
+/* $NetBSD: t_printf.c,v 1.7 2012/03/18 08:13:57 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -36,11 +36,32 @@
 #include time.h
 #include stdlib.h
 
+ATF_TC(snprintf_c99);
+ATF_TC_HEAD(snprintf_c99, tc)
+{
+
+	atf_tc_set_md_var(tc, descr,
+	Test printf(3) C99 conformance (PR lib/22019));
+}
+
+ATF_TC_BODY(snprintf_c99, tc)
+{
+	char s[4];
+
+	(void)memset(s, '\0', sizeof(s));
+	(void)snprintf(s, sizeof(s), %#.o, 0);
+	(void)printf(printf = %#.o\n, 0);
+	(void)fprintf(stderr, snprintf = %s, s);
+
+	ATF_REQUIRE(strlen(s) == 1);
+	ATF_REQUIRE(s[0] == '0');
+}
+
 ATF_TC(snprintf_dotzero);
 ATF_TC_HEAD(snprintf_dotzero, tc)
 {
 
-	atf_tc_set_md_var(tc, descr, \
+	atf_tc_set_md_var(tc, descr,
 	PR lib/32951: %%.0f formats (0.0,0.5] to \0.\);
 }
 
@@ -161,6 +182,7 @@ ATF_TC_BODY(sprintf_zeropad, tc)
 ATF_TP_ADD_TCS(tp)
 {
 
+	ATF_TP_ADD_TC(tp, snprintf_c99);
 	ATF_TP_ADD_TC(tp, snprintf_dotzero);
 	ATF_TP_ADD_TC(tp, snprintf_posarg);
 	ATF_TP_ADD_TC(tp, snprintf_posarg_width);



CVS commit: src

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 08:52:08 UTC 2012

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/lib/libc/gen: Makefile
Added Files:
src/tests/lib/libc/gen: t_fnmatch.c

Log Message:
Add a case for PR lib/41558. It is unclear whether this is a bug, but at
least it is documented now. Probably it would be better to follow Linux,
where the test case does not fail.


To generate a diff of this commit:
cvs rdiff -u -r1.446 -r1.447 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.35 -r1.36 src/tests/lib/libc/gen/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/lib/libc/gen/t_fnmatch.c

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

Modified files:

Index: src/distrib/sets/lists/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.446 src/distrib/sets/lists/tests/mi:1.447
--- src/distrib/sets/lists/tests/mi:1.446	Sat Mar 17 17:23:34 2012
+++ src/distrib/sets/lists/tests/mi	Sun Mar 18 08:52:07 2012
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.446 2012/03/17 17:23:34 jruoho Exp $
+# $NetBSD: mi,v 1.447 2012/03/18 08:52:07 jruoho Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -379,6 +379,7 @@
 ./usr/libdata/debug/usr/tests/lib/libc/gen/t_cpuset.debug		tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libc/gen/t_dir.debug			tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libc/gen/t_fmtcheck.debug		tests-lib-debug		debug,atf
+./usr/libdata/debug/usr/tests/lib/libc/gen/t_fnmatch.debug		tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libc/gen/t_fpclassify.debug		tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libc/gen/t_fpsetmask.debug		tests-lib-debug		debug,atf
 ./usr/libdata/debug/usr/tests/lib/libc/gen/t_fpsetround.debug		tests-lib-debug		debug,atf
@@ -2016,6 +2017,7 @@
 ./usr/tests/lib/libc/gen/t_cpuset		tests-lib-tests		atf
 ./usr/tests/lib/libc/gen/t_dir			tests-lib-tests		atf
 ./usr/tests/lib/libc/gen/t_fmtcheck		tests-lib-tests		atf
+./usr/tests/lib/libc/gen/t_fnmatch		tests-lib-tests		atf
 ./usr/tests/lib/libc/gen/t_fpclassify		tests-lib-tests		atf
 ./usr/tests/lib/libc/gen/t_fpsetmask		tests-lib-tests		atf
 ./usr/tests/lib/libc/gen/t_fpsetround		tests-lib-tests		atf

Index: src/tests/lib/libc/gen/Makefile
diff -u src/tests/lib/libc/gen/Makefile:1.35 src/tests/lib/libc/gen/Makefile:1.36
--- src/tests/lib/libc/gen/Makefile:1.35	Sat Mar 17 16:40:14 2012
+++ src/tests/lib/libc/gen/Makefile	Sun Mar 18 08:52:07 2012
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2012/03/17 16:40:14 jruoho Exp $
+# $NetBSD: Makefile,v 1.36 2012/03/18 08:52:07 jruoho Exp $
 
 .include bsd.own.mk
 
@@ -13,6 +13,7 @@ TESTS_C+=	t_closefrom
 TESTS_C+=	t_cpuset
 TESTS_C+=	t_dir
 TESTS_C+=	t_fmtcheck
+TESTS_C+=	t_fnmatch
 TESTS_C+=	t_fpclassify
 TESTS_C+=	t_fpsetmask
 TESTS_C+=	t_fpsetround

Added files:

Index: src/tests/lib/libc/gen/t_fnmatch.c
diff -u /dev/null src/tests/lib/libc/gen/t_fnmatch.c:1.1
--- /dev/null	Sun Mar 18 08:52:08 2012
+++ src/tests/lib/libc/gen/t_fnmatch.c	Sun Mar 18 08:52:07 2012
@@ -0,0 +1,65 @@
+/* $NetBSD: t_fnmatch.c,v 1.1 2012/03/18 08:52:07 jruoho Exp $ */
+
+/*-
+ * Copyright (c) 2012 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Jukka Ruohonen.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+#include sys/cdefs.h
+__RCSID($NetBSD: t_fnmatch.c,v 1.1 2012/03/18 08:52:07 jruoho Exp $);
+
+#include atf-c.h
+#include fnmatch.h
+#include stdio.h
+
+/*
+ * TODO: Test basic functionality of fnmatch(3) too.
+ */
+
+ATF_TC(fnmatch_backslashes);

CVS commit: src/tests/sbin/newfs

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 09:31:50 UTC 2012

Modified Files:
src/tests/sbin/newfs: quotas_common.sh t_enable_quotas.sh

Log Message:
Add missing copyright and remove white space.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/sbin/newfs/quotas_common.sh \
src/tests/sbin/newfs/t_enable_quotas.sh

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

Modified files:

Index: src/tests/sbin/newfs/quotas_common.sh
diff -u src/tests/sbin/newfs/quotas_common.sh:1.2 src/tests/sbin/newfs/quotas_common.sh:1.3
--- src/tests/sbin/newfs/quotas_common.sh:1.2	Sun Mar  6 17:08:41 2011
+++ src/tests/sbin/newfs/quotas_common.sh	Sun Mar 18 09:31:50 2012
@@ -1,4 +1,29 @@
-# $NetBSD: quotas_common.sh,v 1.2 2011/03/06 17:08:41 bouyer Exp $ 
+# $NetBSD: quotas_common.sh,v 1.3 2012/03/18 09:31:50 jruoho Exp $
+
+#  Copyright (c) 2011 Manuel Bouyer
+#  All rights reserved.
+#
+#  Redistribution and use in source and binary forms, with or without
+#  modification, are permitted provided that the following conditions
+#  are met:
+#  1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#  2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+#  THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+#  ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+#  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+#  PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+#  BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+#  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+#  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+#  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+#  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+#  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+#  POSSIBILITY OF SUCH DAMAGE.
+#
 
 create_with_quotas()
 {
@@ -21,7 +46,7 @@ test_case()
 	local name=${1}; shift
 	local check_function=${1}; shift
 	local descr=${1}; shift
-	
+
 	atf_test_case ${name}
 
 	eval ${name}_head() { \
Index: src/tests/sbin/newfs/t_enable_quotas.sh
diff -u src/tests/sbin/newfs/t_enable_quotas.sh:1.2 src/tests/sbin/newfs/t_enable_quotas.sh:1.3
--- src/tests/sbin/newfs/t_enable_quotas.sh:1.2	Sun Mar  6 17:08:41 2011
+++ src/tests/sbin/newfs/t_enable_quotas.sh	Sun Mar 18 09:31:50 2012
@@ -1,8 +1,8 @@
-# $NetBSD: t_enable_quotas.sh,v 1.2 2011/03/06 17:08:41 bouyer Exp $ 
+# $NetBSD: t_enable_quotas.sh,v 1.3 2012/03/18 09:31:50 jruoho Exp $
 #
 #  Copyright (c) 2011 Manuel Bouyer
 #  All rights reserved.
-# 
+#
 #  Redistribution and use in source and binary forms, with or without
 #  modification, are permitted provided that the following conditions
 #  are met:
@@ -11,7 +11,7 @@
 #  2. Redistributions in binary form must reproduce the above copyright
 # notice, this list of conditions and the following disclaimer in the
 # documentation and/or other materials provided with the distribution.
-# 
+#
 #  THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
 #  ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
 #  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
@@ -39,7 +39,7 @@ done
 quota_enabled_single()
 {
 	create_with_quotas $*
-	
+
 # check that the quota inode creation didn't corrupt the filesystem
 	atf_check -s exit:0 -o match:already clean -o match:2 files \
 		-o match:Phase 6 - Check Quotas \
@@ -49,7 +49,7 @@ quota_enabled_single()
 quota_enabled_both()
 {
 	create_with_quotas $*
-	
+
 # check that the quota inode creation didn't corrupt the filesystem
 	atf_check -s exit:0 -o match:already clean -o match:3 files \
 		-o match:Phase 6 - Check Quotas \



CVS commit: src/tests

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 09:46:50 UTC 2012

Modified Files:
src/tests/kernel: t_filedesc.c t_rnd.c
src/tests/net/icmp: t_forward.c
src/tests/net/if_loop: t_pr.c
src/tests/sbin/ifconfig: t_nonexistent.sh
src/tests/sbin/sysctl: t_perm.sh
src/tests/usr.bin/unifdef: t_basic.sh

Log Message:
Move more PR references from comments to ATF's descr.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/kernel/t_filedesc.c \
src/tests/kernel/t_rnd.c
cvs rdiff -u -r1.7 -r1.8 src/tests/net/icmp/t_forward.c
cvs rdiff -u -r1.6 -r1.7 src/tests/net/if_loop/t_pr.c
cvs rdiff -u -r1.3 -r1.4 src/tests/sbin/ifconfig/t_nonexistent.sh
cvs rdiff -u -r1.5 -r1.6 src/tests/sbin/sysctl/t_perm.sh
cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/unifdef/t_basic.sh

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

Modified files:

Index: src/tests/kernel/t_filedesc.c
diff -u src/tests/kernel/t_filedesc.c:1.4 src/tests/kernel/t_filedesc.c:1.5
--- src/tests/kernel/t_filedesc.c:1.4	Wed Nov  3 16:10:20 2010
+++ src/tests/kernel/t_filedesc.c	Sun Mar 18 09:46:50 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_filedesc.c,v 1.4 2010/11/03 16:10:20 christos Exp $	*/
+/*	$NetBSD: t_filedesc.c,v 1.5 2012/03/18 09:46:50 jruoho Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include sys/cdefs.h
-__RCSID($NetBSD: t_filedesc.c,v 1.4 2010/11/03 16:10:20 christos Exp $);
+__RCSID($NetBSD: t_filedesc.c,v 1.5 2012/03/18 09:46:50 jruoho Exp $);
 
 #include sys/types.h
 
@@ -47,8 +47,7 @@ ATF_TC_HEAD(getfilerace, tc)
 {
 
 	atf_tc_set_md_var(tc, descr, race between multithreaded proc. 
-	fd_getfile() and fd_close());
-	/* PR kern/43694 */
+	fd_getfile() and fd_close() (PR kern/43694));
 }
 
 static int fd;
Index: src/tests/kernel/t_rnd.c
diff -u src/tests/kernel/t_rnd.c:1.4 src/tests/kernel/t_rnd.c:1.5
--- src/tests/kernel/t_rnd.c:1.4	Mon Dec  6 16:37:25 2010
+++ src/tests/kernel/t_rnd.c	Sun Mar 18 09:46:50 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_rnd.c,v 1.4 2010/12/06 16:37:25 christos Exp $	*/
+/*	$NetBSD: t_rnd.c,v 1.5 2012/03/18 09:46:50 jruoho Exp $	*/
 
 /*
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include sys/cdefs.h
-__RCSID($NetBSD: t_rnd.c,v 1.4 2010/12/06 16:37:25 christos Exp $);
+__RCSID($NetBSD: t_rnd.c,v 1.5 2012/03/18 09:46:50 jruoho Exp $);
 
 #include sys/types.h
 #include sys/fcntl.h
@@ -44,10 +44,11 @@ __RCSID($NetBSD: t_rnd.c,v 1.4 2010/12/
 ATF_TC(RNDADDDATA);
 ATF_TC_HEAD(RNDADDDATA, tc)
 {
-	atf_tc_set_md_var(tc, descr, checks ioctl(RNDADDDATA));
+	atf_tc_set_md_var(tc, descr,
+	Checks ioctl(RNDADDDATA) (PR kern/42020));
 }
 
-/* Adapted from example provided by Juho Salminen in PR kern/42020 */
+/* Adapted from example provided by Juho Salminen in the noted PR. */
 ATF_TC_BODY(RNDADDDATA, tc)
 {
 	rnddata_t rd;
@@ -57,7 +58,7 @@ ATF_TC_BODY(RNDADDDATA, tc)
 	fd = rump_sys_open(/dev/random, O_RDWR, 0);
 	if (fd == -1)
 		atf_tc_fail_errno(cannot open /dev/random);
-		
+
 	rd.entropy = 1;
 	rd.len = 1;
 	if (rump_sys_ioctl(fd, RNDADDDATA, rd) == -1)

Index: src/tests/net/icmp/t_forward.c
diff -u src/tests/net/icmp/t_forward.c:1.7 src/tests/net/icmp/t_forward.c:1.8
--- src/tests/net/icmp/t_forward.c:1.7	Sun Nov  7 17:51:21 2010
+++ src/tests/net/icmp/t_forward.c	Sun Mar 18 09:46:50 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_forward.c,v 1.7 2010/11/07 17:51:21 jmmv Exp $	*/
+/*	$NetBSD: t_forward.c,v 1.8 2012/03/18 09:46:50 jruoho Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
 
 #include sys/cdefs.h
 #ifndef lint
-__RCSID($NetBSD: t_forward.c,v 1.7 2010/11/07 17:51:21 jmmv Exp $);
+__RCSID($NetBSD: t_forward.c,v 1.8 2012/03/18 09:46:50 jruoho Exp $);
 #endif /* not lint */
 
 #include sys/types.h
@@ -128,9 +128,8 @@ ATF_TC_HEAD(returndatabytes, tc)
 {
 
 	atf_tc_set_md_var(tc, descr, icmp.returndatabytes with certain 
-	packets can cause kernel panic);
+	packets can cause kernel panic (PR kern/43548));
 	atf_tc_set_md_var(tc, timeout, 4); /* just in case */
-	/* PR kern/43548 */
 }
 
 ATF_TC_BODY(returndatabytes, tc)

Index: src/tests/net/if_loop/t_pr.c
diff -u src/tests/net/if_loop/t_pr.c:1.6 src/tests/net/if_loop/t_pr.c:1.7
--- src/tests/net/if_loop/t_pr.c:1.6	Tue Apr 26 18:42:08 2011
+++ src/tests/net/if_loop/t_pr.c	Sun Mar 18 09:46:50 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_pr.c,v 1.6 2011/04/26 18:42:08 martin Exp $	*/
+/*	$NetBSD: t_pr.c,v 1.7 2012/03/18 09:46:50 jruoho Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
 
 #include sys/cdefs.h
 #ifndef lint
-__RCSID($NetBSD: t_pr.c,v 1.6 2011/04/26 18:42:08 martin Exp $);
+__RCSID($NetBSD: t_pr.c,v 1.7 2012/03/18 09:46:50 jruoho Exp $);
 #endif /* not lint */
 
 #include sys/types.h
@@ -154,8 +154,8 @@ ATF_TC(loopmtu);
 ATF_TC_HEAD(loopmtu, tc)
 {
 
-	

CVS commit: src

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 10:12:31 UTC 2012

Modified Files:
src/distrib/sets/lists/tests: mi
src/etc/mtree: NetBSD.dist.tests
src/tests/usr.bin: Makefile
Added Files:
src/tests/usr.bin/sed: Makefile t_sed.sh

Log Message:
Add a test case for PR bin/28126. Does not fail with GNU sed.


To generate a diff of this commit:
cvs rdiff -u -r1.447 -r1.448 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.64 -r1.65 src/etc/mtree/NetBSD.dist.tests
cvs rdiff -u -r1.9 -r1.10 src/tests/usr.bin/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/sed/Makefile \
src/tests/usr.bin/sed/t_sed.sh

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/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.447 src/distrib/sets/lists/tests/mi:1.448
--- src/distrib/sets/lists/tests/mi:1.447	Sun Mar 18 08:52:07 2012
+++ src/distrib/sets/lists/tests/mi	Sun Mar 18 10:12:30 2012
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.447 2012/03/18 08:52:07 jruoho Exp $
+# $NetBSD: mi,v 1.448 2012/03/18 10:12:30 jruoho Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -2967,6 +2967,9 @@
 ./usr/tests/usr.bin/sdiff/d_tabs1.in		tests-usr.bin-tests	atf
 ./usr/tests/usr.bin/sdiff/d_tabs2.in		tests-usr.bin-tests	atf
 ./usr/tests/usr.bin/sdiff/t_sdiff		tests-usr.bin-tests	atf
+./usr/tests/usr.bin/sedtests-usr.bin-tests
+./usr/tests/usr.bin/sed/Atffile			tests-usr.bin-tests	atf
+./usr/tests/usr.bin/sed/t_sed			tests-usr.bin-tests	atf
 ./usr/tests/usr.bin/shmif_dumpbustests-usr.bin-tests
 ./usr/tests/usr.bin/shmif_dumpbus/Atffile			tests-usr.bin-tests	atf
 ./usr/tests/usr.bin/shmif_dumpbus/d_pcap.out.bz2.uue		tests-usr.bin-tests	atf

Index: src/etc/mtree/NetBSD.dist.tests
diff -u src/etc/mtree/NetBSD.dist.tests:1.64 src/etc/mtree/NetBSD.dist.tests:1.65
--- src/etc/mtree/NetBSD.dist.tests:1.64	Sat Mar 17 17:16:41 2012
+++ src/etc/mtree/NetBSD.dist.tests	Sun Mar 18 10:12:31 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: NetBSD.dist.tests,v 1.64 2012/03/17 17:16:41 jruoho Exp $
+#	$NetBSD: NetBSD.dist.tests,v 1.65 2012/03/18 10:12:31 jruoho Exp $
 
 ./usr/libdata/debug/usr/tests
 ./usr/libdata/debug/usr/tests/atf
@@ -282,6 +282,7 @@
 ./usr/tests/usr.bin/pr
 ./usr/tests/usr.bin/rump_server
 ./usr/tests/usr.bin/sdiff
+./usr/tests/usr.bin/sed
 ./usr/tests/usr.bin/shmif_dumpbus
 ./usr/tests/usr.bin/sort
 ./usr/tests/usr.bin/unifdef

Index: src/tests/usr.bin/Makefile
diff -u src/tests/usr.bin/Makefile:1.9 src/tests/usr.bin/Makefile:1.10
--- src/tests/usr.bin/Makefile:1.9	Sat Mar 17 17:15:29 2012
+++ src/tests/usr.bin/Makefile	Sun Mar 18 10:12:30 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.9 2012/03/17 17:15:29 jruoho Exp $
+#	$NetBSD: Makefile,v 1.10 2012/03/18 10:12:30 jruoho Exp $
 #
 
 .include bsd.own.mk
@@ -7,6 +7,6 @@ TESTSDIR=   ${TESTSBASE}/usr.bin
 
 TESTS_SUBDIRS=	awk basename bzip2 cc config cut \
 		diff dirname grep gzip id m4 make mkdep \
-		pr rump_server shmif_dumpbus sdiff sort unifdef xlint
+		pr rump_server shmif_dumpbus sdiff sed sort unifdef xlint
 
 .include bsd.test.mk

Added files:

Index: src/tests/usr.bin/sed/Makefile
diff -u /dev/null src/tests/usr.bin/sed/Makefile:1.1
--- /dev/null	Sun Mar 18 10:12:31 2012
+++ src/tests/usr.bin/sed/Makefile	Sun Mar 18 10:12:30 2012
@@ -0,0 +1,8 @@
+# $NetBSD: Makefile,v 1.1 2012/03/18 10:12:30 jruoho Exp $
+
+.include bsd.own.mk
+
+TESTSDIR=	${TESTSBASE}/usr.bin/sed
+TESTS_SH=	t_sed
+
+.include bsd.test.mk
Index: src/tests/usr.bin/sed/t_sed.sh
diff -u /dev/null src/tests/usr.bin/sed/t_sed.sh:1.1
--- /dev/null	Sun Mar 18 10:12:31 2012
+++ src/tests/usr.bin/sed/t_sed.sh	Sun Mar 18 10:12:30 2012
@@ -0,0 +1,52 @@
+# $NetBSD: t_sed.sh,v 1.1 2012/03/18 10:12:30 jruoho Exp $
+#
+# Copyright (c) 2012 The NetBSD Foundation, Inc.
+# All rights reserved.
+#
+# This code is derived from software contributed to The NetBSD Foundation
+# by Jukka Ruohonen.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+#notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#notice, this list of conditions and the following disclaimer in the
+#documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF

CVS commit: src/tests/usr.sbin/mtree

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 11:50:55 UTC 2012

Modified Files:
src/tests/usr.sbin/mtree: t_mtree.sh

Log Message:
Verify that bin/25693 is no longer an issue.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.sbin/mtree/t_mtree.sh

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

Modified files:

Index: src/tests/usr.sbin/mtree/t_mtree.sh
diff -u src/tests/usr.sbin/mtree/t_mtree.sh:1.1 src/tests/usr.sbin/mtree/t_mtree.sh:1.2
--- src/tests/usr.sbin/mtree/t_mtree.sh:1.1	Sat Mar 17 16:33:16 2012
+++ src/tests/usr.sbin/mtree/t_mtree.sh	Sun Mar 18 11:50:55 2012
@@ -1,4 +1,4 @@
-# $NetBSD: t_mtree.sh,v 1.1 2012/03/17 16:33:16 jruoho Exp $
+# $NetBSD: t_mtree.sh,v 1.2 2012/03/18 11:50:55 jruoho Exp $
 #
 # Copyright (c) 2009 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -27,6 +27,7 @@
 
 # Postprocess mtree output, canonicalising portions that
 # are expected to differ from one run to another.
+#
 h_postprocess()
 {
 	sed -e '
@@ -157,6 +158,31 @@ merge_body()
 	h_check $(atf_get_srcdir)/d_merge_C_M_S.out output
 }
 
+atf_test_case nonemptydir
+nonemptydir_head() {
+	atf_set descr Test that new non-empty  \
+			directories are recorded (PR bin/25693)
+}
+
+nonemptydir_body() {
+
+	mkdir testdir
+	cd testdir
+
+	mtree -c  mtree.spec
+
+	if [ ! -f mtree.spec ]; then
+		atf_fail mtree failed
+	fi
+
+	touch bar
+	atf_check -s ignore -o save:output -x mtree -f mtree.spec
+
+	if [ ! -n $(egrep extra: bar output) ]; then
+		atf_fail mtree did not record changes (PR bin/25693)
+	fi
+}
+
 atf_init_test_cases()
 {
 	atf_add_test_case create
@@ -166,4 +192,5 @@ atf_init_test_cases()
 	atf_add_test_case convert_D
 	atf_add_test_case convert_D_S
 	atf_add_test_case merge
+	atf_add_test_case nonemptydir
 }



CVS commit: src

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 12:40:43 UTC 2012

Modified Files:
src/distrib/sets/lists/tests: mi
src/etc/mtree: NetBSD.dist.tests
src/tests/usr.bin: Makefile
Added Files:
src/tests/usr.bin/find: Makefile t_find.sh

Log Message:
Add a case for PR bin/44973.


To generate a diff of this commit:
cvs rdiff -u -r1.448 -r1.449 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.65 -r1.66 src/etc/mtree/NetBSD.dist.tests
cvs rdiff -u -r1.10 -r1.11 src/tests/usr.bin/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/find/Makefile \
src/tests/usr.bin/find/t_find.sh

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/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.448 src/distrib/sets/lists/tests/mi:1.449
--- src/distrib/sets/lists/tests/mi:1.448	Sun Mar 18 10:12:30 2012
+++ src/distrib/sets/lists/tests/mi	Sun Mar 18 12:40:42 2012
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.448 2012/03/18 10:12:30 jruoho Exp $
+# $NetBSD: mi,v 1.449 2012/03/18 12:40:42 jruoho Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -2845,6 +2845,9 @@
 ./usr/tests/usr.bin/dirname			tests-usr.bin-tests
 ./usr/tests/usr.bin/dirname/Atffile		tests-usr.bin-tests	atf
 ./usr/tests/usr.bin/dirname/t_dirname		tests-usr.bin-tests	atf
+./usr/tests/usr.bin/find			tests-usr.bin-tests
+./usr/tests/usr.bin/find/Atffile		tests-usr.bin-tests	atf
+./usr/tests/usr.bin/find/t_find			tests-usr.bin-tests	atf
 ./usr/tests/usr.bin/grep			tests-usr.bin-tests
 ./usr/tests/usr.bin/grep/Atffile		tests-usr.bin-tests	atf
 ./usr/tests/usr.bin/grep/d_basic.out		tests-usr.bin-tests	atf

Index: src/etc/mtree/NetBSD.dist.tests
diff -u src/etc/mtree/NetBSD.dist.tests:1.65 src/etc/mtree/NetBSD.dist.tests:1.66
--- src/etc/mtree/NetBSD.dist.tests:1.65	Sun Mar 18 10:12:31 2012
+++ src/etc/mtree/NetBSD.dist.tests	Sun Mar 18 12:40:43 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: NetBSD.dist.tests,v 1.65 2012/03/18 10:12:31 jruoho Exp $
+#	$NetBSD: NetBSD.dist.tests,v 1.66 2012/03/18 12:40:43 jruoho Exp $
 
 ./usr/libdata/debug/usr/tests
 ./usr/libdata/debug/usr/tests/atf
@@ -273,6 +273,7 @@
 ./usr/tests/usr.bin/cut
 ./usr/tests/usr.bin/diff
 ./usr/tests/usr.bin/dirname
+./usr/tests/usr.bin/find
 ./usr/tests/usr.bin/grep
 ./usr/tests/usr.bin/gzip
 ./usr/tests/usr.bin/id

Index: src/tests/usr.bin/Makefile
diff -u src/tests/usr.bin/Makefile:1.10 src/tests/usr.bin/Makefile:1.11
--- src/tests/usr.bin/Makefile:1.10	Sun Mar 18 10:12:30 2012
+++ src/tests/usr.bin/Makefile	Sun Mar 18 12:40:42 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.10 2012/03/18 10:12:30 jruoho Exp $
+#	$NetBSD: Makefile,v 1.11 2012/03/18 12:40:42 jruoho Exp $
 #
 
 .include bsd.own.mk
@@ -6,7 +6,7 @@
 TESTSDIR=   ${TESTSBASE}/usr.bin
 
 TESTS_SUBDIRS=	awk basename bzip2 cc config cut \
-		diff dirname grep gzip id m4 make mkdep \
+		diff dirname find grep gzip id m4 make mkdep \
 		pr rump_server shmif_dumpbus sdiff sed sort unifdef xlint
 
 .include bsd.test.mk

Added files:

Index: src/tests/usr.bin/find/Makefile
diff -u /dev/null src/tests/usr.bin/find/Makefile:1.1
--- /dev/null	Sun Mar 18 12:40:43 2012
+++ src/tests/usr.bin/find/Makefile	Sun Mar 18 12:40:42 2012
@@ -0,0 +1,8 @@
+# $NetBSD: Makefile,v 1.1 2012/03/18 12:40:42 jruoho Exp $
+
+.include bsd.own.mk
+
+TESTSDIR=	${TESTSBASE}/usr.bin/find
+TESTS_SH=	t_find
+
+.include bsd.test.mk
Index: src/tests/usr.bin/find/t_find.sh
diff -u /dev/null src/tests/usr.bin/find/t_find.sh:1.1
--- /dev/null	Sun Mar 18 12:40:43 2012
+++ src/tests/usr.bin/find/t_find.sh	Sun Mar 18 12:40:42 2012
@@ -0,0 +1,46 @@
+# $NetBSD: t_find.sh,v 1.1 2012/03/18 12:40:42 jruoho Exp $
+#
+# Copyright (c) 2012 The NetBSD Foundation, Inc.
+# All rights reserved.
+#
+# This code is derived from software contributed to The NetBSD Foundation
+# by Jukka Ruohonen.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+#notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#notice, this list of conditions and the following disclaimer in the
+#documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+# 

CVS commit: src/sys/dev/pci

2012-03-18 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar 18 12:47:02 UTC 2012

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

Log Message:
Split device_t


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/pci/alipm.c

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

Modified files:

Index: src/sys/dev/pci/alipm.c
diff -u src/sys/dev/pci/alipm.c:1.9 src/sys/dev/pci/alipm.c:1.10
--- src/sys/dev/pci/alipm.c:1.9	Sun Mar 11 22:46:22 2012
+++ src/sys/dev/pci/alipm.c	Sun Mar 18 12:47:01 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: alipm.c,v 1.9 2012/03/11 22:46:22 pgoyette Exp $ */
+/*	$NetBSD: alipm.c,v 1.10 2012/03/18 12:47:01 martin Exp $ */
 /*	$OpenBSD: alipm.c,v 1.13 2007/05/03 12:19:01 dlg Exp $	*/
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: alipm.c,v 1.9 2012/03/11 22:46:22 pgoyette Exp $);
+__KERNEL_RCSID(0, $NetBSD: alipm.c,v 1.10 2012/03/18 12:47:01 martin Exp $);
 
 #include sys/param.h
 #include sys/device.h
@@ -98,7 +98,7 @@ __KERNEL_RCSID(0, $NetBSD: alipm.c,v 1.
 #define ALIPM_TIMEOUT	1
 
 struct alipm_softc {
-	struct device sc_dev;
+	device_t sc_dev;
 
 	bus_space_tag_t sc_iot;
 	bus_space_handle_t sc_ioh;
@@ -115,7 +115,7 @@ void	alipm_smb_release_bus(void *, int);
 int	alipm_smb_exec(void *, i2c_op_t, i2c_addr_t, const void *,
 	size_t, void *, size_t, int);
 
-CFATTACH_DECL(alipm, sizeof(struct alipm_softc),
+CFATTACH_DECL_NEW(alipm, sizeof(struct alipm_softc),
 	alipm_match, alipm_attach, NULL, NULL);
 
 static int
@@ -138,6 +138,8 @@ alipm_attach(device_t parent, device_t s
 	pcireg_t iobase, reg;
 	bus_size_t iosize = ALIPM_SMB_SIZE;
 
+	sc-sc_dev = self;
+
 	/* Old chips don't have the PCI 2.2 Capabilities List. */
 	reg = pci_conf_read(pa-pa_pc, pa-pa_tag, PCI_COMMAND_STATUS_REG);
 	if ((reg  PCI_STATUS_CAPLIST_SUPPORT) == 0) {
@@ -147,32 +149,32 @@ alipm_attach(device_t parent, device_t s
 		if (iobase == 0 ||
 		bus_space_map(sc-sc_iot, iobase  16,
 		iosize, 0, sc-sc_ioh)) {
-			aprint_error_dev(sc-sc_dev, can't map I/O space\n);
+			aprint_error_dev(sc-sc_dev, can't map I/O space\n);
 			return;
 		}
 
 		reg = pci_conf_read(pa-pa_pc, pa-pa_tag, ALIPM_CONF);
 		if ((reg  ALIPM_CONF_SMBEN) == 0) {
-			aprint_error_dev(sc-sc_dev, SMBus disabled\n);
+			aprint_error_dev(sc-sc_dev, SMBus disabled\n);
 			goto fail;
 		}
 
 		reg = pci_conf_read(pa-pa_pc, pa-pa_tag, ALIPM_SMB_HOSTC);
 		if ((reg  ALIPM_SMB_HOSTC_HSTEN) == 0) {
-			aprint_error_dev(sc-sc_dev, SMBus host disabled\n);
+			aprint_error_dev(sc-sc_dev, SMBus host disabled\n);
 			goto fail;
 		}
 	} else {
 		/* Map I/O space */
 		if (pci_mapreg_map(pa, ALIPM_SMB_BASE, PCI_MAPREG_TYPE_IO, 0,
 		sc-sc_iot, sc-sc_ioh, NULL, iosize)) {
-			aprint_error_dev(sc-sc_dev, can't map I/O space\n);
+			aprint_error_dev(sc-sc_dev, can't map I/O space\n);
 			return;
 		}
 
 		reg = pci_conf_read(pa-pa_pc, pa-pa_tag, ALIPM_SMB_HOSTX);
 		if ((reg  ALIPM_SMB_HOSTC_HSTEN) == 0) {
-			aprint_error_dev(sc-sc_dev, SMBus host disabled\n);
+			aprint_error_dev(sc-sc_dev, SMBus host disabled\n);
 			goto fail;
 		}
 	}
@@ -211,7 +213,7 @@ alipm_attach(device_t parent, device_t s
 
 	memset(iba, 0, sizeof iba);
 	iba.iba_tag = sc-sc_smb_tag;
-	(void)config_found_ia(sc-sc_dev, i2cbus, iba, iicbus_print);
+	(void)config_found_ia(sc-sc_dev, i2cbus, iba, iicbus_print);
 
 	return;
 
@@ -246,7 +248,7 @@ alipm_smb_exec(void *cookie, i2c_op_t op
 	int retries, error = 0;
 
 	DPRINTF((%s: exec op %d, addr 0x%x, cmdlen %d, len %d, 
-	flags 0x%x\n, device_xname(sc-sc_dev), op, addr, cmdlen,
+	flags 0x%x\n, device_xname(sc-sc_dev), op, addr, cmdlen,
 	len, flags));
 
 	if (!I2C_OP_STOP_P(op) || cmdlen  1 || len  2 ||
@@ -271,12 +273,12 @@ alipm_smb_exec(void *cookie, i2c_op_t op
 		DELAY(ALIPM_DELAY);
 	}
 	if (retries == 0) {
-		aprint_error_dev(sc-sc_dev, timeout st 0x%x\n, st);
+		aprint_error_dev(sc-sc_dev, timeout st 0x%x\n, st);
 		return (ETIMEDOUT);
 	}
 	if (st  (ALIPM_SMB_HS_FAILED |
 	ALIPM_SMB_HS_BUSERR | ALIPM_SMB_HS_DEVERR)) {
-		aprint_error_dev(sc-sc_dev, error st 0x%x\n, st);
+		aprint_error_dev(sc-sc_dev, error st 0x%x\n, st);
 		return (EIO);
 	}
 
@@ -335,7 +337,7 @@ alipm_smb_exec(void *cookie, i2c_op_t op
 		DELAY(ALIPM_DELAY);
 	}
 	if (retries == 0) {
-		aprint_error_dev(sc-sc_dev, timeout st 0x%x, resetting\n,st);
+		aprint_error_dev(sc-sc_dev, timeout st 0x%x, resetting\n,st);
 		bus_space_write_1(sc-sc_iot, sc-sc_ioh, ALIPM_SMB_HC,
 		ALIPM_SMB_HC_RESET);
 		bus_space_barrier(sc-sc_iot, sc-sc_ioh, 0, ALIPM_SMB_SIZE,
@@ -356,7 +358,7 @@ alipm_smb_exec(void *cookie, i2c_op_t op
 		bus_space_barrier(sc-sc_iot, sc-sc_ioh, ALIPM_SMB_HS, 1,
 		BUS_SPACE_BARRIER_READ);
 		if ((st  ALIPM_SMB_HS_FAILED) == 0)
-			aprint_error_dev(sc-sc_dev, error st 0x%x\n, st);
+			aprint_error_dev(sc-sc_dev, error st 0x%x\n, st);
 	}
 
 	/* Check for errors */



CVS commit: [netbsd-5] src/gnu

2012-03-18 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Mar 18 13:27:41 UTC 2012

Modified Files:
src/gnu/dist/gcc4/gcc [netbsd-5]: crtstuff.c gcc.c
src/gnu/dist/gcc4/gcc/config [netbsd-5]: netbsd-elf.h t-netbsd
src/gnu/lib/libgcc4/arch [netbsd-5]: alpha.mk arm.mk armeb.mk hppa.mk
i386.mk m68000.mk m68k.mk mipseb.mk mipsel.mk powerpc.mk
powerpc64.mk sh3eb.mk sh3el.mk sparc.mk sparc64.mk vax.mk x86_64.mk
src/gnu/usr.bin/gcc4/arch/alpha [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/arm [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/armeb [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/hppa [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/i386 [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/m68000 [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/m68k [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/mipseb [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/mipsel [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/powerpc [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/powerpc64 [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/sh3eb [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/sh3el [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/sparc [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/sparc64 [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/vax [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/x86_64 [netbsd-5]: defs.mk
Added Files:
src/gnu/dist/gcc4/gcc [netbsd-5]: unwind-dw2-fde-phdr.c

Log Message:
Apply patch, requested by skrll in ticket #1725
gnu/dist/gcc4/gcc/crtstuff.cpatch
gnu/dist/gcc4/gcc/gcc.c patch
gnu/dist/gcc4/gcc/config/netbsd-elf.h   patch
gnu/dist/gcc4/gcc/config/t-netbsd   patch
gnu/lib/libgcc4/arch/alpha.mk   patch
gnu/lib/libgcc4/arch/arm.mk patch
gnu/lib/libgcc4/arch/armeb.mk   patch
gnu/lib/libgcc4/arch/hppa.mkpatch
gnu/lib/libgcc4/arch/i386.mkpatch
gnu/lib/libgcc4/arch/m68000.mk  patch
gnu/lib/libgcc4/arch/m68k.mkpatch
gnu/lib/libgcc4/arch/mipseb.mk  patch
gnu/lib/libgcc4/arch/mipsel.mk  patch
gnu/lib/libgcc4/arch/powerpc.mk patch
gnu/lib/libgcc4/arch/powerpc64.mk   patch
gnu/lib/libgcc4/arch/sh3eb.mk   patch
gnu/lib/libgcc4/arch/sh3el.mk   patch
gnu/lib/libgcc4/arch/sparc.mk   patch
gnu/lib/libgcc4/arch/sparc64.mk patch
gnu/lib/libgcc4/arch/vax.mk patch
gnu/lib/libgcc4/arch/x86_64.mk  patch
gnu/usr.bin/gcc4/arch/alpha/defs.mk patch
gnu/usr.bin/gcc4/arch/arm/defs.mk   patch
gnu/usr.bin/gcc4/arch/armeb/defs.mk patch
gnu/usr.bin/gcc4/arch/hppa/defs.mk  patch
gnu/usr.bin/gcc4/arch/i386/defs.mk  patch
gnu/usr.bin/gcc4/arch/m68000/defs.mkpatch
gnu/usr.bin/gcc4/arch/m68k/defs.mk  patch
gnu/usr.bin/gcc4/arch/mipseb/defs.mkpatch
gnu/usr.bin/gcc4/arch/mipsel/defs.mkpatch
gnu/usr.bin/gcc4/arch/powerpc/defs.mk   patch
gnu/usr.bin/gcc4/arch/powerpc64/defs.mk patch
gnu/usr.bin/gcc4/arch/sh3eb/defs.mk patch
gnu/usr.bin/gcc4/arch/sh3el/defs.mk patch
gnu/usr.bin/gcc4/arch/sparc/defs.mk patch
gnu/usr.bin/gcc4/arch/sparc64/defs.mk   patch
gnu/usr.bin/gcc4/arch/vax/defs.mk   patch
gnu/usr.bin/gcc4/arch/x86_64/defs.mkpatch
gnu/dist/gcc4/gcc/unwind-dw2-fde-phdr.c patch

Instruct gcc to use dl_iterate_phdr to find exception unwind frames.
This avoids the registration/deregistration of frames that can
screwed up if the right set of libraries isn't linked together.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.26.1 src/gnu/dist/gcc4/gcc/crtstuff.c
cvs rdiff -u -r1.4 -r1.4.18.1 src/gnu/dist/gcc4/gcc/gcc.c
cvs rdiff -u -r0 -r1.1.2.1 src/gnu/dist/gcc4/gcc/unwind-dw2-fde-phdr.c
cvs rdiff -u -r1.2 -r1.2.26.1 src/gnu/dist/gcc4/gcc/config/netbsd-elf.h
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.26.1 src/gnu/dist/gcc4/gcc/config/t-netbsd
cvs rdiff -u -r1.3 -r1.3.18.1 src/gnu/lib/libgcc4/arch/alpha.mk \
src/gnu/lib/libgcc4/arch/x86_64.mk
cvs rdiff -u -r1.3 -r1.3.12.1 src/gnu/lib/libgcc4/arch/arm.mk \
src/gnu/lib/libgcc4/arch/hppa.mk src/gnu/lib/libgcc4/arch/mipseb.mk \
src/gnu/lib/libgcc4/arch/mipsel.mk src/gnu/lib/libgcc4/arch/sh3eb.mk \
src/gnu/lib/libgcc4/arch/sh3el.mk 

CVS commit: [netbsd-5] src/doc

2012-03-18 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Mar 18 13:28:08 UTC 2012

Modified Files:
src/doc [netbsd-5]: CHANGES-5.2

Log Message:
Ticket 1725


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.149 -r1.1.2.150 src/doc/CHANGES-5.2

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

Modified files:

Index: src/doc/CHANGES-5.2
diff -u src/doc/CHANGES-5.2:1.1.2.149 src/doc/CHANGES-5.2:1.1.2.150
--- src/doc/CHANGES-5.2:1.1.2.149	Sat Mar 17 19:33:21 2012
+++ src/doc/CHANGES-5.2	Sun Mar 18 13:28:08 2012
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-5.2,v 1.1.2.149 2012/03/17 19:33:21 bouyer Exp $
+# $NetBSD: CHANGES-5.2,v 1.1.2.150 2012/03/18 13:28:08 bouyer Exp $
 
 A complete list of changes from the NetBSD 5.1 release to the NetBSD 5.2
 release:
@@ -6234,3 +6234,48 @@ sbin/mount/mount.81.73, 1.74
 	Clarify UFS2 superblock format stuff. Bump date.  Fix PR 45166.
 	[dholland, ticket #1743]
 
+gnu/dist/gcc4/gcc/crtstuff.c			patch
+gnu/dist/gcc4/gcc/gcc.cpatch
+gnu/dist/gcc4/gcc/config/netbsd-elf.h		patch
+gnu/dist/gcc4/gcc/config/t-netbsd		patch
+gnu/lib/libgcc4/arch/alpha.mk			patch
+gnu/lib/libgcc4/arch/arm.mk			patch
+gnu/lib/libgcc4/arch/armeb.mk			patch
+gnu/lib/libgcc4/arch/hppa.mk			patch
+gnu/lib/libgcc4/arch/i386.mk			patch
+gnu/lib/libgcc4/arch/m68000.mk			patch
+gnu/lib/libgcc4/arch/m68k.mk			patch
+gnu/lib/libgcc4/arch/mipseb.mk			patch
+gnu/lib/libgcc4/arch/mipsel.mk			patch
+gnu/lib/libgcc4/arch/powerpc.mk			patch
+gnu/lib/libgcc4/arch/powerpc64.mk		patch
+gnu/lib/libgcc4/arch/sh3eb.mk			patch
+gnu/lib/libgcc4/arch/sh3el.mk			patch
+gnu/lib/libgcc4/arch/sparc.mk			patch
+gnu/lib/libgcc4/arch/sparc64.mk			patch
+gnu/lib/libgcc4/arch/vax.mk			patch
+gnu/lib/libgcc4/arch/x86_64.mk			patch
+gnu/usr.bin/gcc4/arch/alpha/defs.mk		patch
+gnu/usr.bin/gcc4/arch/arm/defs.mk		patch
+gnu/usr.bin/gcc4/arch/armeb/defs.mk		patch
+gnu/usr.bin/gcc4/arch/hppa/defs.mk		patch
+gnu/usr.bin/gcc4/arch/i386/defs.mk		patch
+gnu/usr.bin/gcc4/arch/m68000/defs.mk		patch
+gnu/usr.bin/gcc4/arch/m68k/defs.mk		patch
+gnu/usr.bin/gcc4/arch/mipseb/defs.mk		patch
+gnu/usr.bin/gcc4/arch/mipsel/defs.mk		patch
+gnu/usr.bin/gcc4/arch/powerpc/defs.mk		patch
+gnu/usr.bin/gcc4/arch/powerpc64/defs.mk		patch
+gnu/usr.bin/gcc4/arch/sh3eb/defs.mk		patch
+gnu/usr.bin/gcc4/arch/sh3el/defs.mk		patch
+gnu/usr.bin/gcc4/arch/sparc/defs.mk		patch
+gnu/usr.bin/gcc4/arch/sparc64/defs.mk		patch
+gnu/usr.bin/gcc4/arch/vax/defs.mk		patch
+gnu/usr.bin/gcc4/arch/x86_64/defs.mk		patch
+gnu/dist/gcc4/gcc/unwind-dw2-fde-phdr.c		patch
+
+	Instruct gcc to use dl_iterate_phdr to find exception unwind frames.
+	This avoids the registration/deregistration of frames that can
+	screwed up if the right set of libraries isn't linked together.
+	[skrll, ticket #1725]
+



CVS commit: src/sys/uvm

2012-03-18 Thread Masao Uebayashi
Module Name:src
Committed By:   uebayasi
Date:   Sun Mar 18 13:31:15 UTC 2012

Modified Files:
src/sys/uvm: uvm_extern.h uvm_param.h

Log Message:
Move base type definitions from uvm_extern.h to uvm_param.h so that
other sources can easily include part of UVM headers without the whole
uvm_extern.h (e.g. sys/vnode.h wants only uvm_object.h).


To generate a diff of this commit:
cvs rdiff -u -r1.181 -r1.182 src/sys/uvm/uvm_extern.h
cvs rdiff -u -r1.29 -r1.30 src/sys/uvm/uvm_param.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/uvm/uvm_extern.h
diff -u src/sys/uvm/uvm_extern.h:1.181 src/sys/uvm/uvm_extern.h:1.182
--- src/sys/uvm/uvm_extern.h:1.181	Thu Feb  2 18:59:45 2012
+++ src/sys/uvm/uvm_extern.h	Sun Mar 18 13:31:14 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_extern.h,v 1.181 2012/02/02 18:59:45 para Exp $	*/
+/*	$NetBSD: uvm_extern.h,v 1.182 2012/03/18 13:31:14 uebayasi Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -73,16 +73,6 @@
  */
 
 /*
- * typedefs, necessary for standard UVM headers.
- */
-
-typedef unsigned int uvm_flag_t;
-
-typedef int vm_inherit_t;	/* XXX: inheritance codes */
-typedef off_t voff_t;		/* XXX: offset within a uvm_object */
-typedef voff_t pgoff_t;		/* XXX: number of pages within a uvm object */
-
-/*
  * defines
  */
 

Index: src/sys/uvm/uvm_param.h
diff -u src/sys/uvm/uvm_param.h:1.29 src/sys/uvm/uvm_param.h:1.30
--- src/sys/uvm/uvm_param.h:1.29	Mon Feb 27 01:39:58 2012
+++ src/sys/uvm/uvm_param.h	Sun Mar 18 13:31:15 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_param.h,v 1.29 2012/02/27 01:39:58 he Exp $	*/
+/*	$NetBSD: uvm_param.h,v 1.30 2012/03/18 13:31:15 uebayasi Exp $	*/
 
 /*
  * Copyright (c) 1991, 1993
@@ -249,6 +249,16 @@ extern const int *const uvmexp_pageshift
 # endif /* VM_DEFAULT_ADDRESS */
 #endif /* !__USING_TOPDOWN_VM */
 
+/*
+ * typedefs, necessary for standard UVM headers.
+ */
+
+typedef unsigned int uvm_flag_t;
+
+typedef int vm_inherit_t;	/* XXX: inheritance codes */
+typedef off_t voff_t;		/* XXX: offset within a uvm_object */
+typedef voff_t pgoff_t;		/* XXX: number of pages within a uvm object */
+
 extern int		ubc_nwins;	/* number of UBC mapping windows */
 extern int		ubc_winshift;	/* shift for a UBC mapping window */
 extern u_int		uvm_emap_size;	/* size of emap */



CVS commit: [netbsd-5] src/libexec/ld.elf_so

2012-03-18 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Mar 18 14:06:13 UTC 2012

Modified Files:
src/libexec/ld.elf_so [netbsd-5]: headers.c

Log Message:
Apply patch, requested by skrll in ticket 1724:
libexec/ld.elf_so/headers.c 1.37 via patch
Add cast so that usr.bin/ldd/elf32 builds.


To generate a diff of this commit:
cvs rdiff -u -r1.26.10.2 -r1.26.10.3 src/libexec/ld.elf_so/headers.c

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

Modified files:

Index: src/libexec/ld.elf_so/headers.c
diff -u src/libexec/ld.elf_so/headers.c:1.26.10.2 src/libexec/ld.elf_so/headers.c:1.26.10.3
--- src/libexec/ld.elf_so/headers.c:1.26.10.2	Sat Mar 17 18:28:33 2012
+++ src/libexec/ld.elf_so/headers.c	Sun Mar 18 14:06:13 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: headers.c,v 1.26.10.2 2012/03/17 18:28:33 bouyer Exp $	 */
+/*	$NetBSD: headers.c,v 1.26.10.3 2012/03/18 14:06:13 bouyer Exp $	 */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -40,7 +40,7 @@
 
 #include sys/cdefs.h
 #ifndef lint
-__RCSID($NetBSD: headers.c,v 1.26.10.2 2012/03/17 18:28:33 bouyer Exp $);
+__RCSID($NetBSD: headers.c,v 1.26.10.3 2012/03/18 14:06:13 bouyer Exp $);
 #endif /* not lint */
 
 #include err.h
@@ -309,7 +309,7 @@ _rtld_digest_phdr(const Elf_Phdr *phdr, 
 	assert(obj-phdr == phdr);
 	
 	for (ph = phdr; ph  phlimit; ++ph) {
-		vaddr = (Elf_Addr)obj-relocbase + ph-p_vaddr;
+		vaddr = (Elf_Addr)(uintptr_t)(obj-relocbase + ph-p_vaddr);
 		switch (ph-p_type) {
 
 		case PT_INTERP:



CVS commit: src

2012-03-18 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Sun Mar 18 14:12:56 UTC 2012

Modified Files:
src/distrib/vax/ramdisk: Makefile
src/sys/arch/vax/conf: INSTALL

Log Message:
Bump the ramdisk size so that the contents fits again.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/distrib/vax/ramdisk/Makefile
cvs rdiff -u -r1.58 -r1.59 src/sys/arch/vax/conf/INSTALL

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

Modified files:

Index: src/distrib/vax/ramdisk/Makefile
diff -u src/distrib/vax/ramdisk/Makefile:1.26 src/distrib/vax/ramdisk/Makefile:1.27
--- src/distrib/vax/ramdisk/Makefile:1.26	Thu Feb 11 09:06:51 2010
+++ src/distrib/vax/ramdisk/Makefile	Sun Mar 18 14:12:55 2012
@@ -1,10 +1,10 @@
-#	$NetBSD: Makefile,v 1.26 2010/02/11 09:06:51 roy Exp $
+#	$NetBSD: Makefile,v 1.27 2012/03/18 14:12:55 he Exp $
 
 .include bsd.own.mk
 .include ${NETBSDSRCDIR}/distrib/common/Makefile.distrib
 
 IMAGE=		ramdisk.fs
-IMAGESIZE=	1536k
+IMAGESIZE=	1664k
 MAKEFS_FLAGS=	-f 15
 
 WARNS=		1

Index: src/sys/arch/vax/conf/INSTALL
diff -u src/sys/arch/vax/conf/INSTALL:1.58 src/sys/arch/vax/conf/INSTALL:1.59
--- src/sys/arch/vax/conf/INSTALL:1.58	Sun Dec 18 05:49:33 2011
+++ src/sys/arch/vax/conf/INSTALL	Sun Mar 18 14:12:55 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: INSTALL,v 1.58 2011/12/18 05:49:33 dholland Exp $
+#	$NetBSD: INSTALL,v 1.59 2012/03/18 14:12:55 he Exp $
 #
 # INSTALL kernel; all supported devices but nothing fancy.
 #
@@ -33,7 +33,7 @@ maxusers	8
 options 	MEMORY_DISK_HOOKS
 options 	MEMORY_DISK_IS_ROOT	# force root on memory disk
 options 	MEMORY_DISK_SERVER=0	# no userspace memory disk support
-options 	MEMORY_DISK_ROOT_SIZE=3072	# size of memory disk, in blocks
+options 	MEMORY_DISK_ROOT_SIZE=3328	# size of memory disk, in blocks
 options 	MEMORY_DISK_RBFLAGS=RB_SINGLE	# boot in single-user mode
 
 # Kernel compiled-in symbolic debugger  system call tracer



CVS commit: [netbsd-5] src/doc

2012-03-18 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Mar 18 14:14:25 UTC 2012

Modified Files:
src/doc [netbsd-5]: CHANGES-5.2

Log Message:
Ajust entry for 1724


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.150 -r1.1.2.151 src/doc/CHANGES-5.2

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

Modified files:

Index: src/doc/CHANGES-5.2
diff -u src/doc/CHANGES-5.2:1.1.2.150 src/doc/CHANGES-5.2:1.1.2.151
--- src/doc/CHANGES-5.2:1.1.2.150	Sun Mar 18 13:28:08 2012
+++ src/doc/CHANGES-5.2	Sun Mar 18 14:14:24 2012
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-5.2,v 1.1.2.150 2012/03/18 13:28:08 bouyer Exp $
+# $NetBSD: CHANGES-5.2,v 1.1.2.151 2012/03/18 14:14:24 bouyer Exp $
 
 A complete list of changes from the NetBSD 5.1 release to the NetBSD 5.2
 release:
@@ -6118,6 +6118,7 @@ share/man/man3/Makefile1.56 via patc
 share/man/man3/dl_iterate_phdr.3		1.1 via patch
 sys/sys/exec_elf.h1.106 via patch
 usr.bin/ldd/ldd.c1.15 via patch
+libexec/ld.elf_so/headers.c			1.37 via patch
 
 	PR/39240: Satoshi Suetake: Don't fail when attempting to resolve
 	weak symbols when we are doing immediate binding, leave them alone



CVS commit: src/lib/libc/gen

2012-03-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 18 14:34:28 UTC 2012

Modified Files:
src/lib/libc/gen: nlist_ecoff.c

Log Message:
fix lint.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/lib/libc/gen/nlist_ecoff.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/libc/gen/nlist_ecoff.c
diff -u src/lib/libc/gen/nlist_ecoff.c:1.18 src/lib/libc/gen/nlist_ecoff.c:1.19
--- src/lib/libc/gen/nlist_ecoff.c:1.18	Fri Aug 21 04:42:02 2009
+++ src/lib/libc/gen/nlist_ecoff.c	Sun Mar 18 10:34:28 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: nlist_ecoff.c,v 1.18 2009/08/21 08:42:02 he Exp $ */
+/* $NetBSD: nlist_ecoff.c,v 1.19 2012/03/18 14:34:28 christos Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou
@@ -36,7 +36,7 @@
 
 #include sys/cdefs.h
 #if defined(LIBC_SCCS)  !defined(lint)
-__RCSID($NetBSD: nlist_ecoff.c,v 1.18 2009/08/21 08:42:02 he Exp $);
+__RCSID($NetBSD: nlist_ecoff.c,v 1.19 2012/03/18 14:34:28 christos Exp $);
 #endif /* LIBC_SCCS and not lint */
 
 #include namespace.h
@@ -59,8 +59,6 @@ __RCSID($NetBSD: nlist_ecoff.c,v 1.18 2
 
 #ifdef NLIST_ECOFF
 #define	check(off, size)	((off  0) || (off + size  mappedsize))
-#define	BAD			do { rv = -1; goto out; } while (/*CONSTCOND*/0)
-#define	BADUNMAP		do { rv = -1; goto unmap; } while (/*CONSTCOND*/0)
 
 int
 __fdnlist_ecoff(fd, list)
@@ -72,7 +70,7 @@ __fdnlist_ecoff(fd, list)
 	struct ecoff_symhdr *symhdrp;
 	struct ecoff_extsym *esyms;
 	struct stat st;
-	char *mappedfile;
+	void *mappedfile;
 	size_t mappedsize;
 	u_long symhdroff, extstroff;
 	u_int symhdrsize;
@@ -88,20 +86,20 @@ __fdnlist_ecoff(fd, list)
 	 * If we can't fstat() the file, something bad is going on.
 	 */
 	if (fstat(fd, st)  0)
-		BAD;
+		goto out;
 
 	/*
 	 * Map the file in its entirety.
 	 */
 	if ((uintmax_t)st.st_size  (uintmax_t)SIZE_T_MAX) {
 		errno = EFBIG;
-		BAD;
+		goto out;
 	}
-	mappedsize = st.st_size;
+	mappedsize = (size_t)st.st_size;
 	mappedfile = mmap(NULL, mappedsize, PROT_READ, MAP_PRIVATE|MAP_FILE,
 	fd, 0);
-	if (mappedfile == (char *)-1)
-		BAD;
+	if (mappedfile == MAP_FAILED)
+		goto out;
 
 	/*
 	 * Make sure we can access the executable's header
@@ -109,11 +107,11 @@ __fdnlist_ecoff(fd, list)
 	 * as an ECOFF binary.
 	 */
 	if (check(0, sizeof *exechdrp))
-		BADUNMAP;
-	exechdrp = (struct ecoff_exechdr *)mappedfile[0];
+		goto unmap;
+	exechdrp = mappedfile;
 
 	if (ECOFF_BADMAG(exechdrp))
-		BADUNMAP;
+		goto unmap;
 
 	/*
 	 * Find the symbol list.
@@ -123,13 +121,13 @@ __fdnlist_ecoff(fd, list)
 
 	if ((symhdroff + sizeof *symhdrp)  mappedsize ||
 	sizeof *symhdrp != symhdrsize)
-		BADUNMAP;
-	symhdrp = (struct ecoff_symhdr *)mappedfile[symhdroff];
+		goto unmap;
+	symhdrp = (void *)((char *)mappedfile + symhdroff);
 
 	nesyms = symhdrp-esymMax;
 	if (check(symhdrp-cbExtOffset, nesyms * sizeof *esyms))
-		BADUNMAP;
-	esyms = (struct ecoff_extsym *)mappedfile[symhdrp-cbExtOffset];
+		goto unmap;
+	esyms = (void *)((char *)mappedfile + symhdrp-cbExtOffset);
 	extstroff = symhdrp-cbSsExtOffset;
 
 	/*
@@ -183,7 +181,7 @@ done:
 unmap:
 	munmap(mappedfile, mappedsize);
 out:
-	return (rv);
+	return rv;
 }
 
 #endif /* NLIST_ECOFF */



CVS commit: src/tests/include/sys

2012-03-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 18 15:31:00 UTC 2012

Modified Files:
src/tests/include/sys: Makefile
Added Files:
src/tests/include/sys: t_cdefs.c

Log Message:
test the __type macros


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/include/sys/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/include/sys/t_cdefs.c

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

Modified files:

Index: src/tests/include/sys/Makefile
diff -u src/tests/include/sys/Makefile:1.5 src/tests/include/sys/Makefile:1.6
--- src/tests/include/sys/Makefile:1.5	Thu Jul  7 01:50:27 2011
+++ src/tests/include/sys/Makefile	Sun Mar 18 11:30:59 2012
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2011/07/07 05:50:27 jruoho Exp $
+# $NetBSD: Makefile,v 1.6 2012/03/18 15:30:59 christos Exp $
 
 NOMAN=		# defined
 
@@ -6,7 +6,7 @@ NOMAN=		# defined
 
 TESTSDIR=		${TESTSBASE}/include/sys
 
-TESTS_C=		t_bitops t_bootblock t_socket t_tree t_types
+TESTS_C=		t_bitops t_bootblock t_cdefs t_socket t_tree t_types
 
 LDADD.t_bitops+=	-lm
 LDADD.t_socket+=	-lrumpnet_local -lrumpnet_net -lrumpnet

Added files:

Index: src/tests/include/sys/t_cdefs.c
diff -u /dev/null src/tests/include/sys/t_cdefs.c:1.1
--- /dev/null	Sun Mar 18 11:31:00 2012
+++ src/tests/include/sys/t_cdefs.c	Sun Mar 18 11:31:00 2012
@@ -0,0 +1,267 @@
+/* $NetBSD: t_cdefs.c,v 1.1 2012/03/18 15:31:00 christos Exp $ */
+
+/*-
+ * Copyright (c) 2012 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Christos Zoulas.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include sys/cdefs.h
+__COPYRIGHT(@(#) Copyright (c) 2008\
+ The NetBSD Foundation, inc. All rights reserved.);
+__RCSID($NetBSD: t_cdefs.c,v 1.1 2012/03/18 15:31:00 christos Exp $);
+
+#include atf-c.h
+#include sys/types.h
+#include limits.h
+#include stdint.h
+
+static const struct {
+	const char *name;
+	intmax_t min;
+	intmax_t max;
+} s[] = {
+	{ signed char, CHAR_MIN, CHAR_MAX },
+	{ signed short, SHRT_MIN, SHRT_MAX },
+	{ signed int, INT_MIN, INT_MAX },
+	{ signed long, LONG_MIN, LONG_MAX },
+	{ signed long long, LLONG_MIN, LLONG_MAX },
+};
+
+static const struct {
+	const char *name;
+	uintmax_t min;
+	uintmax_t max;
+} u[] = {
+	{ unsigned char, 0, UCHAR_MAX },
+	{ unsigned short, 0, USHRT_MAX },
+	{ unsigned int, 0, UINT_MAX },
+	{ unsigned long, 0, ULONG_MAX },
+	{ unsigned long long, 0, ULLONG_MAX },
+};
+
+ATF_TC(stypeminmax);
+ATF_TC_HEAD(stypeminmax, tc)
+{
+	atf_tc_set_md_var(tc, descr, Checks signed type min/max macros);
+}
+
+
+ATF_TC_BODY(stypeminmax, tc)
+{
+#define CHECK(a, b) ATF_REQUIRE(__type_min(a) == s[b].min); \
+ATF_REQUIRE(__type_max(a) == s[b].max)
+
+	CHECK(signed char, 0);
+	CHECK(signed short, 1);
+	CHECK(signed int, 2);
+	CHECK(signed long, 3);
+	CHECK(signed long long, 4);
+#undef CHECK
+}
+
+ATF_TC(utypeminmax);
+ATF_TC_HEAD(utypeminmax, tc)
+{
+	atf_tc_set_md_var(tc, descr, Checks unsigned type min/max macros);
+}
+
+ATF_TC_BODY(utypeminmax, tc)
+{
+#define CHECK(a, b) ATF_REQUIRE(__type_min(a) == u[b].min); \
+ATF_REQUIRE(__type_max(a) == u[b].max)
+
+	CHECK(unsigned char, 0);
+	CHECK(unsigned short, 1);
+	CHECK(unsigned int, 2);
+	CHECK(unsigned long, 3);
+	CHECK(unsigned long long, 4);
+#undef CHECK
+}
+
+ATF_TC(sissigned);
+ATF_TC_HEAD(sissigned, tc)
+{
+	atf_tc_set_md_var(tc, descr, Checks issigned macro for signed);
+}
+
+ATF_TC_BODY(sissigned, tc)
+{
+#define CHECK(a) ATF_REQUIRE(__type_is_signed(a) == 1)
+
+	CHECK(signed char);
+	CHECK(signed short);
+	CHECK(signed int);
+	CHECK(signed long);
+	

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

2012-03-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 18 15:32:24 UTC 2012

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

Log Message:
add t_cdefs


To generate a diff of this commit:
cvs rdiff -u -r1.449 -r1.450 src/distrib/sets/lists/tests/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/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.449 src/distrib/sets/lists/tests/mi:1.450
--- src/distrib/sets/lists/tests/mi:1.449	Sun Mar 18 08:40:42 2012
+++ src/distrib/sets/lists/tests/mi	Sun Mar 18 11:32:23 2012
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.449 2012/03/18 12:40:42 jruoho Exp $
+# $NetBSD: mi,v 1.450 2012/03/18 15:32:23 christos Exp $
 #
 # Note: don't delete entries from here - mark them as obsolete instead.
 #
@@ -290,6 +290,7 @@
 ./usr/libdata/debug/usr/tests/include/systests-include-tests
 ./usr/libdata/debug/usr/tests/include/sys/t_bitops.debug		tests-include-tests	debug,atf
 ./usr/libdata/debug/usr/tests/include/sys/t_bootblock.debug		tests-include-tests	debug,atf
+./usr/libdata/debug/usr/tests/include/sys/t_cdefs.debug			tests-include-tests	debug,atf
 ./usr/libdata/debug/usr/tests/include/sys/t_socket.debug		tests-include-tests	debug,atf
 ./usr/libdata/debug/usr/tests/include/sys/t_tree.debug			tests-include-tests	debug,atf
 ./usr/libdata/debug/usr/tests/include/sys/t_types.debug			tests-include-tests	debug,atf
@@ -1603,6 +1604,7 @@
 ./usr/tests/include/sys/Atffile			tests-include-tests	atf
 ./usr/tests/include/sys/t_bitops		tests-include-tests	atf
 ./usr/tests/include/sys/t_bootblock		tests-include-tests	atf
+./usr/tests/include/sys/t_cdefs			tests-include-tests	atf
 ./usr/tests/include/sys/t_socket		tests-include-tests	atf
 ./usr/tests/include/sys/t_tree			tests-include-tests	atf
 ./usr/tests/include/sys/t_types			tests-include-tests	atf



CVS commit: src/tests/usr.bin/sed

2012-03-18 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sun Mar 18 15:35:27 UTC 2012

Modified Files:
src/tests/usr.bin/sed: t_sed.sh

Log Message:
Add some tests for selection of line ranges, based on a case that came
across the POSIX list a few days ago and some related phenomena.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/sed/t_sed.sh

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

Modified files:

Index: src/tests/usr.bin/sed/t_sed.sh
diff -u src/tests/usr.bin/sed/t_sed.sh:1.1 src/tests/usr.bin/sed/t_sed.sh:1.2
--- src/tests/usr.bin/sed/t_sed.sh:1.1	Sun Mar 18 10:12:30 2012
+++ src/tests/usr.bin/sed/t_sed.sh	Sun Mar 18 15:35:27 2012
@@ -1,10 +1,10 @@
-# $NetBSD: t_sed.sh,v 1.1 2012/03/18 10:12:30 jruoho Exp $
+# $NetBSD: t_sed.sh,v 1.2 2012/03/18 15:35:27 dholland Exp $
 #
 # Copyright (c) 2012 The NetBSD Foundation, Inc.
 # All rights reserved.
 #
 # This code is derived from software contributed to The NetBSD Foundation
-# by Jukka Ruohonen.
+# by Jukka Ruohonen and David A. Holland.
 #
 # Redistribution and use in source and binary forms, with or without
 # modification, are permitted provided that the following conditions
@@ -47,6 +47,54 @@ emptybackref_body() {
 		-x echo foobar | sed -ne '/foo\(.*\)bar\1/p'
 }
 
+atf_test_case rangeselection
+rangeselection_head() {
+	atf_set descr Test that sed(1) handles  \
+			range selection correctly
+}
+
+rangeselection_body() {
+	# basic cases
+	atf_check -o inline:D\n \
+		-x printf 'A\nB\nC\nD\n' | sed '1,3d'
+	atf_check -o inline:A\n \
+		-x printf 'A\nB\nC\nD\n' | sed '2,4d'
+	# two nonoverlapping ranges
+	atf_check -o inline:C\n \
+		-x printf 'A\nB\nC\nD\nE\n' | sed '1,2d;4,5d'
+	# overlapping ranges; the first prevents the second from being entered
+	atf_check -o inline:D\nE\n \
+		-x printf 'A\nB\nC\nD\nE\n' | sed '1,3d;3,5d'
+	# the 'n' command can also prevent ranges from being entered
+	atf_check -o inline:B\nB\nC\nD\n \
+		-x printf 'A\nB\nC\nD\n' | sed '1,3s/A/B/;1,3n;1,3s/B/C/'
+	atf_check -o inline:B\nC\nC\nD\n \
+		-x printf 'A\nB\nC\nD\n' | sed '1,3s/A/B/;1,3n;2,3s/B/C/'
+
+	# basic cases using regexps
+	atf_check -o inline:D\n \
+		-x printf 'A\nB\nC\nD\n' | sed '/A/,/C/d'
+	atf_check -o inline:A\n \
+		-x printf 'A\nB\nC\nD\n' | sed '/B/,/D/d'
+	# two nonoverlapping ranges
+	atf_check -o inline:C\n \
+		-x printf 'A\nB\nC\nD\nE\n' | sed '/A/,/B/d;/D/,/E/d'
+	# two overlapping ranges; the first blocks the second as above
+	atf_check -o inline:D\nE\n \
+		-x printf 'A\nB\nC\nD\nE\n' | sed '/A/,/C/d;/C/,/E/d'
+	# the 'n' command makes some lines invisible to downstreap regexps
+	atf_check -o inline:B\nC\nC\nD\n \
+		-x printf 'A\nB\nC\nD\n' | sed '/A/,/C/s/A/B/;1,3n;/B/,/C/s/B/C/'
+
+	# a range ends at the *first* matching end line
+	atf_check -o inline:D\nC\n \
+		-x printf 'A\nB\nC\nD\nC\n' | sed '/A/,/C/d'
+	# another matching start line within the range has no effect
+	atf_check -o inline:D\nC\n \
+		-x printf 'A\nB\nA\nC\nD\nC\n' | sed '/A/,/C/d'
+}
+
 atf_init_test_cases() {
 	atf_add_test_case emptybackref
+	atf_add_test_case rangeselection
 }



CVS commit: src/sys/sys

2012-03-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 18 16:20:49 UTC 2012

Modified Files:
src/sys/sys: cdefs.h

Log Message:
add constcond


To generate a diff of this commit:
cvs rdiff -u -r1.95 -r1.96 src/sys/sys/cdefs.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/sys/cdefs.h
diff -u src/sys/sys/cdefs.h:1.95 src/sys/sys/cdefs.h:1.96
--- src/sys/sys/cdefs.h:1.95	Sat Mar 17 12:48:35 2012
+++ src/sys/sys/cdefs.h	Sun Mar 18 12:20:49 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: cdefs.h,v 1.95 2012/03/17 16:48:35 christos Exp $	*/
+/*	$NetBSD: cdefs.h,v 1.96 2012/03/18 16:20:49 christos Exp $	*/
 
 /*
  * Copyright (c) 1991, 1993
@@ -149,7 +149,7 @@
 #define	__CTASSERT(x)		__CTASSERT0(x, __ctassert, __LINE__)
 #endif
 #define	__CTASSERT0(x, y, z)	__CTASSERT1(x, y, z)
-#define	__CTASSERT1(x, y, z)	typedef char y ## z[(x) ? 1 : -1];
+#define	__CTASSERT1(x, y, z)	typedef char y ## z[/*CONSTCOND*/(x) ? 1 : -1];
 
 /*
  * The following macro is used to remove const cast-away warnings



CVS commit: src/lib/libc/arch/m68k/gen

2012-03-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 18 16:26:34 UTC 2012

Modified Files:
src/lib/libc/arch/m68k/gen: _lwp.c

Log Message:
fix lint


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/libc/arch/m68k/gen/_lwp.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/libc/arch/m68k/gen/_lwp.c
diff -u src/lib/libc/arch/m68k/gen/_lwp.c:1.7 src/lib/libc/arch/m68k/gen/_lwp.c:1.8
--- src/lib/libc/arch/m68k/gen/_lwp.c:1.7	Tue Nov 22 10:25:28 2011
+++ src/lib/libc/arch/m68k/gen/_lwp.c	Sun Mar 18 12:26:34 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: _lwp.c,v 1.7 2011/11/22 15:25:28 joerg Exp $	*/
+/*	$NetBSD: _lwp.c,v 1.8 2012/03/18 16:26:34 christos Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include sys/cdefs.h
 #if defined(LIBC_SCCS)  !defined(lint)
-__RCSID($NetBSD: _lwp.c,v 1.7 2011/11/22 15:25:28 joerg Exp $);
+__RCSID($NetBSD: _lwp.c,v 1.8 2012/03/18 16:26:34 christos Exp $);
 #endif /* LIBC_SCCS and not lint */
 
 #include namespace.h
@@ -55,7 +55,7 @@ _lwp_makecontext(ucontext_t *u, void (*s
 
 	u-uc_mcontext.__gregs[_REG_PC] = (int)start;
 	
-	sp = (void **) (stack_base + stack_size);
+	sp = (void **)(void *)(stack_base + stack_size);
 	
 	*--sp = arg;
 	*--sp = (void *) _lwp_exit;



CVS commit: src/sys/sys

2012-03-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 18 16:30:55 UTC 2012

Modified Files:
src/sys/sys: cdefs.h

Log Message:
remove extra ;


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/sys/sys/cdefs.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/sys/cdefs.h
diff -u src/sys/sys/cdefs.h:1.96 src/sys/sys/cdefs.h:1.97
--- src/sys/sys/cdefs.h:1.96	Sun Mar 18 12:20:49 2012
+++ src/sys/sys/cdefs.h	Sun Mar 18 12:30:54 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: cdefs.h,v 1.96 2012/03/18 16:20:49 christos Exp $	*/
+/*	$NetBSD: cdefs.h,v 1.97 2012/03/18 16:30:54 christos Exp $	*/
 
 /*
  * Copyright (c) 1991, 1993
@@ -149,7 +149,7 @@
 #define	__CTASSERT(x)		__CTASSERT0(x, __ctassert, __LINE__)
 #endif
 #define	__CTASSERT0(x, y, z)	__CTASSERT1(x, y, z)
-#define	__CTASSERT1(x, y, z)	typedef char y ## z[/*CONSTCOND*/(x) ? 1 : -1];
+#define	__CTASSERT1(x, y, z)	typedef char y ## z[/*CONSTCOND*/(x) ? 1 : -1]
 
 /*
  * The following macro is used to remove const cast-away warnings



CVS commit: src/lib/libc/rpc

2012-03-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 18 16:43:34 UTC 2012

Modified Files:
src/lib/libc/rpc: xdr.c

Log Message:
parenthesize.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/lib/libc/rpc/xdr.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/libc/rpc/xdr.c
diff -u src/lib/libc/rpc/xdr.c:1.29 src/lib/libc/rpc/xdr.c:1.30
--- src/lib/libc/rpc/xdr.c:1.29	Tue Mar 13 17:13:45 2012
+++ src/lib/libc/rpc/xdr.c	Sun Mar 18 12:43:34 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: xdr.c,v 1.29 2012/03/13 21:13:45 christos Exp $	*/
+/*	$NetBSD: xdr.c,v 1.30 2012/03/18 16:43:34 christos Exp $	*/
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -35,7 +35,7 @@
 static char *sccsid = @(#)xdr.c 1.35 87/08/12;
 static char *sccsid = @(#)xdr.c	2.1 88/07/29 4.0 RPCSRC;
 #else
-__RCSID($NetBSD: xdr.c,v 1.29 2012/03/13 21:13:45 christos Exp $);
+__RCSID($NetBSD: xdr.c,v 1.30 2012/03/18 16:43:34 christos Exp $);
 #endif
 #endif
 
@@ -821,10 +821,10 @@ xdr_int64_t(XDR *xdrs, int64_t *llp)
 
 	switch (xdrs-x_op) {
 	case XDR_ENCODE:
-		ul[0] = (u_long)((uint64_t)*llp  32) 
-		(uint64_t)0xULL;
-		ul[1] = (u_long)((uint64_t)*llp) 
-		(uint64_t)0xULL;
+		ul[0] = (u_long)(((uint64_t)*llp  32) 
+		(uint64_t)0xULL);
+		ul[1] = (u_long)(((uint64_t)*llp) 
+		(uint64_t)0xULL);
 		if (XDR_PUTLONG(xdrs, (long *)ul[0]) == FALSE)
 			return (FALSE);
 		return (XDR_PUTLONG(xdrs, (long *)ul[1]));



CVS commit: src/usr.bin/find

2012-03-18 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sun Mar 18 17:09:46 UTC 2012

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

Log Message:
Avoid testing a possibly uninitialized errno value when using -exit.
Closes PR 44973 (change is a somewhat more principled equivalent of
the patch suggested there) although I cannot replicate the reported
behavior unless I explicitly prepare errno with a nonzero value before
the fts_read loop.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/usr.bin/find/find.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/find/find.c
diff -u src/usr.bin/find/find.c:1.27 src/usr.bin/find/find.c:1.28
--- src/usr.bin/find/find.c:1.27	Tue Dec 28 15:28:31 2010
+++ src/usr.bin/find/find.c	Sun Mar 18 17:09:46 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: find.c,v 1.27 2010/12/28 15:28:31 christos Exp $	*/
+/*	$NetBSD: find.c,v 1.28 2012/03/18 17:09:46 dholland Exp $	*/
 
 /*-
  * Copyright (c) 1991, 1993, 1994
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = from: @(#)find.c	8.5 (Berkeley) 8/5/94;
 #else
-__RCSID($NetBSD: find.c,v 1.27 2010/12/28 15:28:31 christos Exp $);
+__RCSID($NetBSD: find.c,v 1.28 2012/03/18 17:09:46 dholland Exp $);
 #endif
 #endif /* not lint */
 
@@ -258,7 +258,7 @@ find_execute(PLAN *plan, char **paths)
 	}
 
 	sig_unlock(s);
-	if (errno)
+	if (g_entry == NULL  errno)
 		err(1, fts_read);
 	(void)fts_close(tree);
 



CVS commit: src/sys/dev/pci

2012-03-18 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Sun Mar 18 17:29:06 UTC 2012

Modified Files:
src/sys/dev/pci: pcidevs

Log Message:
Add VIA VX900 media system processor IDE controller.
PR/46166 from Hiroshi Tokuda.


To generate a diff of this commit:
cvs rdiff -u -r1.1105 -r1.1106 src/sys/dev/pci/pcidevs

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

Modified files:

Index: src/sys/dev/pci/pcidevs
diff -u src/sys/dev/pci/pcidevs:1.1105 src/sys/dev/pci/pcidevs:1.1106
--- src/sys/dev/pci/pcidevs:1.1105	Sat Mar  3 05:39:31 2012
+++ src/sys/dev/pci/pcidevs	Sun Mar 18 17:29:06 2012
@@ -1,4 +1,4 @@
-$NetBSD: pcidevs,v 1.1105 2012/03/03 05:39:31 nonaka Exp $
+$NetBSD: pcidevs,v 1.1106 2012/03/18 17:29:06 tsutsui Exp $
 
 /*
  * Copyright (c) 1995, 1996 Christopher G. Demetriou
@@ -4694,6 +4694,7 @@ product VIATECH VT8501AGP	0x8501	VT8501 
 product VIATECH VT82C597AGP	0x8597	VT82C597 (Apollo VP3) CPU-AGP Bridge
 product VIATECH VT82C598AGP	0x8598	VT82C598 (Apollo MVP3) CPU-AGP Bridge
 product VIATECH VT8605AGP	0x8605	VT8605 (Apollo ProMedia 133) Host-AGP Bridge
+product VIATECH VX900_IDE	0x9001	VX900 IDE Controller
 product VIATECH K8T890_PPB_A238	0xa238	K8T890 PCI-PCI Bridge
 product VIATECH VT8633AGP	0xb091	VT8633 (Apollo Pro 266) CPU-AGP Bridge
 product VIATECH VT8366AGP	0xb099	VT8366 (Apollo KT266) CPU-AGP Bridge



CVS commit: src/sys/dev/pci

2012-03-18 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Sun Mar 18 17:30:21 UTC 2012

Modified Files:
src/sys/dev/pci: pcidevs.h pcidevs_data.h

Log Message:
Regen from pcidevs rev 1.1106:
 Add VIA VX900 media system processor IDE controller.
 PR/46166 from Hiroshi Tokuda.


To generate a diff of this commit:
cvs rdiff -u -r1.1100 -r1.1101 src/sys/dev/pci/pcidevs.h
cvs rdiff -u -r1.1099 -r1.1100 src/sys/dev/pci/pcidevs_data.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/dev/pci/pcidevs.h
diff -u src/sys/dev/pci/pcidevs.h:1.1100 src/sys/dev/pci/pcidevs.h:1.1101
--- src/sys/dev/pci/pcidevs.h:1.1100	Sat Mar  3 05:40:11 2012
+++ src/sys/dev/pci/pcidevs.h	Sun Mar 18 17:30:19 2012
@@ -1,10 +1,10 @@
-/*	$NetBSD: pcidevs.h,v 1.1100 2012/03/03 05:40:11 nonaka Exp $	*/
+/*	$NetBSD: pcidevs.h,v 1.1101 2012/03/18 17:30:19 tsutsui Exp $	*/
 
 /*
  * THIS FILE AUTOMATICALLY GENERATED.  DO NOT EDIT.
  *
  * generated from:
- *	NetBSD: pcidevs,v 1.1105 2012/03/03 05:39:31 nonaka Exp
+ *	NetBSD: pcidevs,v 1.1106 2012/03/18 17:29:06 tsutsui Exp
  */
 
 /*
@@ -4701,6 +4701,7 @@
 #define	PCI_PRODUCT_VIATECH_VT82C597AGP	0x8597		/* VT82C597 (Apollo VP3) CPU-AGP Bridge */
 #define	PCI_PRODUCT_VIATECH_VT82C598AGP	0x8598		/* VT82C598 (Apollo MVP3) CPU-AGP Bridge */
 #define	PCI_PRODUCT_VIATECH_VT8605AGP	0x8605		/* VT8605 (Apollo ProMedia 133) Host-AGP Bridge */
+#define	PCI_PRODUCT_VIATECH_VX900_IDE	0x9001		/* VX900 IDE Controller */
 #define	PCI_PRODUCT_VIATECH_K8T890_PPB_A238	0xa238		/* K8T890 PCI-PCI Bridge */
 #define	PCI_PRODUCT_VIATECH_VT8633AGP	0xb091		/* VT8633 (Apollo Pro 266) CPU-AGP Bridge */
 #define	PCI_PRODUCT_VIATECH_VT8366AGP	0xb099		/* VT8366 (Apollo KT266) CPU-AGP Bridge */

Index: src/sys/dev/pci/pcidevs_data.h
diff -u src/sys/dev/pci/pcidevs_data.h:1.1099 src/sys/dev/pci/pcidevs_data.h:1.1100
--- src/sys/dev/pci/pcidevs_data.h:1.1099	Sat Mar  3 05:40:11 2012
+++ src/sys/dev/pci/pcidevs_data.h	Sun Mar 18 17:30:19 2012
@@ -1,10 +1,10 @@
-/*	$NetBSD: pcidevs_data.h,v 1.1099 2012/03/03 05:40:11 nonaka Exp $	*/
+/*	$NetBSD: pcidevs_data.h,v 1.1100 2012/03/18 17:30:19 tsutsui Exp $	*/
 
 /*
  * THIS FILE AUTOMATICALLY GENERATED.  DO NOT EDIT.
  *
  * generated from:
- *	NetBSD: pcidevs,v 1.1105 2012/03/03 05:39:31 nonaka Exp
+ *	NetBSD: pcidevs,v 1.1106 2012/03/18 17:29:06 tsutsui Exp
  */
 
 /*
@@ -7660,6 +7660,8 @@ static const uint16_t pci_products[] = {
 	26224, 26047, 26233, 26734, 6259, 0,
 	PCI_VENDOR_VIATECH, PCI_PRODUCT_VIATECH_VT8605AGP, 
 	26239, 26047, 26246, 26255, 17666, 6259, 0,
+	PCI_VENDOR_VIATECH, PCI_PRODUCT_VIATECH_VX900_IDE, 
+	26083, 6322, 6151, 0,
 	PCI_VENDOR_VIATECH, PCI_PRODUCT_VIATECH_K8T890_PPB_A238, 
 	26021, 7890, 6259, 0,
 	PCI_VENDOR_VIATECH, PCI_PRODUCT_VIATECH_VT8633AGP, 
@@ -8756,7 +8758,7 @@ static const char pci_words[] = { . 
 	Escalade\0 /* 2 refs @ 6133 */
 	ATA\0 /* 51 refs @ 6142 */
 	RAID\0 /* 37 refs @ 6146 */
-	Controller\0 /* 760 refs @ 6151 */
+	Controller\0 /* 761 refs @ 6151 */
 	7000/8000\0 /* 1 refs @ 6162 */
 	Series\0 /* 53 refs @ 6172 */
 	9000\0 /* 5 refs @ 6179 */
@@ -8781,7 +8783,7 @@ static const char pci_words[] = { . 
 	(ISA\0 /* 1 refs @ 6301 */
 	ATP850U/UF\0 /* 1 refs @ 6306 */
 	UDMA\0 /* 6 refs @ 6317 */
-	IDE\0 /* 101 refs @ 6322 */
+	IDE\0 /* 102 refs @ 6322 */
 	ATP860\0 /* 1 refs @ 6326 */
 	ATP860-A\0 /* 1 refs @ 6333 */
 	ATP865\0 /* 1 refs @ 6342 */
@@ -11485,7 +11487,7 @@ static const char pci_words[] = { . 
 	VT3351\0 /* 7 refs @ 26062 */
 	VT8371\0 /* 2 refs @ 26069 */
 	KX133)\0 /* 2 refs @ 26076 */
-	VX900\0 /* 1 refs @ 26083 */
+	VX900\0 /* 2 refs @ 26083 */
 	VT8501\0 /* 2 refs @ 26089 */
 	MVP4)\0 /* 2 refs @ 26096 */
 	VT82C505\0 /* 1 refs @ 26102 */



CVS commit: src/sys/sys

2012-03-18 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Sun Mar 18 17:59:57 UTC 2012

Modified Files:
src/sys/sys: ucontext.h

Log Message:
Add a semicolon to __CTASSERT() since it was removed from the macro
in cdefs.h rev 1.97 by christos.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/sys/ucontext.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/sys/ucontext.h
diff -u src/sys/sys/ucontext.h:1.14 src/sys/sys/ucontext.h:1.15
--- src/sys/sys/ucontext.h:1.14	Sun Feb 19 21:07:00 2012
+++ src/sys/sys/ucontext.h	Sun Mar 18 17:59:57 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: ucontext.h,v 1.14 2012/02/19 21:07:00 rmind Exp $	*/
+/*	$NetBSD: ucontext.h,v 1.15 2012/03/18 17:59:57 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2003 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@ struct __ucontext {
 struct lwp;
 
 #ifdef __UCONTEXT_SIZE
-__CTASSERT(sizeof(ucontext_t) == __UCONTEXT_SIZE)
+__CTASSERT(sizeof(ucontext_t) == __UCONTEXT_SIZE);
 #endif
 
 void	getucontext(struct lwp *, ucontext_t *);



CVS commit: src/tests/usr.bin/find

2012-03-18 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sun Mar 18 18:09:45 UTC 2012

Modified Files:
src/tests/usr.bin/find: t_find.sh

Log Message:
Remove xfail as PR 44973 is fixed. (Note that it was Nat Sloss who did
the work of figuring out what was wrong.)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/find/t_find.sh

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

Modified files:

Index: src/tests/usr.bin/find/t_find.sh
diff -u src/tests/usr.bin/find/t_find.sh:1.1 src/tests/usr.bin/find/t_find.sh:1.2
--- src/tests/usr.bin/find/t_find.sh:1.1	Sun Mar 18 12:40:42 2012
+++ src/tests/usr.bin/find/t_find.sh	Sun Mar 18 18:09:45 2012
@@ -1,4 +1,4 @@
-# $NetBSD: t_find.sh,v 1.1 2012/03/18 12:40:42 jruoho Exp $
+# $NetBSD: t_find.sh,v 1.2 2012/03/18 18:09:45 dholland Exp $
 #
 # Copyright (c) 2012 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -34,9 +34,6 @@ exit_head() {
 }
 
 exit_body() {
-
-	atf_expect_fail PR bin/44973
-
 	atf_check -o ignore \
 		-s exit:0 -x find /etc -type f -exit
 }



CVS commit: src/tests/usr.bin/find

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 18:32:16 UTC 2012

Modified Files:
src/tests/usr.bin/find: t_find.sh

Log Message:
Now that this works, test also some random exit statuses.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/find/t_find.sh

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

Modified files:

Index: src/tests/usr.bin/find/t_find.sh
diff -u src/tests/usr.bin/find/t_find.sh:1.2 src/tests/usr.bin/find/t_find.sh:1.3
--- src/tests/usr.bin/find/t_find.sh:1.2	Sun Mar 18 18:09:45 2012
+++ src/tests/usr.bin/find/t_find.sh	Sun Mar 18 18:32:16 2012
@@ -1,4 +1,4 @@
-# $NetBSD: t_find.sh,v 1.2 2012/03/18 18:09:45 dholland Exp $
+# $NetBSD: t_find.sh,v 1.3 2012/03/18 18:32:16 jruoho Exp $
 #
 # Copyright (c) 2012 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -38,6 +38,17 @@ exit_body() {
 		-s exit:0 -x find /etc -type f -exit
 }
 
+atf_test_case exit_status
+exit_status_head() {
+	atf_set descr Test exit status from 'find -exit'
+}
+
+exit_status_body() {
+	num=$(jot -r 1 0 99)
+	atf_check -o ignore -e ignore -s exit:$num -x find / -exit $num
+}
+
 atf_init_test_cases() {
 	atf_add_test_case exit
+	atf_add_test_case exit_status
 }



CVS commit: src/tests/usr.bin/find

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 19:11:31 UTC 2012

Modified Files:
src/tests/usr.bin/find: t_find.sh

Log Message:
Also verify that PR bin/44179 is no longer an issue.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/find/t_find.sh

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

Modified files:

Index: src/tests/usr.bin/find/t_find.sh
diff -u src/tests/usr.bin/find/t_find.sh:1.3 src/tests/usr.bin/find/t_find.sh:1.4
--- src/tests/usr.bin/find/t_find.sh:1.3	Sun Mar 18 18:32:16 2012
+++ src/tests/usr.bin/find/t_find.sh	Sun Mar 18 19:11:30 2012
@@ -1,4 +1,4 @@
-# $NetBSD: t_find.sh,v 1.3 2012/03/18 18:32:16 jruoho Exp $
+# $NetBSD: t_find.sh,v 1.4 2012/03/18 19:11:30 jruoho Exp $
 #
 # Copyright (c) 2012 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -28,6 +28,22 @@
 # POSSIBILITY OF SUCH DAMAGE.
 #
 
+atf_test_case emptyperm
+emptyperm_head() {
+	atf_set descr Test that 'find -empty' returns true (PR bin/44179)
+	atf_set require.user unprivileged
+}
+
+emptyperm_body() {
+
+	# The test assumes that $dir is drwxrwx---.
+	#
+	dir=/var/quotas
+
+	atf_check -s exit:1 -e inline:find: $dir: Permission denied\n \
+		-x find $dir -empty -type d
+}
+
 atf_test_case exit
 exit_head() {
 	atf_set descr Test that find(1) with -exit works (PR bin/44973)
@@ -49,6 +65,7 @@ exit_status_body() {
 }
 
 atf_init_test_cases() {
+	atf_add_test_case emptyperm
 	atf_add_test_case exit
 	atf_add_test_case exit_status
 }



CVS commit: src/tests/usr.bin/shmif_dumpbus

2012-03-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 18 21:23:57 UTC 2012

Modified Files:
src/tests/usr.bin/shmif_dumpbus: t_basic.sh

Log Message:
say what happened.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/shmif_dumpbus/t_basic.sh

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

Modified files:

Index: src/tests/usr.bin/shmif_dumpbus/t_basic.sh
diff -u src/tests/usr.bin/shmif_dumpbus/t_basic.sh:1.6 src/tests/usr.bin/shmif_dumpbus/t_basic.sh:1.7
--- src/tests/usr.bin/shmif_dumpbus/t_basic.sh:1.6	Mon Apr 11 16:08:10 2011
+++ src/tests/usr.bin/shmif_dumpbus/t_basic.sh	Sun Mar 18 17:23:57 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: t_basic.sh,v 1.6 2011/04/11 20:08:10 martin Exp $
+#	$NetBSD: t_basic.sh,v 1.7 2012/03/18 21:23:57 christos Exp $
 #
 # Copyright (c) 2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -72,7 +72,7 @@ pcap()
 #
 #	should not fail anymore...
 #
-#	atf_expect_fail PR bin/44721
+#	Used to fail for PR bin/44721
 	atf_check -s exit:0 -o file:d_pcap.out -e ignore \
 	tcpdump -tt -n -r pcap
 }



CVS commit: src/sys/compat/sys

2012-03-18 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun Mar 18 21:48:47 UTC 2012

Modified Files:
src/sys/compat/sys: ucontext.h

Log Message:
Add missing semi-colon.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/compat/sys/ucontext.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/compat/sys/ucontext.h
diff -u src/sys/compat/sys/ucontext.h:1.4 src/sys/compat/sys/ucontext.h:1.5
--- src/sys/compat/sys/ucontext.h:1.4	Wed Feb 23 02:58:39 2011
+++ src/sys/compat/sys/ucontext.h	Sun Mar 18 21:48:47 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: ucontext.h,v 1.4 2011/02/23 02:58:39 joerg Exp $	*/
+/*	$NetBSD: ucontext.h,v 1.5 2012/03/18 21:48:47 njoly Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2003 The NetBSD Foundation, Inc.
@@ -54,7 +54,7 @@ struct __ucontext32 {
 };
 
 #ifdef __UCONTEXT32_SIZE
-__CTASSERT(sizeof(ucontext32_t) == __UCONTEXT32_SIZE)
+__CTASSERT(sizeof(ucontext32_t) == __UCONTEXT32_SIZE);
 #endif
 
 #endif /* COMPAT_NETBSD32  _KERNEL */



CVS commit: src/tests/fs/vfs

2012-03-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 18 21:49:08 UTC 2012

Modified Files:
src/tests/fs/vfs: t_vnops.c

Log Message:
annotate fixed failures as comments.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/tests/fs/vfs/t_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/tests/fs/vfs/t_vnops.c
diff -u src/tests/fs/vfs/t_vnops.c:1.30 src/tests/fs/vfs/t_vnops.c:1.31
--- src/tests/fs/vfs/t_vnops.c:1.30	Mon Dec 12 14:11:22 2011
+++ src/tests/fs/vfs/t_vnops.c	Sun Mar 18 17:49:08 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_vnops.c,v 1.30 2011/12/12 19:11:22 njoly Exp $	*/
+/*	$NetBSD: t_vnops.c,v 1.31 2012/03/18 21:49:08 christos Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -176,10 +176,6 @@ dir_rmdirdotdot(const atf_tc_t *tc, cons
 		xerrno = ESTALE;
 	else
 		xerrno = ENOENT;
-	/*
-	if (FSTYPE_TMPFS(tc))
-		atf_tc_expect_signal(-1, PR kern/44657);
-	*/
 	ATF_REQUIRE_ERRNO(xerrno, rump_sys_chdir(..) == -1);
 	FSTEST_EXIT();
 }
@@ -296,10 +292,6 @@ rename_dir(const atf_tc_t *tc, const cha
 	if (! FSTYPE_MSDOS(tc))
 		ATF_CHECK_EQ(sb.st_nlink, 3);
 	RL(rump_sys_rmdir(pb3));
-	/*
-	if (FSTYPE_TMPFS(tc))
-		atf_tc_expect_signal(-1, PR kern/44288);
-	*/
 	RL(rump_sys_rmdir(pb1));
 }
 
@@ -327,9 +319,6 @@ rename_dotdot(const atf_tc_t *tc, const 
 		atf_tc_fail_errno(self-dotdot from);
 	atf_tc_expect_pass();
 
-	/*
-	if (FSTYPE_TMPFS(tc)) {
-		atf_tc_expect_fail(PR kern/43617);
 	}
 	*/
 	if (rump_sys_rename(dir1, dir2/..) != -1 || errno != EINVAL)
@@ -852,9 +841,10 @@ ATF_TC_FSAPPLY(lookup_simple, simple lo
 ATF_TC_FSAPPLY(lookup_complex, lookup of non-dot entries);
 ATF_TC_FSAPPLY(dir_simple, mkdir/rmdir);
 ATF_TC_FSAPPLY(dir_notempty, non-empty directories cannot be removed);
-ATF_TC_FSAPPLY(dir_rmdirdotdot, remove .. and try to cd out);
-ATF_TC_FSAPPLY(rename_dir, exercise various directory renaming ops);
-ATF_TC_FSAPPLY(rename_dotdot, rename dir ..);
+ATF_TC_FSAPPLY(dir_rmdirdotdot, remove .. and try to cd out (PR kern/44657));
+ATF_TC_FSAPPLY(rename_dir, exercise various directory renaming ops 
+(PR kern/44288));
+ATF_TC_FSAPPLY(rename_dotdot, rename dir .. (PR kern/43617));
 ATF_TC_FSAPPLY(rename_reg_nodir, rename regular files, no subdirectories);
 ATF_TC_FSAPPLY(create_nametoolong, create file with name too long);
 ATF_TC_FSAPPLY(create_exist, create with O_EXCL);



CVS commit: src/sys/arch/sparc64/sparc64

2012-03-18 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Mar 18 23:48:00 UTC 2012

Modified Files:
src/sys/arch/sparc64/sparc64: pmap.c

Log Message:
take the pmap_lock in pmap_protect().

hopefully this will avoid a problem in pmap_clear_reference()
detecting a reference remaining at the end.

when we remove most/all pmap_lock uses we probably need to remove
this check entirely, but for now this seems better.


To generate a diff of this commit:
cvs rdiff -u -r1.276 -r1.277 src/sys/arch/sparc64/sparc64/pmap.c

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

Modified files:

Index: src/sys/arch/sparc64/sparc64/pmap.c
diff -u src/sys/arch/sparc64/sparc64/pmap.c:1.276 src/sys/arch/sparc64/sparc64/pmap.c:1.277
--- src/sys/arch/sparc64/sparc64/pmap.c:1.276	Mon Feb  6 10:40:26 2012
+++ src/sys/arch/sparc64/sparc64/pmap.c	Sun Mar 18 23:48:00 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.c,v 1.276 2012/02/06 10:40:26 martin Exp $	*/
+/*	$NetBSD: pmap.c,v 1.277 2012/03/18 23:48:00 mrg Exp $	*/
 /*
  *
  * Copyright (C) 1996-1999 Eduardo Horvath.
@@ -26,7 +26,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: pmap.c,v 1.276 2012/02/06 10:40:26 martin Exp $);
+__KERNEL_RCSID(0, $NetBSD: pmap.c,v 1.277 2012/03/18 23:48:00 mrg Exp $);
 
 #undef	NO_VCACHE /* Don't forget the locked TLB in dostart */
 #define	HWREF
@@ -2123,6 +2123,7 @@ pmap_protect(struct pmap *pm, vaddr_t sv
 	}
 
 	sva = trunc_page(sva);
+	mutex_enter(pmap_lock);
 	for (; sva  eva; sva += PAGE_SIZE) {
 #ifdef DEBUG
 		/*
@@ -2130,6 +2131,7 @@ pmap_protect(struct pmap *pm, vaddr_t sv
 		 */
 		if (pm == pmap_kernel()  sva = ktext 
 		sva  roundup(ekdata, 4 * MEG)) {
+			mutex_exit(pmap_lock);
 			prom_printf(pmap_protect: va=%08x in locked TLB\n,
 			sva);
 			prom_abort();
@@ -2181,6 +2183,7 @@ pmap_protect(struct pmap *pm, vaddr_t sv
 		tlb_flush_pte(sva, pm);
 	}
 	pv_check();
+	mutex_exit(pmap_lock);
 }
 
 /*



CVS commit: src/sys/uvm

2012-03-18 Thread Masao Uebayashi
Module Name:src
Committed By:   uebayasi
Date:   Mon Mar 19 00:17:08 UTC 2012

Modified Files:
src/sys/uvm: uvm_param.h

Log Message:
Expose vm_inherit/voff_t/pgoff_t to userland to fix build.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/uvm/uvm_param.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/uvm/uvm_param.h
diff -u src/sys/uvm/uvm_param.h:1.30 src/sys/uvm/uvm_param.h:1.31
--- src/sys/uvm/uvm_param.h:1.30	Sun Mar 18 13:31:15 2012
+++ src/sys/uvm/uvm_param.h	Mon Mar 19 00:17:08 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_param.h,v 1.30 2012/03/18 13:31:15 uebayasi Exp $	*/
+/*	$NetBSD: uvm_param.h,v 1.31 2012/03/19 00:17:08 uebayasi Exp $	*/
 
 /*
  * Copyright (c) 1991, 1993
@@ -249,16 +249,6 @@ extern const int *const uvmexp_pageshift
 # endif /* VM_DEFAULT_ADDRESS */
 #endif /* !__USING_TOPDOWN_VM */
 
-/*
- * typedefs, necessary for standard UVM headers.
- */
-
-typedef unsigned int uvm_flag_t;
-
-typedef int vm_inherit_t;	/* XXX: inheritance codes */
-typedef off_t voff_t;		/* XXX: offset within a uvm_object */
-typedef voff_t pgoff_t;		/* XXX: number of pages within a uvm object */
-
 extern int		ubc_nwins;	/* number of UBC mapping windows */
 extern int		ubc_winshift;	/* shift for a UBC mapping window */
 extern u_int		uvm_emap_size;	/* size of emap */
@@ -272,5 +262,16 @@ extern u_int		uvm_emap_size;	/* size of 
 	vaddr_t)(x)) / vm_page_size) * vm_page_size)
 
 #endif /* _KERNEL */
+
+/*
+ * typedefs, necessary for standard UVM headers.
+ */
+
+typedef unsigned int uvm_flag_t;
+
+typedef int vm_inherit_t;	/* XXX: inheritance codes */
+typedef off_t voff_t;		/* XXX: offset within a uvm_object */
+typedef voff_t pgoff_t;		/* XXX: number of pages within a uvm object */
+
 #endif /* ASSEMBLER */
 #endif /* _VM_PARAM_ */



CVS commit: src/tests/fs/vfs

2012-03-18 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Mar 19 03:33:54 UTC 2012

Modified Files:
src/tests/fs/vfs: t_vnops.c

Log Message:
Finish removing the block of commented-out code from rev 1.31

Hello, christos!


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/tests/fs/vfs/t_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/tests/fs/vfs/t_vnops.c
diff -u src/tests/fs/vfs/t_vnops.c:1.31 src/tests/fs/vfs/t_vnops.c:1.32
--- src/tests/fs/vfs/t_vnops.c:1.31	Sun Mar 18 21:49:08 2012
+++ src/tests/fs/vfs/t_vnops.c	Mon Mar 19 03:33:54 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_vnops.c,v 1.31 2012/03/18 21:49:08 christos Exp $	*/
+/*	$NetBSD: t_vnops.c,v 1.32 2012/03/19 03:33:54 pgoyette Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -319,8 +319,6 @@ rename_dotdot(const atf_tc_t *tc, const 
 		atf_tc_fail_errno(self-dotdot from);
 	atf_tc_expect_pass();
 
-	}
-	*/
 	if (rump_sys_rename(dir1, dir2/..) != -1 || errno != EINVAL)
 		atf_tc_fail(other-dotdot);
 



CVS commit: src

2012-03-18 Thread Hiroyuki Bessho
Module Name:src
Committed By:   bsh
Date:   Mon Mar 19 05:38:26 UTC 2012

Modified Files:
src/external/gpl3/binutils/usr.sbin/dbsym: dbsym.8 dbsym.c
src/sys/arch/arm/conf: Makefile.arm
src/sys/conf: Makefile.kern.inc

Log Message:
adjust the size of db_symtab space automatically.
proposed on tech-toolchain@, and got no objections.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/binutils/usr.sbin/dbsym/dbsym.8 \
src/external/gpl3/binutils/usr.sbin/dbsym/dbsym.c
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/arm/conf/Makefile.arm
cvs rdiff -u -r1.152 -r1.153 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/external/gpl3/binutils/usr.sbin/dbsym/dbsym.8
diff -u src/external/gpl3/binutils/usr.sbin/dbsym/dbsym.8:1.1 src/external/gpl3/binutils/usr.sbin/dbsym/dbsym.8:1.2
--- src/external/gpl3/binutils/usr.sbin/dbsym/dbsym.8:1.1	Tue Aug 18 20:22:20 2009
+++ src/external/gpl3/binutils/usr.sbin/dbsym/dbsym.8	Mon Mar 19 05:38:26 2012
@@ -1,4 +1,4 @@
-.\	$NetBSD: dbsym.8,v 1.1 2009/08/18 20:22:20 skrll Exp $
+.\	$NetBSD: dbsym.8,v 1.2 2012/03/19 05:38:26 bsh Exp $
 .\
 .Dd November 9, 2001
 .Dt DBSYM 8
@@ -8,7 +8,7 @@
 .Nd copy kernel symbol table into db_symtab space
 .Sh SYNOPSIS
 .Nm
-.Op Fl v
+.Op Fl pv
 .Op Fl b Ar bfdname
 .Ar kernel
 .Sh DESCRIPTION
@@ -39,6 +39,14 @@ flag is given,
 will print out status information as
 it is copying the symbol table.
 .Pp
+If the
+.Fl p
+flag is given,
+.Nm
+will report the size of the kernel symbol table and the size of the
+db_symtab space.
+Two values are printed out in a line separated by a space.
+.Pp
 Note that debugging symbols are not useful to the
 .Xr ddb 4
 kernel debugger, so to minimize the size of the kernel, one should
Index: src/external/gpl3/binutils/usr.sbin/dbsym/dbsym.c
diff -u src/external/gpl3/binutils/usr.sbin/dbsym/dbsym.c:1.1 src/external/gpl3/binutils/usr.sbin/dbsym/dbsym.c:1.2
--- src/external/gpl3/binutils/usr.sbin/dbsym/dbsym.c:1.1	Tue Aug 18 20:22:20 2009
+++ src/external/gpl3/binutils/usr.sbin/dbsym/dbsym.c	Mon Mar 19 05:38:26 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: dbsym.c,v 1.1 2009/08/18 20:22:20 skrll Exp $ */
+/* $NetBSD: dbsym.c,v 1.2 2012/03/19 05:38:26 bsh Exp $ */
 
 /*
  * Copyright (c) 2001 Simon Burge (for Wasabi Systems)
@@ -39,7 +39,7 @@
 __COPYRIGHT(@(#) Copyright (c) 1996 Christopher G. Demetriou.\
   Copyright 2001 Simon Burge.\
   All rights reserved.);
-__RCSID($NetBSD: dbsym.c,v 1.1 2009/08/18 20:22:20 skrll Exp $);
+__RCSID($NetBSD: dbsym.c,v 1.2 2012/03/19 05:38:26 bsh Exp $);
 #endif /* not lint */
 
 #include sys/param.h
@@ -75,6 +75,7 @@ int	find_symtab(bfd *, struct symbols *)
 int	load_symtab(bfd *, int fd, char **, u_int32_t *);
 
 int	verbose;
+int	printsize;
 
 int
 main(int argc, char **argv)
@@ -90,7 +91,7 @@ main(int argc, char **argv)
 	setprogname(argv[0]);
 
 	bfdname = NULL;
-	while ((ch = getopt(argc, argv, b:v)) != -1)
+	while ((ch = getopt(argc, argv, b:pv)) != -1)
 		switch (ch) {
 		case 'b':
 			bfdname = optarg;
@@ -98,6 +99,9 @@ main(int argc, char **argv)
 		case 'v':
 			verbose = 1;
 			break;
+		case 'p':
+			printsize = 1;
+			break;
 		case '?':
 		default:
 			usage();
@@ -150,6 +154,11 @@ main(int argc, char **argv)
 	symtab_space = bfd_get_32(abfd,
 	mappedkfile[db_symtab_symbols[X_DB_SYMTABSIZE].offset]);
 
+	if (printsize) {
+		printf(%d %d\n, symtabsize, symtab_space);
+		goto done;
+	}
+
 	if (symtabsize  symtab_space)
 		errx(1, symbol table (%u bytes) too big for buffer (%u bytes)\n
 		Increase options SYMTAB_SPACE in your kernel config,
@@ -168,6 +177,7 @@ main(int argc, char **argv)
 	bfd_put_32(abfd, symtabsize,
 	mappedkfile[db_symtab_symbols[X_DB_SYMTABSIZE].offset]);
 
+done:
 	munmap(mappedkfile, ksb.st_size);
 	close(kfd);
 

Index: src/sys/arch/arm/conf/Makefile.arm
diff -u src/sys/arch/arm/conf/Makefile.arm:1.32 src/sys/arch/arm/conf/Makefile.arm:1.33
--- src/sys/arch/arm/conf/Makefile.arm:1.32	Sun Apr 27 03:23:13 2008
+++ src/sys/arch/arm/conf/Makefile.arm	Mon Mar 19 05:38:26 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.arm,v 1.32 2008/04/27 03:23:13 tsutsui Exp $
+#	$NetBSD: Makefile.arm,v 1.33 2012/03/19 05:38:26 bsh Exp $
 
 # Makefile for NetBSD
 #
@@ -63,7 +63,8 @@ LINKFLAGS_NORMAL=	-X
 # Strip ARM mapping symbols from the kernel image, as they interfere
 # with ddb. Do it differently if 'makeoptions DEBUG=-g' was specified.
 .if !defined(DEBUG) || empty(DEBUG:M-g*)
-SYSTEM_LD_TAIL?=	@${OBJCOPY} --strip-symbol='$$a'	 \
+SYSTEM_LD_TAIL?=	@${SYSTEM_LD_TAIL_DBSYM} ; \
+			${OBJCOPY} --strip-symbol='$$a'	 \
 --strip-symbol='$$t'	 \
 --strip-symbol='$$d' $@	;\
 			${SIZE} $@; chmod 755 $@

Index: src/sys/conf/Makefile.kern.inc
diff -u src/sys/conf/Makefile.kern.inc:1.152 src/sys/conf/Makefile.kern.inc:1.153
--- src/sys/conf/Makefile.kern.inc:1.152	Sun Feb 12 16:34:11 2012

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

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 06:20:52 UTC 2012

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

Log Message:
Get rid of the weird macros.


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

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



CVS commit: src/tests

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 07:14:08 UTC 2012

Modified Files:
src/tests/include/sys: t_types.c
src/tests/lib/libc/gen: t_dir.c t_humanize_number.c t_siginfo.c
src/tests/lib/libc/termios: t_tcsetpgrp.c
src/tests/lib/librt: t_sched.c
src/tests/lib/libutil: t_parsedate.c

Log Message:
To be on the safe side, use the category/number notation when referring to
PRs (otherwise third-party sed-scripts might miss the references). Also
remove white-space.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/include/sys/t_types.c
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/gen/t_dir.c
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libc/gen/t_humanize_number.c
cvs rdiff -u -r1.13 -r1.14 src/tests/lib/libc/gen/t_siginfo.c
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/termios/t_tcsetpgrp.c
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/librt/t_sched.c
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libutil/t_parsedate.c

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



CVS commit: src/regress/lib/libc

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 07:54:00 UTC 2012

Modified Files:
src/regress/lib/libc: Makefile
Removed Files:
src/regress/lib/libc/int_fmtio: Makefile fmtio_check.c

Log Message:
The inttypes(3) check has already been moved to ATF.


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/regress/lib/libc/Makefile
cvs rdiff -u -r1.4 -r0 src/regress/lib/libc/int_fmtio/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/int_fmtio/fmtio_check.c

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



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

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 08:13:57 UTC 2012

Modified Files:
src/tests/lib/libc/stdio: t_printf.c

Log Message:
Verify that PR lib/22019 is no longer an issue.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libc/stdio/t_printf.c

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



CVS commit: src

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 08:52:08 UTC 2012

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/lib/libc/gen: Makefile
Added Files:
src/tests/lib/libc/gen: t_fnmatch.c

Log Message:
Add a case for PR lib/41558. It is unclear whether this is a bug, but at
least it is documented now. Probably it would be better to follow Linux,
where the test case does not fail.


To generate a diff of this commit:
cvs rdiff -u -r1.446 -r1.447 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.35 -r1.36 src/tests/lib/libc/gen/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/lib/libc/gen/t_fnmatch.c

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



CVS commit: src/tests/sbin/newfs

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 09:31:50 UTC 2012

Modified Files:
src/tests/sbin/newfs: quotas_common.sh t_enable_quotas.sh

Log Message:
Add missing copyright and remove white space.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/sbin/newfs/quotas_common.sh \
src/tests/sbin/newfs/t_enable_quotas.sh

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



CVS commit: src/tests

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 09:46:50 UTC 2012

Modified Files:
src/tests/kernel: t_filedesc.c t_rnd.c
src/tests/net/icmp: t_forward.c
src/tests/net/if_loop: t_pr.c
src/tests/sbin/ifconfig: t_nonexistent.sh
src/tests/sbin/sysctl: t_perm.sh
src/tests/usr.bin/unifdef: t_basic.sh

Log Message:
Move more PR references from comments to ATF's descr.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/kernel/t_filedesc.c \
src/tests/kernel/t_rnd.c
cvs rdiff -u -r1.7 -r1.8 src/tests/net/icmp/t_forward.c
cvs rdiff -u -r1.6 -r1.7 src/tests/net/if_loop/t_pr.c
cvs rdiff -u -r1.3 -r1.4 src/tests/sbin/ifconfig/t_nonexistent.sh
cvs rdiff -u -r1.5 -r1.6 src/tests/sbin/sysctl/t_perm.sh
cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/unifdef/t_basic.sh

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



CVS commit: src

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 10:12:31 UTC 2012

Modified Files:
src/distrib/sets/lists/tests: mi
src/etc/mtree: NetBSD.dist.tests
src/tests/usr.bin: Makefile
Added Files:
src/tests/usr.bin/sed: Makefile t_sed.sh

Log Message:
Add a test case for PR bin/28126. Does not fail with GNU sed.


To generate a diff of this commit:
cvs rdiff -u -r1.447 -r1.448 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.64 -r1.65 src/etc/mtree/NetBSD.dist.tests
cvs rdiff -u -r1.9 -r1.10 src/tests/usr.bin/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/sed/Makefile \
src/tests/usr.bin/sed/t_sed.sh

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



CVS commit: src/tests/usr.sbin/mtree

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 11:50:55 UTC 2012

Modified Files:
src/tests/usr.sbin/mtree: t_mtree.sh

Log Message:
Verify that bin/25693 is no longer an issue.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.sbin/mtree/t_mtree.sh

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



CVS commit: src/sys/dev/pci

2012-03-18 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar 18 12:47:02 UTC 2012

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

Log Message:
Split device_t


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/pci/alipm.c

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



CVS commit: [netbsd-5] src/gnu

2012-03-18 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Mar 18 13:27:41 UTC 2012

Modified Files:
src/gnu/dist/gcc4/gcc [netbsd-5]: crtstuff.c gcc.c
src/gnu/dist/gcc4/gcc/config [netbsd-5]: netbsd-elf.h t-netbsd
src/gnu/lib/libgcc4/arch [netbsd-5]: alpha.mk arm.mk armeb.mk hppa.mk
i386.mk m68000.mk m68k.mk mipseb.mk mipsel.mk powerpc.mk
powerpc64.mk sh3eb.mk sh3el.mk sparc.mk sparc64.mk vax.mk x86_64.mk
src/gnu/usr.bin/gcc4/arch/alpha [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/arm [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/armeb [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/hppa [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/i386 [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/m68000 [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/m68k [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/mipseb [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/mipsel [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/powerpc [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/powerpc64 [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/sh3eb [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/sh3el [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/sparc [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/sparc64 [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/vax [netbsd-5]: defs.mk
src/gnu/usr.bin/gcc4/arch/x86_64 [netbsd-5]: defs.mk
Added Files:
src/gnu/dist/gcc4/gcc [netbsd-5]: unwind-dw2-fde-phdr.c

Log Message:
Apply patch, requested by skrll in ticket #1725
gnu/dist/gcc4/gcc/crtstuff.cpatch
gnu/dist/gcc4/gcc/gcc.c patch
gnu/dist/gcc4/gcc/config/netbsd-elf.h   patch
gnu/dist/gcc4/gcc/config/t-netbsd   patch
gnu/lib/libgcc4/arch/alpha.mk   patch
gnu/lib/libgcc4/arch/arm.mk patch
gnu/lib/libgcc4/arch/armeb.mk   patch
gnu/lib/libgcc4/arch/hppa.mkpatch
gnu/lib/libgcc4/arch/i386.mkpatch
gnu/lib/libgcc4/arch/m68000.mk  patch
gnu/lib/libgcc4/arch/m68k.mkpatch
gnu/lib/libgcc4/arch/mipseb.mk  patch
gnu/lib/libgcc4/arch/mipsel.mk  patch
gnu/lib/libgcc4/arch/powerpc.mk patch
gnu/lib/libgcc4/arch/powerpc64.mk   patch
gnu/lib/libgcc4/arch/sh3eb.mk   patch
gnu/lib/libgcc4/arch/sh3el.mk   patch
gnu/lib/libgcc4/arch/sparc.mk   patch
gnu/lib/libgcc4/arch/sparc64.mk patch
gnu/lib/libgcc4/arch/vax.mk patch
gnu/lib/libgcc4/arch/x86_64.mk  patch
gnu/usr.bin/gcc4/arch/alpha/defs.mk patch
gnu/usr.bin/gcc4/arch/arm/defs.mk   patch
gnu/usr.bin/gcc4/arch/armeb/defs.mk patch
gnu/usr.bin/gcc4/arch/hppa/defs.mk  patch
gnu/usr.bin/gcc4/arch/i386/defs.mk  patch
gnu/usr.bin/gcc4/arch/m68000/defs.mkpatch
gnu/usr.bin/gcc4/arch/m68k/defs.mk  patch
gnu/usr.bin/gcc4/arch/mipseb/defs.mkpatch
gnu/usr.bin/gcc4/arch/mipsel/defs.mkpatch
gnu/usr.bin/gcc4/arch/powerpc/defs.mk   patch
gnu/usr.bin/gcc4/arch/powerpc64/defs.mk patch
gnu/usr.bin/gcc4/arch/sh3eb/defs.mk patch
gnu/usr.bin/gcc4/arch/sh3el/defs.mk patch
gnu/usr.bin/gcc4/arch/sparc/defs.mk patch
gnu/usr.bin/gcc4/arch/sparc64/defs.mk   patch
gnu/usr.bin/gcc4/arch/vax/defs.mk   patch
gnu/usr.bin/gcc4/arch/x86_64/defs.mkpatch
gnu/dist/gcc4/gcc/unwind-dw2-fde-phdr.c patch

Instruct gcc to use dl_iterate_phdr to find exception unwind frames.
This avoids the registration/deregistration of frames that can
screwed up if the right set of libraries isn't linked together.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.26.1 src/gnu/dist/gcc4/gcc/crtstuff.c
cvs rdiff -u -r1.4 -r1.4.18.1 src/gnu/dist/gcc4/gcc/gcc.c
cvs rdiff -u -r0 -r1.1.2.1 src/gnu/dist/gcc4/gcc/unwind-dw2-fde-phdr.c
cvs rdiff -u -r1.2 -r1.2.26.1 src/gnu/dist/gcc4/gcc/config/netbsd-elf.h
cvs rdiff -u -r1.1.1.1 -r1.1.1.1.26.1 src/gnu/dist/gcc4/gcc/config/t-netbsd
cvs rdiff -u -r1.3 -r1.3.18.1 src/gnu/lib/libgcc4/arch/alpha.mk \
src/gnu/lib/libgcc4/arch/x86_64.mk
cvs rdiff -u -r1.3 -r1.3.12.1 src/gnu/lib/libgcc4/arch/arm.mk \
src/gnu/lib/libgcc4/arch/hppa.mk src/gnu/lib/libgcc4/arch/mipseb.mk \
src/gnu/lib/libgcc4/arch/mipsel.mk src/gnu/lib/libgcc4/arch/sh3eb.mk \
src/gnu/lib/libgcc4/arch/sh3el.mk 

CVS commit: [netbsd-5] src/doc

2012-03-18 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Mar 18 13:28:08 UTC 2012

Modified Files:
src/doc [netbsd-5]: CHANGES-5.2

Log Message:
Ticket 1725


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.149 -r1.1.2.150 src/doc/CHANGES-5.2

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



CVS commit: src/sys/uvm

2012-03-18 Thread Masao Uebayashi
Module Name:src
Committed By:   uebayasi
Date:   Sun Mar 18 13:31:15 UTC 2012

Modified Files:
src/sys/uvm: uvm_extern.h uvm_param.h

Log Message:
Move base type definitions from uvm_extern.h to uvm_param.h so that
other sources can easily include part of UVM headers without the whole
uvm_extern.h (e.g. sys/vnode.h wants only uvm_object.h).


To generate a diff of this commit:
cvs rdiff -u -r1.181 -r1.182 src/sys/uvm/uvm_extern.h
cvs rdiff -u -r1.29 -r1.30 src/sys/uvm/uvm_param.h

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



CVS commit: [netbsd-5] src/libexec/ld.elf_so

2012-03-18 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Mar 18 14:06:13 UTC 2012

Modified Files:
src/libexec/ld.elf_so [netbsd-5]: headers.c

Log Message:
Apply patch, requested by skrll in ticket 1724:
libexec/ld.elf_so/headers.c 1.37 via patch
Add cast so that usr.bin/ldd/elf32 builds.


To generate a diff of this commit:
cvs rdiff -u -r1.26.10.2 -r1.26.10.3 src/libexec/ld.elf_so/headers.c

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



CVS commit: src

2012-03-18 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Sun Mar 18 14:12:56 UTC 2012

Modified Files:
src/distrib/vax/ramdisk: Makefile
src/sys/arch/vax/conf: INSTALL

Log Message:
Bump the ramdisk size so that the contents fits again.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/distrib/vax/ramdisk/Makefile
cvs rdiff -u -r1.58 -r1.59 src/sys/arch/vax/conf/INSTALL

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



CVS commit: [netbsd-5] src/doc

2012-03-18 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Mar 18 14:14:25 UTC 2012

Modified Files:
src/doc [netbsd-5]: CHANGES-5.2

Log Message:
Ajust entry for 1724


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.150 -r1.1.2.151 src/doc/CHANGES-5.2

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



CVS commit: src/lib/libc/gen

2012-03-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 18 14:34:28 UTC 2012

Modified Files:
src/lib/libc/gen: nlist_ecoff.c

Log Message:
fix lint.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/lib/libc/gen/nlist_ecoff.c

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



CVS commit: src/tests/include/sys

2012-03-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 18 15:31:00 UTC 2012

Modified Files:
src/tests/include/sys: Makefile
Added Files:
src/tests/include/sys: t_cdefs.c

Log Message:
test the __type macros


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/include/sys/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/include/sys/t_cdefs.c

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/tests

2012-03-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 18 15:32:24 UTC 2012

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

Log Message:
add t_cdefs


To generate a diff of this commit:
cvs rdiff -u -r1.449 -r1.450 src/distrib/sets/lists/tests/mi

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



CVS commit: src/tests/usr.bin/sed

2012-03-18 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sun Mar 18 15:35:27 UTC 2012

Modified Files:
src/tests/usr.bin/sed: t_sed.sh

Log Message:
Add some tests for selection of line ranges, based on a case that came
across the POSIX list a few days ago and some related phenomena.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/sed/t_sed.sh

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



CVS commit: src/sys/sys

2012-03-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 18 16:20:49 UTC 2012

Modified Files:
src/sys/sys: cdefs.h

Log Message:
add constcond


To generate a diff of this commit:
cvs rdiff -u -r1.95 -r1.96 src/sys/sys/cdefs.h

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



CVS commit: src/lib/libc/arch/m68k/gen

2012-03-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 18 16:26:34 UTC 2012

Modified Files:
src/lib/libc/arch/m68k/gen: _lwp.c

Log Message:
fix lint


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/libc/arch/m68k/gen/_lwp.c

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



CVS commit: src/sys/sys

2012-03-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 18 16:30:55 UTC 2012

Modified Files:
src/sys/sys: cdefs.h

Log Message:
remove extra ;


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/sys/sys/cdefs.h

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



CVS commit: src/lib/libc/rpc

2012-03-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 18 16:43:34 UTC 2012

Modified Files:
src/lib/libc/rpc: xdr.c

Log Message:
parenthesize.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/lib/libc/rpc/xdr.c

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



CVS commit: src/usr.bin/find

2012-03-18 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sun Mar 18 17:09:46 UTC 2012

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

Log Message:
Avoid testing a possibly uninitialized errno value when using -exit.
Closes PR 44973 (change is a somewhat more principled equivalent of
the patch suggested there) although I cannot replicate the reported
behavior unless I explicitly prepare errno with a nonzero value before
the fts_read loop.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/usr.bin/find/find.c

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



CVS commit: src/sys/dev/pci

2012-03-18 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Sun Mar 18 17:29:06 UTC 2012

Modified Files:
src/sys/dev/pci: pcidevs

Log Message:
Add VIA VX900 media system processor IDE controller.
PR/46166 from Hiroshi Tokuda.


To generate a diff of this commit:
cvs rdiff -u -r1.1105 -r1.1106 src/sys/dev/pci/pcidevs

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



CVS commit: src/sys/dev/pci

2012-03-18 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Sun Mar 18 17:30:21 UTC 2012

Modified Files:
src/sys/dev/pci: pcidevs.h pcidevs_data.h

Log Message:
Regen from pcidevs rev 1.1106:
 Add VIA VX900 media system processor IDE controller.
 PR/46166 from Hiroshi Tokuda.


To generate a diff of this commit:
cvs rdiff -u -r1.1100 -r1.1101 src/sys/dev/pci/pcidevs.h
cvs rdiff -u -r1.1099 -r1.1100 src/sys/dev/pci/pcidevs_data.h

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



CVS commit: src/sys/dev/pci

2012-03-18 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Sun Mar 18 17:50:43 UTC 2012

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

Log Message:
Add UDMA support for VIA VX900 media system processor IDE controller.
PR/46166 from Hiroshi Tokuda.

This should be pulled up to netbsd-6, since ZOTAC ZBOX nano VD01
http://www.zotacusa.com/zbox-nano-vd01.html
exhibited at NetBSD booth in Open Source Conference 2012 Tokyo Spring
was favored by many people.


To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 src/sys/dev/pci/viaide.c

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



CVS commit: src/sys/sys

2012-03-18 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Sun Mar 18 17:59:57 UTC 2012

Modified Files:
src/sys/sys: ucontext.h

Log Message:
Add a semicolon to __CTASSERT() since it was removed from the macro
in cdefs.h rev 1.97 by christos.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/sys/ucontext.h

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



CVS commit: src/tests/usr.bin/find

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 18:32:16 UTC 2012

Modified Files:
src/tests/usr.bin/find: t_find.sh

Log Message:
Now that this works, test also some random exit statuses.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/find/t_find.sh

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



CVS commit: src/tests/usr.bin/find

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 19:11:31 UTC 2012

Modified Files:
src/tests/usr.bin/find: t_find.sh

Log Message:
Also verify that PR bin/44179 is no longer an issue.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/find/t_find.sh

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



CVS commit: src/tests/usr.bin/find

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 19:21:53 UTC 2012

Modified Files:
src/tests/usr.bin/find: t_find.sh

Log Message:
Add a better check for the previous.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/find/t_find.sh

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



CVS commit: src/sys/dev

2012-03-18 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar 18 21:05:21 UTC 2012

Modified Files:
src/sys/dev/ic: mpt.c mpt_netbsd.c mpt_netbsd.h
src/sys/dev/pci: mpt_pci.c

Log Message:
Split device_t


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/ic/mpt.c
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/ic/mpt_netbsd.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/ic/mpt_netbsd.h
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/pci/mpt_pci.c

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



CVS commit: src/tests/usr.bin/shmif_dumpbus

2012-03-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 18 21:23:57 UTC 2012

Modified Files:
src/tests/usr.bin/shmif_dumpbus: t_basic.sh

Log Message:
say what happened.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/shmif_dumpbus/t_basic.sh

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



CVS commit: src/sys/compat/sys

2012-03-18 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun Mar 18 21:48:47 UTC 2012

Modified Files:
src/sys/compat/sys: ucontext.h

Log Message:
Add missing semi-colon.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/compat/sys/ucontext.h

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



CVS commit: src/tests/fs/vfs

2012-03-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 18 21:49:08 UTC 2012

Modified Files:
src/tests/fs/vfs: t_vnops.c

Log Message:
annotate fixed failures as comments.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/tests/fs/vfs/t_vnops.c

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



CVS commit: src/sys/uvm

2012-03-18 Thread Masao Uebayashi
Module Name:src
Committed By:   uebayasi
Date:   Mon Mar 19 00:17:08 UTC 2012

Modified Files:
src/sys/uvm: uvm_param.h

Log Message:
Expose vm_inherit/voff_t/pgoff_t to userland to fix build.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/uvm/uvm_param.h

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



CVS commit: src/tests/fs/vfs

2012-03-18 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Mar 19 03:33:54 UTC 2012

Modified Files:
src/tests/fs/vfs: t_vnops.c

Log Message:
Finish removing the block of commented-out code from rev 1.31

Hello, christos!


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/tests/fs/vfs/t_vnops.c

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



CVS commit: src

2012-03-18 Thread Hiroyuki Bessho
Module Name:src
Committed By:   bsh
Date:   Mon Mar 19 05:38:26 UTC 2012

Modified Files:
src/external/gpl3/binutils/usr.sbin/dbsym: dbsym.8 dbsym.c
src/sys/arch/arm/conf: Makefile.arm
src/sys/conf: Makefile.kern.inc

Log Message:
adjust the size of db_symtab space automatically.
proposed on tech-toolchain@, and got no objections.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/binutils/usr.sbin/dbsym/dbsym.8 \
src/external/gpl3/binutils/usr.sbin/dbsym/dbsym.c
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/arm/conf/Makefile.arm
cvs rdiff -u -r1.152 -r1.153 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.