CVS commit: src

2021-08-17 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Tue Aug 17 22:00:33 UTC 2021

Modified Files:
src/share/man/man4: route.4
src/sys/altq: altq_cbq.c
src/sys/arch/acorn32/acorn32: rpc_machdep.c
src/sys/arch/acorn32/doc: history
src/sys/arch/acorn32/eb7500atx: eb7500atx_machdep.c
src/sys/arch/alpha/jensenio: jensenio_dma.c
src/sys/arch/amiga/amiga: amiga_init.c
src/sys/arch/amiga/dev: fd.c grfabs_cc.c
src/sys/arch/arm/footbridge: footbridge_machdep.c
src/sys/arch/arm/imx: imxspi.c
src/sys/arch/atari/atari: atari_init.c
src/sys/arch/atari/dev: grfabs_fal.c grfabs_tt.c if_ne_mb.c
src/sys/arch/evbarm/adi_brh: brh_machdep.c
src/sys/arch/evbarm/armadillo: armadillo9_machdep.c
src/sys/arch/evbarm/g42xxeb: g42xxeb_machdep.c
src/sys/arch/evbarm/hdl_g: hdlg_machdep.c
src/sys/arch/evbarm/imx31: imx31lk_machdep.c
src/sys/arch/evbarm/iq80310: iq80310_machdep.c
src/sys/arch/evbarm/iq80321: iq80321_machdep.c
src/sys/arch/evbarm/ixdp425: ixdp425_machdep.c
src/sys/arch/evbarm/ixm1200: ixm1200_machdep.c
src/sys/arch/evbarm/lubbock: lubbock_machdep.c
src/sys/arch/evbarm/mini2440: mini2440_machdep.c
src/sys/arch/evbarm/npwr_fc: npwr_fc_machdep.c
src/sys/arch/evbarm/nslu2: nslu2_machdep.c
src/sys/arch/evbarm/smdk2xx0: smdk2410_machdep.c smdk2800_machdep.c
src/sys/arch/evbarm/tsarm: tsarm_machdep.c
src/sys/arch/evbarm/viper: viper_machdep.c
src/sys/arch/hpcarm/hpcarm: kloader_machdep.c pxa2x0_hpc_machdep.c
sa11x0_hpc_machdep.c
src/sys/arch/i386/conf: MODULAR
src/sys/arch/macppc/stand/ofwboot: ofdev.c
src/sys/arch/mips/alchemy/include: aureg.h
src/sys/arch/mips/ralink: ralink_eth.c
src/sys/arch/mipsco/obio: rambo.h
src/sys/arch/netwinder/netwinder: netwinder_machdep.c
src/sys/arch/pmax/ibus: siireg.h
src/sys/arch/powerpc/oea: ofw_rascons.c
src/sys/arch/sh3/include: scifreg.h
src/sys/arch/shark/shark: shark_machdep.c
src/sys/arch/sparc/sparc: machdep.c
src/sys/arch/sun2/sun2: machdep.c
src/sys/arch/sun68k/stand: README
src/sys/arch/vax/include: qdreg.h
src/sys/arch/zaurus/zaurus: kloader_machdep.c machdep.c
src/sys/dev/ic: gemreg.h hd64570.c rndisreg.h tulipreg.h
src/sys/dev/marvell: if_mvxpereg.h
src/sys/dev/pci: if_casreg.h if_iwmreg.h pci_subr.c pcireg.h
src/sys/dev/pci/ixgbe: if_bypass.c
src/sys/dev/qbus: qdreg.h
src/sys/dev/tc: stic.c
src/sys/dev/usb: usb_quirks.c xhci.c
src/sys/kern: subr_vmem.c
src/sys/lib/libkern/arch/hppa: milli.S
src/sys/netinet6: ip6_output.c ip6_var.h
src/sys/sys: shm.h
src/sys/ufs/ext2fs: ext2fs_inode.c
src/tests/net/if: t_ifconfig.sh
src/usr.sbin/acpitools/amldb: amldb.8 debug.c
src/usr.sbin/ypserv/ypinit: ypinit.sh

Log Message:
fix multiplei repetitive typos in comments, messages and documentation. mainly 
because copy paste code big amount of files are affected.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/share/man/man4/route.4
cvs rdiff -u -r1.36 -r1.37 src/sys/altq/altq_cbq.c
cvs rdiff -u -r1.98 -r1.99 src/sys/arch/acorn32/acorn32/rpc_machdep.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/acorn32/doc/history
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/acorn32/eb7500atx/eb7500atx_machdep.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/alpha/jensenio/jensenio_dma.c
cvs rdiff -u -r1.130 -r1.131 src/sys/arch/amiga/amiga/amiga_init.c
cvs rdiff -u -r1.99 -r1.100 src/sys/arch/amiga/dev/fd.c
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/amiga/dev/grfabs_cc.c
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/footbridge/footbridge_machdep.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/arm/imx/imxspi.c
cvs rdiff -u -r1.101 -r1.102 src/sys/arch/atari/atari/atari_init.c
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/atari/dev/grfabs_fal.c
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/atari/dev/grfabs_tt.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/atari/dev/if_ne_mb.c
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/evbarm/adi_brh/brh_machdep.c
cvs rdiff -u -r1.36 -r1.37 src/sys/arch/evbarm/armadillo/armadillo9_machdep.c
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/evbarm/g42xxeb/g42xxeb_machdep.c
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/evbarm/hdl_g/hdlg_machdep.c
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/evbarm/imx31/imx31lk_machdep.c
cvs rdiff -u -r1.93 -r1.94 src/sys/arch/evbarm/iq80310/iq80310_machdep.c
cvs rdiff -u -r1.63 -r1.64 src/sys/arch/evbarm/iq80321/iq80321_machdep.c
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/evbarm/ixdp425/ixdp425_machdep.c
cvs rdiff -u -r1.65 -r1.66 src/sys/arch/evbarm/ixm1200/ixm1200_machdep.c
cvs rdiff -u -r1.41 -r1.42 src/sys/arch/evbarm/lubbock/lubbock_machdep.c
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/evbarm/mini2440/mini2440_machdep.c

CVS commit: src/sys/dev/pci

2021-08-17 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Tue Aug 17 17:16:40 UTC 2021

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

Log Message:
s/Windw/Window/ in log message.


To generate a diff of this commit:
cvs rdiff -u -r1.227 -r1.228 src/sys/dev/pci/pci_subr.c

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

Modified files:

Index: src/sys/dev/pci/pci_subr.c
diff -u src/sys/dev/pci/pci_subr.c:1.227 src/sys/dev/pci/pci_subr.c:1.228
--- src/sys/dev/pci/pci_subr.c:1.227	Mon Jul 12 04:41:14 2021
+++ src/sys/dev/pci/pci_subr.c	Tue Aug 17 17:16:40 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: pci_subr.c,v 1.227 2021/07/12 04:41:14 msaitoh Exp $	*/
+/*	$NetBSD: pci_subr.c,v 1.228 2021/08/17 17:16:40 andvar Exp $	*/
 
 /*
  * Copyright (c) 1997 Zubin D. Dittia.  All rights reserved.
@@ -40,7 +40,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.227 2021/07/12 04:41:14 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.228 2021/08/17 17:16:40 andvar Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_pci.h"
@@ -3539,7 +3539,7 @@ pci_conf_print_multicast_cap(const pcire
 	/* Endpoint Only */
 	n = PCIREG_SHIFTOUT(reg, PCI_MCAST_CAP_WINSIZEREQ);
 	if (n > 0)
-		printf("  Windw Size Requested: %d\n", 1 << (n - 1));
+		printf("  Window Size Requested: %d\n", 1 << (n - 1));
 
 	onoff("ECRC Regeneration Supported", reg, PCI_MCAST_CAP_ECRCREGEN);
 



CVS commit: src/share/man/man4

2021-08-17 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Tue Aug 17 14:11:22 UTC 2021

Modified Files:
src/share/man/man4: tty.4

Log Message:
tty.4: s/asynchronus/asynchronous/


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/share/man/man4/tty.4

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/man4/tty.4
diff -u src/share/man/man4/tty.4:1.30 src/share/man/man4/tty.4:1.31
--- src/share/man/man4/tty.4:1.30	Sat Sep  7 19:32:52 2019
+++ src/share/man/man4/tty.4	Tue Aug 17 14:11:22 2021
@@ -1,4 +1,4 @@
-.\"	$NetBSD: tty.4,v 1.30 2019/09/07 19:32:52 wiz Exp $
+.\"	$NetBSD: tty.4,v 1.31 2021/08/17 14:11:22 andvar Exp $
 .\"
 .\" Copyright (c) 1991, 1992, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -478,7 +478,7 @@ Return the current line discipline in th
 .Sh HISTORY
 A console typewriter device
 .Pa /dev/tty
-and asynchronus communication interfaces
+and asynchronous communication interfaces
 .Pa /dev/tty[0-5]
 first appeared in
 .At v1 .



CVS commit: src/sys/opencrypto

2021-08-14 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Aug 14 20:43:05 UTC 2021

Modified Files:
src/sys/opencrypto: crypto.c cryptodev.h

Log Message:
fix typo in CRK_ALGORITHM_MIN definition to match CRK_ALGORITHM_MAX one.
while here fix few typos in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.115 -r1.116 src/sys/opencrypto/crypto.c
cvs rdiff -u -r1.41 -r1.42 src/sys/opencrypto/cryptodev.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/opencrypto/crypto.c
diff -u src/sys/opencrypto/crypto.c:1.115 src/sys/opencrypto/crypto.c:1.116
--- src/sys/opencrypto/crypto.c:1.115	Mon Aug  9 19:57:58 2021
+++ src/sys/opencrypto/crypto.c	Sat Aug 14 20:43:05 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: crypto.c,v 1.115 2021/08/09 19:57:58 andvar Exp $ */
+/*	$NetBSD: crypto.c,v 1.116 2021/08/14 20:43:05 andvar Exp $ */
 /*	$FreeBSD: src/sys/opencrypto/crypto.c,v 1.4.2.5 2003/02/26 00:14:05 sam Exp $	*/
 /*	$OpenBSD: crypto.c,v 1.41 2002/07/17 23:52:38 art Exp $	*/
 
@@ -53,7 +53,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: crypto.c,v 1.115 2021/08/09 19:57:58 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: crypto.c,v 1.116 2021/08/14 20:43:05 andvar Exp $");
 
 #include 
 #include 
