CVS commit: src/doc/roadmaps

2016-05-04 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Thu May  5 06:17:45 UTC 2016

Modified Files:
src/doc/roadmaps: storage

Log Message:
mention some of the other known severe wapbl problems


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/doc/roadmaps/storage

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

Modified files:

Index: src/doc/roadmaps/storage
diff -u src/doc/roadmaps/storage:1.12 src/doc/roadmaps/storage:1.13
--- src/doc/roadmaps/storage:1.12	Sun May  1 20:51:36 2016
+++ src/doc/roadmaps/storage	Thu May  5 06:17:45 2016
@@ -1,4 +1,4 @@
-$NetBSD: storage,v 1.12 2016/05/01 20:51:36 dholland Exp $
+$NetBSD: storage,v 1.13 2016/05/05 06:17:45 dholland Exp $
 
 NetBSD Storage Roadmap
 ==
@@ -90,7 +90,10 @@ best option at this point is:
 
 + Fixing WAPBL (e.g. to flush newly allocated/newly written blocks to
 disk early) has been examined by several people who know the code base
-and judged difficult. Still, it might be the best way forward.
+and judged difficult. Also, some other problems have come to light
+more recently; e.g. PR 50725, PR 47146, and a problem where truncating
+large sparse files takes ~forever. Also see PR 45676. Still, it might
+be the best way forward.
 
 + There is another journaling FFS; the Harvard one done by Margo
 Seltzer's group some years back. We have a copy of this, but as it was



CVS commit: src/tests/lib/libutil

2016-05-04 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Thu May  5 02:12:21 UTC 2016

Modified Files:
src/tests/lib/libutil: t_parsedate.c

Log Message:
Make the 9 months ago test, when reverting from late November to the
end of Feburary just a little less bogus (stupid cut & paste error).


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 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/lib/libutil/t_parsedate.c
diff -u src/tests/lib/libutil/t_parsedate.c:1.23 src/tests/lib/libutil/t_parsedate.c:1.24
--- src/tests/lib/libutil/t_parsedate.c:1.23	Wed May  4 18:36:46 2016
+++ src/tests/lib/libutil/t_parsedate.c	Thu May  5 02:12:21 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: t_parsedate.c,v 1.23 2016/05/04 18:36:46 gson Exp $ */
+/* $NetBSD: t_parsedate.c,v 1.24 2016/05/05 02:12:21 kre Exp $ */
 /*-
  * Copyright (c) 2010, 2015 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,7 +29,7 @@
  */
 
 #include 
-__RCSID("$NetBSD: t_parsedate.c,v 1.23 2016/05/04 18:36:46 gson Exp $");
+__RCSID("$NetBSD: t_parsedate.c,v 1.24 2016/05/05 02:12:21 kre Exp $");
 
 #include 
 #include 
@@ -249,7 +249,7 @@ ATF_TC_BODY(relative, tc)
 	q = mktime(&tm);		\
 	ATF_CHECK_EQ_MSG(p, q,		\
 	"From %jd (%24.24s) using \"%s\", obtained %jd (%24.24s); expected %jd (%24.24s)", \
-	now, ctime_r(&now, nb),	\
+	(uintmax_t)now, ctime_r(&now, nb),\
 	s, (uintmax_t)p, ctime_r(&p, pb), (uintmax_t)q, 		\
 	ctime_r(&q, qb));		\
 } while (/*CONSTCOND*/0)
@@ -375,7 +375,7 @@ ATF_TC_BODY(relative, tc)
 		ATF_CHECK(localtime_r(&now, &tm) != NULL);
 		tm.tm_mon -= 9;
 		if (tm.tm_mon == 1 && tm.tm_mday > 28 + isleap(tm.tm_year))
-			tm.tm_mday = tm.tm_mday > 28 + isleap(tm.tm_year);
+			tm.tm_mday = 28 + isleap(tm.tm_year);
 		else if ((tm.tm_mon == -9 || tm.tm_mon == -7 ||
 		tm.tm_mon == -2) && tm.tm_mday == 31)
 			tm.tm_mday = 30;



CVS commit: [netbsd-7-0] src/doc

2016-05-04 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Wed May  4 22:56:45 UTC 2016

Modified Files:
src/doc [netbsd-7-0]: CHANGES-7.0.1

Log Message:
1165


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.52 -r1.1.2.53 src/doc/CHANGES-7.0.1

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-7.0.1
diff -u src/doc/CHANGES-7.0.1:1.1.2.52 src/doc/CHANGES-7.0.1:1.1.2.53
--- src/doc/CHANGES-7.0.1:1.1.2.52	Fri Apr 29 19:24:46 2016
+++ src/doc/CHANGES-7.0.1	Wed May  4 22:56:45 2016
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-7.0.1,v 1.1.2.52 2016/04/29 19:24:46 snj Exp $
+# $NetBSD: CHANGES-7.0.1,v 1.1.2.53 2016/05/04 22:56:45 snj Exp $
 
 A complete list of changes from the NetBSD 7.0 release to the NetBSD 7.0.1
 release:
