CVS commit: src/sbin/fsck_udf

2022-04-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Apr  8 23:48:05 UTC 2022

Modified Files:
src/sbin/fsck_udf: main.c

Log Message:
fsck_udf(8): Mark vat_length as ignored.


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

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

Modified files:

Index: src/sbin/fsck_udf/main.c
diff -u src/sbin/fsck_udf/main.c:1.4 src/sbin/fsck_udf/main.c:1.5
--- src/sbin/fsck_udf/main.c:1.4	Fri Apr  8 23:47:19 2022
+++ src/sbin/fsck_udf/main.c	Fri Apr  8 23:48:05 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.4 2022/04/08 23:47:19 riastradh Exp $	*/
+/*	$NetBSD: main.c,v 1.5 2022/04/08 23:48:05 riastradh Exp $	*/
 
 /*
  * Copyright (c) 2022 Reinoud Zandijk
@@ -37,7 +37,7 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: main.c,v 1.4 2022/04/08 23:47:19 riastradh Exp $");
+__RCSID("$NetBSD: main.c,v 1.5 2022/04/08 23:48:05 riastradh Exp $");
 #endif /* not lint */
 
 #include 
@@ -1782,6 +1782,7 @@ udf_check_for_vat(union dscrptr *dscr)
 		return ENOENT;
 
 	/* TODO sanity check vat length */
+	(void)vat_length;
 
 	return 0;
 }



CVS commit: src/sbin/fsck_udf

2022-04-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Apr  8 23:48:05 UTC 2022

Modified Files:
src/sbin/fsck_udf: main.c

Log Message:
fsck_udf(8): Mark vat_length as ignored.


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

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



CVS commit: src/sbin/fsck_udf

2022-04-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Apr  8 23:47:19 UTC 2022

Modified Files:
src/sbin/fsck_udf: main.c

Log Message:
fsck_udf(8): Sprinkle __printflike and omit self-assignment.


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

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

Modified files:

Index: src/sbin/fsck_udf/main.c
diff -u src/sbin/fsck_udf/main.c:1.3 src/sbin/fsck_udf/main.c:1.4
--- src/sbin/fsck_udf/main.c:1.3	Wed Apr  6 16:01:06 2022
+++ src/sbin/fsck_udf/main.c	Fri Apr  8 23:47:19 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.3 2022/04/06 16:01:06 martin Exp $	*/
+/*	$NetBSD: main.c,v 1.4 2022/04/08 23:47:19 riastradh Exp $	*/
 
 /*
  * Copyright (c) 2022 Reinoud Zandijk
@@ -37,7 +37,7 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: main.c,v 1.3 2022/04/06 16:01:06 martin Exp $");
+__RCSID("$NetBSD: main.c,v 1.4 2022/04/08 23:47:19 riastradh Exp $");
 #endif /* not lint */
 
 #include 
@@ -1782,7 +1782,6 @@ udf_check_for_vat(union dscrptr *dscr)
 		return ENOENT;
 
 	/* TODO sanity check vat length */
-	vat_length = vat_length;
 
 	return 0;
 }
@@ -4405,7 +4404,7 @@ main(int argc, char **argv)
 
 
 /*VARARGS*/
