CVS commit: src/lib/libc/sys

2017-01-10 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Wed Jan 11 07:32:36 UTC 2017

Modified Files:
src/lib/libc/sys: ptrace.2

Log Message:
Correct man-page category of posix_spawn: is (3) not (2)


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/lib/libc/sys/ptrace.2

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



CVS commit: src/lib/libc/sys

2017-01-10 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Wed Jan 11 07:32:36 UTC 2017

Modified Files:
src/lib/libc/sys: ptrace.2

Log Message:
Correct man-page category of posix_spawn: is (3) not (2)


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/lib/libc/sys/ptrace.2

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/sys/ptrace.2
diff -u src/lib/libc/sys/ptrace.2:1.51 src/lib/libc/sys/ptrace.2:1.52
--- src/lib/libc/sys/ptrace.2:1.51	Wed Jan 11 07:31:14 2017
+++ src/lib/libc/sys/ptrace.2	Wed Jan 11 07:32:36 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: ptrace.2,v 1.51 2017/01/11 07:31:14 kamil Exp $
+.\"	$NetBSD: ptrace.2,v 1.52 2017/01/11 07:32:36 kamil Exp $
 .\"
 .\" This file is in the public domain.
 .Dd January 11, 2016
@@ -387,7 +387,7 @@ event can occur with similar operations,
 like
 .Xr clone 2
 or
-.Xr posix_spawn 2 .
+.Xr posix_spawn 3 .
 The
 .Dv PTRACE_FORK
 value means that process gives birth to its child



CVS commit: src/lib/libc/sys

2017-01-10 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Wed Jan 11 07:31:14 UTC 2017

Modified Files:
src/lib/libc/sys: ptrace.2

Log Message:
Document SIGTRAP with si_code TRAP_CHLD in ptrace(2)

Document the current behavior of TRAP_CHILD in NetBSD.
Add more notes on PTRACE_FORK events.

Sponsored by 


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/lib/libc/sys/ptrace.2

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/sys/ptrace.2
diff -u src/lib/libc/sys/ptrace.2:1.50 src/lib/libc/sys/ptrace.2:1.51
--- src/lib/libc/sys/ptrace.2:1.50	Sat Jan  7 05:51:14 2017
+++ src/lib/libc/sys/ptrace.2	Wed Jan 11 07:31:14 2017
@@ -1,7 +1,7 @@
-.\"	$NetBSD: ptrace.2,v 1.50 2017/01/07 05:51:14 kamil Exp $
+.\"	$NetBSD: ptrace.2,v 1.51 2017/01/11 07:31:14 kamil Exp $
 .\"
 .\" This file is in the public domain.
-.Dd January 7, 2016
+.Dd January 11, 2016
 .Dt PTRACE 2
 .Os
 .Sh NAME
@@ -43,7 +43,7 @@ terminate or continue as appropriate.
 .Fn ptrace
 is the mechanism by which all this happens.
 .Pp
-When a process that is traced by a debugger request and calls
+When a process that is traced by a debugger requests and calls
 .Xr execve 2
 or any of the routines built on it
 .Po
@@ -90,6 +90,20 @@ with
 .Dv si_code
 set to
 .Dv TRAP_TRACE .
+This event is always enabled and cannot be disabled.
+.Pp
+Child program traps are reported with
+.Dv SIGTRAP
+and the
+.Dv si_code
+value set to
+.Dv TRAP_CHLD .
+These events are by default disabled and can be configured with
+.Dv PT_SET_EVENT_MASK .
+If this event occurs,
+check with
+.Dv PT_GET_PROCESS_STATE
+the details of the process state associated with this event.
 .Pp
 A debugger might reuse a port specific symbols,
 to help writing portable code as described in the port specific part of the
@@ -367,6 +381,23 @@ Report
 .Xr fork 2 .
 .El
 .Pp
+The
+.Xr fork 2
+event can occur with similar operations,
+like
+.Xr clone 2
+or
+.Xr posix_spawn 2 .
+The
+.Dv PTRACE_FORK
+value means that process gives birth to its child
+without pending on its termination.
+If enabled,
+the child is also traced by the debugger and
+.Dv SIGRAP
+is generated twice,
+first for the parent and second for the child.
+.Pp
 A pointer to this structure is passed in
 .Fa addr .
 The



CVS commit: src/lib/libc/sys

2017-01-10 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Wed Jan 11 07:31:14 UTC 2017

Modified Files:
src/lib/libc/sys: ptrace.2

Log Message:
Document SIGTRAP with si_code TRAP_CHLD in ptrace(2)

Document the current behavior of TRAP_CHILD in NetBSD.
Add more notes on PTRACE_FORK events.

Sponsored by 


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/lib/libc/sys/ptrace.2

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



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

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 07:26:17 UTC 2017

Modified Files:
src/tests/lib/libc/gen: t_dir.c

Log Message:
wrap the macro in do/while.


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

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



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

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 07:26:17 UTC 2017

Modified Files:
src/tests/lib/libc/gen: t_dir.c

Log Message:
wrap the macro in do/while.


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

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

Modified files:

Index: src/tests/lib/libc/gen/t_dir.c
diff -u src/tests/lib/libc/gen/t_dir.c:1.7 src/tests/lib/libc/gen/t_dir.c:1.8
--- src/tests/lib/libc/gen/t_dir.c:1.7	Tue Jan 10 10:19:00 2017
+++ src/tests/lib/libc/gen/t_dir.c	Wed Jan 11 02:26:17 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: t_dir.c,v 1.7 2017/01/10 15:19:00 christos Exp $ */
+/* $NetBSD: t_dir.c,v 1.8 2017/01/11 07:26:17 christos Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -55,12 +55,12 @@ ATF_TC_BODY(seekdir_basic, tc)
 	struct dirent *entry;
 	long here;
 
-#define	CREAT(x, m)	do {	\
-		int _creat_fd;	\
-		ATF_REQUIRE_MSG((_creat_fd = creat((x), (m))),	\
-		"creat(%s, %x) failed: %s", (x), (m),	\
-		strerror(errno));\
-		(void)close(_creat_fd);			\
+#define	CREAT(x, m)	do {		\
+		int _creat_fd;		\
+		ATF_REQUIRE_MSG((_creat_fd = creat((x), (m)) != -1),	\
+		"creat(%s, %x) failed: %s", (x), (m),		\
+		strerror(errno));	\
+		(void)close(_creat_fd);	\
 	} while(0);
 
 	ATF_REQUIRE_MSG(mkdir("t", 0755) == 0,



CVS commit: src/tests/net/ndp

2017-01-10 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Jan 11 07:22:43 UTC 2017

Modified Files:
src/tests/net/ndp: t_ra.sh

Log Message:
Cope with tentative state


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/tests/net/ndp/t_ra.sh

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



CVS commit: src/tests/net/ndp

2017-01-10 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Jan 11 07:22:43 UTC 2017

Modified Files:
src/tests/net/ndp: t_ra.sh

Log Message:
Cope with tentative state


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/tests/net/ndp/t_ra.sh

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

Modified files:

Index: src/tests/net/ndp/t_ra.sh
diff -u src/tests/net/ndp/t_ra.sh:1.20 src/tests/net/ndp/t_ra.sh:1.21
--- src/tests/net/ndp/t_ra.sh:1.20	Wed Jan 11 03:15:44 2017
+++ src/tests/net/ndp/t_ra.sh	Wed Jan 11 07:22:43 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: t_ra.sh,v 1.20 2017/01/11 03:15:44 ozaki-r Exp $
+#	$NetBSD: t_ra.sh,v 1.21 2017/01/11 07:22:43 ozaki-r Exp $
 #
 # Copyright (c) 2015 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -127,7 +127,8 @@ check_entries()
 	-o match:"$ll_srv%shmif0 +$mac_srv +shmif0 +(23h59m|1d0h0m)..s S R" \
 	rump.ndp -n -a
 	atf_check -s exit:0 -o match:$addr_prefix rump.ndp -n -a
-	atf_check -s exit:0 -o match:"$addr_prefix.+" \
+	atf_check -s exit:0 \
+	-o match:"$addr_prefix.+<(TENTATIVE,)?AUTOCONF>" \
 	rump.ifconfig shmif0 inet6
 	unset RUMP_SERVER
 }
@@ -651,7 +652,8 @@ ra_temporary_address_body()
 
 	# Check temporary address
 	export RUMP_SERVER=${RUMPCLI}
-	atf_check -s exit:0 -o match:"$IP6SRV_PREFIX.+" \
+	atf_check -s exit:0 \
+	-o match:"$IP6SRV_PREFIX.+<(TENTATIVE,)?AUTOCONF,TEMPORARY>" \
 	rump.ifconfig shmif0 inet6
 	unset RUMP_SERVER
 



CVS commit: src/sys/dev/ic

2017-01-10 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Jan 11 07:16:48 UTC 2017

Modified Files:
src/sys/dev/ic: aic6360.c mb89352.c ncr5380sbc.c ncr53c9x.c sunscpal.c
wd33c93.c

Log Message:
adatper -> adapter


To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/sys/dev/ic/aic6360.c
cvs rdiff -u -r1.54 -r1.55 src/sys/dev/ic/mb89352.c
cvs rdiff -u -r1.66 -r1.67 src/sys/dev/ic/ncr5380sbc.c
cvs rdiff -u -r1.146 -r1.147 src/sys/dev/ic/ncr53c9x.c
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/ic/sunscpal.c
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/ic/wd33c93.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/ic/aic6360.c
diff -u src/sys/dev/ic/aic6360.c:1.99 src/sys/dev/ic/aic6360.c:1.100
--- src/sys/dev/ic/aic6360.c:1.99	Mon Nov 23 02:13:46 2009
+++ src/sys/dev/ic/aic6360.c	Wed Jan 11 07:16:48 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: aic6360.c,v 1.99 2009/11/23 02:13:46 rmind Exp $	*/
+/*	$NetBSD: aic6360.c,v 1.100 2017/01/11 07:16:48 skrll Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995, 1996 Charles M. Hannum.  All rights reserved.
@@ -58,7 +58,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: aic6360.c,v 1.99 2009/11/23 02:13:46 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aic6360.c,v 1.100 2017/01/11 07:16:48 skrll Exp $");
 
 #include "opt_ddb.h"
 
@@ -279,7 +279,7 @@ aicattach(struct aic_softc *sc)
 
 	/*
 	 * Add reference to adapter so that we drop the reference after
-	 * config_found() to make sure the adatper is disabled.
+	 * config_found() to make sure the adapter is disabled.
 	 */
 	if (scsipi_adapter_addref(adapt) != 0) {
 		aprint_error_dev(sc->sc_dev, "unable to enable controller\n");

Index: src/sys/dev/ic/mb89352.c
diff -u src/sys/dev/ic/mb89352.c:1.54 src/sys/dev/ic/mb89352.c:1.55
--- src/sys/dev/ic/mb89352.c:1.54	Mon Nov  4 16:54:56 2013
+++ src/sys/dev/ic/mb89352.c	Wed Jan 11 07:16:48 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: mb89352.c,v 1.54 2013/11/04 16:54:56 christos Exp $	*/
+/*	$NetBSD: mb89352.c,v 1.55 2017/01/11 07:16:48 skrll Exp $	*/
 /*	NecBSD: mb89352.c,v 1.4 1998/03/14 07:31:20 kmatsuda Exp	*/
 
 /*-
@@ -77,7 +77,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mb89352.c,v 1.54 2013/11/04 16:54:56 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mb89352.c,v 1.55 2017/01/11 07:16:48 skrll Exp $");
 
 #ifdef DDB
 #define	integrate
@@ -293,7 +293,7 @@ spc_attach(struct spc_softc *sc)
 
 	/*
 	 * Add reference to adapter so that we drop the reference after
-	 * config_found() to make sure the adatper is disabled.
+	 * config_found() to make sure the adapter is disabled.
 	 */
 	if (scsipi_adapter_addref(adapt) != 0) {
 		aprint_error_dev(sc->sc_dev, "unable to enable controller\n");

Index: src/sys/dev/ic/ncr5380sbc.c
diff -u src/sys/dev/ic/ncr5380sbc.c:1.66 src/sys/dev/ic/ncr5380sbc.c:1.67
--- src/sys/dev/ic/ncr5380sbc.c:1.66	Sat Jul 28 00:43:23 2012
+++ src/sys/dev/ic/ncr5380sbc.c	Wed Jan 11 07:16:48 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: ncr5380sbc.c,v 1.66 2012/07/28 00:43:23 matt Exp $	*/
+/*	$NetBSD: ncr5380sbc.c,v 1.67 2017/01/11 07:16:48 skrll Exp $	*/
 
 /*
  * Copyright (c) 1995 David Jones, Gordon W. Ross
@@ -71,7 +71,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ncr5380sbc.c,v 1.66 2012/07/28 00:43:23 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ncr5380sbc.c,v 1.67 2017/01/11 07:16:48 skrll Exp $");
 
 #include "opt_ddb.h"
 
@@ -2575,7 +2575,7 @@ ncr5380_attach(struct ncr5380_softc *sc)
 
 	/*
 	 * Add reference to adapter so that we drop the reference after
-	 * config_found() to make sure the adatper is disabled.
+	 * config_found() to make sure the adapter is disabled.
 	 */
 	if (scsipi_adapter_addref(adapt) != 0) {
 		aprint_error_dev(sc->sc_dev, "unable to enable controller\n");

Index: src/sys/dev/ic/ncr53c9x.c
diff -u src/sys/dev/ic/ncr53c9x.c:1.146 src/sys/dev/ic/ncr53c9x.c:1.147
--- src/sys/dev/ic/ncr53c9x.c:1.146	Sat Dec 24 06:04:50 2016
+++ src/sys/dev/ic/ncr53c9x.c	Wed Jan 11 07:16:48 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: ncr53c9x.c,v 1.146 2016/12/24 06:04:50 macallan Exp $	*/
+/*	$NetBSD: ncr53c9x.c,v 1.147 2017/01/11 07:16:48 skrll Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2002 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.146 2016/12/24 06:04:50 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.147 2017/01/11 07:16:48 skrll Exp $");
 
 #include 
 #include 
@@ -286,7 +286,7 @@ ncr53c9x_attach(struct ncr53c9x_softc *s
 
 	/*
 	 * Add reference to adapter so that we drop the reference after
-	 * config_found() to make sure the adatper is disabled.
+	 * config_found() to make sure the adapter is disabled.
 	 */
 	if (scsipi_adapter_addref(adapt) != 0) {
 		aprint_error_dev(sc->sc_dev, "unable to enable controller\n");

Index: src/sys/dev/ic/sunscpal.c
diff -u src/sys/dev/ic/sunscpal.c:1.26 src/sys/dev/ic/sunscpal.c:1.27
--- src/sys/dev/ic/sunscpal.c:1.26	Tue Mar 25 16:19:13 

CVS commit: src/sys/dev/ic

2017-01-10 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Jan 11 07:16:48 UTC 2017

Modified Files:
src/sys/dev/ic: aic6360.c mb89352.c ncr5380sbc.c ncr53c9x.c sunscpal.c
wd33c93.c

Log Message:
adatper -> adapter


To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/sys/dev/ic/aic6360.c
cvs rdiff -u -r1.54 -r1.55 src/sys/dev/ic/mb89352.c
cvs rdiff -u -r1.66 -r1.67 src/sys/dev/ic/ncr5380sbc.c
cvs rdiff -u -r1.146 -r1.147 src/sys/dev/ic/ncr53c9x.c
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/ic/sunscpal.c
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/ic/wd33c93.c

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



CVS commit: src/sys/net

2017-01-10 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Jan 11 07:03:59 UTC 2017

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

Log Message:
Don't call ifa_remove with holding psref


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/net/link_proto.c

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



CVS commit: src/sys/net

2017-01-10 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Jan 11 07:03:59 UTC 2017

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

Log Message:
Don't call ifa_remove with holding psref


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/net/link_proto.c

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

Modified files:

Index: src/sys/net/link_proto.c
diff -u src/sys/net/link_proto.c:1.33 src/sys/net/link_proto.c:1.34
--- src/sys/net/link_proto.c:1.33	Mon Dec 26 07:25:00 2016
+++ src/sys/net/link_proto.c	Wed Jan 11 07:03:59 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: link_proto.c,v 1.33 2016/12/26 07:25:00 ozaki-r Exp $	*/
+/*	$NetBSD: link_proto.c,v 1.34 2017/01/11 07:03:59 ozaki-r Exp $	*/
 
 /*-
  * Copyright (c) 1982, 1986, 1993
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: link_proto.c,v 1.33 2016/12/26 07:25:00 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: link_proto.c,v 1.34 2017/01/11 07:03:59 ozaki-r Exp $");
 
 #include 
 #include 
@@ -216,7 +216,13 @@ link_control(struct socket *so, unsigned
 			else {
 /* TBD routing socket */
 rt_newaddrmsg(RTM_DELETE, ifa, 0, NULL);
+/* We need to release psref for ifa_remove */
+ifaref(ifa);
+ifa_release(ifa, );
 ifa_remove(ifp, ifa);
+KASSERT(ifa->ifa_refcnt == 1);
+ifafree(ifa);
+ifa = NULL;
 			}
 			break;
 		case SIOCALIFADDR:



CVS commit: src/distrib/utils/zcat

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 04:04:12 UTC 2017

Modified Files:
src/distrib/utils/zcat: Makefile

Log Message:
adjust to new zlib


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/distrib/utils/zcat/Makefile

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



CVS commit: src/distrib/utils/zcat

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 04:04:12 UTC 2017

Modified Files:
src/distrib/utils/zcat: Makefile

Log Message:
adjust to new zlib


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/distrib/utils/zcat/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/utils/zcat/Makefile
diff -u src/distrib/utils/zcat/Makefile:1.15 src/distrib/utils/zcat/Makefile:1.16
--- src/distrib/utils/zcat/Makefile:1.15	Thu May 19 18:23:12 2011
+++ src/distrib/utils/zcat/Makefile	Tue Jan 10 23:04:12 2017
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2011/05/19 22:23:12 tsutsui Exp $
+# $NetBSD: Makefile,v 1.16 2017/01/11 04:04:12 christos Exp $
 # Small zcat (i.e. for install media)
 #
 # Note: gzio.c is compiled here so that crunchgen will assume
@@ -12,7 +12,7 @@ WARNS?=		4
 PROG=		zcat
 NOMAN=		# defined
 
-SRCS=		zcat.c gzio.c
+SRCS=		zcat.c gzread.c gzclose.c gzlib.c
 
 CPPFLAGS+=	-I${SRCDIR} -DNO_GZCOMPRESS
 DPADD+=		${LIBZ}



CVS commit: src/tests/net/ndp

2017-01-10 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Jan 11 03:15:11 UTC 2017

Modified Files:
src/tests/net/ndp: t_ra.sh

Log Message:
Check autoconf flag


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/tests/net/ndp/t_ra.sh

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

Modified files:

Index: src/tests/net/ndp/t_ra.sh
diff -u src/tests/net/ndp/t_ra.sh:1.18 src/tests/net/ndp/t_ra.sh:1.19
--- src/tests/net/ndp/t_ra.sh:1.18	Mon Dec 26 01:26:25 2016
+++ src/tests/net/ndp/t_ra.sh	Wed Jan 11 03:15:11 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: t_ra.sh,v 1.18 2016/12/26 01:26:25 ozaki-r Exp $
+#	$NetBSD: t_ra.sh,v 1.19 2017/01/11 03:15:11 ozaki-r Exp $
 #
 # Copyright (c) 2015 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -127,7 +127,8 @@ check_entries()
 	-o match:"$ll_srv%shmif0 +$mac_srv +shmif0 +(23h59m|1d0h0m)..s S R" \
 	rump.ndp -n -a
 	atf_check -s exit:0 -o match:$addr_prefix rump.ndp -n -a
-	atf_check -s exit:0 -o match:$addr_prefix rump.ifconfig shmif0 inet6
+	atf_check -s exit:0 -o match:"$addr_prefix.+" \
+	rump.ifconfig shmif0 inet6
 	unset RUMP_SERVER
 }
 



CVS commit: src/tests/net/ndp

2017-01-10 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Jan 11 03:15:11 UTC 2017

Modified Files:
src/tests/net/ndp: t_ra.sh

Log Message:
Check autoconf flag


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/tests/net/ndp/t_ra.sh

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



CVS commit: src/tests/net/ndp

2017-01-10 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Jan 11 03:15:44 UTC 2017

Modified Files:
src/tests/net/ndp: t_ra.sh

Log Message:
Add a test case for IPv6 temporary address


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/tests/net/ndp/t_ra.sh

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

Modified files:

Index: src/tests/net/ndp/t_ra.sh
diff -u src/tests/net/ndp/t_ra.sh:1.19 src/tests/net/ndp/t_ra.sh:1.20
--- src/tests/net/ndp/t_ra.sh:1.19	Wed Jan 11 03:15:11 2017
+++ src/tests/net/ndp/t_ra.sh	Wed Jan 11 03:15:44 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: t_ra.sh,v 1.19 2017/01/11 03:15:11 ozaki-r Exp $
+#	$NetBSD: t_ra.sh,v 1.20 2017/01/11 03:15:44 ozaki-r Exp $
 #
 # Copyright (c) 2015 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -595,6 +595,84 @@ ra_multiple_routers_maxifprefixes_cleanu
 	cleanup
 }
 
+atf_test_case ra_temporary_address cleanup
+ra_temporary_address_head()
+{
+
+	atf_set "descr" "Tests for IPv6 temporary address"
+	atf_set "require.progs" "rump_server rump.rtadvd rump.ndp rump.ifconfig"
+}
+
+ra_temporary_address_body()
+{
+
+	rump_server_fs_start $RUMPSRV netinet6
+	rump_server_start $RUMPCLI netinet6
+
+	setup_shmif0 ${RUMPSRV} ${IP6SRV}
+	init_server $RUMPSRV
+
+	setup_shmif0 ${RUMPCLI} ${IP6CLI}
+	export RUMP_SERVER=${RUMPCLI}
+	$DEBUG && rump.ndp -n -a
+	atf_check -s exit:0 -o match:'= 0' \
+	rump.sysctl net.inet6.ip6.accept_rtadv
+	atf_check -s exit:0 -o match:'= 0' \
+	rump.sysctl net.inet6.ip6.use_tempaddr
+	unset RUMP_SERVER
+
+	create_rtadvdconfig
+	start_rtadvd $RUMPSRV $PIDFILE
+	sleep $WAITTIME
+
+	export RUMP_SERVER=${RUMPCLI}
+	atf_check -s exit:0 -o empty rump.ndp -r
+	atf_check -s exit:0 -o not-match:'advertised' rump.ndp -p
+	atf_check -s exit:0 -o match:'linkmtu=0' rump.ndp -n -i shmif0
+	atf_check -s exit:0 -o not-match:'S R' rump.ndp -n -a
+	atf_check -s exit:0 -o not-match:'fc00:1:' rump.ndp -n -a
+	atf_check -s exit:0 -o not-match:'fc00:1:' rump.ifconfig shmif0 inet6
+	unset RUMP_SERVER
+
+	atf_check -s exit:0 kill -TERM `cat ${PIDFILE}`
+	wait_term ${PIDFILE}
+
+	export RUMP_SERVER=${RUMPCLI}
+	atf_check -s exit:0 -o match:'0.->.1' \
+	rump.sysctl -w net.inet6.ip6.accept_rtadv=1
+	atf_check -s exit:0 -o match:'0.->.1' \
+	rump.sysctl -w net.inet6.ip6.use_tempaddr=1
+	unset RUMP_SERVER
+
+	start_rtadvd $RUMPSRV $PIDFILE
+	sleep $WAITTIME
+
+	check_entries $RUMPCLI $RUMPSRV $IP6SRV_PREFIX
+
+	# Check temporary address
+	export RUMP_SERVER=${RUMPCLI}
+	atf_check -s exit:0 -o match:"$IP6SRV_PREFIX.+" \
+	rump.ifconfig shmif0 inet6
+	unset RUMP_SERVER
+
+	atf_check -s exit:0 kill -TERM `cat ${PIDFILE}`
+	wait_term ${PIDFILE}
+
+	rump_server_destroy_ifaces
+}
+
+ra_temporary_address_cleanup()
+{
+
+	if [ -f ${PIDFILE} ]; then
+		kill -TERM `cat ${PIDFILE}`
+		wait_term ${PIDFILE}
+	fi
+
+	$DEBUG && dump
+	cleanup
+}
+
 atf_init_test_cases()
 {
 
@@ -605,4 +683,5 @@ atf_init_test_cases()
 	atf_add_test_case ra_multiple_routers
 	atf_add_test_case ra_multiple_routers_single_prefix
 	atf_add_test_case ra_multiple_routers_maxifprefixes
+	atf_add_test_case ra_temporary_address
 }



CVS commit: src/usr.sbin/npf/npfctl

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 02:13:54 UTC 2017

Modified Files:
src/usr.sbin/npf/npfctl: todo

Log Message:
more todo


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/usr.sbin/npf/npfctl/todo

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/npf/npfctl/todo
diff -u src/usr.sbin/npf/npfctl/todo:1.11 src/usr.sbin/npf/npfctl/todo:1.12
--- src/usr.sbin/npf/npfctl/todo:1.11	Thu Feb 13 21:01:12 2014
+++ src/usr.sbin/npf/npfctl/todo	Tue Jan 10 21:13:54 2017
@@ -16,3 +16,4 @@
 -- add algo for "with short"
 -- implement "port-unr"
 -- implement block return-icmp in log final all with ipopts
+-- handle array variables in more places



CVS commit: src/usr.sbin/npf/npfctl

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 02:11:21 UTC 2017

Modified Files:
src/usr.sbin/npf/npfctl: npf_parse.y npf_var.c

Log Message:
Don't silently take the first element of multiple element variables.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/usr.sbin/npf/npfctl/npf_parse.y
cvs rdiff -u -r1.9 -r1.10 src/usr.sbin/npf/npfctl/npf_var.c

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



CVS commit: src/usr.sbin/npf/npfctl

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 02:11:21 UTC 2017

Modified Files:
src/usr.sbin/npf/npfctl: npf_parse.y npf_var.c

Log Message:
Don't silently take the first element of multiple element variables.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/usr.sbin/npf/npfctl/npf_parse.y
cvs rdiff -u -r1.9 -r1.10 src/usr.sbin/npf/npfctl/npf_var.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/npf/npfctl/npf_parse.y
diff -u src/usr.sbin/npf/npfctl/npf_parse.y:1.40 src/usr.sbin/npf/npfctl/npf_parse.y:1.41
--- src/usr.sbin/npf/npfctl/npf_parse.y:1.40	Mon Jan  2 20:29:49 2017
+++ src/usr.sbin/npf/npfctl/npf_parse.y	Tue Jan 10 21:11:21 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: npf_parse.y,v 1.40 2017/01/03 01:29:49 rmind Exp $	*/
+/*	$NetBSD: npf_parse.y,v 1.41 2017/01/11 02:11:21 christos Exp $	*/
 
 /*-
  * Copyright (c) 2011-2017 The NetBSD Foundation, Inc.
@@ -665,6 +665,8 @@ addr_or_ifaddr
 	}
 	| static_ifaddrs
 	{
+		if (npfvar_get_count($1) != 1)
+			yyerror("multiple interfaces are not supported");
 		ifnet_addr_t *ifna = npfvar_get_data($1, NPFVAR_INTERFACE, 0);
 		$$ = ifna->ifna_addrs;
 	}
@@ -765,6 +767,8 @@ tcp_flags_and_mask
 	}
 	| FLAGS tcp_flags
 	{
+		if (npfvar_get_count($2) != 1)
+			yyerror("multiple tcpflags are not supported");
 		char *s = npfvar_get_data($2, NPFVAR_TCPFLAG, 0);
 		npfvar_add_elements($2, npfctl_parse_tcpflag(s));
 		$$ = $2;
@@ -804,6 +808,9 @@ ifname
 			$$ = npfvar_expand_string(vp);
 			break;
 		case NPFVAR_INTERFACE:
+			if (npfvar_get_count(vp) != 1)
+yyerror(
+"multiple interfaces are not supported");
 			ifna = npfvar_get_data(vp, type, 0);
 			$$ = ifna->ifna_name;
 			break;
@@ -838,6 +845,8 @@ ifref
 	| dynamic_ifaddrs
 	| static_ifaddrs
 	{
+		if (npfvar_get_count($1) != 1)
+			yyerror("multiple interfaces are not supported");
 		ifnet_addr_t *ifna = npfvar_get_data($1, NPFVAR_INTERFACE, 0);
 		npfctl_note_interface(ifna->ifna_name);
 		$$ = ifna->ifna_name;

Index: src/usr.sbin/npf/npfctl/npf_var.c
diff -u src/usr.sbin/npf/npfctl/npf_var.c:1.9 src/usr.sbin/npf/npfctl/npf_var.c:1.10
--- src/usr.sbin/npf/npfctl/npf_var.c:1.9	Sun Jul 12 19:54:44 2015
+++ src/usr.sbin/npf/npfctl/npf_var.c	Tue Jan 10 21:11:21 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: npf_var.c,v 1.9 2015/07/12 23:54:44 rmind Exp $	*/
+/*	$NetBSD: npf_var.c,v 1.10 2017/01/11 02:11:21 christos Exp $	*/
 
 /*-
  * Copyright (c) 2011-2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__RCSID("$NetBSD: npf_var.c,v 1.9 2015/07/12 23:54:44 rmind Exp $");
+__RCSID("$NetBSD: npf_var.c,v 1.10 2017/01/11 02:11:21 christos Exp $");
 
 #include 
 #include 
@@ -188,6 +188,10 @@ npfvar_destroy(npfvar_t *vp)
 char *
 npfvar_expand_string(const npfvar_t *vp)
 {
+	if (npfvar_get_count(vp) != 1)
+		yyerror("variable '%s' type '%s' has %zu elements", vp->v_key,
+		npfvar_type(vp->v_type), npfvar_get_count(vp));
+			
 	return npfvar_get_data(vp, NPFVAR_STRING, 0);
 }
 



CVS commit: src/usr.sbin/npf/npfctl

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 02:10:44 UTC 2017

Modified Files:
src/usr.sbin/npf/npfctl: npfctl.c

Log Message:
fix hint.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/usr.sbin/npf/npfctl/npfctl.c

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



CVS commit: src/usr.sbin/npf/npfctl

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 11 02:10:44 UTC 2017

Modified Files:
src/usr.sbin/npf/npfctl: npfctl.c

Log Message:
fix hint.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/usr.sbin/npf/npfctl/npfctl.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/npf/npfctl/npfctl.c
diff -u src/usr.sbin/npf/npfctl/npfctl.c:1.52 src/usr.sbin/npf/npfctl/npfctl.c:1.53
--- src/usr.sbin/npf/npfctl/npfctl.c:1.52	Thu Dec 29 15:48:50 2016
+++ src/usr.sbin/npf/npfctl/npfctl.c	Tue Jan 10 21:10:44 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: npfctl.c,v 1.52 2016/12/29 20:48:50 rmind Exp $	*/
+/*	$NetBSD: npfctl.c,v 1.53 2017/01/11 02:10:44 christos Exp $	*/
 
 /*-
  * Copyright (c) 2009-2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__RCSID("$NetBSD: npfctl.c,v 1.52 2016/12/29 20:48:50 rmind Exp $");
+__RCSID("$NetBSD: npfctl.c,v 1.53 2017/01/11 02:10:44 christos Exp $");
 
 #include 
 #include 
@@ -695,7 +695,8 @@ npfctl_open_dev(const char *path)
 	if (ver != NPF_VERSION) {
 		errx(EXIT_FAILURE,
 		"incompatible NPF interface version (%d, kernel %d)\n"
-		"Hint: update userland?", NPF_VERSION, ver);
+		"Hint: update %s?", NPF_VERSION, ver, 
+		NPF_VERSION > ver ? "userland" : "kernel");
 	}
 	return fd;
 }



CVS commit: src/usr.bin/netstat

2017-01-10 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Jan 11 01:25:05 UTC 2017

Modified Files:
src/usr.bin/netstat: if.c

Log Message:
Fix showing multicast addresses of !IFF_UP interfaces

netstat appends '*' to the name of an interface without IFF_UP, so
if_nametoindex which is used in mc_print fails. mc_print needs just
an interface index so pass it instead of a tweaked interface name.


To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/usr.bin/netstat/if.c

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

Modified files:

Index: src/usr.bin/netstat/if.c
diff -u src/usr.bin/netstat/if.c:1.90 src/usr.bin/netstat/if.c:1.91
--- src/usr.bin/netstat/if.c:1.90	Thu Nov 24 00:05:13 2016
+++ src/usr.bin/netstat/if.c	Wed Jan 11 01:25:05 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: if.c,v 1.90 2016/11/24 00:05:13 dholland Exp $	*/
+/*	$NetBSD: if.c,v 1.91 2017/01/11 01:25:05 ozaki-r Exp $	*/
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "from: @(#)if.c	8.2 (Berkeley) 2/21/94";
 #else
-__RCSID("$NetBSD: if.c,v 1.90 2016/11/24 00:05:13 dholland Exp $");
+__RCSID("$NetBSD: if.c,v 1.91 2017/01/11 01:25:05 ozaki-r Exp $");
 #endif
 #endif /* not lint */
 
@@ -84,7 +84,7 @@ struct	iftot {
 };
 
 static void set_lines(void);
-static void print_addr(const char *, struct sockaddr *, struct sockaddr **,
+static void print_addr(const int, struct sockaddr *, struct sockaddr **,
 struct if_data *, struct ifnet *);
 static void sidewaysintpr(u_int, u_long);
 
@@ -179,6 +179,7 @@ intpr_sysctl(void)
 	size_t len;
 	int did = 1, rtax = 0, n;
 	char name[IFNAMSIZ + 1];	/* + 1 for `*' */
+	int ifindex = 0;
 
 	if (prog_sysctl(mib, 6, NULL, , NULL, 0) == -1)
 		err(1, "sysctl");
@@ -216,6 +217,8 @@ intpr_sysctl(void)
 			if (interface != 0 && strcmp(name, interface) != 0)
 continue;
 
+			ifindex = sdl->sdl_index;
+
 			/* mark inactive interfaces with a '*' */
 			cp = strchr(name, '\0');
 			if ((ifm->ifm_flags & IFF_UP) == 0)
@@ -264,7 +267,7 @@ intpr_sysctl(void)
 			n = 5;
 
 		printf("%-*.*s %-5" PRIu64 " ", n, n, name, ifd->ifi_mtu);
-		print_addr(name, rti_info[rtax], rti_info, ifd, NULL);
+		print_addr(ifindex, rti_info[rtax], rti_info, ifd, NULL);
 	}
 }
 
