CVS commit: src/share/mk

2023-02-19 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Feb 20 06:31:09 UTC 2023

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
GCC 10 now comes from gcc.old.


To generate a diff of this commit:
cvs rdiff -u -r1.1306 -r1.1307 src/share/mk/bsd.own.mk

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

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.1306 src/share/mk/bsd.own.mk:1.1307
--- src/share/mk/bsd.own.mk:1.1306	Sun Feb  5 14:53:38 2023
+++ src/share/mk/bsd.own.mk	Mon Feb 20 06:31:09 2023
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1306 2023/02/05 14:53:38 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.1307 2023/02/20 06:31:09 mrg Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -84,9 +84,9 @@ MKGCCCMDS?=	no
 # We import the old gcc as "gcc.old" when upgrading.  EXTERNAL_GCC_SUBDIR is
 # set to the relevant subdirectory in src/external/gpl3 for his HAVE_GCC.
 #
-.if ${HAVE_GCC} == 9
+.if ${HAVE_GCC} == 10
 EXTERNAL_GCC_SUBDIR?=	gcc.old
-.elif ${HAVE_GCC} == 10
+.elif ${HAVE_GCC} == 11
 EXTERNAL_GCC_SUBDIR?=	gcc
 .else
 EXTERNAL_GCC_SUBDIR?=	/does/not/exist



CVS commit: src/share/mk

2023-02-19 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Feb 20 06:31:09 UTC 2023

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
GCC 10 now comes from gcc.old.


To generate a diff of this commit:
cvs rdiff -u -r1.1306 -r1.1307 src/share/mk/bsd.own.mk

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



CVS commit: src/external/gpl3/gcc.old

2023-02-19 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Feb 20 05:38:32 UTC 2023

Removed Files:
src/external/gpl3/gcc.old: README.gcc8 README.gcc9
src/external/gpl3/gcc.old/dist: .gitattributes
src/external/gpl3/gcc.old/dist/config: bootstrap-mpx.mk
src/external/gpl3/gcc.old/dist/contrib: filter-rtags-warnings.py
gimple.vim
src/external/gpl3/gcc.old/dist/gcc: bt-load.c chkp-builtins.def
ipa-chkp.c ipa-chkp.h params-enum.h params-list.h params-options.h
params.c params.def params.h rtl-chkp.c rtl-chkp.h tlink.c
tree-chkp-opt.c tree-chkp.c tree-chkp.h tree-ssa-phionlycprop.c
wide-int-range.cc wide-int-range.h
src/external/gpl3/gcc.old/dist/gcc/common/config/spu: spu-common.c
src/external/gpl3/gcc.old/dist/gcc/config: darwin10.h darwin12.h
darwin9.h
src/external/gpl3/gcc.old/dist/gcc/config/alpha: freebsd.h
src/external/gpl3/gcc.old/dist/gcc/config/avr: t-multilib
src/external/gpl3/gcc.old/dist/gcc/config/mips: loongson.md
loongson3a.md
src/external/gpl3/gcc.old/dist/gcc/config/powerpcspe: 40x.md 440.md
476.h 476.md 476.opt 601.md 603.md 6xx.md 7450.md 750cl.h 7xx.md
8540.md a2.md aix-stdint.h aix.h aix43.h aix51.h aix52.h aix53.h
aix61.h aix64.opt aix71.h altivec.h altivec.md biarch64.h
bmi2intrin.h bmiintrin.h cell.md constraints.md crypto.md darwin.h
darwin.md darwin.opt darwin64.h darwin7.h darwin8.h default64.h
dfp.md driver-powerpcspe.c e300c2c3.md e500.h e500mc.md e500mc64.md
e5500.md e6500.md eabi.h eabialtivec.h eabisim.h eabispe.h
freebsd.h freebsd64.h genopt.sh host-darwin.c host-ppc64-darwin.c
htm.md htmintrin.h htmxlintrin.h linux.h linux64.h linux64.opt
linuxaltivec.h linuxspe.h lynx.h milli.exp mpc.md netbsd.h
option-defaults.h paired.h paired.md power4.md power5.md power6.md
power7.md power8.md power9.md powerpcspe-builtin.def powerpcspe-c.c
powerpcspe-cpus.def powerpcspe-linux.c powerpcspe-modes.def
powerpcspe-opts.h powerpcspe-passes.def powerpcspe-protos.h
powerpcspe-tables.opt powerpcspe.c powerpcspe.h powerpcspe.md
powerpcspe.opt ppc-asm.h ppc-auxv.h ppu_intrinsics.h predicates.md
rs64.md rtems.h secureplt.h si2vmx.h singlefp.h spe.h spe.md
spu2vmx.h sync.md sysv4.h sysv4.opt sysv4le.h t-aix43 t-aix52
t-darwin64 t-darwin8 t-fprules t-freebsd64 t-linux t-linux64
t-linux64bele t-linux64le t-linux64lebe t-lynx t-netbsd
t-powerpcspe t-ppccomm t-ppcendian t-ppcgas t-ppcos t-rtems t-spe
t-vxworks t-vxworksae t-vxworksmils t-xilinx titan.md vec_types.h
vector.md vsx.md vxworks.h vxworksae.h vxworksmils.h x-aix x-darwin
x-darwin64 x-linux-relax x-powerpcspe x86intrin.h xcoff.h xfpu.h
xfpu.md xilinx.h xilinx.opt

