CVS commit: src

2021-08-12 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Thu Aug 12 20:53:18 UTC 2021

Modified Files:
src/lib/libc/stdlib: setenv.c
src/lib/libm/arch/x86_64: fenv.c
src/sys/arch/powerpc/include: reg.h
src/sys/arch/sgimips/sgimips: machdep.c

Log Message:
fix typos in "environment" word.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/lib/libc/stdlib/setenv.c
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/x86_64/fenv.c
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/powerpc/include/reg.h
cvs rdiff -u -r1.151 -r1.152 src/sys/arch/sgimips/sgimips/machdep.c

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

Modified files:

Index: src/lib/libc/stdlib/setenv.c
diff -u src/lib/libc/stdlib/setenv.c:1.44 src/lib/libc/stdlib/setenv.c:1.45
--- src/lib/libc/stdlib/setenv.c:1.44	Tue Jan 20 18:31:25 2015
+++ src/lib/libc/stdlib/setenv.c	Thu Aug 12 20:53:18 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: setenv.c,v 1.44 2015/01/20 18:31:25 christos Exp $	*/
+/*	$NetBSD: setenv.c,v 1.45 2021/08/12 20:53:18 andvar Exp $	*/
 
 /*
  * Copyright (c) 1987, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)setenv.c	8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: setenv.c,v 1.44 2015/01/20 18:31:25 christos Exp $");
+__RCSID("$NetBSD: setenv.c,v 1.45 2021/08/12 20:53:18 andvar Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -76,7 +76,7 @@ setenv(const char *name, const char *val
 	if (!__writelockenv())
 		return -1;
 
-	/* Find slot in the enviroment. */
+	/* Find slot in the environment. */
 	offset = __getenvslot(name, l_name, true);
 	if (offset == -1)
 		goto bad;

Index: src/lib/libm/arch/x86_64/fenv.c
diff -u src/lib/libm/arch/x86_64/fenv.c:1.7 src/lib/libm/arch/x86_64/fenv.c:1.8
--- src/lib/libm/arch/x86_64/fenv.c:1.7	Wed Mar 22 23:11:09 2017
+++ src/lib/libm/arch/x86_64/fenv.c	Thu Aug 12 20:53:18 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: fenv.c,v 1.7 2017/03/22 23:11:09 chs Exp $ */
+/* $NetBSD: fenv.c,v 1.8 2021/08/12 20:53:18 andvar Exp $ */
 
 /*-
  * Copyright (c) 2004-2005 David Schultz 
@@ -27,7 +27,7 @@
  */
 
 #include 
-__RCSID("$NetBSD: fenv.c,v 1.7 2017/03/22 23:11:09 chs Exp $");
+__RCSID("$NetBSD: fenv.c,v 1.8 2021/08/12 20:53:18 andvar Exp $");
 
 #include "namespace.h"
 
@@ -150,7 +150,7 @@ feclearexcept(int excepts)
 	/* Clear the requested floating-point exceptions */
 	fenv.x87.status &= ~ex;
 
-	/* Load the x87 floating-point environent */
+	/* Load the x87 floating-point environment */
 	__fldenv(fenv);
 
 	/* Same for SSE environment */
