CVS commit: src/bin/expr

2016-08-22 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Tue Aug 23 03:21:16 UTC 2016

Modified Files:
src/bin/expr: expr.1

Log Message:
Instruction to not split the line needs to be stated separately.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/bin/expr/expr.1

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

Modified files:

Index: src/bin/expr/expr.1
diff -u src/bin/expr/expr.1:1.34 src/bin/expr/expr.1:1.35
--- src/bin/expr/expr.1:1.34	Tue Aug 23 02:58:45 2016
+++ src/bin/expr/expr.1	Tue Aug 23 03:21:16 2016
@@ -1,4 +1,4 @@
-.\"	$NetBSD: expr.1,v 1.34 2016/08/23 02:58:45 sevan Exp $
+.\"	$NetBSD: expr.1,v 1.35 2016/08/23 03:21:16 sevan Exp $
 .\"
 .\" Copyright (c) 2000,2003 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -258,7 +258,8 @@ Initial implementation by
 .An Pace Willisson
 .Aq p...@blitz.com
 was largely rewritten by
-.An -nosplit J.T. Conklin
+.An -nosplit
+.An J.T. Conklin
 .Aq j...@netbsd.org .
 It was rewritten again for
 .Nx 1.6



CVS commit: src/bin/expr

2016-08-22 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Tue Aug 23 02:58:45 UTC 2016

Modified Files:
src/bin/expr: expr.1

Log Message:
Add HISTORY section
Credit author of initial implementation in AUTHORS section
Bump date
Remove contraction highlighted by textproc/igor


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/bin/expr/expr.1

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

Modified files:

Index: src/bin/expr/expr.1
diff -u src/bin/expr/expr.1:1.33 src/bin/expr/expr.1:1.34
--- src/bin/expr/expr.1:1.33	Sun Aug 12 17:27:04 2012
+++ src/bin/expr/expr.1	Tue Aug 23 02:58:45 2016
@@ -1,4 +1,4 @@
-.\"	$NetBSD: expr.1,v 1.33 2012/08/12 17:27:04 wiz Exp $
+.\"	$NetBSD: expr.1,v 1.34 2016/08/23 02:58:45 sevan Exp $
 .\"
 .\" Copyright (c) 2000,2003 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd April 20, 2004
+.Dd August 23, 2016
 .Dt EXPR 1
 .Os
 .Sh NAME
@@ -214,7 +214,7 @@ treat it as a delimiter to mark the end 
 line options, and ignore it.
 Some
 .Nm
-implementations don't recognize it at all; others
+implementations do not recognize it at all; others
 might ignore it even in cases where doing so results in syntax
 error.
 There should be same result for both following examples,
@@ -242,11 +242,25 @@ The
 .Ar length
 keyword is an extension for compatibility with GNU
 .Nm .
+.Sh HISTORY
+An
+.Nm
+utility first appeared in the Programmer's Workbench (PWB/UNIX).
+A public domain licensed version of
+.Nm
+written by
+.An Pace Willisson
+.Aq p...@blitz.com
+appeared in
+.Bx 386 0.1 .
 .Sh AUTHORS
-Original implementation was written by
-.An J.T. Conklin
+Initial implementation by
+.An Pace Willisson
+.Aq p...@blitz.com
+was largely rewritten by
+.An -nosplit J.T. Conklin
 .Aq j...@netbsd.org .
-It was rewritten for
+It was rewritten again for
 .Nx 1.6
 by
 .An Jaromir Dolecek



CVS commit: src/sys/fs/tmpfs

2016-08-22 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Aug 22 23:07:36 UTC 2016

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

Log Message:
Two fixes from rmind

- tmpfs_node_get: restore (decrement) the node count on the error path.
- tmpfs_bytes_max: save the value of uvmexp.freetarg (since it is
  unlocked/racy).


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/fs/tmpfs/tmpfs_mem.c

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

Modified files:

