CVS commit: src/sys/dev/qbus

2024-03-24 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Mar 25 05:37:45 UTC 2024

Modified Files:
src/sys/dev/qbus: if_qe.c

Log Message:
vax/qe(4): supply an ipf->if_init() so that if_init() doesn't crash.

convert the existing qeinit() to one compatible with if_init.

should fix PR#58068.


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 src/sys/dev/qbus/if_qe.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/qbus/if_qe.c
diff -u src/sys/dev/qbus/if_qe.c:1.81 src/sys/dev/qbus/if_qe.c:1.82
--- src/sys/dev/qbus/if_qe.c:1.81	Tue May 28 07:41:49 2019
+++ src/sys/dev/qbus/if_qe.c	Mon Mar 25 05:37:45 2024
@@ -1,4 +1,4 @@
-/*  $NetBSD: if_qe.c,v 1.81 2019/05/28 07:41:49 msaitoh Exp $ */
+/*  $NetBSD: if_qe.c,v 1.82 2024/03/25 05:37:45 mrg Exp $ */
 /*
  * Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved.
  *
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_qe.c,v 1.81 2019/05/28 07:41:49 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_qe.c,v 1.82 2024/03/25 05:37:45 mrg Exp $");
 
 #include "opt_inet.h"
 
@@ -97,7 +97,7 @@ struct	qe_softc {
 
 static	int	qematch(device_t, cfdata_t, void *);
 static	void	qeattach(device_t, device_t, void *);
-static	void	qeinit(struct qe_softc *);
+static	int	qeinit(struct ifnet *);
 static	void	qestart(struct ifnet *);
 static	void	qeintr(void *);
 static	int	qeioctl(struct ifnet *, u_long, void *);
@@ -341,6 +341,7 @@ qeattach(device_t parent, device_t self,
 	ifp->if_softc = sc;
 	ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
 	ifp->if_start = qestart;
+	ifp->if_init = qeinit;
 	ifp->if_ioctl = qeioctl;
 	ifp->if_watchdog = qetimeout;
 	IFQ_SET_READY(>if_snd);
@@ -381,10 +382,10 @@ qeattach(device_t parent, device_t self,
 /*
  * Initialization of interface.
  */
-void
-qeinit(struct qe_softc *sc)
+int
+qeinit(struct ifnet *ifp)
 {
-	struct ifnet *ifp = (struct ifnet *)>sc_if;
+	struct qe_softc *sc = ifp->if_softc;
 	struct qe_cdata *qc = sc->sc_qedata;
 	int i;
 
@@ -411,7 +412,6 @@ qeinit(struct qe_softc *sc)
 		qc->qc_xmit[i].qe_status1 = qc->qc_xmit[i].qe_flag = QE_NOTYET;
 	}
 
-
 	/*
 	 * Init receive descriptors.
 	 */
@@ -436,6 +436,7 @@ qeinit(struct qe_softc *sc)
 	 */
 	qe_setup(sc);
 
+	return 0;
 }
 
 /*
@@ -651,7 +652,7 @@ qeioctl(struct ifnet *ifp, u_long cmd, v
 		switch (ifa->ifa_addr->sa_family) {
 #ifdef INET
 		case AF_INET:
-			qeinit(sc);
+			qeinit(ifp);
 			arp_ifinit(ifp, ifa);
 			break;
 #endif
@@ -677,7 +678,7 @@ qeioctl(struct ifnet *ifp, u_long cmd, v
 			 * If interface it marked up and it is stopped, then
 			 * start it.
 			 */
-			qeinit(sc);
+			qeinit(ifp);
 			break;
 		case IFF_UP | IFF_RUNNING:
 			/*
@@ -868,5 +869,5 @@ qetimeout(struct ifnet *ifp)
 	 * Do a reset of interface, to get it going again.
 	 * Will it work by just restart the transmit logic?
 	 */
-	qeinit(sc);
+	qeinit(ifp);
 }



CVS commit: src/sys/dev/qbus

2024-03-24 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Mar 25 05:37:45 UTC 2024

Modified Files:
src/sys/dev/qbus: if_qe.c

Log Message:
vax/qe(4): supply an ipf->if_init() so that if_init() doesn't crash.

convert the existing qeinit() to one compatible with if_init.

should fix PR#58068.


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 src/sys/dev/qbus/if_qe.c

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



CVS commit: src/external/gpl2/groff/dist/tmac

2024-03-24 Thread Valery Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Mar 24 23:39:21 UTC 2024

Modified Files:
src/external/gpl2/groff/dist/tmac: doc.tmac

Log Message:
doc.tmac: .Lk - handle punctuation without anchor-text correctly

doc-get-arg-type expects that doc-width is set beforehand, so call
doc-get-width to make sure doc-get-arg-type detects the trailing
punctuation correctly.

PR bin/58074


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl2/groff/dist/tmac/doc.tmac

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

Modified files:

Index: src/external/gpl2/groff/dist/tmac/doc.tmac
diff -u src/external/gpl2/groff/dist/tmac/doc.tmac:1.2 src/external/gpl2/groff/dist/tmac/doc.tmac:1.3
--- src/external/gpl2/groff/dist/tmac/doc.tmac:1.2	Wed Jan 13 19:01:59 2016
+++ src/external/gpl2/groff/dist/tmac/doc.tmac	Sun Mar 24 23:39:21 2024
@@ -6416,6 +6416,7 @@
 .  ds doc-str-Lk Sy \$@
 .
 .  ie (\n[.$] > 1) \{\
+.doc-get-width \$2
 .doc-get-arg-type \$2
 .ie (\n[doc-arg-type] < 3) \{\
 .  Em \)\$2:



CVS commit: src/external/gpl2/groff/dist/tmac

2024-03-24 Thread Valery Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Mar 24 23:39:21 UTC 2024

Modified Files:
src/external/gpl2/groff/dist/tmac: doc.tmac

Log Message:
doc.tmac: .Lk - handle punctuation without anchor-text correctly

doc-get-arg-type expects that doc-width is set beforehand, so call
doc-get-width to make sure doc-get-arg-type detects the trailing
punctuation correctly.

PR bin/58074


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl2/groff/dist/tmac/doc.tmac

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



Re: CVS commit: src/games/larn

2024-03-24 Thread Valery Ushakov
On Sun, Mar 24, 2024 at 21:21:39 +0200, Andrius V wrote:

> Can you a bit clarify the meaning of "8 space tabs"

This is what VT set up screen called "Set 8 Column Tabs", i.e. "set
one tab every eight columns, starting at column 9" which was the
default setting.

https://vt100.net/docs/tp83/chapter4.html#T4-11
https://vt100.net/docs/vt420-uu/chapter5.html#S5.11

Emacs calls this tab-width.  vi, I believe calls it tabstop.  Both
default to 8.

I know this is a subject that people are often religious about, but I
think it's reasonable to require that when a file is cat(1) to the
terminal (say, vt220) or an emulator (say, xterm) in it's default
state, it displays as intended.


> since file is not exactly following any completely defined pattern.

I haven't looked at the rest of the file too closely, but the indented
multi-line comments I referred to are definitely meant to be viewed
with 8 space tabs and in general the 8 space tabs are the default (see
above).  If some parts of that file deviate from that they should be
fixed, but I was referring specifically to your change that looks like
this with the default 8 column tabs (untabified to ensure that it's
displayed the same regardless of the viewer's tab settings):

 * setupvt100() Subroutine to set up terminal in correct mode for game
 * clearvt100() Subroutine to clean up terminal when the game is over
 * ttgetch()Routine to read in one character from the terminal
 * scbr()   Function to set cbreak -echo for the terminal
 * sncbr()  Function to set -cbreak echo for the terminal
 * newgame()Subroutine to save the initial time and seed rnd()


That text looks aligned with 4 column tabs (again, the text below is
untabified):

 * setupvt100() Subroutine to set up terminal in correct mode for game
 * clearvt100() Subroutine to clean up terminal when the game is over
 * ttgetch()Routine to read in one character from the terminal
 * scbr()   Function to set cbreak -echo for the terminal
 * sncbr()  Function to set -cbreak echo for the terminal
 * newgame()Subroutine to save the initial time and seed rnd()

If you would like to go and fix the rest of the file, that would be
nice, but my request was to at least not introduce more non-standart
tabs.

Thanks!

-uwe


CVS commit: src/share/man/man4

2024-03-24 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Mar 24 21:27:48 UTC 2024

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

Log Message:
minor spelling fix - 'with' and 'into'


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man4/lagg.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/lagg.4
diff -u src/share/man/man4/lagg.4:1.5 src/share/man/man4/lagg.4:1.6
--- src/share/man/man4/lagg.4:1.5	Wed Oct 18 07:59:06 2023
+++ src/share/man/man4/lagg.4	Sun Mar 24 21:27:48 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: lagg.4,v 1.5 2023/10/18 07:59:06 yamaguchi Exp $
+.\"	$NetBSD: lagg.4,v 1.6 2024/03/24 21:27:48 jdolecek Exp $
 .\"
 .\" Copyright (c) 2005, 2006 Reyk Floeter 
 .\"
@@ -119,7 +119,7 @@ available, the VLAN tag, and the IP sour
 .It Ic lacp
 Supports the IEEE 802.1AX (formerly 802.3ad) Link Aggregation Control Protocol
 (LACP) and the Marker Protocol.
-LACP will negotiate a set of aggregable links wit the peer in to a Link
+LACP will negotiate a set of aggregable links with the peer into a Link
 Aggregated Group.
 The LAG is composed of ports of the different speed, set to full-duplex operation,
 if



CVS commit: src/share/man/man4

2024-03-24 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Mar 24 21:27:48 UTC 2024

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

Log Message:
minor spelling fix - 'with' and 'into'


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man4/lagg.4

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



CVS commit: [netbsd-10] src/doc

2024-03-24 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Mar 24 20:27:33 UTC 2024

Modified Files:
src/doc [netbsd-10]: CHANGES-10.0

Log Message:
ticket 643-645


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.212 -r1.1.2.213 src/doc/CHANGES-10.0

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

Modified files:

Index: src/doc/CHANGES-10.0
diff -u src/doc/CHANGES-10.0:1.1.2.212 src/doc/CHANGES-10.0:1.1.2.213
--- src/doc/CHANGES-10.0:1.1.2.212	Tue Mar 12 10:19:02 2024
+++ src/doc/CHANGES-10.0	Sun Mar 24 20:27:33 2024
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-10.0,v 1.1.2.212 2024/03/12 10:19:02 martin Exp $
+# $NetBSD: CHANGES-10.0,v 1.1.2.213 2024/03/24 20:27:33 bouyer Exp $
 
 A complete list of changes from the initial NetBSD 10.0 branch on 2022-12-16
 until the 10.0 release:
@@ -21446,3 +21446,70 @@ sys/sys/param.h (manually edited)
 
 	Welcome to 10.0_RC6
 
+distrib/notes/acorn32/contents			1.8
+distrib/notes/alpha/contents			1.26
+distrib/notes/amd64/contents			1.14
+distrib/notes/amiga/contents			1.26
+distrib/notes/arc/contents			1.8
+distrib/notes/atari/contents			1.26
+distrib/notes/bebox/contents			1.8
+distrib/notes/cats/contents			1.8
+distrib/notes/common/contents			1.187
+distrib/notes/common/main			1.573, 1.574
+distrib/notes/common/sysinst			1.113
+distrib/notes/emips/contents			1.8
+distrib/notes/evbarm/contents			1.16
+distrib/notes/evbppc/contents			1.10
+distrib/notes/ews4800mips/contents		1.8
+distrib/notes/hp300/contents			1.23
+distrib/notes/hpcarm/contents			1.9
+distrib/notes/hpcmips/contents			1.16
+distrib/notes/hpcsh/contents			1.9
+distrib/notes/hppa/contents			1.8
+distrib/notes/i386/contents			1.36
+distrib/notes/landisk/contents			1.9
+distrib/notes/mac68k/contents			1.26
+distrib/notes/macppc/contents			1.20
+distrib/notes/mmeye/contents			1.9
+distrib/notes/mvme68k/contents			1.19
+distrib/notes/news68k/contents			1.12
+distrib/notes/newsmips/contents			1.8
+distrib/notes/next68k/contents			1.13
+distrib/notes/ofppc/contents			1.9
+distrib/notes/pmax/contents			1.23
+distrib/notes/prep/contents			1.8
+distrib/notes/rs6000/contents			1.8
+distrib/notes/sandpoint/contents		1.8
+distrib/notes/sgimips/contents			1.8
+distrib/notes/shark/contents			1.8
+distrib/notes/sparc/contents			1.30
+distrib/notes/sparc64/contents			1.13
+distrib/notes/sun2/contents			1.8
+distrib/notes/sun3/contents			1.22
+distrib/notes/vax/contents			1.17
+distrib/notes/vax/xfer1.16
+distrib/notes/x68k/contents			1.23
+
+	Various style fixes (and some of VAX related errors and copy),
+	from Mouse on tech-install.
+
+
+	Use single-arg "Lk" macro for a link so we can get reasonable results
+	both in .more and .html output (still a bit odd, but better than
+	before IMHO).
+	[martin, ticket #643]
+
+usr.sbin/sysinst/configmenu.c			1.19
+
+	PR 58062: fix a bug I introduced with the https support: update
+	the pkgsrc/binary pkgs download URL not only when https transport
+	is selected.
+	[martin, ticket #644]
+
+usr.sbin/sysinst/gpt.c1.32
+
+	PR 58061: fix bug in the GPT backend: when inserting a partition
+	(i.e. not adding it at the end) a bogus ID was returned for the new
+	partition.
+	[martin, ticket #645]
+



CVS commit: [netbsd-10] src/doc

2024-03-24 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Mar 24 20:27:33 UTC 2024

Modified Files:
src/doc [netbsd-10]: CHANGES-10.0

Log Message:
ticket 643-645


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.212 -r1.1.2.213 src/doc/CHANGES-10.0

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



CVS commit: [netbsd-10] src/usr.sbin/sysinst

2024-03-24 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Mar 24 20:27:04 UTC 2024

Modified Files:
src/usr.sbin/sysinst [netbsd-10]: gpt.c

Log Message:
Pull up following revision(s) (requested by martin in ticket #645):
usr.sbin/sysinst/gpt.c: revision 1.32
PR 58061: fix bug in the GPT backend: when inserting a partition
(i.e. not adding it at the end) a bogus ID was returned for the new
partition.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.30.2.1 src/usr.sbin/sysinst/gpt.c

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

Modified files:

Index: src/usr.sbin/sysinst/gpt.c
diff -u src/usr.sbin/sysinst/gpt.c:1.30 src/usr.sbin/sysinst/gpt.c:1.30.2.1
--- src/usr.sbin/sysinst/gpt.c:1.30	Thu Dec 15 14:54:27 2022
+++ src/usr.sbin/sysinst/gpt.c	Sun Mar 24 20:27:04 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: gpt.c,v 1.30 2022/12/15 14:54:27 martin Exp $	*/
+/*	$NetBSD: gpt.c,v 1.30.2.1 2024/03/24 20:27:04 bouyer Exp $	*/
 
 /*
  * Copyright 2018 The NetBSD Foundation, Inc.
@@ -569,12 +569,14 @@ gpt_get_part_attr_str(const struct disk_
 static bool
 gpt_insert_part_into_list(struct gpt_disk_partitions *parts,
 struct gpt_part_entry **list,
-struct gpt_part_entry *entry, const char **err_msg)
+struct gpt_part_entry *entry, const char **err_msg, part_id *new_id)
 {
 	struct gpt_part_entry *p, *last;
+	part_id pno;
 
 	/* find the first entry past the new one (if any) */
-	for (last = NULL, p = *list; p != NULL; last = p, p = p->gp_next) {
+	for (pno = 0, last = NULL, p = *list; p != NULL;
+	last = p, p = p->gp_next, pno++) {
 		if (p->gp_start > entry->gp_start)
 			break;
 	}
@@ -609,7 +611,8 @@ gpt_insert_part_into_list(struct gpt_dis
 	}
 	if (*list == NULL)
 		*list = entry;
-
+	if (new_id != NULL)
+		*new_id = pno;
 	return true;
 }
 
@@ -651,7 +654,7 @@ gpt_set_part_info(struct disk_partitions
 			*n = *p;
 			p->gp_flags &= ~GPEF_ON_DISK;
 			if (!gpt_insert_part_into_list(parts, >obsolete,
-			n, err_msg))
+			n, err_msg, NULL))
 return false;
 		} else if (info->size != p->gp_size) {
 			p->gp_flags |= GPEF_RESIZED;
@@ -1076,6 +1079,7 @@ gpt_add_part(struct disk_partitions *arg
 	struct disk_part_free_space space;
 	struct disk_part_info data = *info;
 	struct gpt_part_entry *p, *n;
+	part_id pno;
 	bool ok;
 
 	if (err_msg != NULL)
@@ -1107,7 +,8 @@ gpt_add_part(struct disk_partitions *arg
 		return NO_PART;
 	}
 	p->gp_flags |= GPEF_MODIFIED;
-	ok = gpt_insert_part_into_list(parts, >partitions, p, err_msg);
+	ok = gpt_insert_part_into_list(parts, >partitions, p,
+	err_msg, );
 	if (ok) {
 		if (info->flags & PTI_INSTALL_TARGET) {
 			/* update target mark - we can only have one */
@@ -1119,7 +1124,7 @@ gpt_add_part(struct disk_partitions *arg
 
 		parts->dp.num_part++;
 		parts->dp.free_space -= p->gp_size;
-		return parts->dp.num_part-1;
+		return pno;
 	} else {
 		free(p);
 		return NO_PART;
@@ -1157,7 +1162,7 @@ gpt_delete_partition(struct disk_partiti
 	res = true;
 	if (p->gp_flags & GPEF_ON_DISK) {
 		if (!gpt_insert_part_into_list(parts, >obsolete,
-		p, err_msg))
+		p, err_msg, NULL))
 			res = false;
 	} else {
 		free(p);



CVS commit: [netbsd-10] src/usr.sbin/sysinst

2024-03-24 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Mar 24 20:27:04 UTC 2024

Modified Files:
src/usr.sbin/sysinst [netbsd-10]: gpt.c

Log Message:
Pull up following revision(s) (requested by martin in ticket #645):
usr.sbin/sysinst/gpt.c: revision 1.32
PR 58061: fix bug in the GPT backend: when inserting a partition
(i.e. not adding it at the end) a bogus ID was returned for the new
partition.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.30.2.1 src/usr.sbin/sysinst/gpt.c

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



CVS commit: [netbsd-10] src/usr.sbin/sysinst

2024-03-24 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Mar 24 20:26:14 UTC 2024

Modified Files:
src/usr.sbin/sysinst [netbsd-10]: configmenu.c

Log Message:
Pull up following revision(s) (requested by martin in ticket #644):
usr.sbin/sysinst/configmenu.c: revision 1.19
PR 58062: fix a bug I introduced with the https support: update
the pkgsrc/binary pkgs download URL not only when https transport
is selected.


To generate a diff of this commit:
cvs rdiff -u -r1.17.2.1 -r1.17.2.2 src/usr.sbin/sysinst/configmenu.c

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

Modified files:

Index: src/usr.sbin/sysinst/configmenu.c
diff -u src/usr.sbin/sysinst/configmenu.c:1.17.2.1 src/usr.sbin/sysinst/configmenu.c:1.17.2.2
--- src/usr.sbin/sysinst/configmenu.c:1.17.2.1	Tue Dec 26 05:54:15 2023
+++ src/usr.sbin/sysinst/configmenu.c	Sun Mar 24 20:26:14 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: configmenu.c,v 1.17.2.1 2023/12/26 05:54:15 snj Exp $ */
+/* $NetBSD: configmenu.c,v 1.17.2.2 2024/03/24 20:26:14 bouyer Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -340,12 +340,11 @@ set_binpkg(struct menudesc *menu, void *
 		 * Make sure we have the TLS certs in a usable state
 		 * (if target is a new installation)
 		 */
-		if (pkg.xfer == XFER_HTTPS) {
+		if (pkg.xfer == XFER_HTTPS)
 			run_program(RUN_CHROOT | RUN_SILENT,
 			"/bin/sh /etc/rc.d/certctl_init onestart");
-			make_url(pkgpath, , pkg_dir);
-		}
 
+		make_url(pkgpath, , pkg_dir);
 		if (run_program(RUN_DISPLAY | RUN_PROGRESS | RUN_CHROOT,
 			"pkg_add %s/pkgin", pkgpath) == 0) {
 			allok = 1;



CVS commit: [netbsd-10] src/usr.sbin/sysinst

2024-03-24 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Mar 24 20:26:14 UTC 2024

Modified Files:
src/usr.sbin/sysinst [netbsd-10]: configmenu.c

Log Message:
Pull up following revision(s) (requested by martin in ticket #644):
usr.sbin/sysinst/configmenu.c: revision 1.19
PR 58062: fix a bug I introduced with the https support: update
the pkgsrc/binary pkgs download URL not only when https transport
is selected.


To generate a diff of this commit:
cvs rdiff -u -r1.17.2.1 -r1.17.2.2 src/usr.sbin/sysinst/configmenu.c

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



CVS commit: [netbsd-10] src/distrib/notes

2024-03-24 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Mar 24 20:24:29 UTC 2024

Modified Files:
src/distrib/notes/acorn32 [netbsd-10]: contents
src/distrib/notes/alpha [netbsd-10]: contents
src/distrib/notes/amd64 [netbsd-10]: contents
src/distrib/notes/amiga [netbsd-10]: contents
src/distrib/notes/arc [netbsd-10]: contents
src/distrib/notes/atari [netbsd-10]: contents
src/distrib/notes/bebox [netbsd-10]: contents
src/distrib/notes/cats [netbsd-10]: contents
src/distrib/notes/common [netbsd-10]: contents main sysinst
src/distrib/notes/emips [netbsd-10]: contents
src/distrib/notes/evbarm [netbsd-10]: contents
src/distrib/notes/evbppc [netbsd-10]: contents
src/distrib/notes/ews4800mips [netbsd-10]: contents
src/distrib/notes/hp300 [netbsd-10]: contents
src/distrib/notes/hpcarm [netbsd-10]: contents
src/distrib/notes/hpcmips [netbsd-10]: contents
src/distrib/notes/hpcsh [netbsd-10]: contents
src/distrib/notes/hppa [netbsd-10]: contents
src/distrib/notes/i386 [netbsd-10]: contents
src/distrib/notes/landisk [netbsd-10]: contents
src/distrib/notes/mac68k [netbsd-10]: contents
src/distrib/notes/macppc [netbsd-10]: contents
src/distrib/notes/mmeye [netbsd-10]: contents
src/distrib/notes/mvme68k [netbsd-10]: contents
src/distrib/notes/news68k [netbsd-10]: contents
src/distrib/notes/newsmips [netbsd-10]: contents
src/distrib/notes/next68k [netbsd-10]: contents
src/distrib/notes/ofppc [netbsd-10]: contents
src/distrib/notes/pmax [netbsd-10]: contents
src/distrib/notes/prep [netbsd-10]: contents
src/distrib/notes/rs6000 [netbsd-10]: contents
src/distrib/notes/sandpoint [netbsd-10]: contents
src/distrib/notes/sgimips [netbsd-10]: contents
src/distrib/notes/shark [netbsd-10]: contents
src/distrib/notes/sparc [netbsd-10]: contents
src/distrib/notes/sparc64 [netbsd-10]: contents
src/distrib/notes/sun2 [netbsd-10]: contents
src/distrib/notes/sun3 [netbsd-10]: contents
src/distrib/notes/vax [netbsd-10]: contents xfer
src/distrib/notes/x68k [netbsd-10]: contents

Log Message:
Pull up following revision(s) (requested by martin in ticket #643):
distrib/notes/prep/contents: revision 1.8
distrib/notes/hpcsh/contents: revision 1.9
distrib/notes/ews4800mips/contents: revision 1.8
distrib/notes/evbarm/contents: revision 1.16
distrib/notes/newsmips/contents: revision 1.8
distrib/notes/landisk/contents: revision 1.9
distrib/notes/arc/contents: revision 1.8
distrib/notes/sun2/contents: revision 1.8
distrib/notes/vax/contents: revision 1.17
distrib/notes/mac68k/contents: revision 1.26
distrib/notes/cats/contents: revision 1.8
distrib/notes/mvme68k/contents: revision 1.19
distrib/notes/rs6000/contents: revision 1.8
distrib/notes/i386/contents: revision 1.36
distrib/notes/alpha/contents: revision 1.26
distrib/notes/hpcmips/contents: revision 1.16
distrib/notes/sparc64/contents: revision 1.13
distrib/notes/hpcarm/contents: revision 1.9
distrib/notes/emips/contents: revision 1.8
distrib/notes/sun3/contents: revision 1.22
distrib/notes/common/main: revision 1.573
distrib/notes/x68k/contents: revision 1.23
distrib/notes/sgimips/contents: revision 1.8
distrib/notes/sandpoint/contents: revision 1.8
distrib/notes/mmeye/contents: revision 1.9
distrib/notes/common/main: revision 1.574
distrib/notes/pmax/contents: revision 1.23
distrib/notes/shark/contents: revision 1.8
distrib/notes/sparc/contents: revision 1.30
distrib/notes/vax/xfer: revision 1.16
distrib/notes/news68k/contents: revision 1.12
distrib/notes/common/sysinst: revision 1.113
distrib/notes/hp300/contents: revision 1.23
distrib/notes/next68k/contents: revision 1.13
distrib/notes/amiga/contents: revision 1.26
distrib/notes/hppa/contents: revision 1.8
distrib/notes/acorn32/contents: revision 1.8
distrib/notes/ofppc/contents: revision 1.9
distrib/notes/common/contents: revision 1.187
distrib/notes/macppc/contents: revision 1.20
distrib/notes/evbppc/contents: revision 1.10
distrib/notes/atari/contents: revision 1.26
distrib/notes/amd64/contents: revision 1.14
distrib/notes/bebox/contents: revision 1.8
Various style fixes (and some of VAX related errors and copy),
from Mouse on tech-install.
Use single-arg "Lk" macro for a link so we can get reasonable results
both in .more and .html output (still a bit odd, but better than before IMHO).


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.7.6.1 

CVS commit: [netbsd-10] src/distrib/notes

2024-03-24 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Sun Mar 24 20:24:29 UTC 2024

Modified Files:
src/distrib/notes/acorn32 [netbsd-10]: contents
src/distrib/notes/alpha [netbsd-10]: contents
src/distrib/notes/amd64 [netbsd-10]: contents
src/distrib/notes/amiga [netbsd-10]: contents
src/distrib/notes/arc [netbsd-10]: contents
src/distrib/notes/atari [netbsd-10]: contents
src/distrib/notes/bebox [netbsd-10]: contents
src/distrib/notes/cats [netbsd-10]: contents
src/distrib/notes/common [netbsd-10]: contents main sysinst
src/distrib/notes/emips [netbsd-10]: contents
src/distrib/notes/evbarm [netbsd-10]: contents
src/distrib/notes/evbppc [netbsd-10]: contents
src/distrib/notes/ews4800mips [netbsd-10]: contents
src/distrib/notes/hp300 [netbsd-10]: contents
src/distrib/notes/hpcarm [netbsd-10]: contents
src/distrib/notes/hpcmips [netbsd-10]: contents
src/distrib/notes/hpcsh [netbsd-10]: contents
src/distrib/notes/hppa [netbsd-10]: contents
src/distrib/notes/i386 [netbsd-10]: contents
src/distrib/notes/landisk [netbsd-10]: contents
src/distrib/notes/mac68k [netbsd-10]: contents
src/distrib/notes/macppc [netbsd-10]: contents
src/distrib/notes/mmeye [netbsd-10]: contents
src/distrib/notes/mvme68k [netbsd-10]: contents
src/distrib/notes/news68k [netbsd-10]: contents
src/distrib/notes/newsmips [netbsd-10]: contents
src/distrib/notes/next68k [netbsd-10]: contents
src/distrib/notes/ofppc [netbsd-10]: contents
src/distrib/notes/pmax [netbsd-10]: contents
src/distrib/notes/prep [netbsd-10]: contents
src/distrib/notes/rs6000 [netbsd-10]: contents
src/distrib/notes/sandpoint [netbsd-10]: contents
src/distrib/notes/sgimips [netbsd-10]: contents
src/distrib/notes/shark [netbsd-10]: contents
src/distrib/notes/sparc [netbsd-10]: contents
src/distrib/notes/sparc64 [netbsd-10]: contents
src/distrib/notes/sun2 [netbsd-10]: contents
src/distrib/notes/sun3 [netbsd-10]: contents
src/distrib/notes/vax [netbsd-10]: contents xfer
src/distrib/notes/x68k [netbsd-10]: contents

Log Message:
Pull up following revision(s) (requested by martin in ticket #643):
distrib/notes/prep/contents: revision 1.8
distrib/notes/hpcsh/contents: revision 1.9
distrib/notes/ews4800mips/contents: revision 1.8
distrib/notes/evbarm/contents: revision 1.16
distrib/notes/newsmips/contents: revision 1.8
distrib/notes/landisk/contents: revision 1.9
distrib/notes/arc/contents: revision 1.8
distrib/notes/sun2/contents: revision 1.8
distrib/notes/vax/contents: revision 1.17
distrib/notes/mac68k/contents: revision 1.26
distrib/notes/cats/contents: revision 1.8
distrib/notes/mvme68k/contents: revision 1.19
distrib/notes/rs6000/contents: revision 1.8
distrib/notes/i386/contents: revision 1.36
distrib/notes/alpha/contents: revision 1.26
distrib/notes/hpcmips/contents: revision 1.16
distrib/notes/sparc64/contents: revision 1.13
distrib/notes/hpcarm/contents: revision 1.9
distrib/notes/emips/contents: revision 1.8
distrib/notes/sun3/contents: revision 1.22
distrib/notes/common/main: revision 1.573
distrib/notes/x68k/contents: revision 1.23
distrib/notes/sgimips/contents: revision 1.8
distrib/notes/sandpoint/contents: revision 1.8
distrib/notes/mmeye/contents: revision 1.9
distrib/notes/common/main: revision 1.574
distrib/notes/pmax/contents: revision 1.23
distrib/notes/shark/contents: revision 1.8
distrib/notes/sparc/contents: revision 1.30
distrib/notes/vax/xfer: revision 1.16
distrib/notes/news68k/contents: revision 1.12
distrib/notes/common/sysinst: revision 1.113
distrib/notes/hp300/contents: revision 1.23
distrib/notes/next68k/contents: revision 1.13
distrib/notes/amiga/contents: revision 1.26
distrib/notes/hppa/contents: revision 1.8
distrib/notes/acorn32/contents: revision 1.8
distrib/notes/ofppc/contents: revision 1.9
distrib/notes/common/contents: revision 1.187
distrib/notes/macppc/contents: revision 1.20
distrib/notes/evbppc/contents: revision 1.10
distrib/notes/atari/contents: revision 1.26
distrib/notes/amd64/contents: revision 1.14
distrib/notes/bebox/contents: revision 1.8
Various style fixes (and some of VAX related errors and copy),
from Mouse on tech-install.
Use single-arg "Lk" macro for a link so we can get reasonable results
both in .more and .html output (still a bit odd, but better than before IMHO).


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.7.6.1 

Re: CVS commit: src/games/larn

2024-03-24 Thread Andrius V
Hi,

Can you a bit clarify the meaning of "8 space tabs", since file is not
exactly following any completely defined pattern. Should I use tabs
before multiline comment text (*^I^I) and align
text between routine name and description, also remove all unnecessary
whitespace characters? Attached reformatted file, can you please
review, if formatting would match the expectations?

On Sun, Mar 24, 2024 at 2:33 AM Valery Ushakov  wrote:
>
> On Sat, Mar 23, 2024 at 21:10:45 +, Andrius Varanavicius wrote:
>
> > Modified Files:
> >   src/games/larn: io.c
> >
> > Log Message:
> > Attempt to fix descriptions of the routines in the initial comment block.
>
> Please, can you fix this to use 8 space tabs as the rest of the file
> does, as can be verified by multiline comments formatted as
>
> /* ...
>  * ... */
>
> -uwe
/*	$NetBSD: io.c,v 1.29 2021/05/02 12:50:45 rillig Exp $	*/

/*
 *	io.c			Larn is copyrighted 1986 by Noah Morgan.
 *
 *	Below are the functions in this file:
 *
 *	setupvt100()		Subroutine to set up terminal in correct mode for game
 *	clearvt100()		Subroutine to clean up terminal when the game is over
 *	ttgetch()		Routine to read in one character from the terminal
 *	scbr()			Function to set cbreak -echo for the terminal
 *	sncbr()			Function to set -cbreak echo for the terminal
 *	newgame()		Subroutine to save the initial time and seed rnd()
 *
 *	FILE OUTPUT ROUTINES
 *
 *	lprintf(format,args . . .)	printf to the output buffer 
 *	lprint(integer)			send binary integer to output buffer
 *	lwrite(buf,len)			write a buffer to the output buffer
 *	lprcat(str)			append a string to the output buffer
 *
 *	FILE OUTPUT MACROS (in header.h)
 *
 *	lprc(character)		put the character into the output buffer
 *
 *	FILE INPUT ROUTINES
 *
 *	long lgetc()		read one character from input buffer
 *	long larn_lrint()	read one integer from input buffer
 *	lrfill(address,number)	put input bytes into a buffer char
 *	*lgetw()		get a whitespace ended word from
 *	input char *lgetl()	get a \n or EOF ended line from input
 * 
 *	FILE OPEN / CLOSE ROUTINES
 *
 *	lcreat(filename)	create a new file for write
 *	lopen(filename)		open a file for read
 *	lappend(filename)	open for append to an existing file
 *	lrclose()		close the input file
 *	lwclose()		close output file 
 *	lflush()		flush the output buffer
 *
 *	Other Routines
 *
 *	cursor(x,y)		position cursor at [x,y]
 *	cursors()		position cursor at [1,24] (saves memory)
 *	cl_line(x,y)		clear line at [1,y] and leave cursor at [x,y]
 *	cl_up(x,y)		clear screen from [x,1] to current line
 *	cl_dn(x,y)		clear screen from [1,y] to end of display
 *	standout(str)		print the string in standout mode
 *	set_score_output()	called when output should be literally printed
 *	ttputch(ch)		print one character in decoded output buffer
 *	flush_buf()		flush buffer with decoded output
 *	init_term()		terminal initialization -- setup termcap info
 *	char *tmcapcnv(sd,ss)	routine to convert VT100 \33's to termcap format
 *	beep()			routine to emit a beep if enabled
 *(see no-beep in .larnopts)
 *
 *	Note: ** entries are available only in termcap mode.
 */
#include 
#ifndef lint
__RCSID("$NetBSD: io.c,v 1.29 2021/05/02 12:50:45 rillig Exp $");
#endif /* not lint */

#include "header.h"
#include "extern.h"
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

#ifdef TERMIO
#include 
#define sgttyb termio
#define stty(_a,_b) ioctl(_a,TCSETA,_b)
#define gtty(_a,_b) ioctl(_a,TCGETA,_b)
#endif
#ifdef TERMIOS
#include 
#define sgttyb termios
#define stty(_a,_b) tcsetattr(_a,TCSADRAIN,_b)
#define gtty(_a,_b) tcgetattr(_a,_b)
#endif

#if defined(TERMIO) || defined(TERMIOS)
static int  rawflg = 0;
static char saveeof, saveeol;
#define doraw(_a) \
	if(!rawflg) { \
		++rawflg; \
		saveeof = _a.c_cc[VMIN]; \
		saveeol = _a.c_cc[VTIME]; \
	} \
	_a.c_cc[VMIN] = 1; \
	_a.c_cc[VTIME] = 1; \
	_a.c_lflag &= ~(ICANON|ECHO|ECHOE|ECHOK|ECHONL)
#define unraw(_a) \
	_a.c_cc[VMIN] = saveeof; \
	_a.c_cc[VTIME] = saveeol; \
	_a.c_lflag |= ICANON|ECHO|ECHOE|ECHOK|ECHONL

#else	/* not TERMIO or TERMIOS */

#ifndef BSD
#define CBREAK RAW		/* V7 has no CBREAK */
#endif

#define doraw(_a) (_a.sg_flags |= CBREAK,_a.sg_flags &= ~ECHO)
#define unraw(_a) (_a.sg_flags &= ~CBREAK,_a.sg_flags |= ECHO)
#include 
#endif	/* not TERMIO or TERMIOS */

#ifndef NOVARARGS	/* if we have varargs */
#include 
#else	/* NOVARARGS */	/* if we don't have varargs */
typedef char   *va_list;
#define va_dcl int va_alist;
#define va_start(plist) plist = (char *) _alist
#define va_end(plist)
#define va_arg(plist,mode) ((mode *)(plist += sizeof(mode)))[-1]
#endif	/* NOVARARGS */

static int ttputch(int ch);
static void flush_buf(void);

#define LINBUFSIZE 128	/* size of the lgetw() and lgetl() buffer */
int io_outfd; /* output file numbers */
int io_infd; /* input file numbers */
static struct sgttyb ttx;/* storage for the tty modes */
static int 

CVS commit: src/usr.sbin/sysinst

2024-03-24 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar 24 17:29:58 UTC 2024

Modified Files:
src/usr.sbin/sysinst: gpt.c

Log Message:
PR 58061: fix bug in the GPT backend: when inserting a partition
(i.e. not adding it at the end) a bogus ID was returned for the new
partition.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/usr.sbin/sysinst/gpt.c

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

Modified files:

Index: src/usr.sbin/sysinst/gpt.c
diff -u src/usr.sbin/sysinst/gpt.c:1.31 src/usr.sbin/sysinst/gpt.c:1.32
--- src/usr.sbin/sysinst/gpt.c:1.31	Thu Feb  8 20:51:24 2024
+++ src/usr.sbin/sysinst/gpt.c	Sun Mar 24 17:29:58 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: gpt.c,v 1.31 2024/02/08 20:51:24 andvar Exp $	*/
+/*	$NetBSD: gpt.c,v 1.32 2024/03/24 17:29:58 martin Exp $	*/
 
 /*
  * Copyright 2018 The NetBSD Foundation, Inc.
@@ -569,12 +569,14 @@ gpt_get_part_attr_str(const struct disk_
 static bool
 gpt_insert_part_into_list(struct gpt_disk_partitions *parts,
 struct gpt_part_entry **list,
-struct gpt_part_entry *entry, const char **err_msg)
+struct gpt_part_entry *entry, const char **err_msg, part_id *new_id)
 {
 	struct gpt_part_entry *p, *last;
+	part_id pno;
 
 	/* find the first entry past the new one (if any) */
-	for (last = NULL, p = *list; p != NULL; last = p, p = p->gp_next) {
+	for (pno = 0, last = NULL, p = *list; p != NULL;
+	last = p, p = p->gp_next, pno++) {
 		if (p->gp_start > entry->gp_start)
 			break;
 	}
@@ -609,7 +611,8 @@ gpt_insert_part_into_list(struct gpt_dis
 	}
 	if (*list == NULL)
 		*list = entry;
-
+	if (new_id != NULL)
+		*new_id = pno;
 	return true;
 }
 
@@ -651,7 +654,7 @@ gpt_set_part_info(struct disk_partitions
 			*n = *p;
 			p->gp_flags &= ~GPEF_ON_DISK;
 			if (!gpt_insert_part_into_list(parts, >obsolete,
-			n, err_msg))
+			n, err_msg, NULL))
 return false;
 		} else if (info->size != p->gp_size) {
 			p->gp_flags |= GPEF_RESIZED;
@@ -1076,6 +1079,7 @@ gpt_add_part(struct disk_partitions *arg
 	struct disk_part_free_space space;
 	struct disk_part_info data = *info;
 	struct gpt_part_entry *p, *n;
+	part_id pno;
 	bool ok;
 
 	if (err_msg != NULL)
@@ -1107,7 +,8 @@ gpt_add_part(struct disk_partitions *arg
 		return NO_PART;
 	}
 	p->gp_flags |= GPEF_MODIFIED;
-	ok = gpt_insert_part_into_list(parts, >partitions, p, err_msg);
+	ok = gpt_insert_part_into_list(parts, >partitions, p,
+	err_msg, );
 	if (ok) {
 		if (info->flags & PTI_INSTALL_TARGET) {
 			/* update target mark - we can only have one */
@@ -1119,7 +1124,7 @@ gpt_add_part(struct disk_partitions *arg
 
 		parts->dp.num_part++;
 		parts->dp.free_space -= p->gp_size;
-		return parts->dp.num_part-1;
+		return pno;
 	} else {
 		free(p);
 		return NO_PART;
@@ -1157,7 +1162,7 @@ gpt_delete_partition(struct disk_partiti
 	res = true;
 	if (p->gp_flags & GPEF_ON_DISK) {
 		if (!gpt_insert_part_into_list(parts, >obsolete,
-		p, err_msg))
+		p, err_msg, NULL))
 			res = false;
 	} else {
 		free(p);



CVS commit: src/usr.sbin/sysinst

2024-03-24 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar 24 17:29:58 UTC 2024

Modified Files:
src/usr.sbin/sysinst: gpt.c

Log Message:
PR 58061: fix bug in the GPT backend: when inserting a partition
(i.e. not adding it at the end) a bogus ID was returned for the new
partition.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/usr.sbin/sysinst/gpt.c

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



CVS commit: src/usr.sbin/sysinst

2024-03-24 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar 24 16:06:37 UTC 2024

Modified Files:
src/usr.sbin/sysinst: configmenu.c

Log Message:
PR 58062: fix a bug I introduced with the https support: update
the pkgsrc/binary pkgs download URL not only when https transport
is selected.


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

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

Modified files:

Index: src/usr.sbin/sysinst/configmenu.c
diff -u src/usr.sbin/sysinst/configmenu.c:1.18 src/usr.sbin/sysinst/configmenu.c:1.19
--- src/usr.sbin/sysinst/configmenu.c:1.18	Sun Dec 17 18:46:42 2023
+++ src/usr.sbin/sysinst/configmenu.c	Sun Mar 24 16:06:37 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: configmenu.c,v 1.18 2023/12/17 18:46:42 martin Exp $ */
+/* $NetBSD: configmenu.c,v 1.19 2024/03/24 16:06:37 martin Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -340,12 +340,11 @@ set_binpkg(struct menudesc *menu, void *
 		 * Make sure we have the TLS certs in a usable state
 		 * (if target is a new installation)
 		 */
-		if (pkg.xfer == XFER_HTTPS) {
+		if (pkg.xfer == XFER_HTTPS)
 			run_program(RUN_CHROOT | RUN_SILENT,
 			"/bin/sh /etc/rc.d/certctl_init onestart");
-			make_url(pkgpath, , pkg_dir);
-		}
 
+		make_url(pkgpath, , pkg_dir);
 		if (run_program(RUN_DISPLAY | RUN_PROGRESS | RUN_CHROOT,
 			"pkg_add %s/pkgin", pkgpath) == 0) {
 			allok = 1;



CVS commit: src/usr.sbin/sysinst

2024-03-24 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar 24 16:06:37 UTC 2024

Modified Files:
src/usr.sbin/sysinst: configmenu.c

Log Message:
PR 58062: fix a bug I introduced with the https support: update
the pkgsrc/binary pkgs download URL not only when https transport
is selected.


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

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



CVS commit: src/distrib/notes/common

2024-03-24 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar 24 13:18:03 UTC 2024

Modified Files:
src/distrib/notes/common: main

Log Message:
Use single-arg "Lk" macro for a link so we can get reasonable results
both in .more and .html output (still a bit odd, but better than before IMHO).


To generate a diff of this commit:
cvs rdiff -u -r1.573 -r1.574 src/distrib/notes/common/main

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

Modified files:

Index: src/distrib/notes/common/main
diff -u src/distrib/notes/common/main:1.573 src/distrib/notes/common/main:1.574
--- src/distrib/notes/common/main:1.573	Sun Mar 24 12:53:20 2024
+++ src/distrib/notes/common/main	Sun Mar 24 13:18:02 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: main,v 1.573 2024/03/24 12:53:20 martin Exp $
+.\"	$NetBSD: main,v 1.574 2024/03/24 13:18:02 martin Exp $
 .\"
 .\" Copyright (c) 1999-2012 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -481,9 +481,8 @@ The
 \*V release contains complete binary releases for most of these
 system architectures, with preliminary support for the others included in
 source form.
-For more information please see the
-.Nx
-.Lk https://www.NetBSD.org/ website .
+For more information please visit
+.Lk https://www.NetBSD.org/
 .Pp
 .Nx
 is a completely integrated system.



CVS commit: src/distrib/notes/common

2024-03-24 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar 24 13:18:03 UTC 2024

Modified Files:
src/distrib/notes/common: main

Log Message:
Use single-arg "Lk" macro for a link so we can get reasonable results
both in .more and .html output (still a bit odd, but better than before IMHO).


To generate a diff of this commit:
cvs rdiff -u -r1.573 -r1.574 src/distrib/notes/common/main

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



CVS commit: src/distrib/notes

2024-03-24 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar 24 12:53:24 UTC 2024

Modified Files:
src/distrib/notes/acorn32: contents
src/distrib/notes/alpha: contents
src/distrib/notes/amd64: contents
src/distrib/notes/amiga: contents
src/distrib/notes/arc: contents
src/distrib/notes/atari: contents
src/distrib/notes/bebox: contents
src/distrib/notes/cats: contents
src/distrib/notes/common: contents main sysinst
src/distrib/notes/emips: contents
src/distrib/notes/evbarm: contents
src/distrib/notes/evbppc: contents
src/distrib/notes/ews4800mips: contents
src/distrib/notes/hp300: contents
src/distrib/notes/hpcarm: contents
src/distrib/notes/hpcmips: contents
src/distrib/notes/hpcsh: contents
src/distrib/notes/hppa: contents
src/distrib/notes/i386: contents
src/distrib/notes/landisk: contents
src/distrib/notes/mac68k: contents
src/distrib/notes/macppc: contents
src/distrib/notes/mmeye: contents
src/distrib/notes/mvme68k: contents
src/distrib/notes/news68k: contents
src/distrib/notes/newsmips: contents
src/distrib/notes/next68k: contents
src/distrib/notes/ofppc: contents
src/distrib/notes/pmax: contents
src/distrib/notes/prep: contents
src/distrib/notes/rs6000: contents
src/distrib/notes/sandpoint: contents
src/distrib/notes/sgimips: contents
src/distrib/notes/shark: contents
src/distrib/notes/sparc: contents
src/distrib/notes/sparc64: contents
src/distrib/notes/sun2: contents
src/distrib/notes/sun3: contents
src/distrib/notes/vax: contents xfer
src/distrib/notes/x68k: contents

Log Message:
Various style fixes (and some of VAX related errors and copy),
from Mouse on tech-install.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/acorn32/contents
cvs rdiff -u -r1.25 -r1.26 src/distrib/notes/alpha/contents
cvs rdiff -u -r1.13 -r1.14 src/distrib/notes/amd64/contents
cvs rdiff -u -r1.25 -r1.26 src/distrib/notes/amiga/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/arc/contents
cvs rdiff -u -r1.25 -r1.26 src/distrib/notes/atari/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/bebox/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/cats/contents
cvs rdiff -u -r1.186 -r1.187 src/distrib/notes/common/contents
cvs rdiff -u -r1.572 -r1.573 src/distrib/notes/common/main
cvs rdiff -u -r1.112 -r1.113 src/distrib/notes/common/sysinst
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/emips/contents
cvs rdiff -u -r1.15 -r1.16 src/distrib/notes/evbarm/contents
cvs rdiff -u -r1.9 -r1.10 src/distrib/notes/evbppc/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/ews4800mips/contents
cvs rdiff -u -r1.22 -r1.23 src/distrib/notes/hp300/contents
cvs rdiff -u -r1.8 -r1.9 src/distrib/notes/hpcarm/contents
cvs rdiff -u -r1.15 -r1.16 src/distrib/notes/hpcmips/contents
cvs rdiff -u -r1.8 -r1.9 src/distrib/notes/hpcsh/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/hppa/contents
cvs rdiff -u -r1.35 -r1.36 src/distrib/notes/i386/contents
cvs rdiff -u -r1.8 -r1.9 src/distrib/notes/landisk/contents
cvs rdiff -u -r1.25 -r1.26 src/distrib/notes/mac68k/contents
cvs rdiff -u -r1.19 -r1.20 src/distrib/notes/macppc/contents
cvs rdiff -u -r1.8 -r1.9 src/distrib/notes/mmeye/contents
cvs rdiff -u -r1.18 -r1.19 src/distrib/notes/mvme68k/contents
cvs rdiff -u -r1.11 -r1.12 src/distrib/notes/news68k/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/newsmips/contents
cvs rdiff -u -r1.12 -r1.13 src/distrib/notes/next68k/contents
cvs rdiff -u -r1.8 -r1.9 src/distrib/notes/ofppc/contents
cvs rdiff -u -r1.22 -r1.23 src/distrib/notes/pmax/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/prep/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/rs6000/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/sandpoint/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/sgimips/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/shark/contents
cvs rdiff -u -r1.29 -r1.30 src/distrib/notes/sparc/contents
cvs rdiff -u -r1.12 -r1.13 src/distrib/notes/sparc64/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/sun2/contents
cvs rdiff -u -r1.21 -r1.22 src/distrib/notes/sun3/contents
cvs rdiff -u -r1.16 -r1.17 src/distrib/notes/vax/contents
cvs rdiff -u -r1.15 -r1.16 src/distrib/notes/vax/xfer
cvs rdiff -u -r1.22 -r1.23 src/distrib/notes/x68k/contents

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

Modified files:

Index: src/distrib/notes/acorn32/contents
diff -u src/distrib/notes/acorn32/contents:1.7 src/distrib/notes/acorn32/contents:1.8
--- src/distrib/notes/acorn32/contents:1.7	Fri Aug  7 00:43:47 2020
+++ src/distrib/notes/acorn32/contents	Sun Mar 24 12:53:19 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: contents,v 1.7 2020/08/07 00:43:47 snj Exp $

CVS commit: src/distrib/notes

2024-03-24 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Mar 24 12:53:24 UTC 2024

Modified Files:
src/distrib/notes/acorn32: contents
src/distrib/notes/alpha: contents
src/distrib/notes/amd64: contents
src/distrib/notes/amiga: contents
src/distrib/notes/arc: contents
src/distrib/notes/atari: contents
src/distrib/notes/bebox: contents
src/distrib/notes/cats: contents
src/distrib/notes/common: contents main sysinst
src/distrib/notes/emips: contents
src/distrib/notes/evbarm: contents
src/distrib/notes/evbppc: contents
src/distrib/notes/ews4800mips: contents
src/distrib/notes/hp300: contents
src/distrib/notes/hpcarm: contents
src/distrib/notes/hpcmips: contents
src/distrib/notes/hpcsh: contents
src/distrib/notes/hppa: contents
src/distrib/notes/i386: contents
src/distrib/notes/landisk: contents
src/distrib/notes/mac68k: contents
src/distrib/notes/macppc: contents
src/distrib/notes/mmeye: contents
src/distrib/notes/mvme68k: contents
src/distrib/notes/news68k: contents
src/distrib/notes/newsmips: contents
src/distrib/notes/next68k: contents
src/distrib/notes/ofppc: contents
src/distrib/notes/pmax: contents
src/distrib/notes/prep: contents
src/distrib/notes/rs6000: contents
src/distrib/notes/sandpoint: contents
src/distrib/notes/sgimips: contents
src/distrib/notes/shark: contents
src/distrib/notes/sparc: contents
src/distrib/notes/sparc64: contents
src/distrib/notes/sun2: contents
src/distrib/notes/sun3: contents
src/distrib/notes/vax: contents xfer
src/distrib/notes/x68k: contents

Log Message:
Various style fixes (and some of VAX related errors and copy),
from Mouse on tech-install.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/acorn32/contents
cvs rdiff -u -r1.25 -r1.26 src/distrib/notes/alpha/contents
cvs rdiff -u -r1.13 -r1.14 src/distrib/notes/amd64/contents
cvs rdiff -u -r1.25 -r1.26 src/distrib/notes/amiga/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/arc/contents
cvs rdiff -u -r1.25 -r1.26 src/distrib/notes/atari/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/bebox/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/cats/contents
cvs rdiff -u -r1.186 -r1.187 src/distrib/notes/common/contents
cvs rdiff -u -r1.572 -r1.573 src/distrib/notes/common/main
cvs rdiff -u -r1.112 -r1.113 src/distrib/notes/common/sysinst
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/emips/contents
cvs rdiff -u -r1.15 -r1.16 src/distrib/notes/evbarm/contents
cvs rdiff -u -r1.9 -r1.10 src/distrib/notes/evbppc/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/ews4800mips/contents
cvs rdiff -u -r1.22 -r1.23 src/distrib/notes/hp300/contents
cvs rdiff -u -r1.8 -r1.9 src/distrib/notes/hpcarm/contents
cvs rdiff -u -r1.15 -r1.16 src/distrib/notes/hpcmips/contents
cvs rdiff -u -r1.8 -r1.9 src/distrib/notes/hpcsh/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/hppa/contents
cvs rdiff -u -r1.35 -r1.36 src/distrib/notes/i386/contents
cvs rdiff -u -r1.8 -r1.9 src/distrib/notes/landisk/contents
cvs rdiff -u -r1.25 -r1.26 src/distrib/notes/mac68k/contents
cvs rdiff -u -r1.19 -r1.20 src/distrib/notes/macppc/contents
cvs rdiff -u -r1.8 -r1.9 src/distrib/notes/mmeye/contents
cvs rdiff -u -r1.18 -r1.19 src/distrib/notes/mvme68k/contents
cvs rdiff -u -r1.11 -r1.12 src/distrib/notes/news68k/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/newsmips/contents
cvs rdiff -u -r1.12 -r1.13 src/distrib/notes/next68k/contents
cvs rdiff -u -r1.8 -r1.9 src/distrib/notes/ofppc/contents
cvs rdiff -u -r1.22 -r1.23 src/distrib/notes/pmax/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/prep/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/rs6000/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/sandpoint/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/sgimips/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/shark/contents
cvs rdiff -u -r1.29 -r1.30 src/distrib/notes/sparc/contents
cvs rdiff -u -r1.12 -r1.13 src/distrib/notes/sparc64/contents
cvs rdiff -u -r1.7 -r1.8 src/distrib/notes/sun2/contents
cvs rdiff -u -r1.21 -r1.22 src/distrib/notes/sun3/contents
cvs rdiff -u -r1.16 -r1.17 src/distrib/notes/vax/contents
cvs rdiff -u -r1.15 -r1.16 src/distrib/notes/vax/xfer
cvs rdiff -u -r1.22 -r1.23 src/distrib/notes/x68k/contents

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



CVS commit: src/sys/arch/riscv/dev

2024-03-24 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Mar 24 08:34:20 UTC 2024

Modified Files:
src/sys/arch/riscv/dev: plic.c plic_fdt.c

Log Message:
Pretty print plic attachment


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/riscv/dev/plic.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/riscv/dev/plic_fdt.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/riscv/dev

2024-03-24 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Mar 24 08:34:20 UTC 2024

Modified Files:
src/sys/arch/riscv/dev: plic.c plic_fdt.c

Log Message:
Pretty print plic attachment


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/riscv/dev/plic.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/riscv/dev/plic_fdt.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/riscv/dev/plic.c
diff -u src/sys/arch/riscv/dev/plic.c:1.4 src/sys/arch/riscv/dev/plic.c:1.5
--- src/sys/arch/riscv/dev/plic.c:1.4	Mon Dec 25 13:01:59 2023
+++ src/sys/arch/riscv/dev/plic.c	Sun Mar 24 08:34:20 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: plic.c,v 1.4 2023/12/25 13:01:59 skrll Exp $ */
+/* $NetBSD: plic.c,v 1.5 2024/03/24 08:34:20 skrll Exp $ */
 
 /*-
  * Copyright (c) 2022 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include "opt_multiprocessor.h"
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: plic.c,v 1.4 2023/12/25 13:01:59 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: plic.c,v 1.5 2024/03/24 08:34:20 skrll Exp $");
 
 #include 
 
@@ -204,7 +204,7 @@ plic_attach_common(struct plic_softc *sc
 	}
 
 	aprint_naive("\n");
-	aprint_normal("RISC-V PLIC (%u IRQs)\n", sc->sc_ndev);
+	aprint_normal(": RISC-V PLIC (%u IRQs)\n", sc->sc_ndev);
 
 	plic_sc = sc;
 

Index: src/sys/arch/riscv/dev/plic_fdt.c
diff -u src/sys/arch/riscv/dev/plic_fdt.c:1.5 src/sys/arch/riscv/dev/plic_fdt.c:1.6
--- src/sys/arch/riscv/dev/plic_fdt.c:1.5	Fri Feb  9 18:39:53 2024
+++ src/sys/arch/riscv/dev/plic_fdt.c	Sun Mar 24 08:34:20 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: plic_fdt.c,v 1.5 2024/02/09 18:39:53 andvar Exp $ */
+/* $NetBSD: plic_fdt.c,v 1.6 2024/03/24 08:34:20 skrll Exp $ */
 
 /*-
  * Copyright (c) 2022 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: plic_fdt.c,v 1.5 2024/02/09 18:39:53 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: plic_fdt.c,v 1.6 2024/03/24 08:34:20 skrll Exp $");
 
 #include 
 
@@ -240,7 +240,7 @@ plic_fdt_attach(device_t parent, device_
 		context++;
 	}
 
-	aprint_verbose_dev(self, "");
+	aprint_verbose_dev(self, "attaching");
 	error = plic_attach_common(sc, addr, size);
 	if (error != 0) {
 		return;