@@ -1047,7 +1047,7 @@ crypto_kregister(u_int32_t driverid, int
 
 	cap = crypto_checkdriver_lock(driverid);
 	if (cap != NULL &&
-	(CRK_ALGORITM_MIN <= kalg && kalg <= CRK_ALGORITHM_MAX)) {
+	(CRK_ALGORITHM_MIN <= kalg && kalg <= CRK_ALGORITHM_MAX)) {
 		/*
 		 * XXX Do some performance testing to determine placing.
 		 * XXX We probably need an auxiliary data structure that

Index: src/sys/opencrypto/cryptodev.h
diff -u src/sys/opencrypto/cryptodev.h:1.41 src/sys/opencrypto/cryptodev.h:1.42
--- src/sys/opencrypto/cryptodev.h:1.41	Mon Aug  9 19:57:58 2021
+++ src/sys/opencrypto/cryptodev.h	Sat Aug 14 20:43:05 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: cryptodev.h,v 1.41 2021/08/09 19:57:58 andvar Exp $ */
+/*	$NetBSD: cryptodev.h,v 1.42 2021/08/14 20:43:05 andvar Exp $ */
 /*	$FreeBSD: src/sys/opencrypto/cryptodev.h,v 1.2.2.6 2003/07/02 17:04:50 sam Exp $	*/
 /*	$OpenBSD: cryptodev.h,v 1.33 2002/07/17 23:52:39 art Exp $	*/
 
@@ -325,7 +325,7 @@ struct cryptret {
 
 
 /* Asymmetric key operations */
-#define	CRK_ALGORITM_MIN	0
+#define	CRK_ALGORITHM_MIN	0
 #define CRK_MOD_EXP		0
 #define CRK_MOD_EXP_CRT		1
 #define CRK_DSA_SIGN		2
@@ -402,7 +402,7 @@ struct cryptostats {
 	 * accumulate statistics about how long it takes to process
 	 * crypto requests at various points during processing.
 	 */
-	struct cryptotstat cs_invoke;	/* crypto_dipsatch -> crypto_invoke */
+	struct cryptotstat cs_invoke;	/* crypto_dispatch -> crypto_invoke */
 	struct cryptotstat cs_done;	/* crypto_invoke -> crypto_done */
 	struct cryptotstat cs_cb;	/* crypto_done -> callback */
 	struct cryptotstat cs_finis;	/* callback -> callback return */
@@ -636,8 +636,8 @@ extern	int crypto_devallowsoft;	/* only 
 /*
  * initialize the crypto framework subsystem (not the pseudo-device).
  * This must be called very early in boot, so the framework is ready
- * to handle registration requests when crpto hardware is autoconfigured.
- * (This declaration doesnt really belong here but there's no header
+ * to handle registration requests when crypto hardware is autoconfigured.
+ * (This declaration doesn't really belong here but there's no header
  * for the raw framework.)
  */
 int	crypto_init(void);



CVS commit: src/sys/dev/marvell

2021-08-13 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Aug 13 21:04:44 UTC 2021

Modified Files:
src/sys/dev/marvell: if_mvxpe.c

Log Message:
s/fame/frame in mvxpe_mib_def with assumption that it was not intentional typo.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/dev/marvell/if_mvxpe.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/marvell/if_mvxpe.c
diff -u src/sys/dev/marvell/if_mvxpe.c:1.34 src/sys/dev/marvell/if_mvxpe.c:1.35
--- src/sys/dev/marvell/if_mvxpe.c:1.34	Mon Aug  2 12:56:24 2021
+++ src/sys/dev/marvell/if_mvxpe.c	Fri Aug 13 21:04:44 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_mvxpe.c,v 1.34 2021/08/02 12:56:24 andvar Exp $	*/
+/*	$NetBSD: if_mvxpe.c,v 1.35 2021/08/13 21:04:44 andvar Exp $	*/
 /*
  * Copyright (c) 2015 Internet Initiative Japan Inc.
  * All rights reserved.
@@ -25,7 +25,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_mvxpe.c,v 1.34 2021/08/02 12:56:24 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_mvxpe.c,v 1.35 2021/08/13 21:04:44 andvar Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -218,7 +218,7 @@ STATIC struct mvxpe_mib_def {
 	"Frame Size  256 -  511"},
 	{MVXPE_MIB_RX_FRAME1023_OCT, 0,	"rx_frame_512_1023",
 	"Frame Size  512 - 1023", 0},
-	{MVXPE_MIB_RX_FRAMEMAX_OCT, 0,	"rx_fame_1024_max",
+	{MVXPE_MIB_RX_FRAMEMAX_OCT, 0,	"rx_frame_1024_max",
 	"Frame Size 1024 -  Max", 0},
 	{MVXPE_MIB_TX_GOOD_OCT, 1,	"tx_good_oct",
 	"Good Octets Tx", 0},



CVS commit: src

2021-08-13 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Aug 13 20:47:55 UTC 2021

Modified Files:
src/common/lib/libc/arch/sparc64/string: memset.S
src/sbin/ifconfig: ieee80211.c
src/sys/arch/mips/ralink: ralink_reg.h
src/sys/arch/powerpc/include: reg.h
src/sys/ddb: db_command.c
src/sys/dev/ic: aic79xx_inline.h dc21040reg.h
src/sys/dev/usb: xhci.c
src/sys/netinet: tcp_vtw.c

Log Message:
fix typos in words "pointer" and s/fram /frame/


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/common/lib/libc/arch/sparc64/string/memset.S
cvs rdiff -u -r1.30 -r1.31 src/sbin/ifconfig/ieee80211.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/mips/ralink/ralink_reg.h
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/powerpc/include/reg.h
cvs rdiff -u -r1.176 -r1.177 src/sys/ddb/db_command.c
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/ic/aic79xx_inline.h
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/ic/dc21040reg.h
cvs rdiff -u -r1.146 -r1.147 src/sys/dev/usb/xhci.c
cvs rdiff -u -r1.20 -r1.21 src/sys/netinet/tcp_vtw.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/arch/sparc64/string/memset.S
diff -u src/common/lib/libc/arch/sparc64/string/memset.S:1.2 src/common/lib/libc/arch/sparc64/string/memset.S:1.3
--- src/common/lib/libc/arch/sparc64/string/memset.S:1.2	Sun Mar 17 02:12:41 2013
+++ src/common/lib/libc/arch/sparc64/string/memset.S	Fri Aug 13 20:47:54 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: memset.S,v 1.2 2013/03/17 02:12:41 christos Exp $	*/
+/*	$NetBSD: memset.S,v 1.3 2021/08/13 20:47:54 andvar Exp $	*/
 
 /*
  * Copyright (c) 1996-2002 Eduardo Horvath
@@ -25,7 +25,7 @@
  */
 #include "strmacros.h"
 #if defined(LIBC_SCCS) && !defined(lint)
-RCSID("$NetBSD: memset.S,v 1.2 2013/03/17 02:12:41 christos Exp $")
+RCSID("$NetBSD: memset.S,v 1.3 2021/08/13 20:47:54 andvar Exp $")
 #endif  /* LIBC_SCCS and not lint */
 
 
@@ -120,7 +120,7 @@ Lmemset_cleanup:	
 	 stb	%o1, [%o0]		!	*addr = 0;
 Lmemset_done:
 	retl
-	 mov	%o4, %o0		! Restore ponter for memset (ugh)
+	 mov	%o4, %o0		! Restore pointer for memset (ugh)
 
 #ifdef USE_BLOCK_STORE_LOAD
 Lmemset_block:

Index: src/sbin/ifconfig/ieee80211.c
diff -u src/sbin/ifconfig/ieee80211.c:1.30 src/sbin/ifconfig/ieee80211.c:1.31
--- src/sbin/ifconfig/ieee80211.c:1.30	Fri Aug 16 10:33:17 2019
+++ src/sbin/ifconfig/ieee80211.c	Fri Aug 13 20:47:55 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ieee80211.c,v 1.30 2019/08/16 10:33:17 msaitoh Exp $	*/
+/*	$NetBSD: ieee80211.c,v 1.31 2021/08/13 20:47:55 andvar Exp $	*/
 
 /*
  * Copyright (c) 1983, 1993
@@ -31,7 +31,7 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: ieee80211.c,v 1.30 2019/08/16 10:33:17 msaitoh Exp $");
+__RCSID("$NetBSD: ieee80211.c,v 1.31 2021/08/13 20:47:55 andvar Exp $");
 #endif /* not lint */
 
 #include 
@@ -531,7 +531,7 @@ ieee80211_statistics(prop_dictionary_t e
 	STAT_PRINT(is_rx_badsubtype, "rx frame w/ unknown subtyp");
 	STAT_PRINT(is_rx_nobuf, "rx failed for lack of buf");
 	STAT_PRINT(is_rx_decryptcrc, "rx decrypt failed on crc");
-	STAT_PRINT(is_rx_ahdemo_mgt, "rx discard ahdemo mgt fram");
+	STAT_PRINT(is_rx_ahdemo_mgt, "rx discard ahdemo mgt frame");
 	STAT_PRINT(is_rx_bad_auth, "rx bad auth request");
 	STAT_PRINT(is_rx_unauth, "rx on unauthorized port");
 	STAT_PRINT(is_rx_badkeyid, "rx w/ incorrect keyid");

Index: src/sys/arch/mips/ralink/ralink_reg.h
diff -u src/sys/arch/mips/ralink/ralink_reg.h:1.9 src/sys/arch/mips/ralink/ralink_reg.h:1.10
--- src/sys/arch/mips/ralink/ralink_reg.h:1.9	Wed Oct  5 15:54:58 2016
+++ src/sys/arch/mips/ralink/ralink_reg.h	Fri Aug 13 20:47:55 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ralink_reg.h,v 1.9 2016/10/05 15:54:58 ryo Exp $	*/
+/*	$NetBSD: ralink_reg.h,v 1.10 2021/08/13 20:47:55 andvar Exp $	*/
 /*-
  * Copyright (c) 2011 CradlePoint Technology, Inc.
  * All rights reserved.
@@ -725,7 +725,7 @@ enum ralink_irq {
 #define RA_FE_TX_BASE_PTR_0	0x800	/*  TX Ring #0 Base Pointer */
 #define RA_FE_TX_MAX_CNT_0	0x804	/*  TX Ring #0 Maximum Count */
 #define RA_FE_TX_CTX_IDX_0	0x808	/*  TX Ring #0 CPU pointer */
-#define RA_FE_TX_DTX_IDX_0	0x80c	/*  TX Ring #0 DMA poitner */
+#define RA_FE_TX_DTX_IDX_0	0x80c	/*  TX Ring #0 DMA pointer */
 #define RA_FE_PDMA_TX0_PTR	RA_FE_TX_BASE_PTR_0
 #define RA_FE_PDMA_TX0_COUNT	RA_FE_TX_MAX_CNT_0
 #define RA_FE_PDMA_TX0_CPU_IDX	RA_FE_TX_CTX_IDX_0
@@ -733,19 +733,19 @@ enum ralink_irq {
 #define RA_FE_TX_BASE_PTR_1	0x810	/*  TX Ring #1 Base Pointer */
 #define RA_FE_TX_MAX_CNT_1	0x814	/*  TX Ring #1 Maximum Count */
 #define RA_FE_TX_CTX_IDX_1	0x818	/*  TX Ring #1 CPU pointer */
-#define RA_FE_TX_DTX_IDX_1	0x81c	/*  TX Ring #1 DMA poitner */
+#define RA_FE_TX_DTX_IDX_1	0x81c	/*  TX Ring #1 DMA pointer */
 #define RA_FE_TX_BASE_PTR_2	0x820	/*  TX Ring #2 Base Pointer */
 #define RA_FE_TX_MAX_CNT_2	0x824	/*  TX Ring #2 Maximum Count */
 #define RA_FE_TX_CTX_IDX_2	0x828	/*  TX Ring #2 CPU 

CVS commit: src/sys

2021-08-13 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Aug 13 20:26:07 UTC 2021

Modified Files:
src/sys/arch/amd64/amd64: locore.S
src/sys/arch/i386/i386: locore.S
src/sys/dev/marvell: mvxpsec.c
src/sys/dev/pci: if_bnx.c

Log Message:
s/struture/structure/ s/structre/structure/


To generate a diff of this commit:
cvs rdiff -u -r1.210 -r1.211 src/sys/arch/amd64/amd64/locore.S
cvs rdiff -u -r1.185 -r1.186 src/sys/arch/i386/i386/locore.S
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/marvell/mvxpsec.c
cvs rdiff -u -r1.108 -r1.109 src/sys/dev/pci/if_bnx.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/amd64/amd64/locore.S
diff -u src/sys/arch/amd64/amd64/locore.S:1.210 src/sys/arch/amd64/amd64/locore.S:1.211
--- src/sys/arch/amd64/amd64/locore.S:1.210	Sun Jun 21 16:57:18 2020
+++ src/sys/arch/amd64/amd64/locore.S	Fri Aug 13 20:26:07 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: locore.S,v 1.210 2020/06/21 16:57:18 bouyer Exp $	*/
+/*	$NetBSD: locore.S,v 1.211 2021/08/13 20:26:07 andvar Exp $	*/
 
 /*
  * Copyright-o-rama!
@@ -1050,7 +1050,7 @@ ENTRY(start_xen32)
 	movl	$RELOC(HYPERVISOR_shared_info_pa),%ebp
 	movl	%ebx,(%ebp)
 	movl	$0,4(%ebp)
-	/* XXX assume hvm_start_info+dependant struture fits in a single page */
+	/* XXX assume hvm_start_info+dependant structure fits in a single page */
 	addl	$PAGE_SIZE, %ebx
 	addl	$PGOFSET,%ebx
 	andl	$~PGOFSET,%ebx

Index: src/sys/arch/i386/i386/locore.S
diff -u src/sys/arch/i386/i386/locore.S:1.185 src/sys/arch/i386/i386/locore.S:1.186
--- src/sys/arch/i386/i386/locore.S:1.185	Wed May 27 19:33:40 2020
+++ src/sys/arch/i386/i386/locore.S	Fri Aug 13 20:26:07 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: locore.S,v 1.185 2020/05/27 19:33:40 ad Exp $	*/
+/*	$NetBSD: locore.S,v 1.186 2021/08/13 20:26:07 andvar Exp $	*/
 
 /*
  * Copyright-o-rama!
@@ -128,7 +128,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.185 2020/05/27 19:33:40 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.186 2021/08/13 20:26:07 andvar Exp $");
 
 #include "opt_copy_symtab.h"
 #include "opt_ddb.h"
@@ -1205,7 +1205,7 @@ ENTRY(start_xenpvh)
 	andl	$~PGOFSET,%ebx
 	movl	$RELOC(HYPERVISOR_shared_info_pa),%ebp
 	movl	%ebx,(%ebp)
-	/* XXX assume hvm_start_info+dependant struture fits in a single page */
+	/* XXX assume hvm_start_info+dependant structure fits in a single page */
 	addl	$PAGE_SIZE, %ebx
 	addl	$PGOFSET,%ebx
 	andl	$~PGOFSET,%ebx

Index: src/sys/dev/marvell/mvxpsec.c
diff -u src/sys/dev/marvell/mvxpsec.c:1.7 src/sys/dev/marvell/mvxpsec.c:1.8
--- src/sys/dev/marvell/mvxpsec.c:1.7	Sat Jul 25 22:37:48 2020
+++ src/sys/dev/marvell/mvxpsec.c	Fri Aug 13 20:26:07 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mvxpsec.c,v 1.7 2020/07/25 22:37:48 riastradh Exp $	*/
+/*	$NetBSD: mvxpsec.c,v 1.8 2021/08/13 20:26:07 andvar Exp $	*/
 /*
  * Copyright (c) 2015 Internet Initiative Japan Inc.
  * All rights reserved.
@@ -1487,7 +1487,7 @@ mvxpsec_packet_dtor(void *arg, void *obj
 }
 
 /*
- * allocate new session struture.
+ * allocate new session structure.
  */
 STATIC struct mvxpsec_session *
 mvxpsec_session_alloc(struct mvxpsec_softc *sc)

Index: src/sys/dev/pci/if_bnx.c
diff -u src/sys/dev/pci/if_bnx.c:1.108 src/sys/dev/pci/if_bnx.c:1.109
--- src/sys/dev/pci/if_bnx.c:1.108	Sun Feb 14 14:05:03 2021
+++ src/sys/dev/pci/if_bnx.c	Fri Aug 13 20:26:07 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_bnx.c,v 1.108 2021/02/14 14:05:03 jakllsch Exp $	*/
+/*	$NetBSD: if_bnx.c,v 1.109 2021/08/13 20:26:07 andvar Exp $	*/
 /*	$OpenBSD: if_bnx.c,v 1.101 2013/03/28 17:21:44 brad Exp $	*/
 
 /*-
@@ -35,7 +35,7 @@
 #if 0
 __FBSDID("$FreeBSD: src/sys/dev/bce/if_bce.c,v 1.3 2006/04/13 14:12:26 ru Exp $");
 #endif
-__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.108 2021/02/14 14:05:03 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.109 2021/08/13 20:26:07 andvar Exp $");
 
 /*
  * The following controllers are supported by this driver:
@@ -2304,7 +2304,7 @@ bnx_init_media(struct bnx_softc *sc)
 //
 /* Free any DMA memory owned by the driver. */
 /*  */
-/* Scans through each data structre that requires DMA memory and frees  */
+/* Scans through each data structure that requires DMA memory and frees */
 /* the memory if allocated. */
 /*  */
 /* Returns: */



CVS commit: src/sys/arch/alpha/alpha

2021-08-13 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Aug 13 20:19:45 UTC 2021

Modified Files:
src/sys/arch/alpha/alpha: pmap.c

Log Message:
fix multiple typos in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.300 -r1.301 src/sys/arch/alpha/alpha/pmap.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/alpha/alpha/pmap.c
diff -u src/sys/arch/alpha/alpha/pmap.c:1.300 src/sys/arch/alpha/alpha/pmap.c:1.301
--- src/sys/arch/alpha/alpha/pmap.c:1.300	Sat Jul 31 14:51:25 2021
+++ src/sys/arch/alpha/alpha/pmap.c	Fri Aug 13 20:19:45 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.300 2021/07/31 14:51:25 thorpej Exp $ */
+/* $NetBSD: pmap.c,v 1.301 2021/08/13 20:19:45 andvar Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2001, 2007, 2008, 2020
@@ -106,8 +106,8 @@
  *
  *	All user page table access is done via K0SEG.  Kernel
  *	page table access is done via the recursive Virtual Page
- *	Table becase kernel PT pages are pre-allocated and never
- *	freed, so no VPT fault handling is requiried.
+ *	Table because kernel PT pages are pre-allocated and never
+ *	freed, so no VPT fault handling is required.
  */
 
 /*
@@ -135,7 +135,7 @@
 
 #include 			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.300 2021/07/31 14:51:25 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.301 2021/08/13 20:19:45 andvar Exp $");
 
 #include 
 #include 
@@ -578,9 +578,9 @@ pmap_pvlist_free(struct pmap_pvlist * co
  * that includes room for 8 VAs, the pmap the VAs belong to, a bitmap of
  * CPUs to be notified, and a list for PT pages that are freed during
  * removal off mappings.  The number of valid addresses in the list as
- * well as flags are sqeezed into the lower bits of the first two VAs.
+ * well as flags are squeezed into the lower bits of the first two VAs.
  * Storage for this structure is allocated on the stack.  We need to be
- * careful to keep the size of this struture under control.
+ * careful to keep the size of this structure under control.
  *
  * When notifying remote CPUs, we acquire the tlb_lock (which also
  * blocks IPIs), record the pointer to our context structure, set a
@@ -589,9 +589,9 @@ pmap_pvlist_free(struct pmap_pvlist * co
  * any invalidations necessary on the local CPU.  Once that is done,
  * we then wait the the global context pointer to be cleared, which
  * will be done by the final remote CPU to complete their work. This
- * method reduces cache line contention during pocessing.
+ * method reduces cache line contention during processing.
  *
- * When removing mappings in user pmaps, this implemention frees page
+ * When removing mappings in user pmaps, this implementation frees page
  * table pages back to the VM system once they contain no valid mappings.
  * As we do this, we must ensure to invalidate TLB entries that the
  * CPU might hold for the respective recursive VPT mappings.  This must
@@ -1038,7 +1038,7 @@ pmap_tlb_shootnow(const struct pmap_tlb_
 
 	/*
 	 * Figure out who to notify.  If it's for the kernel or
-	 * multiple aaddress spaces, we notify everybody.  If
+	 * multiple address spaces, we notify everybody.  If
 	 * it's a single user pmap, then we try to acquire the
 	 * activation lock so we can get an accurate accounting
 	 * of who needs to be notified.  If we can't acquire
@@ -2094,7 +2094,7 @@ pmap_enter_tlb_shootdown(pmap_t const pm
  * pmap_enter_l2pt_delref:
  *
  *	Release a reference on an L2 PT page for pmap_enter().
- *	This is factored out separately becacause we expect it
+ *	This is factored out separately because we expect it
  *	to be a rare case.
  */
 static void __noinline
@@ -2105,7 +2105,7 @@ pmap_enter_l2pt_delref(pmap_t const pmap
 
 	/*
 	 * PALcode may have tried to service a TLB miss with
-	 * this L2 PTE, so we need to make sure we don't actully
+	 * this L2 PTE, so we need to make sure we don't actually
 	 * free the PT page untl we've shot down any TLB entries
 	 * for this VPT index.
 	 */
@@ -2122,7 +2122,7 @@ pmap_enter_l2pt_delref(pmap_t const pmap
  * pmap_enter_l3pt_delref:
  *
  *	Release a reference on an L3 PT page for pmap_enter().
- *	This is factored out separately becacause we expect it
+ *	This is factored out separately because we expect it
  *	to be a rare case.
  */
 static void __noinline
@@ -2133,8 +2133,8 @@ pmap_enter_l3pt_delref(pmap_t const pmap
 
 	/*
 	 * PALcode may have tried to service a TLB miss with
-	 * this PTE, so we need to make sure we don't actully
-	 * free the PT page untl we've shot down any TLB entries
+	 * this PTE, so we need to make sure we don't actually
+	 * free the PT page until we've shot down any TLB entries
 	 * for this VPT index.
 	 */
 
@@ -2256,7 +2256,7 @@ pmap_enter(pmap_t pmap, vaddr_t va, padd
 	 * new one immediately.
 	 */
 	if ((opte & PG_V) == 0) {
-		/* No TLB invalidatons needed for new mappings. */
+		/* No TLB 

CVS commit: src

2021-08-13 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Aug 13 20:19:14 UTC 2021

Modified Files:
src/tests/sys/uvm: t_uvm_physseg.c
src/usr.sbin/syslogd: syslogd.c

Log Message:
s/bacause/because/


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/sys/uvm/t_uvm_physseg.c
cvs rdiff -u -r1.136 -r1.137 src/usr.sbin/syslogd/syslogd.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/sys/uvm/t_uvm_physseg.c
diff -u src/tests/sys/uvm/t_uvm_physseg.c:1.8 src/tests/sys/uvm/t_uvm_physseg.c:1.9
--- src/tests/sys/uvm/t_uvm_physseg.c:1.8	Wed Jan 16 13:54:17 2019
+++ src/tests/sys/uvm/t_uvm_physseg.c	Fri Aug 13 20:19:13 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: t_uvm_physseg.c,v 1.8 2019/01/16 13:54:17 fox Exp $ */
+/* $NetBSD: t_uvm_physseg.c,v 1.9 2021/08/13 20:19:13 andvar Exp $ */
 
 /*-
  * Copyright (c) 2015, 2016 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include 
-__RCSID("$NetBSD: t_uvm_physseg.c,v 1.8 2019/01/16 13:54:17 fox Exp $");
+__RCSID("$NetBSD: t_uvm_physseg.c,v 1.9 2021/08/13 20:19:13 andvar Exp $");
 
 /*
  * If this line is commented out tests related to uvm_physseg_get_pmseg()
@@ -2251,7 +2251,7 @@ ATF_TC_BODY(uvm_page_physunload_force, t
 	/* Insert more than one segment iff VM_PHYSSEG_MAX > 1 */
 #if VM_PHYSSEG_MAX > 1
 	/*
-	 * We have couple of physloads done this is bacause of the fact that if
+	 * We have couple of physloads done this is because of the fact that if
 	 * we physunload all the PFs from a given range and we have only one
 	 * segment in total a panic() is called
 	 */

Index: src/usr.sbin/syslogd/syslogd.c
diff -u src/usr.sbin/syslogd/syslogd.c:1.136 src/usr.sbin/syslogd/syslogd.c:1.137
--- src/usr.sbin/syslogd/syslogd.c:1.136	Sun Nov  8 01:12:46 2020
+++ src/usr.sbin/syslogd/syslogd.c	Fri Aug 13 20:19:14 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: syslogd.c,v 1.136 2020/11/08 01:12:46 dholland Exp $	*/
+/*	$NetBSD: syslogd.c,v 1.137 2021/08/13 20:19:14 andvar Exp $	*/
 
 /*
  * Copyright (c) 1983, 1988, 1993, 1994
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 19
 #if 0
 static char sccsid[] = "@(#)syslogd.c	8.3 (Berkeley) 4/4/94";
 #else
-__RCSID("$NetBSD: syslogd.c,v 1.136 2020/11/08 01:12:46 dholland Exp $");
+__RCSID("$NetBSD: syslogd.c,v 1.137 2021/08/13 20:19:14 andvar Exp $");
 #endif
 #endif /* not lint */
 
@@ -580,7 +580,7 @@ getgroup:
 	/*
 	 * Create the global kernel event descriptor.
 	 *
-	 * NOTE: We MUST do this after daemon(), bacause the kqueue()
+	 * NOTE: We MUST do this after daemon(), because the kqueue()
 	 * API dictates that kqueue descriptors are not inherited
 	 * across forks (lame!).
 	 */



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/sys/ufs/chfs

2021-08-10 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Wed Aug 11 05:17:48 UTC 2021

Modified Files:
src/sys/ufs/chfs: media.h

Log Message:
s/enrty/entry/


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/ufs/chfs/media.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/ufs/chfs/media.h
diff -u src/sys/ufs/chfs/media.h:1.2 src/sys/ufs/chfs/media.h:1.3
--- src/sys/ufs/chfs/media.h:1.2	Fri Oct 19 12:44:39 2012
+++ src/sys/ufs/chfs/media.h	Wed Aug 11 05:17:48 2021
@@ -46,7 +46,7 @@ typedef uint64_t le64;
 enum {
 	CHFS_NODETYPE_VNODE = 1,	/* vnode information */
 	CHFS_NODETYPE_DATA,			/* data node */
-	CHFS_NODETYPE_DIRENT,		/* directory enrty */
+	CHFS_NODETYPE_DIRENT,		/* directory entry */
 	CHFS_NODETYPE_PADDING,		/* padding node */
 };
 



CVS commit: src

2021-08-09 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Aug  9 21:38:05 UTC 2021

Modified Files:
src/libexec/telnetd: state.c
src/sys/arch/mips/mips: mips_machdep.c
src/sys/arch/shark/shark: scr.c
src/sys/dev: video.c
src/sys/dev/pci: cs4280.c
src/sys/fs/msdosfs: bootsect.h
src/sys/ufs/chfs: ebh.c

Log Message:
s/fist/first/


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/libexec/telnetd/state.c
cvs rdiff -u -r1.302 -r1.303 src/sys/arch/mips/mips/mips_machdep.c
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/shark/shark/scr.c
cvs rdiff -u -r1.41 -r1.42 src/sys/dev/video.c
cvs rdiff -u -r1.73 -r1.74 src/sys/dev/pci/cs4280.c
cvs rdiff -u -r1.6 -r1.7 src/sys/fs/msdosfs/bootsect.h
cvs rdiff -u -r1.7 -r1.8 src/sys/ufs/chfs/ebh.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/telnetd/state.c
diff -u src/libexec/telnetd/state.c:1.31 src/libexec/telnetd/state.c:1.32
--- src/libexec/telnetd/state.c:1.31	Sun Feb  3 03:19:25 2019
+++ src/libexec/telnetd/state.c	Mon Aug  9 21:38:04 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: state.c,v 1.31 2019/02/03 03:19:25 mrg Exp $	*/
+/*	$NetBSD: state.c,v 1.32 2021/08/09 21:38:04 andvar Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)state.c	8.5 (Berkeley) 5/30/95";
 #else
-__RCSID("$NetBSD: state.c,v 1.31 2019/02/03 03:19:25 mrg Exp $");
+__RCSID("$NetBSD: state.c,v 1.32 2021/08/09 21:38:04 andvar Exp $");
 #endif
 #endif /* not lint */
 
@@ -1307,7 +1307,7 @@ suboption(void)
 		 * reversed.  To be interoperable, we need to determine
 		 * which way it is.  If the first recognized character
 		 * is a VAR or VALUE, then that will tell us what
-		 * type of client it is.  If the fist recognized
+		 * type of client it is.  If the first recognized
 		 * character is a USERVAR, then we continue scanning
 		 * the suboption looking for two consecutive
 		 * VAR or VALUE fields.  We should not get two

Index: src/sys/arch/mips/mips/mips_machdep.c
diff -u src/sys/arch/mips/mips/mips_machdep.c:1.302 src/sys/arch/mips/mips/mips_machdep.c:1.303
--- src/sys/arch/mips/mips/mips_machdep.c:1.302	Wed Jun  2 00:00:39 2021
+++ src/sys/arch/mips/mips/mips_machdep.c	Mon Aug  9 21:38:04 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mips_machdep.c,v 1.302 2021/06/02 00:00:39 simonb Exp $	*/
+/*	$NetBSD: mips_machdep.c,v 1.303 2021/08/09 21:38:04 andvar Exp $	*/
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -111,7 +111,7 @@
  */
 
 #include 			/* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.302 2021/06/02 00:00:39 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.303 2021/08/09 21:38:04 andvar Exp $");
 
 #define __INTR_PRIVATE
 #include "opt_cputype.h"
@@ -2082,7 +2082,7 @@ mips_init_msgbuf(void)
 	uvm_physseg_t bank = uvm_physseg_get_last();
 #ifndef _LP64
 	/*
-	 * Fist the physical segment that can be mapped to KSEG0
+	 * First the physical segment that can be mapped to KSEG0
 	 */
 	for (; uvm_physseg_valid_p(bank); bank = uvm_physseg_get_prev(bank)) {
 		if (uvm_physseg_get_avail_start(bank) + atop(sz) <= atop(MIPS_PHYS_MASK))

Index: src/sys/arch/shark/shark/scr.c
diff -u src/sys/arch/shark/shark/scr.c:1.32 src/sys/arch/shark/shark/scr.c:1.33
--- src/sys/arch/shark/shark/scr.c:1.32	Mon Aug  9 19:24:33 2021
+++ src/sys/arch/shark/shark/scr.c	Mon Aug  9 21:38:04 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: scr.c,v 1.32 2021/08/09 19:24:33 andvar Exp $	*/
+/*	$NetBSD: scr.c,v 1.33 2021/08/09 21:38:04 andvar Exp $	*/
 
 /*
  * Copyright 1997
@@ -102,7 +102,7 @@
 */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: scr.c,v 1.32 2021/08/09 19:24:33 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scr.c,v 1.33 2021/08/09 21:38:04 andvar Exp $");
 
 #include "opt_ddb.h"
 
@@ -2914,7 +2914,7 @@ static void   t0RecvByteSM(struct scr_so
 sc->clkCountDataSend= sc->clkCountDataSend  *2;
 
 
-/* adjust this so that we have clocked in only fist bit of TS */
+/* adjust this so that we have clocked in only first bit of TS */
 sc->shiftParity = 0;
 sc->shiftByte   = 0;
 sc->shiftBits   = 1;

Index: src/sys/dev/video.c
diff -u src/sys/dev/video.c:1.41 src/sys/dev/video.c:1.42
--- src/sys/dev/video.c:1.41	Sat Aug  7 16:19:08 2021
+++ src/sys/dev/video.c	Mon Aug  9 21:38:04 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: video.c,v 1.41 2021/08/07 16:19:08 thorpej Exp $ */
+/* $NetBSD: video.c,v 1.42 2021/08/09 21:38:04 andvar Exp $ */
 
 /*
  * Copyright (c) 2008 Patrick Mahoney 
@@ -36,7 +36,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: video.c,v 1.41 2021/08/07 16:19:08 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: video.c,v 1.42 2021/08/09 21:38:04 andvar Exp $");
 
 #include "video.h"
 #if NVIDEO > 0
@@ -153,7 

CVS commit: src/sys

2021-08-09 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Aug  9 21:20:50 UTC 2021

Modified Files:
src/sys/arch/x86/x86: intr.c
src/sys/arch/xen/x86: xen_intr.c
src/sys/dev/ic: athrate-sample.c

Log Message:
s/alway /always/


To generate a diff of this commit:
cvs rdiff -u -r1.154 -r1.155 src/sys/arch/x86/x86/intr.c
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/xen/x86/xen_intr.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/ic/athrate-sample.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/x86/intr.c
diff -u src/sys/arch/x86/x86/intr.c:1.154 src/sys/arch/x86/x86/intr.c:1.155
--- src/sys/arch/x86/x86/intr.c:1.154	Fri Feb 19 05:34:37 2021
+++ src/sys/arch/x86/x86/intr.c	Mon Aug  9 21:20:50 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: intr.c,v 1.154 2021/02/19 05:34:37 knakahara Exp $	*/
+/*	$NetBSD: intr.c,v 1.155 2021/08/09 21:20:50 andvar Exp $	*/
 
 /*
  * Copyright (c) 2007, 2008, 2009, 2019 The NetBSD Foundation, Inc.
@@ -133,7 +133,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.154 2021/02/19 05:34:37 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.155 2021/08/09 21:20:50 andvar Exp $");
 
 #include "opt_intrdebug.h"
 #include "opt_multiprocessor.h"
@@ -317,7 +317,7 @@ intr_create_intrid(int legacy_irq, struc
 	}
 
 	/*
-	 * If the device is pci, "legacy_irq" is alway -1. Least 8 bit of "ih"
+	 * If the device is pci, "legacy_irq" is always -1. Least 8 bit of "ih"
 	 * is only used in intr_string() to show the irq number.
 	 * If the device is "legacy"(such as floppy), it should not use
 	 * intr_string().

Index: src/sys/arch/xen/x86/xen_intr.c
diff -u src/sys/arch/xen/x86/xen_intr.c:1.28 src/sys/arch/xen/x86/xen_intr.c:1.29
--- src/sys/arch/xen/x86/xen_intr.c:1.28	Sat Aug  1 12:39:40 2020
+++ src/sys/arch/xen/x86/xen_intr.c	Mon Aug  9 21:20:50 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: xen_intr.c,v 1.28 2020/08/01 12:39:40 jdolecek Exp $	*/
+/*	$NetBSD: xen_intr.c,v 1.29 2021/08/09 21:20:50 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: xen_intr.c,v 1.28 2020/08/01 12:39:40 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xen_intr.c,v 1.29 2021/08/09 21:20:50 andvar Exp $");
 
 #include "opt_multiprocessor.h"
 #include "opt_pci.h"
@@ -465,7 +465,7 @@ xen_intr_create_intrid(int legacy_irq, s
 	}
 
 	/*
-	 * If the device is pci, "legacy_irq" is alway -1. Least 8 bit of "ih"
+	 * If the device is pci, "legacy_irq" is always -1. Least 8 bit of "ih"
 	 * is only used in intr_string() to show the irq number.
 	 * If the device is "legacy"(such as floppy), it should not use
 	 * intr_string().

Index: src/sys/dev/ic/athrate-sample.c
diff -u src/sys/dev/ic/athrate-sample.c:1.20 src/sys/dev/ic/athrate-sample.c:1.21
--- src/sys/dev/ic/athrate-sample.c:1.20	Sun Nov 10 21:16:35 2019
+++ src/sys/dev/ic/athrate-sample.c	Mon Aug  9 21:20:50 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: athrate-sample.c,v 1.20 2019/11/10 21:16:35 chs Exp $ */
+/*	$NetBSD: athrate-sample.c,v 1.21 2021/08/09 21:20:50 andvar Exp $ */
 
 /*-
  * Copyright (c) 2005 John Bicket
@@ -41,7 +41,7 @@
 __FBSDID("$FreeBSD: src/sys/dev/ath/ath_rate/sample/sample.c,v 1.9 2005/07/22 16:50:17 sam Exp $");
 #endif
 #ifdef __NetBSD__
-__KERNEL_RCSID(0, "$NetBSD: athrate-sample.c,v 1.20 2019/11/10 21:16:35 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: athrate-sample.c,v 1.21 2021/08/09 21:20:50 andvar Exp $");
 #endif
 
 
@@ -372,7 +372,7 @@ ath_rate_setupxtxdesc(struct ath_softc *
 	int size_bin = 0;
 	int ndx = 0;
 
-	size_bin = size_to_bin(frame_size);	// TODO: it's correct that frame_size alway 0 ?
+	size_bin = size_to_bin(frame_size);	// TODO: it's correct that frame_size always 0 ?
 	ndx = sn->current_rate[size_bin]; /* retry at the current bit-rate */
 	
 	if (!sn->stats[size_bin][ndx].packets_acked) {



CVS commit: src/sys/arch

2021-08-09 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Aug  9 21:13:06 UTC 2021

Modified Files:
src/sys/arch/amiga/dev: grf_rh.c
src/sys/arch/mips/include: cpuregs.h
src/sys/arch/mvme68k/dev: zsvar.h

Log Message:
s/definitons/definitions/


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/sys/arch/amiga/dev/grf_rh.c
cvs rdiff -u -r1.111 -r1.112 src/sys/arch/mips/include/cpuregs.h
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/mvme68k/dev/zsvar.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/dev/grf_rh.c
diff -u src/sys/arch/amiga/dev/grf_rh.c:1.59 src/sys/arch/amiga/dev/grf_rh.c:1.60
--- src/sys/arch/amiga/dev/grf_rh.c:1.59	Sat Aug  7 16:18:41 2021
+++ src/sys/arch/amiga/dev/grf_rh.c	Mon Aug  9 21:13:05 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: grf_rh.c,v 1.59 2021/08/07 16:18:41 thorpej Exp $ */
+/*	$NetBSD: grf_rh.c,v 1.60 2021/08/09 21:13:05 andvar Exp $ */
 
 /*
  * Copyright (c) 1994 Markus Wild
@@ -34,7 +34,7 @@
 #include "opt_retina.h"
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: grf_rh.c,v 1.59 2021/08/07 16:18:41 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: grf_rh.c,v 1.60 2021/08/09 21:13:05 andvar Exp $");
 
 #include "grfrh.h"
 #include "ite.h"
@@ -1221,7 +1221,7 @@ unsigned char RZ3StdPalette[16*3] = {
  * Make sure your maximum width (MW) and height (MH) are even multiples of
  * the fonts' width and height.
  *
- * You may use definitons created by the old DefineMonitor, but you'll get
+ * You may use definitions created by the old DefineMonitor, but you'll get
  * better results with the new DefineMonitor supplied along with the Retin Z3.
 */
 

Index: src/sys/arch/mips/include/cpuregs.h
diff -u src/sys/arch/mips/include/cpuregs.h:1.111 src/sys/arch/mips/include/cpuregs.h:1.112
--- src/sys/arch/mips/include/cpuregs.h:1.111	Sat May 29 12:35:27 2021
+++ src/sys/arch/mips/include/cpuregs.h	Mon Aug  9 21:13:05 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpuregs.h,v 1.111 2021/05/29 12:35:27 simonb Exp $	*/
+/*	$NetBSD: cpuregs.h,v 1.112 2021/08/09 21:13:05 andvar Exp $	*/
 
 /*
  * Copyright (c) 2009 Miodrag Vallat.
@@ -273,7 +273,7 @@
 #define	MIPS_SR_INT_ENA_PREV	MIPS1_SR_INT_ENA_PREV
 
 /*
- * R4000 status register bit definitons,
+ * R4000 status register bit definitions,
  * where different from r2000/r3000.
  */
 #define	MIPS3_SR_XX		0x8000

Index: src/sys/arch/mvme68k/dev/zsvar.h
diff -u src/sys/arch/mvme68k/dev/zsvar.h:1.12 src/sys/arch/mvme68k/dev/zsvar.h:1.13
--- src/sys/arch/mvme68k/dev/zsvar.h:1.12	Mon Apr 28 20:23:29 2008
+++ src/sys/arch/mvme68k/dev/zsvar.h	Mon Aug  9 21:13:06 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: zsvar.h,v 1.12 2008/04/28 20:23:29 martin Exp $	*/
+/*	$NetBSD: zsvar.h,v 1.13 2021/08/09 21:13:06 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 /*
- * Non-exported definitons common to the different attachment
+ * Non-exported definitions common to the different attachment
  * types for the SCC on the Motorola MVME series of computers.
  */
 



CVS commit: src/sys

2021-08-09 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Aug  9 21:08:06 UTC 2021

Modified Files:
src/sys/arch/sparc/sparc: iommu.c locore.s pmap.c
src/sys/arch/sparc64/sparc64: machdep.c
src/sys/dev/pci: if_dge.c
src/sys/lib/libunwind: DwarfParser.hpp

Log Message:
s/aligment/alignment/ + one more typo fix in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/sys/arch/sparc/sparc/iommu.c
cvs rdiff -u -r1.280 -r1.281 src/sys/arch/sparc/sparc/locore.s
cvs rdiff -u -r1.374 -r1.375 src/sys/arch/sparc/sparc/pmap.c
cvs rdiff -u -r1.299 -r1.300 src/sys/arch/sparc64/sparc64/machdep.c
cvs rdiff -u -r1.59 -r1.60 src/sys/dev/pci/if_dge.c
cvs rdiff -u -r1.6 -r1.7 src/sys/lib/libunwind/DwarfParser.hpp

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/sparc/sparc/iommu.c
diff -u src/sys/arch/sparc/sparc/iommu.c:1.99 src/sys/arch/sparc/sparc/iommu.c:1.100
--- src/sys/arch/sparc/sparc/iommu.c:1.99	Sat Aug  7 16:19:05 2021
+++ src/sys/arch/sparc/sparc/iommu.c	Mon Aug  9 21:08:06 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: iommu.c,v 1.99 2021/08/07 16:19:05 thorpej Exp $ */
+/*	$NetBSD: iommu.c,v 1.100 2021/08/09 21:08:06 andvar Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -37,7 +37,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: iommu.c,v 1.99 2021/08/07 16:19:05 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: iommu.c,v 1.100 2021/08/09 21:08:06 andvar Exp $");
 
 #include "opt_sparc_arch.h"
 
@@ -763,7 +763,7 @@ iommu_dmamem_map(bus_dma_tag_t t, bus_dm
 	/*
 	 * In case the segment has already been loaded by
 	 * iommu_dmamap_load_raw(), find a region of kernel virtual
-	 * addresses that can accommodate our aligment requirements.
+	 * addresses that can accommodate our alignment requirements.
 	 */
 	va = _bus_dma_valloc_skewed(size, 0, align,
 segs[0].ds_addr & (align - 1));

Index: src/sys/arch/sparc/sparc/locore.s
diff -u src/sys/arch/sparc/sparc/locore.s:1.280 src/sys/arch/sparc/sparc/locore.s:1.281
--- src/sys/arch/sparc/sparc/locore.s:1.280	Sun Apr 25 21:59:38 2021
+++ src/sys/arch/sparc/sparc/locore.s	Mon Aug  9 21:08:06 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: locore.s,v 1.280 2021/04/25 21:59:38 mrg Exp $	*/
+/*	$NetBSD: locore.s,v 1.281 2021/08/09 21:08:06 andvar Exp $	*/
 
 /*
  * Copyright (c) 1996 Paul Kranenburg
@@ -356,7 +356,7 @@ sun4_notsup:
 	_C_LABEL(kernel_text) = start		! for kvm_mkdb(8)
 _ASM_LABEL(start):
 /*
- * Put sun4 traptable first, since it needs the most stringent aligment (8192)
+ * Put sun4 traptable first, since it needs the most stringent alignment (8192)
  */
 #if defined(SUN4)
 trapbase_sun4:

Index: src/sys/arch/sparc/sparc/pmap.c
diff -u src/sys/arch/sparc/sparc/pmap.c:1.374 src/sys/arch/sparc/sparc/pmap.c:1.375
--- src/sys/arch/sparc/sparc/pmap.c:1.374	Sat Aug  7 19:23:03 2021
+++ src/sys/arch/sparc/sparc/pmap.c	Mon Aug  9 21:08:06 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.c,v 1.374 2021/08/07 19:23:03 uwe Exp $ */
+/*	$NetBSD: pmap.c,v 1.375 2021/08/09 21:08:06 andvar Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -56,7 +56,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.374 2021/08/07 19:23:03 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.375 2021/08/09 21:08:06 andvar Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -310,7 +310,7 @@ struct mmuentry region_freelist, region_
 #endif
 /*
  * We use a double linked list looping through its static head (which
- * alway remains on the list), so we can remove any other member from
+ * always remains on the list), so we can remove any other member from
  * a list without knowing which list it is on.
  */
 static void inline
@@ -3636,7 +3636,7 @@ pmap_bootstrap4m(void *top)
 
 	/*
 	 * Allocate context table.
-	 * To keep supersparc happy, minimum aligment is on a 4K boundary.
+	 * To keep supersparc happy, minimum alignment is on a 4K boundary.
 	 */
 	ctxtblsize = uimax(ncontext,1024) * sizeof(int);
 	cpuinfo.ctx_tbl = (int *)roundup((u_int)p, ctxtblsize);

Index: src/sys/arch/sparc64/sparc64/machdep.c
diff -u src/sys/arch/sparc64/sparc64/machdep.c:1.299 src/sys/arch/sparc64/sparc64/machdep.c:1.300
--- src/sys/arch/sparc64/sparc64/machdep.c:1.299	Mon Jan  4 14:48:52 2021
+++ src/sys/arch/sparc64/sparc64/machdep.c	Mon Aug  9 21:08:06 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.299 2021/01/04 14:48:52 thorpej Exp $ */
+/*	$NetBSD: machdep.c,v 1.300 2021/08/09 21:08:06 andvar Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2019 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.299 2021/01/04 14:48:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.300 2021/08/09 21:08:06 andvar Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -1461,7 +1461,7 @@ _bus_dmamem_map(bus_dma_tag_t t, bus_dma
 
 	/*
 	 * Find a region of kernel virtual addresses that can accommodate
-	 * 

CVS commit: src

2021-08-09 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Aug  9 20:49:11 UTC 2021

Modified Files:
src/doc: BRANCHES TODO.modules
src/include: netdb.h string.h
src/lib/libc/compat/arch/hppa/sys: compat_sigpending.S
compat_sigprocmask.S compat_sigreturn.S compat_sigsuspend.S
src/lib/libc/gen: isinfd_ieee754.c isnand_ieee754.c
src/sys/arch/sandpoint/stand/altboot: brdsetup.c
src/sys/compat/common: Makefile.sysio files.common
src/sys/ddb: db_command.h
src/sys/dev/acpi: acpi_util.c
src/sys/dev/gpio: gpio.c
src/sys/dev/i2c: dbcool.c
src/sys/dev/ic: ath.c dp8390var.h sl811hs.c
src/sys/kern: compat_stub.c sys_ptrace_common.c tty_conf.c
src/sys/modules: Makefile
src/sys/net: if.h route.h
src/sys/netinet: sctp_pcb.h
src/sys/netipsec: key.h
src/usr.bin/find: option.c
src/usr.sbin/rpc.pcnfsd: README

Log Message:
fix various typos in compatibility, mainly in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.363 -r1.364 src/doc/BRANCHES
cvs rdiff -u -r1.23 -r1.24 src/doc/TODO.modules
cvs rdiff -u -r1.70 -r1.71 src/include/netdb.h
cvs rdiff -u -r1.52 -r1.53 src/include/string.h
cvs rdiff -u -r1.5 -r1.6 \
src/lib/libc/compat/arch/hppa/sys/compat_sigpending.S \
src/lib/libc/compat/arch/hppa/sys/compat_sigprocmask.S \
src/lib/libc/compat/arch/hppa/sys/compat_sigreturn.S \
src/lib/libc/compat/arch/hppa/sys/compat_sigsuspend.S
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/gen/isinfd_ieee754.c \
src/lib/libc/gen/isnand_ieee754.c
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/sandpoint/stand/altboot/brdsetup.c
cvs rdiff -u -r1.13 -r1.14 src/sys/compat/common/Makefile.sysio
cvs rdiff -u -r1.6 -r1.7 src/sys/compat/common/files.common
cvs rdiff -u -r1.41 -r1.42 src/sys/ddb/db_command.h
cvs rdiff -u -r1.24 -r1.25 src/sys/dev/acpi/acpi_util.c
cvs rdiff -u -r1.66 -r1.67 src/sys/dev/gpio/gpio.c
cvs rdiff -u -r1.62 -r1.63 src/sys/dev/i2c/dbcool.c
cvs rdiff -u -r1.135 -r1.136 src/sys/dev/ic/ath.c
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/ic/dp8390var.h
cvs rdiff -u -r1.106 -r1.107 src/sys/dev/ic/sl811hs.c
cvs rdiff -u -r1.21 -r1.22 src/sys/kern/compat_stub.c
cvs rdiff -u -r1.91 -r1.92 src/sys/kern/sys_ptrace_common.c
cvs rdiff -u -r1.56 -r1.57 src/sys/kern/tty_conf.c
cvs rdiff -u -r1.250 -r1.251 src/sys/modules/Makefile
cvs rdiff -u -r1.291 -r1.292 src/sys/net/if.h
cvs rdiff -u -r1.128 -r1.129 src/sys/net/route.h
cvs rdiff -u -r1.3 -r1.4 src/sys/netinet/sctp_pcb.h
cvs rdiff -u -r1.36 -r1.37 src/sys/netipsec/key.h
cvs rdiff -u -r1.28 -r1.29 src/usr.bin/find/option.c
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/rpc.pcnfsd/README

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

Modified files:

Index: src/doc/BRANCHES
diff -u src/doc/BRANCHES:1.363 src/doc/BRANCHES:1.364
--- src/doc/BRANCHES:1.363	Mon Aug  9 00:32:51 2021
+++ src/doc/BRANCHES	Mon Aug  9 20:49:08 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: BRANCHES,v 1.363 2021/08/09 00:32:51 thorpej Exp $
+#	$NetBSD: BRANCHES,v 1.364 2021/08/09 20:49:08 andvar Exp $
 #
 # This file contains a list of branches that exist in the NetBSD CVS
 # tree and their current state.
@@ -824,7 +824,7 @@ Maintainer:	Bill Stouder-Studenmund 		/* for backwards-compatibilty */
+#include 		/* for backwards-compatibility */
 __BEGIN_DECLS
 void	*memmem(const void *, size_t, const void *, size_t);
 char	*strcasestr(const char *, const char *);

Index: src/lib/libc/compat/arch/hppa/sys/compat_sigpending.S
diff -u src/lib/libc/compat/arch/hppa/sys/compat_sigpending.S:1.5 src/lib/libc/compat/arch/hppa/sys/compat_sigpending.S:1.6
--- src/lib/libc/compat/arch/hppa/sys/compat_sigpending.S:1.5	Tue May  5 20:43:47 2020
+++ src/lib/libc/compat/arch/hppa/sys/compat_sigpending.S	Mon Aug  9 20:49:08 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: compat_sigpending.S,v 1.5 2020/05/05 20:43:47 skrll Exp $	*/
+/*	$NetBSD: compat_sigpending.S,v 1.6 2021/08/09 20:49:08 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@ WARN_REFERENCES(sigpending, \
 ENTRY(sigpending, 0)
 	/*
 	 * AFAICT, since the hppa port came after __sigpending14,
-	 * we shouldn't have to supply the compatability sigpending.
+	 * we shouldn't have to supply the compatibility sigpending.
 	 */
 	b	__cerror
 	 ldi	EINVAL, %t1
Index: src/lib/libc/compat/arch/hppa/sys/compat_sigprocmask.S
diff -u src/lib/libc/compat/arch/hppa/sys/compat_sigprocmask.S:1.5 src/lib/libc/compat/arch/hppa/sys/compat_sigprocmask.S:1.6
--- src/lib/libc/compat/arch/hppa/sys/compat_sigprocmask.S:1.5	Tue May  5 20:43:47 2020
+++ src/lib/libc/compat/arch/hppa/sys/compat_sigprocmask.S	Mon Aug  9 20:49:08 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: compat_sigprocmask.S,v 1.5 2020/05/05 20:43:47 skrll Exp $	*/
+/*	$NetBSD: compat_sigprocmask.S,v 1.6 2021/08/09 20:49:08 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -38,7 

CVS commit: src

2021-08-09 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Aug  9 19:57:58 UTC 2021

Modified Files:
src/crypto/dist/ipsec-tools/src/racoon: algorithm.c
src/sys/arch/hpcmips/stand/lcboot: start.S
src/sys/compat/linux/arch/i386: linux_machdep.c
src/sys/kern: sched_4bsd.c
src/sys/lib/libkern/arch/hppa: bcopy.S
src/sys/net: if_types.h
src/sys/netinet: tcp_input.c
src/sys/opencrypto: crypto.c cryptodev.h

Log Message:
fix typos in asymmetry, asymmetric(al), symmetrical.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/crypto/dist/ipsec-tools/src/racoon/algorithm.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/hpcmips/stand/lcboot/start.S
cvs rdiff -u -r1.166 -r1.167 src/sys/compat/linux/arch/i386/linux_machdep.c
cvs rdiff -u -r1.44 -r1.45 src/sys/kern/sched_4bsd.c
cvs rdiff -u -r1.16 -r1.17 src/sys/lib/libkern/arch/hppa/bcopy.S
cvs rdiff -u -r1.31 -r1.32 src/sys/net/if_types.h
cvs rdiff -u -r1.430 -r1.431 src/sys/netinet/tcp_input.c
cvs rdiff -u -r1.114 -r1.115 src/sys/opencrypto/crypto.c
cvs rdiff -u -r1.40 -r1.41 src/sys/opencrypto/cryptodev.h

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

Modified files:

Index: src/crypto/dist/ipsec-tools/src/racoon/algorithm.c
diff -u src/crypto/dist/ipsec-tools/src/racoon/algorithm.c:1.9 src/crypto/dist/ipsec-tools/src/racoon/algorithm.c:1.10
--- src/crypto/dist/ipsec-tools/src/racoon/algorithm.c:1.9	Thu Nov 29 15:31:24 2012
+++ src/crypto/dist/ipsec-tools/src/racoon/algorithm.c	Mon Aug  9 19:57:57 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: algorithm.c,v 1.9 2012/11/29 15:31:24 vanhu Exp $	*/
+/*	$NetBSD: algorithm.c,v 1.10 2021/08/09 19:57:57 andvar Exp $	*/
 
 /* Id: algorithm.c,v 1.15 2006/05/23 20:23:09 manubsd Exp */
 
@@ -229,7 +229,7 @@ static struct misc_algorithm ipsec_compd
 };
 
 /*
- * In case of asymetric modes (hybrid xauth), what's racoon mode of
+ * In case of asymmetric modes (hybrid xauth), what's racoon mode of
  * operations ; it seems that the proposal should always use the
  * initiator half (unless a server initiates a connection, which is
  * not handled, and probably not useful).

Index: src/sys/arch/hpcmips/stand/lcboot/start.S
diff -u src/sys/arch/hpcmips/stand/lcboot/start.S:1.3 src/sys/arch/hpcmips/stand/lcboot/start.S:1.4
--- src/sys/arch/hpcmips/stand/lcboot/start.S:1.3	Sun Dec 11 12:17:34 2005
+++ src/sys/arch/hpcmips/stand/lcboot/start.S	Mon Aug  9 19:57:57 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: start.S,v 1.3 2005/12/11 12:17:34 christos Exp $ */
+/* $NetBSD: start.S,v 1.4 2021/08/09 19:57:57 andvar Exp $ */
 
 /*
  * Copyright (c) 2003 Naoto Shimazaki.
@@ -196,7 +196,7 @@ start:
 	 * B1Config = 01	(16Mbit)
 	 * Bstreftype = 1	(all raw refresh)
 	 * BstRefr = 0		(not allow burst refresh)
-	 * EDOAsym = 0		(asymetric)
+	 * EDOAsym = 0		(asymmetric)
 	 * B0Config = 01	(16Mbit)
 	 * EDO/SDRAM = 1	(SDRAM)
 	 */
@@ -233,7 +233,7 @@ start:
 	 * B1Config = 10	(64Mbit)
 	 * Bstreftype = 1	(all raw refresh)
 	 * BstRefr = 0		(not allow burst refresh)
-	 * EDOAsym = 0		(asymetric)
+	 * EDOAsym = 0		(asymmetric)
 	 * B0Config = 10	(64Mbit)
 	 * EDO/SDRAM = 1	(SDRAM)
 	 */

Index: src/sys/compat/linux/arch/i386/linux_machdep.c
diff -u src/sys/compat/linux/arch/i386/linux_machdep.c:1.166 src/sys/compat/linux/arch/i386/linux_machdep.c:1.167
--- src/sys/compat/linux/arch/i386/linux_machdep.c:1.166	Sun May 19 08:46:15 2019
+++ src/sys/compat/linux/arch/i386/linux_machdep.c	Mon Aug  9 19:57:57 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_machdep.c,v 1.166 2019/05/19 08:46:15 maxv Exp $	*/
+/*	$NetBSD: linux_machdep.c,v 1.167 2021/08/09 19:57:57 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1995, 2000, 2008, 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.166 2019/05/19 08:46:15 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.167 2021/08/09 19:57:57 andvar Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_user_ldt.h"
@@ -491,7 +491,7 @@ linux_read_ldt(struct lwp *l, const stru
 	size_t sz;
 
 	/*
-	 * I've checked the linux code - this function is asymetric with
+	 * I've checked the linux code - this function is asymmetric with
 	 * linux_write_ldt, and returns raw ldt entries.
 	 * NB, the code I saw zerod the spare parts of the user buffer.
 	 */

Index: src/sys/kern/sched_4bsd.c
diff -u src/sys/kern/sched_4bsd.c:1.44 src/sys/kern/sched_4bsd.c:1.45
--- src/sys/kern/sched_4bsd.c:1.44	Sat May 23 21:24:41 2020
+++ src/sys/kern/sched_4bsd.c	Mon Aug  9 19:57:57 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: sched_4bsd.c,v 1.44 2020/05/23 21:24:41 ad Exp $	*/
+/*	$NetBSD: sched_4bsd.c,v 1.45 2021/08/09 19:57:57 andvar Exp $	*/
 
 /*
  * Copyright (c) 1999, 2000, 2004, 2006, 2007, 2008, 2019, 2020
@@ -69,7 +69,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sched_4bsd.c,v 1.44 2020/05/23 21:24:41 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sched_4bsd.c,v 1.45 

CVS commit: src

2021-08-09 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Aug  9 19:24:33 UTC 2021

Modified Files:
src/distrib/alpha/instkernel/ramdisk: upgrade.sh
src/distrib/amiga/floppies/upgr: upgrade.sh
src/doc: TODO.smpnet
src/sys/arch/arm/gemini: gemini_ipm.c
src/sys/arch/hpcmips/tx: tx3912video.c
src/sys/arch/shark/shark: scr.c
src/sys/dev/mscp: mscp_disk.c
src/usr.sbin/sysinst/arch/hpcarm: md.c
src/usr.sbin/sysinst/arch/zaurus: md.c

Log Message:
fix various typos in comments and messages.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/distrib/alpha/instkernel/ramdisk/upgrade.sh
cvs rdiff -u -r1.9 -r1.10 src/distrib/amiga/floppies/upgr/upgrade.sh
cvs rdiff -u -r1.43 -r1.44 src/doc/TODO.smpnet
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/arm/gemini/gemini_ipm.c
cvs rdiff -u -r1.47 -r1.48 src/sys/arch/hpcmips/tx/tx3912video.c
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/shark/shark/scr.c
cvs rdiff -u -r1.89 -r1.90 src/sys/dev/mscp/mscp_disk.c
cvs rdiff -u -r1.9 -r1.10 src/usr.sbin/sysinst/arch/hpcarm/md.c
cvs rdiff -u -r1.10 -r1.11 src/usr.sbin/sysinst/arch/zaurus/md.c

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

Modified files:

Index: src/distrib/alpha/instkernel/ramdisk/upgrade.sh
diff -u src/distrib/alpha/instkernel/ramdisk/upgrade.sh:1.3 src/distrib/alpha/instkernel/ramdisk/upgrade.sh:1.4
--- src/distrib/alpha/instkernel/ramdisk/upgrade.sh:1.3	Sat Jul 26 17:06:26 2003
+++ src/distrib/alpha/instkernel/ramdisk/upgrade.sh	Mon Aug  9 19:24:32 2021
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: upgrade.sh,v 1.3 2003/07/26 17:06:26 salo Exp $
+# $NetBSD: upgrade.sh,v 1.4 2021/08/09 19:24:32 andvar Exp $
 #
 # Copyright (c) 1997 Perry E. Metzger
 # Copyright (c) 1994 Christopher G. Demetriou
@@ -62,7 +62,7 @@ echo	"This program is designed to help y
 echo	"on your hard disk, in a simple and rational way.  To upgrade, you"
 echo	"must have plenty of free space on all partitions which will be"
 echo	"upgraded.  If you have at least 1MB free on your root partition,"
-echo	"and several free on your /usr patition, you should be fine."
+echo	"and several free on your /usr partition, you should be fine."
 echo	""
 echo	"As with anything which modifies your hard drive's contents, this"
 echo	"program can cause SIGNIFICANT data loss, and you are advised"

Index: src/distrib/amiga/floppies/upgr/upgrade.sh
diff -u src/distrib/amiga/floppies/upgr/upgrade.sh:1.9 src/distrib/amiga/floppies/upgr/upgrade.sh:1.10
--- src/distrib/amiga/floppies/upgr/upgrade.sh:1.9	Wed Dec 23 09:13:21 2009
+++ src/distrib/amiga/floppies/upgr/upgrade.sh	Mon Aug  9 19:24:32 2021
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: upgrade.sh,v 1.9 2009/12/23 09:13:21 mbalmer Exp $
+# $NetBSD: upgrade.sh,v 1.10 2021/08/09 19:24:32 andvar Exp $
 #
 # Copyright (c) 1994 Christopher G. Demetriou
 # All rights reserved.
@@ -98,7 +98,7 @@ echo	"This program is designed to help y
 echo	"on your hard disk, in a simple and rational way.  To upgrade, you"
 echo	"must have plenty of free space on all partitions which will be"
 echo	"upgraded.  If you have at least 1MB free on your root partition,"
-echo	"and several free on your /usr patition, you should be fine."
+echo	"and several free on your /usr partition, you should be fine."
 echo	""
 echo	"As with anything which modifies your hard drive's contents, this"
 echo	"program can cause SIGNIFICANT data loss, and you are advised"

Index: src/doc/TODO.smpnet
diff -u src/doc/TODO.smpnet:1.43 src/doc/TODO.smpnet:1.44
--- src/doc/TODO.smpnet:1.43	Wed Aug  4 13:50:47 2021
+++ src/doc/TODO.smpnet	Mon Aug  9 19:24:33 2021
@@ -1,4 +1,4 @@
-$NetBSD: TODO.smpnet,v 1.43 2021/08/04 13:50:47 nia Exp $
+$NetBSD: TODO.smpnet,v 1.44 2021/08/09 19:24:33 andvar Exp $
 
 MP-safe components
 ==
@@ -129,7 +129,7 @@ bpf
 
 MP-ification of bpf requires all of bpf_mtap* are called in normal LWP context
 or softint context, i.e., not in hardware interrupt context.  For Tx, all
-bpf_mtap satisfy the requrement.  For Rx, most of bpf_mtap are called in softint.
+bpf_mtap satisfy the requirement.  For Rx, most of bpf_mtap are called in softint.
 Unfortunately some bpf_mtap on Rx are still called in hardware interrupt context.
 
 This is the list of the functions that have such bpf_mtap:
@@ -240,7 +240,7 @@ initializing address can loop in the net
 The address initialization creates an local route first and then registers an
 initializing address to the global hash table that is used to decide if an
 incoming packet destinates to the host by checking the destination of the packet
-is registered to the hash table.  So, if the host allows forwaring, an incoming
+is registered to the hash table.  So, if the host allows forwarding, an incoming
 packet can match on a local route of an initializing address at ip_output while
 it fails the to-self check described above at ip_input.  Because a matched local

CVS commit: src

2021-08-08 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Aug  8 21:50:10 UTC 2021

Modified Files:
src/sys/stand/efiboot: version
src/usr.sbin/sysinst: disklabel.c disks.c

Log Message:
s/partion/partition/ s/arrray/array/ in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/stand/efiboot/version
cvs rdiff -u -r1.43 -r1.44 src/usr.sbin/sysinst/disklabel.c
cvs rdiff -u -r1.73 -r1.74 src/usr.sbin/sysinst/disks.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/stand/efiboot/version
diff -u src/sys/stand/efiboot/version:1.27 src/sys/stand/efiboot/version:1.28
--- src/sys/stand/efiboot/version:1.27	Mon Jun 21 11:11:33 2021
+++ src/sys/stand/efiboot/version	Sun Aug  8 21:50:10 2021
@@ -1,4 +1,4 @@
-$NetBSD: version,v 1.27 2021/06/21 11:11:33 jmcneill Exp $
+$NetBSD: version,v 1.28 2021/08/08 21:50:10 andvar Exp $
 
 NOTE ANY CHANGES YOU MAKE TO THE EFI BOOTLOADER HERE.  The format of this
 file is important - make sure the entries are appended on end, last item
@@ -25,7 +25,7 @@ is taken as the current.
 2.2:	Remove support for storing settings in EFI env vars.
 2.3:	EFI RT and GOP support for devicetree mode.
 2.4:	Add ISO9660 support.
-2.5:	Recognize the EFI system partion as fstype MSDOS.
+2.5:	Recognize the EFI system partition as fstype MSDOS.
 2.6:	Disable ACPI support when booting big endian kernels.
 2.7:	Add basic support for booting from RAID1 volumes.
 2.8:	Add bi-endian disklabel and FFS support.

Index: src/usr.sbin/sysinst/disklabel.c
diff -u src/usr.sbin/sysinst/disklabel.c:1.43 src/usr.sbin/sysinst/disklabel.c:1.44
--- src/usr.sbin/sysinst/disklabel.c:1.43	Sun Jan 31 22:45:46 2021
+++ src/usr.sbin/sysinst/disklabel.c	Sun Aug  8 21:50:10 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: disklabel.c,v 1.43 2021/01/31 22:45:46 rillig Exp $	*/
+/*	$NetBSD: disklabel.c,v 1.44 2021/08/08 21:50:10 andvar Exp $	*/
 
 /*
  * Copyright 2018 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@ struct disklabel_disk_partitions {
  */
 size_t dl_maxpart;
 
-/* index into this arrray is the type code */
+/* index into this array is the type code */
 static struct part_type_desc dl_types[__arraycount(fstypenames)-1];
 
 struct dl_custom_ptype {
@@ -241,7 +241,7 @@ disklabel_parts_read(const char *disk, d
 
 		if (dlstart < start || dlend > (start+len)) {
 			/*
-			 * Kernel assumes different outer partion
+			 * Kernel assumes different outer partition
 			 * (probably not yet written back to disk)
 			 * so this label is invalid.
 			 */
@@ -332,7 +332,7 @@ disklabel_parts_read(const char *disk, d
 			break;
 		}
 		if (!found_real_part) {
-			/* no partion there yet */
+			/* no partition there yet */
 no_valid_label:
 			free(parts);
 			return NULL;

Index: src/usr.sbin/sysinst/disks.c
diff -u src/usr.sbin/sysinst/disks.c:1.73 src/usr.sbin/sysinst/disks.c:1.74
--- src/usr.sbin/sysinst/disks.c:1.73	Wed Jul 14 18:56:05 2021
+++ src/usr.sbin/sysinst/disks.c	Sun Aug  8 21:50:10 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: disks.c,v 1.73 2021/07/14 18:56:05 martin Exp $ */
+/*	$NetBSD: disks.c,v 1.74 2021/08/08 21:50:10 andvar Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -2522,7 +2522,7 @@ free_selected_partitions(struct selected
 		/* remove from list before testing for other instances */
 		selected->selection[i].parts = NULL;
 
-		/* if this is the secondary partion set, the parent owns it */
+		/* if this is the secondary partition set, the parent owns it */
 		if (parts->parent != NULL)
 			continue;
 



CVS commit: src/sys/dev/raidframe

2021-08-08 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Aug  8 21:45:53 UTC 2021

Modified Files:
src/sys/dev/raidframe: rf_parityscan.c

Log Message:
s/arry/array/


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/dev/raidframe/rf_parityscan.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/raidframe/rf_parityscan.c
diff -u src/sys/dev/raidframe/rf_parityscan.c:1.37 src/sys/dev/raidframe/rf_parityscan.c:1.38
--- src/sys/dev/raidframe/rf_parityscan.c:1.37	Fri Jul 23 00:54:45 2021
+++ src/sys/dev/raidframe/rf_parityscan.c	Sun Aug  8 21:45:53 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: rf_parityscan.c,v 1.37 2021/07/23 00:54:45 oster Exp $	*/
+/*	$NetBSD: rf_parityscan.c,v 1.38 2021/08/08 21:45:53 andvar Exp $	*/
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -33,7 +33,7 @@
  /
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: rf_parityscan.c,v 1.37 2021/07/23 00:54:45 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_parityscan.c,v 1.38 2021/08/08 21:45:53 andvar Exp $");
 
 #include 
 
@@ -50,7 +50,7 @@ __KERNEL_RCSID(0, "$NetBSD: rf_paritysca
 
 /*
  *
- * walk through the entire arry and write new parity.  This works by
+ * walk through the entire array and write new parity.  This works by
  * creating two DAGs, one to read a stripe of data and one to write
  * new parity.  The first is executed, the data is xored together, and
  * then the second is executed.  To avoid constantly building and



CVS commit: src/sys/dev/pci/cxgb

2021-08-08 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Aug  8 20:57:09 UTC 2021

Modified Files:
src/sys/dev/pci/cxgb: cxgb_offload.c

Log Message:
s/propely/properly/


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/pci/cxgb/cxgb_offload.c

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

Modified files:

Index: src/sys/dev/pci/cxgb/cxgb_offload.c
diff -u src/sys/dev/pci/cxgb/cxgb_offload.c:1.6 src/sys/dev/pci/cxgb/cxgb_offload.c:1.7
--- src/sys/dev/pci/cxgb/cxgb_offload.c:1.6	Fri Dec 27 09:22:20 2019
+++ src/sys/dev/pci/cxgb/cxgb_offload.c	Sun Aug  8 20:57:09 2021
@@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE.
 
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: cxgb_offload.c,v 1.6 2019/12/27 09:22:20 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cxgb_offload.c,v 1.7 2021/08/08 20:57:09 andvar Exp $");
 
 #include 
 #include 
@@ -516,7 +516,7 @@ cxgb_insert_tid(struct toedev *tdev, str
 }
 
 /*
- * Populate a TID_RELEASE WR.  The mbuf must be already propely sized.
+ * Populate a TID_RELEASE WR.  The mbuf must be already properly sized.
  */
 static inline void
 mk_tid_release(struct mbuf *m, unsigned int tid)



CVS commit: src

2021-08-08 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Aug  8 20:50:12 UTC 2021

Modified Files:
src/bin/sh: var.c
src/sys/dev/usb: umidi.c

Log Message:
s/varable/variable s/explictly/explicitly/ s/proerly/properly/ in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 src/bin/sh/var.c
cvs rdiff -u -r1.83 -r1.84 src/sys/dev/usb/umidi.c

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

Modified files:

Index: src/bin/sh/var.c
diff -u src/bin/sh/var.c:1.78 src/bin/sh/var.c:1.79
--- src/bin/sh/var.c:1.78	Thu Feb 14 11:15:24 2019
+++ src/bin/sh/var.c	Sun Aug  8 20:50:12 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: var.c,v 1.78 2019/02/14 11:15:24 kre Exp $	*/
+/*	$NetBSD: var.c,v 1.79 2021/08/08 20:50:12 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)var.c	8.3 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: var.c,v 1.78 2019/02/14 11:15:24 kre Exp $");
+__RCSID("$NetBSD: var.c,v 1.79 2021/08/08 20:50:12 andvar Exp $");
 #endif
 #endif /* not lint */
 
@@ -197,7 +197,7 @@ static void export_usage(const char *) _
 STATIC int makespecial(const char *);
 
 /*
- * Initialize the varable symbol tables and import the environment
+ * Initialize the variable symbol tables and import the environment
  */
 
 #ifdef mkinit
@@ -1248,7 +1248,7 @@ unsetvar(const char *s, int unexport)
 
 
 /*
- * Returns true if the two strings specify the same varable.  The first
+ * Returns true if the two strings specify the same viarable.  The first
  * variable name is terminated by '='; the second may be terminated by
  * either '=' or '\0'.
  */
@@ -1570,7 +1570,7 @@ get_random(struct var *vp)
 
 			/*
 			 * initialisation (without pre-seeding),
-			 * or explictly requesting a truly random seed.
+			 * or explicitly requesting a truly random seed.
 			 */
 			INTOFF;
 			fd = open("/dev/urandom", 0);

Index: src/sys/dev/usb/umidi.c
diff -u src/sys/dev/usb/umidi.c:1.83 src/sys/dev/usb/umidi.c:1.84
--- src/sys/dev/usb/umidi.c:1.83	Wed Jan 20 22:46:33 2021
+++ src/sys/dev/usb/umidi.c	Sun Aug  8 20:50:12 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: umidi.c,v 1.83 2021/01/20 22:46:33 jdolecek Exp $	*/
+/*	$NetBSD: umidi.c,v 1.84 2021/08/08 20:50:12 andvar Exp $	*/
 
 /*
  * Copyright (c) 2001, 2012, 2014 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: umidi.c,v 1.83 2021/01/20 22:46:33 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umidi.c,v 1.84 2021/08/08 20:50:12 andvar Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1388,7 +1388,7 @@ close_in_jack(struct umidi_jack *jack)
 			 * We have to drop the (interrupt) lock so that
 			 * the USB thread lock can be safely taken by
 			 * the abort operation.  This is safe as this
-			 * either closing or dying will be set proerly.
+			 * either closing or dying will be set properly.
 			 */
 			mutex_exit(>sc_lock);
 			usbd_abort_pipe(jack->endpoint->pipe);
@@ -1525,7 +1525,7 @@ deactivate_all_mididevs(struct umidi_sof
  *  Otherwise:
  *  - support a DISPLAY_BASE_CN quirk (add the value to each internal cable
  *number for display)
- *  - support an array quirk explictly giving a char * for each jack.
+ *  - support an array quirk explicitly giving a char * for each jack.
  * For now, you get 0-based cable numbers. If there are multiple endpoints and
  * the CNs are not globally unique, each is shown with its associated endpoint
  * address in hex also. That should not be necessary when using iJack values



CVS commit: src/share/man/man9

2021-08-08 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Aug  8 16:12:10 UTC 2021

Modified Files:
src/share/man/man9: autoconf.9

Log Message:
change othersize to otherwise. I believe this is what was meant in the context.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/share/man/man9/autoconf.9

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/man9/autoconf.9
diff -u src/share/man/man9/autoconf.9:1.34 src/share/man/man9/autoconf.9:1.35
--- src/share/man/man9/autoconf.9:1.34	Sat Aug  7 20:41:17 2021
+++ src/share/man/man9/autoconf.9	Sun Aug  8 16:12:10 2021
@@ -1,4 +1,4 @@
-.\" $NetBSD: autoconf.9,v 1.34 2021/08/07 20:41:17 uwe Exp $
+.\" $NetBSD: autoconf.9,v 1.35 2021/08/08 16:12:10 andvar Exp $
 .\"
 .\" Copyright (c) 2001, 2002, 2021 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -334,7 +334,7 @@ Invokes the driver's match function acco
 The
 .Fn config_probe
 function returns a nonzero integer to indicate a successful probe
-and a value of 0 othersize.
+and a value of 0 otherwise.
 Unlike
 .Fn config_match ,
 the return value of



CVS commit: src

2021-08-07 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Aug  7 19:41:14 UTC 2021

Modified Files:
src/share/man/man4: gpiopps.4
src/share/man/man9: autoconf.9
src/sys/arch/dreamcast/dev/g2: gapspci_pci.c
src/sys/arch/evbarm/conf: files.integrator
src/sys/dev/microcode/aic7xxx: aic7xxx.reg

Log Message:
s/configuraiton/configuration/ in comments and man pages.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/man/man4/gpiopps.4
cvs rdiff -u -r1.32 -r1.33 src/share/man/man9/autoconf.9
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/dreamcast/dev/g2/gapspci_pci.c
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/evbarm/conf/files.integrator
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/microcode/aic7xxx/aic7xxx.reg

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/man4/gpiopps.4
diff -u src/share/man/man4/gpiopps.4:1.2 src/share/man/man4/gpiopps.4:1.3
--- src/share/man/man4/gpiopps.4:1.2	Sun May 20 15:28:27 2018
+++ src/share/man/man4/gpiopps.4	Sat Aug  7 19:41:13 2021
@@ -1,4 +1,4 @@
-.\" $NetBSD: gpiopps.4,v 1.2 2018/05/20 15:28:27 wiz Exp $
+.\" $NetBSD: gpiopps.4,v 1.3 2021/08/07 19:41:13 andvar Exp $
 .\"
 .\" Copyright (c) 2016 Brad Spencer 
 .\"
@@ -39,7 +39,7 @@ Pin configurations are discussed below.
 .Pp
 The
 .Ar flag
-locator modifies the pin configuraiton:
+locator modifies the pin configuration:
 .Bl -tag -width ""
 .It Dv 0x01
 The PPS ASSERT signal should be triggered on the negative

Index: src/share/man/man9/autoconf.9
diff -u src/share/man/man9/autoconf.9:1.32 src/share/man/man9/autoconf.9:1.33
--- src/share/man/man9/autoconf.9:1.32	Sat Aug  7 16:20:02 2021
+++ src/share/man/man9/autoconf.9	Sat Aug  7 19:41:13 2021
@@ -1,4 +1,4 @@
-.\" $NetBSD: autoconf.9,v 1.32 2021/08/07 16:20:02 thorpej Exp $
+.\" $NetBSD: autoconf.9,v 1.33 2021/08/07 19:41:13 andvar Exp $
 .\"
 .\" Copyright (c) 2001, 2002, 2021 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -302,7 +302,7 @@ the device.
 .It Fn config_probe "parent" "cf" "aux"
 Probe for a device
 .Pq indirect configuration .
-Invokes the driver's match function according to the configuraiton table.
+Invokes the driver's match function according to the configuration table.
 The
 .Fn config_probe
 function returns a nonzero integer to indicate a successful probe

Index: src/sys/arch/dreamcast/dev/g2/gapspci_pci.c
diff -u src/sys/arch/dreamcast/dev/g2/gapspci_pci.c:1.17 src/sys/arch/dreamcast/dev/g2/gapspci_pci.c:1.18
--- src/sys/arch/dreamcast/dev/g2/gapspci_pci.c:1.17	Fri Oct 23 08:40:08 2015
+++ src/sys/arch/dreamcast/dev/g2/gapspci_pci.c	Sat Aug  7 19:41:13 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: gapspci_pci.c,v 1.17 2015/10/23 08:40:08 knakahara Exp $	*/
+/*	$NetBSD: gapspci_pci.c,v 1.18 2021/08/07 19:41:13 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2001 Marcus Comstedt.
@@ -34,11 +34,11 @@
  */
 
 /*
- * PCI configuraiton space implementation for the SEGA GAPS PCI bridge.
+ * PCI configuration space implementation for the SEGA GAPS PCI bridge.
  */
 
 #include 			/* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: gapspci_pci.c,v 1.17 2015/10/23 08:40:08 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gapspci_pci.c,v 1.18 2021/08/07 19:41:13 andvar Exp $");
 
 #include 
 #include 

Index: src/sys/arch/evbarm/conf/files.integrator
diff -u src/sys/arch/evbarm/conf/files.integrator:1.13 src/sys/arch/evbarm/conf/files.integrator:1.14
--- src/sys/arch/evbarm/conf/files.integrator:1.13	Thu Jun 22 15:27:23 2017
+++ src/sys/arch/evbarm/conf/files.integrator	Sat Aug  7 19:41:13 2021
@@ -1,6 +1,6 @@
-#	$NetBSD: files.integrator,v 1.13 2017/06/22 15:27:23 christos Exp $
+#	$NetBSD: files.integrator,v 1.14 2021/08/07 19:41:13 andvar Exp $
 #
-# ARM, Ltd. Integrator evaluation board configuraiton info
+# ARM, Ltd. Integrator evaluation board configuration info
 #
 
 filearch/arm/arm32/irq_dispatch.S

Index: src/sys/dev/microcode/aic7xxx/aic7xxx.reg
diff -u src/sys/dev/microcode/aic7xxx/aic7xxx.reg:1.4 src/sys/dev/microcode/aic7xxx/aic7xxx.reg:1.5
--- src/sys/dev/microcode/aic7xxx/aic7xxx.reg:1.4	Sun Dec 11 12:22:18 2005
+++ src/sys/dev/microcode/aic7xxx/aic7xxx.reg	Sat Aug  7 19:41:14 2021
@@ -39,7 +39,7 @@
  *
  * $FreeBSD: /repoman/r/ncvs/src/sys/dev/aic7xxx/aic7xxx.reg,v 1.43 2003/01/20 20:44:55 gibbs Exp $
  */
-VERSION = "$NetBSD: aic7xxx.reg,v 1.4 2005/12/11 12:22:18 christos Exp $"
+VERSION = "$NetBSD: aic7xxx.reg,v 1.5 2021/08/07 19:41:14 andvar Exp $"
 
 /*
  * This file is processed by the aic7xxx_asm utility for use in assembling
@@ -1518,7 +1518,7 @@ scratch_ram {
 	size		6
 	/*
 	 * These are reserved registers in the card's scratch ram on the 2742.
-	 * The EISA configuraiton chip is mapped here.  On Rev E. of the
+	 * The EISA configuration chip is mapped here.  On Rev E. of the
 	 * aic7770, the sequencer can use this area for scratch, but the
 	 * host cannot directly 

CVS commit: src

2021-08-06 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Aug  6 07:55:13 UTC 2021

Modified Files:
src: build.sh
src/sys/netinet: tcp_input.c
src/usr.sbin/installboot: evboards.c

Log Message:
fix various typos in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.353 -r1.354 src/build.sh
cvs rdiff -u -r1.429 -r1.430 src/sys/netinet/tcp_input.c
cvs rdiff -u -r1.5 -r1.6 src/usr.sbin/installboot/evboards.c

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

Modified files:

Index: src/build.sh
diff -u src/build.sh:1.353 src/build.sh:1.354
--- src/build.sh:1.353	Mon Jun  7 17:11:16 2021
+++ src/build.sh	Fri Aug  6 07:55:13 2021
@@ -1,5 +1,5 @@
 #! /usr/bin/env sh
-#	$NetBSD: build.sh,v 1.353 2021/06/07 17:11:16 christos Exp $
+#	$NetBSD: build.sh,v 1.354 2021/08/06 07:55:13 andvar Exp $
 #
 # Copyright (c) 2001-2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -851,7 +851,7 @@ validatearch()
 
 # listarch -- list valid MACHINE/MACHINE_ARCH/ALIAS values,
 # optionally restricted to those where the MACHINE and/or MACHINE_ARCH
-# match specifed glob patterns.
+# match specified glob patterns.
 #
 listarch()
 {
@@ -1965,7 +1965,7 @@ createmakewrapper()
 	eval cat <
-__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.429 2021/07/31 20:29:37 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.430 2021/08/06 07:55:13 andvar Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -4044,7 +4044,7 @@ syn_cache_get(struct sockaddr *src, stru
 	tp->rcv_up = sc->sc_irs + 1;
 
 	/*
-	 * This is what whould have happened in tcp_output() when
+	 * This is what would have happened in tcp_output() when
 	 * the SYN,ACK was sent.
 	 */
 	tp->snd_up = tp->snd_una;
@@ -4302,7 +4302,7 @@ syn_cache_add(struct sockaddr *src, stru
 		 * With the default sbmax of 256K, a scale factor
 		 * of 3 will be chosen by this algorithm.  Those who
 		 * choose a larger sbmax should watch out
-		 * for the compatiblity problems mentioned above.
+		 * for the compatibility problems mentioned above.
 		 *
 		 * RFC1323: The Window field in a SYN (i.e., a 
 		 * or ) segment itself is never scaled.
@@ -4392,7 +4392,7 @@ syn_cache_respond(struct syn_cache *sc)
 		return EAFNOSUPPORT;
 	}
 
-	/* Worst case scanario, since we don't know the option size yet. */
+	/* Worst case scenario, since we don't know the option size yet. */
 	tlen = hlen + sizeof(struct tcphdr) + MAX_TCPOPTLEN;
 	KASSERT(max_linkhdr + tlen <= MCLBYTES);
 
@@ -4539,7 +4539,7 @@ syn_cache_respond(struct syn_cache *sc)
 
 	/*
 	 * Send ECN SYN-ACK setup packet.
-	 * Routes can be asymetric, so, even if we receive a packet
+	 * Routes can be assymetric, so, even if we receive a packet
 	 * with ECE and CWR set, we must not assume no one will block
 	 * the ECE packet we are about to send.
 	 */

Index: src/usr.sbin/installboot/evboards.c
diff -u src/usr.sbin/installboot/evboards.c:1.5 src/usr.sbin/installboot/evboards.c:1.6
--- src/usr.sbin/installboot/evboards.c:1.5	Sun Jun  7 00:58:58 2020
+++ src/usr.sbin/installboot/evboards.c	Fri Aug  6 07:55:13 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: evboards.c,v 1.5 2020/06/07 00:58:58 thorpej Exp $	*/
+/*	$NetBSD: evboards.c,v 1.6 2021/08/06 07:55:13 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 
 #include 
 #if !defined(__lint)
-__RCSID("$NetBSD: evboards.c,v 1.5 2020/06/07 00:58:58 thorpej Exp $");
+__RCSID("$NetBSD: evboards.c,v 1.6 2021/08/06 07:55:13 andvar Exp $");
 #endif  /* !__lint */
 
 #include 
@@ -153,7 +153,7 @@ __RCSID("$NetBSD: evboards.c,v 1.5 2020/
  *	/usr/pkg/share/u-boot
  *
  * This can be overridden with the INSTALLBOOT_UBOOT_PATHS environment
- * variable, which contains a colon-sparated list of directories, e.g.:
+ * variable, which contains a colon-separated list of directories, e.g.:
  *
  *	/usr/pkg/share/u-boot:/home/jmcneill/hackityhack/u-boot
  *
@@ -194,7 +194,7 @@ __RCSID("$NetBSD: evboards.c,v 1.5 2020/
  *		  -- At least one of these objects is required.  If the
  *		  -- board uses a single set of steps for all boot media
  *		  -- types, then it should provide just "u-boot-install".
- *		  -- Otherwise, it whould provide one or more objects
+ *		  -- Otherwise, it would provide one or more objects
  *		  -- with names reflecting the media type, e.g.:
  *		  --
  *		  --	"u-boot-install-sdmmc"	(for SD cards)
@@ -321,13 +321,13 @@ __RCSID("$NetBSD: evboards.c,v 1.5 2020/
  *			file-offset
  *			512
  *
- *			
+ *			
  *			image-offset
  *			512
  *		
  *	
  *
- * There are some addditional directives for installing on raw flash devices:
+ * There are some additional directives for installing on raw flash devices:
  *
  *	u-boot-install-spi
  *	
@@ -348,9 +348,9 @@ __RCSID("$NetBSD: evboards.c,v 1.5 2020/
  *			2048
  *
  *			
@@ -873,7 +873,7 @@ evb_db_load_overlays(ib_params *params)
 	fts_close(fts);
 
 	/*
-	 * If the user specifed a stage1 loader, 

CVS commit: src/lib/libpuffs

2021-08-04 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Wed Aug  4 09:31:26 UTC 2021

Modified Files:
src/lib/libpuffs: puffs_node.3 puffs_ops.3

Log Message:
fix typos in puffs man pages.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libpuffs/puffs_node.3
cvs rdiff -u -r1.46 -r1.47 src/lib/libpuffs/puffs_ops.3

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

Modified files:

Index: src/lib/libpuffs/puffs_node.3
diff -u src/lib/libpuffs/puffs_node.3:1.5 src/lib/libpuffs/puffs_node.3:1.6
--- src/lib/libpuffs/puffs_node.3:1.5	Wed May 13 22:42:31 2009
+++ src/lib/libpuffs/puffs_node.3	Wed Aug  4 09:31:25 2021
@@ -1,4 +1,4 @@
-.\"	$NetBSD: puffs_node.3,v 1.5 2009/05/13 22:42:31 wiz Exp $
+.\"	$NetBSD: puffs_node.3,v 1.6 2021/08/04 09:31:25 andvar Exp $
 .\"
 .\" Copyright (c) 2007 Antti Kantee.  All rights reserved.
 .\"
@@ -66,7 +66,7 @@ and the argument
 is the argument given to
 .Fn puffs_nodewalk .
 .It Fn puffs_nodewalk pu nwfn arg
-Walk all nodes associted with the mountpoint
+Walk all nodes associated with the mountpoint
 .Ar pu
 and call
 .Fn nwfn

Index: src/lib/libpuffs/puffs_ops.3
diff -u src/lib/libpuffs/puffs_ops.3:1.46 src/lib/libpuffs/puffs_ops.3:1.47
--- src/lib/libpuffs/puffs_ops.3:1.46	Mon Jul  3 21:32:51 2017
+++ src/lib/libpuffs/puffs_ops.3	Wed Aug  4 09:31:25 2021
@@ -1,4 +1,4 @@
-.\"	$NetBSD: puffs_ops.3,v 1.46 2017/07/03 21:32:51 wiz Exp $
+.\"	$NetBSD: puffs_ops.3,v 1.47 2021/08/04 09:31:25 andvar Exp $
 .\"
 .\" Copyright (c) 2007 Antti Kantee.  All rights reserved.
 .\"
@@ -324,7 +324,7 @@ Wait for all I/O for complete until retu
 .It Dv MNT_NOWAIT
 Initiate I/O, but do not wait for completion.
 .It Dv MNT_LAZY
-Synchorize data not synchoronized by the file system syncer,
+Synchronize data not synchronized by the file system syncer,
 i.e., data not written when
 .Fn node_fsync
 is called with
@@ -631,12 +631,12 @@ Called when a regular file is being memo
 .Fa flags
 is currently always 0.
 .It Fn puffs_node_fsync "pu" "opc" "pcr" "flags" "offlo" "offhi"
-Sychronize a node's contents onto stable storage.
+Synchronize a node's contents onto stable storage.
 This is necessary only if the file server caches some information
 before committing it.
 The parameter
 .Fa flags
-specifies the minimum level of sychronization required (XXX: they are
+specifies the minimum level of synchronization required (XXX: they are
 not yet available).
 The parameters
 .Fa offlo
@@ -735,7 +735,7 @@ in the buffer.
 The argument
 .Fa offset
 is used to specify the offset to the directory.
-Its intepretation is up to the file system and it should be set to
+Its interpretation is up to the file system and it should be set to
 signal the continuation point when there is no more room for the next
 entry in
 .Fa dent .
@@ -870,7 +870,7 @@ has a link count of zero, it may be safe
 .It Fn puffs_node_reclaim2 "pu" "opc" "nlookup"
 Same as
 .Fn puffs_node_reclaim
-with an addditional argument for the number of lookups that have been done
+with an additional argument for the number of lookups that have been done
 on the node (Node creation is counted as a lookup). This can be used by the
 file system to avoid a race condition, where the kernel sends a reclaim
 while it does not have received the reply for a lookup.
@@ -882,7 +882,7 @@ If the file system maps cookies to
 .Vt struct puffs_node
 then the framework will do that work, and
 .Fn puffs_node_reclaim
-can be reliabily used without the race condition.
+can be reliably used without the race condition.
 .It Fn puffs_node_abortop "pu" "opc" "pcn"
 In case the operation following lookup (e.g., mkdir or remove) is not
 executed for some reason, abortop will be issued.



CVS commit: src/sys

2021-08-03 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Tue Aug  3 23:12:14 UTC 2021

Modified Files:
src/sys/arch/mips/cavium: octeon_cpunode.c
src/sys/arch/powerpc/include/booke: spr.h
src/sys/arch/riscv/riscv: fpu.c locore.S
src/sys/arch/vax/include: ka48.h
src/sys/dev/i2c: ds1307.c
src/sys/sys: evcnt.h

Log Message:
Fix various typos in comments. Also add missing NetBSD RCS Id in some of these 
files.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/mips/cavium/octeon_cpunode.c
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/powerpc/include/booke/spr.h
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/riscv/riscv/fpu.c
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/riscv/riscv/locore.S
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/vax/include/ka48.h
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/i2c/ds1307.c
cvs rdiff -u -r1.9 -r1.10 src/sys/sys/evcnt.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/mips/cavium/octeon_cpunode.c
diff -u src/sys/arch/mips/cavium/octeon_cpunode.c:1.19 src/sys/arch/mips/cavium/octeon_cpunode.c:1.20
--- src/sys/arch/mips/cavium/octeon_cpunode.c:1.19	Sat Apr 24 23:36:42 2021
+++ src/sys/arch/mips/cavium/octeon_cpunode.c	Tue Aug  3 23:12:14 2021
@@ -1,3 +1,5 @@
+/*  $NetBSD: octeon_cpunode.c,v 1.20 2021/08/03 23:12:14 andvar Exp $   */
+
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,7 +31,7 @@
 #define __INTR_PRIVATE
 #include 
 
-__KERNEL_RCSID(0, "$NetBSD: octeon_cpunode.c,v 1.19 2021/04/24 23:36:42 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: octeon_cpunode.c,v 1.20 2021/08/03 23:12:14 andvar Exp $");
 
 #include "locators.h"
 #include "cpunode.h"
@@ -214,7 +216,7 @@ octeon_cpu_init(struct cpu_info *ci)
 	(*mips64r2_locore_vec.ljv_tlb_invalidate_all)();
 	mips3_cp0_wired_write(pmap_tlb0_info.ti_wired);
 
-	// First thing is setup the execption vectors for this cpu.
+	// First thing is setup the exception vectors for this cpu.
 	mips64r2_vector_init(_splsw);
 
 	// Next rewrite those exceptions to use this cpu's cpu_info.

Index: src/sys/arch/powerpc/include/booke/spr.h
diff -u src/sys/arch/powerpc/include/booke/spr.h:1.13 src/sys/arch/powerpc/include/booke/spr.h:1.14
--- src/sys/arch/powerpc/include/booke/spr.h:1.13	Sat Dec 27 12:36:48 2014
+++ src/sys/arch/powerpc/include/booke/spr.h	Tue Aug  3 23:12:14 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: spr.h,v 1.13 2014/12/27 12:36:48 nonaka Exp $	*/
+/*	$NetBSD: spr.h,v 1.14 2021/08/03 23:12:14 andvar Exp $	*/
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -280,7 +280,7 @@
 #define   TSR_ENW		  0x8000 /* Enable Next Watchdog (W1C) */
 #define   TSR_WIS		  0x4000 /* Watchdog Interrupt Status (W1C) */
 #define   TSR_WRS		  0x3000 /* Watchdog Reset Status (W1C) */
-#define   TSR_DIS		  0x0800 /* Decementer Interrupt Status (W1C) */
+#define   TSR_DIS		  0x0800 /* Decrementer Interrupt Status (W1C) */
 #define   TSR_FIS		  0x0400 /* Fixed-interval Interrupt Status (W1C) */
 #define	SPR_TCR			340	/* E... Timer Control Register */
 #define   TCR_WP		  0xc000 /* Watchdog Period */
@@ -290,7 +290,7 @@
 #define   TCR_WRC		  0x3000 /* Watchdog Timer Reset Control */
 #define   TCR_WRC_RESET		  0x2000
 #define   TCR_WIE		  0x0800 /* Watchdog Time Interrupt Enable */
-#define   TCR_DIE		  0x0400 /* Decremnter Interrupt Enable */
+#define   TCR_DIE		  0x0400 /* Decrementer Interrupt Enable */
 #define   TCR_FP		  0x0300 /* Fixed-interval Timer Period */
 #define	  TCR_FP_2_N(n)		  64 - (n)) & 0x30) << 20) | (((64 - (n)) & 0xf) << 13))
 #define	  TCR_FP_2_64		  0x
@@ -337,8 +337,8 @@
 #define  SPEFSCR_FDBZ		  0x0400 /* 21: Embedded Floating-Point Divide By Zero Error */
 #define  SPEFSCR_FUNF		  0x0200 /* 22: Embedded Floating-Point Underflow Error */
 #define  SPEFSCR_FOVF		  0x0100 /* 23: Embedded Floating-Point Overflow Error */
-#define  SPEFSCR_FINXE		  0x0040 /* 25: Embedded Floating-Point Inexact Execption Enable */
-#define  SPEFSCR_FINVE		  0x0020 /* 26: Embedded Floating-Point Invalid Operation/Input Error Execption Enable */
+#define  SPEFSCR_FINXE		  0x0040 /* 25: Embedded Floating-Point Inexact Exception Enable */
+#define  SPEFSCR_FINVE		  0x0020 /* 26: Embedded Floating-Point Invalid Operation/Input Error Exception Enable */
 #define  SPEFSCR_FDBZE		  0x0010 /* 27: Embedded Floating-Point Divide By Zero Exception Enable */
 #define  SPEFSCR_FUNFE		  0x0008 /* 28: Embedded Floating-Point Underflow Exception Enable */
 #define  SPEFSCR_FOVFE		  0x0004 /* 29: Embedded Floating-Point Overflow Exception Enable */
@@ -347,8 +347,8 @@
 #define  SPEFSCR_FRMC_UPWARD	  0x0002 /* Round toward +infinity */
 #define  SPEFSCR_FRMC_TOWARDZERO  0x0001 /* Round toward zero */
 #define  SPEFSCR_FRMC_TONEAREST	  

CVS commit: src/usr.sbin/rpc.pcnfsd

2021-08-03 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Tue Aug  3 20:59:20 UTC 2021

Modified Files:
src/usr.sbin/rpc.pcnfsd: common.h

Log Message:
s/pasword/password/


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/rpc.pcnfsd/common.h

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/rpc.pcnfsd/common.h
diff -u src/usr.sbin/rpc.pcnfsd/common.h:1.2 src/usr.sbin/rpc.pcnfsd/common.h:1.3
--- src/usr.sbin/rpc.pcnfsd/common.h:1.2	Tue Jul 25 22:20:26 1995
+++ src/usr.sbin/rpc.pcnfsd/common.h	Tue Aug  3 20:59:20 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: common.h,v 1.2 1995/07/25 22:20:26 gwr Exp $	*/
+/*	$NetBSD: common.h,v 1.3 2021/08/03 20:59:20 andvar Exp $	*/
 
 /* RE_SID: @(%)/usr/dosnfs/shades_SCCS/unix/pcnfsd/v2/src/SCCS/s.common.h 1.3 91/12/17 14:32:05 SMI */
 /*
@@ -89,7 +89,7 @@
 **-
 ** Define (via Makefile) the following symbol to use a cache of recently-used
 ** user names. This has certain uses in university and other settings
-** where (1) the pasword file is very large, and (2) a group of users
+** where (1) the password file is very large, and (2) a group of users
 ** frequently logs in together using the same account (for example,
 ** a class userid).
 **-
@@ -132,7 +132,7 @@
 ** to determine if a password entry contains a legal shell (and therefore
 ** identifies a user who may log in). The default is to check that
 ** the last two characters of the shell field are "sh", which should
-** cope with "sh", "csh", "ksh", "bash" See the routine get_pasword()
+** cope with "sh", "csh", "ksh", "bash" See the routine get_password()
 ** in pcnfsd_misc.c for more details.
 **
 ** Note: For some reason that I haven't yet figured out, getusershell()



CVS commit: src/lib/librumpuser

2021-08-02 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Aug  2 17:45:10 UTC 2021

Modified Files:
src/lib/librumpuser: README.compileopts

Log Message:
fix typo in README.compileopts text.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/librumpuser/README.compileopts

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

Modified files:

Index: src/lib/librumpuser/README.compileopts
diff -u src/lib/librumpuser/README.compileopts:1.1 src/lib/librumpuser/README.compileopts:1.2
--- src/lib/librumpuser/README.compileopts:1.1	Mon Jan 25 00:24:23 2016
+++ src/lib/librumpuser/README.compileopts	Mon Aug  2 17:45:10 2021
@@ -1,4 +1,4 @@
-$NetBSD: README.compileopts,v 1.1 2016/01/25 00:24:23 pooka Exp $
+$NetBSD: README.compileopts,v 1.2 2021/08/02 17:45:10 andvar Exp $
 
 This file describes compile-time options (make variables) for
 the rumpuser POSIX implementation.
@@ -12,7 +12,7 @@ Global options:
 values: pthread/none/fiber or 
 defval: 
 effect: Define the way threading is implemented in the rumpuser hypercall
-	implmentation.
+	implementation.
 	 - use default implementation (currently "pthread")
 	pthread - use pthreads to implement threading
 	none- do not support kernel threads at all



CVS commit: src/tests/lib/libossaudio

2021-08-02 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Aug  2 17:43:56 UTC 2021

Modified Files:
src/tests/lib/libossaudio: t_ossaudio.c

Log Message:
s/suported/supported in comments


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libossaudio/t_ossaudio.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/libossaudio/t_ossaudio.c
diff -u src/tests/lib/libossaudio/t_ossaudio.c:1.3 src/tests/lib/libossaudio/t_ossaudio.c:1.4
--- src/tests/lib/libossaudio/t_ossaudio.c:1.3	Sat Dec 26 15:28:52 2020
+++ src/tests/lib/libossaudio/t_ossaudio.c	Mon Aug  2 17:43:55 2021
@@ -250,7 +250,7 @@ ATF_TC_BODY(oss_dsp_init, tc)
 	 * and some unsupported sample rates... "best effort"
 	 */
 
-	/* closest suported rate is 1000 */
+	/* closest supported rate is 1000 */
 	rate = 900;
 	if (ioctl(fd, SNDCTL_DSP_SPEED, ) < 0)
 		atf_tc_fail("ioctl SNDCTL_DSP_SPEED (900) failed");
@@ -259,7 +259,7 @@ ATF_TC_BODY(oss_dsp_init, tc)
 	ATF_REQUIRE((fabs(900.0 - info.play.sample_rate) / 900.0) < 0.2);
 	ATF_REQUIRE_EQ(rate, (int)info.play.sample_rate);
 
-	/* closest suported rate is 192000 */
+	/* closest supported rate is 192000 */
 	rate = 197000;
 	if (ioctl(fd, SNDCTL_DSP_SPEED, ) < 0)
 		atf_tc_fail("ioctl SNDCTL_DSP_SPEED (197000) failed");



CVS commit: src/tests/lib/libc

2021-08-02 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Aug  2 17:41:07 UTC 2021

Modified Files:
src/tests/lib/libc/locale: t_sprintf.c t_strfmon.c t_toupper.c
src/tests/lib/libc/string: t_strcoll.c

Log Message:
s/diferent/different/


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libc/locale/t_sprintf.c
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/locale/t_strfmon.c
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/locale/t_toupper.c
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/string/t_strcoll.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/locale/t_sprintf.c
diff -u src/tests/lib/libc/locale/t_sprintf.c:1.7 src/tests/lib/libc/locale/t_sprintf.c:1.8
--- src/tests/lib/libc/locale/t_sprintf.c:1.7	Fri Dec  1 01:08:35 2017
+++ src/tests/lib/libc/locale/t_sprintf.c	Mon Aug  2 17:41:07 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: t_sprintf.c,v 1.7 2017/12/01 01:08:35 kre Exp $ */
+/* $NetBSD: t_sprintf.c,v 1.8 2021/08/02 17:41:07 andvar Exp $ */
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include 
 __COPYRIGHT("@(#) Copyright (c) 2017\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_sprintf.c,v 1.7 2017/12/01 01:08:35 kre Exp $");
+__RCSID("$NetBSD: t_sprintf.c,v 1.8 2021/08/02 17:41:07 andvar Exp $");
 
 #include 
 #include 
@@ -193,7 +193,7 @@ ATF_TC(sprintf);
 ATF_TC_HEAD(sprintf, tc)
 {
 	atf_tc_set_md_var(tc, "descr",
-		"Checks sprintf %%'d and %%'f under diferent locales");
+		"Checks sprintf %%'d and %%'f under different locales");
 }
 ATF_TC_BODY(sprintf, tc)
 {
@@ -207,7 +207,7 @@ ATF_TC(strto);
 ATF_TC_HEAD(strto, tc)
 {
 	atf_tc_set_md_var(tc, "descr",
-		"Checks strtol and strtod under diferent locales");
+		"Checks strtol and strtod under different locales");
 }
 ATF_TC_BODY(strto, tc)
 {
@@ -221,7 +221,7 @@ ATF_TC(sscanf);
 ATF_TC_HEAD(sscanf, tc)
 {
 	atf_tc_set_md_var(tc, "descr",
-		"Checks sscanf under diferent locales");
+		"Checks sscanf under different locales");
 }
 ATF_TC_BODY(sscanf, tc)
 {

Index: src/tests/lib/libc/locale/t_strfmon.c
diff -u src/tests/lib/libc/locale/t_strfmon.c:1.2 src/tests/lib/libc/locale/t_strfmon.c:1.3
--- src/tests/lib/libc/locale/t_strfmon.c:1.2	Thu Dec  7 22:23:14 2017
+++ src/tests/lib/libc/locale/t_strfmon.c	Mon Aug  2 17:41:07 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: t_strfmon.c,v 1.2 2017/12/07 22:23:14 kre Exp $ */
+/* $NetBSD: t_strfmon.c,v 1.3 2021/08/02 17:41:07 andvar Exp $ */
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__RCSID("$NetBSD: t_strfmon.c,v 1.2 2017/12/07 22:23:14 kre Exp $");
+__RCSID("$NetBSD: t_strfmon.c,v 1.3 2021/08/02 17:41:07 andvar Exp $");
 
 #include 
 #include 
@@ -41,7 +41,7 @@ ATF_TC(strfmon);
 ATF_TC_HEAD(strfmon, tc)
 {
 	atf_tc_set_md_var(tc, "descr",
-		"Checks strfmon_l under diferent locales");
+		"Checks strfmon_l under different locales");
 }
 
 ATF_TC_BODY(strfmon, tc)

Index: src/tests/lib/libc/locale/t_toupper.c
diff -u src/tests/lib/libc/locale/t_toupper.c:1.1 src/tests/lib/libc/locale/t_toupper.c:1.2
--- src/tests/lib/libc/locale/t_toupper.c:1.1	Tue May 30 02:11:03 2017
+++ src/tests/lib/libc/locale/t_toupper.c	Mon Aug  2 17:41:07 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: t_toupper.c,v 1.1 2017/05/30 02:11:03 perseant Exp $ */
+/* $NetBSD: t_toupper.c,v 1.2 2021/08/02 17:41:07 andvar Exp $ */
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include 
 __COPYRIGHT("@(#) Copyright (c) 2017\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_toupper.c,v 1.1 2017/05/30 02:11:03 perseant Exp $");
+__RCSID("$NetBSD: t_toupper.c,v 1.2 2021/08/02 17:41:07 andvar Exp $");
 
 #include 
 #include 
@@ -92,7 +92,7 @@ ATF_TC(toupper);
 ATF_TC_HEAD(toupper, tc)
 {
 	atf_tc_set_md_var(tc, "descr",
-		"Checks toupper under diferent locales");
+		"Checks toupper under different locales");
 }
 
 ATF_TC_BODY(toupper, tc)
@@ -108,7 +108,7 @@ ATF_TC(tolower);
 ATF_TC_HEAD(tolower, tc)
 {
 	atf_tc_set_md_var(tc, "descr",
-		"Checks tolower under diferent locales");
+		"Checks tolower under different locales");
 }
 
 ATF_TC_BODY(tolower, tc)

Index: src/tests/lib/libc/string/t_strcoll.c
diff -u src/tests/lib/libc/string/t_strcoll.c:1.1 src/tests/lib/libc/string/t_strcoll.c:1.2
--- src/tests/lib/libc/string/t_strcoll.c:1.1	Fri May 26 01:24:19 2017
+++ src/tests/lib/libc/string/t_strcoll.c	Mon Aug  2 17:41:07 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: t_strcoll.c,v 1.1 2017/05/26 01:24:19 perseant Exp $ */
+/* $NetBSD: t_strcoll.c,v 1.2 2021/08/02 17:41:07 andvar Exp $ */
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include 
 __COPYRIGHT("@(#) Copyright (c) 2017\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_strcoll.c,v 1.1 2017/05/26 01:24:19 perseant Exp $");
+__RCSID("$NetBSD: t_strcoll.c,v 1.2 

CVS commit: src

2021-08-02 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Aug  2 12:56:25 UTC 2021

Modified Files:
src/common/include/rpc: types.h
src/sys/arch/arm/arm: armv6_start.S
src/sys/arch/arm/ixp12x0: ixp12x0reg.h
src/sys/arch/arm/sociox: if_scx.c
src/sys/arch/arm/xscale: ixp425_npe.c
src/sys/arch/evbarm/adi_brh: brhreg.h
src/sys/arch/evbmips/rmixl: machdep.c
src/sys/arch/i386/stand/lib: biosmemx.S
src/sys/arch/luna68k/stand/boot: scsivar.h
src/sys/arch/m68k/060sp/dist: isp.s
src/sys/arch/mips/atheros/dev: aereg.h
src/sys/arch/sun3/dev: si_sebuf.c si_vme.c
src/sys/arch/sun3/sun3: pmap.c
src/sys/arch/vax/vax: pmap.c
src/sys/arch/x86/x86: pmap.c
src/sys/dev/isa: cs89x0isa.c
src/sys/dev/marvell: gtintrreg.h if_mvxpe.c mvxpbmvar.h
src/sys/dev/pci: if_skreg.h
src/sys/dev/pci/cxgb: cxgb_t3_hw.c
src/sys/dev/pci/ixgbe: ixgbe_common.c
src/sys/dev/pckbport: alps.c
src/sys/dev/raidframe: rf_dagfuncs.c
src/sys/dev/usb: usbdivar.h
src/sys/net/agr: if_agr.c
src/sys/netatalk: at_control.c
src/sys/netinet6: nd6_nbr.c
src/sys/sys: sockio.h
src/usr.bin/config: TODO
src/usr.sbin/mopd/common: common.h print.c

Log Message:
fix various typos in comments and log messages.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/common/include/rpc/types.h
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/arm/arm/armv6_start.S
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/ixp12x0/ixp12x0reg.h
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/arm/sociox/if_scx.c
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/arm/xscale/ixp425_npe.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/evbarm/adi_brh/brhreg.h
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/evbmips/rmixl/machdep.c
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/i386/stand/lib/biosmemx.S
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/luna68k/stand/boot/scsivar.h
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/m68k/060sp/dist/isp.s
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/mips/atheros/dev/aereg.h
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/sun3/dev/si_sebuf.c \
src/sys/arch/sun3/dev/si_vme.c
cvs rdiff -u -r1.171 -r1.172 src/sys/arch/sun3/sun3/pmap.c
cvs rdiff -u -r1.191 -r1.192 src/sys/arch/vax/vax/pmap.c
cvs rdiff -u -r1.410 -r1.411 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/isa/cs89x0isa.c
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/marvell/gtintrreg.h
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/marvell/if_mvxpe.c
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/marvell/mvxpbmvar.h
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/pci/if_skreg.h
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/pci/cxgb/cxgb_t3_hw.c
cvs rdiff -u -r1.32 -r1.33 src/sys/dev/pci/ixgbe/ixgbe_common.c
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/pckbport/alps.c
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/raidframe/rf_dagfuncs.c
cvs rdiff -u -r1.128 -r1.129 src/sys/dev/usb/usbdivar.h
cvs rdiff -u -r1.51 -r1.52 src/sys/net/agr/if_agr.c
cvs rdiff -u -r1.40 -r1.41 src/sys/netatalk/at_control.c
cvs rdiff -u -r1.181 -r1.182 src/sys/netinet6/nd6_nbr.c
cvs rdiff -u -r1.39 -r1.40 src/sys/sys/sockio.h
cvs rdiff -u -r1.33 -r1.34 src/usr.bin/config/TODO
cvs rdiff -u -r1.9 -r1.10 src/usr.sbin/mopd/common/common.h
cvs rdiff -u -r1.8 -r1.9 src/usr.sbin/mopd/common/print.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/include/rpc/types.h
diff -u src/common/include/rpc/types.h:1.3 src/common/include/rpc/types.h:1.4
--- src/common/include/rpc/types.h:1.3	Sun Jun 16 16:01:44 2019
+++ src/common/include/rpc/types.h	Mon Aug  2 12:56:22 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: types.h,v 1.3 2019/06/16 16:01:44 christos Exp $	*/
+/*	$NetBSD: types.h,v 1.4 2021/08/02 12:56:22 andvar Exp $	*/
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -95,7 +95,7 @@ struct netbuf {
 };
 
 /*
- * The format of the addres and options arguments of the XTI t_bind call.
+ * The format of the address and options arguments of the XTI t_bind call.
  * Only provided for compatibility, it should not be used.
  */
 

Index: src/sys/arch/arm/arm/armv6_start.S
diff -u src/sys/arch/arm/arm/armv6_start.S:1.34 src/sys/arch/arm/arm/armv6_start.S:1.35
--- src/sys/arch/arm/arm/armv6_start.S:1.34	Wed Jan 27 13:50:17 2021
+++ src/sys/arch/arm/arm/armv6_start.S	Mon Aug  2 12:56:22 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: armv6_start.S,v 1.34 2021/01/27 13:50:17 skrll Exp $	*/
+/*	$NetBSD: armv6_start.S,v 1.35 2021/08/02 12:56:22 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2012, 2017, 2018 The NetBSD Foundation, Inc.
@@ -462,7 +462,7 @@ generic_startv7:
 	movt	r0, #:upper16:TEMP_L1_TABLE
 	sub	r0, R_VTOPDIFF
 
-	// Return to virtual addess after the call to armv7_mmuinit
+	// Return to virtual address after the call to armv7_mmuinit
 	movw	lr, #:lower16:generic_vstartv7
 	movt	lr, #:upper16:generic_vstartv7
 	b	

CVS commit: src

2021-08-01 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Aug  1 21:58:56 UTC 2021

Modified Files:
src/common/lib/libc/arch/arm/atomic: atomic_swap_64.S
src/sys/dev/raidframe: rf_pqdegdags.c

Log Message:
s/overwriten/overwritten/ in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 \
src/common/lib/libc/arch/arm/atomic/atomic_swap_64.S
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/raidframe/rf_pqdegdags.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/arch/arm/atomic/atomic_swap_64.S
diff -u src/common/lib/libc/arch/arm/atomic/atomic_swap_64.S:1.14 src/common/lib/libc/arch/arm/atomic/atomic_swap_64.S:1.15
--- src/common/lib/libc/arch/arm/atomic/atomic_swap_64.S:1.14	Wed Jul 28 07:32:20 2021
+++ src/common/lib/libc/arch/arm/atomic/atomic_swap_64.S	Sun Aug  1 21:58:56 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: atomic_swap_64.S,v 1.14 2021/07/28 07:32:20 skrll Exp $	*/
+/*	$NetBSD: atomic_swap_64.S,v 1.15 2021/08/01 21:58:56 andvar Exp $	*/
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -38,7 +38,7 @@ ENTRY_NP(_atomic_swap_64)
 	push	{r3, r4}		/* save temporary */
 	mov	ip, r0			/* return value will be in r0 */
 #ifndef __ARM_EABI__
-	mov	r3, r2			/* r2 will be overwriten by r1 */
+	mov	r3, r2			/* r2 will be overwritten by r1 */
 	mov	r2, r1			/* and r1 will be overwritten by ldrexd */
 #endif
 1:	ldrexd	r0, r1, [ip]		/* load old value */

Index: src/sys/dev/raidframe/rf_pqdegdags.c
diff -u src/sys/dev/raidframe/rf_pqdegdags.c:1.14 src/sys/dev/raidframe/rf_pqdegdags.c:1.15
--- src/sys/dev/raidframe/rf_pqdegdags.c:1.14	Sun Aug  1 15:29:30 2021
+++ src/sys/dev/raidframe/rf_pqdegdags.c	Sun Aug  1 21:58:56 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: rf_pqdegdags.c,v 1.14 2021/08/01 15:29:30 andvar Exp $	*/
+/*	$NetBSD: rf_pqdegdags.c,v 1.15 2021/08/01 21:58:56 andvar Exp $	*/
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -33,7 +33,7 @@
 
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: rf_pqdegdags.c,v 1.14 2021/08/01 15:29:30 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_pqdegdags.c,v 1.15 2021/08/01 21:58:56 andvar Exp $");
 
 #include "rf_archs.h"
 
@@ -379,7 +379,7 @@ RF_CREATE_DAG_FUNC_DECL(rf_PQ_DDLargeWri
failed data units will do the correct thing. So in this case,
the dag looks like
 
-full stripe read of surviving data units (not being overwriten)
+full stripe read of surviving data units (not being overwritten)
 	write new data (ignoring failed units)   compute P
 	 write P
 



CVS commit: src

2021-08-01 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Aug  1 21:56:27 UTC 2021

Modified Files:
src/distrib/sets/lists/man: mi
src/share/man/man4: Makefile pci.4
src/share/man/man4/man4.i386: Makefile
Added Files:
src/share/man/man4/man4.i386: pcmb.4

Log Message:
add pcib(4), pceb(4), pcmb(4).
pcmb is a separate man page for i386 only, pceb and pcib are references to 
pci(4) only and mentioned in its bridges section.
ok riastradh


To generate a diff of this commit:
cvs rdiff -u -r1.1724 -r1.1725 src/distrib/sets/lists/man/mi
cvs rdiff -u -r1.714 -r1.715 src/share/man/man4/Makefile
cvs rdiff -u -r1.119 -r1.120 src/share/man/man4/pci.4
cvs rdiff -u -r1.79 -r1.80 src/share/man/man4/man4.i386/Makefile
cvs rdiff -u -r0 -r1.1 src/share/man/man4/man4.i386/pcmb.4

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/man/mi
diff -u src/distrib/sets/lists/man/mi:1.1724 src/distrib/sets/lists/man/mi:1.1725
--- src/distrib/sets/lists/man/mi:1.1724	Sun Jul 25 07:35:55 2021
+++ src/distrib/sets/lists/man/mi	Sun Aug  1 21:56:26 2021
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1724 2021/07/25 07:35:55 nia Exp $
+# $NetBSD: mi,v 1.1725 2021/08/01 21:56:26 andvar Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -4516,6 +4516,7 @@
 ./usr/share/man/html4/i386/ndis.html		man-obsolete		obsolete
 ./usr/share/man/html4/i386/npx.html		man-obsolete		obsolete
 ./usr/share/man/html4/i386/pcibios.html		man-sys-htmlman		html
+./usr/share/man/html4/i386/pcmb.html		man-sys-htmlman		html
 ./usr/share/man/html4/i386/pnpbios.html		man-sys-htmlman		html
 ./usr/share/man/html4/i386/rdcide.html		man-sys-htmlman		html
 ./usr/share/man/html4/i386/rdcpcib.html		man-sys-htmlman		html
@@ -4754,8 +4755,10 @@
 ./usr/share/man/html4/pas.html			man-sys-htmlman		html
 ./usr/share/man/html4/pcdisplay.html		man-sys-htmlman		html
 ./usr/share/man/html4/pcf8563rtc.html		man-sys-htmlman		html
+./usr/share/man/html4/pceb.html			man-sys-htmlman		html
 ./usr/share/man/html4/pchb.html			man-sys-htmlman		html
 ./usr/share/man/html4/pci.html			man-sys-htmlman		html
+./usr/share/man/html4/pcib.html			man-sys-htmlman		html
 ./usr/share/man/html4/pciback.html		man-sys-htmlman		html
 ./usr/share/man/html4/pcic.html			man-sys-htmlman		html
 ./usr/share/man/html4/pciide.html		man-sys-htmlman		html
@@ -7543,6 +7546,7 @@
 ./usr/share/man/man4/i386/omms.4		man-obsolete		obsolete
 ./usr/share/man/man4/i386/opms.4		man-obsolete		obsolete
 ./usr/share/man/man4/i386/pcibios.4		man-sys-man		.man
+./usr/share/man/man4/i386/pcmb.4		man-sys-man		.man
 ./usr/share/man/man4/i386/pcvt.4		man-obsolete		obsolete
 ./usr/share/man/man4/i386/pms.4			man-obsolete		obsolete
 ./usr/share/man/man4/i386/pnpbios.4		man-sys-man		.man
@@ -7813,8 +7817,10 @@
 ./usr/share/man/man4/pc532/scn.4		man-obsolete		obsolete
 ./usr/share/man/man4/pcdisplay.4		man-sys-man		.man
 ./usr/share/man/man4/pcf8563rtc.4		man-sys-man		.man
+./usr/share/man/man4/pceb.4			man-sys-man		.man
 ./usr/share/man/man4/pchb.4			man-sys-man		.man
 ./usr/share/man/man4/pci.4			man-sys-man		.man
+./usr/share/man/man4/pcib.4			man-sys-man		.man
 ./usr/share/man/man4/pciback.4			man-sys-man		.man
 ./usr/share/man/man4/pcic.4			man-sys-man		.man
 ./usr/share/man/man4/pciide.4			man-sys-man		.man

Index: src/share/man/man4/Makefile
diff -u src/share/man/man4/Makefile:1.714 src/share/man/man4/Makefile:1.715
--- src/share/man/man4/Makefile:1.714	Tue Jun 29 10:22:37 2021
+++ src/share/man/man4/Makefile	Sun Aug  1 21:56:27 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.714 2021/06/29 10:22:37 nia Exp $
+#	$NetBSD: Makefile,v 1.715 2021/08/01 21:56:27 andvar Exp $
 #	@(#)Makefile	8.1 (Berkeley) 6/18/93
 
 MAN=	aac.4 ac97.4 acardide.4 aceride.4 acphy.4 \
@@ -221,7 +221,9 @@ MLINKS+=mii.4 phy.4
 MLINKS+=netintro.4 networking.4
 MLINKS+=nfsmb.4 nfsmbc.4
 MLINKS+=ntwoc.4 ntwo.4
+MLINKS+=pci.4 pceb.4
 MLINKS+=pci.4 pchb.4
+MLINKS+=pci.4 pcib.4
 MLINKS+=pci.4 ppb.4
 MLINKS+=pcppi.4 isabeep.4
 MLINKS+=pcppi.4 sysbeep.4

Index: src/share/man/man4/pci.4
diff -u src/share/man/man4/pci.4:1.119 src/share/man/man4/pci.4:1.120
--- src/share/man/man4/pci.4:1.119	Wed Mar 17 14:10:29 2021
+++ src/share/man/man4/pci.4	Sun Aug  1 21:56:27 2021
@@ -1,4 +1,4 @@
-.\"	$NetBSD: pci.4,v 1.119 2021/03/17 14:10:29 nia Exp $
+.\"	$NetBSD: pci.4,v 1.120 2021/08/01 21:56:27 andvar Exp $
 .\"
 .\" Copyright (c) 1997 Jason R. Thorpe.  All rights reserved.
 .\" Copyright (c) 1997 Jonathan Stone
@@ -359,6 +359,12 @@ Yamaha YMF724/740/744/754-based audio de
 .Bl -tag -width pcdisplay(4) -offset indent
 .It Xr cbb 4
 PCI Yenta compatible CardBus bridges.
+.It Xr pceb 4
+Generic PCI-EISA bridges; see
+.Xr eisa 4 .
+.It Xr pcib 4
+Generic PCI-ISA bridges; see
+.Xr isa 4 .
 .It Xr ppb 4
 Generic PCI bridges, including expansion backplanes.
 .El

Index: src/share/man/man4/man4.i386/Makefile
diff -u 

CVS commit: src/usr.sbin/diskpart

2021-08-01 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Aug  1 18:02:22 UTC 2021

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

Log Message:
fix typo in definition: s/threshhold/threshold/


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/usr.sbin/diskpart/diskpart.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/diskpart/diskpart.c
diff -u src/usr.sbin/diskpart/diskpart.c:1.20 src/usr.sbin/diskpart/diskpart.c:1.21
--- src/usr.sbin/diskpart/diskpart.c:1.20	Fri Jan  2 19:46:02 2015
+++ src/usr.sbin/diskpart/diskpart.c	Sun Aug  1 18:02:22 2021
@@ -37,7 +37,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 19
 #if 0
 static char sccsid[] = "from: @(#)diskpart.c	8.3 (Berkeley) 11/30/94";
 #else
-__RCSID("$NetBSD: diskpart.c,v 1.20 2015/01/02 19:46:02 christos Exp $");
+__RCSID("$NetBSD: diskpart.c,v 1.21 2021/08/01 18:02:22 andvar Exp $");
 #endif
 #endif /* not lint */
 
@@ -123,7 +123,7 @@ main(int argc, char *argv[])
 	struct disklabel *dp;
 	int spc, def, part, layout, j, ch;
 	uint32_t curcyl;
-	int threshhold, numcyls[NPARTITIONS], startcyl[NPARTITIONS];
+	int threshold, numcyls[NPARTITIONS], startcyl[NPARTITIONS];
 	off_t totsize = 0;
 	const char *tyname;
 	char *lp;
@@ -185,10 +185,10 @@ main(int argc, char *argv[])
 	totsize == 0) {
 		badsecttable = dp->d_nsectors +
 		roundup(badsecttable, dp->d_nsectors);
-		threshhold = howmany(spc, badsecttable);
+		threshold = howmany(spc, badsecttable);
 	} else {
 		badsecttable = 0;
-		threshhold = 0;
+		threshold = 0;
 	}
 	/*
 	 * If disk size was specified, recompute number of cylinders
@@ -210,7 +210,7 @@ main(int argc, char *argv[])
 		curcyl = 0;
 		for (part = PART('a'); part < NPARTITIONS; part++)
 			curcyl += howmany(defpart[def][part], spc);
-		if (curcyl < dp->d_ncylinders - threshhold)
+		if (curcyl < dp->d_ncylinders - threshold)
 			break;
 	}
 	if (def >= NDEFAULTS) {



CVS commit: src/usr.bin/crunch/crunchgen

2021-08-01 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Aug  1 15:52:11 UTC 2021

Modified Files:
src/usr.bin/crunch/crunchgen: crunchgen.1

Log Message:
fix syntax error and typo in overwritten.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/usr.bin/crunch/crunchgen/crunchgen.1

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/crunch/crunchgen/crunchgen.1
diff -u src/usr.bin/crunch/crunchgen/crunchgen.1:1.41 src/usr.bin/crunch/crunchgen/crunchgen.1:1.42
--- src/usr.bin/crunch/crunchgen/crunchgen.1:1.41	Thu Jan  2 23:21:14 2020
+++ src/usr.bin/crunch/crunchgen/crunchgen.1	Sun Aug  1 15:52:11 2021
@@ -1,4 +1,4 @@
-.\"	$NetBSD: crunchgen.1,v 1.41 2020/01/02 23:21:14 wiz Exp $
+.\"	$NetBSD: crunchgen.1,v 1.42 2021/08/01 15:52:11 andvar Exp $
 .\"
 .\" Copyright (c) 1994 University of Maryland
 .\" All Rights Reserved.
@@ -128,9 +128,9 @@ Status messages are suppressed.
 .It Fl v Ar varspec
 Append a variable specification to the on-the fly generated Makefiles
 for the individual programs.
-.It Fl V ar varspec
+.It Fl V Ar varspec
 Set the variable in the top level Makefile, and pass it in the command
-line of all sub-makes, so that it cannot be overwriten.
+line of all sub-makes, so that it cannot be overwritten.
 .El
 .Sh CRUNCHGEN CONFIGURATION FILE COMMANDS
 .Nm



CVS commit: src

2021-08-01 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Aug  1 15:29:30 UTC 2021

Modified Files:
src/lib/libutil: pidfile.c
src/sys/arch/emips/conf: RAMDISK
src/sys/arch/pmax/conf: RAMDISK RAMDISK64
src/sys/dev/qbus: if_de.c if_il.c
src/sys/dev/raidframe: rf_pqdegdags.c
src/usr.bin/ftp: fetch.c

Log Message:
fix typos in word "otherwise".


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib/libutil/pidfile.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/emips/conf/RAMDISK
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/pmax/conf/RAMDISK
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/pmax/conf/RAMDISK64
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/qbus/if_de.c
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/qbus/if_il.c
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/raidframe/rf_pqdegdags.c
cvs rdiff -u -r1.233 -r1.234 src/usr.bin/ftp/fetch.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/libutil/pidfile.c
diff -u src/lib/libutil/pidfile.c:1.15 src/lib/libutil/pidfile.c:1.16
--- src/lib/libutil/pidfile.c:1.15	Fri Dec 27 09:45:26 2019
+++ src/lib/libutil/pidfile.c	Sun Aug  1 15:29:29 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: pidfile.c,v 1.15 2019/12/27 09:45:26 msaitoh Exp $	*/
+/*	$NetBSD: pidfile.c,v 1.16 2021/08/01 15:29:29 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2016 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: pidfile.c,v 1.15 2019/12/27 09:45:26 msaitoh Exp $");
+__RCSID("$NetBSD: pidfile.c,v 1.16 2021/08/01 15:29:29 andvar Exp $");
 #endif
 
 #include 
@@ -130,7 +130,7 @@ pidfile_varrun_path(char *path, size_t l
 }
 
 /* Returns the process ID inside path on success, otherwise -1.
- * If no path is given, use the last pidfile path, othewise the default one. */
+ * If no path is given, use the last pidfile path, otherwise the default one. */
 pid_t
 pidfile_read(const char *path)
 {

Index: src/sys/arch/emips/conf/RAMDISK
diff -u src/sys/arch/emips/conf/RAMDISK:1.4 src/sys/arch/emips/conf/RAMDISK:1.5
--- src/sys/arch/emips/conf/RAMDISK:1.4	Sun Mar 31 16:10:27 2019
+++ src/sys/arch/emips/conf/RAMDISK	Sun Aug  1 15:29:29 2021
@@ -1,8 +1,8 @@
-# 	$NetBSD: RAMDISK,v 1.4 2019/03/31 16:10:27 christos Exp $
+# 	$NetBSD: RAMDISK,v 1.5 2021/08/01 15:29:29 andvar Exp $
 #
 # Install kernel with ramdisk added.
 # The ramdisk is be too big to netboot directly via ECOFF on some machines,
-# so keep it otherise identical to INSTALL.
+# so keep it otherwise identical to INSTALL.
 #
 
 # Pull in standard `install' config

Index: src/sys/arch/pmax/conf/RAMDISK
diff -u src/sys/arch/pmax/conf/RAMDISK:1.18 src/sys/arch/pmax/conf/RAMDISK:1.19
--- src/sys/arch/pmax/conf/RAMDISK:1.18	Wed Jun 26 07:33:19 2019
+++ src/sys/arch/pmax/conf/RAMDISK	Sun Aug  1 15:29:29 2021
@@ -1,8 +1,8 @@
-# 	$NetBSD: RAMDISK,v 1.18 2019/06/26 07:33:19 martin Exp $
+# 	$NetBSD: RAMDISK,v 1.19 2021/08/01 15:29:29 andvar Exp $
 #
 # Install kernel with ramdisk added.
 # The ramdisk is be too big to netboot directly via ECOFF on some machines,
-# so keep it otherise identical to INSTALL.
+# so keep it otherwise identical to INSTALL.
 #
 
 # Pull in standard `install' config

Index: src/sys/arch/pmax/conf/RAMDISK64
diff -u src/sys/arch/pmax/conf/RAMDISK64:1.7 src/sys/arch/pmax/conf/RAMDISK64:1.8
--- src/sys/arch/pmax/conf/RAMDISK64:1.7	Mon Sep  7 09:14:47 2020
+++ src/sys/arch/pmax/conf/RAMDISK64	Sun Aug  1 15:29:29 2021
@@ -1,8 +1,8 @@
-# 	$NetBSD: RAMDISK64,v 1.7 2020/09/07 09:14:47 mrg Exp $
+# 	$NetBSD: RAMDISK64,v 1.8 2021/08/01 15:29:29 andvar Exp $
 #
 # Install kernel with ramdisk added.
 # The ramdisk is be too big to netboot directly via ECOFF on some machines,
-# so keep it otherise identical to INSTALL.
+# so keep it otherwise identical to INSTALL.
 #
 
 # Pull in standard `install' config

Index: src/sys/dev/qbus/if_de.c
diff -u src/sys/dev/qbus/if_de.c:1.35 src/sys/dev/qbus/if_de.c:1.36
--- src/sys/dev/qbus/if_de.c:1.35	Wed Jan 29 05:57:21 2020
+++ src/sys/dev/qbus/if_de.c	Sun Aug  1 15:29:30 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_de.c,v 1.35 2020/01/29 05:57:21 thorpej Exp $	*/
+/*	$NetBSD: if_de.c,v 1.36 2021/08/01 15:29:30 andvar Exp $	*/
 
 /*
  * Copyright (c) 1982, 1986, 1989 Regents of the University of California.
@@ -72,7 +72,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_de.c,v 1.35 2020/01/29 05:57:21 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_de.c,v 1.36 2021/08/01 15:29:30 andvar Exp $");
 
 #include "opt_inet.h"
 
@@ -514,7 +514,7 @@ deintr(void *arg)
  * If input error just drop packet.
  * Otherwise purge input buffered data path and examine
  * packet to determine type.  If can't determine length
- * from type, then have to drop packet.	 Othewise decapsulate
+ * from type, then have to drop packet.	 Otherwise decapsulate
  * packet based on type and pass to type specific higher-level
  * input routine.
  */


CVS commit: src

2021-07-31 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Jul 31 20:51:32 UTC 2021

Modified Files:
src/lib/libc/sys: _lwp_create.2
src/lib/libedit: tty.h
src/sys/arch/atari/pci: pci_vga.c
src/sys/arch/hpcmips/include: sysconf.h
src/sys/dev/hpc: hpcfbio.h
src/sys/dev/isa: tcic2_isa.c

Log Message:
s/dependend/dependent/


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/libc/sys/_lwp_create.2
cvs rdiff -u -r1.23 -r1.24 src/lib/libedit/tty.h
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/atari/pci/pci_vga.c
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/hpcmips/include/sysconf.h
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/hpc/hpcfbio.h
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/isa/tcic2_isa.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/sys/_lwp_create.2
diff -u src/lib/libc/sys/_lwp_create.2:1.7 src/lib/libc/sys/_lwp_create.2:1.8
--- src/lib/libc/sys/_lwp_create.2:1.7	Sun Apr 23 11:38:53 2017
+++ src/lib/libc/sys/_lwp_create.2	Sat Jul 31 20:51:32 2021
@@ -1,4 +1,4 @@
-.\"	$NetBSD: _lwp_create.2,v 1.7 2017/04/23 11:38:53 wiz Exp $
+.\"	$NetBSD: _lwp_create.2,v 1.8 2021/07/31 20:51:32 andvar Exp $
 .\"
 .\" Copyright (c) 2003 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -50,7 +50,7 @@ signal mask, stack, and machine register
 The signal stack of the newly created light-weight process is reset to
 disabled.
 If this context specifies invalid register values (for example priviledge
-escalation by setting machine dependend bits forbidden for user processes),
+escalation by setting machine dependent bits forbidden for user processes),
 or does not specify cpu register values (uc_flags does not have the
 _UC_CPU bit set), the call will fail and errno will be set to EINVAL.
 .Pp

Index: src/lib/libedit/tty.h
diff -u src/lib/libedit/tty.h:1.23 src/lib/libedit/tty.h:1.24
--- src/lib/libedit/tty.h:1.23	Sun Dec  2 16:58:13 2018
+++ src/lib/libedit/tty.h	Sat Jul 31 20:51:32 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: tty.h,v 1.23 2018/12/02 16:58:13 christos Exp $	*/
+/*	$NetBSD: tty.h,v 1.24 2021/07/31 20:51:32 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993
@@ -432,7 +432,7 @@
 #define	C_SH(A)		((unsigned int)(1 << (A)))
 
 /*
- * Terminal dependend data structures
+ * Terminal dependent data structures
  */
 #define	EX_IO	0	/* while we are executing	*/
 #define	ED_IO	1	/* while we are editing		*/

Index: src/sys/arch/atari/pci/pci_vga.c
diff -u src/sys/arch/atari/pci/pci_vga.c:1.17 src/sys/arch/atari/pci/pci_vga.c:1.18
--- src/sys/arch/atari/pci/pci_vga.c:1.17	Sat May  4 09:03:08 2019
+++ src/sys/arch/atari/pci/pci_vga.c	Sat Jul 31 20:51:32 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: pci_vga.c,v 1.17 2019/05/04 09:03:08 tsutsui Exp $	*/
+/*	$NetBSD: pci_vga.c,v 1.18 2021/07/31 20:51:32 andvar Exp $	*/
 
 /*
  * Copyright (c) 1999 Leo Weppelman.  All rights reserved.
@@ -25,7 +25,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: pci_vga.c,v 1.17 2019/05/04 09:03:08 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_vga.c,v 1.18 2021/07/31 20:51:32 andvar Exp $");
 
 #include 
 #include 
@@ -139,7 +139,7 @@ check_for_vga(bus_space_tag_t iot, bus_s
 		switch (id = PCI_PRODUCT(id)) {
 
 			/*
-			 * XXX Make the inclusion of the cases dependend
+			 * XXX Make the inclusion of the cases dependent
 			 * on config options!
 			 */
 			case PCI_PRODUCT_TSENG_ET6000:

Index: src/sys/arch/hpcmips/include/sysconf.h
diff -u src/sys/arch/hpcmips/include/sysconf.h:1.17 src/sys/arch/hpcmips/include/sysconf.h:1.18
--- src/sys/arch/hpcmips/include/sysconf.h:1.17	Wed Mar 16 14:43:36 2011
+++ src/sys/arch/hpcmips/include/sysconf.h	Sat Jul 31 20:51:32 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: sysconf.h,v 1.17 2011/03/16 14:43:36 tsutsui Exp $	*/
+/*	$NetBSD: sysconf.h,v 1.18 2021/07/31 20:51:32 andvar Exp $	*/
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
@@ -55,7 +55,7 @@ struct clock_ymdhms;
 extern struct platform {
 	/*
 	 *	cpu_intr	-	interrupt handler
-	 *	cpu_idle	-	CPU dependend idle routine.
+	 *	cpu_idle	-	CPU dependent idle routine.
 	 *	cons_init 	-	console initialization
 	 *	fb_init -   frame buffer initialization
 	 *  mem_init-   Count available memory

Index: src/sys/dev/hpc/hpcfbio.h
diff -u src/sys/dev/hpc/hpcfbio.h:1.2 src/sys/dev/hpc/hpcfbio.h:1.3
--- src/sys/dev/hpc/hpcfbio.h:1.2	Sun Jul 22 09:56:41 2001
+++ src/sys/dev/hpc/hpcfbio.h	Sat Jul 31 20:51:32 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: hpcfbio.h,v 1.2 2001/07/22 09:56:41 takemura Exp $	*/
+/*	$NetBSD: hpcfbio.h,v 1.3 2021/07/31 20:51:32 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1999
@@ -135,7 +135,7 @@ struct hpcfb_fbconf {
 	u_long	hf_reserved[3];
 
 	/*
-	 * class dependend data
+	 * class dependent data
 	 */
 	short	hf_class_data_length;
 	union {

Index: src/sys/dev/isa/tcic2_isa.c
diff -u src/sys/dev/isa/tcic2_isa.c:1.28 src/sys/dev/isa/tcic2_isa.c:1.29

CVS commit: src/sys

2021-07-31 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Jul 31 20:29:37 UTC 2021

Modified Files:
src/sys/arch/hp300/dev: rd.c
src/sys/arch/m68k/fpsp: round.sa
src/sys/arch/mips/sibyte/include: sb1250_mac.h
src/sys/dev/gpib: rd.c
src/sys/dev/ic: cs89x0.c siisatareg.h
src/sys/dev/usb: umcs.h
src/sys/netinet: tcp_congctl.c tcp_input.c tcp_subr.c tcp_var.h
src/sys/ufs/lfs: lfs_vfsops.c

Log Message:
s/threshhold/threshold


To generate a diff of this commit:
cvs rdiff -u -r1.109 -r1.110 src/sys/arch/hp300/dev/rd.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/m68k/fpsp/round.sa
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/mips/sibyte/include/sb1250_mac.h
cvs rdiff -u -r1.43 -r1.44 src/sys/dev/gpib/rd.c
cvs rdiff -u -r1.50 -r1.51 src/sys/dev/ic/cs89x0.c
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/ic/siisatareg.h
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/usb/umcs.h
cvs rdiff -u -r1.27 -r1.28 src/sys/netinet/tcp_congctl.c
cvs rdiff -u -r1.428 -r1.429 src/sys/netinet/tcp_input.c
cvs rdiff -u -r1.288 -r1.289 src/sys/netinet/tcp_subr.c
cvs rdiff -u -r1.195 -r1.196 src/sys/netinet/tcp_var.h
cvs rdiff -u -r1.380 -r1.381 src/sys/ufs/lfs/lfs_vfsops.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/hp300/dev/rd.c
diff -u src/sys/arch/hp300/dev/rd.c:1.109 src/sys/arch/hp300/dev/rd.c:1.110
--- src/sys/arch/hp300/dev/rd.c:1.109	Sun Jul 11 13:00:52 2021
+++ src/sys/arch/hp300/dev/rd.c	Sat Jul 31 20:29:36 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: rd.c,v 1.109 2021/07/11 13:00:52 tsutsui Exp $	*/
+/*	$NetBSD: rd.c,v 1.110 2021/07/31 20:29:36 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.109 2021/07/11 13:00:52 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.110 2021/07/31 20:29:36 andvar Exp $");
 
 #include "opt_useleds.h"
 
@@ -1238,7 +1238,7 @@ rderror(int unit)
 	}
 	/*
 	 * Only report error if we have reached the error reporting
-	 * threshhold.  By default, this will only report after the
+	 * threshold.  By default, this will only report after the
 	 * retry limit has been exceeded.
 	 */
 	if (sc->sc_errcnt < rderrthresh)

Index: src/sys/arch/m68k/fpsp/round.sa
diff -u src/sys/arch/m68k/fpsp/round.sa:1.3 src/sys/arch/m68k/fpsp/round.sa:1.4
--- src/sys/arch/m68k/fpsp/round.sa:1.3	Wed Oct 26 07:49:24 1994
+++ src/sys/arch/m68k/fpsp/round.sa	Sat Jul 31 20:29:37 2021
@@ -1,4 +1,4 @@
-*	$NetBSD: round.sa,v 1.3 1994/10/26 07:49:24 cgd Exp $
+*	$NetBSD: round.sa,v 1.4 2021/07/31 20:29:37 andvar Exp $
 
 *	MOTOROLA MICROPROCESSOR & MEMORY TECHNOLOGY GROUP
 *	M68000 Hi-Performance Microprocessor Division
@@ -507,7 +507,7 @@ no_inex:
 	rts
 
 *
-*	dnrm_lp --- normalize exponent/mantissa to specified threshhold
+*	dnrm_lp --- normalize exponent/mantissa to specified threshold
 *
 * Input:
 *	a0		points to the operand to be denormalized

Index: src/sys/arch/mips/sibyte/include/sb1250_mac.h
diff -u src/sys/arch/mips/sibyte/include/sb1250_mac.h:1.7 src/sys/arch/mips/sibyte/include/sb1250_mac.h:1.8
--- src/sys/arch/mips/sibyte/include/sb1250_mac.h:1.7	Tue May 28 08:59:34 2019
+++ src/sys/arch/mips/sibyte/include/sb1250_mac.h	Sat Jul 31 20:29:37 2021
@@ -228,7 +228,7 @@
 #define G_MAC_TXD_WEIGHT1(x)_SB_GETVALUE(x,S_MAC_TXD_WEIGHT1,M_MAC_TXD_WEIGHT1)
 
 /*
- * MAC Fifo Threshhold registers (Table 9-14)
+ * MAC Fifo Threshold registers (Table 9-14)
  * Register: MAC_THRSH_CFG_0
  * Register: MAC_THRSH_CFG_1
  * Register: MAC_THRSH_CFG_2

Index: src/sys/dev/gpib/rd.c
diff -u src/sys/dev/gpib/rd.c:1.43 src/sys/dev/gpib/rd.c:1.44
--- src/sys/dev/gpib/rd.c:1.43	Tue Sep 29 02:49:56 2020
+++ src/sys/dev/gpib/rd.c	Sat Jul 31 20:29:37 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: rd.c,v 1.43 2020/09/29 02:49:56 msaitoh Exp $ */
+/*	$NetBSD: rd.c,v 1.44 2021/07/31 20:29:37 andvar Exp $ */
 
 /*-
  * Copyright (c) 1996-2003 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.43 2020/09/29 02:49:56 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.44 2021/07/31 20:29:37 andvar Exp $");
 
 #include 
 #include 
@@ -871,7 +871,7 @@ rderror(struct rd_softc *sc)
 	}
 	/*
 	 * Only report error if we have reached the error reporting
-	 * threshhold.  By default, this will only report after the
+	 * threshold.  By default, this will only report after the
 	 * retry limit has been exceeded.
 	 */
 	if (sc->sc_errcnt < rderrthresh)

Index: src/sys/dev/ic/cs89x0.c
diff -u src/sys/dev/ic/cs89x0.c:1.50 src/sys/dev/ic/cs89x0.c:1.51
--- src/sys/dev/ic/cs89x0.c:1.50	Sat Jul 24 21:31:37 2021
+++ src/sys/dev/ic/cs89x0.c	Sat Jul 31 20:29:37 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: cs89x0.c,v 1.50 2021/07/24 21:31:37 andvar Exp $	*/
+/*	$NetBSD: cs89x0.c,v 1.51 2021/07/31 20:29:37 andvar Exp $	*/
 
 /*
  * Copyright (c) 2004 Christopher Gilbert
@@ -212,7 +212,7 @@
 */
 

CVS commit: src/sys/arch/sparc/sparc

2021-07-31 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Jul 31 16:54:37 UTC 2021

Modified Files:
src/sys/arch/sparc/sparc: autoconf.c

Log Message:
s/propective/prospective


To generate a diff of this commit:
cvs rdiff -u -r1.267 -r1.268 src/sys/arch/sparc/sparc/autoconf.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/sparc/sparc/autoconf.c
diff -u src/sys/arch/sparc/sparc/autoconf.c:1.267 src/sys/arch/sparc/sparc/autoconf.c:1.268
--- src/sys/arch/sparc/sparc/autoconf.c:1.267	Sat Jul 31 10:07:22 2021
+++ src/sys/arch/sparc/sparc/autoconf.c	Sat Jul 31 16:54:37 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: autoconf.c,v 1.267 2021/07/31 10:07:22 andvar Exp $ */
+/*	$NetBSD: autoconf.c,v 1.268 2021/07/31 16:54:37 andvar Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -48,7 +48,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.267 2021/07/31 10:07:22 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.268 2021/07/31 16:54:37 andvar Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -2009,7 +2009,7 @@ bootinfo_relocate(void *newloc)
 		(size_t)cp < (size_t)bootinfo + BOOTINFO_SIZE);
 
 	/*
-	 * Check propective gains.
+	 * Check prospective gains.
 	 */
 	if ((int)bootinfo - (int)newloc < bi_size)
 		/* Don't bother */



CVS commit: src/libexec/lfs_cleanerd

2021-07-31 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Jul 31 15:02:54 UTC 2021

Modified Files:
src/libexec/lfs_cleanerd: lfs_cleanerd.8

Log Message:
s/threshhold/threshold


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/libexec/lfs_cleanerd/lfs_cleanerd.8

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

Modified files:

Index: src/libexec/lfs_cleanerd/lfs_cleanerd.8
diff -u src/libexec/lfs_cleanerd/lfs_cleanerd.8:1.20 src/libexec/lfs_cleanerd/lfs_cleanerd.8:1.21
--- src/libexec/lfs_cleanerd/lfs_cleanerd.8:1.20	Sat Aug 31 07:49:48 2019
+++ src/libexec/lfs_cleanerd/lfs_cleanerd.8	Sat Jul 31 15:02:54 2021
@@ -1,4 +1,4 @@
-.\"	$NetBSD: lfs_cleanerd.8,v 1.20 2019/08/31 07:49:48 wiz Exp $
+.\"	$NetBSD: lfs_cleanerd.8,v 1.21 2021/07/31 15:02:54 andvar Exp $
 .\"
 .\" Copyright (c) 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -40,7 +40,7 @@
 .Op Fl bcDdfmqs
 .Op Fl i Ar segment-number
 .Op Fl J Ar raw-device
-.Op Fl l Ar load-threshhold
+.Op Fl l Ar load-threshold
 .Op Fl n Ar number-of-segments
 .Op Fl r Ar report-frequency
 .Op Fl S Ar semaphore-address
@@ -102,9 +102,9 @@ trying to figure it out from the mount p
 This is mostly useful when the cleaner is compiled into
 .Xr rump_lfs 8
 and the ATF test framework.
-.It Fl l Ar load-threshhold
-Clean more aggressively when the system load is below the given threshhold.
-The default threshhold is 0.2.
+.It Fl l Ar load-threshold
+Clean more aggressively when the system load is below the given threshold.
+The default threshold is 0.2.
 .It Fl m
 Does nothing.
 This option is present for historical compatibility.



CVS commit: src

2021-07-31 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Jul 31 14:36:33 UTC 2021

Modified Files:
src/common/lib/libc/hash/sha3: sha3.c
src/sys/arch/arm/ixp12x0: ixp12x0_clk.c
src/sys/arch/dreamcast/dev: pvr.c
src/sys/dev/ic: mb86950.c mb86960.c mb86960var.h
src/sys/dev/usb: umcs.h

Log Message:
fix more typos in style found one in file - check/fix them all.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/common/lib/libc/hash/sha3/sha3.c
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/arm/ixp12x0/ixp12x0_clk.c
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/dreamcast/dev/pvr.c
cvs rdiff -u -r1.34 -r1.35 src/sys/dev/ic/mb86950.c
cvs rdiff -u -r1.95 -r1.96 src/sys/dev/ic/mb86960.c
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/ic/mb86960var.h
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/usb/umcs.h

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/hash/sha3/sha3.c
diff -u src/common/lib/libc/hash/sha3/sha3.c:1.2 src/common/lib/libc/hash/sha3/sha3.c:1.3
--- src/common/lib/libc/hash/sha3/sha3.c:1.2	Sat May 30 18:40:28 2020
+++ src/common/lib/libc/hash/sha3/sha3.c	Sat Jul 31 14:36:33 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: sha3.c,v 1.2 2020/05/30 18:40:28 riastradh Exp $	*/
+/*	$NetBSD: sha3.c,v 1.3 2021/07/31 14:36:33 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2015 Taylor R. Campbell
@@ -27,7 +27,7 @@
  */
 
 /*
- * SHA-3: FIPS-202, Permutation-Based Hash and Extendable-Ouptut Functions
+ * SHA-3: FIPS-202, Permutation-Based Hash and Extendable-Output Functions
  */
 
 #if HAVE_NBTOOL_CONFIG_H
@@ -38,14 +38,14 @@
 
 #if defined(_KERNEL) || defined(_STANDALONE)
 
-__KERNEL_RCSID(0, "$NetBSD: sha3.c,v 1.2 2020/05/30 18:40:28 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sha3.c,v 1.3 2021/07/31 14:36:33 andvar Exp $");
 #include 
 
 #define	SHA3_ASSERT	KASSERT
 
 #else
 
-__RCSID("$NetBSD: sha3.c,v 1.2 2020/05/30 18:40:28 riastradh Exp $");
+__RCSID("$NetBSD: sha3.c,v 1.3 2021/07/31 14:36:33 andvar Exp $");
 
 #include "namespace.h"
 

Index: src/sys/arch/arm/ixp12x0/ixp12x0_clk.c
diff -u src/sys/arch/arm/ixp12x0/ixp12x0_clk.c:1.18 src/sys/arch/arm/ixp12x0/ixp12x0_clk.c:1.19
--- src/sys/arch/arm/ixp12x0/ixp12x0_clk.c:1.18	Fri May 29 12:30:39 2020
+++ src/sys/arch/arm/ixp12x0/ixp12x0_clk.c	Sat Jul 31 14:36:33 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ixp12x0_clk.c,v 1.18 2020/05/29 12:30:39 rin Exp $	*/
+/*	$NetBSD: ixp12x0_clk.c,v 1.19 2021/07/31 14:36:33 andvar Exp $	*/
 
 /*
  * Copyright (c) 1997 Mark Brinicombe.
@@ -38,7 +38,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ixp12x0_clk.c,v 1.18 2020/05/29 12:30:39 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ixp12x0_clk.c,v 1.19 2021/07/31 14:36:33 andvar Exp $");
 
 #include 
 #include 
@@ -314,7 +314,7 @@ delay(unsigned int usecs)
 
 	if (ixpclk_sc == NULL) {
 #ifdef DEBUG
-		printf("delay: called befor start ixpclk\n");
+		printf("delay: called before start ixpclk\n");
 #endif
 
 		csec = usecs / 1;

Index: src/sys/arch/dreamcast/dev/pvr.c
diff -u src/sys/arch/dreamcast/dev/pvr.c:1.37 src/sys/arch/dreamcast/dev/pvr.c:1.38
--- src/sys/arch/dreamcast/dev/pvr.c:1.37	Sat Apr 24 23:36:31 2021
+++ src/sys/arch/dreamcast/dev/pvr.c	Sat Jul 31 14:36:33 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: pvr.c,v 1.37 2021/04/24 23:36:31 thorpej Exp $	*/
+/*	$NetBSD: pvr.c,v 1.38 2021/07/31 14:36:33 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2001 Marcus Comstedt.
@@ -35,7 +35,7 @@
 
 #include 			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: pvr.c,v 1.37 2021/04/24 23:36:31 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pvr.c,v 1.38 2021/07/31 14:36:33 andvar Exp $");
 
 #include 
 #include 
@@ -377,7 +377,7 @@ pvrmmap(void *v, void *vs, off_t offset,
 
 	/*
 	 * XXX This should be easy to support -- just need to define
-	 * XXX offsets for the contol regs, etc.
+	 * XXX offsets for the control regs, etc.
 	 */
 
 	struct pvr_softc *sc = v;

Index: src/sys/dev/ic/mb86950.c
diff -u src/sys/dev/ic/mb86950.c:1.34 src/sys/dev/ic/mb86950.c:1.35
--- src/sys/dev/ic/mb86950.c:1.34	Tue Feb  4 05:25:39 2020
+++ src/sys/dev/ic/mb86950.c	Sat Jul 31 14:36:33 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mb86950.c,v 1.34 2020/02/04 05:25:39 thorpej Exp $	*/
+/*	$NetBSD: mb86950.c,v 1.35 2021/07/31 14:36:33 andvar Exp $	*/
 
 /*
  * All Rights Reserved, Copyright (C) Fujitsu Limited 1995
@@ -67,7 +67,7 @@
   */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mb86950.c,v 1.34 2020/02/04 05:25:39 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mb86950.c,v 1.35 2021/07/31 14:36:33 andvar Exp $");
 
 /*
  * Device driver for Fujitsu mb86950 based Ethernet cards.
@@ -795,13 +795,13 @@ mb86950_rint(struct mb86950_softc *sc, u
 	 * We just loop checking the flag to pull out all received
 	 * packets.
 	 *
-	 * We limit the number of iterrations to avoid infinite loop.
+	 * We limit the number of iterations to avoid infinite loop.
 	 * It can be caused by a very slow CPU (some 

CVS commit: src/sys/netinet6

2021-07-31 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Jul 31 10:12:04 UTC 2021

Modified Files:
src/sys/netinet6: in6.h

Log Message:
fix typos in comments


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 src/sys/netinet6/in6.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/netinet6/in6.h
diff -u src/sys/netinet6/in6.h:1.100 src/sys/netinet6/in6.h:1.101
--- src/sys/netinet6/in6.h:1.100	Tue Sep  8 14:12:57 2020
+++ src/sys/netinet6/in6.h	Sat Jul 31 10:12:04 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: in6.h,v 1.100 2020/09/08 14:12:57 christos Exp $	*/
+/*	$NetBSD: in6.h,v 1.101 2021/07/31 10:12:04 andvar Exp $	*/
 /*	$KAME: in6.h,v 1.83 2001/03/29 02:55:07 jinmei Exp $	*/
 
 /*
@@ -429,7 +429,7 @@ extern const struct in6_addr in6addr_lin
 #define IPV6_HOPLIMIT		47 /* int; send hop limit */
 #define IPV6_NEXTHOP		48 /* sockaddr; next hop addr */
 #define IPV6_HOPOPTS		49 /* ip6_hbh; send hop-by-hop option */
-#define IPV6_DSTOPTS		50 /* ip6_dest; send dst option befor rthdr */
+#define IPV6_DSTOPTS		50 /* ip6_dest; send dst option before rthdr */
 #define IPV6_RTHDR		51 /* ip6_rthdr; send routing header */
 
 #define IPV6_RECVTCLASS		57 /* bool; recv traffic class values */
@@ -440,7 +440,7 @@ extern const struct in6_addr in6addr_lin
 #define IPV6_TCLASS		61 /* int; send traffic class value */
 #define IPV6_DONTFRAG		62 /* bool; disable IPv6 fragmentation */
 #define IPV6_PREFER_TEMPADDR	63 /* int; prefer temporary address as
-* the sorce address */
+* the source address */
 #define IPV6_BINDANY		64 /* bool: allow bind to any address */
 /* to define items, should talk with KAME guys first, for *BSD compatibility */
 



CVS commit: src/sys/arch/sparc/sparc

2021-07-31 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Jul 31 10:07:23 UTC 2021

Modified Files:
src/sys/arch/sparc/sparc: autoconf.c

Log Message:
fix typos in comments


To generate a diff of this commit:
cvs rdiff -u -r1.266 -r1.267 src/sys/arch/sparc/sparc/autoconf.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/sparc/sparc/autoconf.c
diff -u src/sys/arch/sparc/sparc/autoconf.c:1.266 src/sys/arch/sparc/sparc/autoconf.c:1.267
--- src/sys/arch/sparc/sparc/autoconf.c:1.266	Mon May 10 23:53:44 2021
+++ src/sys/arch/sparc/sparc/autoconf.c	Sat Jul 31 10:07:22 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: autoconf.c,v 1.266 2021/05/10 23:53:44 thorpej Exp $ */
+/*	$NetBSD: autoconf.c,v 1.267 2021/07/31 10:07:22 andvar Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -48,7 +48,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.266 2021/05/10 23:53:44 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.267 2021/07/31 10:07:22 andvar Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -1114,7 +1114,7 @@ mainbus_attach(device_t parent, device_t
 		const char *const dev;
 #define BS_EARLY	1	/* attach device early */
 #define	BS_IGNORE	2	/* ignore root device */
-#define	BS_OPTIONAL	4	/* device not alwas present */
+#define	BS_OPTIONAL	4	/* device not always present */
 		unsigned int flags;
 	};
 



CVS commit: src/sys/arch/sh3/sh3

2021-07-26 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Jul 26 21:43:11 UTC 2021

Modified Files:
src/sys/arch/sh3/sh3: exception_vector.S pmap.c

Log Message:
Revert rename back to OFSET, since the name follows historical PGOFSET 
definition. Noted by tsutsui.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/sys/arch/sh3/sh3/exception_vector.S
cvs rdiff -u -r1.84 -r1.85 src/sys/arch/sh3/sh3/pmap.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/sh3/sh3/exception_vector.S
diff -u src/sys/arch/sh3/sh3/exception_vector.S:1.52 src/sys/arch/sh3/sh3/exception_vector.S:1.53
--- src/sys/arch/sh3/sh3/exception_vector.S:1.52	Sat Jul 24 21:31:35 2021
+++ src/sys/arch/sh3/sh3/exception_vector.S	Mon Jul 26 21:43:11 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: exception_vector.S,v 1.52 2021/07/24 21:31:35 andvar Exp $	*/
+/*	$NetBSD: exception_vector.S,v 1.53 2021/07/26 21:43:11 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2002, 2019 The NetBSD Foundation, Inc.
@@ -48,7 +48,7 @@
 #define _ALIGN_TEXT	.align 5
 #include 
 
-__KERNEL_RCSID(0, "$NetBSD: exception_vector.S,v 1.52 2021/07/24 21:31:35 andvar Exp $")
+__KERNEL_RCSID(0, "$NetBSD: exception_vector.S,v 1.53 2021/07/26 21:43:11 andvar Exp $")
 
 
 /*
@@ -220,7 +220,7 @@ NENTRY(sh3_vector_tlbmiss)
 	bt/s	.L3_call_tlb_exception
 	 mov	#-(PGSHIFT - 2), r1
 
-	!! __PMAP_PTP_OFFSET(vpn) - except we pre-shift 2 bits left to
+	!! __PMAP_PTP_OFSET(vpn) - except we pre-shift 2 bits left to
 	!! get the array offset directly, as we know bits 10 and 11
 	!! are zero (we cleaned them in r5 to get 4K aligned VPN)
 	shld	r1, r2		! vpn >> (PGSHIFT - 2)

Index: src/sys/arch/sh3/sh3/pmap.c
diff -u src/sys/arch/sh3/sh3/pmap.c:1.84 src/sys/arch/sh3/sh3/pmap.c:1.85
--- src/sys/arch/sh3/sh3/pmap.c:1.84	Sat Jul 24 21:31:35 2021
+++ src/sys/arch/sh3/sh3/pmap.c	Mon Jul 26 21:43:11 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.c,v 1.84 2021/07/24 21:31:35 andvar Exp $	*/
+/*	$NetBSD: pmap.c,v 1.85 2021/07/26 21:43:11 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.84 2021/07/24 21:31:35 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.85 2021/07/26 21:43:11 andvar Exp $");
 
 #include 
 #include 
@@ -55,7 +55,7 @@ __KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.8
 	(((va) + (1 << __PMAP_PTP_SHIFT) - 1) & ~((1 << __PMAP_PTP_SHIFT) - 1))
 #define	__PMAP_PTP_PG_N		(PAGE_SIZE / sizeof(pt_entry_t))
 #define	__PMAP_PTP_INDEX(va)	(((va) >> __PMAP_PTP_SHIFT) & (__PMAP_PTP_N - 1))
-#define	__PMAP_PTP_OFFSET(va)	((va >> PGSHIFT) & (__PMAP_PTP_PG_N - 1))
+#define	__PMAP_PTP_OFSET(va)	((va >> PGSHIFT) & (__PMAP_PTP_PG_N - 1))
 
 struct pmap __pmap_kernel;
 struct pmap *const kernel_pmap_ptr = &__pmap_kernel;
@@ -966,7 +966,7 @@ __pmap_pte_alloc(pmap_t pmap, vaddr_t va
 	ptp = (pt_entry_t *)SH3_PHYS_TO_P1SEG(VM_PAGE_TO_PHYS(pg));
 	pmap->pm_ptp[__PMAP_PTP_INDEX(va)] = ptp;
 
-	return (ptp + __PMAP_PTP_OFFSET(va));
+	return (ptp + __PMAP_PTP_OFSET(va));
 }
 
 /*
@@ -986,7 +986,7 @@ __pmap_pte_lookup(pmap_t pmap, vaddr_t v
 	if (ptp == NULL)
 		return (NULL);
 
-	return (ptp + __PMAP_PTP_OFFSET(va));
+	return (ptp + __PMAP_PTP_OFSET(va));
 }
 
 /*
@@ -1002,7 +1002,7 @@ __pmap_kpte_lookup(vaddr_t va)
 	if (ptp == NULL)
 		return NULL;
 
-	return (ptp + __PMAP_PTP_OFFSET(va));
+	return (ptp + __PMAP_PTP_OFSET(va));
 }
 
 /*



CVS commit: src/sys

2021-07-24 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Jul 24 22:30:59 UTC 2021

Modified Files:
src/sys/arch/acorn32/podulebus: if_ie.c
src/sys/coda: coda_opstats.h
src/sys/dev/pci: if_mcx.c if_vr.c

Log Message:
s/structres/structures + s/whenver/whenever


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/acorn32/podulebus/if_ie.c
cvs rdiff -u -r1.6 -r1.7 src/sys/coda/coda_opstats.h
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/pci/if_mcx.c
cvs rdiff -u -r1.134 -r1.135 src/sys/dev/pci/if_vr.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/acorn32/podulebus/if_ie.c
diff -u src/sys/arch/acorn32/podulebus/if_ie.c:1.48 src/sys/arch/acorn32/podulebus/if_ie.c:1.49
--- src/sys/arch/acorn32/podulebus/if_ie.c:1.48	Wed Feb  5 08:33:19 2020
+++ src/sys/arch/acorn32/podulebus/if_ie.c	Sat Jul 24 22:30:59 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ie.c,v 1.48 2020/02/05 08:33:19 skrll Exp $ */
+/* $NetBSD: if_ie.c,v 1.49 2021/07/24 22:30:59 andvar Exp $ */
 
 /*
  * Copyright (c) 1995 Melvin Tang-Richardson.
@@ -53,7 +53,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_ie.c,v 1.48 2020/02/05 08:33:19 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ie.c,v 1.49 2021/07/24 22:30:59 andvar Exp $");
 
 #define IGNORE_ETHER1_IDROM_CHECKSUM
 
@@ -94,7 +94,7 @@ __KERNEL_RCSID(0, "$NetBSD: if_ie.c,v 1.
 #include 
 #endif
 
-/* Import our data structres */
+/* Import our data structures */
 
 #include "if_iereg.h"
 

Index: src/sys/coda/coda_opstats.h
diff -u src/sys/coda/coda_opstats.h:1.6 src/sys/coda/coda_opstats.h:1.7
--- src/sys/coda/coda_opstats.h:1.6	Sun Dec 11 12:19:50 2005
+++ src/sys/coda/coda_opstats.h	Sat Jul 24 22:30:59 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: coda_opstats.h,v 1.6 2005/12/11 12:19:50 christos Exp $	*/
+/*	$NetBSD: coda_opstats.h,v 1.7 2021/07/24 22:30:59 andvar Exp $	*/
 
 /*
  *
@@ -104,7 +104,7 @@
 #define CODA_VNODEOPS_SIZE  20
 
 /*
- * I propose the following structres:
+ * I propose the following structures:
  */
 
 struct coda_op_stats {
@@ -118,7 +118,7 @@ struct coda_op_stats {
 };
 
 /*
- * With each call to the minicache, we'll bump the counters whenver
+ * With each call to the minicache, we'll bump the counters whenever
  * a call is satisfied internally (through the cache or through a
  * redirect), and whenever an operation is caused internally.
  * Then, we can add the total operations caught by the minicache

Index: src/sys/dev/pci/if_mcx.c
diff -u src/sys/dev/pci/if_mcx.c:1.17 src/sys/dev/pci/if_mcx.c:1.18
--- src/sys/dev/pci/if_mcx.c:1.17	Sat Feb 20 13:31:35 2021
+++ src/sys/dev/pci/if_mcx.c	Sat Jul 24 22:30:59 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_mcx.c,v 1.17 2021/02/20 13:31:35 jmcneill Exp $ */
+/*	$NetBSD: if_mcx.c,v 1.18 2021/07/24 22:30:59 andvar Exp $ */
 /*	$OpenBSD: if_mcx.c,v 1.99 2021/02/15 03:42:00 dlg Exp $ */
 
 /*
@@ -23,7 +23,7 @@
 #endif
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_mcx.c,v 1.17 2021/02/20 13:31:35 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_mcx.c,v 1.18 2021/07/24 22:30:59 andvar Exp $");
 
 #include 
 #include 
@@ -332,7 +332,7 @@ struct mcx_cmdq_mailbox {
 #define MCX_CMDQ_MAILBOX_SIZE	roundup(sizeof(struct mcx_cmdq_mailbox), \
 MCX_CMDQ_MAILBOX_ALIGN)
 /*
- * command mailbox structres
+ * command mailbox structures
  */
 
 struct mcx_cmd_enable_hca_in {

Index: src/sys/dev/pci/if_vr.c
diff -u src/sys/dev/pci/if_vr.c:1.134 src/sys/dev/pci/if_vr.c:1.135
--- src/sys/dev/pci/if_vr.c:1.134	Sat May  8 00:27:02 2021
+++ src/sys/dev/pci/if_vr.c	Sat Jul 24 22:30:59 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_vr.c,v 1.134 2021/05/08 00:27:02 thorpej Exp $	*/
+/*	$NetBSD: if_vr.c,v 1.135 2021/07/24 22:30:59 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_vr.c,v 1.134 2021/05/08 00:27:02 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vr.c,v 1.135 2021/07/24 22:30:59 andvar Exp $");
 
 
 
@@ -174,7 +174,7 @@ static const struct device_compatible_en
 #define	VR_NEXTRX(x)		(((x) + 1) & VR_NRXDESC_MASK)
 
 /*
- * Control data structres that are DMA'd to the Rhine chip.  We allocate
+ * Control data structures that are DMA'd to the Rhine chip.  We allocate
  * them in a single clump that maps to a single DMA segment to make several
  * things easier.
  *



CVS commit: src

2021-07-24 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Jul 24 21:31:39 UTC 2021

Modified Files:
src/bin/ksh: tty.c
src/common/dist/zlib: zlib.h
src/crypto/dist/ipsec-tools/src/racoon: isakmp_cfg.c
src/crypto/external/bsd/libsaslc/dist/src: error.h
src/dist/pf/sbin/pfctl: pfctl_altq.c
src/external/mit/lua/dist: lua2netbsd
src/sys/arch/alpha/alpha: db_trace.c
src/sys/arch/arm/broadcom: bcm2835_gpio.c
src/sys/arch/arm/imx: imx51_ccm.c imx51_ccmreg.h
src/sys/arch/arm/xscale: ixp425_npe.c ixp425_npereg.h
src/sys/arch/cesfic/cesfic: pmap_bootstrap.c
src/sys/arch/cobalt/stand/boot: tlp.c
src/sys/arch/emips/ebus: ace_ebus.c flash_ebus.c
src/sys/arch/emips/stand/common: ace.c raw.c
src/sys/arch/evbmips/stand/sbmips/common: blkdev.c
src/sys/arch/hp300/hp300: pmap_bootstrap.c
src/sys/arch/hppa/dev: ssio.c
src/sys/arch/ia64/ia64: trap.c
src/sys/arch/m68k/060sp/dist: isp.s
src/sys/arch/m68k/m68k: db_disasm.c
src/sys/arch/mac68k/mac68k: pmap_bootstrap.c
src/sys/arch/macppc/dev: pbms.c
src/sys/arch/mips/rmi: rmixlreg.h
src/sys/arch/mipsco/stand/common: saio.c
src/sys/arch/mvme68k/dev: sbicvar.h
src/sys/arch/pmax/ibus: sii.c
src/sys/arch/pmax/stand/common: rz.c
src/sys/arch/powerpc/booke: spe_subr.S
src/sys/arch/powerpc/powerpc: db_interface.c
src/sys/arch/powerpc/stand/mkbootimage: rs6000_bootrec.h
src/sys/arch/prep/pnpbus: fdc_pnpbus.c
src/sys/arch/prep/stand/boot: siop.c
src/sys/arch/sgimips/sgimips: machdep.c
src/sys/arch/sh3/sh3: exception_vector.S pmap.c
src/sys/arch/sparc/stand/bootblk: bootblk.fth
src/sys/arch/sparc64/dev: iommuvar.h
src/sys/arch/usermode/usermode: pmap.c
src/sys/arch/vax/vax: db_disasm.c
src/sys/arch/xen/xen: xenevt.c
src/sys/dev: vnd.c
src/sys/dev/bi: kdbreg.h
src/sys/dev/cardbus: fwohci_cardbus.c
src/sys/dev/dm: dm_ioctl.c dm_target_flakey.c
src/sys/dev/hpc: files.hpcio
src/sys/dev/ic: adw.c ahcisatareg.h aic79xx.c aic7xxx.c cs89x0.c
lemacreg.h mfireg.h mpt_mpilib.h
src/sys/dev/ieee1394: fwdma.c
src/sys/dev/isa: README.seagate sbdsp.c
src/sys/dev/marvell: gtidmac.c
src/sys/dev/microcode/aic7xxx: aicasm.c
src/sys/dev/pci: if_ena.c if_vge.c if_vgereg.h
src/sys/dev/pci/ixgbe: ixgbe_common.c
src/sys/dev/spi: mcp23s17.c
src/sys/fs/msdosfs: msdosfs_lookup.c
src/sys/fs/nilfs: nilfs_vnops.c
src/sys/fs/puffs: puffs_vnops.c
src/sys/fs/udf: udf_allocation.c udf_subr.c udf_vfsops.c udf_vnops.c
src/sys/net80211: ieee80211_ioctl.c ieee80211_output.c
ieee80211_proto.c ieee80211_proto.h
src/sys/netinet: sctp_output.c sctputil.c
src/sys/sys: disk.h
src/usr.bin/config: TODO
src/usr.sbin/altq/altqstat: altqstat.c
src/usr.sbin/lpr/lpd: recvjob.c
src/usr.sbin/sysinst/arch/mac68k: menus.md.de menus.md.en menus.md.es
menus.md.pl
src/usr.sbin/ypserv/yppush: yppush.c

Log Message:
Fix all remaining typos, mainly in comments but also in few definitions and log 
messages, reported by me in PR kern/54889.
Also fixed some additional typos in comments, found on review of same files or 
typos.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/bin/ksh/tty.c
cvs rdiff -u -r1.4 -r1.5 src/common/dist/zlib/zlib.h
cvs rdiff -u -r1.28 -r1.29 \
src/crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
cvs rdiff -u -r1.3 -r1.4 src/crypto/external/bsd/libsaslc/dist/src/error.h
cvs rdiff -u -r1.10 -r1.11 src/dist/pf/sbin/pfctl/pfctl_altq.c
cvs rdiff -u -r1.2 -r1.3 src/external/mit/lua/dist/lua2netbsd
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/alpha/alpha/db_trace.c
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/arm/broadcom/bcm2835_gpio.c
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/imx/imx51_ccm.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/arm/imx/imx51_ccmreg.h
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/arm/xscale/ixp425_npe.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/xscale/ixp425_npereg.h
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/cesfic/cesfic/pmap_bootstrap.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/cobalt/stand/boot/tlp.c
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/emips/ebus/ace_ebus.c
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/emips/ebus/flash_ebus.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/emips/stand/common/ace.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/emips/stand/common/raw.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/evbmips/stand/sbmips/common/blkdev.c
cvs rdiff -u -r1.59 -r1.60 src/sys/arch/hp300/hp300/pmap_bootstrap.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/hppa/dev/ssio.c
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/ia64/ia64/trap.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/m68k/060sp/dist/isp.s
cvs rdiff -u 

CVS commit: src/sys/ufs/chfs

2021-07-19 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Jul 19 22:24:55 UTC 2021

Modified Files:
src/sys/ufs/chfs: chfs_gc.c

Log Message:
NFC - if/else blocks start with the same mutex_exit, just move it up.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/ufs/chfs/chfs_gc.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/ufs/chfs/chfs_gc.c
diff -u src/sys/ufs/chfs/chfs_gc.c:1.10 src/sys/ufs/chfs/chfs_gc.c:1.11
--- src/sys/ufs/chfs/chfs_gc.c:1.10	Fri Jul 16 21:18:41 2021
+++ src/sys/ufs/chfs/chfs_gc.c	Mon Jul 19 22:24:55 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: chfs_gc.c,v 1.10 2021/07/16 21:18:41 andvar Exp $	*/
+/*	$NetBSD: chfs_gc.c,v 1.11 2021/07/19 22:24:55 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -232,15 +232,13 @@ chfs_gc_fetch_inode(struct chfs_mount *c
 mutex_exit(>chm_lock_vnocache);
 return NULL;
 			}
+			mutex_exit(>chm_lock_vnocache);
 			if (vc->state != VNO_STATE_CHECKEDABSENT) {
-mutex_exit(>chm_lock_vnocache);
 /* XXX why do we need the delay here?! */
 KASSERT(mutex_owned(>chm_lock_mountfields));
 cv_timedwait_sig(
 	>chm_gc_thread.gcth_wakeup,
 	>chm_lock_mountfields, mstohz(50));
-			} else {
-mutex_exit(>chm_lock_vnocache);
 			}
 			return NULL;
 		}



CVS commit: src/sys/ufs/chfs

2021-07-19 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Mon Jul 19 21:04:39 UTC 2021

Modified Files:
src/sys/ufs/chfs: chfs_build.c chfs_write.c

Log Message:
Release mutexes in few more places on failure path. Reviewed them in chfs code 
after fixing PR kern/56242.
ok riastradh


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/ufs/chfs/chfs_build.c \
src/sys/ufs/chfs/chfs_write.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/ufs/chfs/chfs_build.c
diff -u src/sys/ufs/chfs/chfs_build.c:1.5 src/sys/ufs/chfs/chfs_build.c:1.6
--- src/sys/ufs/chfs/chfs_build.c:1.5	Fri Oct 19 12:44:39 2012
+++ src/sys/ufs/chfs/chfs_build.c	Mon Jul 19 21:04:39 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: chfs_build.c,v 1.5 2012/10/19 12:44:39 ttoth Exp $	*/
+/*	$NetBSD: chfs_build.c,v 1.6 2021/07/19 21:04:39 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -252,8 +252,10 @@ chfs_build_filesystem(struct chfs_mount 
 if (chmp->chm_nextblock) {
 	err = chfs_close_eraseblock(chmp,
 	chmp->chm_nextblock);
-	if (err)
+	if (err) {
+		mutex_exit(>chm_lock_mountfields);
 		return err;
+	}
 }
 chmp->chm_nextblock = >chm_blocks[i];
 			} else {
@@ -261,8 +263,10 @@ chfs_build_filesystem(struct chfs_mount 
  * dirty and put it on a list */
 err = chfs_close_eraseblock(chmp,
 >chm_blocks[i]);
-if (err)
+if (err) {
+	mutex_exit(>chm_lock_mountfields);
 	return err;
+}
 			}
 			break;
 		case CHFS_BLK_STATE_ALLDIRTY:
Index: src/sys/ufs/chfs/chfs_write.c
diff -u src/sys/ufs/chfs/chfs_write.c:1.5 src/sys/ufs/chfs/chfs_write.c:1.6
--- src/sys/ufs/chfs/chfs_write.c:1.5	Fri Oct 19 12:44:39 2012
+++ src/sys/ufs/chfs/chfs_write.c	Mon Jul 19 21:04:39 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: chfs_write.c,v 1.5 2012/10/19 12:44:39 ttoth Exp $	*/
+/*	$NetBSD: chfs_write.c,v 1.6 2021/07/19 21:04:39 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -438,8 +438,10 @@ chfs_do_link(struct chfs_inode *ip, stru
 
 	/* update vnode information */
 	error = chfs_write_flash_vnode(chmp, ip, ALLOC_NORMAL);
-	if (error)
+	if (error) {
+		mutex_exit(>chm_lock_mountfields);
 		return error;
+	}
 
 	/* write out the new dirent */
 	error = chfs_write_flash_dirent(chmp,



CVS commit: src/sys/ufs/chfs

2021-07-16 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Jul 16 21:18:41 UTC 2021

Modified Files:
src/sys/ufs/chfs: chfs_gc.c chfs_scan.c

Log Message:
Fix incorrect function name, some grammar and typos in comments. Remove 
trailing tab symbol.
No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/ufs/chfs/chfs_gc.c \
src/sys/ufs/chfs/chfs_scan.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/ufs/chfs/chfs_gc.c
diff -u src/sys/ufs/chfs/chfs_gc.c:1.9 src/sys/ufs/chfs/chfs_gc.c:1.10
--- src/sys/ufs/chfs/chfs_gc.c:1.9	Thu Jun  1 02:45:15 2017
+++ src/sys/ufs/chfs/chfs_gc.c	Fri Jul 16 21:18:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: chfs_gc.c,v 1.9 2017/06/01 02:45:15 chs Exp $	*/
+/*	$NetBSD: chfs_gc.c,v 1.10 2021/07/16 21:18:41 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -89,7 +89,7 @@ chfs_gc_thread(void *data)
 	mutex_enter(>chm_lock_mountfields);
 	while (gc->gcth_running) {
 		/* we must call chfs_gc_thread_should_wake with chm_lock_mountfields
-		 * held, which is a bit awkwardly done here, but we cant relly
+		 * held, which is a bit awkwardly done here, but we can't really
 		 * do it otherway with the current design...
 		 */
 		if (chfs_gc_thread_should_wake(chmp)) {
@@ -127,7 +127,7 @@ chfs_gc_thread_start(struct chfs_mount *
 	"chfsgcth");
 }
 
-/* chfs_gc_thread_start - stops GC */
+/* chfs_gc_thread_stop - stops GC */
 void
 chfs_gc_thread_stop(struct chfs_mount *chmp)
 {
@@ -191,7 +191,7 @@ chfs_gc_thread_should_wake(struct chfs_m
 		return 1;
 	}
 
-	/* There is too much very dirty blocks. */
+	/* There are too much very dirty blocks. */
 	TAILQ_FOREACH(cheb, >chm_very_dirty_queue, queue) {
 		nr_very_dirty++;
 		if (nr_very_dirty == chmp->chm_vdirty_blocks_gctrigger) {
@@ -200,7 +200,7 @@ chfs_gc_thread_should_wake(struct chfs_m
 		}
 	}
 
-	/* Everythin OK, GC shouldn't run. */
+	/* Everything is OK, GC shouldn't run. */
 	return 0;
 }
 
Index: src/sys/ufs/chfs/chfs_scan.c
diff -u src/sys/ufs/chfs/chfs_scan.c:1.9 src/sys/ufs/chfs/chfs_scan.c:1.10
--- src/sys/ufs/chfs/chfs_scan.c:1.9	Thu Jul 15 22:39:06 2021
+++ src/sys/ufs/chfs/chfs_scan.c	Fri Jul 16 21:18:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: chfs_scan.c,v 1.9 2021/07/15 22:39:06 andvar Exp $	*/
+/*	$NetBSD: chfs_scan.c,v 1.10 2021/07/16 21:18:41 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -225,7 +225,7 @@ chfs_add_fd_to_list(struct chfs_mount *c
 	new->nsize);
 	cheb = >chm_blocks[new->nref->nref_lnr];
 
-	mutex_enter(>chm_lock_sizes);	
+	mutex_enter(>chm_lock_sizes);
 	TAILQ_FOREACH_SAFE(fd, >scan_dirents, fds, tmpfd) {
 		if (fd->nhash > new->nhash) {
 			/* insert new before fd */



CVS commit: src/sys/dev/pci

2021-07-16 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Jul 16 12:20:01 UTC 2021

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

Log Message:
Add missing RCSID, remove non-breaking space characters in copyright, remove 
vim modeline (from yambo in IRC).
ok riastradh


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/pci/xmm7360.c

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

Modified files:

Index: src/sys/dev/pci/xmm7360.c
diff -u src/sys/dev/pci/xmm7360.c:1.7 src/sys/dev/pci/xmm7360.c:1.8
--- src/sys/dev/pci/xmm7360.c:1.7	Sat Apr 24 23:36:57 2021
+++ src/sys/dev/pci/xmm7360.c	Fri Jul 16 12:20:01 2021
@@ -1,4 +1,5 @@
-// vim: noet ts=8 sts=8 sw=8
+/*	$NetBSD: xmm7360.c,v 1.8 2021/07/16 12:20:01 andvar Exp $	*/
+
 /*
  * Device driver for Intel XMM7360 LTE modems, eg. Fibocom L850-GL.
  * Written by James Wah
@@ -6,8 +7,8 @@
  *
  * Development of this driver was supported by genua GmbH
  *
- * Copyright (c) 2020 genua GmbH 
- * Copyright (c) 2020 James Wah 
+ * Copyright (c) 2020 genua GmbH 
+ * Copyright (c) 2020 James Wah 
  *
  * The OpenBSD and NetBSD support was written by Jaromir Dolecek for
  * Moritz Systems Technology Company Sp. z o.o.
@@ -74,7 +75,7 @@ MODULE_DEVICE_TABLE(pci, xmm7360_ids);
 #include "opt_gateway.h"
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: xmm7360.c,v 1.7 2021/04/24 23:36:57 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xmm7360.c,v 1.8 2021/07/16 12:20:01 andvar Exp $");
 #endif
 
 #include 



CVS commit: src/sbin/mount_chfs

2021-07-16 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Jul 16 12:09:36 UTC 2021

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

Log Message:
Remove commented code, including empty if block. Replace tab with whitespace in 
usage declaration.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sbin/mount_chfs/mount_chfs.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/mount_chfs/mount_chfs.c
diff -u src/sbin/mount_chfs/mount_chfs.c:1.4 src/sbin/mount_chfs/mount_chfs.c:1.5
--- src/sbin/mount_chfs/mount_chfs.c:1.4	Mon Jun  7 21:44:35 2021
+++ src/sbin/mount_chfs/mount_chfs.c	Fri Jul 16 12:09:36 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mount_chfs.c,v 1.4 2021/06/07 21:44:35 dholland Exp $	*/
+/*	$NetBSD: mount_chfs.c,v 1.5 2021/07/16 12:09:36 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -61,7 +61,7 @@ static const struct mntopt mopts[] = {
 
 /* - */
 
-static void	usage(void) __dead;
+static void usage(void) __dead;
 
 /* - */
 
@@ -98,7 +98,6 @@ mount_chfs_parseargs(int argc, char *arg
 	if (argc != 2)
 		usage();
 
-	//strlcpy(canon_dev, argv[0], MAXPATHLEN);
 	pathadj(argv[0], canon_dev);
 	pathadj(argv[1], canon_dir);
 
@@ -137,11 +136,6 @@ mount_chfs(int argc, char *argv[])
 		err(EXIT_FAILURE, "chfs on %s", fs_name);
 	}
 
-	if (mntflags & MNT_GETARGS) {
-
-		//(void)printf("flash index=%d\n",  args.fl_index);
-	}
-
 	return EXIT_SUCCESS;
 }
 



CVS commit: src/sys/ufs/chfs

2021-07-15 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Thu Jul 15 22:39:06 UTC 2021

Modified Files:
src/sys/ufs/chfs: chfs_readinode.c chfs_scan.c

Log Message:
Make sure that mutex is released before conditional return statements. Fixes PR 
kern/56242
ok riastradh


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/ufs/chfs/chfs_readinode.c
cvs rdiff -u -r1.8 -r1.9 src/sys/ufs/chfs/chfs_scan.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/ufs/chfs/chfs_readinode.c
diff -u src/sys/ufs/chfs/chfs_readinode.c:1.10 src/sys/ufs/chfs/chfs_readinode.c:1.11
--- src/sys/ufs/chfs/chfs_readinode.c:1.10	Thu Jun  1 02:45:15 2017
+++ src/sys/ufs/chfs/chfs_readinode.c	Thu Jul 15 22:39:06 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: chfs_readinode.c,v 1.10 2017/06/01 02:45:15 chs Exp $	*/
+/*	$NetBSD: chfs_readinode.c,v 1.11 2021/07/15 22:39:06 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -1012,6 +1012,7 @@ retry:
 (unsigned long long)vc->vno, vc->state);
 			chfs_err("wants to read a nonexistent ino %llu\n",
 (unsigned long long)vc->vno);
+			mutex_exit(>chm_lock_vnocache);
 			return ENOENT;
 		default:
 			panic("BUG() Bad vno cache state.");

Index: src/sys/ufs/chfs/chfs_scan.c
diff -u src/sys/ufs/chfs/chfs_scan.c:1.8 src/sys/ufs/chfs/chfs_scan.c:1.9
--- src/sys/ufs/chfs/chfs_scan.c:1.8	Mon Jun 17 17:14:56 2019
+++ src/sys/ufs/chfs/chfs_scan.c	Thu Jul 15 22:39:06 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: chfs_scan.c,v 1.8 2019/06/17 17:14:56 ryoon Exp $	*/
+/*	$NetBSD: chfs_scan.c,v 1.9 2021/07/15 22:39:06 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -151,6 +151,7 @@ chfs_scan_check_vnode(struct chfs_mount 
 		} else {
 			err = chfs_update_eb_dirty(chmp, cheb,
 			sizeof(struct chfs_flash_vnode));
+			mutex_exit(>chm_lock_vnocache);
 			return CHFS_NODE_OK;
 		}
 	} else {
@@ -325,6 +326,7 @@ chfs_scan_check_dirent_node(struct chfs_
 	parentvc = chfs_scan_make_vnode_cache(chmp, le64toh(dirent->pvno));
 	if (!parentvc) {
 		chfs_free_dirent(fd);
+		mutex_exit(>chm_lock_vnocache);
 		return ENOMEM;
 	}
 
@@ -381,8 +383,10 @@ chfs_scan_check_data_node(struct chfs_mo
 	vc = chfs_vnode_cache_get(chmp, vno);
 	if (!vc) {
 		vc = chfs_scan_make_vnode_cache(chmp, vno);
-		if (!vc)
+		if (!vc) {
+			mutex_exit(>chm_lock_vnocache);
 			return ENOMEM;
+		}
 	}
 	chfs_add_node_to_list(chmp, vc, nref, >dnode);
 	mutex_exit(>chm_lock_vnocache);