CVS commit: src/doc

2024-01-29 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Mon Jan 29 23:14:46 UTC 2024

Modified Files:
src/doc: 3RDPARTY

Log Message:
binutils-2.42 is out


To generate a diff of this commit:
cvs rdiff -u -r1.1980 -r1.1981 src/doc/3RDPARTY

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

Modified files:

Index: src/doc/3RDPARTY
diff -u src/doc/3RDPARTY:1.1980 src/doc/3RDPARTY:1.1981
--- src/doc/3RDPARTY:1.1980	Sat Jan 27 15:55:25 2024
+++ src/doc/3RDPARTY	Mon Jan 29 23:14:46 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: 3RDPARTY,v 1.1980 2024/01/27 15:55:25 christos Exp $
+#	$NetBSD: 3RDPARTY,v 1.1981 2024/01/29 23:14:46 wiz Exp $
 #
 # This file contains a list of the software that has been integrated into
 # NetBSD where we are not the primary maintainer.
@@ -499,11 +499,11 @@ When updating GDB, it is imperative to t
 
 Package:	binutils
 Version:	2.34/2.39
-Current Vers:	2.40
+Current Vers:	2.42
 Maintainer:	FSF
 Archive Site:	ftp://ftp.gnu.org/gnu/binutils/
 Home Page:	https://www.gnu.org/software/binutils/
-Date:		2023-01-15
+Date:		2024-01-29
 Mailing List:	bug-gnu-ut...@gnu.org
 Responsible:	thorpej, mrg
 License:	GPLv3, LGPLv3, GPLv2, LGPLv2, BSD



CVS commit: src/doc

2024-01-29 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Mon Jan 29 23:14:46 UTC 2024

Modified Files:
src/doc: 3RDPARTY

Log Message:
binutils-2.42 is out


To generate a diff of this commit:
cvs rdiff -u -r1.1980 -r1.1981 src/doc/3RDPARTY

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



CVS commit: src/usr.bin/stat

2024-01-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan 29 22:01:58 UTC 2024

Modified Files:
src/usr.bin/stat: Makefile stat.c

Log Message:
fix tools build


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/usr.bin/stat/Makefile
cvs rdiff -u -r1.49 -r1.50 src/usr.bin/stat/stat.c

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

Modified files:

Index: src/usr.bin/stat/Makefile
diff -u src/usr.bin/stat/Makefile:1.14 src/usr.bin/stat/Makefile:1.15
--- src/usr.bin/stat/Makefile:1.14	Mon Jan 29 16:55:24 2024
+++ src/usr.bin/stat/Makefile	Mon Jan 29 17:01:58 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.14 2024/01/29 21:55:24 christos Exp $
+#	$NetBSD: Makefile,v 1.15 2024/01/29 22:01:58 christos Exp $
 
 PROG=	stat
 