@@ -346,8 +349,8 @@ intpr_kvm(u_long ifnetaddr, void (*pfunc
 			cp = (CP(ifaddr.ifa.ifa_addr) - CP(ifaddraddr)) +
 			CP();
 			sa = (struct sockaddr *)cp;
-			print_addr(name, sa, (void *), _data,
-			);
+			print_addr(ifnet.if_index, sa, (void *),
+			_data, );
 		}
 		ifaddraddr = (u_long)ifaddr.ifa.ifa_list.tqe_next;
 	}
@@ -355,16 +358,12 @@ intpr_kvm(u_long ifnetaddr, void (*pfunc
 }
 
 static void
-mc_print(const char *ifname, const size_t ias, const char *oid, int *mcast_oids,
+mc_print(const int ifindex, const size_t ias, const char *oid, int *mcast_oids,
 void (*pr)(const void *))
 {
 	uint8_t *mcast_addrs, *p;
 	const size_t incr = 2 * ias + sizeof(uint32_t);
 	size_t len;
-	int ifindex;
-
-	if ((ifindex = if_nametoindex(ifname)) == 0)
-		warn("Interface %s not found", ifname);
 
 	if (mcast_oids[0] == 0) {
 		size_t oidlen = 4;
@@ -423,11 +422,11 @@ ia6_print(const struct in6_addr *ia)
 }
 
 static void
-mc6_print(const char *ifname)
+mc6_print(const int ifindex)
 {
 	static int mcast_oids[4];
 
-	mc_print(ifname, sizeof(struct in6_addr), "net.inet6.multicast",
+	mc_print(ifindex, sizeof(struct in6_addr), "net.inet6.multicast",
 	mcast_oids, (void (*)(const void *))ia6_print);
 }
 #endif
@@ -439,17 +438,17 @@ ia4_print(const struct in_addr *ia)
 }
 
 static void
-mc4_print(const char *ifname)
+mc4_print(const int ifindex)
 {
 	static int mcast_oids[4];
 
-	mc_print(ifname, sizeof(struct in_addr), "net.inet.multicast",
+	mc_print(ifindex, sizeof(struct in_addr), "net.inet.multicast",
 	mcast_oids, (void (*)(const void *))ia4_print);
 }
 
 static void
-print_addr(const char *name, struct sockaddr *sa, struct sockaddr **rtinfo,
-struct if_data *ifd, struct ifnet *ifnet)
+print_addr(const int ifindex, struct sockaddr *sa,
+struct sockaddr **rtinfo, struct if_data *ifd, struct ifnet *ifnet)
 {
 	char hexsep = '.';		/* for hexprint */
 	static const char hexfmt[] = "%02x%c";	/* for hexprint */
@@ -503,7 +502,7 @@ print_addr(const char *name, struct sock
 multiaddr = (u_long)inm.inm_list.le_next;
 			}
 		} else {
-			mc4_print(name);
+			mc4_print(ifindex);
 		}
 		break;
 #ifdef INET6
@@ -555,7 +554,7 @@ print_addr(const char *name, struct sock
 multiaddr = (u_long)inm.in6m_entry.le_next;
 			}
 		} else {
-			mc6_print(name);
+			mc6_print(ifindex);
 		}
 		break;
 #endif /*INET6*/



CVS commit: src/usr.bin/netstat

2017-01-10 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Jan 11 01:25:05 UTC 2017

Modified Files:
src/usr.bin/netstat: if.c

Log Message:
Fix showing multicast addresses of !IFF_UP interfaces

netstat appends '*' to the name of an interface without IFF_UP, so
if_nametoindex which is used in mc_print fails. mc_print needs just
an interface index so pass it instead of a tweaked interface name.


To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/usr.bin/netstat/if.c

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



Re: CVS commit: src/sys/arch/x86/pci

2017-01-10 Thread coypu
>  #define VMXNET3_CORE_LOCK_ASSERT(_sc)mutex_owned((_sc)->vmx_mtx)
>  
>  #define VMXNET3_RXQ_LOCK_ASSERT(_rxq)\
>  mutex_owned((_rxq)->vxrxq_mtx)

>  #define VMXNET3_TXQ_LOCK_ASSERT(_txq)\
>  mutex_owned((_txq)->vxtxq_mtx)

These should probably assert for real (coverity is
complaining of this :)), but I'm not sure that the
asserts don't fire.


CVS commit: src/sys/arch/x86/pci

2017-01-10 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Jan 11 00:55:57 UTC 2017

Modified Files:
src/sys/arch/x86/pci: if_vmx.c

Log Message:
we cannot guarantee that m_pulldown doesn't fail, as it may fail even
if temporarily out of memory, and it will free the mbuf in this scenario.

test for failure and return error if it happens.

CID 1396651

ok riastradh


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/x86/pci/if_vmx.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/x86/pci/if_vmx.c
diff -u src/sys/arch/x86/pci/if_vmx.c:1.17 src/sys/arch/x86/pci/if_vmx.c:1.18
--- src/sys/arch/x86/pci/if_vmx.c:1.17	Wed Jan 11 00:51:22 2017
+++ src/sys/arch/x86/pci/if_vmx.c	Wed Jan 11 00:55:57 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_vmx.c,v 1.17 2017/01/11 00:51:22 maya Exp $	*/
+/*	$NetBSD: if_vmx.c,v 1.18 2017/01/11 00:55:57 maya Exp $	*/
 /*	$OpenBSD: if_vmx.c,v 1.16 2014/01/22 06:04:17 brad Exp $	*/
 
 /*
@@ -19,7 +19,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.17 2017/01/11 00:51:22 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.18 2017/01/11 00:55:57 maya Exp $");
 
 #include 
 #include 
@@ -2554,6 +2554,10 @@ vmxnet3_txq_offload_ctx(struct vmxnet3_t
 
 	*csum_start = *start + csum_off;
 	mp = m_pulldown(m, 0, *csum_start + 2, );
+	if (!mp) {
+		/* m is already freed */
+		return ENOBUFS;
+	}
 
 	if (m->m_pkthdr.csum_flags & (M_CSUM_TSOv4 | M_CSUM_TSOv6)) {
 		struct tcphdr *tcp;



CVS commit: src/sys/arch/x86/pci

2017-01-10 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Jan 11 00:55:57 UTC 2017

Modified Files:
src/sys/arch/x86/pci: if_vmx.c

Log Message:
we cannot guarantee that m_pulldown doesn't fail, as it may fail even
if temporarily out of memory, and it will free the mbuf in this scenario.

test for failure and return error if it happens.

CID 1396651

ok riastradh


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/x86/pci/if_vmx.c

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



CVS commit: src/sys/arch/x86/pci

2017-01-10 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Jan 11 00:51:22 UTC 2017

Modified Files:
src/sys/arch/x86/pci: if_vmx.c

Log Message:
on error, free the mbuf in vmxnet3_txq_offload_ctx, not in callers.

ok riastradh


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/x86/pci/if_vmx.c

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



CVS commit: src/sys/arch/x86/pci

2017-01-10 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Jan 11 00:51:22 UTC 2017

Modified Files:
src/sys/arch/x86/pci: if_vmx.c

Log Message:
on error, free the mbuf in vmxnet3_txq_offload_ctx, not in callers.

ok riastradh


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/x86/pci/if_vmx.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/x86/pci/if_vmx.c
diff -u src/sys/arch/x86/pci/if_vmx.c:1.16 src/sys/arch/x86/pci/if_vmx.c:1.17
--- src/sys/arch/x86/pci/if_vmx.c:1.16	Wed Jan 11 00:41:38 2017
+++ src/sys/arch/x86/pci/if_vmx.c	Wed Jan 11 00:51:22 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_vmx.c,v 1.16 2017/01/11 00:41:38 maya Exp $	*/
+/*	$NetBSD: if_vmx.c,v 1.17 2017/01/11 00:51:22 maya Exp $	*/
 /*	$OpenBSD: if_vmx.c,v 1.16 2014/01/22 06:04:17 brad Exp $	*/
 
 /*
@@ -19,7 +19,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.16 2017/01/11 00:41:38 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.17 2017/01/11 00:51:22 maya Exp $");
 
 #include 
 #include 
@@ -2531,6 +2531,7 @@ vmxnet3_txq_offload_ctx(struct vmxnet3_t
 		offset = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN;
 		break;
 	default:
+		m_free(m);
 		return (EINVAL);
 	}
 
@@ -2660,9 +2661,9 @@ vmxnet3_txq_encap(struct vmxnet3_txqueue
 	} else if (m->m_pkthdr.csum_flags & VMXNET3_CSUM_ALL_OFFLOAD) {
 		error = vmxnet3_txq_offload_ctx(txq, m, , _start);
 		if (error) {
+			/* m is already freed */
 			txq->vxtxq_stats.vmtxs_offload_failed++;
 			vmxnet3_txq_unload_mbuf(txq, dmap);
-			m_freem(m);
 			*m0 = NULL;
 			return (error);
 		}



CVS commit: src/sys/arch/x86/pci

2017-01-10 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Jan 11 00:41:38 UTC 2017

Modified Files:
src/sys/arch/x86/pci: if_vmx.c

Log Message:
GC unused macros.

Even if they were used (and actually asserted), asserting on !mutex_owned
is generally a bad idea, as it may be true in unexpected contexts.

suggested by riastradh, thanks.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/x86/pci/if_vmx.c

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



CVS commit: src/sys/arch/x86/pci

2017-01-10 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Jan 11 00:41:38 UTC 2017

Modified Files:
src/sys/arch/x86/pci: if_vmx.c

Log Message:
GC unused macros.

Even if they were used (and actually asserted), asserting on !mutex_owned
is generally a bad idea, as it may be true in unexpected contexts.

suggested by riastradh, thanks.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/x86/pci/if_vmx.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/x86/pci/if_vmx.c
diff -u src/sys/arch/x86/pci/if_vmx.c:1.15 src/sys/arch/x86/pci/if_vmx.c:1.16
--- src/sys/arch/x86/pci/if_vmx.c:1.15	Wed Dec 28 07:32:16 2016
+++ src/sys/arch/x86/pci/if_vmx.c	Wed Jan 11 00:41:38 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_vmx.c,v 1.15 2016/12/28 07:32:16 ozaki-r Exp $	*/
+/*	$NetBSD: if_vmx.c,v 1.16 2017/01/11 00:41:38 maya Exp $	*/
 /*	$OpenBSD: if_vmx.c,v 1.16 2014/01/22 06:04:17 brad Exp $	*/
 
 /*
@@ -19,7 +19,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.15 2016/12/28 07:32:16 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.16 2017/01/11 00:41:38 maya Exp $");
 
 #include 
 #include 
@@ -97,22 +97,16 @@ __KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1
 #define VMXNET3_CORE_LOCK(_sc)		mutex_enter((_sc)->vmx_mtx)
 #define VMXNET3_CORE_UNLOCK(_sc)	mutex_exit((_sc)->vmx_mtx)
 #define VMXNET3_CORE_LOCK_ASSERT(_sc)	mutex_owned((_sc)->vmx_mtx)
-#define VMXNET3_CORE_LOCK_ASSERT_NOTOWNED(_sc) \
-(!mutex_owned((_sc)->vmx_mtx))
 
 #define VMXNET3_RXQ_LOCK(_rxq)		mutex_enter((_rxq)->vxrxq_mtx)
 #define VMXNET3_RXQ_UNLOCK(_rxq)	mutex_exit((_rxq)->vxrxq_mtx)
 #define VMXNET3_RXQ_LOCK_ASSERT(_rxq)		\
 mutex_owned((_rxq)->vxrxq_mtx)
-#define VMXNET3_RXQ_LOCK_ASSERT_NOTOWNED(_rxq)	\
-(!mutex_owned((_rxq)->vxrxq_mtx))
 
 #define VMXNET3_TXQ_LOCK(_txq)		mutex_enter((_txq)->vxtxq_mtx)
 #define VMXNET3_TXQ_UNLOCK(_txq)	mutex_exit((_txq)->vxtxq_mtx)
 #define VMXNET3_TXQ_LOCK_ASSERT(_txq)		\
 mutex_owned((_txq)->vxtxq_mtx)
-#define VMXNET3_TXQ_LOCK_ASSERT_NOTOWNED(_txq)	\
-(!mutex_owned((_txq)->vxtxq_mtx))
 
 struct vmxnet3_dma_alloc {
 	bus_addr_t dma_paddr;



CVS commit: src/lib/libcurses

2017-01-10 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Tue Jan 10 23:49:20 UTC 2017

Modified Files:
src/lib/libcurses: standout.c

Log Message:
Use the window's screen's terminal.


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

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



CVS commit: src/lib/libcurses

2017-01-10 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Tue Jan 10 23:49:20 UTC 2017

Modified Files:
src/lib/libcurses: standout.c

Log Message:
Use the window's screen's terminal.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/lib/libcurses/standout.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/libcurses/standout.c
diff -u src/lib/libcurses/standout.c:1.18 src/lib/libcurses/standout.c:1.19
--- src/lib/libcurses/standout.c:1.18	Fri Jan  6 13:53:18 2017
+++ src/lib/libcurses/standout.c	Tue Jan 10 23:49:20 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: standout.c,v 1.18 2017/01/06 13:53:18 roy Exp $	*/
+/*	$NetBSD: standout.c,v 1.19 2017/01/10 23:49:20 roy Exp $	*/
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)standout.c	8.3 (Berkeley) 8/10/94";
 #else