-static int
+static int __printflike(2, 3)
 ask(int def, const char *fmt, ...)
 {
 	va_list ap;
@@ -4438,7 +4437,7 @@ ask(int def, const char *fmt, ...)
 
 
 /*VARARGS*/
-static int
+static int __printflike(2, 3)
 ask_noauto(int def, const char *fmt, ...)
 {
 	va_list ap;



CVS commit: src/sbin/fsck_udf

2022-04-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Apr  8 23:47:19 UTC 2022

Modified Files:
src/sbin/fsck_udf: main.c

Log Message:
fsck_udf(8): Sprinkle __printflike and omit self-assignment.


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

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



CVS commit: src

2022-04-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Apr  8 23:35:52 UTC 2022

Modified Files:
src/distrib/sets/lists/debug: mi
src/distrib/sets/lists/tests: mi
src/etc/mtree: NetBSD.dist.tests
src/tests/lib/libc: Makefile
Added Files:
src/tests/lib/libc/membar: Makefile t_dekker.c t_seqlock.c t_spinlock.c

Log Message:
membar_ops(3): Add some automatic tests.

These tests run two threads for five seconds each to try to trigger
races in the event of broken memory barriers.  They run only on
machines with at least two CPUs; on uniprocessor systems there's no
point -- the membars can correctly just be (instruction barrier)
no-ops.


To generate a diff of this commit:
cvs rdiff -u -r1.375 -r1.376 src/distrib/sets/lists/debug/mi
cvs rdiff -u -r1.1191 -r1.1192 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.189 -r1.190 src/etc/mtree/NetBSD.dist.tests
cvs rdiff -u -r1.50 -r1.51 src/tests/lib/libc/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/lib/libc/membar/Makefile \
src/tests/lib/libc/membar/t_dekker.c \
src/tests/lib/libc/membar/t_seqlock.c \
src/tests/lib/libc/membar/t_spinlock.c

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

Modified files:

Index: src/distrib/sets/lists/debug/mi
diff -u src/distrib/sets/lists/debug/mi:1.375 src/distrib/sets/lists/debug/mi:1.376
--- src/distrib/sets/lists/debug/mi:1.375	Wed Apr  6 14:28:44 2022
+++ src/distrib/sets/lists/debug/mi	Fri Apr  8 23:35:51 2022
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.375 2022/04/06 14:28:44 reinoud Exp $
+# $NetBSD: mi,v 1.376 2022/04/08 23:35:51 riastradh Exp $
 ./etc/mtree/set.debug   comp-sys-root
 ./usr/lib	comp-sys-usr		compatdir
 ./usr/lib/i18n/libBIG5_g.a			comp-c-debuglib		debuglib,compatfile
@@ -2062,6 +2062,9 @@
 ./usr/libdata/debug/usr/tests/lib/libc/locale/t_wcstod.debug		tests-lib-debug		debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/lib/libc/locale/t_wctomb.debug		tests-lib-debug		debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/lib/libc/locale/t_wctype.debug		tests-lib-debug		debug,atf,compattestfile
+./usr/libdata/debug/usr/tests/lib/libc/membar/t_dekker.debug		tests-lib-debug		debug,atf,compattestfile
+./usr/libdata/debug/usr/tests/lib/libc/membar/t_seqlock.debug		tests-lib-debug		debug,atf,compattestfile
+./usr/libdata/debug/usr/tests/lib/libc/membar/t_spinlock.debug		tests-lib-debug		debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/lib/libc/misc/t_ubsan.debug		tests-lib-debug		debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/lib/libc/misc/t_ubsanxx.debug		tests-lib-debug		debug,atf,compattestfile
 ./usr/libdata/debug/usr/tests/lib/libc/net/getaddrinfo/h_gai.debug	tests-lib-debug		debug,atf,compattestfile

Index: src/distrib/sets/lists/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.1191 src/distrib/sets/lists/tests/mi:1.1192
--- src/distrib/sets/lists/tests/mi:1.1191	Fri Apr  8 21:29:29 2022
+++ src/distrib/sets/lists/tests/mi	Fri Apr  8 23:35:52 2022
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1191 2022/04/08 21:29:29 rillig Exp $
+# $NetBSD: mi,v 1.1192 2022/04/08 23:35:52 riastradh Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -104,6 +104,7 @@
 ./usr/libdata/debug/usr/tests/lib/libc/ieeefp		tests-obsolete		obsolete
 ./usr/libdata/debug/usr/tests/lib/libc/inet		tests-lib-debug		compattestfile,atf
 ./usr/libdata/debug/usr/tests/lib/libc/locale		tests-lib-debug		compattestfile,atf
+./usr/libdata/debug/usr/tests/lib/libc/membar		tests-lib-debug		compattestfile,atf
 ./usr/libdata/debug/usr/tests/lib/libc/misc		tests-lib-debug		compattestfile,atf
 ./usr/libdata/debug/usr/tests/lib/libc/net		tests-lib-debug		compattestfile,atf
 ./usr/libdata/debug/usr/tests/lib/libc/net/getaddrinfo	tests-lib-debug		compattestfile,atf
@@ -2955,6 +2956,12 @@
 ./usr/tests/lib/libc/locale/t_wcstod			tests-lib-tests		compattestfile,atf
 ./usr/tests/lib/libc/locale/t_wctomb			tests-lib-tests		compattestfile,atf
 ./usr/tests/lib/libc/locale/t_wctype			tests-lib-tests		compattestfile,atf
+./usr/tests/lib/libc/membartests-lib-tests		compattestfile,atf
+./usr/tests/lib/libc/membar/Atffile			tests-lib-tests		compattestfile,atf
+./usr/tests/lib/libc/membar/Kyuafile			tests-lib-tests		compattestfile,atf,kyua
+./usr/tests/lib/libc/membar/t_dekker			tests-lib-tests		compattestfile,atf
+./usr/tests/lib/libc/membar/t_seqlock			tests-lib-tests		compattestfile,atf
+./usr/tests/lib/libc/membar/t_spinlock			tests-lib-tests		compattestfile,atf
 ./usr/tests/lib/libc/misctests-lib-tests		compattestfile,atf
 ./usr/tests/lib/libc/misc/Atffile			tests-lib-tests		compattestfile,atf
 ./usr/tests/lib/libc/misc/Kyuafile			tests-lib-tests		compattestfile,atf,kyua

Index: src/etc/mtree/NetBSD.dist.tests
diff -u src/etc/mtree/NetBSD.dist.tests:1.189 src/etc/mtree/NetBSD.dist.tests:1.190
--- src/etc/mtree/NetBSD.dist.tests:1.189	Fri Apr  8 23:14:10 2022
+++ 

CVS commit: src

2022-04-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Apr  8 23:35:52 UTC 2022

Modified Files:
src/distrib/sets/lists/debug: mi
src/distrib/sets/lists/tests: mi
src/etc/mtree: NetBSD.dist.tests
src/tests/lib/libc: Makefile
Added Files:
src/tests/lib/libc/membar: Makefile t_dekker.c t_seqlock.c t_spinlock.c

Log Message:
membar_ops(3): Add some automatic tests.

These tests run two threads for five seconds each to try to trigger
races in the event of broken memory barriers.  They run only on
machines with at least two CPUs; on uniprocessor systems there's no
point -- the membars can correctly just be (instruction barrier)
no-ops.


To generate a diff of this commit:
cvs rdiff -u -r1.375 -r1.376 src/distrib/sets/lists/debug/mi
cvs rdiff -u -r1.1191 -r1.1192 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.189 -r1.190 src/etc/mtree/NetBSD.dist.tests
cvs rdiff -u -r1.50 -r1.51 src/tests/lib/libc/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/lib/libc/membar/Makefile \
src/tests/lib/libc/membar/t_dekker.c \
src/tests/lib/libc/membar/t_seqlock.c \
src/tests/lib/libc/membar/t_spinlock.c

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



CVS commit: src/sys/arch/arm/rockchip

2022-04-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Apr  8 23:14:21 UTC 2022

Modified Files:
src/sys/arch/arm/rockchip: rk_v1crypto.c

Log Message:
rk_v1crypto(4): Fix missing `error =' assignment.

This is not likely to fail, but let's avoid suppressing an unlikely
error.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/arm/rockchip/rk_v1crypto.c

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

Modified files:

Index: src/sys/arch/arm/rockchip/rk_v1crypto.c
diff -u src/sys/arch/arm/rockchip/rk_v1crypto.c:1.8 src/sys/arch/arm/rockchip/rk_v1crypto.c:1.9
--- src/sys/arch/arm/rockchip/rk_v1crypto.c:1.8	Sat Mar 19 11:37:05 2022
+++ src/sys/arch/arm/rockchip/rk_v1crypto.c	Fri Apr  8 23:14:21 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: rk_v1crypto.c,v 1.8 2022/03/19 11:37:05 riastradh Exp $	*/
+/*	$NetBSD: rk_v1crypto.c,v 1.9 2022/04/08 23:14:21 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include 
-__KERNEL_RCSID(1, "$NetBSD: rk_v1crypto.c,v 1.8 2022/03/19 11:37:05 riastradh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: rk_v1crypto.c,v 1.9 2022/04/08 23:14:21 riastradh Exp $");
 
 #include 
 
@@ -300,7 +300,7 @@ rk_v1crypto_sysctl_attach(struct rk_v1cr
 	}
 
 	/* hw.rkv1cryptoN.rng (`struct', 32-byte array) */
-	sysctl_createv(>cy_log, 0, >cy_root_node, NULL,
+	error = sysctl_createv(>cy_log, 0, >cy_root_node, NULL,
 	CTLFLAG_PERMANENT|CTLFLAG_READONLY|CTLFLAG_PRIVATE, CTLTYPE_STRUCT,
 	"rng", SYSCTL_DESCR("Read up to 32 bytes out of the TRNG"),
 	_v1crypto_sysctl_rng, 0, sc, 0, CTL_CREATE, CTL_EOL);



CVS commit: src/sys/arch/arm/rockchip

2022-04-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Apr  8 23:14:21 UTC 2022

Modified Files:
src/sys/arch/arm/rockchip: rk_v1crypto.c

Log Message:
rk_v1crypto(4): Fix missing `error =' assignment.

This is not likely to fail, but let's avoid suppressing an unlikely
error.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/arm/rockchip/rk_v1crypto.c

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



CVS commit: src/etc/mtree

2022-04-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Apr  8 23:14:11 UTC 2022

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

Log Message:
etc: Sort NetBSD.dist.tests.


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

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



CVS commit: src/etc/mtree

2022-04-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Apr  8 23:14:11 UTC 2022

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

Log Message:
etc: Sort NetBSD.dist.tests.


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

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

Modified files:

Index: src/etc/mtree/NetBSD.dist.tests
diff -u src/etc/mtree/NetBSD.dist.tests:1.188 src/etc/mtree/NetBSD.dist.tests:1.189
--- src/etc/mtree/NetBSD.dist.tests:1.188	Sun Aug 29 09:54:18 2021
+++ src/etc/mtree/NetBSD.dist.tests	Fri Apr  8 23:14:10 2022
@@ -1,11 +1,11 @@
-#	$NetBSD: NetBSD.dist.tests,v 1.188 2021/08/29 09:54:18 christos Exp $
+#	$NetBSD: NetBSD.dist.tests,v 1.189 2022/04/08 23:14:10 riastradh Exp $
 
 ./usr/libdata/debug/usr/tests
 ./usr/libdata/debug/usr/tests/atf
 ./usr/libdata/debug/usr/tests/atf/atf-c
-./usr/libdata/debug/usr/tests/atf/atf-c/detail
 ./usr/libdata/debug/usr/tests/atf/atf-c++
 ./usr/libdata/debug/usr/tests/atf/atf-c++/detail
+./usr/libdata/debug/usr/tests/atf/atf-c/detail
 ./usr/libdata/debug/usr/tests/atf/formats
 ./usr/libdata/debug/usr/tests/atf/test-programs
 ./usr/libdata/debug/usr/tests/atf/tools
@@ -83,8 +83,8 @@
 ./usr/libdata/debug/usr/tests/lib/libc/gen/execve
 ./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn
 ./usr/libdata/debug/usr/tests/lib/libc/hash
-./usr/libdata/debug/usr/tests/lib/libc/locale
 ./usr/libdata/debug/usr/tests/lib/libc/inet
+./usr/libdata/debug/usr/tests/lib/libc/locale
 ./usr/libdata/debug/usr/tests/lib/libc/misc
 ./usr/libdata/debug/usr/tests/lib/libc/net
 ./usr/libdata/debug/usr/tests/lib/libc/net/getaddrinfo
@@ -98,23 +98,21 @@
 ./usr/libdata/debug/usr/tests/lib/libc/string
 ./usr/libdata/debug/usr/tests/lib/libc/sys
 ./usr/libdata/debug/usr/tests/lib/libc/termios
+./usr/libdata/debug/usr/tests/lib/libc/time
 ./usr/libdata/debug/usr/tests/lib/libc/tls
 ./usr/libdata/debug/usr/tests/lib/libc/ttyio
-./usr/libdata/debug/usr/tests/lib/libc/time
 ./usr/libdata/debug/usr/tests/lib/libcrypt
 ./usr/libdata/debug/usr/tests/lib/libcurses
 ./usr/libdata/debug/usr/tests/lib/libdes
 ./usr/libdata/debug/usr/tests/lib/libevent
 ./usr/libdata/debug/usr/tests/lib/libexecinfo
-./usr/libdata/debug/usr/tests/lib/semaphore
-./usr/libdata/debug/usr/tests/lib/semaphore/pthread
 ./usr/libdata/debug/usr/tests/lib/libi386
 ./usr/libdata/debug/usr/tests/lib/liblutok
 ./usr/libdata/debug/usr/tests/lib/libm
 ./usr/libdata/debug/usr/tests/lib/libnvmm
 ./usr/libdata/debug/usr/tests/lib/libobjc
-./usr/libdata/debug/usr/tests/lib/libposix
 ./usr/libdata/debug/usr/tests/lib/libossaudio
+./usr/libdata/debug/usr/tests/lib/libposix
 ./usr/libdata/debug/usr/tests/lib/libposix/bsd
 ./usr/libdata/debug/usr/tests/lib/libposix/posix1
 ./usr/libdata/debug/usr/tests/lib/libposix/posix2
@@ -132,6 +130,8 @@
 ./usr/libdata/debug/usr/tests/lib/libtre
 ./usr/libdata/debug/usr/tests/lib/libusbhid
 ./usr/libdata/debug/usr/tests/lib/libutil
+./usr/libdata/debug/usr/tests/lib/semaphore
+./usr/libdata/debug/usr/tests/lib/semaphore/pthread
 ./usr/libdata/debug/usr/tests/libexec
 ./usr/libdata/debug/usr/tests/libexec/ld.elf_so
 ./usr/libdata/debug/usr/tests/libexec/ld.elf_so/h_helper_symver_dso0
@@ -176,17 +176,17 @@
 ./usr/libdata/debug/usr/tests/usr.bin
 ./usr/libdata/debug/usr/tests/usr.bin/cpio
 ./usr/libdata/debug/usr/tests/usr.bin/id
-./usr/libdata/debug/usr/tests/usr.bin/tar
 ./usr/libdata/debug/usr/tests/usr.bin/mkdep
 ./usr/libdata/debug/usr/tests/usr.bin/netpgpverify
+./usr/libdata/debug/usr/tests/usr.bin/tar
 ./usr/libdata/debug/usr/tests/usr.sbin
 ./usr/libdata/debug/usr/tests/usr.sbin/inetd
 ./usr/tests
 ./usr/tests/atf
 ./usr/tests/atf/atf-c
-./usr/tests/atf/atf-c/detail
 ./usr/tests/atf/atf-c++
 ./usr/tests/atf/atf-c++/detail
+./usr/tests/atf/atf-c/detail
 ./usr/tests/atf/atf-sh
 ./usr/tests/atf/test-programs
 ./usr/tests/atf/tools
@@ -199,10 +199,10 @@
 ./usr/tests/bin/expr
 ./usr/tests/bin/pax
 ./usr/tests/bin/ps
-./usr/tests/bin/sleep
 ./usr/tests/bin/sh
 ./usr/tests/bin/sh/dotcmd
 ./usr/tests/bin/sh/dotcmd/out
+./usr/tests/bin/sleep
 ./usr/tests/bin/tar
 ./usr/tests/crypto
 ./usr/tests/crypto/libcrypto
@@ -275,6 +275,7 @@
 ./usr/tests/lib/csu
 ./usr/tests/lib/libarchive
 ./usr/tests/lib/libbluetooth
+./usr/tests/lib/libbpfjit
 ./usr/tests/lib/libc
 ./usr/tests/lib/libc/atomic
 ./usr/tests/lib/libc/c063
@@ -284,8 +285,8 @@
 ./usr/tests/lib/libc/gen/posix_spawn
 ./usr/tests/lib/libc/hash
 ./usr/tests/lib/libc/hash/data
-./usr/tests/lib/libc/locale
 ./usr/tests/lib/libc/inet
+./usr/tests/lib/libc/locale
 ./usr/tests/lib/libc/misc
 ./usr/tests/lib/libc/net
 ./usr/tests/lib/libc/net/getaddrinfo
@@ -301,17 +302,14 @@
 ./usr/tests/lib/libc/string
 ./usr/tests/lib/libc/sys
 ./usr/tests/lib/libc/termios
+./usr/tests/lib/libc/time
 ./usr/tests/lib/libc/tls
 ./usr/tests/lib/libc/ttyio
-./usr/tests/lib/libc/time
 ./usr/tests/lib/libcrypt
 ./usr/tests/lib/libcurses
 

CVS commit: src

2022-04-08 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Fri Apr  8 21:48:19 UTC 2022

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_048.c msg_048.exp
src/usr.bin/xlint: Makefile.inc
src/usr.bin/xlint/lint1: decl.c

Log Message:
lint: fix undefined behavior on enum overflow (since 1995)

GCC had optimized the check away, due to the obvious integer overflow 'x
- 1 == INT_MAX'.  To prevent further bugs like this, compile with
-ftrapv.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_048.c \
src/tests/usr.bin/xlint/lint1/msg_048.exp
cvs rdiff -u -r1.20 -r1.21 src/usr.bin/xlint/Makefile.inc
cvs rdiff -u -r1.268 -r1.269 src/usr.bin/xlint/lint1/decl.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/usr.bin/xlint/lint1/msg_048.c
diff -u src/tests/usr.bin/xlint/lint1/msg_048.c:1.3 src/tests/usr.bin/xlint/lint1/msg_048.c:1.4
--- src/tests/usr.bin/xlint/lint1/msg_048.c:1.3	Fri Apr  8 21:29:29 2022
+++ src/tests/usr.bin/xlint/lint1/msg_048.c	Fri Apr  8 21:48:19 2022
@@ -1,10 +1,10 @@
-/*	$NetBSD: msg_048.c,v 1.3 2022/04/08 21:29:29 rillig Exp $	*/
+/*	$NetBSD: msg_048.c,v 1.4 2022/04/08 21:48:19 rillig Exp $	*/
 # 3 "msg_048.c"
 
 // Test for message: overflow in enumeration values: %s [48]
 
 /*
- * Before decl.c 1.TODO from 2022-04-TODO, the comparison for enum constant
+ * Before decl.c 1.269 from 2022-04-08, the comparison for enum constant
  * overflow was done in signed arithmetic, and since 'enumval' wrapped
  * around, its value became INT_MIN, at least on platforms where integer
  * overflow was defined as 2-complements wrap-around.  When comparing
@@ -16,9 +16,7 @@ enum int_limits {
 	MAX_MINUS_2 = 0x7ffd,
 	MAX_MINUS_1,
 	MAX,
-	/* TODO: expect: overflow in enumeration values: MIN */
-	MIN
+	/* expect+1: overflow in enumeration values: MIN [48] */
+	MIN,
+	MIN_PLUS_1
 };
-
-TODO: "Add example code that triggers the above message." /* expect: 249 */
-TODO: "Add example code that almost triggers the above message."
Index: src/tests/usr.bin/xlint/lint1/msg_048.exp
diff -u src/tests/usr.bin/xlint/lint1/msg_048.exp:1.3 src/tests/usr.bin/xlint/lint1/msg_048.exp:1.4
--- src/tests/usr.bin/xlint/lint1/msg_048.exp:1.3	Fri Apr  8 21:29:29 2022
+++ src/tests/usr.bin/xlint/lint1/msg_048.exp	Fri Apr  8 21:48:19 2022
@@ -1 +1 @@
-msg_048.c(23): error: syntax error ':' [249]
+msg_048.c(20): warning: overflow in enumeration values: MIN [48]

Index: src/usr.bin/xlint/Makefile.inc
diff -u src/usr.bin/xlint/Makefile.inc:1.20 src/usr.bin/xlint/Makefile.inc:1.21
--- src/usr.bin/xlint/Makefile.inc:1.20	Sun Feb 27 07:50:09 2022
+++ src/usr.bin/xlint/Makefile.inc	Fri Apr  8 21:48:19 2022
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.20 2022/02/27 07:50:09 rillig Exp $
+#	$NetBSD: Makefile.inc,v 1.21 2022/04/08 21:48:19 rillig Exp $
 
 .include 
 
@@ -19,6 +19,8 @@ CPPFLAGS+=	-I${.CURDIR}/../common
 
 CLEANFILES+=	*.gcno *.gcda *.gcov
 
+CFLAGS+=	${ACTIVE_CC:Mgcc:%=-ftrapv}
+
 .if exists(${.CURDIR}/../../Makefile.inc)
 .include "${.CURDIR}/../../Makefile.inc"
 .endif

Index: src/usr.bin/xlint/lint1/decl.c
diff -u src/usr.bin/xlint/lint1/decl.c:1.268 src/usr.bin/xlint/lint1/decl.c:1.269
--- src/usr.bin/xlint/lint1/decl.c:1.268	Sun Apr  3 10:05:22 2022
+++ src/usr.bin/xlint/lint1/decl.c	Fri Apr  8 21:48:19 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.268 2022/04/03 10:05:22 rillig Exp $ */
+/* $NetBSD: decl.c,v 1.269 2022/04/08 21:48:19 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include 
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: decl.c,v 1.268 2022/04/03 10:05:22 rillig Exp $");
+__RCSID("$NetBSD: decl.c,v 1.269 2022/04/08 21:48:19 rillig Exp $");
 #endif
 
 #include 
@@ -1926,11 +1926,11 @@ enumeration_constant(sym_t *sym, int val
 	sym->s_type = dcs->d_tagtyp;
 	sym->s_value.v_tspec = INT;
 	sym->s_value.v_quad = val;
-	if (impl && val - 1 == TARG_INT_MAX) {
+	if (impl && val == TARG_INT_MIN) {
 		/* overflow in enumeration values: %s */
 		warning(48, sym->s_name);
 	}
-	enumval = val + 1;
+	enumval = val == TARG_INT_MAX ? TARG_INT_MIN : val + 1;
 	return sym;
 }
 



CVS commit: src

2022-04-08 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Fri Apr  8 21:48:19 UTC 2022

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_048.c msg_048.exp
src/usr.bin/xlint: Makefile.inc
src/usr.bin/xlint/lint1: decl.c

Log Message:
lint: fix undefined behavior on enum overflow (since 1995)

GCC had optimized the check away, due to the obvious integer overflow 'x
- 1 == INT_MAX'.  To prevent further bugs like this, compile with
-ftrapv.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_048.c \
src/tests/usr.bin/xlint/lint1/msg_048.exp
cvs rdiff -u -r1.20 -r1.21 src/usr.bin/xlint/Makefile.inc
cvs rdiff -u -r1.268 -r1.269 src/usr.bin/xlint/lint1/decl.c

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



CVS commit: src

2022-04-08 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Fri Apr  8 21:29:29 UTC 2022

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/usr.bin/xlint/lint1: Makefile decl_enum.c decl_enum.exp
msg_042.c msg_042.exp msg_043.c msg_043.exp msg_045.c msg_045.exp
msg_048.c msg_048.exp msg_069.c msg_069.exp msg_070.c
src/usr.bin/xlint/lint1: err.c
Removed Files:
src/tests/usr.bin/xlint/lint1: msg_070.exp

Log Message:
lint: remove unused message 70, add some more tests


To generate a diff of this commit:
cvs rdiff -u -r1.1190 -r1.1191 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.118 -r1.119 src/tests/usr.bin/xlint/lint1/Makefile
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/decl_enum.c \
src/tests/usr.bin/xlint/lint1/decl_enum.exp
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_042.c \
src/tests/usr.bin/xlint/lint1/msg_042.exp \
src/tests/usr.bin/xlint/lint1/msg_043.c \
src/tests/usr.bin/xlint/lint1/msg_043.exp \
src/tests/usr.bin/xlint/lint1/msg_045.c \
src/tests/usr.bin/xlint/lint1/msg_045.exp \
src/tests/usr.bin/xlint/lint1/msg_048.c \
src/tests/usr.bin/xlint/lint1/msg_048.exp \
src/tests/usr.bin/xlint/lint1/msg_069.c \
src/tests/usr.bin/xlint/lint1/msg_069.exp \
src/tests/usr.bin/xlint/lint1/msg_070.c
cvs rdiff -u -r1.2 -r0 src/tests/usr.bin/xlint/lint1/msg_070.exp
cvs rdiff -u -r1.158 -r1.159 src/usr.bin/xlint/lint1/err.c

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

Modified files:

Index: src/distrib/sets/lists/tests/mi
diff -u src/distrib/sets/lists/tests/mi:1.1190 src/distrib/sets/lists/tests/mi:1.1191
--- src/distrib/sets/lists/tests/mi:1.1190	Tue Apr  5 23:09:19 2022
+++ src/distrib/sets/lists/tests/mi	Fri Apr  8 21:29:29 2022
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1190 2022/04/05 23:09:19 rillig Exp $
+# $NetBSD: mi,v 1.1191 2022/04/08 21:29:29 rillig Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -6686,7 +6686,7 @@
 ./usr/tests/usr.bin/xlint/lint1/msg_069.c			tests-usr.bin-tests	compattestfile,atf
 ./usr/tests/usr.bin/xlint/lint1/msg_069.exp			tests-usr.bin-tests	compattestfile,atf
 ./usr/tests/usr.bin/xlint/lint1/msg_070.c			tests-usr.bin-tests	compattestfile,atf
-./usr/tests/usr.bin/xlint/lint1/msg_070.exp			tests-usr.bin-tests	compattestfile,atf
+./usr/tests/usr.bin/xlint/lint1/msg_070.exp			tests-obsolete		obsolete,atf
 ./usr/tests/usr.bin/xlint/lint1/msg_071.c			tests-usr.bin-tests	compattestfile,atf
 ./usr/tests/usr.bin/xlint/lint1/msg_071.exp			tests-usr.bin-tests	compattestfile,atf
 ./usr/tests/usr.bin/xlint/lint1/msg_072.c			tests-usr.bin-tests	compattestfile,atf

Index: src/tests/usr.bin/xlint/lint1/Makefile
diff -u src/tests/usr.bin/xlint/lint1/Makefile:1.118 src/tests/usr.bin/xlint/lint1/Makefile:1.119
--- src/tests/usr.bin/xlint/lint1/Makefile:1.118	Tue Apr  5 23:09:19 2022
+++ src/tests/usr.bin/xlint/lint1/Makefile	Fri Apr  8 21:29:29 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.118 2022/04/05 23:09:19 rillig Exp $
+# $NetBSD: Makefile,v 1.119 2022/04/08 21:29:29 rillig Exp $
 
 NOMAN=		# defined
 MAX_MESSAGE=	348		# see lint1/err.c
@@ -216,7 +216,7 @@ FILES+=		lex_wide_char.c
 FILES+=		lex_wide_char.exp
 FILES+=		lex_wide_string.c
 FILES+=		lex_wide_string.exp
-FILES+=		${:U0 ${:U:${:Urange=${MAX_MESSAGE}}}:C,^.$,0&,:C,^..$,0&,:@i@msg_${i}.c msg_${i}.exp@:Nmsg_040.exp:Nmsg_176.exp}
+FILES+=		${MSG_FILES}
 FILES+=		msg_001_c90.c
 FILES+=		msg_001_c90.exp
 FILES+=		msg_000_c90.c
@@ -266,6 +266,12 @@ FILES+=		stmt_goto.exp
 FILES+=		stmt_if.c
 FILES+=		stmt_if.exp
 
+MSG_IDS=	${:U0 ${:U:${:Urange=${MAX_MESSAGE}}}:C,^.$,0&,:C,^..$,0&,}
+MSG_FILES=	${MSG_IDS:@id@msg_${id}.c ${MSG_NO_EXP.${id}:D:Umsg_${id}.exp}@}
+MSG_NO_EXP.040=	yes
+MSG_NO_EXP.070=	yes
+MSG_NO_EXP.176=	yes
+
 # Note: only works for adding tests.
 # To remove a test, the $$mi file must be edited manually.
 sync-mi: .PHONY

Index: src/tests/usr.bin/xlint/lint1/decl_enum.c
diff -u src/tests/usr.bin/xlint/lint1/decl_enum.c:1.1 src/tests/usr.bin/xlint/lint1/decl_enum.c:1.2
--- src/tests/usr.bin/xlint/lint1/decl_enum.c:1.1	Thu Jul 15 21:00:05 2021
+++ src/tests/usr.bin/xlint/lint1/decl_enum.c	Fri Apr  8 21:29:29 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: decl_enum.c,v 1.1 2021/07/15 21:00:05 rillig Exp $	*/
+/*	$NetBSD: decl_enum.c,v 1.2 2022/04/08 21:29:29 rillig Exp $	*/
 # 3 "decl_enum.c"
 
 /*
@@ -17,3 +17,44 @@ enum goto {
 	A
 };
 /* expect-1: warning: empty declaration [0] */
+
+
+/*
+ * Ensure that nested enum declarations get the value of each enum constant
+ * right.  The variable containing the "current enum value" does not account
+ * for these nested declarations.  Such declarations don't occur in practice
+ * though.
+ */
+enum outer {
+	o1 = sizeof(
+	enum inner {
+		i1 = 1, i2, i3
+	}
+	),
+	/*
+	 * The only attribute that GCC 12 allows for enum constants is
+	 * 

CVS commit: src

2022-04-08 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Fri Apr  8 21:29:29 UTC 2022

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/usr.bin/xlint/lint1: Makefile decl_enum.c decl_enum.exp
msg_042.c msg_042.exp msg_043.c msg_043.exp msg_045.c msg_045.exp
msg_048.c msg_048.exp msg_069.c msg_069.exp msg_070.c
src/usr.bin/xlint/lint1: err.c
Removed Files:
src/tests/usr.bin/xlint/lint1: msg_070.exp

Log Message:
lint: remove unused message 70, add some more tests


To generate a diff of this commit:
cvs rdiff -u -r1.1190 -r1.1191 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.118 -r1.119 src/tests/usr.bin/xlint/lint1/Makefile
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/decl_enum.c \
src/tests/usr.bin/xlint/lint1/decl_enum.exp
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_042.c \
src/tests/usr.bin/xlint/lint1/msg_042.exp \
src/tests/usr.bin/xlint/lint1/msg_043.c \
src/tests/usr.bin/xlint/lint1/msg_043.exp \
src/tests/usr.bin/xlint/lint1/msg_045.c \
src/tests/usr.bin/xlint/lint1/msg_045.exp \
src/tests/usr.bin/xlint/lint1/msg_048.c \
src/tests/usr.bin/xlint/lint1/msg_048.exp \
src/tests/usr.bin/xlint/lint1/msg_069.c \
src/tests/usr.bin/xlint/lint1/msg_069.exp \
src/tests/usr.bin/xlint/lint1/msg_070.c
cvs rdiff -u -r1.2 -r0 src/tests/usr.bin/xlint/lint1/msg_070.exp
cvs rdiff -u -r1.158 -r1.159 src/usr.bin/xlint/lint1/err.c

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



CVS commit: src/lib/libedit

2022-04-08 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Apr  8 20:11:31 UTC 2022

Modified Files:
src/lib/libedit: readline.c

Log Message:
PR/56778: Detlev Casanova: Missing rl_initialize call in rl_copy_text


To generate a diff of this commit:
cvs rdiff -u -r1.173 -r1.174 src/lib/libedit/readline.c

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



CVS commit: src/lib/libedit

2022-04-08 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Apr  8 20:11:31 UTC 2022

Modified Files:
src/lib/libedit: readline.c

Log Message:
PR/56778: Detlev Casanova: Missing rl_initialize call in rl_copy_text


To generate a diff of this commit:
cvs rdiff -u -r1.173 -r1.174 src/lib/libedit/readline.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/libedit/readline.c
diff -u src/lib/libedit/readline.c:1.173 src/lib/libedit/readline.c:1.174
--- src/lib/libedit/readline.c:1.173	Sat Feb 19 12:45:02 2022
+++ src/lib/libedit/readline.c	Fri Apr  8 16:11:31 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: readline.c,v 1.173 2022/02/19 17:45:02 christos Exp $	*/
+/*	$NetBSD: readline.c,v 1.174 2022/04/08 20:11:31 christos Exp $	*/
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include "config.h"
 #if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: readline.c,v 1.173 2022/02/19 17:45:02 christos Exp $");
+__RCSID("$NetBSD: readline.c,v 1.174 2022/04/08 20:11:31 christos Exp $");
 #endif /* not lint && not SCCSID */
 
 #include 
@@ -2307,10 +2307,15 @@ _rl_update_pos(void)
 char *
 rl_copy_text(int from, int to)
 {
-	const LineInfo *li = el_line(e);
+	const LineInfo *li;
 	size_t len;
 	char * out;
 
+	if (h == NULL || e == NULL)
+		rl_initialize();
+
+	li = el_line(e);
+
 	if (from > to)
 		return NULL;
 



CVS commit: src/sys/arch/m68k/fpsp

2022-04-08 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Apr  8 14:33:24 UTC 2022

Modified Files:
src/sys/arch/m68k/fpsp: round.sa

Log Message:
s/postions/positions/


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/m68k/fpsp/round.sa

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/m68k/fpsp/round.sa
diff -u src/sys/arch/m68k/fpsp/round.sa:1.5 src/sys/arch/m68k/fpsp/round.sa:1.6
--- src/sys/arch/m68k/fpsp/round.sa:1.5	Fri Apr  8 10:17:53 2022
+++ src/sys/arch/m68k/fpsp/round.sa	Fri Apr  8 14:33:24 2022
@@ -1,4 +1,4 @@
-*	$NetBSD: round.sa,v 1.5 2022/04/08 10:17:53 andvar Exp $
+*	$NetBSD: round.sa,v 1.6 2022/04/08 14:33:24 andvar Exp $
 
 *	MOTOROLA MICROPROCESSOR & MEMORY TECHNOLOGY GROUP
 *	M68000 Hi-Performance Microprocessor Division
@@ -530,7 +530,7 @@ dnrm_lp:
 	beq.b	not_E3			;not type E3 exception
 	bfextu	WBTEMP_GRS(a6){6:3},d2	;extract guard,round, sticky  bit
 	move.l	#29,d0
-	lsl.l	d0,d2			;shift g,r,s to their postions
+	lsl.l	d0,d2			;shift g,r,s to their positions
 	move.l	d2,d0
 not_E3:
 	move.l	(sp)+,d2		;restore d2



CVS commit: src/sys/arch/m68k/fpsp

2022-04-08 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Apr  8 14:33:24 UTC 2022

Modified Files:
src/sys/arch/m68k/fpsp: round.sa

Log Message:
s/postions/positions/


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/m68k/fpsp/round.sa

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



CVS commit: src

2022-04-08 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Apr  8 10:27:04 UTC 2022

Modified Files:
src/lib/libcurses: getyx.c
src/sys/dev/hpc: hpcfbio.h
src/sys/dev/pci/qat: qatreg.h
src/sys/dev/raidframe: rf_reconmap.c
src/sys/netinet: sctp_indata.c sctp_input.c sctputil.c
src/sys/ufs/chfs: chfs_readinode.c

Log Message:
s/postion/position/


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libcurses/getyx.c
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/hpc/hpcfbio.h
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/pci/qat/qatreg.h
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/raidframe/rf_reconmap.c
cvs rdiff -u -r1.9 -r1.10 src/sys/netinet/sctp_indata.c
cvs rdiff -u -r1.15 -r1.16 src/sys/netinet/sctp_input.c
cvs rdiff -u -r1.18 -r1.19 src/sys/netinet/sctputil.c
cvs rdiff -u -r1.12 -r1.13 src/sys/ufs/chfs/chfs_readinode.c

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



CVS commit: src

2022-04-08 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Apr  8 10:27:04 UTC 2022

Modified Files:
src/lib/libcurses: getyx.c
src/sys/dev/hpc: hpcfbio.h
src/sys/dev/pci/qat: qatreg.h
src/sys/dev/raidframe: rf_reconmap.c
src/sys/netinet: sctp_indata.c sctp_input.c sctputil.c
src/sys/ufs/chfs: chfs_readinode.c

Log Message:
s/postion/position/


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libcurses/getyx.c
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/hpc/hpcfbio.h
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/pci/qat/qatreg.h
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/raidframe/rf_reconmap.c
cvs rdiff -u -r1.9 -r1.10 src/sys/netinet/sctp_indata.c
cvs rdiff -u -r1.15 -r1.16 src/sys/netinet/sctp_input.c
cvs rdiff -u -r1.18 -r1.19 src/sys/netinet/sctputil.c
cvs rdiff -u -r1.12 -r1.13 src/sys/ufs/chfs/chfs_readinode.c

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

Modified files:

Index: src/lib/libcurses/getyx.c
diff -u src/lib/libcurses/getyx.c:1.6 src/lib/libcurses/getyx.c:1.7
--- src/lib/libcurses/getyx.c:1.6	Fri Jan  6 13:53:18 2017
+++ src/lib/libcurses/getyx.c	Fri Apr  8 10:27:04 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: getyx.c,v 1.6 2017/01/06 13:53:18 roy Exp $	*/
+/*	$NetBSD: getyx.c,v 1.7 2022/04/08 10:27:04 andvar Exp $	*/
 
 /*
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: getyx.c,v 1.6 2017/01/06 13:53:18 roy Exp $");
+__RCSID("$NetBSD: getyx.c,v 1.7 2022/04/08 10:27:04 andvar Exp $");
 #endif/* not lint */
 
 #include 
@@ -41,7 +41,7 @@ __RCSID("$NetBSD: getyx.c,v 1.6 2017/01/
 
 /*
  * getpary --
- *  Get the y postion of the window relative to the parent window
+ *  Get the y position of the window relative to the parent window
  * return -1 if not a subwindow.
  */
 int
@@ -59,7 +59,7 @@ getpary(WINDOW *win)
 
 /*
  * getparx --
- *  Get the x postion of the window relative to the parent window
+ *  Get the x position of the window relative to the parent window
  * return -1 if not a subwindow.
  */
 int

Index: src/sys/dev/hpc/hpcfbio.h
diff -u src/sys/dev/hpc/hpcfbio.h:1.3 src/sys/dev/hpc/hpcfbio.h:1.4
--- src/sys/dev/hpc/hpcfbio.h:1.3	Sat Jul 31 20:51:32 2021
+++ src/sys/dev/hpc/hpcfbio.h	Fri Apr  8 10:27:04 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: hpcfbio.h,v 1.3 2021/07/31 20:51:32 andvar Exp $	*/
+/*	$NetBSD: hpcfbio.h,v 1.4 2022/04/08 10:27:04 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1999
@@ -207,7 +207,7 @@ struct hpcfb_dsp_op {
 };
 
 /*
- * view port postion
+ * view port position
  * arg0 is x_offset
  * arg1 is y_offset
  */

Index: src/sys/dev/pci/qat/qatreg.h
diff -u src/sys/dev/pci/qat/qatreg.h:1.2 src/sys/dev/pci/qat/qatreg.h:1.3
--- src/sys/dev/pci/qat/qatreg.h:1.2	Fri Dec 31 20:22:49 2021
+++ src/sys/dev/pci/qat/qatreg.h	Fri Apr  8 10:27:04 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: qatreg.h,v 1.2 2021/12/31 20:22:49 andvar Exp $	*/
+/*	$NetBSD: qatreg.h,v 1.3 2022/04/08 10:27:04 andvar Exp $	*/
 
 /*
  * Copyright (c) 2019 Internet Initiative Japan, Inc.
@@ -919,7 +919,7 @@ struct mof_uof_chunk_hdr {
 #define UOF_MAX_NUM_OF_AE	16	/* maximum number of AE */
 
 #define UOF_OBJ_ID_LEN		8	/* length of object ID */
-#define UOF_FIELD_POS_SIZE	12	/* field postion size */
+#define UOF_FIELD_POS_SIZE	12	/* field position size */
 #define MIN_UOF_SIZE		24	/* minimum .uof file size */
 #define UOF_FID			0xc6c2	/* uof magic number */
 #define UOF_MIN_VER		0x11

Index: src/sys/dev/raidframe/rf_reconmap.c
diff -u src/sys/dev/raidframe/rf_reconmap.c:1.38 src/sys/dev/raidframe/rf_reconmap.c:1.39
--- src/sys/dev/raidframe/rf_reconmap.c:1.38	Mon Apr 13 00:27:17 2020
+++ src/sys/dev/raidframe/rf_reconmap.c	Fri Apr  8 10:27:04 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: rf_reconmap.c,v 1.38 2020/04/13 00:27:17 chs Exp $	*/
+/*	$NetBSD: rf_reconmap.c,v 1.39 2022/04/08 10:27:04 andvar Exp $	*/
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -34,7 +34,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: rf_reconmap.c,v 1.38 2020/04/13 00:27:17 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_reconmap.c,v 1.39 2022/04/08 10:27:04 andvar Exp $");
 
 #include "rf_raid.h"
 #include 
@@ -178,7 +178,7 @@ rf_ReconMapUpdate(RF_Raid_t *raidPtr, RF
 			mapPtr->low_ru++;
 			mapPtr->high_ru++;
 			/* initialize "highest" RU status entry, which
-			   will take over the current head postion */
+			   will take over the current head position */
 			mapPtr->status[mapPtr->head]=RU_NOTHING;
 			
 			/* move head too */

Index: src/sys/netinet/sctp_indata.c
diff -u src/sys/netinet/sctp_indata.c:1.9 src/sys/netinet/sctp_indata.c:1.10
--- src/sys/netinet/sctp_indata.c:1.9	Thu Apr  7 19:33:38 2022
+++ src/sys/netinet/sctp_indata.c	Fri Apr  8 10:27:04 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: sctp_indata.c,v 1.9 2022/04/07 19:33:38 andvar Exp $ */

CVS commit: src

2022-04-08 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Apr  8 10:17:55 UTC 2022

Modified Files:
src/bin/csh: err.c
src/etc: MAKEDEV.tmpl
src/games/fortune/datfiles: limerick-o.real
src/games/warp: warp.h
src/lib/libc/arch/aarch64/gen: flt_rounds.c
src/lib/libc/arch/arm/gen: flt_rounds.c
src/lib/libc/arch/sh3/gen: flt_rounds.c
src/lib/libcurses: screen.c
src/regress/lib/libc/ieeefp/testfloat/notes: testfloat.txt
src/sbin/fsck_v7fs: inode.c
src/sbin/ping6: ping6.c
src/sbin/resize_ffs: resize_ffs.c
src/sys/arch/acorn32/podulebus: if_ie.c
src/sys/arch/epoc32/stand/e32boot/ldd: ekern.h
src/sys/arch/hpcmips/vr: vrc4172pcsreg.h vrc4172reg.h
src/sys/arch/m68k/fpsp: round.sa util.sa x_store.sa
src/sys/arch/macppc/dev: fcu.c
src/sys/arch/mips/alchemy/include: aureg.h
src/sys/arch/mips/mips: cache_r3k_subr.S cache_r5k_subr.S
src/sys/arch/shark/shark: scr.c
src/sys/arch/vax/include: ka650.h
src/sys/dev: lockstat.c
src/sys/dev/fdt: dw_apb_uart.c
src/sys/dev/isa: README.seagate
src/sys/dev/pcmcia: if_xi.c
src/sys/kern: kern_sleepq.c
src/sys/netinet: sctp_output.c
src/usr.bin/pr: pr.c
src/usr.sbin/edquota: edquota.8
src/usr.sbin/lpr/lpd: lpd.c
src/usr.sbin/lpr/lpq: lpq.c
src/usr.sbin/sysinst: partman.c

Log Message:
fix various typos, mainly in comments, but also log messages, docs, game text.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/bin/csh/err.c
cvs rdiff -u -r1.228 -r1.229 src/etc/MAKEDEV.tmpl
cvs rdiff -u -r1.7 -r1.8 src/games/fortune/datfiles/limerick-o.real
cvs rdiff -u -r1.6 -r1.7 src/games/warp/warp.h
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/arch/aarch64/gen/flt_rounds.c
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/arch/arm/gen/flt_rounds.c
cvs rdiff -u -r1.7 -r1.8 src/lib/libc/arch/sh3/gen/flt_rounds.c
cvs rdiff -u -r1.36 -r1.37 src/lib/libcurses/screen.c
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/regress/lib/libc/ieeefp/testfloat/notes/testfloat.txt
cvs rdiff -u -r1.1 -r1.2 src/sbin/fsck_v7fs/inode.c
cvs rdiff -u -r1.106 -r1.107 src/sbin/ping6/ping6.c
cvs rdiff -u -r1.55 -r1.56 src/sbin/resize_ffs/resize_ffs.c
cvs rdiff -u -r1.51 -r1.52 src/sys/arch/acorn32/podulebus/if_ie.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/epoc32/stand/e32boot/ldd/ekern.h
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/hpcmips/vr/vrc4172pcsreg.h
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/hpcmips/vr/vrc4172reg.h
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/m68k/fpsp/round.sa \
src/sys/arch/m68k/fpsp/util.sa src/sys/arch/m68k/fpsp/x_store.sa
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/macppc/dev/fcu.c
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/mips/alchemy/include/aureg.h
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/mips/mips/cache_r3k_subr.S
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/mips/mips/cache_r5k_subr.S
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/shark/shark/scr.c
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/vax/include/ka650.h
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/lockstat.c
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/fdt/dw_apb_uart.c
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/isa/README.seagate
cvs rdiff -u -r1.94 -r1.95 src/sys/dev/pcmcia/if_xi.c
cvs rdiff -u -r1.70 -r1.71 src/sys/kern/kern_sleepq.c
cvs rdiff -u -r1.28 -r1.29 src/sys/netinet/sctp_output.c
cvs rdiff -u -r1.25 -r1.26 src/usr.bin/pr/pr.c
cvs rdiff -u -r1.16 -r1.17 src/usr.sbin/edquota/edquota.8
cvs rdiff -u -r1.58 -r1.59 src/usr.sbin/lpr/lpd/lpd.c
cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/lpr/lpq/lpq.c
cvs rdiff -u -r1.54 -r1.55 src/usr.sbin/sysinst/partman.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/csh/err.c
diff -u src/bin/csh/err.c:1.24 src/bin/csh/err.c:1.25
--- src/bin/csh/err.c:1.24	Sat Sep 11 20:55:03 2021
+++ src/bin/csh/err.c	Fri Apr  8 10:17:52 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: err.c,v 1.24 2021/09/11 20:55:03 christos Exp $ */
+/* $NetBSD: err.c,v 1.25 2022/04/08 10:17:52 andvar Exp $ */
 
 /*-
  * Copyright (c) 1980, 1991, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)err.c	8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: err.c,v 1.24 2021/09/11 20:55:03 christos Exp $");
+__RCSID("$NetBSD: err.c,v 1.25 2022/04/08 10:17:52 andvar Exp $");
 #endif
 #endif /* not lint */
 
@@ -313,7 +313,7 @@ seterror(int id, ...)
  *		  in bname
  *
  * This routine always resets or exits.  The flag haderr
- * is set so the routine who catches the unwind can propogate
+ * is set so the routine who catches the unwind can propagate
  * it if they want.
  *
  * Note that any open files at the point of error will eventually

Index: src/etc/MAKEDEV.tmpl
diff -u src/etc/MAKEDEV.tmpl:1.228 src/etc/MAKEDEV.tmpl:1.229
--- src/etc/MAKEDEV.tmpl:1.228	Tue Dec  7 17:39:53 2021
+++ src/etc/MAKEDEV.tmpl	Fri Apr  8 10:17:52 2022
@@ -1,5 +1,5 @@
 #!/bin/sh 

CVS commit: src

2022-04-08 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Fri Apr  8 10:17:55 UTC 2022

Modified Files:
src/bin/csh: err.c
src/etc: MAKEDEV.tmpl
src/games/fortune/datfiles: limerick-o.real
src/games/warp: warp.h
src/lib/libc/arch/aarch64/gen: flt_rounds.c
src/lib/libc/arch/arm/gen: flt_rounds.c
src/lib/libc/arch/sh3/gen: flt_rounds.c
src/lib/libcurses: screen.c
src/regress/lib/libc/ieeefp/testfloat/notes: testfloat.txt
src/sbin/fsck_v7fs: inode.c
src/sbin/ping6: ping6.c
src/sbin/resize_ffs: resize_ffs.c
src/sys/arch/acorn32/podulebus: if_ie.c
src/sys/arch/epoc32/stand/e32boot/ldd: ekern.h
src/sys/arch/hpcmips/vr: vrc4172pcsreg.h vrc4172reg.h
src/sys/arch/m68k/fpsp: round.sa util.sa x_store.sa
src/sys/arch/macppc/dev: fcu.c
src/sys/arch/mips/alchemy/include: aureg.h
src/sys/arch/mips/mips: cache_r3k_subr.S cache_r5k_subr.S
src/sys/arch/shark/shark: scr.c
src/sys/arch/vax/include: ka650.h
src/sys/dev: lockstat.c
src/sys/dev/fdt: dw_apb_uart.c
src/sys/dev/isa: README.seagate
src/sys/dev/pcmcia: if_xi.c
src/sys/kern: kern_sleepq.c
src/sys/netinet: sctp_output.c
src/usr.bin/pr: pr.c
src/usr.sbin/edquota: edquota.8
src/usr.sbin/lpr/lpd: lpd.c
src/usr.sbin/lpr/lpq: lpq.c
src/usr.sbin/sysinst: partman.c

Log Message:
fix various typos, mainly in comments, but also log messages, docs, game text.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/bin/csh/err.c
cvs rdiff -u -r1.228 -r1.229 src/etc/MAKEDEV.tmpl
cvs rdiff -u -r1.7 -r1.8 src/games/fortune/datfiles/limerick-o.real
cvs rdiff -u -r1.6 -r1.7 src/games/warp/warp.h
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/arch/aarch64/gen/flt_rounds.c
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/arch/arm/gen/flt_rounds.c
cvs rdiff -u -r1.7 -r1.8 src/lib/libc/arch/sh3/gen/flt_rounds.c
cvs rdiff -u -r1.36 -r1.37 src/lib/libcurses/screen.c
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/regress/lib/libc/ieeefp/testfloat/notes/testfloat.txt
cvs rdiff -u -r1.1 -r1.2 src/sbin/fsck_v7fs/inode.c
cvs rdiff -u -r1.106 -r1.107 src/sbin/ping6/ping6.c
cvs rdiff -u -r1.55 -r1.56 src/sbin/resize_ffs/resize_ffs.c
cvs rdiff -u -r1.51 -r1.52 src/sys/arch/acorn32/podulebus/if_ie.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/epoc32/stand/e32boot/ldd/ekern.h
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/hpcmips/vr/vrc4172pcsreg.h
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/hpcmips/vr/vrc4172reg.h
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/m68k/fpsp/round.sa \
src/sys/arch/m68k/fpsp/util.sa src/sys/arch/m68k/fpsp/x_store.sa
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/macppc/dev/fcu.c
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/mips/alchemy/include/aureg.h
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/mips/mips/cache_r3k_subr.S
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/mips/mips/cache_r5k_subr.S
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/shark/shark/scr.c
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/vax/include/ka650.h
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/lockstat.c
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/fdt/dw_apb_uart.c
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/isa/README.seagate
cvs rdiff -u -r1.94 -r1.95 src/sys/dev/pcmcia/if_xi.c
cvs rdiff -u -r1.70 -r1.71 src/sys/kern/kern_sleepq.c
cvs rdiff -u -r1.28 -r1.29 src/sys/netinet/sctp_output.c
cvs rdiff -u -r1.25 -r1.26 src/usr.bin/pr/pr.c
cvs rdiff -u -r1.16 -r1.17 src/usr.sbin/edquota/edquota.8
cvs rdiff -u -r1.58 -r1.59 src/usr.sbin/lpr/lpd/lpd.c
cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/lpr/lpq/lpq.c
cvs rdiff -u -r1.54 -r1.55 src/usr.sbin/sysinst/partman.c

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