Log Message:
merge GCC 10.4 son more.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r0 src/external/gpl3/gcc.old/README.gcc8 \
src/external/gpl3/gcc.old/README.gcc9
cvs rdiff -u -r1.1.1.1 -r0 src/external/gpl3/gcc.old/dist/.gitattributes
cvs rdiff -u -r1.3 -r0 src/external/gpl3/gcc.old/dist/config/bootstrap-mpx.mk
cvs rdiff -u -r1.1.1.1 -r0 \
src/external/gpl3/gcc.old/dist/contrib/filter-rtags-warnings.py
cvs rdiff -u -r1.3 -r0 src/external/gpl3/gcc.old/dist/contrib/gimple.vim
cvs rdiff -u -r1.10 -r0 src/external/gpl3/gcc.old/dist/gcc/bt-load.c \
src/external/gpl3/gcc.old/dist/gcc/params.c \
src/external/gpl3/gcc.old/dist/gcc/params.h \
src/external/gpl3/gcc.old/dist/gcc/tlink.c
cvs rdiff -u -r1.4 -r0 src/external/gpl3/gcc.old/dist/gcc/chkp-builtins.def \
src/external/gpl3/gcc.old/dist/gcc/ipa-chkp.c \
src/external/gpl3/gcc.old/dist/gcc/ipa-chkp.h \
src/external/gpl3/gcc.old/dist/gcc/rtl-chkp.c \
src/external/gpl3/gcc.old/dist/gcc/rtl-chkp.h \
src/external/gpl3/gcc.old/dist/gcc/tree-chkp-opt.c \
src/external/gpl3/gcc.old/dist/gcc/tree-chkp.c \
src/external/gpl3/gcc.old/dist/gcc/tree-chkp.h \
src/external/gpl3/gcc.old/dist/gcc/tree-ssa-phionlycprop.c
cvs rdiff -u -r1.5 -r0 src/external/gpl3/gcc.old/dist/gcc/params-enum.h \
src/external/gpl3/gcc.old/dist/gcc/params-list.h
cvs rdiff -u -r1.1.1.3 -r0 \
src/external/gpl3/gcc.old/dist/gcc/params-options.h
cvs rdiff -u -r1.11 -r0 src/external/gpl3/gcc.old/dist/gcc/params.def
cvs rdiff -u -r1.1.1.1 -r0 \
src/external/gpl3/gcc.old/dist/gcc/wide-int-range.cc \
src/external/gpl3/gcc.old/dist/gcc/wide-int-range.h
cvs rdiff -u -r1.8 -r0 \
src/external/gpl3/gcc.old/dist/gcc/common/config/spu/spu-common.c
cvs rdiff -u -r1.10 -r0 src/external/gpl3/gcc.old/dist/gcc/config/darwin10.h \
src/external/gpl3/gcc.old/dist/gcc/config/darwin9.h
cvs rdiff -u -r1.5 -r0 src/external/gpl3/gcc.old/dist/gcc/confi

CVS commit: src/external/gpl3/gcc.old

2023-02-19 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Feb 20 05:38:32 UTC 2023

Removed Files:
src/external/gpl3/gcc.old: README.gcc8 README.gcc9
src/external/gpl3/gcc.old/dist: .gitattributes
src/external/gpl3/gcc.old/dist/config: bootstrap-mpx.mk
src/external/gpl3/gcc.old/dist/contrib: filter-rtags-warnings.py
gimple.vim
src/external/gpl3/gcc.old/dist/gcc: bt-load.c chkp-builtins.def
ipa-chkp.c ipa-chkp.h params-enum.h params-list.h params-options.h
params.c params.def params.h rtl-chkp.c rtl-chkp.h tlink.c
tree-chkp-opt.c tree-chkp.c tree-chkp.h tree-ssa-phionlycprop.c
wide-int-range.cc wide-int-range.h
src/external/gpl3/gcc.old/dist/gcc/common/config/spu: spu-common.c
src/external/gpl3/gcc.old/dist/gcc/config: darwin10.h darwin12.h
darwin9.h
src/external/gpl3/gcc.old/dist/gcc/config/alpha: freebsd.h
src/external/gpl3/gcc.old/dist/gcc/config/avr: t-multilib
src/external/gpl3/gcc.old/dist/gcc/config/mips: loongson.md
loongson3a.md
src/external/gpl3/gcc.old/dist/gcc/config/powerpcspe: 40x.md 440.md
476.h 476.md 476.opt 601.md 603.md 6xx.md 7450.md 750cl.h 7xx.md
8540.md a2.md aix-stdint.h aix.h aix43.h aix51.h aix52.h aix53.h
aix61.h aix64.opt aix71.h altivec.h altivec.md biarch64.h
bmi2intrin.h bmiintrin.h cell.md constraints.md crypto.md darwin.h
darwin.md darwin.opt darwin64.h darwin7.h darwin8.h default64.h
dfp.md driver-powerpcspe.c e300c2c3.md e500.h e500mc.md e500mc64.md
e5500.md e6500.md eabi.h eabialtivec.h eabisim.h eabispe.h
freebsd.h freebsd64.h genopt.sh host-darwin.c host-ppc64-darwin.c
htm.md htmintrin.h htmxlintrin.h linux.h linux64.h linux64.opt
linuxaltivec.h linuxspe.h lynx.h milli.exp mpc.md netbsd.h
option-defaults.h paired.h paired.md power4.md power5.md power6.md
power7.md power8.md power9.md powerpcspe-builtin.def powerpcspe-c.c
powerpcspe-cpus.def powerpcspe-linux.c powerpcspe-modes.def
powerpcspe-opts.h powerpcspe-passes.def powerpcspe-protos.h
powerpcspe-tables.opt powerpcspe.c powerpcspe.h powerpcspe.md
powerpcspe.opt ppc-asm.h ppc-auxv.h ppu_intrinsics.h predicates.md
rs64.md rtems.h secureplt.h si2vmx.h singlefp.h spe.h spe.md
spu2vmx.h sync.md sysv4.h sysv4.opt sysv4le.h t-aix43 t-aix52
t-darwin64 t-darwin8 t-fprules t-freebsd64 t-linux t-linux64
t-linux64bele t-linux64le t-linux64lebe t-lynx t-netbsd
t-powerpcspe t-ppccomm t-ppcendian t-ppcgas t-ppcos t-rtems t-spe
t-vxworks t-vxworksae t-vxworksmils t-xilinx titan.md vec_types.h
vector.md vsx.md vxworks.h vxworksae.h vxworksmils.h x-aix x-darwin
x-darwin64 x-linux-relax x-powerpcspe x86intrin.h xcoff.h xfpu.h
xfpu.md xilinx.h xilinx.opt