-__RCSID("$NetBSD: standout.c,v 1.18 2017/01/06 13:53:18 roy Exp $");
+__RCSID("$NetBSD: standout.c,v 1.19 2017/01/10 23:49:20 roy Exp $");
 #endif
 #endif/* not lint */
 
@@ -74,13 +74,15 @@ standend(void)
 int
 wstandout(WINDOW *win)
 {
+	const TERMINAL *t = win->screen->term;
 
 	/*
 	 * If standout/standend strings, or can underline, set the
 	 * screen standout bit.
 	 */
-	if ((enter_standout_mode != NULL && exit_standout_mode != NULL) ||
-	underline_char != NULL)
+	if ((t_enter_standout_mode(t) != NULL &&
+	t_exit_standout_mode(t) != NULL) ||
+	t_underline_char(t) != NULL)
 		win->wattr |= __STANDOUT;
 	return 1;
 }



CVS commit: src/lib/libcurses

2017-01-10 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Tue Jan 10 23:28:45 UTC 2017

Modified Files:
src/lib/libcurses: resize.c

Log Message:
Fix resizing terms.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/lib/libcurses/resize.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/libcurses/resize.c
diff -u src/lib/libcurses/resize.c:1.23 src/lib/libcurses/resize.c:1.24
--- src/lib/libcurses/resize.c:1.23	Tue Jan 10 10:13:24 2017
+++ src/lib/libcurses/resize.c	Tue Jan 10 23:28:45 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: resize.c,v 1.23 2017/01/10 10:13:24 roy Exp $	*/
+/*	$NetBSD: resize.c,v 1.24 2017/01/10 23:28:45 roy Exp $	*/
 
 /*
  * Copyright (c) 2001
@@ -40,7 +40,7 @@
 #if 0
 static char sccsid[] = "@(#)resize.c   blymn 2001/08/26";
 #else
-__RCSID("$NetBSD: resize.c,v 1.23 2017/01/10 10:13:24 roy Exp $");
+__RCSID("$NetBSD: resize.c,v 1.24 2017/01/10 23:28:45 roy Exp $");
 #endif
 #endif/* not lint */
 
@@ -145,8 +145,7 @@ is_term_resized(int nlines, int ncols)
 {
 
 	return (nlines > 0 && ncols > 0 &&
-	(nlines != _cursesi_screen->LINES
-	+ _cursesi_screen->ripped_top + _cursesi_screen->ripped_bottom ||
+	(nlines != _cursesi_screen->LINES ||
 	ncols != _cursesi_screen->COLS));
 }
 
@@ -167,7 +166,7 @@ resizeterm(int nlines, int ncols)
 	if (!is_term_resized(nlines, ncols))
 		return OK;
 
-	result = resizeterm(nlines, ncols);
+	result = resize_term(nlines, ncols);
 	clearok(curscr, TRUE);
 	return result;
 }



CVS commit: src/lib/libcurses

2017-01-10 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Tue Jan 10 23:28:45 UTC 2017

Modified Files:
src/lib/libcurses: resize.c

Log Message:
Fix resizing terms.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/lib/libcurses/resize.c

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



CVS commit: src/sys/sys

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 23:08:13 UTC 2017

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

Log Message:
Don't include ; it is optional even in X/Open.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/sys/fcntl.h

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

Modified files:

Index: src/sys/sys/fcntl.h
diff -u src/sys/sys/fcntl.h:1.47 src/sys/sys/fcntl.h:1.48
--- src/sys/sys/fcntl.h:1.47	Thu Jun 30 11:29:20 2016
+++ src/sys/sys/fcntl.h	Tue Jan 10 18:08:13 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: fcntl.h,v 1.47 2016/06/30 15:29:20 dholland Exp $	*/
+/*	$NetBSD: fcntl.h,v 1.48 2017/01/10 23:08:13 christos Exp $	*/
 
 /*-
  * Copyright (c) 1983, 1990, 1993
@@ -48,9 +48,9 @@
 #ifndef _KERNEL
 #include 
 #include 
-#if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE)
+#if defined(_XOPEN_SOURCE)
 #include 
-#endif /* _XOPEN_SOURCE || _NETBSD_SOURCE */
+#endif /* _XOPEN_SOURCE */
 #endif /* !_KERNEL */
 
 /*



CVS commit: src/sys/sys

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 23:08:13 UTC 2017

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

Log Message:
Don't include ; it is optional even in X/Open.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/sys/fcntl.h

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



CVS commit: src/common/lib/libc/cdb

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 23:06:06 UTC 2017

Modified Files:
src/common/lib/libc/cdb: cdbr.c

Log Message:
mark parameter as unused.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/common/lib/libc/cdb/cdbr.c

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

Modified files:

Index: src/common/lib/libc/cdb/cdbr.c
diff -u src/common/lib/libc/cdb/cdbr.c:1.1 src/common/lib/libc/cdb/cdbr.c:1.2
--- src/common/lib/libc/cdb/cdbr.c:1.1	Tue Dec 10 20:24:08 2013
+++ src/common/lib/libc/cdb/cdbr.c	Tue Jan 10 18:06:06 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: cdbr.c,v 1.1 2013/12/11 01:24:08 joerg Exp $	*/
+/*	$NetBSD: cdbr.c,v 1.2 2017/01/10 23:06:06 christos Exp $	*/
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -36,7 +36,7 @@
 #endif
 
 #include 
-__RCSID("$NetBSD: cdbr.c,v 1.1 2013/12/11 01:24:08 joerg Exp $");
+__RCSID("$NetBSD: cdbr.c,v 1.2 2017/01/10 23:06:06 christos Exp $");
 
 #if !defined(_KERNEL) && !defined(_STANDALONE)
 #include "namespace.h"
@@ -156,7 +156,7 @@ cdbr_open(const char *path, int flags)
 #endif
 
 struct cdbr *