Index: src/sys/fs/tmpfs/tmpfs_mem.c
diff -u src/sys/fs/tmpfs/tmpfs_mem.c:1.8 src/sys/fs/tmpfs/tmpfs_mem.c:1.9
--- src/sys/fs/tmpfs/tmpfs_mem.c:1.8	Fri Jun 13 11:57:48 2014
+++ src/sys/fs/tmpfs/tmpfs_mem.c	Mon Aug 22 23:07:36 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: tmpfs_mem.c,v 1.8 2014/06/13 11:57:48 pooka Exp $	*/
+/*	$NetBSD: tmpfs_mem.c,v 1.9 2016/08/22 23:07:36 skrll Exp $	*/
 
 /*
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: tmpfs_mem.c,v 1.8 2014/06/13 11:57:48 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tmpfs_mem.c,v 1.9 2016/08/22 23:07:36 skrll Exp $");
 
 #include 
 #include 
@@ -116,12 +116,13 @@ uint64_t
 tmpfs_bytes_max(struct tmpfs_mount *mp)
 {
 	psize_t freepages = tmpfs_mem_info(false);
+	int freetarg = uvmexp.freetarg;	// XXX unlocked
 	uint64_t avail_mem;
 
-	if (freepages < uvmexp.freetarg) {
+	if (freepages < freetarg) {
 		freepages = 0;
 	} else {
-		freepages -= uvmexp.freetarg;
+		freepages -= freetarg;
 	}
 	avail_mem = round_page(mp->tm_bytes_used) + (freepages << PAGE_SHIFT);
 	return MIN(mp->tm_mem_limit, avail_mem);
@@ -187,6 +188,7 @@ tmpfs_node_get(struct tmpfs_mount *mp)
 		return NULL;
 	}
 	if (!tmpfs_mem_incr(mp, sizeof(struct tmpfs_node))) {
+		atomic_dec_uint(>tm_nodes_cnt);
 		return NULL;
 	}
 	return pool_get(_node_pool, PR_WAITOK);



CVS commit: src/doc

2016-08-22 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Mon Aug 22 22:53:02 UTC 2016

Modified Files:
src/doc: 3RDPARTY

Log Message:
gcc-6.2 out.


To generate a diff of this commit:
cvs rdiff -u -r1.1353 -r1.1354 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.1353 src/doc/3RDPARTY:1.1354
--- src/doc/3RDPARTY:1.1353	Sat Aug 20 17:09:34 2016
+++ src/doc/3RDPARTY	Mon Aug 22 22:53:02 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: 3RDPARTY,v 1.1353 2016/08/20 17:09:34 wiz Exp $
+#	$NetBSD: 3RDPARTY,v 1.1354 2016/08/22 22:53:02 wiz Exp $
 #
 # This file contains a list of the software that has been integrated into
 # NetBSD where we are not the primary maintainer.
@@ -439,7 +439,7 @@ There is a flex2netbsd script to help ne
 
 Package:	gcc
 Version:	4.8.5/5.4
-Current Vers:	4.8.5/5.4/6.1
+Current Vers:	4.8.5/5.4/6.2
 Maintainer:	FSF
 Archive Site:	ftp://ftp.gnu.org/gnu/gcc/
 Home Page:	http://www.gnu.org/software/gcc/



CVS commit: src/usr.sbin/nfsd

2016-08-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 22 16:08:51 UTC 2016

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

Log Message:
PR/51437: Hauke Fath: write a byte to the socket so that nfsd -u does not die.


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/usr.sbin/nfsd/nfsd.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/nfsd/nfsd.c
diff -u src/usr.sbin/nfsd/nfsd.c:1.66 src/usr.sbin/nfsd/nfsd.c:1.67
--- src/usr.sbin/nfsd/nfsd.c:1.66	Thu Mar 17 11:25:46 2016
+++ src/usr.sbin/nfsd/nfsd.c	Mon Aug 22 12:08:51 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: nfsd.c,v 1.66 2016/03/17 15:25:46 christos Exp $	*/
+/*	$NetBSD: nfsd.c,v 1.67 2016/08/22 16:08:51 christos Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993, 1994
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 19
 #if 0
 static char sccsid[] = "@(#)nfsd.c	8.9 (Berkeley) 3/29/95";
 #else
-__RCSID("$NetBSD: nfsd.c,v 1.66 2016/03/17 15:25:46 christos Exp $");
+__RCSID("$NetBSD: nfsd.c,v 1.67 2016/08/22 16:08:51 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -323,13 +323,14 @@ daemon2_fork(void)
 	 pid = fork();
 	 switch (pid) {
 	 case -1:
-		 return -1;
+		return -1;
 	 case 0:
-		 /* child */
-		 (void)close(detach_msg_pipe[0]);
+		/* child */
+		(void)close(detach_msg_pipe[0]);
+		(void)write(detach_msg_pipe[1], "", 1);
 		 return detach_msg_pipe[1];
 	 default:
-		 break;
+		break;
 	}
 
 	/* Parent */
@@ -497,6 +498,8 @@ main(int argc, char *argv[])
 
 	if (debug == 0) {
 		parent_fd = daemon2_fork();
+		if (parent_fd == -1)
+			logit(LOG_ERR, "daemon2_fork failed");
 		openlog("nfsd", LOG_PID, LOG_DAEMON);
 	}
 



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

2016-08-22 Thread Hisashi T Fujinaka
Module Name:src
Committed By:   htodd
Date:   Mon Aug 22 15:08:48 UTC 2016

Modified Files:
src/distrib/sets/lists/xdebug: md.i386

Log Message:
Fix debug build for i386 xorg.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/distrib/sets/lists/xdebug/md.i386

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/xdebug/md.i386
diff -u src/distrib/sets/lists/xdebug/md.i386:1.31 src/distrib/sets/lists/xdebug/md.i386:1.32
--- src/distrib/sets/lists/xdebug/md.i386:1.31	Mon Aug 22 04:15:58 2016
+++ src/distrib/sets/lists/xdebug/md.i386	Mon Aug 22 15:08:48 2016
@@ -1,4 +1,4 @@
-# $NetBSD: md.i386,v 1.31 2016/08/22 04:15:58 mlelstv Exp $
+# $NetBSD: md.i386,v 1.32 2016/08/22 15:08:48 htodd Exp $
 ./usr/X11R7/lib/libI810XvMC_g.a-unknown-	debuglib,xorg
 ./usr/X11R7/lib/libIntelXvMC_g.a			-unknown-	debuglib,xorg
 ./usr/X11R7/lib/libchromeXvMCPro_g.a			-unknown-	debuglib,xorg
@@ -46,9 +46,11 @@
 ./usr/libdata/debug/usr/X11R7/lib/libIntelXvMC.so.1.0.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/libchromeXvMC.so.1.0.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/libchromeXvMCPro.so.1.0.debug	-unknown-		xorg,debug