Log Message:
merge GCC 10.4 son more.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r0 src/external/gpl3/gcc.old/README.gcc8 \
src/external/gpl3/gcc.old/README.gcc9
cvs rdiff -u -r1.1.1.1 -r0 src/external/gpl3/gcc.old/dist/.gitattributes
cvs rdiff -u -r1.3 -r0 src/external/gpl3/gcc.old/dist/config/bootstrap-mpx.mk
cvs rdiff -u -r1.1.1.1 -r0 \
src/external/gpl3/gcc.old/dist/contrib/filter-rtags-warnings.py
cvs rdiff -u -r1.3 -r0 src/external/gpl3/gcc.old/dist/contrib/gimple.vim
cvs rdiff -u -r1.10 -r0 src/external/gpl3/gcc.old/dist/gcc/bt-load.c \
src/external/gpl3/gcc.old/dist/gcc/params.c \
src/external/gpl3/gcc.old/dist/gcc/params.h \
src/external/gpl3/gcc.old/dist/gcc/tlink.c
cvs rdiff -u -r1.4 -r0 src/external/gpl3/gcc.old/dist/gcc/chkp-builtins.def \
src/external/gpl3/gcc.old/dist/gcc/ipa-chkp.c \
src/external/gpl3/gcc.old/dist/gcc/ipa-chkp.h \
src/external/gpl3/gcc.old/dist/gcc/rtl-chkp.c \
src/external/gpl3/gcc.old/dist/gcc/rtl-chkp.h \
src/external/gpl3/gcc.old/dist/gcc/tree-chkp-opt.c \
src/external/gpl3/gcc.old/dist/gcc/tree-chkp.c \
src/external/gpl3/gcc.old/dist/gcc/tree-chkp.h \
src/external/gpl3/gcc.old/dist/gcc/tree-ssa-phionlycprop.c
cvs rdiff -u -r1.5 -r0 src/external/gpl3/gcc.old/dist/gcc/params-enum.h \
src/external/gpl3/gcc.old/dist/gcc/params-list.h
cvs rdiff -u -r1.1.1.3 -r0 \
src/external/gpl3/gcc.old/dist/gcc/params-options.h
cvs rdiff -u -r1.11 -r0 src/external/gpl3/gcc.old/dist/gcc/params.def
cvs rdiff -u -r1.1.1.1 -r0 \
src/external/gpl3/gcc.old/dist/gcc/wide-int-range.cc \
src/external/gpl3/gcc.old/dist/gcc/wide-int-range.h
cvs rdiff -u -r1.8 -r0 \
src/external/gpl3/gcc.old/dist/gcc/common/config/spu/spu-common.c
cvs rdiff -u -r1.10 -r0 src/external/gpl3/gcc.old/dist/gcc/config/darwin10.h \
src/external/gpl3/gcc.old/dist/gcc/config/darwin9.h
cvs rdiff -u -r1.5 -r0 src/external/gpl3/gcc.old/dist/gcc/confi

CVS commit: src/lib/libcurses/PSD.doc

2023-02-19 Thread David H. Gutteridge
Module Name:src
Committed By:   gutteridge
Date:   Mon Feb 20 02:05:47 UTC 2023

Modified Files:
src/lib/libcurses/PSD.doc: intro.5

Log Message:
intro.5: fix typo and grammar and simplify a phrase


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libcurses/PSD.doc/intro.5

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

Modified files:

Index: src/lib/libcurses/PSD.doc/intro.5
diff -u src/lib/libcurses/PSD.doc/intro.5:1.9 src/lib/libcurses/PSD.doc/intro.5:1.10
--- src/lib/libcurses/PSD.doc/intro.5:1.9	Mon Feb 13 23:02:27 2023
+++ src/lib/libcurses/PSD.doc/intro.5	Mon Feb 20 02:05:47 2023
@@ -1,4 +1,4 @@
-.\"	$NetBSD: intro.5,v 1.9 2023/02/13 23:02:27 andvar Exp $
+.\"	$NetBSD: intro.5,v 1.10 2023/02/20 02:05:47 gutteridge Exp $
 .\"
 .\" Copyright (c) 1980, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -44,10 +44,10 @@ the position on the next line when the n
 line) is output.
 .pp
 Likewise, if scrolling is enabled, a scroll will be invoked only when the
-first character on he first line past the bottom line of the window is
+first character on the first line past the bottom line of the window is
 output.
-If scrolling is not enabled the characters will to be output to the
-bottom right corner of the window which is the cursor location.
+If scrolling is not enabled the characters will be output to the
+cursor location at the bottom right corner of the window.
 .pp
 This policy allows consistent behavior of the cursor at the boundary
 conditions.



CVS commit: src/lib/libcurses/PSD.doc

2023-02-19 Thread David H. Gutteridge
Module Name:src
Committed By:   gutteridge
Date:   Mon Feb 20 02:05:47 UTC 2023

Modified Files:
src/lib/libcurses/PSD.doc: intro.5

Log Message:
intro.5: fix typo and grammar and simplify a phrase


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libcurses/PSD.doc/intro.5

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



CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64

2023-02-19 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Feb 20 01:16:38 UTC 2023

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/aarch64: aarch64-netbsd.h

Log Message:
add author info to this file.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h

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



CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64

2023-02-19 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Feb 20 01:16:38 UTC 2023

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/aarch64: aarch64-netbsd.h