@@ -239,7 +239,7 @@ fesetexceptflag(const fexcept_t *flagp, 
 	/* Set the requested status flags */
 	fenv.x87.status |= *flagp & ex;
 
-	/* Load the x87 floating-point environent */
+	/* Load the x87 floating-point environment */
 	__fldenv(fenv);
 
 	/* Same for SSE environment */

Index: src/sys/arch/powerpc/include/reg.h
diff -u src/sys/arch/powerpc/include/reg.h:1.12 src/sys/arch/powerpc/include/reg.h:1.13
--- src/sys/arch/powerpc/include/reg.h:1.12	Sun Jan 24 20:02:38 2016
+++ src/sys/arch/powerpc/include/reg.h	Thu Aug 12 20:53:18 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: reg.h,v 1.12 2016/01/24 20:02:38 christos Exp $	*/
+/*	$NetBSD: reg.h,v 1.13 2021/08/12 20:53:18 andvar Exp $	*/
 
 #ifndef _POWERPC_REG_H_
 #define _POWERPC_REG_H_
@@ -21,7 +21,7 @@
  *
  *  [Start of callee-saved registers]
  *  r14-r30	Registers used for local variables
- *  r31		Used for local variable or "environent pointers"
+ *  r31		Used for local variable or "environment pointers"
  *  f14-f31	Registers used for local variables
  *
  *

Index: src/sys/arch/sgimips/sgimips/machdep.c
diff -u src/sys/arch/sgimips/sgimips/machdep.c:1.151 src/sys/arch/sgimips/sgimips/machdep.c:1.152
--- src/sys/arch/sgimips/sgimips/machdep.c:1.151	Sat Jul 24 21:31:35 2021
+++ src/sys/arch/sgimips/sgimips/machdep.c	Thu Aug 12 20:53:18 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.151 2021/07/24 21:31:35 andvar Exp $	*/
+/*	$NetBSD: machdep.c,v 1.152 2021/08/12 20:53:18 andvar Exp $	*/
 
 /*
  * Copyright (c) 2000 Soren S. Jorvang
@@ -34,7 +34,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.151 2021/07/24 21:31:35 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.152 2021/08/12 20:53:18 andvar Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -402,8 +402,8 @@ mach_init(int argc, int32_t argv32[], ui
 	}
 
 	/*
-	 * Also try to get the default bootpath from ARCBIOS envronment
-	 * bacause bootpath is not set properly by old bootloaders and
+	 * Also try to get the default bootpath from ARCBIOS environment
+	 * because bootpath is not set properly by old bootloaders and
 	 * argv[0] might be invalid on some machine.
 	 */
 	osload = arcbios_GetEnvironmentVariable("OSLoadPartition");



CVS commit: src

2021-08-12 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Thu Aug 12 20:25:27 UTC 2021

Modified Files:
src/share/man/man3: dirent.3
src/sys/nfs: nfsm_subs.h

Log Message:
s/directry/directory/


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/share/man/man3/dirent.3
cvs rdiff -u -r1.54 -r1.55 src/sys/nfs/nfsm_subs.h

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

Modified files:

Index: src/share/man/man3/dirent.3
diff -u src/share/man/man3/dirent.3:1.6 src/share/man/man3/dirent.3:1.7
--- src/share/man/man3/dirent.3:1.6	Sat Sep  7 12:17:10 2019
+++ src/share/man/man3/dirent.3	Thu Aug 12 20:25:26 2021
@@ -1,4 +1,4 @@
-.\" $NetBSD: dirent.3,v 1.6 2019/09/07 12:17:10 sevan Exp $
+.\" $NetBSD: dirent.3,v 1.7 2021/08/12 20:25:26 andvar Exp $
 .\"
 .\" Copyright (c) 1983, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -206,7 +206,7 @@ operator.
 .\" .St -p1003.1-2001 .
 .Sh HISTORY
 A
-directry file format appeared in
+directory file format appeared in
 .At v1 .
 The
 .Em dirent

Index: src/sys/nfs/nfsm_subs.h
diff -u src/sys/nfs/nfsm_subs.h:1.54 src/sys/nfs/nfsm_subs.h:1.55
--- src/sys/nfs/nfsm_subs.h:1.54	Sat Apr  4 07:07:20 2020
+++ src/sys/nfs/nfsm_subs.h	Thu Aug 12 20:25:27 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: nfsm_subs.h,v 1.54 2020/04/04 07:07:20 mlelstv Exp $	*/
+/*	$NetBSD: nfsm_subs.h,v 1.55 2021/08/12 20:25:27 andvar Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -152,7 +152,7 @@
  * for nfsv3, dissect post_op_fh3 and following post_op_attr.
  * for nfsv2, dissect fhandle and following fattr.
  *
- * d: (IN) the vnode of the parent directry.
+ * d: (IN) the vnode of the parent directory.
  * v: (OUT) the corresponding vnode (we allocate one if needed)
  * v3: (IN) true for nfsv3.
  * f: (OUT) true if we got valid filehandle.  always true for nfsv2.



CVS commit: src/sys/arch/amiga/amiga

2021-08-12 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Thu Aug 12 20:13:54 UTC 2021

Modified Files:
src/sys/arch/amiga/amiga: cc.c cc.h

Log Message:
s/iterrupt sever/interrupt server/


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/amiga/amiga/cc.c
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/amiga/amiga/cc.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/arch/amiga/amiga/cc.c
diff -u src/sys/arch/amiga/amiga/cc.c:1.27 src/sys/arch/amiga/amiga/cc.c:1.28
--- src/sys/arch/amiga/amiga/cc.c:1.27	Sun Aug 20 11:03:04 2017
+++ src/sys/arch/amiga/amiga/cc.c	Thu Aug 12 20:13:54 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: cc.c,v 1.27 2017/08/20 11:03:04 maxv Exp $	*/
+/*	$NetBSD: cc.c,v 1.28 2021/08/12 20:13:54 andvar Exp $	*/
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: cc.c,v 1.27 2017/08/20 11:03:04 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cc.c,v 1.28 2021/08/12 20:13:54 andvar Exp $");
 
 #include 
 #include 
@@ -61,7 +61,7 @@ custom_chips_init(void)
 }
 
 /*
- * Vertical blank iterrupt sever chains.
+ * Vertical blank interrupt server chains.
  */
 LIST_HEAD(vbllist, vbl_node) vbl_list;
 