-./usr/libdata/debug/usr/X11R7/lib/libdrm_amdgpu.so.0.1.debug	-unknown-		xorg,debug
+./usr/libdata/debug/usr/X11R7/lib/libdrm_amdgpu.so.0.1.debug	-unknown-		xorg,obsolete
+./usr/libdata/debug/usr/X11R7/lib/libdrm_amdgpu.so.1.0.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/libdrm_intel.so.0.2.debug	-unknown-		xorg,debug
-./usr/libdata/debug/usr/X11R7/lib/libdrm_nouveau.so.2.0.debug	-unknown-		xorg,debug
+./usr/libdata/debug/usr/X11R7/lib/libdrm_nouveau.so.2.0.debug	-unknown-		xorg,obsolete
+./usr/libdata/debug/usr/X11R7/lib/libdrm_nouveau.so.3.0.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/modules/dri/i810_dri.so.0.debug	-unknown-		obsolete
 ./usr/libdata/debug/usr/X11R7/lib/modules/dri/i915_dri.so.0.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/modules/dri/i965_dri.so.0.debug	-unknown-		xorg,debug



CVS commit: src/sys/arch/mips/mips

2016-08-22 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Aug 22 11:34:42 UTC 2016

Modified Files:
src/sys/arch/mips/mips: pmap_machdep.c

