CVS commit: src/sys/dev/isa

2017-08-16 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Thu Aug 17 05:32:05 UTC 2017

Modified Files:
src/sys/dev/isa: wbsio.c

Log Message:
 Print chip name correctly.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/isa/wbsio.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/isa/wbsio.c
diff -u src/sys/dev/isa/wbsio.c:1.13 src/sys/dev/isa/wbsio.c:1.14
--- src/sys/dev/isa/wbsio.c:1.13	Wed Aug  9 04:45:38 2017
+++ src/sys/dev/isa/wbsio.c	Thu Aug 17 05:32:04 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: wbsio.c,v 1.13 2017/08/09 04:45:38 msaitoh Exp $	*/
+/*	$NetBSD: wbsio.c,v 1.14 2017/08/17 05:32:04 msaitoh Exp $	*/
 /*	$OpenBSD: wbsio.c,v 1.10 2015/03/14 03:38:47 jsg Exp $	*/
 /*
  * Copyright (c) 2008 Mark Kettenis 
@@ -175,7 +175,7 @@ wbsio_attach(device_t parent, device_t s
 		desc = "W83627DHG";
 		break;
 	case WBSIO_ID_W83627DHGP:
-		printf("W83627DHG-P");
+		desc = "W83627DHG-P";
 		break;
 	case WBSIO_ID_W83627EHF:
 		desc = "W83627EHF";
@@ -187,7 +187,7 @@ wbsio_attach(device_t parent, device_t s
 		desc = "W83627THF";
 		break;
 	case WBSIO_ID_W83627UHG:
-		printf("W83627UHG");
+		desc = "W83627UHG";
 		break;
 	case WBSIO_ID_W83637HF:
 		desc = "W83637HF";
@@ -209,7 +209,7 @@ wbsio_attach(device_t parent, device_t s
 		break;
 	case WBSIO_ID_NCT5104D:
 		vendor = "Nuvoton";
-		printf("NCT5104D");
+		desc = "NCT5104D";
 		break;
 	case WBSIO_ID_NCT6775F:
 		vendor = "Nuvoton";



CVS commit: src/sys/dev

2017-08-16 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Thu Aug 17 05:27:48 UTC 2017

Modified Files:
src/sys/dev/i2c: lm_i2c.c
src/sys/dev/ic: nslm7x.c nslm7xvar.h
src/sys/dev/isa: lm_isa_common.c

Log Message:
 Use uint8_t instead of int. No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/i2c/lm_i2c.c
cvs rdiff -u -r1.68 -r1.69 src/sys/dev/ic/nslm7x.c
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/ic/nslm7xvar.h
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/isa/lm_isa_common.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/i2c/lm_i2c.c
diff -u src/sys/dev/i2c/lm_i2c.c:1.2 src/sys/dev/i2c/lm_i2c.c:1.3
--- src/sys/dev/i2c/lm_i2c.c:1.2	Mon Oct 13 11:16:00 2008
+++ src/sys/dev/i2c/lm_i2c.c	Thu Aug 17 05:27:48 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: lm_i2c.c,v 1.2 2008/10/13 11:16:00 pgoyette Exp $	*/
+/*	$NetBSD: lm_i2c.c,v 1.3 2017/08/17 05:27:48 msaitoh Exp $	*/
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: lm_i2c.c,v 1.2 2008/10/13 11:16:00 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lm_i2c.c,v 1.3 2017/08/17 05:27:48 msaitoh Exp $");
 
 #include 
 #include 