-cdbr_open_mem(void *base, size_t size, int flags,
+cdbr_open_mem(void *base, size_t size, int flags __unused,
 void (*unmap)(void *, void *, size_t), void *cookie)
 {
 	struct cdbr *cdbr;



CVS commit: src/common/lib/libc/cdb

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 23:06:06 UTC 2017

Modified Files:
src/common/lib/libc/cdb: cdbr.c

Log Message:
mark parameter as unused.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/common/lib/libc/cdb/cdbr.c

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



CVS commit: src/regress/sys/kern/unfdpass

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 22:37:44 UTC 2017

Modified Files:
src/regress/sys/kern/unfdpass: unfdpass.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/regress/sys/kern/unfdpass/unfdpass.c

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

Modified files:

Index: src/regress/sys/kern/unfdpass/unfdpass.c
diff -u src/regress/sys/kern/unfdpass/unfdpass.c:1.10 src/regress/sys/kern/unfdpass/unfdpass.c:1.11
--- src/regress/sys/kern/unfdpass/unfdpass.c:1.10	Mon Apr 28 16:23:07 2008
+++ src/regress/sys/kern/unfdpass/unfdpass.c	Tue Jan 10 17:37:44 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: unfdpass.c,v 1.10 2008/04/28 20:23:07 martin Exp $	*/
+/*	$NetBSD: unfdpass.c,v 1.11 2017/01/10 22:37:44 christos Exp $	*/
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -40,6 +40,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 #include 



CVS commit: src/regress/sys/kern/unfdpass

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 22:37:44 UTC 2017

Modified Files:
src/regress/sys/kern/unfdpass: unfdpass.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/regress/sys/kern/unfdpass/unfdpass.c

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



CVS commit: src/tests

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 22:36:29 UTC 2017

Modified Files:
src/tests/fs/fifofs: t_fifo.c
src/tests/lib/libc/gen/posix_spawn: t_fileactions.c
src/tests/lib/libc/sys: t_access.c t_chroot.c t_mincore.c t_mmap.c
src/tests/rump/rumpkern: t_lwproc.c

Log Message:
more tests needing 


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/fs/fifofs/t_fifo.c
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libc/gen/posix_spawn/t_fileactions.c
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/sys/t_access.c \
src/tests/lib/libc/sys/t_chroot.c
cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libc/sys/t_mincore.c
cvs rdiff -u -r1.9 -r1.10 src/tests/lib/libc/sys/t_mmap.c
cvs rdiff -u -r1.7 -r1.8 src/tests/rump/rumpkern/t_lwproc.c

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

Modified files:

Index: src/tests/fs/fifofs/t_fifo.c
diff -u src/tests/fs/fifofs/t_fifo.c:1.1 src/tests/fs/fifofs/t_fifo.c:1.2
--- src/tests/fs/fifofs/t_fifo.c:1.1	Tue Dec 20 19:17:07 2011
+++ src/tests/fs/fifofs/t_fifo.c	Tue Jan 10 17:36:29 2017
@@ -1,9 +1,10 @@
 /* Test case written by Bharat Joshi */
 #include 
-__RCSID("$NetBSD: t_fifo.c,v 1.1 2011/12/21 00:17:07 christos Exp $");
+__RCSID("$NetBSD: t_fifo.c,v 1.2 2017/01/10 22:36:29 christos Exp $");
 
 #include 
 #include 
+#include 
 
 #include 
 #include 

Index: src/tests/lib/libc/gen/posix_spawn/t_fileactions.c
diff -u src/tests/lib/libc/gen/posix_spawn/t_fileactions.c:1.5 src/tests/lib/libc/gen/posix_spawn/t_fileactions.c:1.6
--- src/tests/lib/libc/gen/posix_spawn/t_fileactions.c:1.5	Mon Apr  9 15:42:07 2012
+++ src/tests/lib/libc/gen/posix_spawn/t_fileactions.c	Tue Jan 10 17:36:29 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: t_fileactions.c,v 1.5 2012/04/09 19:42:07 martin Exp $ */
+/* $NetBSD: t_fileactions.c,v 1.6 2017/01/10 22:36:29 christos Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -32,6 +32,10 @@
 
 
 #include 
+
+#include 
+#include 
+
 #include 
 #include 
 #include 
@@ -39,7 +43,6 @@
 #include 
 #include 
 #include 
-#include 
 
 
 ATF_TC(t_spawn_openmode);

Index: src/tests/lib/libc/sys/t_access.c
diff -u src/tests/lib/libc/sys/t_access.c:1.1 src/tests/lib/libc/sys/t_access.c:1.2
--- src/tests/lib/libc/sys/t_access.c:1.1	Thu Jul  7 02:57:53 2011
+++ src/tests/lib/libc/sys/t_access.c	Tue Jan 10 17:36:29 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: t_access.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */
+/* $NetBSD: t_access.c,v 1.2 2017/01/10 22:36:29 christos Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,11 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include 
-__RCSID("$NetBSD: t_access.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $");
+__RCSID("$NetBSD: t_access.c,v 1.2 2017/01/10 22:36:29 christos Exp $");
+
+#include 
+
+#include 
 
 #include 
 #include 
@@ -38,8 +42,6 @@ __RCSID("$NetBSD: t_access.c,v 1.1 2011/
 #include 
 #include 
 
-#include 
-
 static const char path[] = "access";
 static const int mode[4] = { R_OK, W_OK, X_OK, F_OK };
 
Index: src/tests/lib/libc/sys/t_chroot.c
diff -u src/tests/lib/libc/sys/t_chroot.c:1.1 src/tests/lib/libc/sys/t_chroot.c:1.2
--- src/tests/lib/libc/sys/t_chroot.c:1.1	Thu Jul  7 02:57:53 2011
+++ src/tests/lib/libc/sys/t_chroot.c	Tue Jan 10 17:36:29 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: t_chroot.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $ */
+/* $NetBSD: t_chroot.c,v 1.2 2017/01/10 22:36:29 christos Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,9 +29,10 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include 
-__RCSID("$NetBSD: t_chroot.c,v 1.1 2011/07/07 06:57:53 jruoho Exp $");
+__RCSID("$NetBSD: t_chroot.c,v 1.2 2017/01/10 22:36:29 christos Exp $");
 
 #include 
+#include 
 
 #include 
 #include 

Index: src/tests/lib/libc/sys/t_mincore.c
diff -u src/tests/lib/libc/sys/t_mincore.c:1.8 src/tests/lib/libc/sys/t_mincore.c:1.9
--- src/tests/lib/libc/sys/t_mincore.c:1.8	Fri Jun  8 03:18:58 2012
+++ src/tests/lib/libc/sys/t_mincore.c	Tue Jan 10 17:36:29 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mincore.c,v 1.8 2012/06/08 07:18:58 martin Exp $ */
+/* $NetBSD: t_mincore.c,v 1.9 2017/01/10 22:36:29 christos Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -59,9 +59,10 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include 
-__RCSID("$NetBSD: t_mincore.c,v 1.8 2012/06/08 07:18:58 martin Exp $");
+__RCSID("$NetBSD: t_mincore.c,v 1.9 2017/01/10 22:36:29 christos Exp $");
 
 #include 
+#include 
 #include 
 
 #include 

Index: src/tests/lib/libc/sys/t_mmap.c
diff -u src/tests/lib/libc/sys/t_mmap.c:1.9 src/tests/lib/libc/sys/t_mmap.c:1.10
--- src/tests/lib/libc/sys/t_mmap.c:1.9	Sat Feb 28 08:57:08 2015
+++ src/tests/lib/libc/sys/t_mmap.c	Tue Jan 10 17:36:29 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mmap.c,v 1.9 2015/02/28 13:57:08 martin Exp $ */
+/* $NetBSD: t_mmap.c,v 1.10 2017/01/10 22:36:29 christos Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD 

CVS commit: src/tests

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 22:36:29 UTC 2017

Modified Files:
src/tests/fs/fifofs: t_fifo.c
src/tests/lib/libc/gen/posix_spawn: t_fileactions.c
src/tests/lib/libc/sys: t_access.c t_chroot.c t_mincore.c t_mmap.c
src/tests/rump/rumpkern: t_lwproc.c

Log Message:
more tests needing 


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/fs/fifofs/t_fifo.c
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libc/gen/posix_spawn/t_fileactions.c
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/sys/t_access.c \
src/tests/lib/libc/sys/t_chroot.c
cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libc/sys/t_mincore.c
cvs rdiff -u -r1.9 -r1.10 src/tests/lib/libc/sys/t_mmap.c
cvs rdiff -u -r1.7 -r1.8 src/tests/rump/rumpkern/t_lwproc.c

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



CVS commit: src/tests/lib/libc

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 22:24:29 UTC 2017

Modified Files:
src/tests/lib/libc: t_cdb.c

Log Message:
need 


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

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

Modified files:

Index: src/tests/lib/libc/t_cdb.c
diff -u src/tests/lib/libc/t_cdb.c:1.1 src/tests/lib/libc/t_cdb.c:1.2
--- src/tests/lib/libc/t_cdb.c:1.1	Wed Sep 26 20:38:57 2012
+++ src/tests/lib/libc/t_cdb.c	Tue Jan 10 17:24:29 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_cdb.c,v 1.1 2012/09/27 00:38:57 joerg Exp $	*/
+/*	$NetBSD: t_cdb.c,v 1.2 2017/01/10 22:24:29 christos Exp $	*/
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -32,9 +32,12 @@
  */
 
 #include 
-__RCSID("$NetBSD: t_cdb.c,v 1.1 2012/09/27 00:38:57 joerg Exp $");
+__RCSID("$NetBSD: t_cdb.c,v 1.2 2017/01/10 22:24:29 christos Exp $");
 
 #include 
+
+#include 
+
 #include 
 #include 
 #include 



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

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 22:25:01 UTC 2017

Modified Files:
src/tests/lib/libc/c063: t_o_search.c

Log Message:
need 


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

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

Modified files:

Index: src/tests/lib/libc/c063/t_o_search.c
diff -u src/tests/lib/libc/c063/t_o_search.c:1.4 src/tests/lib/libc/c063/t_o_search.c:1.5
--- src/tests/lib/libc/c063/t_o_search.c:1.4	Sun Mar 17 00:46:06 2013
+++ src/tests/lib/libc/c063/t_o_search.c	Tue Jan 10 17:25:01 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_o_search.c,v 1.4 2013/03/17 04:46:06 jmmv Exp $ */
+/*	$NetBSD: t_o_search.c,v 1.5 2017/01/10 22:25:01 christos Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -29,9 +29,13 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include 
-__RCSID("$NetBSD: t_o_search.c,v 1.4 2013/03/17 04:46:06 jmmv Exp $");
+__RCSID("$NetBSD: t_o_search.c,v 1.5 2017/01/10 22:25:01 christos Exp $");
 
 #include 
+
+#include 
+#include 
+
 #include 
 #include 
 #include 
@@ -40,7 +44,6 @@ __RCSID("$NetBSD: t_o_search.c,v 1.4 201
 #include 
 #include 
 #include 
-#include 
 
 /*
  * dholland 20130112: disable tests that require O_SEARCH semantics



CVS commit: src/tests/lib/libc

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 22:24:29 UTC 2017

Modified Files:
src/tests/lib/libc: t_cdb.c

Log Message:
need 


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

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



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

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 22:25:01 UTC 2017

Modified Files:
src/tests/lib/libc/c063: t_o_search.c

Log Message:
need 


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

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



CVS commit: src/tests/kernel

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 22:10:22 UTC 2017

Modified Files:
src/tests/kernel: t_mqueue.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/kernel/t_mqueue.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/kernel/t_mqueue.c
diff -u src/tests/kernel/t_mqueue.c:1.4 src/tests/kernel/t_mqueue.c:1.5
--- src/tests/kernel/t_mqueue.c:1.4	Sun Mar  2 14:56:48 2014
+++ src/tests/kernel/t_mqueue.c	Tue Jan 10 17:10:22 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_mqueue.c,v 1.4 2014/03/02 19:56:48 jmmv Exp $ */
+/*	$NetBSD: t_mqueue.c,v 1.5 2017/01/10 22:10:22 christos Exp $ */
 
 /*
  * Test for POSIX message queue priority handling.
@@ -7,6 +7,7 @@
  */
 
 #include 
+#include 
 
 #include 
 #include 



CVS commit: src/tests/kernel

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 22:10:22 UTC 2017

Modified Files:
src/tests/kernel: t_mqueue.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/kernel/t_mqueue.c

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



CVS commit: src/sys/kern

2017-01-10 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Tue Jan 10 22:08:14 UTC 2017

Modified Files:
src/sys/kern: kern_history.c

Log Message:
Use membar_{producer,consumer}() to ensure proper access to the "ready"
flag.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/kern/kern_history.c

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



CVS commit: src/sys/kern

2017-01-10 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Tue Jan 10 22:08:14 UTC 2017

Modified Files:
src/sys/kern: kern_history.c

Log Message:
Use membar_{producer,consumer}() to ensure proper access to the "ready"
flag.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/kern/kern_history.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/kern/kern_history.c
diff -u src/sys/kern/kern_history.c:1.13 src/sys/kern/kern_history.c:1.14
--- src/sys/kern/kern_history.c:1.13	Tue Jan 10 00:50:57 2017
+++ src/sys/kern/kern_history.c	Tue Jan 10 22:08:14 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_history.c,v 1.13 2017/01/10 00:50:57 pgoyette Exp $	 */
+/*	$NetBSD: kern_history.c,v 1.14 2017/01/10 22:08:14 pgoyette Exp $	 */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -33,7 +33,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: kern_history.c,v 1.13 2017/01/10 00:50:57 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_history.c,v 1.14 2017/01/10 22:08:14 pgoyette Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kernhist.h"
@@ -43,6 +43,7 @@ __KERNEL_RCSID(0, "$NetBSD: kern_history
 #include "opt_biohist.h"
 #include "opt_sysctl.h"
 
+#include 
 #include 
 #include 
 #include 
@@ -289,6 +290,7 @@ sysctl_kernhist_new(struct kern_history 
 	struct kern_history *h;
 	const struct sysctlnode *rnode = NULL;
 
+	membar_consumer();
 	if (kernhist_sysctl_ready == 0)
 		return;
 
@@ -329,6 +331,7 @@ sysctl_kernhist_init(void)
 	sysctl_hist_node = rnode->sysctl_num;
 
 	kernhist_sysctl_ready = 1;
+	membar_producer();
 
 	sysctl_kernhist_new(NULL);
 }



CVS commit: src/lib/libcurses

2017-01-10 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Tue Jan 10 21:56:50 UTC 2017

Modified Files:
src/lib/libcurses: attributes.c

Log Message:
Use the terminal of the SCREEN of the WINDOW rather than cur_term
for window attribute functions.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/lib/libcurses/attributes.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/libcurses/attributes.c
diff -u src/lib/libcurses/attributes.c:1.22 src/lib/libcurses/attributes.c:1.23
--- src/lib/libcurses/attributes.c:1.22	Fri Jan  6 13:53:18 2017
+++ src/lib/libcurses/attributes.c	Tue Jan 10 21:56:50 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: attributes.c,v 1.22 2017/01/06 13:53:18 roy Exp $	*/
+/*	$NetBSD: attributes.c,v 1.23 2017/01/10 21:56:50 roy Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: attributes.c,v 1.22 2017/01/06 13:53:18 roy Exp $");
+__RCSID("$NetBSD: attributes.c,v 1.23 2017/01/10 21:56:50 roy Exp $");
 #endif/* not lint */
 
 #include "curses.h"
@@ -159,41 +159,45 @@ wattr_get(WINDOW *win, attr_t *attr, sho
 int
 wattr_on(WINDOW *win, attr_t attr, void *opt)
 {
+	const TERMINAL *t = win->screen->term;
+
 #ifdef DEBUG
 	__CTRACE(__CTRACE_ATTR, "wattr_on: win %p, attr %08x\n", win, attr);
 #endif
 	/* If can enter modes, set the relevent attribute bits. */
-	if (exit_attribute_mode != NULL) {
-		if (attr & __BLINK && enter_blink_mode != NULL)
+	if (t_exit_attribute_mode(t) != NULL) {
+		if (attr & __BLINK && t_enter_blink_mode(t) != NULL)
 			win->wattr |= __BLINK;
-		if (attr & __BOLD && enter_bold_mode != NULL)
+		if (attr & __BOLD && t_enter_bold_mode(t) != NULL)
 			win->wattr |= __BOLD;
-		if (attr & __DIM && enter_dim_mode != NULL)
+		if (attr & __DIM && t_enter_dim_mode(t) != NULL)
 			win->wattr |= __DIM;
-		if (attr & __BLANK && enter_secure_mode != NULL)
+		if (attr & __BLANK && t_enter_secure_mode(t) != NULL)
 			win->wattr |= __BLANK;
-		if (attr & __PROTECT && enter_protected_mode != NULL)
+		if (attr & __PROTECT && t_enter_protected_mode(t) != NULL)
 			win->wattr |= __PROTECT;
-		if (attr & __REVERSE && enter_reverse_mode != NULL)
+		if (attr & __REVERSE && t_enter_reverse_mode(t) != NULL)
 			win->wattr |= __REVERSE;
 #ifdef HAVE_WCHAR
-		if (attr & WA_LOW && enter_low_hl_mode != NULL)
+		if (attr & WA_LOW && t_enter_low_hl_mode(t) != NULL)
 			win->wattr |= WA_LOW;
-		if (attr & WA_TOP && enter_top_hl_mode != NULL)
+		if (attr & WA_TOP && t_enter_top_hl_mode(t) != NULL)
 			win->wattr |= WA_TOP;
-		if (attr & WA_LEFT && enter_left_hl_mode != NULL)
+		if (attr & WA_LEFT && t_enter_left_hl_mode(t) != NULL)
 			win->wattr |= WA_LEFT;
-		if (attr & WA_RIGHT && enter_right_hl_mode != NULL)
+		if (attr & WA_RIGHT && t_enter_right_hl_mode(t) != NULL)
 			win->wattr |= WA_RIGHT;
-		if (attr & WA_HORIZONTAL && enter_horizontal_hl_mode != NULL)
+		if (attr & WA_HORIZONTAL && t_enter_horizontal_hl_mode(t) != NULL)
 			win->wattr |= WA_HORIZONTAL;
-		if (attr & WA_VERTICAL && enter_vertical_hl_mode != NULL)
+		if (attr & WA_VERTICAL && t_enter_vertical_hl_mode(t) != NULL)
 			win->wattr |= WA_VERTICAL;
 #endif /* HAVE_WCHAR */
 	}
-	if (attr & __STANDOUT && enter_standout_mode != NULL && exit_standout_mode != NULL)
+	if (attr & __STANDOUT && t_enter_standout_mode(t) != NULL &&
+	t_exit_standout_mode(t) != NULL)
 		wstandout(win);
-	if (attr & __UNDERSCORE && enter_underline_mode != NULL && exit_underline_mode != NULL)
+	if (attr & __UNDERSCORE && t_enter_underline_mode(t) != NULL &&
+	t_exit_underline_mode(t) != NULL)
 		wunderscore(win);
 	if ((attr_t) attr & __COLOR)
 		__wcolor_set(win, (attr_t) attr);
@@ -211,11 +215,13 @@ wattr_on(WINDOW *win, attr_t attr, void 
 int
 wattr_off(WINDOW *win, attr_t attr, void *opt)
 {
+	const TERMINAL *t = win->screen->term;
+
 #ifdef DEBUG
 	__CTRACE(__CTRACE_ATTR, "wattr_off: win %p, attr %08x\n", win, attr);
 #endif
 	/* If can do exit modes, unset the relevent attribute bits. */
-	if (exit_attribute_mode != NULL) {
+	if (t_exit_attribute_mode(t) != NULL) {
 		if (attr & __BLINK)
 			win->wattr &= ~__BLINK;
 		if (attr & __BOLD)
@@ -441,9 +447,11 @@ term_attrs(void)
 void
 __wcolor_set(WINDOW *win, attr_t attr)
 {
+	const TERMINAL *t = win->screen->term;
+
 	/* If another color pair is set, turn that off first. */
 	win->wattr &= ~__COLOR;
 	/* If can do color video, set the color pair bits. */
-	if (max_colors != 0 && attr & __COLOR)
+	if (t_max_colors(t) != 0 && attr & __COLOR)
 		win->wattr |= attr & __COLOR;
 }



CVS commit: src/lib/libcurses

2017-01-10 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Tue Jan 10 21:56:50 UTC 2017

Modified Files:
src/lib/libcurses: attributes.c

Log Message:
Use the terminal of the SCREEN of the WINDOW rather than cur_term
for window attribute functions.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/lib/libcurses/attributes.c

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



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

2017-01-10 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Tue Jan 10 21:53:06 UTC 2017

Modified Files:
xsrc/external/mit/ctwm/dist: session.c

Log Message:
need  for umask


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/ctwm/dist/session.c

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



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

2017-01-10 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Tue Jan 10 21:53:06 UTC 2017

Modified Files:
xsrc/external/mit/ctwm/dist: session.c

Log Message:
need  for umask


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/ctwm/dist/session.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/ctwm/dist/session.c
diff -u xsrc/external/mit/ctwm/dist/session.c:1.3 xsrc/external/mit/ctwm/dist/session.c:1.4
--- xsrc/external/mit/ctwm/dist/session.c:1.3	Sun Apr 24 14:27:03 2016
+++ xsrc/external/mit/ctwm/dist/session.c	Tue Jan 10 16:53:06 2017
@@ -120,6 +120,7 @@
 #endif
 #endif
 #endif /* PATH_MAX */
+#include 
 
 #include 
 #include 



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

2017-01-10 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Tue Jan 10 21:50:59 UTC 2017

Modified Files:
xsrc/external/mit/xman/dist: search.c

Log Message:
need 


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

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



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

2017-01-10 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Tue Jan 10 21:50:59 UTC 2017

Modified Files:
xsrc/external/mit/xman/dist: search.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 xsrc/external/mit/xman/dist/search.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/xman/dist/search.c
diff -u xsrc/external/mit/xman/dist/search.c:1.2 xsrc/external/mit/xman/dist/search.c:1.3
--- xsrc/external/mit/xman/dist/search.c:1.2	Sun Apr 24 13:37:02 2016
+++ xsrc/external/mit/xman/dist/search.c	Tue Jan 10 16:50:59 2017
@@ -28,9 +28,14 @@ from the X Consortium.
 
 */
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include "globals.h"
 #include "vendor.h"
+#include /* sys/types.h and unistd.h included in here */
+#include 
 
 /* Map  and control-M to goto beginning of file. */
 



CVS commit: src/usr.bin/vndcompress

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:15:54 UTC 2017

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

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/usr.bin/vndcompress/vndcompress.c

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

Modified files:

Index: src/usr.bin/vndcompress/vndcompress.c
diff -u src/usr.bin/vndcompress/vndcompress.c:1.25 src/usr.bin/vndcompress/vndcompress.c:1.26
--- src/usr.bin/vndcompress/vndcompress.c:1.25	Mon Nov 17 22:48:17 2014
+++ src/usr.bin/vndcompress/vndcompress.c	Tue Jan 10 16:15:54 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: vndcompress.c,v 1.25 2014/11/18 03:48:17 riastradh Exp $	*/
+/*	$NetBSD: vndcompress.c,v 1.26 2017/01/10 21:15:54 christos Exp $	*/
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,9 +30,10 @@
  */
 
 #include 
-__RCSID("$NetBSD: vndcompress.c,v 1.25 2014/11/18 03:48:17 riastradh Exp $");
+__RCSID("$NetBSD: vndcompress.c,v 1.26 2017/01/10 21:15:54 christos Exp $");
 
 #include 
+#include 
 
 #include 
 #include 



CVS commit: src/usr.bin/rfcomm_sppd

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:12:03 UTC 2017

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

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/usr.bin/rfcomm_sppd/rfcomm_sppd.c

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

Modified files:

Index: src/usr.bin/rfcomm_sppd/rfcomm_sppd.c
diff -u src/usr.bin/rfcomm_sppd/rfcomm_sppd.c:1.16 src/usr.bin/rfcomm_sppd/rfcomm_sppd.c:1.17
--- src/usr.bin/rfcomm_sppd/rfcomm_sppd.c:1.16	Mon Dec  9 04:35:17 2013
+++ src/usr.bin/rfcomm_sppd/rfcomm_sppd.c	Tue Jan 10 16:12:03 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: rfcomm_sppd.c,v 1.16 2013/12/09 09:35:17 wiz Exp $	*/
+/*	$NetBSD: rfcomm_sppd.c,v 1.17 2017/01/10 21:12:03 christos Exp $	*/
 
 /*-
  * Copyright (c) 2006 Itronix Inc.
@@ -62,9 +62,10 @@ __COPYRIGHT("@(#) Copyright (c) 2009 The
   Copyright (c) 2006 Itronix, Inc.\
   Copyright (c) 2003 Maksim Yevmenkin m_evmen...@yahoo.com.\
   All rights reserved.");
-__RCSID("$NetBSD: rfcomm_sppd.c,v 1.16 2013/12/09 09:35:17 wiz Exp $");
+__RCSID("$NetBSD: rfcomm_sppd.c,v 1.17 2017/01/10 21:12:03 christos Exp $");
 
 #include 
+#include 
 
 #include 
 #include 



CVS commit: src/usr.bin/vndcompress

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:15:54 UTC 2017

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

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/usr.bin/vndcompress/vndcompress.c

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



CVS commit: src/usr.bin/systat

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:14:51 UTC 2017

Modified Files:
src/usr.bin/systat: ps.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/usr.bin/systat/ps.c

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

Modified files:

Index: src/usr.bin/systat/ps.c
diff -u src/usr.bin/systat/ps.c:1.36 src/usr.bin/systat/ps.c:1.37
--- src/usr.bin/systat/ps.c:1.36	Wed Feb 19 15:42:14 2014
+++ src/usr.bin/systat/ps.c	Tue Jan 10 16:14:51 2017
@@ -1,4 +1,4 @@
-/*  $NetBSD: ps.c,v 1.36 2014/02/19 20:42:14 dsl Exp $  */
+/*  $NetBSD: ps.c,v 1.37 2017/01/10 21:14:51 christos Exp $  */
 
 /*-
  * Copyright (c) 1999
@@ -45,12 +45,13 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: ps.c,v 1.36 2014/02/19 20:42:14 dsl Exp $");
+__RCSID("$NetBSD: ps.c,v 1.37 2017/01/10 21:14:51 christos Exp $");
 #endif /* not lint */
 
 #include 
 #include 
 #include 
+#include 
 
 #include 
 #include 



CVS commit: src/usr.bin/systat

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:14:51 UTC 2017

Modified Files:
src/usr.bin/systat: ps.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/usr.bin/systat/ps.c

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



CVS commit: src/usr.bin/split

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:14:13 UTC 2017

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

Log Message:
needs 


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

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



CVS commit: src/usr.bin/sort

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:13:45 UTC 2017

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

Log Message:
refactor includes, add 


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/usr.bin/sort/sort.c

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



CVS commit: src/usr.bin/split

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:14:13 UTC 2017

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

Log Message:
needs 


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

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

Modified files:

Index: src/usr.bin/split/split.c
diff -u src/usr.bin/split/split.c:1.26 src/usr.bin/split/split.c:1.27
--- src/usr.bin/split/split.c:1.26	Fri Sep 16 11:39:29 2011
+++ src/usr.bin/split/split.c	Tue Jan 10 16:14:13 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: split.c,v 1.26 2011/09/16 15:39:29 joerg Exp $	*/
+/*	$NetBSD: split.c,v 1.27 2017/01/10 21:14:13 christos Exp $	*/
 
 /*
  * Copyright (c) 1987, 1993, 1994
@@ -39,10 +39,11 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 19
 #if 0
 static char sccsid[] = "@(#)split.c	8.3 (Berkeley) 4/25/94";
 #endif
-__RCSID("$NetBSD: split.c,v 1.26 2011/09/16 15:39:29 joerg Exp $");
+__RCSID("$NetBSD: split.c,v 1.27 2017/01/10 21:14:13 christos Exp $");
 #endif /* not lint */
 
 #include 
+#include 
 
 #include 
 #include 



CVS commit: src/usr.bin/tic

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:15:23 UTC 2017

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

Log Message:
need  for DEFFILEMODE etc.


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

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

Modified files:

Index: src/usr.bin/tic/tic.c
diff -u src/usr.bin/tic/tic.c:1.26 src/usr.bin/tic/tic.c:1.27
--- src/usr.bin/tic/tic.c:1.26	Thu Nov 24 12:12:23 2016
+++ src/usr.bin/tic/tic.c	Tue Jan 10 16:15:23 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: tic.c,v 1.26 2016/11/24 17:12:23 christos Exp $ */
+/* $NetBSD: tic.c,v 1.27 2017/01/10 21:15:23 christos Exp $ */
 
 /*
  * Copyright (c) 2009, 2010 The NetBSD Foundation, Inc.
@@ -32,10 +32,11 @@
 #endif
 
 #include 
-__RCSID("$NetBSD: tic.c,v 1.26 2016/11/24 17:12:23 christos Exp $");
+__RCSID("$NetBSD: tic.c,v 1.27 2017/01/10 21:15:23 christos Exp $");
 
 #include 
 #include 
+#include 
 
 #if !HAVE_NBTOOL_CONFIG_H || HAVE_SYS_ENDIAN_H
 #include 



CVS commit: src/usr.bin/sort

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:13:45 UTC 2017

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

Log Message:
refactor includes, add 


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/usr.bin/sort/sort.c

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

Modified files:

Index: src/usr.bin/sort/sort.c
diff -u src/usr.bin/sort/sort.c:1.63 src/usr.bin/sort/sort.c:1.64
--- src/usr.bin/sort/sort.c:1.63	Wed Jun  1 04:24:03 2016
+++ src/usr.bin/sort/sort.c	Tue Jan 10 16:13:45 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: sort.c,v 1.63 2016/06/01 08:24:03 wiz Exp $	*/
+/*	$NetBSD: sort.c,v 1.64 2017/01/10 21:13:45 christos Exp $	*/
 
 /*-
  * Copyright (c) 2000-2003 The NetBSD Foundation, Inc.
@@ -60,34 +60,34 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  */
-
-/* Sort sorts a file using an optional user-defined key.
- * Sort uses radix sort for internal sorting, and allows
- * a choice of merge sort and radix sort for external sorting.
- */
-
-#include 
-#include "sort.h"
-#include "fsort.h"
-#include "pathnames.h"
-
+#include 
 #ifndef lint
 __COPYRIGHT("@(#) Copyright (c) 1993\
  The Regents of the University of California.  All rights reserved.");
 #endif /* not lint */
+__RCSID("$NetBSD: sort.c,v 1.64 2017/01/10 21:13:45 christos Exp $");
 
-__RCSID("$NetBSD: sort.c,v 1.63 2016/06/01 08:24:03 wiz Exp $");
+/* Sort sorts a file using an optional user-defined key.
+ * Sort uses radix sort for internal sorting, and allows
+ * a choice of merge sort and radix sort for external sorting.
+ */
 
 #include 
 #include 
+#include 
 #include 
 
+#include 
 #include 
 #include 
 #include 
 #include 
 #include 
-#include 
+#include 
+
+#include "sort.h"
+#include "fsort.h"
+#include "pathnames.h"
 
 int REC_D = '\n';
 u_char d_mask[NBINS];		/* flags for rec_d, field_d,  */



CVS commit: src/usr.bin/tic

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:15:23 UTC 2017

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

Log Message:
need  for DEFFILEMODE etc.


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

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



CVS commit: src/usr.bin/rfcomm_sppd

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:12:03 UTC 2017

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

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/usr.bin/rfcomm_sppd/rfcomm_sppd.c

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



CVS commit: src/usr.sbin/syslogd

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:05:42 UTC 2017

Modified Files:
src/usr.sbin/syslogd: tls.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.sbin/syslogd/tls.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/syslogd/tls.c
diff -u src/usr.sbin/syslogd/tls.c:1.12 src/usr.sbin/syslogd/tls.c:1.13
--- src/usr.sbin/syslogd/tls.c:1.12	Wed Feb  3 00:34:21 2016
+++ src/usr.sbin/syslogd/tls.c	Tue Jan 10 16:05:42 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: tls.c,v 1.12 2016/02/03 05:34:21 christos Exp $	*/
+/*	$NetBSD: tls.c,v 1.13 2017/01/10 21:05:42 christos Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -45,9 +45,10 @@
  */
 
 #include 
-__RCSID("$NetBSD: tls.c,v 1.12 2016/02/03 05:34:21 christos Exp $");
+__RCSID("$NetBSD: tls.c,v 1.13 2017/01/10 21:05:42 christos Exp $");
 
 #ifndef DISABLE_TLS
+#include 
 #include "syslogd.h"
 #include "tls.h"
 #include 



CVS commit: src/usr.bin/ldd

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:11:25 UTC 2017

Modified Files:
src/usr.bin/ldd: ldd_elfxx.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/ldd/ldd_elfxx.c

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



CVS commit: src/libexec/ld.elf_so

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:08:48 UTC 2017

Modified Files:
src/libexec/ld.elf_so: load.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/libexec/ld.elf_so/load.c

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

Modified files:

Index: src/libexec/ld.elf_so/load.c
diff -u src/libexec/ld.elf_so/load.c:1.47 src/libexec/ld.elf_so/load.c:1.48
--- src/libexec/ld.elf_so/load.c:1.47	Wed Nov 27 13:01:33 2013
+++ src/libexec/ld.elf_so/load.c	Tue Jan 10 16:08:48 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: load.c,v 1.47 2013/11/27 18:01:33 christos Exp $	 */
+/*	$NetBSD: load.c,v 1.48 2017/01/10 21:08:48 christos Exp $	 */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -40,9 +40,15 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: load.c,v 1.47 2013/11/27 18:01:33 christos Exp $");
+__RCSID("$NetBSD: load.c,v 1.48 2017/01/10 21:08:48 christos Exp $");
 #endif /* not lint */
 
+#include 
+#include 
+#include 
+#include 
+#include 
+
 #include 
 #include 
 #include 
@@ -51,10 +57,6 @@ __RCSID("$NetBSD: load.c,v 1.47 2013/11/
 #include 
 #include 
 #include 
-#include 
-#include 
-#include 
-#include 
 #include 
 
 #include "debug.h"



CVS commit: src/usr.sbin/ypserv/common

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:06:17 UTC 2017

Modified Files:
src/usr.sbin/ypserv/common: ypdb.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/usr.sbin/ypserv/common/ypdb.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/ypserv/common/ypdb.c
diff -u src/usr.sbin/ypserv/common/ypdb.c:1.11 src/usr.sbin/ypserv/common/ypdb.c:1.12
--- src/usr.sbin/ypserv/common/ypdb.c:1.11	Thu Feb 28 22:00:47 2008
+++ src/usr.sbin/ypserv/common/ypdb.c	Tue Jan 10 16:06:17 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: ypdb.c,v 1.11 2008/02/29 03:00:47 lukem Exp $	*/
+/*	$NetBSD: ypdb.c,v 1.12 2017/01/10 21:06:17 christos Exp $	*/
 
 /*
  * Copyright (c) 1990, 1993
@@ -38,11 +38,12 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: ypdb.c,v 1.11 2008/02/29 03:00:47 lukem Exp $");
+__RCSID("$NetBSD: ypdb.c,v 1.12 2017/01/10 21:06:17 christos Exp $");
 #endif
 
 #include 
 #include 
+#include 
 
 #include 
 #include 



CVS commit: src/usr.sbin/rtadvd

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:07:18 UTC 2017

Modified Files:
src/usr.sbin/rtadvd: rtadvd_hostops.c

Log Message:
need  for clock_gettime


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/rtadvd/rtadvd_hostops.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/rtadvd/rtadvd_hostops.c
diff -u src/usr.sbin/rtadvd/rtadvd_hostops.c:1.1 src/usr.sbin/rtadvd/rtadvd_hostops.c:1.2
--- src/usr.sbin/rtadvd/rtadvd_hostops.c:1.1	Wed Nov 11 02:49:59 2015
+++ src/usr.sbin/rtadvd/rtadvd_hostops.c	Tue Jan 10 16:07:17 2017
@@ -8,6 +8,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include "prog_ops.h"
 



CVS commit: src/usr.bin/ldd

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:11:25 UTC 2017

Modified Files:
src/usr.bin/ldd: ldd_elfxx.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/ldd/ldd_elfxx.c

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

Modified files:

Index: src/usr.bin/ldd/ldd_elfxx.c
diff -u src/usr.bin/ldd/ldd_elfxx.c:1.6 src/usr.bin/ldd/ldd_elfxx.c:1.7
--- src/usr.bin/ldd/ldd_elfxx.c:1.6	Sat Jul  7 20:53:44 2012
+++ src/usr.bin/ldd/ldd_elfxx.c	Tue Jan 10 16:11:25 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: ldd_elfxx.c,v 1.6 2012/07/08 00:53:44 matt Exp $	*/
+/*	$NetBSD: ldd_elfxx.c,v 1.7 2017/01/10 21:11:25 christos Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -62,12 +62,13 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: ldd_elfxx.c,v 1.6 2012/07/08 00:53:44 matt Exp $");
+__RCSID("$NetBSD: ldd_elfxx.c,v 1.7 2017/01/10 21:11:25 christos Exp $");
 #endif /* not lint */
 
 #include 
 #include 
 #include 
+#include 
 
 #include 
 #include 



CVS commit: src/usr.sbin/rtadvd

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:07:18 UTC 2017

Modified Files:
src/usr.sbin/rtadvd: rtadvd_hostops.c

Log Message:
need  for clock_gettime


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/rtadvd/rtadvd_hostops.c

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



CVS commit: src/libexec/getty

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:08:16 UTC 2017

Modified Files:
src/libexec/getty: main.c

Log Message:
need  for chmod


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/libexec/getty/main.c

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



CVS commit: src/libexec/getty

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:08:16 UTC 2017

Modified Files:
src/libexec/getty: main.c

Log Message:
need  for chmod


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/libexec/getty/main.c

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

Modified files:

Index: src/libexec/getty/main.c
diff -u src/libexec/getty/main.c:1.65 src/libexec/getty/main.c:1.66
--- src/libexec/getty/main.c:1.65	Wed Mar 16 20:21:04 2016
+++ src/libexec/getty/main.c	Tue Jan 10 16:08:15 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.65 2016/03/17 00:21:04 christos Exp $	*/
+/*	$NetBSD: main.c,v 1.66 2017/01/10 21:08:15 christos Exp $	*/
 
 /*-
  * Copyright (c) 1980, 1993
@@ -40,13 +40,14 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
 #if 0
 static char sccsid[] = "from: @(#)main.c	8.1 (Berkeley) 6/20/93";
 #else
-__RCSID("$NetBSD: main.c,v 1.65 2016/03/17 00:21:04 christos Exp $");
+__RCSID("$NetBSD: main.c,v 1.66 2017/01/10 21:08:15 christos Exp $");
 #endif
 #endif /* not lint */
 
 #include 
 #include 
 #include 
+#include 
 #include 
 
 #include 



CVS commit: src/libexec/ld.elf_so

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:08:48 UTC 2017

Modified Files:
src/libexec/ld.elf_so: load.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/libexec/ld.elf_so/load.c

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



CVS commit: src/usr.sbin/ypserv/common

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:06:17 UTC 2017

Modified Files:
src/usr.sbin/ypserv/common: ypdb.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/usr.sbin/ypserv/common/ypdb.c

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



CVS commit: src/usr.sbin/services_mkdb

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:04:58 UTC 2017

Modified Files:
src/usr.sbin/services_mkdb: output_db.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/services_mkdb/output_db.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/services_mkdb/output_db.c
diff -u src/usr.sbin/services_mkdb/output_db.c:1.1 src/usr.sbin/services_mkdb/output_db.c:1.2
--- src/usr.sbin/services_mkdb/output_db.c:1.1	Sat Apr 24 20:54:46 2010
+++ src/usr.sbin/services_mkdb/output_db.c	Tue Jan 10 16:04:58 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: output_db.c,v 1.1 2010/04/25 00:54:46 joerg Exp $	*/
+/*	$NetBSD: output_db.c,v 1.2 2017/01/10 21:04:58 christos Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,10 +31,11 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: output_db.c,v 1.1 2010/04/25 00:54:46 joerg Exp $");
+__RCSID("$NetBSD: output_db.c,v 1.2 2017/01/10 21:04:58 christos Exp $");
 #endif /* not lint */
 
 #include 
+#include 
 
 #include 
 #include 



CVS commit: src/usr.sbin/syslogd

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:05:42 UTC 2017

Modified Files:
src/usr.sbin/syslogd: tls.c

Log Message:
need 


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

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



CVS commit: src/usr.sbin/ldpd

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:02:38 UTC 2017

Modified Files:
src/usr.sbin/ldpd: conffile.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/usr.sbin/ldpd/conffile.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/ldpd/conffile.c
diff -u src/usr.sbin/ldpd/conffile.c:1.11 src/usr.sbin/ldpd/conffile.c:1.12
--- src/usr.sbin/ldpd/conffile.c:1.11	Tue Nov 19 11:42:16 2013
+++ src/usr.sbin/ldpd/conffile.c	Tue Jan 10 16:02:38 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: conffile.c,v 1.11 2013/11/19 16:42:16 christos Exp $ */
+/* $NetBSD: conffile.c,v 1.12 2017/01/10 21:02:38 christos Exp $ */
 
 /*
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -29,9 +29,12 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include 
+#include 
+
 #include 
 #include 
-#include 
+
 #include 
 #include 
 #include 



CVS commit: src/usr.sbin/mscdlabel

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:03:36 UTC 2017

Modified Files:
src/usr.sbin/mscdlabel: main.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/mscdlabel/main.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/mscdlabel/main.c
diff -u src/usr.sbin/mscdlabel/main.c:1.4 src/usr.sbin/mscdlabel/main.c:1.5
--- src/usr.sbin/mscdlabel/main.c:1.4	Wed May 24 20:42:23 2006
+++ src/usr.sbin/mscdlabel/main.c	Tue Jan 10 16:03:36 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.4 2006/05/25 00:42:23 christos Exp $ */
+/* $NetBSD: main.c,v 1.5 2017/01/10 21:03:36 christos Exp $ */
 
 /*
  * Copyright (c) 2002, 2005
@@ -33,14 +33,17 @@
  *  - support simulation of multisession CDs in a vnd(4) disk
  */
 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
 #include 
 #include 
 #include 
 #include 
-#include 
-#include 
-#include 
-#include 
 #include 
 #include 
 #include 



CVS commit: src/usr.sbin/mscdlabel

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:03:36 UTC 2017

Modified Files:
src/usr.sbin/mscdlabel: main.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/mscdlabel/main.c

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



CVS commit: src/usr.sbin/services_mkdb

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:04:06 UTC 2017

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

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.sbin/services_mkdb/services_mkdb.c

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



CVS commit: src/usr.sbin/services_mkdb

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:04:06 UTC 2017

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

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.sbin/services_mkdb/services_mkdb.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/services_mkdb/services_mkdb.c
diff -u src/usr.sbin/services_mkdb/services_mkdb.c:1.18 src/usr.sbin/services_mkdb/services_mkdb.c:1.19
--- src/usr.sbin/services_mkdb/services_mkdb.c:1.18	Wed Oct  6 21:28:50 2010
+++ src/usr.sbin/services_mkdb/services_mkdb.c	Tue Jan 10 16:04:06 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: services_mkdb.c,v 1.18 2010/10/07 01:28:50 christos Exp $	*/
+/*	$NetBSD: services_mkdb.c,v 1.19 2017/01/10 21:04:06 christos Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,10 +31,11 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: services_mkdb.c,v 1.18 2010/10/07 01:28:50 christos Exp $");
+__RCSID("$NetBSD: services_mkdb.c,v 1.19 2017/01/10 21:04:06 christos Exp $");
 #endif /* not lint */
 
 #include 
+#include 
 
 #include 
 #include 



CVS commit: src/usr.sbin/crash

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 20:57:26 UTC 2017

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

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/usr.sbin/crash/crash.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/crash/crash.c
diff -u src/usr.sbin/crash/crash.c:1.10 src/usr.sbin/crash/crash.c:1.11
--- src/usr.sbin/crash/crash.c:1.10	Tue Jun 16 19:48:20 2015
+++ src/usr.sbin/crash/crash.c	Tue Jan 10 15:57:26 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: crash.c,v 1.10 2015/06/16 23:48:20 christos Exp $	*/
+/*	$NetBSD: crash.c,v 1.11 2017/01/10 20:57:26 christos Exp $	*/
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -31,13 +31,14 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: crash.c,v 1.10 2015/06/16 23:48:20 christos Exp $");
+__RCSID("$NetBSD: crash.c,v 1.11 2017/01/10 20:57:26 christos Exp $");
 #endif /* not lint */
 
 #include 
 
 #include 
 #include 
+#include 
 #include 
 
 #include 



CVS commit: src/usr.sbin/ldpd

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 21:02:38 UTC 2017

Modified Files:
src/usr.sbin/ldpd: conffile.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/usr.sbin/ldpd/conffile.c

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



CVS commit: src/sbin/newfs_v7fs

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 20:53:09 UTC 2017

Modified Files:
src/sbin/newfs_v7fs: newfs_v7fs.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sbin/newfs_v7fs/newfs_v7fs.c

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



CVS commit: src/sbin/fsck_v7fs

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 20:54:10 UTC 2017

Modified Files:
src/sbin/fsck_v7fs: fsck_v7fs.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sbin/fsck_v7fs/fsck_v7fs.c

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

Modified files:

Index: src/sbin/fsck_v7fs/fsck_v7fs.c
diff -u src/sbin/fsck_v7fs/fsck_v7fs.c:1.1 src/sbin/fsck_v7fs/fsck_v7fs.c:1.2
--- src/sbin/fsck_v7fs/fsck_v7fs.c:1.1	Mon Jun 27 07:52:58 2011
+++ src/sbin/fsck_v7fs/fsck_v7fs.c	Tue Jan 10 15:54:10 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: fsck_v7fs.c,v 1.1 2011/06/27 11:52:58 uch Exp $ */
+/*	$NetBSD: fsck_v7fs.c,v 1.2 2017/01/10 20:54:10 christos Exp $ */
 
 /*-
  * Copyright (c) 2004, 2011 The NetBSD Foundation, Inc.
@@ -31,17 +31,20 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: fsck_v7fs.c,v 1.1 2011/06/27 11:52:58 uch Exp $");
+__RCSID("$NetBSD: fsck_v7fs.c,v 1.2 2017/01/10 20:54:10 christos Exp $");
 #endif /* not lint */
 
+#include 
+#include 
+#include 
+#include 
+
 #include 
 #include 
 #include 
 #include 
 #include 
 #include 
-#include 
-#include 
 
 #include 
 #include "v7fs_impl.h"



CVS commit: src/sbin/newfs_v7fs

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 20:53:09 UTC 2017

Modified Files:
src/sbin/newfs_v7fs: newfs_v7fs.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sbin/newfs_v7fs/newfs_v7fs.c

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

Modified files:

Index: src/sbin/newfs_v7fs/newfs_v7fs.c
diff -u src/sbin/newfs_v7fs/newfs_v7fs.c:1.4 src/sbin/newfs_v7fs/newfs_v7fs.c:1.5
--- src/sbin/newfs_v7fs/newfs_v7fs.c:1.4	Tue Jun 16 19:18:55 2015
+++ src/sbin/newfs_v7fs/newfs_v7fs.c	Tue Jan 10 15:53:09 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: newfs_v7fs.c,v 1.4 2015/06/16 23:18:55 christos Exp $ */
+/*	$NetBSD: newfs_v7fs.c,v 1.5 2017/01/10 20:53:09 christos Exp $ */
 
 /*-
  * Copyright (c) 2004, 2011 The NetBSD Foundation, Inc.
@@ -31,19 +31,21 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: newfs_v7fs.c,v 1.4 2015/06/16 23:18:55 christos Exp $");
+__RCSID("$NetBSD: newfs_v7fs.c,v 1.5 2017/01/10 20:53:09 christos Exp $");
 #endif /* not lint */
 
 #include 
 #include 
+#include 
+#include 
+#include 
+
 #include 
 #include 
 #include 
 #include 
 #include 
 #include 
-#include 
-#include 
 
 #include 
 #include "v7fs_impl.h"



CVS commit: src/usr.sbin/bthcid

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 20:56:41 UTC 2017

Modified Files:
src/usr.sbin/bthcid: client.c

Log Message:
need  for chmod(2)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/bthcid/client.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/bthcid/client.c
diff -u src/usr.sbin/bthcid/client.c:1.4 src/usr.sbin/bthcid/client.c:1.5
--- src/usr.sbin/bthcid/client.c:1.4	Fri Sep 29 16:06:11 2006
+++ src/usr.sbin/bthcid/client.c	Tue Jan 10 15:56:41 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: client.c,v 1.4 2006/09/29 20:06:11 plunky Exp $	*/
+/*	$NetBSD: client.c,v 1.5 2017/01/10 20:56:41 christos Exp $	*/
 
 /*-
  * Copyright (c) 2006 Itronix Inc.
@@ -30,11 +30,12 @@
  */
 
 #include 
-__RCSID("$NetBSD: client.c,v 1.4 2006/09/29 20:06:11 plunky Exp $");
+__RCSID("$NetBSD: client.c,v 1.5 2017/01/10 20:56:41 christos Exp $");
 
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 



CVS commit: src/sbin/fsck_v7fs

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 20:54:10 UTC 2017

Modified Files:
src/sbin/fsck_v7fs: fsck_v7fs.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sbin/fsck_v7fs/fsck_v7fs.c

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



CVS commit: src/sbin/veriexecctl

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 20:48:12 UTC 2017

Modified Files:
src/sbin/veriexecctl: veriexecctl.c

Log Message:
need  ... for stat()


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sbin/veriexecctl/veriexecctl.c

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



CVS commit: src/sbin/newfs_sysvbfs

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 20:49:20 UTC 2017

Modified Files:
src/sbin/newfs_sysvbfs: newfs_sysvbfs.c

Log Message:
fix includes, addr __RCSID


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sbin/newfs_sysvbfs/newfs_sysvbfs.c

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

Modified files:

Index: src/sbin/newfs_sysvbfs/newfs_sysvbfs.c
diff -u src/sbin/newfs_sysvbfs/newfs_sysvbfs.c:1.9 src/sbin/newfs_sysvbfs/newfs_sysvbfs.c:1.10
--- src/sbin/newfs_sysvbfs/newfs_sysvbfs.c:1.9	Sun Mar 23 01:10:56 2014
+++ src/sbin/newfs_sysvbfs/newfs_sysvbfs.c	Tue Jan 10 15:49:20 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: newfs_sysvbfs.c,v 1.9 2014/03/23 05:10:56 dholland Exp $	*/
+/*	$NetBSD: newfs_sysvbfs.c,v 1.10 2017/01/10 20:49:20 christos Exp $	*/
 
 /*-
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -28,20 +28,24 @@
  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
  */
+#include 
+__RCSID("$NetBSD: newfs_sysvbfs.c,v 1.10 2017/01/10 20:49:20 christos Exp $");
 
-#include 
 #include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
 #include 
+#include 
 #include 
 #include 
 #include 
-#include 
-#include 
 #include 
-#include 
-#include 
-#include 
-#include 
+#include 
 
 #include 
 



CVS commit: src/sbin/newfs_sysvbfs

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 20:49:20 UTC 2017

Modified Files:
src/sbin/newfs_sysvbfs: newfs_sysvbfs.c

Log Message:
fix includes, addr __RCSID


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sbin/newfs_sysvbfs/newfs_sysvbfs.c

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



CVS commit: src/sbin/veriexecctl

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 20:48:12 UTC 2017

Modified Files:
src/sbin/veriexecctl: veriexecctl.c

Log Message:
need  ... for stat()


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sbin/veriexecctl/veriexecctl.c

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

Modified files:

Index: src/sbin/veriexecctl/veriexecctl.c
diff -u src/sbin/veriexecctl/veriexecctl.c:1.39 src/sbin/veriexecctl/veriexecctl.c:1.40
--- src/sbin/veriexecctl/veriexecctl.c:1.39	Tue Jun 16 19:18:55 2015
+++ src/sbin/veriexecctl/veriexecctl.c	Tue Jan 10 15:48:12 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: veriexecctl.c,v 1.39 2015/06/16 23:18:55 christos Exp $	*/
+/*	$NetBSD: veriexecctl.c,v 1.40 2017/01/10 20:48:12 christos Exp $	*/
 
 /*-
  * Copyright 2005 Elad Efrat 
@@ -43,6 +43,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 



CVS commit: src/sbin/raidctl

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 20:47:05 UTC 2017

Modified Files:
src/sbin/raidctl: raidctl_hostops.c

Log Message:
need  for fstat()


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sbin/raidctl/raidctl_hostops.c

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



CVS commit: src/sbin/raidctl

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 20:47:05 UTC 2017

Modified Files:
src/sbin/raidctl: raidctl_hostops.c

Log Message:
need  for fstat()


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sbin/raidctl/raidctl_hostops.c

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

Modified files:

Index: src/sbin/raidctl/raidctl_hostops.c
diff -u src/sbin/raidctl/raidctl_hostops.c:1.2 src/sbin/raidctl/raidctl_hostops.c:1.3
--- src/sbin/raidctl/raidctl_hostops.c:1.2	Wed Feb  9 06:22:49 2011
+++ src/sbin/raidctl/raidctl_hostops.c	Tue Jan 10 15:47:05 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: raidctl_hostops.c,v 1.2 2011/02/09 11:22:49 pooka Exp $	*/
+/*	$NetBSD: raidctl_hostops.c,v 1.3 2017/01/10 20:47:05 christos Exp $	*/
 
 /*
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -28,11 +28,12 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: raidctl_hostops.c,v 1.2 2011/02/09 11:22:49 pooka Exp $");
+__RCSID("$NetBSD: raidctl_hostops.c,v 1.3 2017/01/10 20:47:05 christos Exp $");
 #endif /* !lint */
 
 #include 
 #include 
+#include 
 
 #include 
 #include 



  1   2   >