@@ -2321,3 +2321,396 @@ sys/miscfs/specfs/spec_vnops.c			1.161, 
 	PR kern/50467. 
 	[hannken, ticket #1154]
 
+crypto/external/bsd/openssl/dist/CHANGES	up to 1.11
+crypto/external/bsd/openssl/dist/Makefile	up to 1.12
+crypto/external/bsd/openssl/dist/NEWS		up to 1.11
+crypto/external/bsd/openssl/dist/README		up to 1.11
+crypto/external/bsd/openssl/dist/openssl.spec	up to 1.11
+crypto/external/bsd/openssl/dist/apps/pkcs7.c	up to 1.1.1.4
+crypto/external/bsd/openssl/dist/crypto/opensslv.h up to 1.20
+crypto/external/bsd/openssl/dist/crypto/asn1/a_bytes.c up to 1.1.1.3
+crypto/external/bsd/openssl/dist/crypto/asn1/a_d2i_fp.c up to 1.4
+crypto/external/bsd/openssl/dist/crypto/asn1/a_type.c up to 1.4
+crypto/external/bsd/openssl/dist/crypto/asn1/asn1_lib.c up to 1.1.1.4
+crypto/external/bsd/openssl/dist/crypto/asn1/asn1_par.c up to 1.1.1.5
+crypto/external/bsd/openssl/dist/crypto/asn1/t_x509.c up to 1.1.1.6
+crypto/external/bsd/openssl/dist/crypto/asn1/tasn_dec.c up to 1.5
+crypto/external/bsd/openssl/dist/crypto/asn1/tasn_enc.c up to 1.5
+crypto/external/bsd/openssl/dist/crypto/asn1/x_name.c up to 1.1.1.5
+crypto/external/bsd/openssl/dist/crypto/asn1/x_x509.c up to 1.1.1.6
+crypto/external/bsd/openssl/dist/crypto/bn/asm/x86-mont.pl up to 1.1.1.3
+crypto/external/bsd/openssl/dist/crypto/bn/asm/x86_64-mont.pl up to 1.1.1.4
+crypto/external/bsd/openssl/dist/crypto/bn/asm/x86_64-mont5.pl up to 1.1.1.5
+crypto/external/bsd/openssl/dist/crypto/comp/comp.h up to 1.1.1.3
+crypto/external/bsd/openssl/dist/crypto/evp/Makefile up to 1.6
+crypto/external/bsd/openssl/dist/crypto/evp/digest.c up to 1.1.1.7
+crypto/external/bsd/openssl/dist/crypto/evp/e_aes_cbc_hmac_sha1.c up to 1.1.1.7
+crypto/external/bsd/openssl/dist/crypto/evp/encode.c up to 1.1.1.7
+crypto/external/bsd/openssl/dist/crypto/evp/evp_enc.c up to 1.5
+crypto/external/bsd/openssl/dist/crypto/pem/pem_lib.c up to 1.1.1.7
+crypto/external/bsd/openssl/dist/crypto/pem/pvkfmt.c up to 1.1.1.7
+crypto/external/bsd/openssl/dist/crypto/x509/x509.h up to 1.1.1.7
+crypto/external/bsd/openssl/dist/crypto/x509/x509_err.c up to 1.1.1.3
+crypto/external/bsd/openssl/dist/crypto/x509/x509_obj.c up to 1.1.1.3
+crypto/external/bsd/openssl/dist/doc/apps/ciphers.pod up to 1.1.1.7
+crypto/external/bsd/openssl/dist/doc/crypto/EVP_EncodeInit.pod up to 1.1.1.1
+crypto/external/bsd/openssl/dist/doc/crypto/evp.pod up to 1.1.1.2
+crypto/external/bsd/openssl/dist/ssl/d1_both.c	up to 1.8
+crypto/external/bsd/openssl/dist/ssl/s2_lib.c	up to 1.6
+crypto/external/bsd/openssl/dist/ssl/s2_meth.c	up to 1.1.1.3
+crypto/external/bsd/openssl/dist/ssl/s3_clnt.c	up to 1.18
+crypto/external/bsd/openssl/dist/ssl/s3_lib.c	up to 1.18
+crypto/external/bsd/openssl/dist/ssl/ssl.h	up to 1.15
+crypto/external/bsd/openssl/dist/ssl/ssl_ciph.c	up to 1.11
+crypto/external/bsd/openssl/dist/ssl/ssl_locl.h	up to 1.13
+crypto/external/bsd/openssl/dist/ssl/t1_lib.c	up to 1.21
+crypto/external/bsd/openssl/dist/test/testfipsssl up to 1.1.1.2
+crypto/external/bsd/openssl/dist/util/libeay.num up to 1.1.1.10
+crypto/external/bsd/openssl/dist/util/mk1mf.pl	up to 1.8
+crypto/external/bsd/openssl/dist/util/mkdef.pl	up to 1.4
+crypto/external/bsd/openssl/dist/util/ssleay.num up to 1.4
+crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_OBJECT_new.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_STRING_length.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_STRING_new.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_STRING_print_ex.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_generate_nconf.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/BIO_ctrl.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_base64.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_buffer.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_cipher.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_md.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_null.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_ssl.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/B

CVS commit: [netbsd-7] src/doc

2016-05-04 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Wed May  4 22:52:13 UTC 2016

Modified Files:
src/doc [netbsd-7]: CHANGES-7.1

Log Message:
1165


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.82 -r1.1.2.83 src/doc/CHANGES-7.1

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-7.1
diff -u src/doc/CHANGES-7.1:1.1.2.82 src/doc/CHANGES-7.1:1.1.2.83
--- src/doc/CHANGES-7.1:1.1.2.82	Fri Apr 29 19:17:22 2016
+++ src/doc/CHANGES-7.1	Wed May  4 22:52:13 2016
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-7.1,v 1.1.2.82 2016/04/29 19:17:22 snj Exp $
+# $NetBSD: CHANGES-7.1,v 1.1.2.83 2016/05/04 22:52:13 snj Exp $
 
 A complete list of changes from the NetBSD 7.0 release to the NetBSD 7.1
 release:
@@ -3821,3 +3821,396 @@ sys/miscfs/specfs/spec_vnops.c			1.161, 
 PR kern/50467.
 	[hannken, ticket #1154]
 
+crypto/external/bsd/openssl/dist/CHANGES	up to 1.11
+crypto/external/bsd/openssl/dist/Makefile	up to 1.12
+crypto/external/bsd/openssl/dist/NEWS		up to 1.11
+crypto/external/bsd/openssl/dist/README		up to 1.11
+crypto/external/bsd/openssl/dist/openssl.spec	up to 1.11
+crypto/external/bsd/openssl/dist/apps/pkcs7.c	up to 1.1.1.4
+crypto/external/bsd/openssl/dist/crypto/opensslv.h up to 1.20
+crypto/external/bsd/openssl/dist/crypto/asn1/a_bytes.c up to 1.1.1.3
+crypto/external/bsd/openssl/dist/crypto/asn1/a_d2i_fp.c up to 1.4
+crypto/external/bsd/openssl/dist/crypto/asn1/a_type.c up to 1.4
+crypto/external/bsd/openssl/dist/crypto/asn1/asn1_lib.c up to 1.1.1.4
+crypto/external/bsd/openssl/dist/crypto/asn1/asn1_par.c up to 1.1.1.5
+crypto/external/bsd/openssl/dist/crypto/asn1/t_x509.c up to 1.1.1.6
+crypto/external/bsd/openssl/dist/crypto/asn1/tasn_dec.c up to 1.5
+crypto/external/bsd/openssl/dist/crypto/asn1/tasn_enc.c up to 1.5
+crypto/external/bsd/openssl/dist/crypto/asn1/x_name.c up to 1.1.1.5
+crypto/external/bsd/openssl/dist/crypto/asn1/x_x509.c up to 1.1.1.6
+crypto/external/bsd/openssl/dist/crypto/bn/asm/x86-mont.pl up to 1.1.1.3
+crypto/external/bsd/openssl/dist/crypto/bn/asm/x86_64-mont.pl up to 1.1.1.4
+crypto/external/bsd/openssl/dist/crypto/bn/asm/x86_64-mont5.pl up to 1.1.1.5
+crypto/external/bsd/openssl/dist/crypto/comp/comp.h up to 1.1.1.3
+crypto/external/bsd/openssl/dist/crypto/evp/Makefile up to 1.6
+crypto/external/bsd/openssl/dist/crypto/evp/digest.c up to 1.1.1.7
+crypto/external/bsd/openssl/dist/crypto/evp/e_aes_cbc_hmac_sha1.c up to 1.1.1.7
+crypto/external/bsd/openssl/dist/crypto/evp/encode.c up to 1.1.1.7
+crypto/external/bsd/openssl/dist/crypto/evp/evp_enc.c up to 1.5
+crypto/external/bsd/openssl/dist/crypto/pem/pem_lib.c up to 1.1.1.7
+crypto/external/bsd/openssl/dist/crypto/pem/pvkfmt.c up to 1.1.1.7
+crypto/external/bsd/openssl/dist/crypto/x509/x509.h up to 1.1.1.7
+crypto/external/bsd/openssl/dist/crypto/x509/x509_err.c up to 1.1.1.3
+crypto/external/bsd/openssl/dist/crypto/x509/x509_obj.c up to 1.1.1.3
+crypto/external/bsd/openssl/dist/doc/apps/ciphers.pod up to 1.1.1.7
+crypto/external/bsd/openssl/dist/doc/crypto/EVP_EncodeInit.pod up to 1.1.1.1
+crypto/external/bsd/openssl/dist/doc/crypto/evp.pod up to 1.1.1.2
+crypto/external/bsd/openssl/dist/ssl/d1_both.c	up to 1.8
+crypto/external/bsd/openssl/dist/ssl/s2_lib.c	up to 1.6
+crypto/external/bsd/openssl/dist/ssl/s2_meth.c	up to 1.1.1.3
+crypto/external/bsd/openssl/dist/ssl/s3_clnt.c	up to 1.18
+crypto/external/bsd/openssl/dist/ssl/s3_lib.c	up to 1.18
+crypto/external/bsd/openssl/dist/ssl/ssl.h	up to 1.15
+crypto/external/bsd/openssl/dist/ssl/ssl_ciph.c	up to 1.11
+crypto/external/bsd/openssl/dist/ssl/ssl_locl.h	up to 1.13
+crypto/external/bsd/openssl/dist/ssl/t1_lib.c	up to 1.21
+crypto/external/bsd/openssl/dist/test/testfipsssl up to 1.1.1.2
+crypto/external/bsd/openssl/dist/util/libeay.num up to 1.1.1.10
+crypto/external/bsd/openssl/dist/util/mk1mf.pl	up to 1.8
+crypto/external/bsd/openssl/dist/util/mkdef.pl	up to 1.4
+crypto/external/bsd/openssl/dist/util/ssleay.num up to 1.4
+crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_OBJECT_new.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_STRING_length.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_STRING_new.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_STRING_print_ex.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/ASN1_generate_nconf.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/BIO_ctrl.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_base64.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_buffer.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_cipher.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_md.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_null.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/BIO_f_ssl.3 up to 1.14
+crypto/external/bsd/openssl/lib/libcrypto/man/BIO_find_type.3 u

CVS commit: src/doc

2016-05-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May  4 22:42:40 UTC 2016

Modified Files:
src/doc: HACKS

Log Message:
mention libmalloc hack


To generate a diff of this commit:
cvs rdiff -u -r1.165 -r1.166 src/doc/HACKS

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

Modified files:

Index: src/doc/HACKS
diff -u src/doc/HACKS:1.165 src/doc/HACKS:1.166
--- src/doc/HACKS:1.165	Thu Apr 28 17:18:23 2016
+++ src/doc/HACKS	Wed May  4 18:42:40 2016
@@ -1,4 +1,4 @@
-# $NetBSD: HACKS,v 1.165 2016/04/28 21:18:23 mrg Exp $
+# $NetBSD: HACKS,v 1.166 2016/05/04 22:42:40 christos Exp $
 #
 # This file is intended to document workarounds for currently unsolved
 # (mostly) compiler bugs.
@@ -27,6 +27,15 @@
 #
 # this is a comment.
 
+hack	gcc-5.3 optimizes memset+malloc -> calloc inside calloc
+mdate	4 May 2016
+who	christos
+file	external/gpl2/lib/libmalloc/lib/Makefile 1.3 -> 1.5
+descr
+	resulting in infinite recursion; we prevent this with
+	-fno-builtin-malloc
+kcah
+
 hack	netstat ieee1394 address printing.
 mdate	14 Nov 2000
 who	matt



CVS commit: src/doc

2016-05-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May  4 19:28:32 UTC 2016

Modified Files:
src/doc: 3RDPARTY CHANGES

Log Message:
new acpica


To generate a diff of this commit:
cvs rdiff -u -r1.1325 -r1.1326 src/doc/3RDPARTY
cvs rdiff -u -r1.2157 -r1.2158 src/doc/CHANGES

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

Modified files:

Index: src/doc/3RDPARTY
diff -u src/doc/3RDPARTY:1.1325 src/doc/3RDPARTY:1.1326
--- src/doc/3RDPARTY:1.1325	Tue May  3 13:23:17 2016
+++ src/doc/3RDPARTY	Wed May  4 15:28:32 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: 3RDPARTY,v 1.1325 2016/05/03 17:23:17 christos Exp $
+#	$NetBSD: 3RDPARTY,v 1.1326 2016/05/04 19:28:32 christos Exp $
 #
 # This file contains a list of the software that has been integrated into
 # NetBSD where we are not the primary maintainer.
@@ -40,8 +40,8 @@
 #
 
 Package:	acpica
-Version:	20160108
-Current Vers:	20160108
+Version:	20160422
+Current Vers:	20160422
 Maintainer:	Intel
 Archive Site:	http://www.acpica.org/downloads/
 Home Page:	http://www.acpica.org/

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.2157 src/doc/CHANGES:1.2158
--- src/doc/CHANGES:1.2157	Tue May  3 13:23:17 2016
+++ src/doc/CHANGES	Wed May  4 15:28:32 2016
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2157 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2158 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -286,3 +286,4 @@ Changes from NetBSD 7.0 to NetBSD 8.0:
 		devices, ported from OpenBSD. [nonaka 20160501]
 	ntp: Import ntp 4.2.8p7. [christos 20160501]
 	openssl: Import openssl 1.0.1t - security fixes [christos 20160503]
+	acpi(4): Updated ACPICA to 20160422. [christos 20160504]



CVS commit: src/external/bsd/acpica/bin/iasl

2016-05-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May  4 19:28:15 UTC 2016

Modified Files:
src/external/bsd/acpica/bin/iasl: Makefile

Log Message:
adjust to new acpica


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/bsd/acpica/bin/iasl/Makefile

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

Modified files:

Index: src/external/bsd/acpica/bin/iasl/Makefile
diff -u src/external/bsd/acpica/bin/iasl/Makefile:1.11 src/external/bsd/acpica/bin/iasl/Makefile:1.12
--- src/external/bsd/acpica/bin/iasl/Makefile:1.11	Sat Jan  9 16:13:51 2016
+++ src/external/bsd/acpica/bin/iasl/Makefile	Wed May  4 15:28:15 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2016/01/09 21:13:51 christos Exp $
+# $NetBSD: Makefile,v 1.12 2016/05/04 19:28:15 christos Exp $
 
 .if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64")
 PROG=	iasl
@@ -32,7 +32,9 @@ SRCS+= \
 	aslcompile.c \
 	aslcompilerlex.c \
 	aslcompilerparse.c \
+	asldebug.c \
 	aslerror.c \
+	aslexternal.c \
 	aslfileio.c \
 	aslfiles.c \
 	aslfold.c \
@@ -55,6 +57,7 @@ SRCS+= \
 	asloperands.c \
 	aslopt.c \
 	asloptions.c \
+	aslpld.c \
 	aslpredef.c \
 	aslprepkg.c \
 	aslprintf.c \
@@ -76,6 +79,7 @@ SRCS+= \
 	asluuid.c \
 	aslwalks.c \
 	aslxref.c \
+	aslxrefout.c \
 	dtcompile.c \
 	dtexpress.c \
 	dtfield.c \
@@ -148,6 +152,7 @@ SRCS+= \
 SRCS+= \
 	exconvrt.c \
 	excreate.c \
+	exconcat.c \
 	exdump.c \
 	exmisc.c \
 	exmutex.c \
@@ -207,6 +212,7 @@ SRCS+= \
 SRCS+= \
 	utaddress.c \
 	utalloc.c \
+	utascii.c \
 	utbuffer.c \
 	utcache.c \
 	utcopy.c \
@@ -215,7 +221,6 @@ SRCS+= \
 	utdelete.c \
 	uterror.c \
 	utexcep.c \
-	utfileio.c \
 	utglobal.c \
 	uthex.c \
 	utinit.c \



CVS commit: src/sys/net

2016-05-04 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed May  4 18:59:55 UTC 2016

Modified Files:
src/sys/net: if_bridge.c

Log Message:
Allow multicast/broadcast packets from a bridge member to other members.
Note this should just call bridge_broadcast when more locking issues are
resolved.


To generate a diff of this commit:
cvs rdiff -u -r1.121 -r1.122 src/sys/net/if_bridge.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/net/if_bridge.c
diff -u src/sys/net/if_bridge.c:1.121 src/sys/net/if_bridge.c:1.122
--- src/sys/net/if_bridge.c:1.121	Thu Apr 28 01:37:17 2016
+++ src/sys/net/if_bridge.c	Wed May  4 18:59:55 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_bridge.c,v 1.121 2016/04/28 01:37:17 knakahara Exp $	*/
+/*	$NetBSD: if_bridge.c,v 1.122 2016/05/04 18:59:55 roy Exp $	*/
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -80,7 +80,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.121 2016/04/28 01:37:17 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.122 2016/05/04 18:59:55 roy Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_bridge_ipf.h"
@@ -1422,6 +1422,14 @@ bridge_output(struct ifnet *ifp, struct 
 	eh = mtod(m, struct ether_header *);
 	sc = ifp->if_bridge;
 
+	if (ETHER_IS_MULTICAST(eh->ether_dhost)) {
+		if (memcmp(etherbroadcastaddr,
+		eh->ether_dhost, ETHER_ADDR_LEN) == 0)
+			m->m_flags |= M_BCAST;
+		else
+			m->m_flags |= M_MCAST;
+	}
+
 	/*
 	 * If bridge is down, but the original output interface is up,
 	 * go ahead and send out that interface.  Otherwise, the packet
@@ -1437,11 +1445,13 @@ bridge_output(struct ifnet *ifp, struct 
 	 * If the packet is a multicast, or we don't know a better way to
 	 * get there, send to all interfaces.
 	 */
-	if (ETHER_IS_MULTICAST(eh->ether_dhost))
+	if ((m->m_flags & (M_MCAST | M_BCAST)) != 0)
 		dst_if = NULL;
 	else
 		dst_if = bridge_rtlookup(sc, eh->ether_dhost);
 	if (dst_if == NULL) {
+		/* XXX Should call bridge_broadcast, but there are locking
+		 * issues which need resolving first. */
 		struct bridge_iflist *bif;
 		struct mbuf *mc;
 		bool used = false;
@@ -1474,7 +1484,10 @@ bridge_output(struct ifnet *ifp, struct 
 			}
 
 			if (PSLIST_READER_NEXT(bif, struct bridge_iflist,
-			bif_next) == NULL) {
+			bif_next) == NULL &&
+			((m->m_flags & (M_MCAST | M_BCAST)) == 0 ||
+			dst_if == ifp))
+			{
 used = true;
 mc = m;
 			} else {
@@ -1492,6 +1505,36 @@ bridge_output(struct ifnet *ifp, struct 
 #ifndef NET_MPSAFE
 			splx(s);
 #endif
+
+			if ((m->m_flags & (M_MCAST | M_BCAST)) != 0 &&
+			dst_if != ifp)
+			{
+if (PSLIST_READER_NEXT(bif,
+struct bridge_iflist, bif_next) == NULL)
+{
+	used = true;
+	mc = m;
+} else {
+	mc = m_copym(m, 0, M_COPYALL,
+	M_DONTWAIT);
+	if (mc == NULL) {
+		sc->sc_if.if_oerrors++;
+		goto next;
+	}
+}
+
+mc->m_pkthdr.rcvif = dst_if;
+mc->m_flags &= ~M_PROMISC;
+
+#ifndef NET_MPSAFE
+s = splnet();
+#endif
+ether_input(dst_if, mc);
+#ifndef NET_MPSAFE
+splx(s);
+#endif
+			}
+
 next:
 			BRIDGE_PSZ_RENTER(s);
 			bridge_release_member(sc, bif, &psref);



CVS commit: src/tests/lib/libutil

2016-05-04 Thread Andreas Gustafsson
Module Name:src
Committed By:   gson
Date:   Wed May  4 18:36:46 UTC 2016

Modified Files:
src/tests/lib/libutil: t_parsedate.c

Log Message:
Reduce the step size, exposing another bug.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 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/lib/libutil/t_parsedate.c
diff -u src/tests/lib/libutil/t_parsedate.c:1.22 src/tests/lib/libutil/t_parsedate.c:1.23
--- src/tests/lib/libutil/t_parsedate.c:1.22	Tue May  3 18:18:15 2016
+++ src/tests/lib/libutil/t_parsedate.c	Wed May  4 18:36:46 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: t_parsedate.c,v 1.22 2016/05/03 18:18:15 kre Exp $ */
+/* $NetBSD: t_parsedate.c,v 1.23 2016/05/04 18:36:46 gson Exp $ */
 /*-
  * Copyright (c) 2010, 2015 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,7 +29,7 @@
  */
 
 #include 
-__RCSID("$NetBSD: t_parsedate.c,v 1.22 2016/05/03 18:18:15 kre Exp $");
+__RCSID("$NetBSD: t_parsedate.c,v 1.23 2016/05/04 18:36:46 gson Exp $");
 
 #include 
 #include 
@@ -269,10 +269,8 @@ ATF_TC_BODY(relative, tc)
 	 * edges of the time_t range to avert under- or overflow
 	 * of the relative date, and use a prime step for maximum
 	 * coverage of different times of day/week/month/year.
-	 * The step is currently large to limit the size of the
-	 * error log, but can be reduced as bugs are fixed.
 	 */
-	for (now = 0x00FF; now < 0xFF00; now += 7424537) {
+	for (now = 0x00FF; now < 0xFF00; now += 379) {
 		ATF_CHECK(localtime_r(&now, &tm) != NULL);
 		tm.tm_mday--;
 		/* "yesterday" leaves time untouched */



CVS import: src/sys/external/bsd/acpica/dist

2016-05-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May  4 18:16:01 UTC 2016

Update of /cvsroot/src/sys/external/bsd/acpica/dist
In directory ivanova.netbsd.org:/tmp/cvs-serv28756

Log Message:
22 April 2016. Summary of changes for version 20160422:

1) ACPICA kernel-resident subsystem:

Fixed a regression in the GAS (generic address structure) arbitrary bit 
support in AcpiHwRead/AcpiHwWrite. Problem could cause incorrect behavior 
and incorrect return values. Lv Zheng. ACPICA BZ 1270.

ACPI 6.0: Added support for new/renamed resource macros. One new argument 
was added to each of these macros, and the original name has been 
deprecated. The AML disassembler will always disassemble to the new 
names. Support for the new macros was added to iASL, disassembler, 
resource manager, and the acpihelp utility. ACPICA BZ 1274.

I2cSerialBus  -> I2cSerialBusV2
SpiSerialBus  -> SpiSerialBusV2
UartSerialBus -> UartSerialBusV2

ACPI 6.0: Added support for a new integer field that was appended to the 
package object returned by the _BIX method. This adds iASL compile-time 
and AML runtime error checking. ACPICA BZ 1273.

ACPI 6.1: Added support for a new PCCT subtable, "HW-Reduced Comm 
Subspace Type2" (Headers, Disassembler, and data table compiler).

Example Code and Data Size: These are the sizes for the OS-independent 
acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 
debug version of the code includes the debug output trace mechanism and 
has a much larger code and data size.

  Current Release:
Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
Debug Version: 201.5K Code, 82.2K Data, 283.7K Total
  Previous Release:
Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total
Debug Version: 201.0K Code, 82.0K Data, 283.0K Total


2) iASL Compiler/Disassembler and Tools:

iASL: Implemented an ASL grammar extension to allow/enable executable 
"module-level code" to be created and executed under the various 
operators that create new scopes. This type of AML code is already 
supported in all known AML interpreters, and the grammar change will 
appear in the next version of the ACPI specification. Simplifies the 
conditional runtime creation of named objects under these object types: 

Device
PowerResource
Processor
Scope
ThermalZone

iASL: Implemented a new ASL extension, a "For" loop macro to add greater 
ease-of-use to the ASL language. The syntax is similar to the 
corresponding C operator, and is implemented with the existing AML While 
opcode -- thus requiring no changes to existing AML interpreters.

For (Initialize, Predicate, Update) {TermList}

Grammar:
ForTerm :=
For (
Initializer// Nothing | TermArg => ComputationalData
Predicate  // Nothing | TermArg => ComputationalData
Update // Nothing | TermArg => ComputationalData
) {TermList}


iASL: The _HID/_ADR detection and validation has been enhanced to search 
under conditionals in order to allow these objects to be conditionally 
created at runtime.

iASL: Fixed several issues with the constant folding feature. The 
improvement allows better detection and resolution of statements that can 
be folded at compile time. ACPICA BZ 1266. 

iASL/Disassembler: Fixed a couple issues with the Else{If{}...} 
conversion to the ASL ElseIf operator where incorrect ASL code could be 
generated.

iASL/Disassembler: Fixed a problem with the ASL+ code disassembly where 
sometimes an extra (and extraneous) set of parentheses were emitted for 
some combinations of operators. Although this did not cause any problems 
with recompilation of the disassembled code, it made the code more 
difficult to read. David Box. ACPICA BZ 1231.

iASL: Changed to ignore the unreferenced detection for predefined names 
of resource descriptor elements, when the resource descriptor is 
created/defined within a control method.

iASL: Disassembler: Fix a possible fault with externally declared Buffer 
objects.


18 March 2016. Summary of changes for version 20160318:

1) ACPICA kernel-resident subsystem:

Added support for arbitrary bit lengths and bit offsets for registers 
defined by the Generic Address Structure. Previously, only aligned bit 
lengths of 8/16/32/64 were supported. This was sufficient for many years, 
but recently some machines have been seen that require arbitrary bit-
level support. ACPICA BZ 1240. Lv Zheng.

Fixed an issue where the \_SB._INI method sometimes must be evaluated 
before any _REG methods are evaluated. Lv Zheng.

Implemented several changes related to ACPI table support 
(Headers/Disassembler/TableCompiler):
NFIT: For ACPI 6.1, updated to add some additional new fields and 
constants.
FADT: Updated a warning message and set compliance to ACPI 6.1 (Version 
6).
DMAR: Added new constants per the 10/2014 DMAR spec.
IORT: Added new subtable per the 10/2015 IOR

CVS commit: src/external/gpl2/libmalloc/lib

2016-05-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May  4 17:17:00 UTC 2016

Modified Files:
src/external/gpl2/libmalloc/lib: Makefile

Log Message:
limit to gcc, requested by joerg.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl2/libmalloc/lib/Makefile

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

Modified files:

Index: src/external/gpl2/libmalloc/lib/Makefile
diff -u src/external/gpl2/libmalloc/lib/Makefile:1.4 src/external/gpl2/libmalloc/lib/Makefile:1.5
--- src/external/gpl2/libmalloc/lib/Makefile:1.4	Wed May  4 10:39:49 2016
+++ src/external/gpl2/libmalloc/lib/Makefile	Wed May  4 13:17:00 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.4 2016/05/04 14:39:49 christos Exp $
+#	$NetBSD: Makefile,v 1.5 2016/05/04 17:17:00 christos Exp $
 
 NOMAN=	# defined
 .include 
@@ -12,7 +12,10 @@ SRCS+=  ralloc.c
 
 
 CPPFLAGS+= -I${DIST} -I${.CURDIR} -DSTDC_HEADERS -DHAVE_STDLIB_H -DHAVE_UNISTD_H
+
+.if ${HAVE_GCC:U0} >= 53
 COPTS+=-fno-builtin-malloc
+.endif
 
 .PATH: ${DIST}
 



CVS commit: src/sys/netinet

2016-05-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May  4 15:42:32 UTC 2016

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

Log Message:
fix compilation for ppc.


To generate a diff of this commit:
cvs rdiff -u -r1.253 -r1.254 src/sys/netinet/ip_output.c

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

Modified files:

Index: src/sys/netinet/ip_output.c
diff -u src/sys/netinet/ip_output.c:1.253 src/sys/netinet/ip_output.c:1.254
--- src/sys/netinet/ip_output.c:1.253	Wed Apr 27 20:16:56 2016
+++ src/sys/netinet/ip_output.c	Wed May  4 11:42:32 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: ip_output.c,v 1.253 2016/04/28 00:16:56 ozaki-r Exp $	*/
+/*	$NetBSD: ip_output.c,v 1.254 2016/05/04 15:42:32 christos Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.253 2016/04/28 00:16:56 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.254 2016/05/04 15:42:32 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1556,8 +1556,8 @@ ip_add_membership(struct ip_moptions *im
 static int
 ip_drop_membership(struct ip_moptions *imo, const struct sockopt *sopt)
 {
-	struct in_addr ia;
-	struct ifnet *ifp;
+	struct in_addr ia = { .s_addr = 0 };	// XXX: gcc [ppc]
+	struct ifnet *ifp = NULL;		// XXX: gcc [ppc]
 	int i, error;
 
 	if (sopt->sopt_size == sizeof(struct ip_mreq))



CVS commit: xsrc/external/mit/xlsfonts/dist

2016-05-04 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Wed May  4 15:41:37 UTC 2016

Modified Files:
xsrc/external/mit/xlsfonts/dist: xlsfonts.c

Log Message:
fix compilation


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.4 -r1.2 xsrc/external/mit/xlsfonts/dist/xlsfonts.c

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

Modified files:

Index: xsrc/external/mit/xlsfonts/dist/xlsfonts.c
diff -u xsrc/external/mit/xlsfonts/dist/xlsfonts.c:1.1.1.4 xsrc/external/mit/xlsfonts/dist/xlsfonts.c:1.2
--- xsrc/external/mit/xlsfonts/dist/xlsfonts.c:1.1.1.4	Sun Jul 19 22:46:24 2015
+++ xsrc/external/mit/xlsfonts/dist/xlsfonts.c	Wed May  4 11:41:37 2016
@@ -197,7 +197,7 @@ void get_list(const char *pattern)
 info = XLoadQueryFont (dpy, pattern);
 
 if (info) {
-fonts = &pattern;
+fonts = __UNCONST(&pattern);
 available = 1;
 XUnloadFont (dpy, info->fid);
 } else {



CVS commit: src/external/gpl2/libmalloc/lib

2016-05-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May  4 14:39:49 UTC 2016

Modified Files:
src/external/gpl2/libmalloc/lib: Makefile

Log Message:
prevent gcc from combining memset+malloc -> calloc inside calloc so that
we end up calling ourselves recursively.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl2/libmalloc/lib/Makefile

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

Modified files:

Index: src/external/gpl2/libmalloc/lib/Makefile
diff -u src/external/gpl2/libmalloc/lib/Makefile:1.3 src/external/gpl2/libmalloc/lib/Makefile:1.4
--- src/external/gpl2/libmalloc/lib/Makefile:1.3	Fri Jan 15 10:14:02 2016
+++ src/external/gpl2/libmalloc/lib/Makefile	Wed May  4 10:39:49 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.3 2016/01/15 15:14:02 christos Exp $
+#	$NetBSD: Makefile,v 1.4 2016/05/04 14:39:49 christos Exp $
 
 NOMAN=	# defined
 .include 
@@ -12,6 +12,7 @@ SRCS+=  ralloc.c
 
 
 CPPFLAGS+= -I${DIST} -I${.CURDIR} -DSTDC_HEADERS -DHAVE_STDLIB_H -DHAVE_UNISTD_H
+COPTS+=-fno-builtin-malloc
 
 .PATH: ${DIST}
 



CVS commit: src/tests/fs/vfs

2016-05-04 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Wed May  4 08:30:22 UTC 2016

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

Log Message:
Cite a relevant PR for msdos_renamerace instead of one that was fixed
several years ago.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/tests/fs/vfs/t_renamerace.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_renamerace.c
diff -u src/tests/fs/vfs/t_renamerace.c:1.32 src/tests/fs/vfs/t_renamerace.c:1.33
--- src/tests/fs/vfs/t_renamerace.c:1.32	Tue Jul 29 09:15:48 2014
+++ src/tests/fs/vfs/t_renamerace.c	Wed May  4 08:30:22 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_renamerace.c,v 1.32 2014/07/29 09:15:48 gson Exp $	*/
+/*	$NetBSD: t_renamerace.c,v 1.33 2016/05/04 08:30:22 dholland Exp $	*/
 
 /*
  * Modified for rump and atf from a program supplied
@@ -127,7 +127,7 @@ renamerace(const atf_tc_t *tc, const cha
 		atf_tc_fail("race did not trigger this time");
 
 	if (FSTYPE_MSDOS(tc)) {
-		atf_tc_expect_fail("PR kern/44661");
+		atf_tc_expect_fail("PR kern/43626");
 		/*
 		 * XXX: race does not trigger every time at least
 		 * on amd64/qemu.