Log Message:
KNF


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/mips/mips/pmap_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/mips/mips/pmap_machdep.c
diff -u src/sys/arch/mips/mips/pmap_machdep.c:1.4 src/sys/arch/mips/mips/pmap_machdep.c:1.5
--- src/sys/arch/mips/mips/pmap_machdep.c:1.4	Mon Aug 22 11:34:06 2016
+++ src/sys/arch/mips/mips/pmap_machdep.c	Mon Aug 22 11:34:42 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap_machdep.c,v 1.4 2016/08/22 11:34:06 skrll Exp $	*/
+/*	$NetBSD: pmap_machdep.c,v 1.5 2016/08/22 11:34:42 skrll Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
 
 #include 
 
-__KERNEL_RCSID(0, "$NetBSD: pmap_machdep.c,v 1.4 2016/08/22 11:34:06 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_machdep.c,v 1.5 2016/08/22 11:34:42 skrll Exp $");
 
 /*
  *	Manages physical address maps.
@@ -654,7 +654,7 @@ pmap_md_page_syncicache(struct vm_page *
 	 */
 	if (MIPS_HAS_R4K_MMU) {
 		if (VM_PAGEMD_CACHED_P(mdpg)) {
-			mips_icache_sync_range_index( va, PAGE_SIZE);
+			mips_icache_sync_range_index(va, PAGE_SIZE);
 		}
 	} else {
 		mips_icache_sync_range(MIPS_PHYS_TO_KSEG0(VM_PAGE_TO_PHYS(pg)),



CVS commit: src/sys/arch/mips/mips

2016-08-22 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Aug 22 11:34:06 UTC 2016

Modified Files:
src/sys/arch/mips/mips: pmap_machdep.c

Log Message:
Can't KASSERT that a lock isn't held.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/mips/mips/pmap_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/mips/mips/pmap_machdep.c
diff -u src/sys/arch/mips/mips/pmap_machdep.c:1.3 src/sys/arch/mips/mips/pmap_machdep.c:1.4
--- src/sys/arch/mips/mips/pmap_machdep.c:1.3	Fri Aug 19 10:05:35 2016
+++ src/sys/arch/mips/mips/pmap_machdep.c	Mon Aug 22 11:34:06 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap_machdep.c,v 1.3 2016/08/19 10:05:35 skrll Exp $	*/
+/*	$NetBSD: pmap_machdep.c,v 1.4 2016/08/22 11:34:06 skrll Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
 
 #include 
 
-__KERNEL_RCSID(0, "$NetBSD: pmap_machdep.c,v 1.3 2016/08/19 10:05:35 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_machdep.c,v 1.4 2016/08/22 11:34:06 skrll Exp $");
 
 /*
  *	Manages physical address maps.
@@ -177,7 +177,6 @@ pmap_md_map_ephemeral_page(struct vm_pag
 	UVMHIST_LOG(pmaphist, "(pg=%p, prot=%d, ptep=%p)",
 	pg, prot, old_pte_p, 0);
 
-	KASSERT(locked_p || !VM_PAGEMD_PVLIST_LOCKED_P(mdpg));
 	KASSERT(!locked_p || VM_PAGEMD_PVLIST_LOCKED_P(mdpg));
 
 	if (!MIPS_CACHE_VIRTUAL_ALIAS || !mips_cache_badalias(pv->pv_va, pa)) {
@@ -258,7 +257,6 @@ pmap_md_unmap_ephemeral_page(struct vm_p
 	UVMHIST_LOG(pmaphist, "(pg=%p, va=%#lx, pte=%#"PRIxPTE")",
 	pg, va, pte_value(old_pte), 0);
 
-	KASSERT(locked_p || !VM_PAGEMD_PVLIST_LOCKED_P(mdpg));
 	KASSERT(!locked_p || VM_PAGEMD_PVLIST_LOCKED_P(mdpg));
 
 	if (MIPS_CACHE_VIRTUAL_ALIAS) {



CVS commit: src/tests/lib/libm

2016-08-22 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Mon Aug 22 10:36:20 UTC 2016

Modified Files:
src/tests/lib/libm: t_ilogb.c

Log Message:
Mistakes were made, compare correct values now.


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

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

Modified files:

Index: src/tests/lib/libm/t_ilogb.c
diff -u src/tests/lib/libm/t_ilogb.c:1.1 src/tests/lib/libm/t_ilogb.c:1.2
--- src/tests/lib/libm/t_ilogb.c:1.1	Mon Aug 22 08:49:33 2016
+++ src/tests/lib/libm/t_ilogb.c	Mon Aug 22 10:36:20 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ilogb.c,v 1.1 2016/08/22 08:49:33 maya Exp $ */
+/* $NetBSD: t_ilogb.c,v 1.2 2016/08/22 10:36:20 maya Exp $ */
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -83,11 +83,11 @@ ATF_TC_BODY(ilogb, tc)
 	ATF_CHECK(ilogbl(-INFINITY) == INT_MAX);
 	ATF_CHECK_RAISED_INVALID;
 
-	ATF_CHECK(ilogbf(2^20) == 20);
+	ATF_CHECK(ilogbf(1024) == 10);
 	ATF_CHECK_RAISED_NOTHING;
-	ATF_CHECK(ilogb(2^20) == 20);
+	ATF_CHECK(ilogb(1024) == 10);
 	ATF_CHECK_RAISED_NOTHING;
-	ATF_CHECK(ilogbl(2^20) == 20);
+	ATF_CHECK(ilogbl(1024) == 10);
 	ATF_CHECK_RAISED_NOTHING;
 
 #ifndef __vax__



CVS commit: src/external/bsd/unbound

2016-08-22 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Aug 22 09:38:50 UTC 2016

Modified Files:
src/external/bsd/unbound: Makefile

Log Message:
Visit "etc" so our rc.d file gets installed.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/bsd/unbound/Makefile

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

Modified files:

Index: src/external/bsd/unbound/Makefile
diff -u src/external/bsd/unbound/Makefile:1.1 src/external/bsd/unbound/Makefile:1.2
--- src/external/bsd/unbound/Makefile:1.1	Sat Aug 20 11:20:31 2016
+++ src/external/bsd/unbound/Makefile	Mon Aug 22 09:38:50 2016
@@ -1,5 +1,5 @@
-#	$NetBSD: Makefile,v 1.1 2016/08/20 11:20:31 christos Exp $
+#	$NetBSD: Makefile,v 1.2 2016/08/22 09:38:50 martin Exp $
 
-SUBDIR+= lib .WAIT sbin bin
+SUBDIR+= lib .WAIT sbin bin etc
 
 .include 



CVS commit: src

2016-08-22 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Aug 22 08:58:57 UTC 2016

Modified Files:
src/distrib/sets/lists/xdebug: md.sparc64
src/distrib/sets/lists/xserver: md.sparc64
src/external/mit/xorg/server/drivers: Makefile

Log Message:
now sunffb builds, build it for xorg-server 1.18


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/distrib/sets/lists/xdebug/md.sparc64
cvs rdiff -u -r1.60 -r1.61 src/distrib/sets/lists/xserver/md.sparc64
cvs rdiff -u -r1.86 -r1.87 src/external/mit/xorg/server/drivers/Makefile

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

Modified files:

Index: src/distrib/sets/lists/xdebug/md.sparc64
diff -u src/distrib/sets/lists/xdebug/md.sparc64:1.7 src/distrib/sets/lists/xdebug/md.sparc64:1.8
--- src/distrib/sets/lists/xdebug/md.sparc64:1.7	Sat Aug 20 05:24:26 2016
+++ src/distrib/sets/lists/xdebug/md.sparc64	Mon Aug 22 08:58:57 2016
@@ -1,4 +1,4 @@
-# $NetBSD: md.sparc64,v 1.7 2016/08/20 05:24:26 mrg Exp $
+# $NetBSD: md.sparc64,v 1.8 2016/08/22 08:58:57 mrg Exp $
 ./usr/X11R7/lib/modules/extensions/libcfb32_g.a		-unknown-	obsolete
 ./usr/X11R7/lib/modules/extensions/libcfb_g.a		-unknown-	obsolete
 ./usr/X11R7/lib/modules/extensions/libdbe_g.a		-unknown-	debuglib,xorg,obsolete
@@ -75,7 +75,7 @@
 ./usr/libdata/debug/usr/X11R7/lib/modules/drivers/r128_drv.so.6.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/modules/drivers/radeon_drv.so.6.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/modules/drivers/suncg6_drv.so.1.debug	-unknown-		xorg,debug
-./usr/libdata/debug/usr/X11R7/lib/modules/drivers/sunffb_drv.so.1.debug	-unknown-		xorg,debug,xorg_server_ver=110
+./usr/libdata/debug/usr/X11R7/lib/modules/drivers/sunffb_drv.so.1.debug	-unknown-		xorg,debug
 ./usr/libdata/debug/usr/X11R7/lib/modules/drivers/sunleo_drv.so.1.debug	-unknown-		xorg,debug,xorg_server_ver=110
 ./usr/libdata/debug/usr/X11R7/lib/modules/drivers/void_drv.so.1.debug	-unknown-		obsolete
 ./usr/libdata/debug/usr/X11R7/lib/modules/drivers/ws_drv.so.1.debug	-unknown-		xorg,debug

Index: src/distrib/sets/lists/xserver/md.sparc64
diff -u src/distrib/sets/lists/xserver/md.sparc64:1.60 src/distrib/sets/lists/xserver/md.sparc64:1.61
--- src/distrib/sets/lists/xserver/md.sparc64:1.60	Sat Aug 20 05:24:26 2016
+++ src/distrib/sets/lists/xserver/md.sparc64	Mon Aug 22 08:58:57 2016
@@ -1,4 +1,4 @@
-# $NetBSD: md.sparc64,v 1.60 2016/08/20 05:24:26 mrg Exp $	x11
+# $NetBSD: md.sparc64,v 1.61 2016/08/22 08:58:57 mrg Exp $	x11
 ./usr/X11R7/bin/X	-unknown-	xorg
 ./usr/X11R7/bin/Xorg	-unknown-	xorg
 ./usr/X11R7/bin/cvt	-unknown-	xorg
@@ -45,8 +45,8 @@
 ./usr/X11R7/lib/modules/drivers/radeon_drv.so.6		-unknown-	xorg
 ./usr/X11R7/lib/modules/drivers/suncg6_drv.so		-unknown-	xorg
 ./usr/X11R7/lib/modules/drivers/suncg6_drv.so.1		-unknown-	xorg
-./usr/X11R7/lib/modules/drivers/sunffb_drv.so		-unknown-	xorg,xorg_server_ver=110
-./usr/X11R7/lib/modules/drivers/sunffb_drv.so.1		-unknown-	xorg,xorg_server_ver=110
+./usr/X11R7/lib/modules/drivers/sunffb_drv.so		-unknown-	xorg
+./usr/X11R7/lib/modules/drivers/sunffb_drv.so.1		-unknown-	xorg
 ./usr/X11R7/lib/modules/drivers/sunleo_drv.so		-unknown-	xorg,xorg_server_ver=110
 ./usr/X11R7/lib/modules/drivers/sunleo_drv.so.1		-unknown-	xorg,xorg_server_ver=110
 ./usr/X11R7/lib/modules/drivers/void_drv.so		-unknown-	obsolete
@@ -179,7 +179,7 @@
 ./usr/X11R7/man/cat4/r128.0-unknown-	.cat,xorg
 ./usr/X11R7/man/cat4/radeon.0-unknown-	.cat,xorg
 ./usr/X11R7/man/cat4/suncg6.0-unknown-	.cat,xorg
-./usr/X11R7/man/cat4/sunffb.0-unknown-	.cat,xorg,xorg_server_ver=110
+./usr/X11R7/man/cat4/sunffb.0-unknown-	.cat,xorg
 ./usr/X11R7/man/cat4/sunleo.0-unknown-	.cat,xorg,xorg_server_ver=110
 ./usr/X11R7/man/cat4/void.0-unknown-	obsolete
 ./usr/X11R7/man/cat4/ws.0-unknown-	.cat,xorg
@@ -201,7 +201,7 @@
 ./usr/X11R7/man/html4/r128.html-unknown-	html,xorg
 ./usr/X11R7/man/html4/radeon.html			-unknown-	html,xorg
 ./usr/X11R7/man/html4/suncg6.html			-unknown-	html,xorg
-./usr/X11R7/man/html4/sunffb.html			-unknown-	html,xorg,xorg_server_ver=110
+./usr/X11R7/man/html4/sunffb.html			-unknown-	html,xorg
 ./usr/X11R7/man/html4/sunleo.html			-unknown-	html,xorg,xorg_server_ver=110
 ./usr/X11R7/man/html4/void.html-unknown-	obsolete
 ./usr/X11R7/man/html4/ws.html-unknown-	html,xorg
@@ -223,7 +223,7 @@
 ./usr/X11R7/man/man4/r128.4-unknown-	.man,xorg
 ./usr/X11R7/man/man4/radeon.4-unknown-	.man,xorg
 ./usr/X11R7/man/man4/suncg6.4-unknown-	.man,xorg
-./usr/X11R7/man/man4/sunffb.4-unknown-	.man,xorg,xorg_server_ver=110
+./usr/X11R7/man/man4/sunffb.4-unknown-	.man,xorg
 ./usr/X11R7/man/man4/sunleo.4-unknown-	.man,xorg,xorg_server_ver=110
 ./usr/X11R7/man/man4/void.4-unknown-	obsolete
 ./usr/X11R7/man/man4/ws.4-unknown-	.man,xorg

Index: src/external/mit/xorg/server/drivers/Makefile
diff -u 

CVS commit: src

2016-08-22 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Mon Aug 22 08:49:33 UTC 2016

Modified Files:
src/distrib/sets/lists/debug: mi
src/distrib/sets/lists/tests: mi
src/tests/lib/libm: Makefile
Added Files:
src/tests/lib/libm: t_ilogb.c

Log Message:
add failing test for PR lib/51427
ilogb(INFINITY)=-INT_MAX, it should be INT_MAX

while here, test raised exceptions, other values.

XXX some platforms don't have exceptions


To generate a diff of this commit:
cvs rdiff -u -r1.164 -r1.165 src/distrib/sets/lists/debug/mi
cvs rdiff -u -r1.683 -r1.684 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.37 -r1.38 src/tests/lib/libm/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/lib/libm/t_ilogb.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.164 src/distrib/sets/lists/debug/mi:1.165
--- src/distrib/sets/lists/debug/mi:1.164	Sat Aug 20 11:34:49 2016
+++ src/distrib/sets/lists/debug/mi	Mon Aug 22 08:49:33 2016
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.164 2016/08/20 11:34:49 christos Exp $
+# $NetBSD: mi,v 1.165 2016/08/22 08:49:33 maya 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
@@ -2105,6 +2105,7 @@
 ./usr/libdata/debug/usr/tests/lib/libm/t_floor.debug			tests-obsolete		obsolete,compattestfile
 ./usr/libdata/debug/usr/tests/lib/libm/t_fmod.debug			tests-lib-debug		debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/lib/libm/t_hypot.debug			tests-lib-debug		debug,atf,compattestfile
+./usr/libdata/debug/usr/tests/lib/libm/t_ilogb.debug			tests-lib-debug		debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/lib/libm/t_infinity.debug			tests-lib-debug		debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/lib/libm/t_ldexp.debug			tests-lib-debug		debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/lib/libm/t_libm.debug			tests-obsolete		obsolete,compattestfile

Index: src/distrib/sets/lists/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.683 src/distrib/sets/lists/tests/mi:1.684
--- src/distrib/sets/lists/tests/mi:1.683	Fri Aug 19 10:22:42 2016
+++ src/distrib/sets/lists/tests/mi	Mon Aug 22 08:49:33 2016
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.683 2016/08/19 10:22:42 christos Exp $
+# $NetBSD: mi,v 1.684 2016/08/22 08:49:33 maya Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -2912,6 +2912,7 @@
 ./usr/tests/lib/libm/t_floor			tests-obsolete		obsolete
 ./usr/tests/lib/libm/t_fmod			tests-lib-tests		compattestfile,atf
 ./usr/tests/lib/libm/t_hypot			tests-lib-tests		compattestfile,atf
+./usr/tests/lib/libm/t_ilogb			tests-lib-tests		compattestfile,atf
 ./usr/tests/lib/libm/t_infinity			tests-lib-tests		compattestfile,atf
 ./usr/tests/lib/libm/t_ldexp			tests-lib-tests		compattestfile,atf
 ./usr/tests/lib/libm/t_libm			tests-obsolete		obsolete

Index: src/tests/lib/libm/Makefile
diff -u src/tests/lib/libm/Makefile:1.37 src/tests/lib/libm/Makefile:1.38
--- src/tests/lib/libm/Makefile:1.37	Sun Jan 24 20:26:47 2016
+++ src/tests/lib/libm/Makefile	Mon Aug 22 08:49:33 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.37 2016/01/24 20:26:47 gson Exp $
+# $NetBSD: Makefile,v 1.38 2016/08/22 08:49:33 maya Exp $
 
 .include 
 
@@ -23,6 +23,7 @@ TESTS_C+=	t_exp
 TESTS_C+=	t_fenv
 TESTS_C+=	t_fmod
 TESTS_C+=	t_hypot
+TESTS_C+=	t_ilogb
 TESTS_C+=	t_infinity
 TESTS_C+=	t_ldexp
 TESTS_C+=	t_log

Added files:

Index: src/tests/lib/libm/t_ilogb.c
diff -u /dev/null src/tests/lib/libm/t_ilogb.c:1.1
--- /dev/null	Mon Aug 22 08:49:33 2016
+++ src/tests/lib/libm/t_ilogb.c	Mon Aug 22 08:49:33 2016
@@ -0,0 +1,109 @@
+/* $NetBSD: t_ilogb.c,v 1.1 2016/08/22 08:49:33 maya Exp $ */
+
+/*-
+ * Copyright (c) 2016 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Maya Rashish.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES 

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

2016-08-22 Thread matthew green
Module Name:xsrc
Committed By:   mrg
Date:   Mon Aug 22 08:47:22 UTC 2016

Modified Files:
xsrc/external/mit/xf86-video-sunffb/dist/src: ffb_dac.c

Log Message:
deal with an issue compat-api.h should deal with.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_dac.c

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

Modified files:

Index: xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_dac.c
diff -u xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_dac.c:1.5 xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_dac.c:1.6
--- xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_dac.c:1.5	Fri Aug 19 19:16:01 2016
+++ xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_dac.c	Mon Aug 22 08:47:22 2016
@@ -566,8 +566,13 @@ FFBDacSaveScreen(ScreenPtr pScreen, int 
 
   if (redraw) {
 /* this causes a complete redraw of the screen */
+#ifdef XF86_SCRN_INTERFACE // compat-api.h
+pScrn->EnableDisableFBAccess(pScrn, FALSE);
+pScrn->EnableDisableFBAccess(pScrn, TRUE);
+#else
 pScrn->EnableDisableFBAccess(pScreen->myNum, FALSE);
 pScrn->EnableDisableFBAccess(pScreen->myNum, TRUE);
+#endif
   } 
   return TRUE;
 }