Log Message:
add author info to this file.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h

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

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h
diff -u src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h:1.6 src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h:1.7
--- src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h:1.6	Tue Jul 13 06:56:24 2021
+++ src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h	Mon Feb 20 01:16:38 2023
@@ -1,5 +1,7 @@
 /* Definitions for AArch64 running NetBSD
Copyright (C) 2016-2020 Free Software Foundation, Inc.
+   Contributed by Matthew Green (m...@eterna.com.au) and Christos Zoulas
+   (chris...@netbsd.org.)
 
This file is part of GCC.
 



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

2023-02-19 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Feb 19 21:35:07 UTC 2023

Modified Files:
src/sys/arch/amiga/dev: if_esreg.h

Log Message:
s/collsions/collisions/ in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/amiga/dev/if_esreg.h

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

Modified files:

Index: src/sys/arch/amiga/dev/if_esreg.h
diff -u src/sys/arch/amiga/dev/if_esreg.h:1.8 src/sys/arch/amiga/dev/if_esreg.h:1.9
--- src/sys/arch/amiga/dev/if_esreg.h:1.8	Tue May 31 08:43:14 2022
+++ src/sys/arch/amiga/dev/if_esreg.h	Sun Feb 19 21:35:07 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_esreg.h,v 1.8 2022/05/31 08:43:14 andvar Exp $	*/
+/*	$NetBSD: if_esreg.h,v 1.9 2023/02/19 21:35:07 andvar Exp $	*/
 
 /*
  * Copyright (c) 1995 Michael L. Hitch
@@ -87,7 +87,7 @@ union smcregs {
 
 /* EPH Status Register */
 #define	EPHSR_16COL	0x1000		/* 16 collisions reached */
-#define	EPHSR_MULCOL	0x0400		/* Multiple collsions */
+#define	EPHSR_MULCOL	0x0400		/* Multiple collisions */
 #define	EPHSR_TX_SUC	0x0100		/* Last transmit successful */
 #define	EPHSR_LOST_CAR	0x0004		/* Lost carrier */
 



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

2023-02-19 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Feb 19 21:35:07 UTC 2023

Modified Files:
src/sys/arch/amiga/dev: if_esreg.h

Log Message:
s/collsions/collisions/ in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/amiga/dev/if_esreg.h

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

2023-02-19 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Feb 19 19:27:02 UTC 2023

Modified Files:
src/usr.bin/xlint/lint1: err.c
src/usr.bin/xlint/lint2: msg.c
src/usr.bin/xlint/xlint: xlint.c

Log Message:
lint: make basename simpler

There is no need to handle trailing slashes since lint only handles
regular files in diagnostics, not directories. Furthermore, only the
last '/' was ignored, but multiple trailing slashes would not.


To generate a diff of this commit:
cvs rdiff -u -r1.187 -r1.188 src/usr.bin/xlint/lint1/err.c
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/xlint/lint2/msg.c
cvs rdiff -u -r1.108 -r1.109 src/usr.bin/xlint/xlint/xlint.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/err.c
diff -u src/usr.bin/xlint/lint1/err.c:1.187 src/usr.bin/xlint/lint1/err.c:1.188
--- src/usr.bin/xlint/lint1/err.c:1.187	Sat Feb 18 15:21:34 2023
+++ src/usr.bin/xlint/lint1/err.c	Sun Feb 19 19:27:01 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: err.c,v 1.187 2023/02/18 15:21:34 rillig Exp $	*/
+/*	$NetBSD: err.c,v 1.188 2023/02/19 19:27:01 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include 
 #if defined(__RCSID)
-__RCSID("$NetBSD: err.c,v 1.187 2023/02/18 15:21:34 rillig Exp $");
+__RCSID("$NetBSD: err.c,v 1.188 2023/02/19 19:27:01 rillig Exp $");
 #endif
 
 #include 
@@ -498,19 +498,15 @@ msglist(void)
 static const char *
 lbasename(const char *path)
 {
-	const char *p, *base, *dir;
 
 	if (Fflag)
 		return path;
 
-	p = base = dir = path;
-	while (*p != '\0') {
-		if (*p++ == '/') {
-			dir = base;
-			base = p;
-		}
-	}
-	return *base != '\0' ? base : dir;
+	const char *base = path;
+	for (const char *p = path; *p != '\0'; p++)
+		if (*p == '/')
+			base = p + 1;
+	return base;
 }
 
 static void

Index: src/usr.bin/xlint/lint2/msg.c
diff -u src/usr.bin/xlint/lint2/msg.c:1.18 src/usr.bin/xlint/lint2/msg.c:1.19
--- src/usr.bin/xlint/lint2/msg.c:1.18	Thu Feb  2 22:23:30 2023
+++ src/usr.bin/xlint/lint2/msg.c	Sun Feb 19 19:27:01 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: msg.c,v 1.18 2023/02/02 22:23:30 rillig Exp $	*/
+/*	$NetBSD: msg.c,v 1.19 2023/02/19 19:27:01 rillig Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include 
 #if defined(__RCSID)
-__RCSID("$NetBSD: msg.c,v 1.18 2023/02/02 22:23:30 rillig Exp $");
+__RCSID("$NetBSD: msg.c,v 1.19 2023/02/19 19:27:01 rillig Exp $");
 #endif
 
 #include 
@@ -87,19 +87,15 @@ msg(int n, ...)
 static const char *
 lbasename(const char *path)
 {
-	const	char *cp, *cp1, *cp2;
 
 	if (Fflag)
 		return path;
 
-	cp = cp1 = cp2 = path;
-	while (*cp != '\0') {
-		if (*cp++ == '/') {
-			cp2 = cp1;
-			cp1 = cp;
-		}
-	}
-	return *cp1 == '\0' ? cp2 : cp1;
+	const char *base = path;
+	for (const char *p = path; *p != '\0'; p++)
+		if (*p == '/')
+			base = p + 1;
+	return base;
 }
 
 /*

Index: src/usr.bin/xlint/xlint/xlint.c
diff -u src/usr.bin/xlint/xlint/xlint.c:1.108 src/usr.bin/xlint/xlint/xlint.c:1.109
--- src/usr.bin/xlint/xlint/xlint.c:1.108	Sun Jan 22 15:20:01 2023
+++ src/usr.bin/xlint/xlint/xlint.c	Sun Feb 19 19:27:02 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: xlint.c,v 1.108 2023/01/22 15:20:01 rillig Exp $ */
+/* $NetBSD: xlint.c,v 1.109 2023/02/19 19:27:02 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include 
 #if defined(__RCSID)
-__RCSID("$NetBSD: xlint.c,v 1.108 2023/01/22 15:20:01 rillig Exp $");
+__RCSID("$NetBSD: xlint.c,v 1.109 2023/02/19 19:27:02 rillig Exp $");
 #endif
 
 #include 
@@ -227,18 +227,17 @@ terminate(int signo)
 }
 
 /*
- * Returns a pointer to the last component of strg after delim.
- * Returns strg if the string does not contain delim.
+ * Returns a pointer to the last component of path after delim.
+ * Returns path if the string does not contain delim.
  */
 static const char *