@@ -49,7 +49,7 @@ void 	lm_i2c_attach(device_t, device_t, 
 int 	lm_i2c_detach(device_t, int);
 
 uint8_t lm_i2c_readreg(struct lm_softc *, int);
-void 	lm_i2c_writereg(struct lm_softc *, int, int);
+void 	lm_i2c_writereg(struct lm_softc *, int, uint8_t);
 
 struct lm_i2c_softc {
 	struct lm_softc sc_lmsc;
@@ -127,7 +127,7 @@ lm_i2c_readreg(struct lm_softc *lmsc, in
 
 
 void
-lm_i2c_writereg(struct lm_softc *lmsc, int reg, int val)
+lm_i2c_writereg(struct lm_softc *lmsc, int reg, uint8_t val)
 {
 	struct lm_i2c_softc *sc = (struct lm_i2c_softc *)lmsc;
 	uint8_t cmd, data;

Index: src/sys/dev/ic/nslm7x.c
diff -u src/sys/dev/ic/nslm7x.c:1.68 src/sys/dev/ic/nslm7x.c:1.69
--- src/sys/dev/ic/nslm7x.c:1.68	Wed Aug  9 04:45:38 2017
+++ src/sys/dev/ic/nslm7x.c	Thu Aug 17 05:27:48 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: nslm7x.c,v 1.68 2017/08/09 04:45:38 msaitoh Exp $ */
+/*	$NetBSD: nslm7x.c,v 1.69 2017/08/17 05:27:48 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: nslm7x.c,v 1.68 2017/08/09 04:45:38 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nslm7x.c,v 1.69 2017/08/17 05:27:48 msaitoh Exp $");
 
 #include 
 #include 
@@ -79,7 +79,7 @@ static void wb_temp_diode_type(struct lm
 
 static void lm_refresh(void *);
 
-static void lm_generic_banksel(struct lm_softc *, int);
+static void lm_generic_banksel(struct lm_softc *, uint8_t);
 static void lm_setup_sensors(struct lm_softc *, const struct lm_sensor *);
 static void lm_refresh_sensor_data(struct lm_softc *);
 static void lm_refresh_volt(struct lm_softc *, int);
@@ -2004,7 +2004,7 @@ static const struct lm_sensor nct6779d_s
 };
 
 static void
-lm_generic_banksel(struct lm_softc *lmsc, int bank)
+lm_generic_banksel(struct lm_softc *lmsc, uint8_t bank)
 {
 	(*lmsc->lm_writereg)(lmsc, WB_BANKSEL, bank);
 }
@@ -2105,7 +2105,7 @@ static int
 lm_match(struct lm_softc *sc)
 {
 	const char *model = NULL;
-	int chipid;
+	uint8_t chipid;
 
 	/* See if we have an LM78/LM78J/LM79 or LM81 */
 	chipid = (*sc->lm_readreg)(sc, LMD_CHIPID) & LM_ID_MASK;
@@ -2154,7 +2154,7 @@ def_match(struct lm_softc *sc)
 static void
 wb_temp_diode_type(struct lm_softc *sc, int diode_type)
 {
-	int regval, banksel;
+	uint8_t regval, banksel;
 
 	banksel = (*sc->lm_readreg)(sc, WB_BANKSEL);
 	switch (diode_type) {
@@ -2204,7 +2204,9 @@ wb_match(struct lm_softc *sc)
 {
 	const char *model = NULL;
 	const char *vendor = "Winbond";
-	int banksel, vendid, cf_flags;
+	uint16_t vendid;
+	uint8_t banksel;
+	int cf_flags;
 
 	aprint_naive("\n");
 	aprint_normal("\n");
@@ -2452,7 +2454,8 @@ lm_refresh_fanrpm(struct lm_softc *sc, i
 static void
 wb_refresh_sensor_data(struct lm_softc *sc)
 {
-	int banksel, bank, i;
+	uint8_t banksel, bank;
+	int i;
 
 	/*
 	 * Properly save and restore bank selection register.
@@ -2635,7 +2638,8 @@ wb_nct67xx_id2str(uint8_t id)
 static void
 wb_w83792d_refresh_fanrpm(struct lm_softc *sc, int n)
 {
-	int reg, shift, data, divisor = 1;
+	int shift, data, divisor = 1;
+	uint8_t reg;
 
 	shift = 0;
 

Index: src/sys/dev/ic/nslm7xvar.h
diff -u src/sys/dev/ic/nslm7xvar.h:1.31 src/sys/dev/ic/nslm7xvar.h:1.32
--- src/sys/dev/ic/nslm7xvar.h:1.31	Wed Aug  9 04:45:38 2017
+++ src/sys/dev/ic/nslm7xvar.h	Thu Aug 17 05:27:48 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: nslm7xvar.h,v 1.31 2017/08/09 04:45:38 msaitoh Exp $ */
+/*	$NetBSD: nslm7xvar.h,v 1.32 2017/08/17 05:27:48 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -165,7 +165,7 @@ struct lm_softc {
 	void (*refresh_sensor_data)(struct lm_softc *);
 
 	uint8_t (*lm_readreg)(struct lm_softc *, int);
-	void (*lm_writereg)(struct lm_softc *, 

CVS commit: src/sys/dev

2017-08-16 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Thu Aug 17 04:33:22 UTC 2017

Modified Files:
src/sys/dev: audio.c

Log Message:
Fix typo. sc_mrr -> sc_mpr for play buffer.


To generate a diff of this commit:
cvs rdiff -u -r1.399 -r1.400 src/sys/dev/audio.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/audio.c
diff -u src/sys/dev/audio.c:1.399 src/sys/dev/audio.c:1.400
--- src/sys/dev/audio.c:1.399	Tue Aug 15 08:30:21 2017
+++ src/sys/dev/audio.c	Thu Aug 17 04:33:22 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: audio.c,v 1.399 2017/08/15 08:30:21 isaki Exp $	*/
+/*	$NetBSD: audio.c,v 1.400 2017/08/17 04:33:22 isaki Exp $	*/
 
 /*-
  * Copyright (c) 2016 Nathanial Sloss 
@@ -148,7 +148,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.399 2017/08/15 08:30:21 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.400 2017/08/17 04:33:22 isaki Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -2020,7 +2020,7 @@ audio_initbufs(struct audio_softc *sc, s
 
 	if (vc == NULL) {
 		vc = sc->sc_hwvc;
-		sc->sc_pr.blksize = vc->sc_mrr.blksize;
+		sc->sc_pr.blksize = vc->sc_mpr.blksize;
 		sc->sc_rr.blksize = vc->sc_mrr.blksize;
 	}
 



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64

2017-08-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Aug 17 02:17:00 UTC 2017

Removed Files:
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64: mp.h

Log Message:
remove file that died 4 years ago...


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/mp.h

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



CVS commit: src/doc

2017-08-16 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Thu Aug 17 01:30:57 UTC 2017

Modified Files:
src/doc: CHANGES

Log Message:
 Add C3000 support into ichsmb(4) and ismt(4).


To generate a diff of this commit:
cvs rdiff -u -r1.2304 -r1.2305 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/CHANGES
diff -u src/doc/CHANGES:1.2304 src/doc/CHANGES:1.2305
--- src/doc/CHANGES:1.2304	Tue Aug 15 10:27:59 2017
+++ src/doc/CHANGES	Thu Aug 17 01:30:57 2017
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2304 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2305 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -48,3 +48,5 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 		[msaitoh 20170711]
 	arm: Add support for NVIDIA Tegra X1 SoC. [jmcneill 20170720]
 	evbmips: Merge sbmips port into evbmips. [mrg 20170815]
+	ichsmb(4): Add support for Intel C3000. [msaitoh 20170817]
+	ismt(4): Add support for Intel C3000. [msaitoh 20170817]



CVS commit: src/sys/dev/pci

2017-08-16 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Thu Aug 17 01:24:09 UTC 2017

Modified Files:
src/sys/dev/pci: ichsmb.c ismt.c

Log Message:
Add C3000 devices.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/dev/pci/ichsmb.c
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/pci/ismt.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/ichsmb.c
diff -u src/sys/dev/pci/ichsmb.c:1.50 src/sys/dev/pci/ichsmb.c:1.51
--- src/sys/dev/pci/ichsmb.c:1.50	Fri Mar 31 08:38:13 2017
+++ src/sys/dev/pci/ichsmb.c	Thu Aug 17 01:24:09 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: ichsmb.c,v 1.50 2017/03/31 08:38:13 msaitoh Exp $	*/
+/*	$NetBSD: ichsmb.c,v 1.51 2017/08/17 01:24:09 msaitoh Exp $	*/
 /*	$OpenBSD: ichiic.c,v 1.18 2007/05/03 09:36:26 dlg Exp $	*/
 
 /*
@@ -22,7 +22,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ichsmb.c,v 1.50 2017/03/31 08:38:13 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ichsmb.c,v 1.51 2017/08/17 01:24:09 msaitoh Exp $");
 
 #include 
 #include 
@@ -130,6 +130,7 @@ ichsmb_match(device_t parent, cfdata_t m
 		case PCI_PRODUCT_INTEL_DH89XXCC_SMB:
 		case PCI_PRODUCT_INTEL_DH89XXCL_SMB:
 		case PCI_PRODUCT_INTEL_C2000_PCU_SMBUS:
+		case PCI_PRODUCT_INTEL_C3K_SMBUS_LEGACY:
 			return 1;
 		}
 	}

Index: src/sys/dev/pci/ismt.c
diff -u src/sys/dev/pci/ismt.c:1.5 src/sys/dev/pci/ismt.c:1.6
--- src/sys/dev/pci/ismt.c:1.5	Thu Apr 27 10:01:54 2017
+++ src/sys/dev/pci/ismt.c	Thu Aug 17 01:24:09 2017
@@ -60,7 +60,7 @@
 #if 0
 __FBSDID("$FreeBSD: head/sys/dev/ismt/ismt.c 266474 2014-05-20 19:55:06Z jimharris $");
 #endif
-__KERNEL_RCSID(0, "$NetBSD: ismt.c,v 1.5 2017/04/27 10:01:54 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ismt.c,v 1.6 2017/08/17 01:24:09 msaitoh Exp $");
 
 #include 
 #include 
@@ -801,6 +801,7 @@ ismt_match(device_t parent, cfdata_t mat
 	case PCI_PRODUCT_INTEL_S1200_SMBUS_0:
 	case PCI_PRODUCT_INTEL_S1200_SMBUS_1:
 	case PCI_PRODUCT_INTEL_C2000_SMBUS:
+	case PCI_PRODUCT_INTEL_C3K_SMBUS:
 		break;
 	default:
 		return 0;



CVS commit: src/doc

2017-08-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Aug 17 01:17:18 UTC 2017

Modified Files:
src/doc: 3RDPARTY

Log Message:
MPFR 3.1.5 is in.


To generate a diff of this commit:
cvs rdiff -u -r1.1465 -r1.1466 src/doc/3RDPARTY

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.1465 src/doc/3RDPARTY:1.1466
--- src/doc/3RDPARTY:1.1465	Thu Aug 17 00:14:17 2017
+++ src/doc/3RDPARTY	Thu Aug 17 01:17:17 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: 3RDPARTY,v 1.1465 2017/08/17 00:14:17 mrg Exp $
+#	$NetBSD: 3RDPARTY,v 1.1466 2017/08/17 01:17:17 mrg Exp $
 #
 # This file contains a list of the software that has been integrated into
 # NetBSD where we are not the primary maintainer.
@@ -1520,7 +1520,7 @@ Location:	external/lgpl3/mpc/dist
 Notes:
 
 Package:	mpfr
-Version:	3.1.2
+Version:	3.1.5
 Current Vers:	3.1.5
 Maintainer:	
 Archive Site:	http://www.mpfr.org/mpfr-current/



CVS commit: src

2017-08-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Aug 17 01:16:55 UTC 2017

Modified Files:
src: UPDATING

Log Message:
add a note about MPC/MPFR updates breaking some types of update builds.


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

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

Modified files:

Index: src/UPDATING
diff -u src/UPDATING:1.284 src/UPDATING:1.285
--- src/UPDATING:1.284	Mon Apr  3 09:37:58 2017
+++ src/UPDATING	Thu Aug 17 01:16:55 2017
@@ -1,4 +1,4 @@
-$NetBSD: UPDATING,v 1.284 2017/04/03 09:37:58 martin Exp $
+$NetBSD: UPDATING,v 1.285 2017/08/17 01:16:55 mrg Exp $
 
 This file (UPDATING) is intended to be a brief reference to recent
 changes that might cause problems in the build process, and a guide for
@@ -19,6 +19,12 @@ See also: BUILDING, build.sh, Makefile.
 Recent changes:
 ^^^
 
+20170816:
+	a new version of MPFR and MPC have been imported and probably
+	will break parts of builds related to themselves or GCC, both
+	in the tools and the native section.  Remove all GCC, GMP, MPFR
+	and MPC objdirs or build once without -u.
+
 20170402:
 	a new version of dhcpcd has been imported, which does not support
 	update builds from the previous version. Remove your



CVS import: src/external/lgpl3/mpfr/dist

2017-08-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Aug 17 01:09:27 UTC 2017

Update of /cvsroot/src/external/lgpl3/mpfr/dist
In directory ivanova.netbsd.org:/tmp/cvs-serv5553

Log Message:
initial import of MPFR 3.1.5 package.  changes since 3.1.2:

Changes from version 3.1.4 to version 3.1.5:
- C++11 compatibility.
- Bug fixes (see  and ChangeLog file).
- More tests.

Changes from version 3.1.3 to version 3.1.4:
- Improved MPFR manual.
- Bug fixes (see  and ChangeLog file).
- MinGW (MS Windows): Added support for thread-safe DLL (shared library).

Changes from version 3.1.2 to version 3.1.3:
- Better support for Automake 1.13+ (now used to generate the tarball).
- Improved MPFR manual.
- Bug fixes (see  and ChangeLog file).

Status:

Vendor Tag: mpfr
Release Tags:   mpfr-3-1-5

U src/external/lgpl3/mpfr/dist/configure.ac
U src/external/lgpl3/mpfr/dist/COPYING
U src/external/lgpl3/mpfr/dist/PATCHES
U src/external/lgpl3/mpfr/dist/TODO
U src/external/lgpl3/mpfr/dist/aclocal.m4
U src/external/lgpl3/mpfr/dist/compile
U src/external/lgpl3/mpfr/dist/COPYING.LESSER
C src/external/lgpl3/mpfr/dist/config.guess
U src/external/lgpl3/mpfr/dist/README
U src/external/lgpl3/mpfr/dist/AUTHORS
C src/external/lgpl3/mpfr/dist/Makefile.in
U src/external/lgpl3/mpfr/dist/configure
N src/external/lgpl3/mpfr/dist/ar-lib
U src/external/lgpl3/mpfr/dist/BUGS
U src/external/lgpl3/mpfr/dist/install-sh
U src/external/lgpl3/mpfr/dist/missing
U src/external/lgpl3/mpfr/dist/NEWS
U src/external/lgpl3/mpfr/dist/ltmain.sh
C src/external/lgpl3/mpfr/dist/config.sub
N src/external/lgpl3/mpfr/dist/test-driver
U src/external/lgpl3/mpfr/dist/INSTALL
U src/external/lgpl3/mpfr/dist/ChangeLog
C src/external/lgpl3/mpfr/dist/VERSION
U src/external/lgpl3/mpfr/dist/acinclude.m4
U src/external/lgpl3/mpfr/dist/depcomp
U src/external/lgpl3/mpfr/dist/Makefile.am
U src/external/lgpl3/mpfr/dist/doc/mpfr.texi
U src/external/lgpl3/mpfr/dist/doc/FAQ.html
U src/external/lgpl3/mpfr/dist/doc/Makefile.in
U src/external/lgpl3/mpfr/dist/doc/mpfr.info
U src/external/lgpl3/mpfr/dist/doc/fdl.texi
U src/external/lgpl3/mpfr/dist/doc/texinfo.tex
U src/external/lgpl3/mpfr/dist/doc/Makefile.am
U src/external/lgpl3/mpfr/dist/m4/lt~obsolete.m4
U src/external/lgpl3/mpfr/dist/m4/ltoptions.m4
U src/external/lgpl3/mpfr/dist/m4/libtool.m4
U src/external/lgpl3/mpfr/dist/m4/ltversion.m4
U src/external/lgpl3/mpfr/dist/m4/size_max.m4
U src/external/lgpl3/mpfr/dist/m4/ltsugar.m4
U src/external/lgpl3/mpfr/dist/tune/Makefile.am
U src/external/lgpl3/mpfr/dist/tune/speed.c
U src/external/lgpl3/mpfr/dist/tune/bidimensional_sample.c
U src/external/lgpl3/mpfr/dist/tune/tuneup.c
U src/external/lgpl3/mpfr/dist/tune/Makefile.in
U src/external/lgpl3/mpfr/dist/src/print_rnd_mode.c
U src/external/lgpl3/mpfr/dist/src/exceptions.c
U src/external/lgpl3/mpfr/dist/src/uceil_exp2.c
U src/external/lgpl3/mpfr/dist/src/set_nan.c
U src/external/lgpl3/mpfr/dist/src/const_pi.c
U src/external/lgpl3/mpfr/dist/src/add_d.c
U src/external/lgpl3/mpfr/dist/src/grandom.c
U src/external/lgpl3/mpfr/dist/src/sum.c
U src/external/lgpl3/mpfr/dist/src/reldiff.c
U src/external/lgpl3/mpfr/dist/src/erf.c
U src/external/lgpl3/mpfr/dist/src/set_zero.c
U src/external/lgpl3/mpfr/dist/src/digamma.c
U src/external/lgpl3/mpfr/dist/src/const_log2.c
U src/external/lgpl3/mpfr/dist/src/strtofr.c
U src/external/lgpl3/mpfr/dist/src/mpfr.h
U src/external/lgpl3/mpfr/dist/src/dim.c
U src/external/lgpl3/mpfr/dist/src/set_ui.c
U src/external/lgpl3/mpfr/dist/src/get_ui.c
U src/external/lgpl3/mpfr/dist/src/asinh.c
U src/external/lgpl3/mpfr/dist/src/volatile.c
U src/external/lgpl3/mpfr/dist/src/sinh_cosh.c
U src/external/lgpl3/mpfr/dist/src/d_sub.c
U src/external/lgpl3/mpfr/dist/src/comparisons.c
U src/external/lgpl3/mpfr/dist/src/rem1.c
U src/external/lgpl3/mpfr/dist/src/exp10.c
U src/external/lgpl3/mpfr/dist/src/get_si.c
U src/external/lgpl3/mpfr/dist/src/out_str.c
U src/external/lgpl3/mpfr/dist/src/csch.c
U src/external/lgpl3/mpfr/dist/src/fma.c
U src/external/lgpl3/mpfr/dist/src/inp_str.c
U src/external/lgpl3/mpfr/dist/src/set_z.c
U src/external/lgpl3/mpfr/dist/src/modf.c
U src/external/lgpl3/mpfr/dist/src/extract.c
U src/external/lgpl3/mpfr/dist/src/add_ui.c
U src/external/lgpl3/mpfr/dist/src/init2.c
U src/external/lgpl3/mpfr/dist/src/fits_uintmax.c
U src/external/lgpl3/mpfr/dist/src/fits_ulong.c
U src/external/lgpl3/mpfr/dist/src/fits_s.h
U src/external/lgpl3/mpfr/dist/src/get_str.c
U src/external/lgpl3/mpfr/dist/src/check.c
U src/external/lgpl3/mpfr/dist/src/sqr.c
U src/external/lgpl3/mpfr/dist/src/div_2ui.c
U src/external/lgpl3/mpfr/dist/src/swap.c
U src/external/lgpl3/mpfr/dist/src/isnum.c
U src/external/lgpl3/mpfr/dist/src/sqrt_ui.c
U src/external/lgpl3/mpfr/dist/src/div_2exp.c
U src/external/lgpl3/mpfr/dist/src/mpfr-thread.h
U src/external/lgpl3/mpfr/dist/src/get_flt.c
U 

CVS commit: src/external/lgpl3/mpfr/dist

2017-08-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Aug 17 01:12:42 UTC 2017

Modified Files:
src/external/lgpl3/mpfr/dist: Makefile.in VERSION
src/external/lgpl3/mpfr/dist/src: Makefile.in mpfr-longlong.h
vasprintf.c
src/external/lgpl3/mpfr/dist/tests: tasin.c tatan.c texp.c

Log Message:
merge MPFR 3.1.5.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/lgpl3/mpfr/dist/Makefile.in \
src/external/lgpl3/mpfr/dist/VERSION
cvs rdiff -u -r1.2 -r1.3 src/external/lgpl3/mpfr/dist/src/Makefile.in \
src/external/lgpl3/mpfr/dist/src/mpfr-longlong.h \
src/external/lgpl3/mpfr/dist/src/vasprintf.c
cvs rdiff -u -r1.3 -r1.4 src/external/lgpl3/mpfr/dist/tests/tasin.c \
src/external/lgpl3/mpfr/dist/tests/tatan.c \
src/external/lgpl3/mpfr/dist/tests/texp.c

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

Modified files:

Index: src/external/lgpl3/mpfr/dist/Makefile.in
diff -u src/external/lgpl3/mpfr/dist/Makefile.in:1.3 src/external/lgpl3/mpfr/dist/Makefile.in:1.4
--- src/external/lgpl3/mpfr/dist/Makefile.in:1.3	Thu Nov 28 12:35:03 2013
+++ src/external/lgpl3/mpfr/dist/Makefile.in	Thu Aug 17 01:12:41 2017
@@ -1,9 +1,8 @@
-# Makefile.in generated by automake 1.11.6 from Makefile.am.
+# Makefile.in generated by automake 1.15 from Makefile.am.
 # @configure_input@
 
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
-# Foundation, Inc.
+# Copyright (C) 1994-2014 Free Software Foundation, Inc.
+
 # This Makefile.in is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
@@ -15,7 +14,7 @@
 
 @SET_MAKE@
 
-# Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
+# Copyright 2000-2016 Free Software Foundation, Inc.
 # This Makefile.am is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
@@ -26,23 +25,61 @@
 # PARTICULAR PURPOSE.
 
 VPATH = @srcdir@
-am__make_dryrun = \
-  { \
-am__dry=no; \
+am__is_gnu_make = { \
+  if test -z '$(MAKELEVEL)'; then \
+false; \
+  elif test -n '$(MAKE_HOST)'; then \
+true; \
+  elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
+true; \
+  else \
+false; \
+  fi; \
+}
+am__make_running_with_option = \
+  case $${target_option-} in \
+  ?) ;; \
+  *) echo "am__make_running_with_option: internal error: invalid" \
+  "target option '$${target_option-}' specified" >&2; \
+ exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+sane_makeflags=$$MFLAGS; \
+  else \
 case $$MAKEFLAGS in \
   *\\[\ \	]*) \
-echo 'am--echo: ; @echo "AM"  OK' | $(MAKE) -f - 2>/dev/null \
-  | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
-  *) \
-for am__flg in $$MAKEFLAGS; do \
-  case $$am__flg in \
-*=*|--*) ;; \
-*n*) am__dry=yes; break;; \
-  esac; \
-done;; \
+bs=\\; \
+sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+  | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
 esac; \
-test $$am__dry = yes; \
-  }
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+test $$skip_next = yes && { skip_next=no; continue; }; \
+case $$flg in \
+  *=*|--*) continue;; \
+-*I) strip_trailopt 'I'; skip_next=yes;; \
+  -*I?*) strip_trailopt 'I';; \
+-*O) strip_trailopt 'O'; skip_next=yes;; \
+  -*O?*) strip_trailopt 'O';; \
+-*l) strip_trailopt 'l'; skip_next=yes;; \
+  -*l?*) strip_trailopt 'l';; \
+  -[dEDm]) skip_next=yes;; \
+  -[JT]) skip_next=yes;; \
+esac; \
+case $$flg in \
+  *$$target_option*) has_opt=yes; break;; \
+esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
 pkgdatadir = $(datadir)/@PACKAGE@
 pkgincludedir = $(includedir)/@PACKAGE@
 pkglibdir = $(libdir)/@PACKAGE@
@@ -62,11 +99,6 @@ POST_UNINSTALL = :
 build_triplet = @build@
 host_triplet = @host@
 subdir = .
-DIST_COMMON = README $(am__configure_deps) $(nobase_dist_doc_DATA) \
-	$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
-	$(top_srcdir)/configure AUTHORS COPYING COPYING.LESSER \
-	ChangeLog INSTALL NEWS TODO compile config.guess config.sub \
-	depcomp install-sh ltmain.sh missing
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
 	

CVS commit: src/sys/dev/pci

2017-08-16 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Thu Aug 17 01:05:22 UTC 2017

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

Log Message:
Add C3000 devices.


To generate a diff of this commit:
cvs rdiff -u -r1.1296 -r1.1297 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.1296 src/sys/dev/pci/pcidevs:1.1297
--- src/sys/dev/pci/pcidevs:1.1296	Wed Aug  2 07:35:05 2017
+++ src/sys/dev/pci/pcidevs	Thu Aug 17 01:05:22 2017
@@ -1,4 +1,4 @@
-$NetBSD: pcidevs,v 1.1296 2017/08/02 07:35:05 msaitoh Exp $
+$NetBSD: pcidevs,v 1.1297 2017/08/17 01:05:22 msaitoh Exp $
 
 /*
  * Copyright (c) 1995, 1996 Christopher G. Demetriou
@@ -3057,6 +3057,8 @@ product INTEL 82441FX		0x1237	82441FX (P
 product INTEL 82380AB		0x123c	82380AB (MISA) Mobile PCI-ISA Bridge
 product INTEL 82380FB		0x124b	82380FB (MPCI2) Mobile PCI-PCI Bridge
 product INTEL 82439HX		0x1250	82439HX (TXC) System Controller
+product INTEL C3K_X553_10G	0x1306	C3000 X553 10G Ethernet
+product INTEL C3K_X553_1G	0x1307	C3000 X553 1G Ethernet
 product INTEL 82870P2_PPB	0x1460	82870P2 P64H2 PCI-PCI Bridge
 product INTEL 82870P2_IOxAPIC	0x1461	82870P2 P64H2 IOxAPIC
 product INTEL 82870P2_HPLUG	0x1462	82870P2 P64H2 Hot Plug Controller
@@ -3143,14 +3145,25 @@ product INTEL X552_KR		0x15ab	X552 KR
 product INTEL X552_SFP		0x15ac	X552 SFP+
 product INTEL X557_AT2		0x15ad	X557-AT2
 product INTEL X552_1G_T		0x15ae	X552 1000Base-T
+product INTEL C3K_X553_VF_HYPV	0x15b4	C3000 X553 VF (Hyper-V)
 product INTEL I219_LM2		0x15b7	I219-LM Ethernet Connection
 product INTEL I219_V2		0x15b8	I219-V Ethernet Connection
 product INTEL I219_LM3		0x15b9	I219-LM Ethernet Connection
+product INTEL C3K_X553_KRKX	0x15c2	C3000 X553 Backplane (KR/KX 10G SKU)
+product INTEL C3K_X553_KX_25G	0x15c3	C3000 X553 Backplane (KX 2.5G)
+product INTEL C3K_X553_SFI_SFP	0x15c4	C3000 X553 10G SFP+
+product INTEL C3K_X553_VF	0x15c5	C3000 X553 VF
+product INTEL C3K_X553_SGMII_BP	0x15c6	C3000 X553 1GbE SGMII Backplane (10G SKU)
+product INTEL C3K_X553_SGMII_BP_L 0x15c7 C3000 X553 1GbE SGMII Backplane (non-10G SKU)
+product INTEL C3K_X553_10G_T	0x15c8	C3000 X553 10GBASE-T (X557)
+product INTEL C3K_X553_KR_SFP	0x15ce	C3000 X553 10G SFP+
 product INTEL X550T1	 	0x15d1	X550 10G Ethernet
 product INTEL I219_V5		0x15d6	I219-V Ethernet Connection
 product INTEL I219_LM4		0x15d7	I219-LM Ethernet Connection
 product INTEL I219_V4		0x15d8	I219-V Ethernet Connection
 product INTEL I219_LM5		0x15e3	I219-LM Ethernet Connection
+product INTEL C3K_X553_SGMII	0x15e4	C3000 X553 1GbE SGMII (10G SKU)
+product INTEL C3K_X553_SGMII_L	0x15e5	C3000 X553 1GbE SGMII (non-10G SKU)
 product INTEL CORE5G_HB_1	0x1604	Core 5G Host Bridge
 product INTEL CORE5G_M_GT1	0x1606	HD Graphics (GT1)
 product INTEL CORE5G_HDA_1	0x160c	Core 5G HD Audio
@@ -3190,6 +3203,71 @@ product INTEL CORE6G_H_GT4	0x193b	Iris P
 product INTEL CORE6G_S_GT4_2	0x193d	Iris Pro Graphics (GT4)
 product INTEL 80960_RP		0x1960	ROB-in i960RP Microprocessor
 product INTEL 80960RM_2		0x1962	i960 RM PCI-PCI
+product INTEL C3K_SYSA_0	0x1980	C3000 System Agent
+product INTEL C3K_GLREG		0x19a1	C3000 GLREG
+product INTEL C3K_RCEC		0x19a2	C3000 RCEC
+product INTEL C3K_PCIERP_QAT	0x19a3	C3000 PCIe Root Port for QAT
+product INTEL C3K_PCIERP_0	0x19a4	C3000 PCIe Cluster 0 Port 0
+product INTEL C3K_PCIERP_1	0x19a5	C3000 PCIe Cluster 0 Port 1
+product INTEL C3K_PCIERP_2	0x19a6	C3000 PCIe Cluster 0 Port 2
+product INTEL C3K_PCIERP_3	0x19a7	C3000 PCIe Cluster 0 Port 3
+product INTEL C3K_PCIERP_4	0x19a8	C3000 PCIe Cluster 1 Port 0
+product INTEL C3K_PCIERP_5	0x19a9	C3000 PCIe Cluster 1 Port 1
+product INTEL C3K_PCIERP_6	0x19aa	C3000 PCIe Cluster 1 Port 2
+product INTEL C3K_PCIERP_7	0x19ab	C3000 PCIe Cluster 1 Port 3
+product INTEL C3K_SMBUS		0x19ac	C3000 SMBus
+product INTEL C3K_SATA0_0	0x19b0	C3000 SATA Controller 0
+product INTEL C3K_SATA0_1	0x19b1	C3000 SATA Controller 0
+product INTEL C3K_SATA0_2	0x19b2	C3000 SATA Controller 0
+product INTEL C3K_SATA0_3	0x19b3	C3000 SATA Controller 0
+product INTEL C3K_SATA0_4	0x19b4	C3000 SATA Controller 0
+product INTEL C3K_SATA0_5	0x19b5	C3000 SATA Controller 0
+product INTEL C3K_SATA0_6	0x19b6	C3000 SATA Controller 0
+product INTEL C3K_SATA0_7	0x19b7	C3000 SATA Controller 0
+product INTEL C3K_SATA0_8	0x19b8	C3000 SATA Controller 0
+product INTEL C3K_SATA0_9	0x19b9	C3000 SATA Controller 0
+product INTEL C3K_SATA0_10	0x19ba	C3000 SATA Controller 0
+product INTEL C3K_SATA0_11	0x19bb	C3000 SATA Controller 0
+product INTEL C3K_SATA0_12	0x19bc	C3000 SATA Controller 0
+product INTEL C3K_SATA0_13	0x19bd	C3000 SATA Controller 0
+product INTEL C3K_SATA0_14	0x19be	C3000 SATA Controller 0
+product INTEL C3K_SATA0_15	0x19bf	C3000 SATA Controller 0
+product INTEL C3K_SATA1_0	0x19c0	C3000 SATA Controller 1
+product INTEL C3K_SATA1_1	0x19c1	C3000 SATA Controller 1
+product INTEL 

CVS commit: src/doc

2017-08-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Aug 17 00:14:17 UTC 2017

Modified Files:
src/doc: 3RDPARTY

Log Message:
GCC 4.8 is gone, and GCC 7.2 is out.
MPC 1.0.3 is in.


To generate a diff of this commit:
cvs rdiff -u -r1.1464 -r1.1465 src/doc/3RDPARTY

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.1464 src/doc/3RDPARTY:1.1465
--- src/doc/3RDPARTY:1.1464	Thu Aug  3 00:05:56 2017
+++ src/doc/3RDPARTY	Thu Aug 17 00:14:17 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: 3RDPARTY,v 1.1464 2017/08/03 00:05:56 taca Exp $
+#	$NetBSD: 3RDPARTY,v 1.1465 2017/08/17 00:14:17 mrg Exp $
 #
 # This file contains a list of the software that has been integrated into
 # NetBSD where we are not the primary maintainer.
@@ -451,8 +451,8 @@ Notes:
 There is a flex2netbsd script to help newer imports.
 
 Package:	gcc
-Version:	4.8.5/5.4
-Current Vers:	4.8.5/5.4/6.4/7.1
+Version:	5.4
+Current Vers:	5.4/6.4/7.2
 Maintainer:	FSF
 Archive Site:	ftp://ftp.gnu.org/gnu/gcc/
 Home Page:	http://www.gnu.org/software/gcc/
@@ -1508,7 +1508,7 @@ Notes:
 3. Carefully check for GPL components leaked into the dist area.
 
 Package:	mpc
-Version:	1.0.1
+Version:	1.0.3
 Current Vers:	1.0.3
 Maintainer:	
 Archive Site:	http://www.multiprecision.org/mpc/download/



CVS commit: src/usr.sbin/rpcbind

2017-08-16 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Thu Aug 17 00:08:10 UTC 2017

Modified Files:
src/usr.sbin/rpcbind: warmstart.c

Log Message:
Fix compile warnings.
(Restore changes clobbered by merge of FreeBSD changes. Hi christos!)


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/usr.sbin/rpcbind/warmstart.c

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

Modified files:

Index: src/usr.sbin/rpcbind/warmstart.c
diff -u src/usr.sbin/rpcbind/warmstart.c:1.7 src/usr.sbin/rpcbind/warmstart.c:1.8
--- src/usr.sbin/rpcbind/warmstart.c:1.7	Wed Aug 16 23:38:16 2017
+++ src/usr.sbin/rpcbind/warmstart.c	Thu Aug 17 00:08:10 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: warmstart.c,v 1.7 2017/08/16 23:38:16 ginsbach Exp $	*/
+/*	$NetBSD: warmstart.c,v 1.8 2017/08/17 00:08:10 ginsbach Exp $	*/
 /* $FreeBSD: head/usr.sbin/rpcbind/warmstart.c 258564 2013-11-25 16:44:02Z hrs $*/
 
 /*-
@@ -136,9 +136,9 @@ error:	warnx("Will start from scratch");
 void
 write_warmstart(void)
 {
-	(void)write_struct(RPCBFILE, xdr_rpcblist_ptr, _rbl);
+	(void)write_struct(RPCBFILE, (xdrproc_t) xdr_rpcblist_ptr, _rbl);
 #ifdef PORTMAP
-	(void)write_struct(PMAPFILE, xdr_pmaplist_ptr, _pml);
+	(void)write_struct(PMAPFILE, (xdrproc_t) xdr_pmaplist_ptr, _pml);
 #endif
 
 }
@@ -152,11 +152,11 @@ read_warmstart(void)
 #endif
 	int ok1, ok2 = TRUE;
 
-	ok1 = read_struct(RPCBFILE, xdr_rpcblist_ptr, _rpcbl);
+	ok1 = read_struct(RPCBFILE, (xdrproc_t) xdr_rpcblist_ptr, _rpcbl);
 	if (ok1 == FALSE)
 		return;
 #ifdef PORTMAP
-	ok2 = read_struct(PMAPFILE, xdr_pmaplist_ptr, _pmapl);
+	ok2 = read_struct(PMAPFILE, (xdrproc_t) xdr_pmaplist_ptr, _pmapl);
 #endif
 	if (ok2 == FALSE) {
 		xdr_free((xdrproc_t) xdr_rpcblist_ptr, (char *)_rpcbl);



CVS import: src/external/lgpl3/mpc/dist

2017-08-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Aug 17 00:08:05 UTC 2017

Update of /cvsroot/src/external/lgpl3/mpc/dist
In directory ivanova.netbsd.org:/tmp/cvs-serv16606

Log Message:
initial import of MPC 1.0.3 package.  changes since 1.0.1:

Changes in version 1.0.3:
  - Fixed mpc_pow, see
http://lists.gforge.inria.fr/pipermail/mpc-discuss/2014-October/001315.html
  - #18257: Switched to libtool 2.4.5.

Changes in version 1.0.2:
  - Fixed mpc_atan, mpc_atanh for (+-0, +-1), see
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57994#c7
  - Fixed mpc_log10 for purely imaginary argument, see

http://lists.gforge.inria.fr/pipermail/mpc-discuss/2012-September/001208.html

Status:

Vendor Tag: mpc
Release Tags:   mpc-1-0-3

C src/external/lgpl3/mpc/dist/config.guess
U src/external/lgpl3/mpc/dist/AUTHORS
U src/external/lgpl3/mpc/dist/Makefile.am
U src/external/lgpl3/mpc/dist/config.h.in
U src/external/lgpl3/mpc/dist/depcomp
U src/external/lgpl3/mpc/dist/Makefile.vc
U src/external/lgpl3/mpc/dist/aclocal.m4
U src/external/lgpl3/mpc/dist/COPYING.LESSER
C src/external/lgpl3/mpc/dist/config.sub
U src/external/lgpl3/mpc/dist/configure.ac
U src/external/lgpl3/mpc/dist/NEWS
N src/external/lgpl3/mpc/dist/compile
U src/external/lgpl3/mpc/dist/ltmain.sh
N src/external/lgpl3/mpc/dist/test-driver
U src/external/lgpl3/mpc/dist/Makefile.in
U src/external/lgpl3/mpc/dist/ar-lib
U src/external/lgpl3/mpc/dist/INSTALL
U src/external/lgpl3/mpc/dist/ChangeLog
U src/external/lgpl3/mpc/dist/README
U src/external/lgpl3/mpc/dist/TODO
U src/external/lgpl3/mpc/dist/install-sh
U src/external/lgpl3/mpc/dist/configure
U src/external/lgpl3/mpc/dist/missing
U src/external/lgpl3/mpc/dist/tests/fr_sub.dat
U src/external/lgpl3/mpc/dist/tests/div.dat
U src/external/lgpl3/mpc/dist/tests/fr_div.dat
U src/external/lgpl3/mpc/dist/tests/tproj.c
U src/external/lgpl3/mpc/dist/tests/tget_version.c
U src/external/lgpl3/mpc/dist/tests/tmul_2ui.c
U src/external/lgpl3/mpc/dist/tests/pow_ui.dat
U src/external/lgpl3/mpc/dist/tests/exp.dat
U src/external/lgpl3/mpc/dist/tests/add.dat
U src/external/lgpl3/mpc/dist/tests/tacos.c
U src/external/lgpl3/mpc/dist/tests/neg.dat
U src/external/lgpl3/mpc/dist/tests/comparisons.c
U src/external/lgpl3/mpc/dist/tests/mul_fr.dat
U src/external/lgpl3/mpc/dist/tests/acosh.dat
U src/external/lgpl3/mpc/dist/tests/tatanh.c
U src/external/lgpl3/mpc/dist/tests/tmul_ui.c
U src/external/lgpl3/mpc/dist/tests/tpow_ld.c
U src/external/lgpl3/mpc/dist/tests/tdiv.c
U src/external/lgpl3/mpc/dist/tests/tpow_si.c
U src/external/lgpl3/mpc/dist/tests/texp.c
U src/external/lgpl3/mpc/dist/tests/tacosh.c
U src/external/lgpl3/mpc/dist/tests/tsin_cos.c
U src/external/lgpl3/mpc/dist/tests/read_data.c
U src/external/lgpl3/mpc/dist/tests/Makefile.am
U src/external/lgpl3/mpc/dist/tests/tdiv_ui.c
U src/external/lgpl3/mpc/dist/tests/tcosh.c
U src/external/lgpl3/mpc/dist/tests/tadd_fr.c
U src/external/lgpl3/mpc/dist/tests/ttan.c
U src/external/lgpl3/mpc/dist/tests/sinh.dat
U src/external/lgpl3/mpc/dist/tests/treal.c
U src/external/lgpl3/mpc/dist/tests/tmul.c
U src/external/lgpl3/mpc/dist/tests/sqrt.dat
U src/external/lgpl3/mpc/dist/tests/tui_ui_sub.c
U src/external/lgpl3/mpc/dist/tests/tfma.c
U src/external/lgpl3/mpc/dist/tests/pow.dat
U src/external/lgpl3/mpc/dist/tests/tpow_fr.c
U src/external/lgpl3/mpc/dist/tests/conj.dat
U src/external/lgpl3/mpc/dist/tests/tabs.c
U src/external/lgpl3/mpc/dist/tests/tneg.c
U src/external/lgpl3/mpc/dist/tests/tconj.c
U src/external/lgpl3/mpc/dist/tests/proj.dat
U src/external/lgpl3/mpc/dist/tests/tlog.c
U src/external/lgpl3/mpc/dist/tests/tstrtoc.c
U src/external/lgpl3/mpc/dist/tests/log.dat
U src/external/lgpl3/mpc/dist/tests/log10.dat
U src/external/lgpl3/mpc/dist/tests/tdiv_2ui.c
U src/external/lgpl3/mpc/dist/tests/tfr_sub.c
U src/external/lgpl3/mpc/dist/tests/tsin.c
U src/external/lgpl3/mpc/dist/tests/strtoc.dat
U src/external/lgpl3/mpc/dist/tests/pow_si.dat
U src/external/lgpl3/mpc/dist/tests/random.c
U src/external/lgpl3/mpc/dist/tests/tmul_fr.c
U src/external/lgpl3/mpc/dist/tests/mul.dat
U src/external/lgpl3/mpc/dist/tests/tdiv_2si.c
U src/external/lgpl3/mpc/dist/tests/pow_fr.dat
U src/external/lgpl3/mpc/dist/tests/treimref.c
U src/external/lgpl3/mpc/dist/tests/Makefile.in
U src/external/lgpl3/mpc/dist/tests/tadd.c
U src/external/lgpl3/mpc/dist/tests/tpow_d.c
U src/external/lgpl3/mpc/dist/tests/acos.dat
U src/external/lgpl3/mpc/dist/tests/tsub_fr.c
U src/external/lgpl3/mpc/dist/tests/ttanh.c
U src/external/lgpl3/mpc/dist/tests/sin.dat
U src/external/lgpl3/mpc/dist/tests/tswap.c
U src/external/lgpl3/mpc/dist/tests/tpow_z.c
U src/external/lgpl3/mpc/dist/tests/fma.dat
U src/external/lgpl3/mpc/dist/tests/tgeneric.c
U src/external/lgpl3/mpc/dist/tests/tdiv_fr.c
U src/external/lgpl3/mpc/dist/tests/add_fr.dat
U src/external/lgpl3/mpc/dist/tests/targ.c
U src/external/lgpl3/mpc/dist/tests/tprec.c
U src/external/lgpl3/mpc/dist/tests/arg.dat
U src/external/lgpl3/mpc/dist/tests/tasinh.c

CVS commit: src/usr.sbin/rpcbind

2017-08-16 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Thu Aug 17 00:06:00 UTC 2017

Modified Files:
src/usr.sbin/rpcbind: Makefile

Log Message:
Revert accidently committed enabling WARMSTART.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/usr.sbin/rpcbind/Makefile

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

Modified files:

Index: src/usr.sbin/rpcbind/Makefile
diff -u src/usr.sbin/rpcbind/Makefile:1.13 src/usr.sbin/rpcbind/Makefile:1.14
--- src/usr.sbin/rpcbind/Makefile:1.13	Wed Aug 16 23:38:16 2017
+++ src/usr.sbin/rpcbind/Makefile	Thu Aug 17 00:06:00 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.13 2017/08/16 23:38:16 ginsbach Exp $
+#	$NetBSD: Makefile,v 1.14 2017/08/17 00:06:00 ginsbach Exp $
 
 .include 
 
@@ -21,7 +21,6 @@ CPPFLAGS+=	-DINET6
 # Uncomment these to get any useful output from 'rpcbind -d'
 # CPPFLAGS+=	-DRPCBIND_DEBUG
 # CPPFLAGS+=	-DSVC_RUN_DEBUG
-CPPFLAGS+= -DWARMSTART
 
 LDADD+= -lwrap -lutil
 DPADD+= ${LIBWRAP} ${LIBUTIL}



CVS commit: src/usr.sbin/rpcbind

2017-08-16 Thread Brian Ginsbach
Module Name:src
Committed By:   ginsbach
Date:   Wed Aug 16 23:38:16 UTC 2017

Modified Files:
src/usr.sbin/rpcbind: Makefile warmstart.c

Log Message:
Write the "warm start" file to /var/run rather than /tmp.
(Restore changes clobbered by merge of FreeBSD changes. Hi christos!)


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.sbin/rpcbind/Makefile
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/rpcbind/warmstart.c

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

Modified files:

Index: src/usr.sbin/rpcbind/Makefile
diff -u src/usr.sbin/rpcbind/Makefile:1.12 src/usr.sbin/rpcbind/Makefile:1.13
--- src/usr.sbin/rpcbind/Makefile:1.12	Wed Apr 22 15:23:07 2009
+++ src/usr.sbin/rpcbind/Makefile	Wed Aug 16 23:38:16 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.12 2009/04/22 15:23:07 lukem Exp $
+#	$NetBSD: Makefile,v 1.13 2017/08/16 23:38:16 ginsbach Exp $
 
 .include 
 
@@ -21,6 +21,7 @@ CPPFLAGS+=	-DINET6
 # Uncomment these to get any useful output from 'rpcbind -d'
 # CPPFLAGS+=	-DRPCBIND_DEBUG
 # CPPFLAGS+=	-DSVC_RUN_DEBUG
+CPPFLAGS+= -DWARMSTART
 
 LDADD+= -lwrap -lutil
 DPADD+= ${LIBWRAP} ${LIBUTIL}

Index: src/usr.sbin/rpcbind/warmstart.c
diff -u src/usr.sbin/rpcbind/warmstart.c:1.6 src/usr.sbin/rpcbind/warmstart.c:1.7
--- src/usr.sbin/rpcbind/warmstart.c:1.6	Wed Aug 16 08:44:40 2017
+++ src/usr.sbin/rpcbind/warmstart.c	Wed Aug 16 23:38:16 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: warmstart.c,v 1.6 2017/08/16 08:44:40 christos Exp $	*/
+/*	$NetBSD: warmstart.c,v 1.7 2017/08/16 23:38:16 ginsbach Exp $	*/
 /* $FreeBSD: head/usr.sbin/rpcbind/warmstart.c 258564 2013-11-25 16:44:02Z hrs $*/
 
 /*-
@@ -42,6 +42,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -61,9 +62,9 @@
 
 
 /* These files keep the pmap_list and rpcb_list in XDR format */
-#define	RPCBFILE	"/tmp/rpcbind.file"
+#define	RPCBFILE	_PATH_VARRUN "rpcbind.file"
 #ifdef PORTMAP
-#define	PMAPFILE	"/tmp/portmap.file"
+#define	PMAPFILE	_PATH_VARRUN "portmap.file"
 #endif
 
 static bool_t write_struct(const char *, xdrproc_t, void *);



CVS commit: othersrc/external/bsd/agcre/dist

2017-08-16 Thread Alistair G. Crooks
Module Name:othersrc
Committed By:   agc
Date:   Wed Aug 16 23:38:35 UTC 2017

Added Files:
othersrc/external/bsd/agcre/dist: internal.h

Log Message:
Just what this world needs - another regexp library. However, for
something I was doing, I needed a regexp library in C, BSD-licensed,
and able to be exposed to a wide range of expressions, some better
controlled than others.

The resulting library is libagcre, which implements regular expression
compilation and execution. It uses the Pike Virtual Machine approach,
and features:

+ standard POSIX features where sane
+ some/most Perl escapes
+ lazy matching via '?'
+ non-capture parenthese (?:...)
+ in-expression case-insensitive directives are supported (?i)...(?-i)
+ all case-insensitivity is actioned at expression exec time.
Case-insensitivity can be specified at expression compile-time,
and, if so, it will be remembered.  But the expression itself, once
compiled, can be used to match in both a case-sensitive and insensitive
manner
+ utf8 is supported both for expressions and for input text when
matching
+ unicode escapes (in the Java format of \uABCD) are supported
+ exact multiple repetition specifiers {N}, and {N,M} are supported
+ backreferences are supported
+ utf16 (LE and BE) and utf32 (LE and BE) are supported, both for the
expression and for the input being searched
+ at the most basic level, individual 32bit unicode characters are
matched
+ an egrep/grep implementation for matching unicode regexps
is included

A simple implementation of sets is used to provide inclusion and
exclusion information for unicode characters, which is taken directly
from unicode.org. No bitmasks are used - ranges are specified by
using an upper and a lower bound for the codepoints. Callbacks can
also be added to these sets, to provide functionality similar to
the ctype macros across the whole unicode character set.

The standard regular expression basic3 torture test is passed with
4 known (and, I'd argue, incorrect) results flagged.  As expected,
the expression '(a?){}a' matches
in linear time, as does the expression
'((x))'

% time agcre '(a?){}a' dist/tests/2.in
a
0.063u 0.000s 0:00.06 100.0%0+0k 0+0io 0pf+0w
% time egrep '(a?){}a' dist/tests/2.in
^C88.462u 0.730s 1:29.21 99.9%  0+0k 0+0io 0pf+0w
%

The library and agcre utility have been run through valgrind to
confirm no memory leaks.

In general, the emphasis is on a modern, predictable, VM-style,
well-featured regexp library, in C, with a BSD license. In
particular, sljit has not been used to speed up on certain platforms,
most Perl regexp features are supported, as are back references,
and UTF-8, UTF-16 and UTF32.

Once again, I wouldn't expect anyone to use this as the main engine
in egrep. But I am always amazed at the uses for some of the things
that I write.

For more information about the Pike VM, and comparison to other
regexp implementations, please see:

https://swtch.com/~rsc/regexp/regexp2.html

Alistair Crooks
Tue Aug 15 07:43:34 PDT 2017


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 othersrc/external/bsd/agcre/dist/internal.h

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

Added files:

Index: othersrc/external/bsd/agcre/dist/internal.h
diff -u /dev/null othersrc/external/bsd/agcre/dist/internal.h:1.1
--- /dev/null	Wed Aug 16 23:38:35 2017
+++ othersrc/external/bsd/agcre/dist/internal.h	Wed Aug 16 23:38:35 2017
@@ -0,0 +1,165 @@
+/*-
+ * Copyright (c) 2017 Alistair Crooks 
+ * 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 AUTHOR ``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 AUTHOR 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 

CVS commit: othersrc/external/bsd/agcre

2017-08-16 Thread Alistair G. Crooks
Module Name:othersrc
Committed By:   agc
Date:   Wed Aug 16 23:38:14 UTC 2017

Added Files:
othersrc/external/bsd/agcre: Makefile README
othersrc/external/bsd/agcre/bin: Makefile
othersrc/external/bsd/agcre/dist: Makefile.bsd Makefile.in
Makefile.lib.in Makefile.libtool.in agcre.1 agcre.h agcre_format.7
comp.c configure error.c exec.c free.c lex.c lex.h libagcre.3
main.c mkdist new.c set.c set.h unicode.c unicode.h
othersrc/external/bsd/agcre/dist/tests: 1.expected 1.in 10.expected
11.expected 12.expected 13.expected 14.expected 15.expected
16.expected 17.expected 18.expected 19.expected 2.expected 2.in
20.expected 21.expected 22.expected 23.expected 24.expected
25.expected 26.expected 27.expected 28.expected 29.expected
3.expected 3.in 30.expected 31.expected 32.expected 33.expected
34.expected 35.expected 36.expected 37.expected 38.expected
39.expected 4.expected 40.expected 41.expected 42.expected
43.expected 44.expected 45.expected 46.expected 47.expected
48.expected 49.expected 5.expected 50.expected 51.expected
52.expected 53.expected 54.expected 55.expected 56.expected
57.expected 58.expected 59.expected 6.expected 60.expected
61.expected 62.expected 63.expected 64.expected 65.expected
66.expected 67.expected 68.expected 69.expected 7.expected
70.expected 71.expected 72.expected 73.expected 74.expected
75.expected 76.expected 77.expected 78.expected 79.expected
8.expected 80.expected 81.expected 82.expected 83.expected
84.expected 85.expected 86.expected 87.expected 88.expected
89.expected 9.expected 90.expected 91.expected 92.expected
UTF-8-demo.txt expression words
othersrc/external/bsd/agcre/lib: Makefile shlib_version

Log Message:
Just what this world needs - another regexp library. However, for
something I was doing, I needed a regexp library in C, BSD-licensed,
and able to be exposed to a wide range of expressions, some better
controlled than others.

The resulting library is libagcre, which implements regular expression
compilation and execution. It uses the Pike Virtual Machine approach,
and features:

+ standard POSIX features where sane
+ some/most Perl escapes
+ lazy matching via '?'
+ non-capture parenthese (?:...)
+ in-expression case-insensitive directives are supported (?i)...(?-i)
+ all case-insensitivity is actioned at expression exec time.
Case-insensitivity can be specified at expression compile-time,
and, if so, it will be remembered.  But the expression itself, once
compiled, can be used to match in both a case-sensitive and insensitive
manner
+ utf8 is supported both for expressions and for input text when
matching
+ unicode escapes (in the Java format of \uABCD) are supported
+ exact multiple repetition specifiers {N}, and {N,M} are supported
+ backreferences are supported
+ utf16 (LE and BE) and utf32 (LE and BE) are supported, both for the
expression and for the input being searched
+ at the most basic level, individual 32bit unicode characters are
matched
+ an egrep/grep implementation for matching unicode regexps
is included

A simple implementation of sets is used to provide inclusion and
exclusion information for unicode characters, which is taken directly
from unicode.org. No bitmasks are used - ranges are specified by
using an upper and a lower bound for the codepoints. Callbacks can
also be added to these sets, to provide functionality similar to
the ctype macros across the whole unicode character set.

The standard regular expression basic3 torture test is passed with
4 known (and, I'd argue, incorrect) results flagged.  As expected,
the expression '(a?){}a' matches
in linear time, as does the expression
'((x))'

% time agcre '(a?){}a' dist/tests/2.in
a
0.063u 0.000s 0:00.06 100.0%0+0k 0+0io 0pf+0w
% time egrep '(a?){}a' dist/tests/2.in
^C88.462u 0.730s 1:29.21 99.9%  0+0k 0+0io 0pf+0w
%

The library and agcre utility have been run through valgrind to
confirm no memory leaks.

In general, the emphasis is on a modern, predictable, VM-style,
well-featured regexp library, in C, with a BSD license. In
particular, sljit has not been used to speed up on certain platforms,
most Perl regexp features are supported, as are back references,
and UTF-8, UTF-16 and UTF32.

Once again, I wouldn't expect anyone to use this as the main engine
in egrep. But I am always amazed at the uses for some of the things
that I write.

For more information about the Pike VM, and comparison to other
regexp implementations, please see:


CVS commit: src/sys/arch/aarch64/aarch64

2017-08-16 Thread Tohru Nishimura
Module Name:src
Committed By:   nisimura
Date:   Wed Aug 16 22:52:48 UTC 2017

Removed Files:
src/sys/arch/aarch64/aarch64: copyinout.S fusu.S

Log Message:
retire copyinout.S and fusu.S


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 src/sys/arch/aarch64/aarch64/copyinout.S \
src/sys/arch/aarch64/aarch64/fusu.S

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



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

2017-08-16 Thread Tohru Nishimura
Module Name:src
Committed By:   nisimura
Date:   Wed Aug 16 22:52:41 UTC 2017

Modified Files:
src/sys/arch/aarch64/conf: files.aarch64

Log Message:
retire copyinout.S and fusu.S


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/aarch64/conf/files.aarch64

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/aarch64/conf/files.aarch64
diff -u src/sys/arch/aarch64/conf/files.aarch64:1.1 src/sys/arch/aarch64/conf/files.aarch64:1.2
--- src/sys/arch/aarch64/conf/files.aarch64:1.1	Sun Aug 10 05:47:37 2014
+++ src/sys/arch/aarch64/conf/files.aarch64	Wed Aug 16 22:52:40 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: files.aarch64,v 1.1 2014/08/10 05:47:37 matt Exp $
+#	$NetBSD: files.aarch64,v 1.2 2017/08/16 22:52:40 nisimura Exp $
 
 # CPU types.
 defflag	opt_cputypes.h		CPU_CORTEXA53
@@ -71,10 +71,10 @@ file	arch/aarch64/dev/a64gtmr.c			a64gtm
 #file	arch/aarch64/aarch64/bus_space_asm_generic.S	bus_space_generic
 #file	arch/aarch64/aarch64/bus_space_notimpl.S
 
-file	arch/aarch64/aarch64/copyinout.S
+#file	arch/aarch64/aarch64/copyinout.S
 file	arch/aarch64/aarch64/cpu_in_cksum.S		inet | inet6
 file	arch/aarch64/aarch64/exception.S
-file	arch/aarch64/aarch64/fusu.S
+#file	arch/aarch64/aarch64/fusu.S
 file	arch/aarch64/aarch64/idle_machdep.S
 file	arch/aarch64/aarch64/pmap_page.S
 file	arch/aarch64/aarch64/vectors.S



CVS commit: src/sys/arch/aarch64/aarch64

2017-08-16 Thread Tohru Nishimura
Module Name:src
Committed By:   nisimura
Date:   Wed Aug 16 22:49:05 UTC 2017

Modified Files:
src/sys/arch/aarch64/aarch64: locore.S

Log Message:
add cpu_set_onfault glue


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/aarch64/aarch64/locore.S

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

Modified files:

Index: src/sys/arch/aarch64/aarch64/locore.S
diff -u src/sys/arch/aarch64/aarch64/locore.S:1.1 src/sys/arch/aarch64/aarch64/locore.S:1.2
--- src/sys/arch/aarch64/aarch64/locore.S:1.1	Sun Aug 10 05:47:37 2014
+++ src/sys/arch/aarch64/aarch64/locore.S	Wed Aug 16 22:49:05 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.1 2014/08/10 05:47:37 matt Exp $ */
+/* $NetBSD: locore.S,v 1.2 2017/08/16 22:49:05 nisimura Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -34,7 +34,10 @@
 
 #include "opt_ddb.h"
 
-RCSID("$NetBSD: locore.S,v 1.1 2014/08/10 05:47:37 matt Exp $")
+RCSID("$NetBSD: locore.S,v 1.2 2017/08/16 22:49:05 nisimura Exp $")
+
+// XXX:AARCH64
+lr	.req	x30
 
 /*
  * At IPL_SCHED:
@@ -116,6 +119,18 @@ ENTRY_NP(cpu_switchto)
 END(cpu_switchto)
 
 /*
+ *	x0 = lwp
+ *	x1 = ipl
+ */
+ENTRY_NP(cpu_switchto_softint)
+//
+//XXXAARCH64
+//
+	ret
+END(cpu_switchto_softint)
+
+
+/*
  * Called at IPL_SCHED
  *	x0 = old lwp (from cpu_switchto)
  *	x1 = new lwp (from cpu_switchto)
@@ -190,6 +205,29 @@ ENTRY(cpu_Debugger)
 END(cpu_Debugger)
 #endif /* DDB */
 
+/*
+ * int cpu_set_onfault(struct faultbuf *fb, register_t retval)
+ */
+ENTRY(cpu_set_onfault)
+	mov	x9, sp
+	stp	x19, x20, [x0, #0]
+	stp	x21, x22, [x0, #16]
+	stp	x23, x24, [x0, #32]
+	stp	x25, x26, [x0, #48]
+	stp	x27, x28, [x0, #64]
+	stp	x29, x9, [x0, #80]
+	stp	lr, x1, [x0, #96]
+	mrs	x3, tpidr_el1		/* curcpu */
+	ldr	x2, [x3, #CI_CURLWP]	/* curlwp */
+	str	x0, [x2, #L_MD_ONFAULT] /* l_md.md_onfault = fb */
+	mov	x0, #0
+END(cpu_set_onfault)
+
+/*
+ * setjmp(9)
+ * int setjmp(label_t *label);
+ * void longjmp(label_t *label);
+ */
 ENTRY(setjmp)
 	stp	x19, x20, [x0, #0]
 	stp	x21, x22, [x0, #16]



CVS commit: src/sys/arch/aarch64/aarch64

2017-08-16 Thread Tohru Nishimura
Module Name:src
Committed By:   nisimura
Date:   Wed Aug 16 22:48:11 UTC 2017

Modified Files:
src/sys/arch/aarch64/aarch64: trap.c

Log Message:
reimplement copy/fetch/store(9). mostly copied from riscv


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/aarch64/aarch64/trap.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/aarch64/aarch64/trap.c
diff -u src/sys/arch/aarch64/aarch64/trap.c:1.1 src/sys/arch/aarch64/aarch64/trap.c:1.2
--- src/sys/arch/aarch64/aarch64/trap.c:1.1	Sun Aug 10 05:47:37 2014
+++ src/sys/arch/aarch64/aarch64/trap.c	Wed Aug 16 22:48:11 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.1 2014/08/10 05:47:37 matt Exp $ */
+/* $NetBSD: trap.c,v 1.2 2017/08/16 22:48:11 nisimura Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include 
 
-__KERNEL_RCSID(1, "$NetBSD: trap.c,v 1.1 2014/08/10 05:47:37 matt Exp $");
+__KERNEL_RCSID(1, "$NetBSD: trap.c,v 1.2 2017/08/16 22:48:11 nisimura Exp $");
 
 #include 
 #include 
@@ -45,3 +45,290 @@ userret(struct lwp *l, struct trapframe 
 {
 	mi_userret(l);
 }
+
+// XXXAARCH64 might be populated in frame.h in future
+
+#define FB_X19	0
+#define FB_X20	1
+#define FB_X21	2
+#define FB_X22	3
+#define FB_X23	4
+#define FB_X24	5
+#define FB_X25	6
+#define FB_X26	7
+#define FB_X27	8
+#define FB_X28	9
+#define FB_X29	10
+#define FB_SP	11
+#define FB_LR	12
+#define FB_V0	13
+#define FB_MAX	14
+
+struct faultbuf {
+	register_t fb_reg[FB_MAX];
+};
+
+int	cpu_set_onfault(struct faultbuf *, register_t) __returns_twice;
+void	cpu_jump_onfault(struct trapframe *, const struct faultbuf *);
+void	cpu_unset_onfault(void);
+struct faultbuf *cpu_disable_onfault(void);
+void	cpu_enable_onfault(struct faultbuf *);
+
+void
+cpu_jump_onfault(struct trapframe *tf, const struct faultbuf *fb)
+{
+
+	tf->tf_reg[19] = fb->fb_reg[FB_X19];
+	tf->tf_reg[20] = fb->fb_reg[FB_X20];
+	tf->tf_reg[21] = fb->fb_reg[FB_X21];
+	tf->tf_reg[22] = fb->fb_reg[FB_X22];
+	tf->tf_reg[23] = fb->fb_reg[FB_X23];
+	tf->tf_reg[24] = fb->fb_reg[FB_X24];
+	tf->tf_reg[25] = fb->fb_reg[FB_X25];
+	tf->tf_reg[26] = fb->fb_reg[FB_X26];
+	tf->tf_reg[27] = fb->fb_reg[FB_X27];
+	tf->tf_reg[28] = fb->fb_reg[FB_X28];
+	tf->tf_reg[29] = fb->fb_reg[FB_X29];
+	tf->tf_reg[0] = fb->fb_reg[FB_V0];
+	tf->tf_sp = fb->fb_reg[FB_SP];
+	tf->tf_lr = fb->fb_reg[FB_LR];
+}
+
+void
+cpu_unset_onfault(void)
+{
+
+	curlwp->l_md.md_onfault = NULL;
+}
+
+struct faultbuf *
+cpu_disable_onfault(void)
+{
+	struct faultbuf * const fb = curlwp->l_md.md_onfault;
+
+	curlwp->l_md.md_onfault = NULL;
+	return fb;
+}
+
+void
+cpu_enable_onfault(struct faultbuf *fb)
+{
+
+	curlwp->l_md.md_onfault = NULL;
+}
+
+/*
+ * kcopy(9)
+ * int kcopy(const void *src, void *dst, size_t len);
+ *
+ * copy(9)
+ * int copyin(const void *uaddr, void *kaddr, size_t len);
+ * int copyout(const void *kaddr, void *uaddr, size_t len);
+ * int copystr(const void *kfaddr, void *kdaddr, size_t len, size_t *done);
+ * int copyinstr(const void *uaddr, void *kaddr, size_t len, size_t *done);
+ * int copyoutstr(const void *kaddr, void *uaddr, size_t len, size_t *done);
+ */
+
+int
+kcopy(const void *kfaddr, void *kdaddr, size_t len)
+{
+	struct faultbuf fb;
+	int error;
+
+	if ((error = cpu_set_onfault(, EFAULT)) == 0) {
+		memcpy(kdaddr, kfaddr, len);
+		cpu_unset_onfault();
+	}
+	return error;
+}
+
+int
+copyin(const void *uaddr, void *kaddr, size_t len)
+{
+	struct faultbuf fb;
+	int error;
+
+	if ((error = cpu_set_onfault(, EFAULT)) == 0) {
+		memcpy(kaddr, uaddr, len);
+		cpu_unset_onfault();
+	}
+	return error;
+}
+
+int
+copyout(const void *kaddr, void *uaddr, size_t len)
+{
+	struct faultbuf fb;
+	int error;
+
+	if ((error = cpu_set_onfault(, EFAULT)) == 0) {
+		memcpy(uaddr, kaddr, len);
+		cpu_unset_onfault();
+	}
+	return error;
+}
+
+int
+copystr(const void *kfaddr, void *kdaddr, size_t len, size_t *done)
+{
+	struct faultbuf fb;
+	int error;
+
+	if ((error = cpu_set_onfault(, EFAULT)) == 0) {
+		len = strlcpy(kdaddr, kfaddr, len);
+		cpu_unset_onfault();
+		if (done != NULL) {
+			*done = len;
+		}
+	}
+	return error;
+}
+
+int
+copyinstr(const void *uaddr, void *kaddr, size_t len, size_t *done)
+{
+	struct faultbuf fb;
+	int error;
+
+	if ((error = cpu_set_onfault(, EFAULT)) == 0) {
+		len = strlcpy(kaddr, uaddr, len);
+		cpu_unset_onfault();
+		if (done != NULL) {
+			*done = len;
+		}
+	}
+	return error;
+}
+
+int
+copyoutstr(const void *kaddr, void *uaddr, size_t len, size_t *done)
+{
+	struct faultbuf fb;
+	int error;
+
+	if ((error = cpu_set_onfault(, EFAULT)) == 0) {
+		len = strlcpy(uaddr, kaddr, len);
+		cpu_unset_onfault();
+		if (done != NULL) {
+			*done = len;
+		}
+	}
+	return error;
+}
+
+/*
+ * fetch(9)
+ * int fubyte(const void *base);
+ * int fusword(const void *base);
+ * int fuswintr(const void *base);
+ * long fuword(const void *base);
+ *
+ * store(9)
+ * 

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

2017-08-16 Thread Tohru Nishimura
Module Name:src
Committed By:   nisimura
Date:   Wed Aug 16 22:37:34 UTC 2017

Modified Files:
src/sys/arch/aarch64/conf: kern.ldscript

Log Message:
add more sence. now compilable


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/aarch64/conf/kern.ldscript

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/aarch64/conf/kern.ldscript
diff -u src/sys/arch/aarch64/conf/kern.ldscript:1.3 src/sys/arch/aarch64/conf/kern.ldscript:1.4
--- src/sys/arch/aarch64/conf/kern.ldscript:1.3	Mon Aug 24 08:13:07 2015
+++ src/sys/arch/aarch64/conf/kern.ldscript	Wed Aug 16 22:37:34 2017
@@ -6,7 +6,7 @@ ENTRY(_start)
 SECTIONS
 {
   /* Read-only sections, merged into text segment: */
-  PROVIDE (__kernel_text = .;
+  PROVIDE (__kernel_text = .);
   .text   :
   {
 PROVIDE_HIDDEN (__eprol = .);
@@ -17,7 +17,7 @@ SECTIONS
 *(.text.hot .text.hot.*)
 *(.stub .text.* .gnu.linkonce.t.*)
 /* .gnu.warning sections are handled specially by elf32.em.  */
-. = ALIGN(0x800)
+/*. = ALIGN(0x800) */
 *(.vectors)
   } =0
   .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }



CVS commit: src

2017-08-16 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Aug 16 21:32:23 UTC 2017

Modified Files:
src/distrib/sets/lists/base: shl.mi
src/distrib/sets/lists/debug: shl.mi
src/lib/libc: shlib_version

Log Message:
Bump libc minor to 208 for strfmon_l.


To generate a diff of this commit:
cvs rdiff -u -r1.818 -r1.819 src/distrib/sets/lists/base/shl.mi
cvs rdiff -u -r1.180 -r1.181 src/distrib/sets/lists/debug/shl.mi
cvs rdiff -u -r1.275 -r1.276 src/lib/libc/shlib_version

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

Modified files:

Index: src/distrib/sets/lists/base/shl.mi
diff -u src/distrib/sets/lists/base/shl.mi:1.818 src/distrib/sets/lists/base/shl.mi:1.819
--- src/distrib/sets/lists/base/shl.mi:1.818	Thu Jun 15 16:00:57 2017
+++ src/distrib/sets/lists/base/shl.mi	Wed Aug 16 21:32:22 2017
@@ -1,4 +1,4 @@
-# $NetBSD: shl.mi,v 1.818 2017/06/15 16:00:57 christos Exp $
+# $NetBSD: shl.mi,v 1.819 2017/08/16 21:32:22 joerg Exp $
 #
 # Note:	Don't delete entries from here - mark them as "obsolete" instead,
 #	unless otherwise stated below.
@@ -18,7 +18,7 @@
 ./lib/libblacklist.so.0.0			base-sys-shlib		dynamicroot
 ./lib/libc.so	base-sys-shlib		dynamicroot
 ./lib/libc.so.12base-sys-shlib		dynamicroot
-./lib/libc.so.12.207base-sys-shlib		dynamicroot
+./lib/libc.so.12.208base-sys-shlib		dynamicroot
 ./lib/libcrypt.sobase-sys-shlib		dynamicroot
 ./lib/libcrypt.so.1base-sys-shlib		dynamicroot
 ./lib/libcrypt.so.1.0base-sys-shlib		dynamicroot
@@ -214,7 +214,7 @@
 ./usr/lib/libc++.so.1.0base-sys-shlib		compatfile,libcxx
 ./usr/lib/libc.sobase-sys-shlib		compatfile
 ./usr/lib/libc.so.12base-sys-shlib		compatfile
-./usr/lib/libc.so.12.207			base-sys-shlib		compatfile
+./usr/lib/libc.so.12.208			base-sys-shlib		compatfile
 ./usr/lib/libcdk.sobase-obsolete		compatfile,obsolete
 ./usr/lib/libcom_err.sobase-krb5-shlib		compatfile,kerberos
 ./usr/lib/libcom_err.so.8			base-krb5-shlib		compatfile,kerberos

Index: src/distrib/sets/lists/debug/shl.mi
diff -u src/distrib/sets/lists/debug/shl.mi:1.180 src/distrib/sets/lists/debug/shl.mi:1.181
--- src/distrib/sets/lists/debug/shl.mi:1.180	Wed Jul 12 07:38:17 2017
+++ src/distrib/sets/lists/debug/shl.mi	Wed Aug 16 21:32:22 2017
@@ -1,8 +1,8 @@
-# $NetBSD: shl.mi,v 1.180 2017/07/12 07:38:17 martin Exp $
+# $NetBSD: shl.mi,v 1.181 2017/08/16 21:32:22 joerg Exp $
 ./usr/lib/libbfd_g.a		comp-c-debuglib	debuglib,compatfile,binutils
 ./usr/libdata/debug/lib		base-sys-usr	debug,dynamicroot,compatdir
 ./usr/libdata/debug/lib/libblacklist.so.0.0.debug		comp-sys-debug	debug,dynamicroot
-./usr/libdata/debug/lib/libc.so.12.207.debug			comp-sys-debug	debug,dynamicroot
+./usr/libdata/debug/lib/libc.so.12.208.debug			comp-sys-debug	debug,dynamicroot
 ./usr/libdata/debug/lib/libcrypt.so.1.0.debug			comp-sys-debug	debug,dynamicroot
 ./usr/libdata/debug/lib/libcrypto.so.12.0.debug			comp-sys-debug	debug,dynamicroot
 ./usr/libdata/debug/lib/libdevmapper.so.1.0.debug		comp-sys-debug	debug,dynamicroot,lvm
@@ -70,7 +70,7 @@
 ./usr/libdata/debug/usr/lib/libbsdmalloc.so.0.0.debug		comp-sys-debug	debug,compatfile
 ./usr/libdata/debug/usr/lib/libbz2.so.1.1.debug			comp-sys-debug	debug,compatfile
 ./usr/libdata/debug/usr/lib/libc++.so.1.0.debug			comp-sys-debug	debug,compatfile,libcxx
-./usr/libdata/debug/usr/lib/libc.so.12.207.debug		comp-sys-debug	debug,compatfile
+./usr/libdata/debug/usr/lib/libc.so.12.208.debug		comp-sys-debug	debug,compatfile
 ./usr/libdata/debug/usr/lib/libcom_err.so.8.0.debug		comp-krb5-debug	debug,compatfile,kerberos
 ./usr/libdata/debug/usr/lib/libcrypt.so.1.0.debug		comp-sys-debug	debug,compatfile
 ./usr/libdata/debug/usr/lib/libcrypto.so.12.0.debug		comp-crypto-debug	debug,compatfile

Index: src/lib/libc/shlib_version
diff -u src/lib/libc/shlib_version:1.275 src/lib/libc/shlib_version:1.276
--- src/lib/libc/shlib_version:1.275	Thu Jun  8 18:27:05 2017
+++ src/lib/libc/shlib_version	Wed Aug 16 21:32:23 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: shlib_version,v 1.275 2017/06/08 18:27:05 joerg Exp $
+#	$NetBSD: shlib_version,v 1.276 2017/08/16 21:32:23 joerg Exp $
 #	Remember to update distrib/sets/lists/base/shl.* when changing
 #
 # things we wish to do on next major version bump:
@@ -51,4 +51,4 @@
 # - clean-up initialisation order between crt0.o, rtld and libc.
 # - move environ and __ps_strings from crt0.o into libc.
 major=12
-minor=207
+minor=208



CVS commit: src/sys/dev/pckbport

2017-08-16 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Wed Aug 16 21:18:58 UTC 2017

Modified Files:
src/sys/dev/pckbport: alps.c

Log Message:
Remove extra newline.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/pckbport/alps.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/pckbport/alps.c
diff -u src/sys/dev/pckbport/alps.c:1.3 src/sys/dev/pckbport/alps.c:1.4
--- src/sys/dev/pckbport/alps.c:1.3	Wed Aug 16 21:09:48 2017
+++ src/sys/dev/pckbport/alps.c	Wed Aug 16 21:18:58 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: alps.c,v 1.3 2017/08/16 21:09:48 nat Exp $ */
+/* $NetBSD: alps.c,v 1.4 2017/08/16 21:18:58 nat Exp $ */
 
 /*-
  * Copyright (c) 2017 Ryo ONODERA 
@@ -30,7 +30,7 @@
 #include "opt_pms.h"
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: alps.c,v 1.3 2017/08/16 21:09:48 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: alps.c,v 1.4 2017/08/16 21:18:58 nat Exp $");
 
 #include 
 #include 
@@ -687,7 +687,6 @@ pms_alps_probe_init(void *opaque)
 	int res;
 	u_char cmd[1], resp[3];
 
-
 	sc->last_x1 = 0;
 	sc->last_y1 = 0;
 	sc->last_x2 = 0;



CVS commit: src/sys/dev/pckbport

2017-08-16 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Wed Aug 16 21:09:48 UTC 2017

Modified Files:
src/sys/dev/pckbport: alps.c

Log Message:
If ALPS probe fails, send a PMS_RESET.
Restores functionality on a wrong version ALPS touchpad.

Addresses PR kern/52489.

This patch was prepared by/committed on behalf of maya@.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/pckbport/alps.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/pckbport/alps.c
diff -u src/sys/dev/pckbport/alps.c:1.2 src/sys/dev/pckbport/alps.c:1.3
--- src/sys/dev/pckbport/alps.c:1.2	Tue Aug 15 22:23:09 2017
+++ src/sys/dev/pckbport/alps.c	Wed Aug 16 21:09:48 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: alps.c,v 1.2 2017/08/15 22:23:09 ryoon Exp $ */
+/* $NetBSD: alps.c,v 1.3 2017/08/16 21:09:48 nat Exp $ */
 
 /*-
  * Copyright (c) 2017 Ryo ONODERA 
@@ -30,7 +30,7 @@
 #include "opt_pms.h"
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: alps.c,v 1.2 2017/08/15 22:23:09 ryoon Exp $");
+__KERNEL_RCSID(0, "$NetBSD: alps.c,v 1.3 2017/08/16 21:09:48 nat Exp $");
 
 #include 
 #include 
@@ -685,6 +685,8 @@ pms_alps_probe_init(void *opaque)
 	uint8_t e7sig[3];
 	uint8_t ecsig[3];
 	int res;
+	u_char cmd[1], resp[3];
+
 
 	sc->last_x1 = 0;
 	sc->last_y1 = 0;
@@ -726,8 +728,8 @@ pms_alps_probe_init(void *opaque)
 		aprint_normal_dev(psc->sc_dev,
 			"ALPS PS/2 V2 pointing device\n");
 	} else {
-		aprint_error_dev(psc->sc_dev, "No supported device found.\n");
-		return EINVAL;
+		res = EINVAL;
+		goto err;
 	}
 
 	/* From sysctl */
@@ -740,14 +742,17 @@ pms_alps_probe_init(void *opaque)
 		pckbport_set_inputhandler(psc->sc_kbctag, psc->sc_kbcslot,
 			pms_alps_input_v2, psc, device_xname(psc->sc_dev));
 	} else {
-		aprint_error_dev(psc->sc_dev, "No supported device found.\n");
-		return EINVAL;
+		res = EINVAL;
+		goto err;
 	}
 	/* Palm detection is enabled. */
 
 	return 0;
 
 err:
+	cmd[0] = PMS_RESET;
+	(void)pckbport_poll_cmd(psc->sc_kbctag, psc->sc_kbcslot, cmd,
+	1, 2, resp, 1);
 	aprint_error_dev(psc->sc_dev, "Failed to initialize an ALPS device.\n");
 	return res;
 }



CVS commit: src/sys/arch

2017-08-16 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Aug 16 20:54:19 UTC 2017

Modified Files:
src/sys/arch/arm/broadcom: bcm2835_sdhost.c
src/sys/arch/evbarm/rpi: rpi_machdep.c

Log Message:
Disable sdhost instead of sdhc for non-wifibt boards.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arm/broadcom/bcm2835_sdhost.c
cvs rdiff -u -r1.79 -r1.80 src/sys/arch/evbarm/rpi/rpi_machdep.c

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

Modified files:

Index: src/sys/arch/arm/broadcom/bcm2835_sdhost.c
diff -u src/sys/arch/arm/broadcom/bcm2835_sdhost.c:1.2 src/sys/arch/arm/broadcom/bcm2835_sdhost.c:1.3
--- src/sys/arch/arm/broadcom/bcm2835_sdhost.c:1.2	Sun Jul 30 23:47:58 2017
+++ src/sys/arch/arm/broadcom/bcm2835_sdhost.c	Wed Aug 16 20:54:19 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: bcm2835_sdhost.c,v 1.2 2017/07/30 23:47:58 jmcneill Exp $ */
+/* $NetBSD: bcm2835_sdhost.c,v 1.3 2017/08/16 20:54:19 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill 
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_sdhost.c,v 1.2 2017/07/30 23:47:58 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_sdhost.c,v 1.3 2017/08/16 20:54:19 jmcneill Exp $");
 
 #include 
 #include 
@@ -183,6 +183,7 @@ sdhost_attach(device_t parent, device_t 
 	struct sdhost_softc * const sc = device_private(self);
 	struct amba_attach_args * const aaa = aux;
 	prop_dictionary_t dict = device_properties(self);
+	bool disable = false;
 
 	sc->sc_dev = self;
 	sc->sc_bst = aaa->aaa_iot;
@@ -201,6 +202,13 @@ sdhost_attach(device_t parent, device_t 
 	aprint_naive("\n");
 	aprint_normal(": SD HOST controller\n");
 
+	prop_dictionary_get_bool(dict, "disable", );
+	if (disable) {
+		aprint_naive(": disabled\n");
+		aprint_normal(": disabled\n");
+		return;
+	}
+
 	prop_dictionary_get_uint32(dict, "frequency", >sc_rate);
 	if (sc->sc_rate == 0) {
 		aprint_error_dev(self, "couldn't get clock frequency\n");

Index: src/sys/arch/evbarm/rpi/rpi_machdep.c
diff -u src/sys/arch/evbarm/rpi/rpi_machdep.c:1.79 src/sys/arch/evbarm/rpi/rpi_machdep.c:1.80
--- src/sys/arch/evbarm/rpi/rpi_machdep.c:1.79	Sat Aug 12 11:44:26 2017
+++ src/sys/arch/evbarm/rpi/rpi_machdep.c	Wed Aug 16 20:54:19 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: rpi_machdep.c,v 1.79 2017/08/12 11:44:26 jmcneill Exp $	*/
+/*	$NetBSD: rpi_machdep.c,v 1.80 2017/08/16 20:54:19 jmcneill Exp $	*/
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: rpi_machdep.c,v 1.79 2017/08/12 11:44:26 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rpi_machdep.c,v 1.80 2017/08/16 20:54:19 jmcneill Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_bcm283x.h"
@@ -1293,18 +1293,16 @@ rpi_device_register(device_t dev, void *
 	vb.vbt_emmcclockrate.rate > 0) {
 		prop_dictionary_set_uint32(dict,
 		"frequency", vb.vbt_emmcclockrate.rate);
-#if NBCMSDHOST > 0
-		if (!rpi_rev_has_btwifi(vb.vbt_boardrev.rev)) {
-			/* No btwifi and sdhost driver is present */
-			prop_dictionary_set_bool(dict, "disable", true);
-		}
-#endif
 	}
 	if (device_is_a(dev, "sdhost") &&
 	vcprop_tag_success_p(_coreclockrate.tag) &&
 	vb.vbt_coreclockrate.rate > 0) {
 		prop_dictionary_set_uint32(dict,
 		"frequency", vb.vbt_coreclockrate.rate);
+		if (!rpi_rev_has_btwifi(vb.vbt_boardrev.rev)) {
+			/* No btwifi and sdhost driver is present */
+			prop_dictionary_set_bool(dict, "disable", true);
+		}
 	}
 	if (booted_device == NULL &&
 	device_is_a(dev, "ld") &&



CVS commit: src/usr.sbin/rpcbind

2017-08-16 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Wed Aug 16 18:23:03 UTC 2017

Modified Files:
src/usr.sbin/rpcbind: rpcbind.8

Log Message:
Use today's date. Sort options. Remove superfluous Tn macro. Wording 
improvement.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/usr.sbin/rpcbind/rpcbind.8

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

Modified files:

Index: src/usr.sbin/rpcbind/rpcbind.8
diff -u src/usr.sbin/rpcbind/rpcbind.8:1.13 src/usr.sbin/rpcbind/rpcbind.8:1.14
--- src/usr.sbin/rpcbind/rpcbind.8:1.13	Wed Aug 16 14:22:58 2017
+++ src/usr.sbin/rpcbind/rpcbind.8	Wed Aug 16 18:23:03 2017
@@ -1,9 +1,9 @@
-.\" $NetBSD: rpcbind.8,v 1.13 2017/08/16 14:22:58 christos Exp $
+.\" $NetBSD: rpcbind.8,v 1.14 2017/08/16 18:23:03 wiz Exp $
 .\" @(#)rpcbind.1m 1.19 92/09/14 SMI; from SVr4
 .\" Copyright 1989 AT
 .\" Copyright 1991 Sun Microsystems, Inc.
 .\" $FreeBSD: head/usr.sbin/rpcbind/rpcbind.8 317163 2017-04-19 20:23:27Z ngie $
-.Dd August 18, 2017
+.Dd August 16, 2017
 .Dt RPCBIND 8
 .Os
 .Sh NAME
@@ -11,45 +11,31 @@
 .Nd universal addresses to RPC program number mapper
 .Sh SYNOPSIS
 .Nm
-.Op Fl 6adiLlswW
+.Op Fl 6adiLlsWw
 .Op Fl h Ar bindip
 .Sh DESCRIPTION
 The
 .Nm
-utility is a server that converts
-.Tn RPC
-program numbers into
+utility is a server that converts RPC program numbers into
 universal addresses.
-It must be running on the host to be able to make
-.Tn RPC
-calls
+It must be running on the host to be able to make RPC calls
 on a server on that machine.
 .Pp
-When an
-.Tn RPC
-service is started,
+When an RPC service is started,
 it tells
 .Nm
 the address at which it is listening,
-and the
-.Tn RPC
-program numbers it is prepared to serve.
-When a client wishes to make an
-.Tn RPC
-call to a given program number,
+and the RPC program numbers it is prepared to serve.
+When a client wishes to make an RPC call to a given program number,
 it first contacts
 .Nm
 on the server machine to determine
-the address where
-.Tn RPC
-requests should be sent.
+the address where RPC requests should be sent.
 .Pp
 The
 .Nm
 utility should be started before any other RPC service.
-Normally, standard
-.Tn RPC
-servers are started by port monitors, so
+Normally, standard RPC servers are started by port monitors, so
 .Nm
 must be started before port monitors are invoked.
 .Pp
@@ -58,9 +44,7 @@ When
 is started, it checks that certain name-to-address
 translation-calls function correctly.
 If they fail, the network configuration databases may be corrupt.
-Since
-.Tn RPC
-services cannot function correctly in this situation,
+Since RPC services cannot function correctly in this situation,
 .Nm
 reports the condition and terminates.
 .Pp
@@ -83,7 +67,7 @@ Bind to AF_INET6 (IPv6) addresses only.
 .It Fl a
 When debugging
 .Pq Fl d ,
-do an abort on errors.
+abort on errors.
 .It Fl d
 Run in debug mode.
 In this mode,



CVS commit: src/lib/libc/stdlib

2017-08-16 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Wed Aug 16 17:41:36 UTC 2017

Modified Files:
src/lib/libc/stdlib: strfmon.3

Log Message:
Typo fix.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/stdlib/strfmon.3

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

Modified files:

Index: src/lib/libc/stdlib/strfmon.3
diff -u src/lib/libc/stdlib/strfmon.3:1.6 src/lib/libc/stdlib/strfmon.3:1.7
--- src/lib/libc/stdlib/strfmon.3:1.6	Wed Aug 16 13:53:20 2017
+++ src/lib/libc/stdlib/strfmon.3	Wed Aug 16 17:41:36 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: strfmon.3,v 1.6 2017/08/16 13:53:20 joerg Exp $
+.\"	$NetBSD: strfmon.3,v 1.7 2017/08/16 17:41:36 wiz Exp $
 .\"
 .\" Copyright (c) 2001 Jeroen Ruigrok van der Werven 
 .\" All rights reserved.
@@ -54,9 +54,9 @@ bytes are placed into the array.
 The
 .Fn strfmon_l
 function behaves the same as
-.fn strfmon ,
+.Fn strfmon ,
 but uses the locale
-.Fa loc 
+.Fa loc
 instead of the process global locale.
 .Pp
 The format string is composed of zero or more directives:



CVS commit: src/usr.sbin/rpcbind

2017-08-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Aug 16 14:22:58 UTC 2017

Modified Files:
src/usr.sbin/rpcbind: rpcbind.8

Log Message:
fix typo, date, document -L


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.sbin/rpcbind/rpcbind.8

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

Modified files:

Index: src/usr.sbin/rpcbind/rpcbind.8
diff -u src/usr.sbin/rpcbind/rpcbind.8:1.12 src/usr.sbin/rpcbind/rpcbind.8:1.13
--- src/usr.sbin/rpcbind/rpcbind.8:1.12	Wed Aug 16 04:44:40 2017
+++ src/usr.sbin/rpcbind/rpcbind.8	Wed Aug 16 10:22:58 2017
@@ -1,9 +1,9 @@
-.\" $NetBSD: rpcbind.8,v 1.12 2017/08/16 08:44:40 christos Exp $
+.\" $NetBSD: rpcbind.8,v 1.13 2017/08/16 14:22:58 christos Exp $
 .\" @(#)rpcbind.1m 1.19 92/09/14 SMI; from SVr4
 .\" Copyright 1989 AT
 .\" Copyright 1991 Sun Microsystems, Inc.
 .\" $FreeBSD: head/usr.sbin/rpcbind/rpcbind.8 317163 2017-04-19 20:23:27Z ngie $
-.Dd October 19, 2008
+.Dd August 18, 2017
 .Dt RPCBIND 8
 .Os
 .Sh NAME
@@ -16,7 +16,7 @@
 .Sh DESCRIPTION
 The
 .Nm
-utiltity is a server that converts
+utility is a server that converts
 .Tn RPC
 program numbers into
 universal addresses.
@@ -127,6 +127,10 @@ accepts these requests only from the loo
 This change is necessary for programs that were compiled with earlier
 versions of the rpc library and do not make those requests using the
 loopback interface.
+.It Fl L
+Allows old-style local connections over the loopback interface.
+Without this flag, local connections are only allowed over a local socket,
+.Pa /var/run/rpcbind.sock .
 .It Fl l
 Turns on libwrap connection logging.
 .It Fl s



CVS commit: src/share/mk

2017-08-16 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Wed Aug 16 13:53:54 UTC 2017

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

Log Message:
Switch dreamcast to HAVE_XORG_SERVER_VER=118.  It just works.


To generate a diff of this commit:
cvs rdiff -u -r1.1014 -r1.1015 src/share/mk/bsd.own.mk

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

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.1014 src/share/mk/bsd.own.mk:1.1015
--- src/share/mk/bsd.own.mk:1.1014	Mon Aug 14 02:21:50 2017
+++ src/share/mk/bsd.own.mk	Wed Aug 16 13:53:54 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1014 2017/08/14 02:21:50 mrg Exp $
+#	$NetBSD: bsd.own.mk,v 1.1015 2017/08/16 13:53:54 tsutsui Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -1355,7 +1355,6 @@ X11SRCDIR.${_proto}proto?=		${X11SRCDIRM
 .if \
 ${MACHINE} == "alpha"	|| \
 ${MACHINE} == "amiga"	|| \
-${MACHINE} == "dreamcast"	|| \
 ${MACHINE} == "ews4800mips"	|| \
 ${MACHINE} == "hp300"	|| \
 ${MACHINE} == "hpcarm"	|| \



CVS commit: src

2017-08-16 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Aug 16 13:53:20 UTC 2017

Modified Files:
src/distrib/sets/lists/debug: mi
src/distrib/sets/lists/tests: mi
src/include: monetary.h
src/lib/libc/stdlib: strfmon.3 strfmon.c
src/tests/lib/libc/locale: Makefile
Added Files:
src/tests/lib/libc/locale: t_strfmon.c

Log Message:
Add missing strfmon_l. Noticed by Bruno Haible. Add test case.


To generate a diff of this commit:
cvs rdiff -u -r1.223 -r1.224 src/distrib/sets/lists/debug/mi
cvs rdiff -u -r1.760 -r1.761 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.2 -r1.3 src/include/monetary.h
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/stdlib/strfmon.3
cvs rdiff -u -r1.10 -r1.11 src/lib/libc/stdlib/strfmon.c
cvs rdiff -u -r1.11 -r1.12 src/tests/lib/libc/locale/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/lib/libc/locale/t_strfmon.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/debug/mi
diff -u src/distrib/sets/lists/debug/mi:1.223 src/distrib/sets/lists/debug/mi:1.224
--- src/distrib/sets/lists/debug/mi:1.223	Fri Aug 11 20:47:58 2017
+++ src/distrib/sets/lists/debug/mi	Wed Aug 16 13:53:19 2017
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.223 2017/08/11 20:47:58 ryo Exp $
+# $NetBSD: mi,v 1.224 2017/08/16 13:53:19 joerg Exp $
 ./etc/mtree/set.debug   comp-sys-root
 ./usr/lib	comp-sys-usr		compatdir
 ./usr/lib/i18n/libBIG5_g.a			comp-c-debuglib		debuglib,compatfile
@@ -1954,6 +1954,7 @@
 ./usr/libdata/debug/usr/tests/lib/libc/locale/t_mbstowcs.debug		tests-lib-debug		debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/lib/libc/locale/t_mbtowc.debug		tests-lib-debug		debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/lib/libc/locale/t_sprintf.debug		tests-lib-debug		debug,atf,compattestfile
+./usr/libdata/debug/usr/tests/lib/libc/locale/t_strfmon.debug		tests-lib-debug		debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/lib/libc/locale/t_toupper.debug		tests-lib-debug		debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/lib/libc/locale/t_wcscoll.debug		tests-lib-debug		debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/lib/libc/locale/t_wcscspn.debug		tests-lib-debug		debug,atf,compattestfile

Index: src/distrib/sets/lists/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.760 src/distrib/sets/lists/tests/mi:1.761
--- src/distrib/sets/lists/tests/mi:1.760	Thu Aug 10 04:31:58 2017
+++ src/distrib/sets/lists/tests/mi	Wed Aug 16 13:53:20 2017
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.760 2017/08/10 04:31:58 ryo Exp $
+# $NetBSD: mi,v 1.761 2017/08/16 13:53:20 joerg Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -2551,6 +2551,7 @@
 ./usr/tests/lib/libc/locale/t_mbstowcs		tests-lib-tests		compattestfile,atf
 ./usr/tests/lib/libc/locale/t_mbtowc		tests-lib-tests		compattestfile,atf
 ./usr/tests/lib/libc/locale/t_sprintf		tests-lib-tests		compattestfile,atf
+./usr/tests/lib/libc/locale/t_strfmon		tests-lib-tests		compattestfile,atf
 ./usr/tests/lib/libc/locale/t_toupper		tests-lib-tests		compattestfile,atf
 ./usr/tests/lib/libc/locale/t_wcscoll		tests-lib-tests		compattestfile,atf
 ./usr/tests/lib/libc/locale/t_wcscspn		tests-lib-tests		compattestfile,atf

Index: src/include/monetary.h
diff -u src/include/monetary.h:1.2 src/include/monetary.h:1.3
--- src/include/monetary.h:1.2	Sun Sep 21 16:59:46 2008
+++ src/include/monetary.h	Wed Aug 16 13:53:20 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: monetary.h,v 1.2 2008/09/21 16:59:46 christos Exp $	*/
+/*	$NetBSD: monetary.h,v 1.3 2017/08/16 13:53:20 joerg Exp $	*/
 
 /*-
  * Copyright (c) 2001 Alexey Zelkin 
@@ -44,6 +44,16 @@ typedef	_BSD_SSIZE_T_	ssize_t;
 #undef	_BSD_SSIZE_T_
 #endif
 
+#if defined(_NETBSD_SOURCE)
+#  ifndef __LOCALE_T_DECLARED
+typedef struct _locale		*locale_t;
+#  define __LOCALE_T_DECLARED
+#  endif
+__BEGIN_DECLS
+ssize_t	strfmon_l(char * __restrict, size_t, locale_t, const char * __restrict, ...)
+__attribute__((__format__(__strfmon__, 4, 5)));
+#endif
+
 __BEGIN_DECLS
 ssize_t	strfmon(char * __restrict, size_t, const char * __restrict, ...)
 __attribute__((__format__(__strfmon__, 3, 4)));

Index: src/lib/libc/stdlib/strfmon.3
diff -u src/lib/libc/stdlib/strfmon.3:1.5 src/lib/libc/stdlib/strfmon.3:1.6
--- src/lib/libc/stdlib/strfmon.3:1.5	Tue Mar 18 18:20:37 2014
+++ src/lib/libc/stdlib/strfmon.3	Wed Aug 16 13:53:20 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: strfmon.3,v 1.5 2014/03/18 18:20:37 riastradh Exp $
+.\"	$NetBSD: strfmon.3,v 1.6 2017/08/16 13:53:20 joerg Exp $
 .\"
 .\" Copyright (c) 2001 Jeroen Ruigrok van der Werven 
 .\" All rights reserved.
@@ -26,7 +26,7 @@
 .\"
 .\" 	From: FreeBSD: Id: strfmon.3,v 1.7 2003/01/06 06:21:25 tjr Exp
 .\"
-.Dd October 12, 2002
+.Dd August 15, 2017
 .Dt STRFMON 3
 .Os
 .Sh NAME
@@ -38,6 +38,8 @@
 .In monetary.h
 .Ft ssize_t
 .Fn strfmon 

CVS commit: src/lib/libm

2017-08-16 Thread Tohru Nishimura
Module Name:src
Committed By:   nisimura
Date:   Wed Aug 16 13:34:59 UTC 2017

Modified Files:
src/lib/libm: Makefile

Log Message:
add s_rintl.c for aarch64. ok by ryo@.


To generate a diff of this commit:
cvs rdiff -u -r1.198 -r1.199 src/lib/libm/Makefile

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

Modified files:

Index: src/lib/libm/Makefile
diff -u src/lib/libm/Makefile:1.198 src/lib/libm/Makefile:1.199
--- src/lib/libm/Makefile:1.198	Wed Aug 16 09:18:24 2017
+++ src/lib/libm/Makefile	Wed Aug 16 13:34:59 2017
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.198 2017/08/16 09:18:24 he Exp $
+#  $NetBSD: Makefile,v 1.199 2017/08/16 13:34:59 nisimura Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -60,6 +60,7 @@ ARCH_SRCS+= s_fma.S s_fmaf.S s_fmax.S s_
 .if ${MKSOFTFLOAT} == "no"
 COMMON_SRCS+= fenv.c
 .endif
+COMMON_SRCS+= s_rintl.c
 COMMON_SRCS+= e_sqrtl.c
 COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
 



CVS commit: src/lib/libm/src

2017-08-16 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Wed Aug 16 11:22:52 UTC 2017

Modified Files:
src/lib/libm/src: s_nextafter.c

Log Message:
On second thought, don't introduce nexttowardl() since we don't have that
yet elsewhere.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib/libm/src/s_nextafter.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/libm/src/s_nextafter.c
diff -u src/lib/libm/src/s_nextafter.c:1.15 src/lib/libm/src/s_nextafter.c:1.16
--- src/lib/libm/src/s_nextafter.c:1.15	Wed Aug 16 09:15:48 2017
+++ src/lib/libm/src/s_nextafter.c	Wed Aug 16 11:22:52 2017
@@ -12,7 +12,7 @@
 
 #include 
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: s_nextafter.c,v 1.15 2017/08/16 09:15:48 he Exp $");
+__RCSID("$NetBSD: s_nextafter.c,v 1.16 2017/08/16 11:22:52 he Exp $");
 #endif
 
 /* IEEE functions
@@ -28,7 +28,6 @@ __RCSID("$NetBSD: s_nextafter.c,v 1.15 2
 #ifndef __HAVE_LONG_DOUBLE
 __strong_alias(nextafterl, nextafter)
 __strong_alias(nexttoward, nextafter)
-__strong_alias(nexttowardl, nextafter)
 #endif
 
 double



CVS commit: src/lib/libm

2017-08-16 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Wed Aug 16 09:18:24 UTC 2017

Modified Files:
src/lib/libm: Makefile

Log Message:
In the non-softfloat m68k part, add s_nexttoward.c and s_nexttowardf.c,
so that we get nexttoward() and nexttowardf() implemented here as well.


To generate a diff of this commit:
cvs rdiff -u -r1.197 -r1.198 src/lib/libm/Makefile

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

Modified files:

Index: src/lib/libm/Makefile
diff -u src/lib/libm/Makefile:1.197 src/lib/libm/Makefile:1.198
--- src/lib/libm/Makefile:1.197	Tue Aug 15 10:40:28 2017
+++ src/lib/libm/Makefile	Wed Aug 16 09:18:24 2017
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.197 2017/08/15 10:40:28 mlelstv Exp $
+#  $NetBSD: Makefile,v 1.198 2017/08/16 09:18:24 he Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -153,7 +153,7 @@ ARCH_SRCS = e_acos.S e_asin.S e_atanh.S 
 	e_log10.S e_remainder.S e_scalb.S e_sinh.S e_sqrt.S s_atan.S \
 	s_ceil.S s_copysign.S s_cos.S s_expm1.S s_finite.S s_floor.S \
 	s_log1p.S s_logb.S s_rint.S s_scalbn.S s_sin.S s_tan.S s_tanh.S
-COMMON_SRCS += fenv.c s_rintl.c
+COMMON_SRCS += fenv.c s_nexttoward.c s_nexttowardf.c s_rintl.c
 .endif
 .endif
 # end of m68k



CVS commit: src/lib/libm/src

2017-08-16 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Wed Aug 16 09:15:49 UTC 2017

Modified Files:
src/lib/libm/src: s_nextafter.c

Log Message:
On systems without __HAVE_LONG_DOUBLE, also alias nexttoward() and
nexttowardl() to nextafter().


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libm/src/s_nextafter.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/libm/src/s_nextafter.c
diff -u src/lib/libm/src/s_nextafter.c:1.14 src/lib/libm/src/s_nextafter.c:1.15
--- src/lib/libm/src/s_nextafter.c:1.14	Tue Mar 18 18:20:37 2014
+++ src/lib/libm/src/s_nextafter.c	Wed Aug 16 09:15:48 2017
@@ -12,7 +12,7 @@
 
 #include 
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: s_nextafter.c,v 1.14 2014/03/18 18:20:37 riastradh Exp $");
+__RCSID("$NetBSD: s_nextafter.c,v 1.15 2017/08/16 09:15:48 he Exp $");
 #endif
 
 /* IEEE functions
@@ -27,6 +27,8 @@ __RCSID("$NetBSD: s_nextafter.c,v 1.14 2
 
 #ifndef __HAVE_LONG_DOUBLE
 __strong_alias(nextafterl, nextafter)
+__strong_alias(nexttoward, nextafter)
+__strong_alias(nexttowardl, nextafter)
 #endif
 
 double



CVS commit: src/usr.sbin/rpcbind

2017-08-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Aug 16 08:44:40 UTC 2017

Modified Files:
src/usr.sbin/rpcbind: check_bound.c pmap_svc.c rpcb_stat.c rpcb_svc.c
rpcb_svc_4.c rpcb_svc_com.c rpcbind.8 rpcbind.c rpcbind.h
security.c util.c warmstart.c

Log Message:
merge FreeBSD changes:
- fixes CVE-2015-7236
- adds -h hostip to bind, -6 for only ipv6 access, -a for abort gracefully
- documents -w (warmstart)
XXX: should fix warmstart file to go to /var/run instead of /tmp


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/rpcbind/check_bound.c
cvs rdiff -u -r1.8 -r1.9 src/usr.sbin/rpcbind/pmap_svc.c
cvs rdiff -u -r1.5 -r1.6 src/usr.sbin/rpcbind/rpcb_stat.c \
src/usr.sbin/rpcbind/rpcbind.h src/usr.sbin/rpcbind/warmstart.c
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/rpcbind/rpcb_svc.c
cvs rdiff -u -r1.7 -r1.8 src/usr.sbin/rpcbind/rpcb_svc_4.c
cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/rpcbind/rpcb_svc_com.c
cvs rdiff -u -r1.11 -r1.12 src/usr.sbin/rpcbind/rpcbind.8 \
src/usr.sbin/rpcbind/security.c
cvs rdiff -u -r1.23 -r1.24 src/usr.sbin/rpcbind/rpcbind.c
cvs rdiff -u -r1.20 -r1.21 src/usr.sbin/rpcbind/util.c

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

Modified files:

Index: src/usr.sbin/rpcbind/check_bound.c
diff -u src/usr.sbin/rpcbind/check_bound.c:1.6 src/usr.sbin/rpcbind/check_bound.c:1.7
--- src/usr.sbin/rpcbind/check_bound.c:1.6	Sun Nov  8 11:36:28 2015
+++ src/usr.sbin/rpcbind/check_bound.c	Wed Aug 16 04:44:40 2017
@@ -1,32 +1,32 @@
-/*	$NetBSD: check_bound.c,v 1.6 2015/11/08 16:36:28 christos Exp $	*/
+/*	$NetBSD: check_bound.c,v 1.7 2017/08/16 08:44:40 christos Exp $	*/
+/*	$FreeBSD: head/usr.sbin/rpcbind/check_bound.c 300942 2016-05-29 06:01:18Z ngie $ */
 
-/*
- * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
- * unrestricted use provided that this legend is included on all tape
- * media and as a part of the software program in whole or part.  Users
- * may copy or modify Sun RPC without charge, but are not authorized
- * to license or distribute it to anyone else except as part of a product or
- * program developed by the user.
- * 
- * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
- * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
- * Sun RPC is provided with no support and without any obligation on the
- * part of Sun Microsystems, Inc. to assist in its use, correction,
- * modification or enhancement.
- * 
- * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
- * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
- * OR ANY PART THEREOF.
- * 
- * In no event will Sun Microsystems, Inc. be liable for any lost revenue
- * or profits or other special, indirect and consequential damages, even if
- * Sun has been advised of the possibility of such damages.
- * 
- * Sun Microsystems, Inc.
- * 2550 Garcia Avenue
- * Mountain View, California  94043
+/*-
+ * Copyright (c) 2009, Sun Microsystems, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ * - Redistributions of source code must retain the above copyright notice,
+ *   this list of conditions and the following disclaimer.
+ * - 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.
+ * - Neither the name of Sun Microsystems, Inc. nor the names of its
+ *   contributors may be used to endorse or promote products derived
+ *   from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 COPYRIGHT HOLDER 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.
  */
 /*
  * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc.
@@ -43,7 +43,7 @@ static	char sccsid[] = "@(#)check_bound.
 /*
  * check_bound.c
  * Checks to see whether the program is still bound to the
- * claimed address and returns the univeral merged address
+ * 

CVS commit: src/include/rpc

2017-08-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Aug 16 08:35:48 UTC 2017

Modified Files:
src/include/rpc: xdr.h

Log Message:
s/not sure why// and make these work :-)


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

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

Modified files:

Index: src/include/rpc/xdr.h
diff -u src/include/rpc/xdr.h:1.29 src/include/rpc/xdr.h:1.30
--- src/include/rpc/xdr.h:1.29	Fri Jan 22 21:34:09 2016
+++ src/include/rpc/xdr.h	Wed Aug 16 04:35:48 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: xdr.h,v 1.29 2016/01/23 02:34:09 dholland Exp $	*/
+/*	$NetBSD: xdr.h,v 1.30 2017/08/16 08:35:48 christos Exp $	*/
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -213,15 +213,11 @@ xdr_putint32(XDR *xdrs, int32_t *ip)
 		(*(xdrs)->x_ops->x_control)(xdrs, req, op)
 #define xdr_control(xdrs, req, op) XDR_CONTROL(xdrs, req, op)
 
-/*
- * Solaris strips the '_t' from these types -- not sure why.
- * But, let's be compatible.
- */
-#define xdr_rpcvers(xdrs, versp) xdr_u_int32(xdrs, versp)
-#define xdr_rpcprog(xdrs, progp) xdr_u_int32(xdrs, progp)
-#define xdr_rpcproc(xdrs, procp) xdr_u_int32(xdrs, procp)
-#define xdr_rpcprot(xdrs, protp) xdr_u_int32(xdrs, protp)
-#define xdr_rpcport(xdrs, portp) xdr_u_int32(xdrs, portp)
+#define xdr_rpcvers(xdrs, versp) xdr_u_int32_t(xdrs, versp)
+#define xdr_rpcprog(xdrs, progp) xdr_u_int32_t(xdrs, progp)
+#define xdr_rpcproc(xdrs, procp) xdr_u_int32_t(xdrs, procp)
+#define xdr_rpcprot(xdrs, protp) xdr_u_int32_t(xdrs, protp)
+#define xdr_rpcport(xdrs, portp) xdr_u_int32_t(xdrs, portp)
 
 /*
  * Support struct for discriminated unions.