CVS commit: src/external/mit/xorg/server/drivers/xf86-video-sunffb

2016-08-22 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Aug 22 08:39:20 UTC 2016

Modified Files:
src/external/mit/xorg/server/drivers/xf86-video-sunffb: Makefile

Log Message:
ffb_dga.c has const issues as well


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 \
src/external/mit/xorg/server/drivers/xf86-video-sunffb/Makefile

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

Modified files:

Index: src/external/mit/xorg/server/drivers/xf86-video-sunffb/Makefile
diff -u src/external/mit/xorg/server/drivers/xf86-video-sunffb/Makefile:1.9 src/external/mit/xorg/server/drivers/xf86-video-sunffb/Makefile:1.10
--- src/external/mit/xorg/server/drivers/xf86-video-sunffb/Makefile:1.9	Sat Aug 20 20:22:54 2016
+++ src/external/mit/xorg/server/drivers/xf86-video-sunffb/Makefile	Mon Aug 22 08:39:20 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.9 2016/08/20 20:22:54 mrg Exp $
+#	$NetBSD: Makefile,v 1.10 2016/08/22 08:39:20 mrg Exp $
 
 DRIVER=		xf86-video-sunffb
 DRIVER_NAME=	sunffb_drv
@@ -26,4 +26,5 @@ MAN=		sunffb.4
 # XXX
 .if ${HAVE_GCC} > 48
 COPTS.ffb_dac.c+=	${${ACTIVE_CC} == "gcc":? -Wno-error=discarded-qualifiers :}