-lbasename(const char *strg, int delim)
+lbasename(const char *path, int delim)
 {
 
-	const char *base = strg;
-	for (const char *p = strg; *p != '\0'; p++) {
-		if (p[0] == delim && p[1] != '\0')
+	const char *base = path;
+	for (const char *p = path; *p != '\0'; p++)
+		if (*p == delim)
 			base = p + 1;
-	}
 	return base;
 }
 



CVS commit: src/usr.bin/xlint

2023-02-19 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Feb 19 19:27:02 UTC 2023

Modified Files:
src/usr.bin/xlint/lint1: err.c
src/usr.bin/xlint/lint2: msg.c
src/usr.bin/xlint/xlint: xlint.c

Log Message:
lint: make basename simpler

There is no need to handle trailing slashes since lint only handles
regular files in diagnostics, not directories. Furthermore, only the
last '/' was ignored, but multiple trailing slashes would not.


To generate a diff of this commit:
cvs rdiff -u -r1.187 -r1.188 src/usr.bin/xlint/lint1/err.c
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/xlint/lint2/msg.c
cvs rdiff -u -r1.108 -r1.109 src/usr.bin/xlint/xlint/xlint.c

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



CVS commit: src/doc

2023-02-19 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sun Feb 19 18:09:45 UTC 2023

Modified Files:
src/doc: 3RDPARTY

Log Message:
gdb-13.1 out


To generate a diff of this commit:
cvs rdiff -u -r1.1912 -r1.1913 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/doc

2023-02-19 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sun Feb 19 18:09:45 UTC 2023

Modified Files:
src/doc: 3RDPARTY

Log Message:
gdb-13.1 out


To generate a diff of this commit:
cvs rdiff -u -r1.1912 -r1.1913 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.1912 src/doc/3RDPARTY:1.1913
--- src/doc/3RDPARTY:1.1912	Tue Feb  7 22:26:46 2023
+++ src/doc/3RDPARTY	Sun Feb 19 18:09:45 2023
@@ -1,4 +1,4 @@
-#	$NetBSD: 3RDPARTY,v 1.1912 2023/02/07 22:26:46 christos Exp $
+#	$NetBSD: 3RDPARTY,v 1.1913 2023/02/19 18:09:45 wiz Exp $
 #
 # This file contains a list of the software that has been integrated into
 # NetBSD where we are not the primary maintainer.
@@ -482,11 +482,11 @@ Before importing a new version of extern
 
 Package:	gdb
 Version:	11.0.50
-Current Vers:	12.1
+Current Vers:	13.1
 Maintainer:	FSF
 Archive Site:	ftp://ftp.gnu.org/gnu/gdb/
 Home Page:	http://www.gnu.org/software/gdb/
-Date:		2022-05-02
+Date:		2023-02-19
 Mailing List:	bug-...@gnu.org
 Responsible:	christos
 License:	GPLv3, LGPLv3.1



CVS commit: src

2023-02-19 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Feb 19 12:00:16 UTC 2023

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_218.c
src/usr.bin/xlint/lint1: lex.c

Log Message:
lint: do not warn about traditional C migration in C99 mode

For large integer constants, the resulting type could differ between
traditional C and C90. In C99 mode, this difference is no longer
relevant since it is too far away from traditional C.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/xlint/lint1/msg_218.c
cvs rdiff -u -r1.153 -r1.154 src/usr.bin/xlint/lint1/lex.c

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

Modified files:

Index: src/tests/usr.bin/xlint/lint1/msg_218.c
diff -u src/tests/usr.bin/xlint/lint1/msg_218.c:1.5 src/tests/usr.bin/xlint/lint1/msg_218.c:1.6
--- src/tests/usr.bin/xlint/lint1/msg_218.c:1.5	Sun Feb 19 11:50:29 2023
+++ src/tests/usr.bin/xlint/lint1/msg_218.c	Sun Feb 19 12:00:15 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: msg_218.c,v 1.5 2023/02/19 11:50:29 rillig Exp $	*/
+/*	$NetBSD: msg_218.c,v 1.6 2023/02/19 12:00:15 rillig Exp $	*/
 # 3 "msg_218.c"
 
 // Test for message: ANSI C treats constant as unsigned, op '%s' [218]
@@ -36,20 +36,12 @@ test_signed_int(void)
 void
 compare_large_constant(void)
 {
-	/* expect+1: warning: ANSI C treats constant as unsigned, op '<' [218] */
 	cond = s32 < 30L;
-	/* expect+1: warning: ANSI C treats constant as unsigned, op '<' [218] */
 	cond = 30L < s32;
-	/* expect+1: warning: ANSI C treats constant as unsigned, op '<' [218] */
 	cond = u32 < 30L;
-	/* expect+1: warning: ANSI C treats constant as unsigned, op '<' [218] */
 	cond = 30L < u32;
-	/* expect+1: warning: ANSI C treats constant as unsigned, op '<' [218] */
 	cond = s64 < 30L;
-	/* expect+1: warning: ANSI C treats constant as unsigned, op '<' [218] */
 	cond = 30L < s64;
-	/* expect+1: warning: ANSI C treats constant as unsigned, op '<' [218] */
 	cond = u64 < 30L;
-	/* expect+1: warning: ANSI C treats constant as unsigned, op '<' [218] */
 	cond = 30L < u64;
 }