Index: src/sys/arch/amiga/amiga/cc.h
diff -u src/sys/arch/amiga/amiga/cc.h:1.18 src/sys/arch/amiga/amiga/cc.h:1.19
--- src/sys/arch/amiga/amiga/cc.h:1.18	Fri Jan  3 07:14:20 2014
+++ src/sys/arch/amiga/amiga/cc.h	Thu Aug 12 20:13:54 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: cc.h,v 1.18 2014/01/03 07:14:20 mlelstv Exp $	*/
+/*	$NetBSD: cc.h,v 1.19 2021/08/12 20:13:54 andvar Exp $	*/
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -71,7 +71,7 @@ struct audio_channel {
 #define AUCC_ALLDMAF (DMAF_AUD0|DMAF_AUD1|DMAF_AUD2|DMAF_AUD3)
 
 /*
- * Vertical blank iterrupt sever chains.
+ * Vertical blank interrupt server chains.
  */
 
 struct vbl_node {



CVS commit: src/sys

2021-08-12 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Thu Aug 12 19:53:18 UTC 2021

Modified Files:
src/sys/arch/atari/dev: grfabs_et.c
src/sys/dev/qbus: rf.c

Log Message:
fix various typos in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/atari/dev/grfabs_et.c
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/qbus/rf.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/atari/dev/grfabs_et.c
diff -u src/sys/arch/atari/dev/grfabs_et.c:1.35 src/sys/arch/atari/dev/grfabs_et.c:1.36
--- src/sys/arch/atari/dev/grfabs_et.c:1.35	Mon Sep  3 16:29:24 2018
+++ src/sys/arch/atari/dev/grfabs_et.c	Thu Aug 12 19:53:18 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: grfabs_et.c,v 1.35 2018/09/03 16:29:24 riastradh Exp $	*/
+/*	$NetBSD: grfabs_et.c,v 1.36 2021/08/12 19:53:18 andvar Exp $	*/
 
 /*
  * Copyright (c) 1996 Leo Weppelman.
@@ -41,7 +41,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: grfabs_et.c,v 1.35 2018/09/03 16:29:24 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: grfabs_et.c,v 1.36 2021/08/12 19:53:18 andvar Exp $");
 
 #include 
 #include 
@@ -165,7 +165,7 @@ struct grfabs_et_priv {
 
 /*
  * XXX: called from ite console init routine.
- * Initialize list of posible video modes.
+ * Initialize list of possible video modes.
  */
 void
 et_probe_video(MODES *modelp)

Index: src/sys/dev/qbus/rf.c
diff -u src/sys/dev/qbus/rf.c:1.36 src/sys/dev/qbus/rf.c:1.37
--- src/sys/dev/qbus/rf.c:1.36	Sat Aug  7 16:19:15 2021
+++ src/sys/dev/qbus/rf.c	Thu Aug 12 19:53:18 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: rf.c,v 1.36 2021/08/07 16:19:15 thorpej Exp $	*/
+/*	$NetBSD: rf.c,v 1.37 2021/08/12 19:53:18 andvar Exp $	*/
 /*
  * Copyright (c) 2002 Jochen Kunz.
  * All rights reserved.
@@ -36,7 +36,7 @@ TODO:
 */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: rf.c,v 1.36 2021/08/07 16:19:15 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf.c,v 1.37 2021/08/12 19:53:18 andvar Exp $");
 
 /* autoconfig stuff */
 #include 
@@ -70,7 +70,7 @@ __KERNEL_RCSID(0, "$NetBSD: rf.c,v 1.36 
 /* hz for above */
 #include 
 
-/* bitdefinitions for RX211 */
+/* bit definitions for RX211 */
 #include 
 
 
@@ -392,8 +392,8 @@ rfc_attach(device_t parent, device_t sel
 
 #ifndef RX02_PROBE
 	/*
-	 * Bouth disk drievs and the controller are one physical unit.
-	 * If we found the controller, there will be bouth disk drievs.
+	 * Both disk drives and the controller are one physical unit.
+	 * If we found the controller, there will be both disk drives.
 	 * So attach them.
 	 */
 	rfc_aa.dnum = 0;
@@ -406,7 +406,7 @@ rfc_attach(device_t parent, device_t sel
 	/*
 	 * There are clones of the DEC RX system with standard shugart
 	 * interface. In this case we can not be sure that there are
-	 * bouth disk drievs. So we want to do a detection of attached
+	 * both disk drives. So we want to do a detection of attached
 	 * drives. This is done by reading a sector from disk. This means
 	 * that there must be a formatted disk in the drive at boot time.
 	 * This is bad, but I did not find another way to detect the
@@ -472,7 +472,7 @@ rf_attach(device_t parent, device_t self
 	dl->d_typename[4] = '\0';
 	dl->d_secsize = DEV_BSIZE;		/* bytes per sector */
 	/*
-	 * Fill in some values to have a initialized data structure. Some
+	 * Fill in some values to have an initialized data structure. Some
 	 * values will be reset by rfopen() depending on the actual density.
 	 */
 	dl->d_nsectors = RX2_SECTORS;		/* sectors per track */
@@ -617,7 +617,7 @@ rfstrategy(struct buf *buf)
  * and start to process it if there is one.
  * If the bufferqueue is empty, look at the bufferqueue of the other drive
  * that is attached to this controller.
- * Start procesing the bufferqueue of the other drive if it isn't empty.
+ * Start processing the bufferqueue of the other drive if it isn't empty.
  * Return a pointer to the softc structure of the drive that is now
  * ready to process a buffer or NULL if there is no buffer in either queues.
  */
@@ -1011,9 +1011,9 @@ rfopen(dev_t dev, int oflags, int devtyp
 		 * Controller is idle and density is not detected.
 		 * Start a density probe by issuing a read sector command
 		 * and sleep until the density probe finished.
-		 * Due to this it is imposible to open unformatted media.
+		 * Due to this it is impossible to open unformatted media.
 		 * As the RX02/02 is not able to format its own media,
-		 * media must be purchased preformatted. fsck DEC makreting!
+		 * media must be purchased preformatted. fsck DEC marketing!
 		 */
 		RFS_SETCMD(rf_sc->sc_state, RFS_PROBING);
 		disk_busy(_sc->sc_disk);



CVS commit: src/sys/kern

2021-08-12 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Thu Aug 12 19:15:15 UTC 2021

Modified Files:
src/sys/kern: vnode_if.sh

Log Message:
s/beween/between/


To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 src/sys/kern/vnode_if.sh

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/vnode_if.sh
diff -u src/sys/kern/vnode_if.sh:1.70 src/sys/kern/vnode_if.sh:1.71
--- src/sys/kern/vnode_if.sh:1.70	Sat May 16 18:31:50 2020
+++ src/sys/kern/vnode_if.sh	Thu Aug 12 19:15:15 2021
@@ -29,7 +29,7 @@ copyright="\
  * SUCH DAMAGE.
  */
 "
-SCRIPT_ID='$NetBSD: vnode_if.sh,v 1.70 2020/05/16 18:31:50 christos Exp $'
+SCRIPT_ID='$NetBSD: vnode_if.sh,v 1.71 2021/08/12 19:15:15 andvar Exp $'
 
 # Script to produce VFS front-end sugar.
 #
@@ -86,7 +86,7 @@ fi
 # Input to this parser is pre-processed slightly by sed
 # so this awk parser doesn't have to work so hard.  The
 # changes done by the sed pre-processing step are:
-#	insert a space beween * and pointer name
+#	insert a space between * and pointer name
 #	replace semicolons with spaces
 #
 sed_prep='s:\*\([^\*/]\):\* \1:g



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

2021-08-12 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 12 15:06:39 UTC 2021

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

Log Message:
add directory for debug data for mkdep tests


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

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

Modified files:

Index: src/distrib/sets/lists/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.1110 src/distrib/sets/lists/tests/mi:1.
--- src/distrib/sets/lists/tests/mi:1.1110	Wed Aug 11 20:42:26 2021
+++ src/distrib/sets/lists/tests/mi	Thu Aug 12 15:06:39 2021
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1110 2021/08/11 20:42:26 rillig Exp $
+# $NetBSD: mi,v 1. 2021/08/12 15:06:39 martin Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -197,6 +197,7 @@
 ./usr/libdata/debug/usr/tests/usr.bin			tests-usr.bin-debug	compattestfile,atf
 ./usr/libdata/debug/usr/tests/usr.bin/cpio		tests-usr.bin-debug	compattestfile,atf
 ./usr/libdata/debug/usr/tests/usr.bin/id		tests-usr.bin-debug	compattestfile,atf
+./usr/libdata/debug/usr/tests/usr.bin/mkdep		tests-usr.bin-debug	compattestfile,atf
 ./usr/libdata/debug/usr/tests/usr.bin/netpgpverify	tests-usr.bin-debug	compattestfile,atf
 ./usr/libdata/debug/usr/tests/usr.bin/tar		tests-usr.bin-debug	compattestfile,atf
 ./usr/libdata/debug/usr/tests/usr.sbin			tests-usr.sbin-debug	compattestfile,atf



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

2021-08-12 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 12 13:27:42 UTC 2021

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

Log Message:
h_findcc.debug is not obsolete


To generate a diff of this commit:
cvs rdiff -u -r1.358 -r1.359 src/distrib/sets/lists/debug/mi

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

Modified files:

Index: src/distrib/sets/lists/debug/mi
diff -u src/distrib/sets/lists/debug/mi:1.358 src/distrib/sets/lists/debug/mi:1.359
--- src/distrib/sets/lists/debug/mi:1.358	Thu Aug 12 12:51:25 2021
+++ src/distrib/sets/lists/debug/mi	Thu Aug 12 13:27:42 2021
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.358 2021/08/12 12:51:25 martin Exp $
+# $NetBSD: mi,v 1.359 2021/08/12 13:27:42 martin Exp $
 ./etc/mtree/set.debug   comp-sys-root
 ./usr/lib	comp-sys-usr		compatdir
 ./usr/lib/i18n/libBIG5_g.a			comp-c-debuglib		debuglib,compatfile
@@ -2487,10 +2487,10 @@
 ./usr/libdata/debug/usr/tests/syscall/t_unlink.debug			tests-obsolete		obsolete,compattestfile
 ./usr/libdata/debug/usr/tests/usr.bin/cpio/h_cpio.debug			tests-usr.bin-debug	debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/usr.bin/id/h_id.debug			tests-usr.bin-debug	debug,atf,compattestfile
+./usr/libdata/debug/usr/tests/usr.bin/mkdep/h_findcc.debug		tests-usr.bin-debug	debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/usr.bin/tar/h_tar.debug			tests-usr.bin-debug	debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/util/df/h_df.debug			tests-obsolete		obsolete,compattestfile
 ./usr/libdata/debug/usr/tests/util/id/h_id.debug			tests-obsolete		obsolete,compattestfile
-./usr/libdata/debug/usr/tests/usr.bin/mkdep/h_findcc.debug		tests-obsolete		obsolete,compattestfile
 ./usr/libdata/debug/usr/tests/util/systrace/h_have_systrace.debug	tests-obsolete		obsolete,compattestfile
 ./usr/tests/lib/libc/tls/libh_tls_dynamic_g.a	comp-c-debuglib		atf,debuglib,compattestfile
 ./var/db/obsolete/debugbase-sys-root		debug



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

2021-08-12 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 12 12:51:25 UTC 2021

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

Log Message:
oops, fix h_findcc entry


To generate a diff of this commit:
cvs rdiff -u -r1.357 -r1.358 src/distrib/sets/lists/debug/mi

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

Modified files:

Index: src/distrib/sets/lists/debug/mi
diff -u src/distrib/sets/lists/debug/mi:1.357 src/distrib/sets/lists/debug/mi:1.358
--- src/distrib/sets/lists/debug/mi:1.357	Thu Aug 12 11:57:07 2021
+++ src/distrib/sets/lists/debug/mi	Thu Aug 12 12:51:25 2021
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.357 2021/08/12 11:57:07 martin Exp $
+# $NetBSD: mi,v 1.358 2021/08/12 12:51:25 martin Exp $
 ./etc/mtree/set.debug   comp-sys-root
 ./usr/lib	comp-sys-usr		compatdir
 ./usr/lib/i18n/libBIG5_g.a			comp-c-debuglib		debuglib,compatfile
@@ -2490,7 +2490,7 @@
 ./usr/libdata/debug/usr/tests/usr.bin/tar/h_tar.debug			tests-usr.bin-debug	debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/util/df/h_df.debug			tests-obsolete		obsolete,compattestfile
 ./usr/libdata/debug/usr/tests/util/id/h_id.debug			tests-obsolete		obsolete,compattestfile
-./usr/tests/usr.bin/mkdep/h_findcc.debugtests-obsolete		obsolete,compattestfile
+./usr/libdata/debug/usr/tests/usr.bin/mkdep/h_findcc.debug		tests-obsolete		obsolete,compattestfile
 ./usr/libdata/debug/usr/tests/util/systrace/h_have_systrace.debug	tests-obsolete		obsolete,compattestfile
 ./usr/tests/lib/libc/tls/libh_tls_dynamic_g.a	comp-c-debuglib		atf,debuglib,compattestfile
 ./var/db/obsolete/debugbase-sys-root		debug



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

2021-08-12 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 12 11:57:07 UTC 2021

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

Log Message:
Add new mkdep test helper h_findcc


To generate a diff of this commit:
cvs rdiff -u -r1.356 -r1.357 src/distrib/sets/lists/debug/mi

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

Modified files:

Index: src/distrib/sets/lists/debug/mi
diff -u src/distrib/sets/lists/debug/mi:1.356 src/distrib/sets/lists/debug/mi:1.357
--- src/distrib/sets/lists/debug/mi:1.356	Wed Jul 14 03:19:24 2021
+++ src/distrib/sets/lists/debug/mi	Thu Aug 12 11:57:07 2021
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.356 2021/07/14 03:19:24 ozaki-r Exp $
+# $NetBSD: mi,v 1.357 2021/08/12 11:57:07 martin Exp $
 ./etc/mtree/set.debug   comp-sys-root
 ./usr/lib	comp-sys-usr		compatdir
 ./usr/lib/i18n/libBIG5_g.a			comp-c-debuglib		debuglib,compatfile
@@ -2490,6 +2490,7 @@
 ./usr/libdata/debug/usr/tests/usr.bin/tar/h_tar.debug			tests-usr.bin-debug	debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/util/df/h_df.debug			tests-obsolete		obsolete,compattestfile
 ./usr/libdata/debug/usr/tests/util/id/h_id.debug			tests-obsolete		obsolete,compattestfile
+./usr/tests/usr.bin/mkdep/h_findcc.debugtests-obsolete		obsolete,compattestfile
 ./usr/libdata/debug/usr/tests/util/systrace/h_have_systrace.debug	tests-obsolete		obsolete,compattestfile
 ./usr/tests/lib/libc/tls/libh_tls_dynamic_g.a	comp-c-debuglib		atf,debuglib,compattestfile
 ./var/db/obsolete/debugbase-sys-root		debug



CVS commit: src/etc/mtree

2021-08-12 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 12 11:50:42 UTC 2021

Modified Files:
src/etc/mtree: NetBSD.dist.tests

Log Message:
Add directory for new mkdep test binaries


To generate a diff of this commit:
cvs rdiff -u -r1.186 -r1.187 src/etc/mtree/NetBSD.dist.tests

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

Modified files:

Index: src/etc/mtree/NetBSD.dist.tests
diff -u src/etc/mtree/NetBSD.dist.tests:1.186 src/etc/mtree/NetBSD.dist.tests:1.187
--- src/etc/mtree/NetBSD.dist.tests:1.186	Thu Aug  5 22:36:07 2021
+++ src/etc/mtree/NetBSD.dist.tests	Thu Aug 12 11:50:42 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: NetBSD.dist.tests,v 1.186 2021/08/05 22:36:07 rillig Exp $
+#	$NetBSD: NetBSD.dist.tests,v 1.187 2021/08/12 11:50:42 martin Exp $
 
 ./usr/libdata/debug/usr/tests
 ./usr/libdata/debug/usr/tests/atf
@@ -177,6 +177,7 @@
 ./usr/libdata/debug/usr/tests/usr.bin/cpio
 ./usr/libdata/debug/usr/tests/usr.bin/id
 ./usr/libdata/debug/usr/tests/usr.bin/tar
+./usr/libdata/debug/usr/tests/usr.bin/mkdep
 ./usr/libdata/debug/usr/tests/usr.bin/netpgpverify
 ./usr/libdata/debug/usr/tests/usr.sbin
 ./usr/tests



CVS commit: src/usr.sbin/sysinst

2021-08-12 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Aug 12 09:33:59 UTC 2021

Modified Files:
src/usr.sbin/sysinst: defs.h disks.c upgrade.c

Log Message:
PR 56354: all actions to set up swap space are not guaranteed to gain
us enough virtual memory anyway, so drop return codes from set_swap*.
The state for cleanup (which swap dev to unuse) has been made global
some time ago anyway.

Previously use of the return values was inconsistent. Error reporting
will only confuse users and sometimes the situation is hard to fix or
even impossible (like in miniroots copide to swap space for booting).


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/usr.sbin/sysinst/defs.h
cvs rdiff -u -r1.74 -r1.75 src/usr.sbin/sysinst/disks.c
cvs rdiff -u -r1.17 -r1.18 src/usr.sbin/sysinst/upgrade.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/sysinst/defs.h
diff -u src/usr.sbin/sysinst/defs.h:1.71 src/usr.sbin/sysinst/defs.h:1.72
--- src/usr.sbin/sysinst/defs.h:1.71	Tue Jul 13 09:13:00 2021
+++ src/usr.sbin/sysinst/defs.h	Thu Aug 12 09:33:59 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: defs.h,v 1.71 2021/07/13 09:13:00 martin Exp $	*/
+/*	$NetBSD: defs.h,v 1.72 2021/08/12 09:33:59 martin Exp $	*/
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -713,13 +713,8 @@ void	disp_cur_fspart(int, int);
 int	make_filesystems(struct install_partition_desc *);
 int	make_fstab(struct install_partition_desc *);
 int	mount_disks(struct install_partition_desc *);
-/*
- * set_swap_if_low_ram and set_swap return -1 on error,
- * 0 if no swap was added on purpose and
- * 1 if swap has been added (and needs to be cleared later).
- */
-int	set_swap_if_low_ram(struct install_partition_desc *);
-int	set_swap(struct install_partition_desc *);
+void	set_swap_if_low_ram(struct install_partition_desc *);
+void	set_swap(struct install_partition_desc *);
 void	clear_swap(void);
 int	check_swap(const char *, int);
 char *bootxx_name(struct install_partition_desc *);

Index: src/usr.sbin/sysinst/disks.c
diff -u src/usr.sbin/sysinst/disks.c:1.74 src/usr.sbin/sysinst/disks.c:1.75
--- src/usr.sbin/sysinst/disks.c:1.74	Sun Aug  8 21:50:10 2021
+++ src/usr.sbin/sysinst/disks.c	Thu Aug 12 09:33:59 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: disks.c,v 1.74 2021/08/08 21:50:10 andvar Exp $ */
+/*	$NetBSD: disks.c,v 1.75 2021/08/12 09:33:59 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -1921,16 +1921,15 @@ mount_disks(struct install_partition_des
 
 static char swap_dev[PATH_MAX];
 
-int
+void
 set_swap_if_low_ram(struct install_partition_desc *install)
 {
 	swap_dev[0] = 0;
 	if (get_ramsize() <= TINY_RAM_SIZE)
-		return set_swap(install);
-	return 0;
+		set_swap(install);
 }
 
-int
+void
 set_swap(struct install_partition_desc *install)
 {
 	size_t i;
@@ -1942,20 +1941,16 @@ set_swap(struct install_partition_desc *
 			break;
 	}
 	if (i >= install->num)
-		return 0;
+		return;
 
 	if (!install->infos[i].parts->pscheme->get_part_device(
 	install->infos[i].parts, install->infos[i].cur_part_id, swap_dev,
 	sizeof swap_dev, NULL, plain_name, true, true))
-		return -1;
+		return;
 
 	rval = swapctl(SWAP_ON, swap_dev, 0);
-	if (rval != 0) {
+	if (rval != 0)
 		swap_dev[0] = 0;
-		return -1;
-	}
-
-	return 1;
 }
 
 void

Index: src/usr.sbin/sysinst/upgrade.c
diff -u src/usr.sbin/sysinst/upgrade.c:1.17 src/usr.sbin/sysinst/upgrade.c:1.18
--- src/usr.sbin/sysinst/upgrade.c:1.17	Wed Nov  4 14:29:40 2020
+++ src/usr.sbin/sysinst/upgrade.c	Thu Aug 12 09:33:59 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: upgrade.c,v 1.17 2020/11/04 14:29:40 martin Exp $	*/
+/*	$NetBSD: upgrade.c,v 1.18 2021/08/12 09:33:59 martin Exp $	*/
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -81,8 +81,7 @@ do_upgrade(void)
 		install.cur_system = true;
 	}
 
-	if (set_swap_if_low_ram() < 0)
-		return;
+	set_swap_if_low_ram();
 
 	if (md_pre_update() < 0)
 		goto free_install;