@@ -14,7 +14,9 @@ COPTS.stat.c+=	${CC_WNO_IMPLICIT_FALLTHR
 
 COPTS.stat.c += -Wno-format-nonliteral
 
+.if !defined(HOSTPROG)
 LDADD+=	-lutil
 DPADD+=	${LIBUTIL}
+.endif
 
 .include 

Index: src/usr.bin/stat/stat.c
diff -u src/usr.bin/stat/stat.c:1.49 src/usr.bin/stat/stat.c:1.50
--- src/usr.bin/stat/stat.c:1.49	Mon Jan 29 16:55:24 2024
+++ src/usr.bin/stat/stat.c	Mon Jan 29 17:01:58 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: stat.c,v 1.49 2024/01/29 21:55:24 christos Exp $ */
+/*	$NetBSD: stat.c,v 1.50 2024/01/29 22:01:58 christos Exp $ */
 
 /*
  * Copyright (c) 2002-2011 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
 
 #include 
 #if !defined(lint)
-__RCSID("$NetBSD: stat.c,v 1.49 2024/01/29 21:55:24 christos Exp $");
+__RCSID("$NetBSD: stat.c,v 1.50 2024/01/29 22:01:58 christos Exp $");
 #endif
 
 #if ! HAVE_NBTOOL_CONFIG_H
@@ -63,7 +63,7 @@ __RCSID("$NetBSD: stat.c,v 1.49 2024/01/
 #include 
 #include 
 #include 
-#if HAVE_STRUCT_STAT_ST_FLAGS
+#if HAVE_STRUCT_STAT_ST_FLAGS && !HAVE_NBTOOL_CONFIG_H
 #include 
 #endif
 #include 
@@ -870,9 +870,11 @@ format1(const struct stat *st,
 	case SHOW_st_flags:
 		small = (sizeof(st->st_flags) == 4);
 		data = st->st_flags;
+		formats = FMTF_DECIMAL | FMTF_OCTAL | FMTF_UNSIGNED | FMTF_HEX;
+#if !HAVE_NBTOOL_CONFIG_H
 		sdata = flags_to_string((u_long)st->st_flags, "-");
-		formats = FMTF_DECIMAL | FMTF_OCTAL | FMTF_UNSIGNED | FMTF_HEX |
-		FMTF_STRING;
+		formats |= FMT_STRING;
+#endif
 		if (ofmt == 0)
 			ofmt = FMTF_UNSIGNED;
 		break;



CVS commit: src/usr.bin/stat

2024-01-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan 29 22:01:58 UTC 2024

Modified Files:
src/usr.bin/stat: Makefile stat.c

Log Message:
fix tools build


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/usr.bin/stat/Makefile
cvs rdiff -u -r1.49 -r1.50 src/usr.bin/stat/stat.c

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



CVS commit: src/usr.bin/stat

2024-01-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan 29 21:55:24 UTC 2024

Modified Files:
src/usr.bin/stat: Makefile stat.1 stat.c

Log Message:
PR/57891: Ricardo Branco: add symbolic flags printing (from FreeBSD)


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/stat/Makefile
cvs rdiff -u -r1.46 -r1.47 src/usr.bin/stat/stat.1
cvs rdiff -u -r1.48 -r1.49 src/usr.bin/stat/stat.c

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

Modified files:

Index: src/usr.bin/stat/Makefile
diff -u src/usr.bin/stat/Makefile:1.13 src/usr.bin/stat/Makefile:1.14
--- src/usr.bin/stat/Makefile:1.13	Sat Jun  3 17:30:24 2023
+++ src/usr.bin/stat/Makefile	Mon Jan 29 16:55:24 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.13 2023/06/03 21:30:24 lukem Exp $
+#	$NetBSD: Makefile,v 1.14 2024/01/29 21:55:24 christos Exp $
 
 PROG=	stat
 
@@ -14,4 +14,7 @@ COPTS.stat.c+=	${CC_WNO_IMPLICIT_FALLTHR
 
 COPTS.stat.c += -Wno-format-nonliteral
 
+LDADD+=	-lutil
+DPADD+=	${LIBUTIL}
+
 .include 

Index: src/usr.bin/stat/stat.1
diff -u src/usr.bin/stat/stat.1:1.46 src/usr.bin/stat/stat.1:1.47
--- src/usr.bin/stat/stat.1:1.46	Fri Jun 24 09:11:44 2022
+++ src/usr.bin/stat/stat.1	Mon Jan 29 16:55:24 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: stat.1,v 1.46 2022/06/24 13:11:44 kre Exp $
+.\"	$NetBSD: stat.1,v 1.47 2024/01/29 21:55:24 christos Exp $
 .\"
 .\" Copyright (c) 2002-2011 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd June 22, 2022
+.Dd January 29, 2023
 .Dt STAT 1
 .Os
 .Sh NAME
@@ -315,6 +315,11 @@ format with the extension that
 prints nanoseconds if available.
 .It Cm d , r
 Display actual device name.
+.It Cm f
+Display the flags of
+.Ar file
+as in
+.Nm ls Fl ldo .
 .It Cm g , u
 Display group or user name.
 .It Cm p

Index: src/usr.bin/stat/stat.c
diff -u src/usr.bin/stat/stat.c:1.48 src/usr.bin/stat/stat.c:1.49
--- src/usr.bin/stat/stat.c:1.48	Wed Jun 22 14:20:30 2022
+++ src/usr.bin/stat/stat.c	Mon Jan 29 16:55:24 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: stat.c,v 1.48 2022/06/22 18:20:30 kre Exp $ */
+/*	$NetBSD: stat.c,v 1.49 2024/01/29 21:55:24 christos Exp $ */
 
 /*
  * Copyright (c) 2002-2011 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
 
 #include 
 #if !defined(lint)
-__RCSID("$NetBSD: stat.c,v 1.48 2022/06/22 18:20:30 kre Exp $");
+__RCSID("$NetBSD: stat.c,v 1.49 2024/01/29 21:55:24 christos Exp $");
 #endif
 
 #if ! HAVE_NBTOOL_CONFIG_H
@@ -63,6 +63,9 @@ __RCSID("$NetBSD: stat.c,v 1.48 2022/06/
 #include 
 #include 
 #include 
+#if HAVE_STRUCT_STAT_ST_FLAGS
+#include 
+#endif
 #include 
 
 #if HAVE_STRUCT_STAT_ST_FLAGS
@@ -867,8 +870,9 @@ format1(const struct stat *st,
 	case SHOW_st_flags:
 		small = (sizeof(st->st_flags) == 4);
 		data = st->st_flags;
-		sdata = NULL;
-		formats = FMTF_DECIMAL | FMTF_OCTAL | FMTF_UNSIGNED | FMTF_HEX;
+		sdata = flags_to_string((u_long)st->st_flags, "-");
+		formats = FMTF_DECIMAL | FMTF_OCTAL | FMTF_UNSIGNED | FMTF_HEX |
+		FMTF_STRING;
 		if (ofmt == 0)
 			ofmt = FMTF_UNSIGNED;
 		break;



CVS commit: src/usr.bin/stat

2024-01-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan 29 21:55:24 UTC 2024

Modified Files:
src/usr.bin/stat: Makefile stat.1 stat.c

Log Message:
PR/57891: Ricardo Branco: add symbolic flags printing (from FreeBSD)


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/stat/Makefile
cvs rdiff -u -r1.46 -r1.47 src/usr.bin/stat/stat.1
cvs rdiff -u -r1.48 -r1.49 src/usr.bin/stat/stat.c

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



CVS commit: src/usr.bin/xlint/lint1

2024-01-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Jan 29 21:30:25 UTC 2024

Modified Files:
src/usr.bin/xlint/lint1: ckgetopt.c debug.c emit1.c lex.c lint1.h
tree.c

Log Message:
lint: do not remember content of wide string literals

The plain char literals are needed for checking printf/scanf format
strings; lint has no similar check for wide strings. These format
strings are checked by modern compilers, making this check less
relevant.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/xlint/lint1/ckgetopt.c
cvs rdiff -u -r1.66 -r1.67 src/usr.bin/xlint/lint1/debug.c
cvs rdiff -u -r1.81 -r1.82 src/usr.bin/xlint/lint1/emit1.c
cvs rdiff -u -r1.203 -r1.204 src/usr.bin/xlint/lint1/lex.c
cvs rdiff -u -r1.209 -r1.210 src/usr.bin/xlint/lint1/lint1.h
cvs rdiff -u -r1.598 -r1.599 src/usr.bin/xlint/lint1/tree.c

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

Modified files:

Index: src/usr.bin/xlint/lint1/ckgetopt.c
diff -u src/usr.bin/xlint/lint1/ckgetopt.c:1.18 src/usr.bin/xlint/lint1/ckgetopt.c:1.19
--- src/usr.bin/xlint/lint1/ckgetopt.c:1.18	Mon Jan 29 21:04:21 2024
+++ src/usr.bin/xlint/lint1/ckgetopt.c	Mon Jan 29 21:30:24 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: ckgetopt.c,v 1.18 2024/01/29 21:04:21 rillig Exp $ */
+/* $NetBSD: ckgetopt.c,v 1.19 2024/01/29 21:30:24 rillig Exp $ */
 
 /*-
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 
 #include 
 #if defined(__RCSID)
-__RCSID("$NetBSD: ckgetopt.c,v 1.18 2024/01/29 21:04:21 rillig Exp $");
+__RCSID("$NetBSD: ckgetopt.c,v 1.19 2024/01/29 21:30:24 rillig Exp $");
 #endif
 
 #include 
@@ -100,7 +100,7 @@ is_getopt_condition(const tnode_t *tn, c
 	&& last_arg->tn_left->tn_op == ADDR
 	&& last_arg->tn_left->tn_left->tn_op == STRING
 	&& (str = last_arg->tn_left->tn_left->tn_string)->st_char) {
-		*out_options = xstrdup(str->st_mem);
+		*out_options = xstrdup(str->st_chars);
 		return true;
 	}
 	return false;

Index: src/usr.bin/xlint/lint1/debug.c
diff -u src/usr.bin/xlint/lint1/debug.c:1.66 src/usr.bin/xlint/lint1/debug.c:1.67
--- src/usr.bin/xlint/lint1/debug.c:1.66	Tue Jan 23 19:44:28 2024
+++ src/usr.bin/xlint/lint1/debug.c	Mon Jan 29 21:30:24 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: debug.c,v 1.66 2024/01/23 19:44:28 rillig Exp $ */
+/* $NetBSD: debug.c,v 1.67 2024/01/29 21:30:24 rillig Exp $ */
 
 /*-
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 
 #include 
 #if defined(__RCSID)
-__RCSID("$NetBSD: debug.c,v 1.66 2024/01/23 19:44:28 rillig Exp $");
+__RCSID("$NetBSD: debug.c,v 1.67 2024/01/29 21:30:24 rillig Exp $");
 #endif
 
 #include 
@@ -238,15 +238,9 @@ debug_node(const tnode_t *tn) // NOLINT(
 		if (tn->tn_string->st_char)
 			debug_printf(", length %zu, \"%s\"\n",
 			tn->tn_string->st_len,
-			(const char *)tn->tn_string->st_mem);
-		else {
-			size_t n = MB_CUR_MAX * (tn->tn_string->st_len + 1);
-			char *s = xmalloc(n);
-			(void)wcstombs(s, tn->tn_string->st_mem, n);
-			debug_printf(", length %zu, L\"%s\"\n",
-			tn->tn_string->st_len, s);
-			free(s);
-		}
+			tn->tn_string->st_chars);
+		else
+			debug_printf(", length %zu\n", tn->tn_string->st_len);
 		break;
 	default:
 		debug_printf("\n");

Index: src/usr.bin/xlint/lint1/emit1.c
diff -u src/usr.bin/xlint/lint1/emit1.c:1.81 src/usr.bin/xlint/lint1/emit1.c:1.82
--- src/usr.bin/xlint/lint1/emit1.c:1.81	Sun Dec  3 18:17:41 2023
+++ src/usr.bin/xlint/lint1/emit1.c	Mon Jan 29 21:30:24 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: emit1.c,v 1.81 2023/12/03 18:17:41 rillig Exp $ */
+/* $NetBSD: emit1.c,v 1.82 2024/01/29 21:30:24 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include 
 #if defined(__RCSID)
-__RCSID("$NetBSD: emit1.c,v 1.81 2023/12/03 18:17:41 rillig Exp $");
+__RCSID("$NetBSD: emit1.c,v 1.82 2024/01/29 21:30:24 rillig Exp $");
 #endif
 
 #include "lint1.h"
@@ -450,17 +450,13 @@ outqchar(char c)
 static void
 outfstrg(strg_t *strg)
 {
-	char c, oc;
-	bool first;
-	const char *cp;
 
 	lint_assert(strg->st_char);
-	cp = strg->st_mem;
+	const char *cp = strg->st_chars;
 
 	outchar('"');
 
-	c = *cp++;
-
+	char c = *cp++;
 	while (c != '\0') {
 
 		if (c != '%') {
@@ -511,7 +507,7 @@ outfstrg(strg_t *strg)
 		 */
 		if (c != '\0') {
 			outqchar(c);
-			oc = c;
+			char oc = c;
 			c = *cp++;
 			/*
 			 * handle [ for scanf. [-] means that a minus sign was
@@ -522,7 +518,7 @@ outfstrg(strg_t *strg)
 	c = *cp++;
 if (c == ']')
 	c = *cp++;
-first = true;
+bool first = true;
 while (c != '\0' && c != ']') {
 	if (c == '-') {
 		if (!first && *cp != ']')

Index: src/usr.bin/xlint/lint1/lex.c
diff -u src/usr.bin/xlint/lint1/lex.c:1.203 src/usr.bin/xlint/lint1/lex.c:1.204
--- src/usr.bin/xlint/lint1/lex.c:1.203	Sat Jan 27 20:03:14 2024
+++ src/usr.bin/xlint/lint1/lex.c	Mon Jan 29 21:30:25 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: 

CVS commit: src/usr.bin/xlint/lint1

2024-01-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Jan 29 21:30:25 UTC 2024

Modified Files:
src/usr.bin/xlint/lint1: ckgetopt.c debug.c emit1.c lex.c lint1.h
tree.c

Log Message:
lint: do not remember content of wide string literals

The plain char literals are needed for checking printf/scanf format
strings; lint has no similar check for wide strings. These format
strings are checked by modern compilers, making this check less
relevant.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/xlint/lint1/ckgetopt.c
cvs rdiff -u -r1.66 -r1.67 src/usr.bin/xlint/lint1/debug.c
cvs rdiff -u -r1.81 -r1.82 src/usr.bin/xlint/lint1/emit1.c
cvs rdiff -u -r1.203 -r1.204 src/usr.bin/xlint/lint1/lex.c
cvs rdiff -u -r1.209 -r1.210 src/usr.bin/xlint/lint1/lint1.h
cvs rdiff -u -r1.598 -r1.599 src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src/usr.bin/xlint/lint1

2024-01-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Jan 29 21:04:21 UTC 2024

Modified Files:
src/usr.bin/xlint/lint1: ckgetopt.c

Log Message:
lint: check getopt call more strictly

Previously, '(c = getopt(...)) != -2' would match as well.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/usr.bin/xlint/lint1/ckgetopt.c

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

Modified files:

Index: src/usr.bin/xlint/lint1/ckgetopt.c
diff -u src/usr.bin/xlint/lint1/ckgetopt.c:1.17 src/usr.bin/xlint/lint1/ckgetopt.c:1.18
--- src/usr.bin/xlint/lint1/ckgetopt.c:1.17	Sun Dec  3 13:12:40 2023
+++ src/usr.bin/xlint/lint1/ckgetopt.c	Mon Jan 29 21:04:21 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: ckgetopt.c,v 1.17 2023/12/03 13:12:40 rillig Exp $ */
+/* $NetBSD: ckgetopt.c,v 1.18 2024/01/29 21:04:21 rillig Exp $ */
 
 /*-
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 
 #include 
 #if defined(__RCSID)
-__RCSID("$NetBSD: ckgetopt.c,v 1.17 2023/12/03 13:12:40 rillig Exp $");
+__RCSID("$NetBSD: ckgetopt.c,v 1.18 2024/01/29 21:04:21 rillig Exp $");
 #endif
 
 #include 
@@ -75,38 +75,35 @@ static struct {
 	int switch_level;
 } ck;
 
-#define NEED(cond) \
-	do {\
-		if (!(cond))		\
-			return false;	\
-	} while (false)
-
-/* Return whether tn has the form 'getopt(argc, argv, "literal") != -1'. */
+/* Return whether tn has the form '(c = getopt(argc, argv, "str")) != -1'. */
 static bool
 is_getopt_condition(const tnode_t *tn, char **out_options)
 {
 	const tnode_t *call, *last_arg;
+	const strg_t *str;
 
-	NEED(tn != NULL);
-	NEED(tn->tn_op == NE);
-	NEED(tn->tn_left->tn_op == ASSIGN);
-
-	call = tn->tn_left->tn_right;
-	NEED(call->tn_op == CALL);
-	NEED(call->tn_left->tn_op == ADDR);
-	NEED(call->tn_left->tn_left->tn_op == NAME);
-	NEED(strcmp(call->tn_left->tn_left->tn_sym->s_name, "getopt") == 0);
-
-	NEED(call->tn_right->tn_op == PUSH);
-
-	last_arg = call->tn_right->tn_left;
-	NEED(last_arg->tn_op == CVT);
-	NEED(last_arg->tn_left->tn_op == ADDR);
-	NEED(last_arg->tn_left->tn_left->tn_op == STRING);
-	NEED(last_arg->tn_left->tn_left->tn_string->st_char);
-
-	*out_options = xstrdup(last_arg->tn_left->tn_left->tn_string->st_mem);
-	return true;
+	if (tn != NULL
+	&& tn->tn_op == NE
+	&& tn->tn_left->tn_op == ASSIGN
+	&& tn->tn_right->tn_op == CON
+	&& tn->tn_right->tn_u._tn_val.v_tspec == INT
+	&& tn->tn_right->tn_u._tn_val.u.integer == -1
+
+	&& (call = tn->tn_left->tn_right)->tn_op == CALL
+	&& call->tn_left->tn_op == ADDR
+	&& call->tn_left->tn_left->tn_op == NAME
+	&& strcmp(call->tn_left->tn_left->tn_sym->s_name, "getopt") == 0
+
+	&& call->tn_right->tn_op == PUSH
+
+	&& (last_arg = call->tn_right->tn_left)->tn_op == CVT
+	&& last_arg->tn_left->tn_op == ADDR
+	&& last_arg->tn_left->tn_left->tn_op == STRING
+	&& (str = last_arg->tn_left->tn_left->tn_string)->st_char) {
+		*out_options = xstrdup(str->st_mem);
+		return true;
+	}
+	return false;
 }
 
 static void



CVS commit: src/usr.bin/xlint/lint1

2024-01-29 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Jan 29 21:04:21 UTC 2024

Modified Files:
src/usr.bin/xlint/lint1: ckgetopt.c

Log Message:
lint: check getopt call more strictly

Previously, '(c = getopt(...)) != -2' would match as well.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/usr.bin/xlint/lint1/ckgetopt.c

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



CVS commit: src/sys/dev/hdaudio

2024-01-29 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Mon Jan 29 18:58:54 UTC 2024

Modified Files:
src/sys/dev/hdaudio: hdafg.c

Log Message:
hdaudio(4): KNF, no functional change intended


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/hdaudio/hdafg.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/hdaudio/hdafg.c
diff -u src/sys/dev/hdaudio/hdafg.c:1.31 src/sys/dev/hdaudio/hdafg.c:1.32
--- src/sys/dev/hdaudio/hdafg.c:1.31	Mon Jan 29 18:55:51 2024
+++ src/sys/dev/hdaudio/hdafg.c	Mon Jan 29 18:58:54 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: hdafg.c,v 1.31 2024/01/29 18:55:51 riastradh Exp $ */
+/* $NetBSD: hdafg.c,v 1.32 2024/01/29 18:58:54 riastradh Exp $ */
 
 /*
  * Copyright (c) 2009 Precedence Technologies Ltd 
@@ -60,7 +60,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: hdafg.c,v 1.31 2024/01/29 18:55:51 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdafg.c,v 1.32 2024/01/29 18:58:54 riastradh Exp $");
 
 #include 
 #include 
@@ -4282,9 +4282,11 @@ hdafg_freem(void *opaque, void *addr, si
 	struct hdaudio_audiodev *ad = opaque;
 	struct hdaudio_stream *st;
 
-	if (ad->ad_playback != NULL && addr == DMA_KERNADDR(>ad_playback->st_data))
+	if (ad->ad_playback != NULL &&
+	addr == DMA_KERNADDR(>ad_playback->st_data))
 		st = ad->ad_playback;
-	else if (ad->ad_capture != NULL && addr == DMA_KERNADDR(>ad_capture->st_data))
+	else if (ad->ad_capture != NULL &&
+	addr == DMA_KERNADDR(>ad_capture->st_data))
 		st = ad->ad_capture;
 	else
 		panic("bad hdafg hwbuf mem: %p (%zu bytes)", addr, size);



CVS commit: src/sys/dev/hdaudio

2024-01-29 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Mon Jan 29 18:58:54 UTC 2024

Modified Files:
src/sys/dev/hdaudio: hdafg.c

Log Message:
hdaudio(4): KNF, no functional change intended


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/hdaudio/hdafg.c

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



CVS commit: src/sys/dev/hdaudio

2024-01-29 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Mon Jan 29 18:55:51 UTC 2024

Modified Files:
src/sys/dev/hdaudio: hdafg.c

Log Message:
hdaudio(4): Tighten hdafg_freem.

The fix for PR kern/57890 in hdafg.c 1.29 included more conditionals
than needed, covering cases that can't happen: if allocm returns
null, audio(4) does not call freem; and if hdafg_allocm returns
nonnull, then what audio(4) passes to hdafg_freem had better be
either the playback or the capture buffer address.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/dev/hdaudio/hdafg.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/hdaudio/hdafg.c
diff -u src/sys/dev/hdaudio/hdafg.c:1.30 src/sys/dev/hdaudio/hdafg.c:1.31
--- src/sys/dev/hdaudio/hdafg.c:1.30	Tue Jul 18 13:35:57 2023
+++ src/sys/dev/hdaudio/hdafg.c	Mon Jan 29 18:55:51 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: hdafg.c,v 1.30 2023/07/18 13:35:57 riastradh Exp $ */
+/* $NetBSD: hdafg.c,v 1.31 2024/01/29 18:55:51 riastradh Exp $ */
 
 /*
  * Copyright (c) 2009 Precedence Technologies Ltd 
@@ -60,7 +60,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: hdafg.c,v 1.30 2023/07/18 13:35:57 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdafg.c,v 1.31 2024/01/29 18:55:51 riastradh Exp $");
 
 #include 
 #include 
@@ -4282,15 +4282,12 @@ hdafg_freem(void *opaque, void *addr, si
 	struct hdaudio_audiodev *ad = opaque;
 	struct hdaudio_stream *st;
 
-	if (ad == NULL)
-		return;
-
 	if (ad->ad_playback != NULL && addr == DMA_KERNADDR(>ad_playback->st_data))
 		st = ad->ad_playback;
 	else if (ad->ad_capture != NULL && addr == DMA_KERNADDR(>ad_capture->st_data))
 		st = ad->ad_capture;
 	else
-		return;
+		panic("bad hdafg hwbuf mem: %p (%zu bytes)", addr, size);
 
 	hdaudio_dma_free(st->st_host, >st_data);
 }



CVS commit: src/sys/dev/hdaudio

2024-01-29 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Mon Jan 29 18:55:51 UTC 2024

Modified Files:
src/sys/dev/hdaudio: hdafg.c

Log Message:
hdaudio(4): Tighten hdafg_freem.

The fix for PR kern/57890 in hdafg.c 1.29 included more conditionals
than needed, covering cases that can't happen: if allocm returns
null, audio(4) does not call freem; and if hdafg_allocm returns
nonnull, then what audio(4) passes to hdafg_freem had better be
either the playback or the capture buffer address.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/dev/hdaudio/hdafg.c

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



CVS commit: src

2024-01-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan 29 18:27:15 UTC 2024

Modified Files:
src/share/man/man4: options.4
src/sys/arch/amd64/conf: ALL GENERIC XEN3_DOM0 XEN3_DOMU
src/sys/arch/amiga/conf: DRACO GENERIC GENERIC.in INSTALL
src/sys/arch/amigappc/conf: GENERIC NULL
src/sys/arch/arc/conf: ARCTIC GENERIC M403 MIMORI PICA RPC44
src/sys/arch/atari/conf: GENERIC.in
src/sys/arch/bebox/conf: GENERIC
src/sys/arch/cobalt/conf: GENERIC INSTALL
src/sys/arch/dreamcast/conf: G1IDE GENERIC
src/sys/arch/epoc32/conf: GENERIC
src/sys/arch/evbarm/conf: ARMADILLO210 ARMADILLO9 CUBOX GENERIC.common
GUMSTIX HDL_G HPT5325 IYONIX MARVELL_NAS MMNET_GENERIC
MPCSA_GENERIC MV2120 OPENBLOCKS_A6 SHEEVAPLUG
src/sys/arch/evbmips/conf: ADM5120 ADM5120-NB ADM5120-USB ALCHEMY AP30
CI20 CPMBR1400 DB120 LINKITSMART7688 MALTA MERAKI MIPSSIM OCTEON
RB153 RB433UAH SBMIPS WGT624V3 XLSATX ZYXELKX
src/sys/arch/evbppc/conf: DHT EV64260 EXPLORA451 MPC8536DS MPC8548CDS
OPENBLOCKS200 OPENBLOCKS266 OPENBLOCKS600 P2020DS P2020RDB PMPPC
RB800 RB850GX2 TWRP1025 VIRTEX_DFC VIRTEX_GSRD1 VIRTEX_GSRD2 WALNUT
src/sys/arch/ews4800mips/conf: GENERIC
src/sys/arch/hp300/conf: GENERIC INSTALL
src/sys/arch/hpcsh/conf: GENERIC
src/sys/arch/hppa/conf: GENERIC
src/sys/arch/i386/conf: ALL GENERIC GENERIC_PS2TINY GENERIC_TINY
INSTALL_FLOPPY INSTALL_TINY NET4501 XEN3PAE_DOM0 XEN3PAE_DOMU
src/sys/arch/ia64/conf: GENERIC GENERIC.SKI
src/sys/arch/ibmnws/conf: GENERIC
src/sys/arch/iyonix/conf: GENERIC
src/sys/arch/landisk/conf: GENERIC
src/sys/arch/mac68k/conf: GENERIC
src/sys/arch/macppc/conf: GENERIC GENERIC_601 MAMBO POWERMAC_G5
POWERMAC_G5_11_2
src/sys/arch/mmeye/conf: GENERIC MMEYE_WLF MMTA MMTAICE MMTAROMNEW
src/sys/arch/mvmeppc/conf: GENERIC
src/sys/arch/next68k/conf: GENERIC RAMDISK SLAB
src/sys/arch/ofppc/conf: GENERIC
src/sys/arch/prep/conf: GENERIC INSTALL INSTALL_SMALL
src/sys/arch/riscv/conf: GENERIC.common
src/sys/arch/rs6000/conf: GENERIC
src/sys/arch/sandpoint/conf: GENERIC
src/sys/arch/sbmips/conf: GENERIC
src/sys/arch/sgimips/conf: GENERIC32_IP12 GENERIC32_IP2x GENERIC32_IP3x
src/sys/arch/zaurus/conf: GENERIC
src/sys/ufs/ext2fs: ext2fs_vnops.c

Log Message:
PR/57889: Ricardo Branco: ext2fs does not have user immutable and append
file flags, only system ones. Restrict those to the superuser. Before
the behavior was controlled by EXT2FS_SYSTEM_FLAGS. Make that behavior the
default.


To generate a diff of this commit:
cvs rdiff -u -r1.527 -r1.528 src/share/man/man4/options.4
cvs rdiff -u -r1.183 -r1.184 src/sys/arch/amd64/conf/ALL
cvs rdiff -u -r1.608 -r1.609 src/sys/arch/amd64/conf/GENERIC
cvs rdiff -u -r1.201 -r1.202 src/sys/arch/amd64/conf/XEN3_DOM0
cvs rdiff -u -r1.103 -r1.104 src/sys/arch/amd64/conf/XEN3_DOMU
cvs rdiff -u -r1.201 -r1.202 src/sys/arch/amiga/conf/DRACO
cvs rdiff -u -r1.338 -r1.339 src/sys/arch/amiga/conf/GENERIC
cvs rdiff -u -r1.151 -r1.152 src/sys/arch/amiga/conf/GENERIC.in
cvs rdiff -u -r1.141 -r1.142 src/sys/arch/amiga/conf/INSTALL
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/amigappc/conf/GENERIC
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/amigappc/conf/NULL
cvs rdiff -u -r1.73 -r1.74 src/sys/arch/arc/conf/ARCTIC
cvs rdiff -u -r1.203 -r1.204 src/sys/arch/arc/conf/GENERIC
cvs rdiff -u -r1.69 -r1.70 src/sys/arch/arc/conf/M403
cvs rdiff -u -r1.76 -r1.77 src/sys/arch/arc/conf/MIMORI
cvs rdiff -u -r1.86 -r1.87 src/sys/arch/arc/conf/PICA
cvs rdiff -u -r1.57 -r1.58 src/sys/arch/arc/conf/RPC44
cvs rdiff -u -r1.125 -r1.126 src/sys/arch/atari/conf/GENERIC.in
cvs rdiff -u -r1.169 -r1.170 src/sys/arch/bebox/conf/GENERIC
cvs rdiff -u -r1.173 -r1.174 src/sys/arch/cobalt/conf/GENERIC
cvs rdiff -u -r1.76 -r1.77 src/sys/arch/cobalt/conf/INSTALL
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/dreamcast/conf/G1IDE
cvs rdiff -u -r1.138 -r1.139 src/sys/arch/dreamcast/conf/GENERIC
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/epoc32/conf/GENERIC
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/evbarm/conf/ARMADILLO210
cvs rdiff -u -r1.67 -r1.68 src/sys/arch/evbarm/conf/ARMADILLO9 \
src/sys/arch/evbarm/conf/HDL_G
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/evbarm/conf/CUBOX
cvs rdiff -u -r1.51 -r1.52 src/sys/arch/evbarm/conf/GENERIC.common
cvs rdiff -u -r1.110 -r1.111 src/sys/arch/evbarm/conf/GUMSTIX
cvs rdiff -u -r1.53 -r1.54 src/sys/arch/evbarm/conf/HPT5325
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/evbarm/conf/IYONIX
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/evbarm/conf/MARVELL_NAS
cvs rdiff -u -r1.55 -r1.56 src/sys/arch/evbarm/conf/MMNET_GENERIC
cvs rdiff -u -r1.76 -r1.77 src/sys/arch/evbarm/conf/MPCSA_GENERIC
cvs rdiff -u -r1.46 -r1.47 src/sys/arch/evbarm/conf/MV2120
cvs rdiff -u -r1.45 

CVS commit: src

2024-01-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan 29 18:27:15 UTC 2024

Modified Files:
src/share/man/man4: options.4
src/sys/arch/amd64/conf: ALL GENERIC XEN3_DOM0 XEN3_DOMU
src/sys/arch/amiga/conf: DRACO GENERIC GENERIC.in INSTALL
src/sys/arch/amigappc/conf: GENERIC NULL
src/sys/arch/arc/conf: ARCTIC GENERIC M403 MIMORI PICA RPC44
src/sys/arch/atari/conf: GENERIC.in
src/sys/arch/bebox/conf: GENERIC
src/sys/arch/cobalt/conf: GENERIC INSTALL
src/sys/arch/dreamcast/conf: G1IDE GENERIC
src/sys/arch/epoc32/conf: GENERIC
src/sys/arch/evbarm/conf: ARMADILLO210 ARMADILLO9 CUBOX GENERIC.common
GUMSTIX HDL_G HPT5325 IYONIX MARVELL_NAS MMNET_GENERIC
MPCSA_GENERIC MV2120 OPENBLOCKS_A6 SHEEVAPLUG
src/sys/arch/evbmips/conf: ADM5120 ADM5120-NB ADM5120-USB ALCHEMY AP30
CI20 CPMBR1400 DB120 LINKITSMART7688 MALTA MERAKI MIPSSIM OCTEON
RB153 RB433UAH SBMIPS WGT624V3 XLSATX ZYXELKX
src/sys/arch/evbppc/conf: DHT EV64260 EXPLORA451 MPC8536DS MPC8548CDS
OPENBLOCKS200 OPENBLOCKS266 OPENBLOCKS600 P2020DS P2020RDB PMPPC
RB800 RB850GX2 TWRP1025 VIRTEX_DFC VIRTEX_GSRD1 VIRTEX_GSRD2 WALNUT
src/sys/arch/ews4800mips/conf: GENERIC
src/sys/arch/hp300/conf: GENERIC INSTALL
src/sys/arch/hpcsh/conf: GENERIC
src/sys/arch/hppa/conf: GENERIC
src/sys/arch/i386/conf: ALL GENERIC GENERIC_PS2TINY GENERIC_TINY
INSTALL_FLOPPY INSTALL_TINY NET4501 XEN3PAE_DOM0 XEN3PAE_DOMU
src/sys/arch/ia64/conf: GENERIC GENERIC.SKI
src/sys/arch/ibmnws/conf: GENERIC
src/sys/arch/iyonix/conf: GENERIC
src/sys/arch/landisk/conf: GENERIC
src/sys/arch/mac68k/conf: GENERIC
src/sys/arch/macppc/conf: GENERIC GENERIC_601 MAMBO POWERMAC_G5
POWERMAC_G5_11_2
src/sys/arch/mmeye/conf: GENERIC MMEYE_WLF MMTA MMTAICE MMTAROMNEW
src/sys/arch/mvmeppc/conf: GENERIC
src/sys/arch/next68k/conf: GENERIC RAMDISK SLAB
src/sys/arch/ofppc/conf: GENERIC
src/sys/arch/prep/conf: GENERIC INSTALL INSTALL_SMALL
src/sys/arch/riscv/conf: GENERIC.common
src/sys/arch/rs6000/conf: GENERIC
src/sys/arch/sandpoint/conf: GENERIC
src/sys/arch/sbmips/conf: GENERIC
src/sys/arch/sgimips/conf: GENERIC32_IP12 GENERIC32_IP2x GENERIC32_IP3x
src/sys/arch/zaurus/conf: GENERIC
src/sys/ufs/ext2fs: ext2fs_vnops.c

Log Message:
PR/57889: Ricardo Branco: ext2fs does not have user immutable and append
file flags, only system ones. Restrict those to the superuser. Before
the behavior was controlled by EXT2FS_SYSTEM_FLAGS. Make that behavior the
default.


To generate a diff of this commit:
cvs rdiff -u -r1.527 -r1.528 src/share/man/man4/options.4
cvs rdiff -u -r1.183 -r1.184 src/sys/arch/amd64/conf/ALL
cvs rdiff -u -r1.608 -r1.609 src/sys/arch/amd64/conf/GENERIC
cvs rdiff -u -r1.201 -r1.202 src/sys/arch/amd64/conf/XEN3_DOM0
cvs rdiff -u -r1.103 -r1.104 src/sys/arch/amd64/conf/XEN3_DOMU
cvs rdiff -u -r1.201 -r1.202 src/sys/arch/amiga/conf/DRACO
cvs rdiff -u -r1.338 -r1.339 src/sys/arch/amiga/conf/GENERIC
cvs rdiff -u -r1.151 -r1.152 src/sys/arch/amiga/conf/GENERIC.in
cvs rdiff -u -r1.141 -r1.142 src/sys/arch/amiga/conf/INSTALL
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/amigappc/conf/GENERIC
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/amigappc/conf/NULL
cvs rdiff -u -r1.73 -r1.74 src/sys/arch/arc/conf/ARCTIC
cvs rdiff -u -r1.203 -r1.204 src/sys/arch/arc/conf/GENERIC
cvs rdiff -u -r1.69 -r1.70 src/sys/arch/arc/conf/M403
cvs rdiff -u -r1.76 -r1.77 src/sys/arch/arc/conf/MIMORI
cvs rdiff -u -r1.86 -r1.87 src/sys/arch/arc/conf/PICA
cvs rdiff -u -r1.57 -r1.58 src/sys/arch/arc/conf/RPC44
cvs rdiff -u -r1.125 -r1.126 src/sys/arch/atari/conf/GENERIC.in
cvs rdiff -u -r1.169 -r1.170 src/sys/arch/bebox/conf/GENERIC
cvs rdiff -u -r1.173 -r1.174 src/sys/arch/cobalt/conf/GENERIC
cvs rdiff -u -r1.76 -r1.77 src/sys/arch/cobalt/conf/INSTALL
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/dreamcast/conf/G1IDE
cvs rdiff -u -r1.138 -r1.139 src/sys/arch/dreamcast/conf/GENERIC
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/epoc32/conf/GENERIC
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/evbarm/conf/ARMADILLO210
cvs rdiff -u -r1.67 -r1.68 src/sys/arch/evbarm/conf/ARMADILLO9 \
src/sys/arch/evbarm/conf/HDL_G
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/evbarm/conf/CUBOX
cvs rdiff -u -r1.51 -r1.52 src/sys/arch/evbarm/conf/GENERIC.common
cvs rdiff -u -r1.110 -r1.111 src/sys/arch/evbarm/conf/GUMSTIX
cvs rdiff -u -r1.53 -r1.54 src/sys/arch/evbarm/conf/HPT5325
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/evbarm/conf/IYONIX
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/evbarm/conf/MARVELL_NAS
cvs rdiff -u -r1.55 -r1.56 src/sys/arch/evbarm/conf/MMNET_GENERIC
cvs rdiff -u -r1.76 -r1.77 src/sys/arch/evbarm/conf/MPCSA_GENERIC
cvs rdiff -u -r1.46 -r1.47 src/sys/arch/evbarm/conf/MV2120
cvs rdiff -u -r1.45 

CVS commit: src/share/misc

2024-01-29 Thread Jan Schaumann
Module Name:src
Committed By:   jschauma
Date:   Mon Jan 29 16:31:53 UTC 2024

Modified Files:
src/share/misc: acronyms.comp

Log Message:
+HPKE, PKE  (hybrid) public key encryption  (see also: RFC9180)


To generate a diff of this commit:
cvs rdiff -u -r1.387 -r1.388 src/share/misc/acronyms.comp

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



CVS commit: src/share/misc

2024-01-29 Thread Jan Schaumann
Module Name:src
Committed By:   jschauma
Date:   Mon Jan 29 16:31:53 UTC 2024

Modified Files:
src/share/misc: acronyms.comp

Log Message:
+HPKE, PKE  (hybrid) public key encryption  (see also: RFC9180)


To generate a diff of this commit:
cvs rdiff -u -r1.387 -r1.388 src/share/misc/acronyms.comp

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

Modified files:

Index: src/share/misc/acronyms.comp
diff -u src/share/misc/acronyms.comp:1.387 src/share/misc/acronyms.comp:1.388
--- src/share/misc/acronyms.comp:1.387	Tue Jan 23 15:58:17 2024
+++ src/share/misc/acronyms.comp	Mon Jan 29 16:31:53 2024
@@ -1,4 +1,4 @@
-$NetBSD: acronyms.comp,v 1.387 2024/01/23 15:58:17 jschauma Exp $
+$NetBSD: acronyms.comp,v 1.388 2024/01/29 16:31:53 jschauma Exp $
 3WHS	three-way handshake
 8VSB	8-state vestigial side band modulation
 AA	anti-aliasing
@@ -731,6 +731,7 @@ HP	Hewlett-Packard
 HPC	high performance computing
 HPD	hot plug detection
 HPET	high precision event timer
+HPKE	hybrid public key encryption
 HSM	hardware security module
 HSM	hierarchical storage management
 HSRP	hot standby router protocol
@@ -1284,6 +1285,7 @@ PIT	programmable interrupt timer
 PIV	personal identity verification
 PIX	Private Internet eXchange
 PKCS	public-key cryptography standards
+PKE	public key encryption
 PKI	public key infrastructure
 PLC	programmable logic controller
 PLD	programmable logic device



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

2024-01-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan 29 16:09:46 UTC 2024

Modified Files:
src/common/lib/libc/atomic: atomic_c11_compare_exchange_cas_16.c
atomic_c11_compare_exchange_cas_32.c
atomic_c11_compare_exchange_cas_8.c

Log Message:
sprinkle argsused


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_16.c \
src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_8.c
cvs rdiff -u -r1.5 -r1.6 \
src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c

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



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

2024-01-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan 29 16:09:46 UTC 2024

Modified Files:
src/common/lib/libc/atomic: atomic_c11_compare_exchange_cas_16.c
atomic_c11_compare_exchange_cas_32.c
atomic_c11_compare_exchange_cas_8.c

Log Message:
sprinkle argsused


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_16.c \
src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_8.c
cvs rdiff -u -r1.5 -r1.6 \
src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.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/atomic/atomic_c11_compare_exchange_cas_16.c
diff -u src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_16.c:1.4 src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_16.c:1.5
--- src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_16.c:1.4	Sat May 14 01:35:55 2022
+++ src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_16.c	Mon Jan 29 11:09:45 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: atomic_c11_compare_exchange_cas_16.c,v 1.4 2022/05/14 05:35:55 skrll Exp $	*/
+/*	$NetBSD: atomic_c11_compare_exchange_cas_16.c,v 1.5 2024/01/29 16:09:45 christos Exp $	*/
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -40,6 +40,7 @@ bool __atomic_compare_exchange_2(volatil
 bool, int, int);
 
 bool
+/*ARGSUSED*/
 __atomic_compare_exchange_2(volatile void *mem,
 void *expected, uint16_t desired,
 bool weak, int success, int failure)
Index: src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_8.c
diff -u src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_8.c:1.4 src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_8.c:1.5
--- src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_8.c:1.4	Sat May 14 01:35:55 2022
+++ src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_8.c	Mon Jan 29 11:09:45 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: atomic_c11_compare_exchange_cas_8.c,v 1.4 2022/05/14 05:35:55 skrll Exp $	*/
+/*	$NetBSD: atomic_c11_compare_exchange_cas_8.c,v 1.5 2024/01/29 16:09:45 christos Exp $	*/
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -40,6 +40,7 @@ bool __atomic_compare_exchange_1(volatil
 bool, int, int);
 
 bool
+/*ARGSUSED*/
 __atomic_compare_exchange_1(volatile void *mem,
 void *expected, uint8_t desired,
 bool weak, int success, int failure)

Index: src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c
diff -u src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c:1.5 src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c:1.6
--- src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c:1.5	Mon May 16 02:07:23 2022
+++ src/common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c	Mon Jan 29 11:09:45 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: atomic_c11_compare_exchange_cas_32.c,v 1.5 2022/05/16 06:07:23 skrll Exp $	*/
+/*	$NetBSD: atomic_c11_compare_exchange_cas_32.c,v 1.6 2024/01/29 16:09:45 christos Exp $	*/
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -40,6 +40,7 @@ bool __atomic_compare_exchange_4(volatil
 bool, int, int);
 
 bool
+/*ARGSUSED*/
 __atomic_compare_exchange_4(volatile void *mem,
 void *expected, uint32_t desired,
 bool weak, int success, int failure)



CVS commit: src/distrib/sets

2024-01-29 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Jan 29 15:56:49 UTC 2024

Modified Files:
src/distrib/sets: maketars

Log Message:
When building in priviledged mode, remove the entry for the output file
from etc/mtree/set.* - it may exist and contain stale data.


To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/distrib/sets/maketars

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



CVS commit: src/distrib/sets

2024-01-29 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Jan 29 15:56:49 UTC 2024

Modified Files:
src/distrib/sets: maketars

Log Message:
When building in priviledged mode, remove the entry for the output file
from etc/mtree/set.* - it may exist and contain stale data.


To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/distrib/sets/maketars

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/maketars
diff -u src/distrib/sets/maketars:1.98 src/distrib/sets/maketars:1.99
--- src/distrib/sets/maketars:1.98	Wed Nov  8 13:02:47 2023
+++ src/distrib/sets/maketars	Mon Jan 29 15:56:49 2024
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: maketars,v 1.98 2023/11/08 13:02:47 christos Exp $
+# $NetBSD: maketars,v 1.99 2024/01/29 15:56:49 martin Exp $
 #
 # Make release tar files for some or all lists.  Usage:
 # maketars [-b] [-x] [-i installdir] [-a arch] [-m machine] [-s setsdir]
@@ -198,7 +198,8 @@ for setname in ${lists}; do
 		# We deliberately do not add set.${setname} to ${metalog},
 		# because we depend on it as an input.
 	else
-		${MTREE} -c -p "${dest}" -k all -R "${skipkeys}" \
+		${MTREE} -c -p "${dest}" -k all \
+		-R "${skipkeys},set.${setname}" \
 		-N "${etcdir}" -O "${SDIR}/flist.${setname}" \
 		| ${MTREE} -C -k all -N "${etcdir}" \
 		> "${setlistdir}/set.${setname}"