Index: src/usr.bin/xlint/lint1/lex.c
diff -u src/usr.bin/xlint/lint1/lex.c:1.153 src/usr.bin/xlint/lint1/lex.c:1.154
--- src/usr.bin/xlint/lint1/lex.c:1.153	Sun Feb 19 11:50:29 2023
+++ src/usr.bin/xlint/lint1/lex.c	Sun Feb 19 12:00:15 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: lex.c,v 1.153 2023/02/19 11:50:29 rillig Exp $ */
+/* $NetBSD: lex.c,v 1.154 2023/02/19 12:00:15 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include 
 #if defined(__RCSID)
-__RCSID("$NetBSD: lex.c,v 1.153 2023/02/19 11:50:29 rillig Exp $");
+__RCSID("$NetBSD: lex.c,v 1.154 2023/02/19 12:00:15 rillig Exp $");
 #endif
 
 #include 
@@ -558,8 +558,7 @@ lex_integer_constant(const char *yytext,
 	case LONG:
 		if (uq > TARG_LONG_MAX && allow_c90) {
 			typ = ULONG;
-			/* TODO: C99 behaves like C90 here. */
-			if (allow_trad || allow_c99)
+			if (allow_trad)
 ansiu = true;
 			if (uq > TARG_ULONG_MAX && !warned) {
 /* integer constant out of range */
@@ -574,12 +573,8 @@ lex_integer_constant(const char *yytext,
 		}
 		break;
 	case QUAD:
-		if (uq > TARG_QUAD_MAX && allow_c90) {
+		if (uq > TARG_QUAD_MAX && allow_c90)
 			typ = UQUAD;
-			/* TODO: C99 behaves like C90 here. */
-			if (allow_trad || allow_c99)
-ansiu = true;
-		}
 		break;
 	case UQUAD:
 		if (uq > TARG_UQUAD_MAX && !warned) {



CVS commit: src

2023-02-19 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Feb 19 12:00:16 UTC 2023

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_218.c
src/usr.bin/xlint/lint1: lex.c

Log Message:
lint: do not warn about traditional C migration in C99 mode

For large integer constants, the resulting type could differ between
traditional C and C90. In C99 mode, this difference is no longer
relevant since it is too far away from traditional C.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/xlint/lint1/msg_218.c
cvs rdiff -u -r1.153 -r1.154 src/usr.bin/xlint/lint1/lex.c

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



CVS commit: src

2023-02-19 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Feb 19 11:50:29 UTC 2023

Modified Files:
src/tests/usr.bin/xlint/lint1: lex_integer_ilp32.c msg_218.c
src/usr.bin/xlint/lint1: lex.c

Log Message:
tests/lint: fix and extend tests for C90 migration warning


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/xlint/lint1/lex_integer_ilp32.c
cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/xlint/lint1/msg_218.c
cvs rdiff -u -r1.152 -r1.153 src/usr.bin/xlint/lint1/lex.c

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

Modified files:

Index: src/tests/usr.bin/xlint/lint1/lex_integer_ilp32.c
diff -u src/tests/usr.bin/xlint/lint1/lex_integer_ilp32.c:1.6 src/tests/usr.bin/xlint/lint1/lex_integer_ilp32.c:1.7
--- src/tests/usr.bin/xlint/lint1/lex_integer_ilp32.c:1.6	Sun Feb  5 12:25:11 2023
+++ src/tests/usr.bin/xlint/lint1/lex_integer_ilp32.c	Sun Feb 19 11:50:29 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: lex_integer_ilp32.c,v 1.6 2023/02/05 12:25:11 rillig Exp $	*/
+/*	$NetBSD: lex_integer_ilp32.c,v 1.7 2023/02/19 11:50:29 rillig Exp $	*/
 # 3 "lex_integer_ilp32.c"
 
 /*
@@ -27,7 +27,6 @@ test_signed_int(void)
 
 	sinki(-2147483647);
 
-	/* expect+2: warning: ANSI C treats constant as unsigned, op '-' [218] */
 	/* expect+1: warning: conversion of 'unsigned long' to 'int' is out of range, arg #1 [295] */
 	sinki(-2147483648);
 }

Index: src/tests/usr.bin/xlint/lint1/msg_218.c
diff -u src/tests/usr.bin/xlint/lint1/msg_218.c:1.4 src/tests/usr.bin/xlint/lint1/msg_218.c:1.5
--- src/tests/usr.bin/xlint/lint1/msg_218.c:1.4	Wed Jun 22 19:23:18 2022
+++ src/tests/usr.bin/xlint/lint1/msg_218.c	Sun Feb 19 11:50:29 2023
@@ -1,17 +1,55 @@
-/*	$NetBSD: msg_218.c,v 1.4 2022/06/22 19:23:18 rillig Exp $	*/
+/*	$NetBSD: msg_218.c,v 1.5 2023/02/19 11:50:29 rillig Exp $	*/
 # 3 "msg_218.c"
 
 // Test for message: ANSI C treats constant as unsigned, op '%s' [218]
 
 /* lint1-only-if: ilp32 */
 
+_Bool cond;
+signed int s32;
+unsigned int u32;
+signed long long s64;
+unsigned long long u64;
+
 void sink_int(int);
 
 /* All platforms supported by lint have 32-bit int in two's complement. */
 void
 test_signed_int(void)
 {
-	/* expect+2: warning: ANSI C treats constant as unsigned, op '-' [218] */
 	/* expect+1: warning: conversion of 'unsigned long' to 'int' is out of range, arg #1 [295] */
 	sink_int(-2147483648);
 }
+
+/*
+ * In traditional C, integer constants with an 'L' suffix that didn't fit
+ * into 'long' were promoted to the next larger integer type, if that existed
+ * at all, as the suffix 'LL' was introduced by C90.
+ *
+ * Starting with C90, integer constants with an 'L' suffix that didn't fit
+ * into 'long' were promoted to 'unsigned long' first, before trying 'long
+ * long'.
+ *
+ * In C99 mode, this distinction is no longer necessary since it is far
+ * enough from traditional C.
+ */
+void
+compare_large_constant(void)
+{
+	/* expect+1: warning: ANSI C treats constant as unsigned, op '<' [218] */
+	cond = s32 < 30L;
+	/* expect+1: warning: ANSI C treats constant as unsigned, op '<' [218] */
+	cond = 30L < s32;
+	/* expect+1: warning: ANSI C treats constant as unsigned, op '<' [218] */
+	cond = u32 < 30L;
+	/* expect+1: warning: ANSI C treats constant as unsigned, op '<' [218] */
+	cond = 30L < u32;
+	/* expect+1: warning: ANSI C treats constant as unsigned, op '<' [218] */
+	cond = s64 < 30L;
+	/* expect+1: warning: ANSI C treats constant as unsigned, op '<' [218] */
+	cond = 30L < s64;
+	/* expect+1: warning: ANSI C treats constant as unsigned, op '<' [218] */
+	cond = u64 < 30L;
+	/* expect+1: warning: ANSI C treats constant as unsigned, op '<' [218] */
+	cond = 30L < u64;
+}

Index: src/usr.bin/xlint/lint1/lex.c
diff -u src/usr.bin/xlint/lint1/lex.c:1.152 src/usr.bin/xlint/lint1/lex.c:1.153
--- src/usr.bin/xlint/lint1/lex.c:1.152	Sat Feb 18 15:09:10 2023
+++ src/usr.bin/xlint/lint1/lex.c	Sun Feb 19 11:50:29 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: lex.c,v 1.152 2023/02/18 15:09:10 rillig Exp $ */
+/* $NetBSD: lex.c,v 1.153 2023/02/19 11:50:29 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include 
 #if defined(__RCSID)
-__RCSID("$NetBSD: lex.c,v 1.152 2023/02/18 15:09:10 rillig Exp $");
+__RCSID("$NetBSD: lex.c,v 1.153 2023/02/19 11:50:29 rillig Exp $");
 #endif
 
 #include 
@@ -541,8 +541,6 @@ lex_integer_constant(const char *yytext,
 /*
  * Remember that the constant is unsigned
  * only in ANSI C.
- *
- * TODO: C99 behaves like C90 here.
  */
 ansiu = true;
 			}