+COPTS.ffb_dga.c+=	${${ACTIVE_CC} == "gcc":? -Wno-error=discarded-qualifiers :}
 .endif



CVS commit: src/sys/dev/pci

2016-08-22 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Aug 22 08:35:42 UTC 2016

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

Log Message:
 Don't follow an incorrect pointer in an extended capability header. Tested
with Super Micro X10SDV-8C-TLN4F bus 255, device 12, function 0 (BIOS 1.1b).


To generate a diff of this commit:
cvs rdiff -u -r1.149 -r1.150 src/sys/dev/pci/pci_subr.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/pci_subr.c
diff -u src/sys/dev/pci/pci_subr.c:1.149 src/sys/dev/pci/pci_subr.c:1.150
--- src/sys/dev/pci/pci_subr.c:1.149	Wed Aug 17 06:32:01 2016
+++ src/sys/dev/pci/pci_subr.c	Mon Aug 22 08:35:42 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: pci_subr.c,v 1.149 2016/08/17 06:32:01 msaitoh Exp $	*/
+/*	$NetBSD: pci_subr.c,v 1.150 2016/08/22 08:35:42 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 1997 Zubin D. Dittia.  All rights reserved.
@@ -40,7 +40,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.149 2016/08/17 06:32:01 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.150 2016/08/22 08:35:42 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_pci.h"
@@ -3490,6 +3490,10 @@ pci_conf_print_extcaplist(
 		off = PCI_EXTCAPLIST_NEXT(rval);
 		if (off == 0)
 			break;
+		else if (off <= PCI_CONF_SIZE) {
+			printf("next pointer: 0x%03x (incorrect)\n", off);
+			return;
+		}
 		rval = regs[o2i(off)];
 	}
 



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

2016-08-22 Thread matthew green
Module Name:xsrc
Committed By:   mrg
Date:   Mon Aug 22 08:28:32 UTC 2016

Modified Files:
xsrc/external/mit/xf86-video-sunffb/dist/src: ffb_accel_common.c
ffb_exa.c

Log Message:
include config.h #ifdef HAVE_CONFIG_H


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_accel_common.c
cvs rdiff -u -r1.3 -r1.4 \
xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_exa.c

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

Modified files:

Index: xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_accel_common.c
diff -u xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_accel_common.c:1.2 xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_accel_common.c:1.3
--- xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_accel_common.c:1.2	Fri Aug 19 19:16:01 2016
+++ xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_accel_common.c	Mon Aug 22 08:28:32 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: ffb_accel_common.c,v 1.2 2016/08/19 19:16:01 mrg Exp $ */
+/* $NetBSD: ffb_accel_common.c,v 1.3 2016/08/22 08:28:32 mrg Exp $ */
 /*
  * Copyright (C) 1998,1999,2000 Jakub Jelinek (ja...@redhat.com)
  * Copyright (C) 1998 Michal Rehacek (ma...@iname.com)
@@ -28,6 +28,10 @@
  
 #include 
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "ffb_fifo.h"
 #include "ffb_rcache.h"
 #include "ffb.h"

Index: xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_exa.c
diff -u xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_exa.c:1.3 xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_exa.c:1.4
--- xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_exa.c:1.3	Fri Aug 19 19:16:01 2016
+++ xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_exa.c	Mon Aug 22 08:28:32 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: ffb_exa.c,v 1.3 2016/08/19 19:16:01 mrg Exp $ */
+/* $NetBSD: ffb_exa.c,v 1.4 2016/08/22 08:28:32 mrg Exp $ */
 /*
  * Copyright (c) 2015 Michael Lorenz
  * All rights reserved.
@@ -31,6 +31,10 @@
  
 #include 
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "ffb_fifo.h"
 #include "ffb_rcache.h"
 #include "ffb.h"



CVS commit: src/lib/libc/stdio

2016-08-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 22 07:41:10 UTC 2016

Modified Files:
src/lib/libc/stdio: fgetwln.c

Log Message:
missing _


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

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

Modified files:

Index: src/lib/libc/stdio/fgetwln.c
diff -u src/lib/libc/stdio/fgetwln.c:1.6 src/lib/libc/stdio/fgetwln.c:1.7
--- src/lib/libc/stdio/fgetwln.c:1.6	Mon Aug 22 02:11:39 2016
+++ src/lib/libc/stdio/fgetwln.c	Mon Aug 22 03:41:10 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: fgetwln.c,v 1.6 2016/08/22 06:11:39 christos Exp $	*/
+/*	$NetBSD: fgetwln.c,v 1.7 2016/08/22 07:41:10 christos Exp $	*/
 
 /*-
  * Copyright (c) 2002-2004 Tim J. Robbins.
@@ -31,7 +31,7 @@
 #if 0
 __FBSDID("$FreeBSD: src/lib/libc/stdio/fgetwln.c,v 1.2 2004/08/06 17:00:09 tjr Exp $");
 #else
-__RCSID("$NetBSD: fgetwln.c,v 1.6 2016/08/22 06:11:39 christos Exp $");
+__RCSID("$NetBSD: fgetwln.c,v 1.7 2016/08/22 07:41:10 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -94,7 +94,7 @@ fgetwln(FILE * __restrict fp, size_t *le
 		if (wc == L'\n')
 			break;
 	}
-	if (len == 0 || fp->flags & __SERR)
+	if (len == 0 || fp->_flags & __SERR)
 		goto error;
 
 	FUNLOCKFILE(fp);



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

2016-08-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 22 07:37:43 UTC 2016

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

Log Message:
Add missing unbound


To generate a diff of this commit:
cvs rdiff -u -r1.239 -r1.240 src/distrib/sets/lists/etc/mi

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

Modified files:

Index: src/distrib/sets/lists/etc/mi
diff -u src/distrib/sets/lists/etc/mi:1.239 src/distrib/sets/lists/etc/mi:1.240
--- src/distrib/sets/lists/etc/mi:1.239	Sat Dec 12 21:06:16 2015
+++ src/distrib/sets/lists/etc/mi	Mon Aug 22 03:37:43 2016
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.239 2015/12/13 02:06:16 christos Exp $
+# $NetBSD: mi,v 1.240 2016/08/22 07:37:43 christos Exp $
 #
 # Note: end-user configuration files that are moved to another location
 #	should not be marked "obsolete"; they should just be removed from
@@ -292,6 +292,7 @@
 ./etc/rc.d/timedetc-timed-rc
 ./etc/rc.d/tpctletc-sys-rc
 ./etc/rc.d/ttys	etc-sys-rc
+./etc/rc.d/unboundetc-net-rc
 ./etc/rc.d/veriexecetc-sys-rc
 ./etc/rc.d/virecoveretc-sys-rc
 ./etc/rc.d/wdogctletc-sysutil-rc



CVS commit: src/lib/libm/man

2016-08-22 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Mon Aug 22 07:33:31 UTC 2016

Modified Files:
src/lib/libm/man: ilogb.3

Log Message:
BUGS section is no longer correct
FP_ILOGB0 and FP_ILOGBNAN are both defined in math.h


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/man/ilogb.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/libm/man/ilogb.3
diff -u src/lib/libm/man/ilogb.3:1.3 src/lib/libm/man/ilogb.3:1.4
--- src/lib/libm/man/ilogb.3:1.3	Tue Aug  2 10:15:03 2011
+++ src/lib/libm/man/ilogb.3	Mon Aug 22 07:33:30 2016
@@ -1,4 +1,4 @@
-.\" $NetBSD: ilogb.3,v 1.3 2011/08/02 10:15:03 wiz Exp $
+.\" $NetBSD: ilogb.3,v 1.4 2016/08/22 07:33:30 maya Exp $
 .\"
 .\" Copyright (c) 2011 Jukka Ruohonen 
 .\" All rights reserved.
@@ -24,7 +24,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd July 29, 2011
+.Dd August 22, 2016
 .Dt ILOGB 3
 .Os
 .Sh NAME
@@ -102,10 +102,3 @@ a domain error occurs but an unspecified
 .Sh STANDARDS
 The described functions conform to
 .St -isoC-99 .
-.Sh BUGS
-Neither
-.Dv FP_ILOGB0
-nor
-.Dv FP_ILOGBNAN
-is defined currently in
-.Nx .



CVS commit: src/lib/libc/stdio

2016-08-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Aug 22 06:11:39 UTC 2016

Modified Files:
src/lib/libc/stdio: fgetwln.c

Log Message:
>From OpenBSD:
bugfix: when fgetwc(3) fails, fgetwln(3) must fail as well;


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

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

Modified files:

Index: src/lib/libc/stdio/fgetwln.c
diff -u src/lib/libc/stdio/fgetwln.c:1.5 src/lib/libc/stdio/fgetwln.c:1.6
--- src/lib/libc/stdio/fgetwln.c:1.5	Thu Mar 15 14:22:30 2012
+++ src/lib/libc/stdio/fgetwln.c	Mon Aug 22 02:11:39 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: fgetwln.c,v 1.5 2012/03/15 18:22:30 christos Exp $	*/
+/*	$NetBSD: fgetwln.c,v 1.6 2016/08/22 06:11:39 christos Exp $	*/
 
 /*-
  * Copyright (c) 2002-2004 Tim J. Robbins.
@@ -31,7 +31,7 @@
 #if 0
 __FBSDID("$FreeBSD: src/lib/libc/stdio/fgetwln.c,v 1.2 2004/08/06 17:00:09 tjr Exp $");
 #else
-__RCSID("$NetBSD: fgetwln.c,v 1.5 2012/03/15 18:22:30 christos Exp $");
+__RCSID("$NetBSD: fgetwln.c,v 1.6 2016/08/22 06:11:39 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -94,7 +94,7 @@ fgetwln(FILE * __restrict fp, size_t *le
 		if (wc == L'\n')
 			break;
 	}
-	if (len == 0)
+	if (len == 0 || fp->flags & __SERR)
 		goto error;
 
 	FUNLOCKFILE(fp);