CVS commit: src

2023-02-19 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Feb 19 11:50:29 UTC 2023

Modified Files:
src/tests/usr.bin/xlint/lint1: lex_integer_ilp32.c msg_218.c
src/usr.bin/xlint/lint1: lex.c

Log Message:
tests/lint: fix and extend tests for C90 migration warning


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/xlint/lint1/lex_integer_ilp32.c
cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/xlint/lint1/msg_218.c
cvs rdiff -u -r1.152 -r1.153 src/usr.bin/xlint/lint1/lex.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/mips/mips

2023-02-19 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Sun Feb 19 11:19:51 UTC 2023

Modified Files:
src/sys/arch/mips/mips: db_interface.c

Log Message:
Adjust userspace comments in db_read_bytes() and db_write_bytes() to
match current reality.


To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/sys/arch/mips/mips/db_interface.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/mips/mips

2023-02-19 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Sun Feb 19 11:19:51 UTC 2023

Modified Files:
src/sys/arch/mips/mips: db_interface.c

Log Message:
Adjust userspace comments in db_read_bytes() and db_write_bytes() to
match current reality.


To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/sys/arch/mips/mips/db_interface.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/mips/mips/db_interface.c
diff -u src/sys/arch/mips/mips/db_interface.c:1.98 src/sys/arch/mips/mips/db_interface.c:1.99
--- src/sys/arch/mips/mips/db_interface.c:1.98	Sun Feb 19 10:48:06 2023
+++ src/sys/arch/mips/mips/db_interface.c	Sun Feb 19 11:19:51 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: db_interface.c,v 1.98 2023/02/19 10:48:06 mlelstv Exp $	*/
+/*	$NetBSD: db_interface.c,v 1.99 2023/02/19 11:19:51 simonb Exp $	*/
 
 /*
  * Mach Operating System
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.98 2023/02/19 10:48:06 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.99 2023/02/19 11:19:51 simonb Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_multiprocessor.h"
@@ -185,11 +185,7 @@ db_read_bytes(vaddr_t addr, size_t size,
 	const char *src = (char *)addr;
 	int err;
 
-	/*
-	 * If asked to fetch from userspace, do it safely.
-	 * Note that MIPS_KSEG0_START is the proper address for
-	 * both 32-bit and 64-bit kernels.
-	 */
+	/* If asked to fetch from userspace, do it safely */
 	if (addr < VM_MAXUSER_ADDRESS) {
 		err = copyin(src, data, size);
 		if (err) {
@@ -227,7 +223,7 @@ db_write_bytes(vaddr_t addr, size_t size
 	size_t n = size;
 	int err;
 
-	/* If asked to fetch from userspace, do it safely */
+	/* If asked to store to userspace, do it safely */
 	if (addr < VM_MAXUSER_ADDRESS) {
 		err = copyout(data, p, size);
 		if (err) {



CVS commit: src/bin/sleep

2023-02-19 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Feb 19 10:54:35 UTC 2023

Modified Files:
src/bin/sleep: sleep.1

Log Message:
sleep(1): minor markup tweaks


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/bin/sleep/sleep.1

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

Modified files:

Index: src/bin/sleep/sleep.1
diff -u src/bin/sleep/sleep.1:1.27 src/bin/sleep/sleep.1:1.28
--- src/bin/sleep/sleep.1:1.27	Sun Jan 27 17:42:53 2019
+++ src/bin/sleep/sleep.1	Sun Feb 19 10:54:35 2023
@@ -1,4 +1,4 @@
-.\"	$NetBSD: sleep.1,v 1.27 2019/01/27 17:42:53 wiz Exp $
+.\"	$NetBSD: sleep.1,v 1.28 2023/02/19 10:54:35 uwe Exp $
 .\"
 .\" Copyright (c) 1990, 1993, 1994
 .\"	The Regents of the University of California.  All rights reserved.
@@ -47,19 +47,24 @@ The
 utility suspends execution for a minimum of
 .Ar seconds
 seconds, then exits.
-It is usually used to schedule the execution of other commands (see
+It is usually used to schedule the execution of other commands
+.Po
+see
 .Sx EXAMPLES
-below).
+below
+.Pc .
 .Pp
-Note: The
+.Em Note :
+The
 .Nx
 .Nm
 command will accept and honor a non-integer number of specified seconds.
 Note however, that if the request is for much more than 2.5 hours,
 any fractional seconds will be ignored.
-Permitting non-integral delays is a non-portable extension,
-and its use will decrease the probability that
-a shell script will execute properly on another system.
+Permitting non-integral delays is a
+.Em non-portable
+extension, and its use will decrease the probability that a shell
+script will execute properly on another system.
 .Pp
 When the
 .Dv SIGINFO
@@ -74,7 +79,7 @@ utility exits with one of the following 
 On successful completion, or if the signal
 .Dv SIGALRM
 was received.
-.It Li \&>\&0
+.It Li \&>0
 An error occurred.
 .El
 .Sh EXAMPLES
@@ -84,10 +89,12 @@ To schedule the execution of a command f
 .Pp
 This incantation would wait half an hour before
 running the script
-.Dq command_file .
-(See the
+.Ar command_file .
+.Po
+See the
 .Xr at 1
-utility.)
+utility
+.Pc .
 .Pp
 To repeatedly run a command (using
 .Xr csh 1 ) :
@@ -110,17 +117,27 @@ The scenario for a script such as this m
 running is taking longer than expected to process a series of
 files, and it would be nice to have
 another program start processing the files created by the first
-program as soon as it is finished (when zzz.rawdata is created).
-The script checks every five minutes for the file zzz.rawdata.
-When the file is found, processing the generated files (*.rawdata)
+program as soon as it is finished
+.Po
+when
+.Li zzz.rawdata
+is created
+.Pc .
+The script checks every five minutes for the file
+.Li zzz.rawdata .
+When the file is found, processing the generated files
+.Pq Li *.rawdata
 is done courteously by sleeping for 70 seconds in between each
 awk job.
 .Pp
 To wait until a particular time, the following,
-with some error checking added, might be used (using
+with some error checking added, might be used
+.Po
+using
 .Xr sh 1
 on
-.Nx ) :
+.Nx
+.Pc :
 .Bd -literal -offset indent
 END=$(( $( date -d "$1" +%s ) - START_TIME ))
 while [ "${SECONDS}" -lt "${END}" ]
@@ -130,7 +147,7 @@ done
 .Ed
 .Pp
 where the argument
-.Sq \&$1
+.Ql $1
 specifies the desired date and time in any format the
 .Fl d
 option to the
@@ -155,11 +172,11 @@ A
 utility appeared in
 .At v4 .
 Processing fractional seconds, and processing the
-.Ic seconds
+.Ar seconds
 argument respecting the current locale, was added in
 .Nx 1.3 .
 The ability to sleep for extended periods appeared in
-.Nx 9 .
+.Nx 9.0 .
 .Sh BUGS
 This
 .Nm



CVS commit: src/bin/sleep

2023-02-19 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Feb 19 10:54:35 UTC 2023

Modified Files:
src/bin/sleep: sleep.1

Log Message:
sleep(1): minor markup tweaks


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/bin/sleep/sleep.1

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



CVS commit: src/sys/arch/mips/mips

2023-02-19 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Sun Feb 19 10:48:06 UTC 2023

Modified Files:
src/sys/arch/mips/mips: db_interface.c

Log Message:
Only copyin/copyout from and to user addresses.


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/sys/arch/mips/mips/db_interface.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/mips/mips

2023-02-19 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Sun Feb 19 10:48:06 UTC 2023

Modified Files:
src/sys/arch/mips/mips: db_interface.c

Log Message:
Only copyin/copyout from and to user addresses.


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/sys/arch/mips/mips/db_interface.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/mips/mips/db_interface.c
diff -u src/sys/arch/mips/mips/db_interface.c:1.97 src/sys/arch/mips/mips/db_interface.c:1.98
--- src/sys/arch/mips/mips/db_interface.c:1.97	Wed Oct 26 23:38:08 2022
+++ src/sys/arch/mips/mips/db_interface.c	Sun Feb 19 10:48:06 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: db_interface.c,v 1.97 2022/10/26 23:38:08 riastradh Exp $	*/
+/*	$NetBSD: db_interface.c,v 1.98 2023/02/19 10:48:06 mlelstv Exp $	*/
 
 /*
  * Mach Operating System
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.97 2022/10/26 23:38:08 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.98 2023/02/19 10:48:06 mlelstv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_multiprocessor.h"
@@ -190,7 +190,7 @@ db_read_bytes(vaddr_t addr, size_t size,
 	 * Note that MIPS_KSEG0_START is the proper address for
 	 * both 32-bit and 64-bit kernels.
 	 */
-	if (addr < (vaddr_t)MIPS_KSEG0_START) {
+	if (addr < VM_MAXUSER_ADDRESS) {
 		err = copyin(src, data, size);
 		if (err) {
 #ifdef DDB
@@ -228,7 +228,7 @@ db_write_bytes(vaddr_t addr, size_t size
 	int err;
 
 	/* If asked to fetch from userspace, do it safely */
-	if (addr < (vaddr_t)MIPS_KSEG0_START) {
+	if (addr < VM_MAXUSER_ADDRESS) {
 		err = copyout(data, p, size);
 		if (err) {
 #ifdef DDB