CVS commit: src/sys/dev/raidframe

2023-09-16 Thread Greg Oster
Module Name:src
Committed By:   oster
Date:   Sat Sep 16 23:38:57 UTC 2023

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

Log Message:
A component that is in state rf_ds_reconstructing has failed, and should
not be consulted for DIOCGCACHE.

Fixes an observed panic when rf_get_component_caches() does an IOCTL to
a failed device while reconstruction is in progress.

XXX pullup netbsd-10
XXX pullup netbsd-9


To generate a diff of this commit:
cvs rdiff -u -r1.412 -r1.413 src/sys/dev/raidframe/rf_netbsdkintf.c

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

Modified files:

Index: src/sys/dev/raidframe/rf_netbsdkintf.c
diff -u src/sys/dev/raidframe/rf_netbsdkintf.c:1.412 src/sys/dev/raidframe/rf_netbsdkintf.c:1.413
--- src/sys/dev/raidframe/rf_netbsdkintf.c:1.412	Thu Jun 15 09:15:54 2023
+++ src/sys/dev/raidframe/rf_netbsdkintf.c	Sat Sep 16 23:38:57 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: rf_netbsdkintf.c,v 1.412 2023/06/15 09:15:54 hannken Exp $	*/
+/*	$NetBSD: rf_netbsdkintf.c,v 1.413 2023/09/16 23:38:57 oster Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2008-2011 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
  ***/
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.412 2023/06/15 09:15:54 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.413 2023/09/16 23:38:57 oster Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_raid_autoconfig.h"
@@ -3771,8 +3771,7 @@ rf_get_component_caches(RF_Raid_t *raidP
 		 * Check any non-dead disk, even when currently being
 		 * reconstructed.
 		 */
-		if (!RF_DEAD_DISK(raidPtr->Disks[c].status)
-		|| raidPtr->Disks[c].status == rf_ds_reconstructing) {
+		if (!RF_DEAD_DISK(raidPtr->Disks[c].status)) {
 			error = VOP_IOCTL(raidPtr->raid_cinfo[c].ci_vp,
 			DIOCGCACHE, , FREAD, NOCRED);
 			if (error) {



CVS commit: src/sys/dev/raidframe

2023-09-16 Thread Greg Oster
Module Name:src
Committed By:   oster
Date:   Sat Sep 16 23:38:57 UTC 2023

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

Log Message:
A component that is in state rf_ds_reconstructing has failed, and should
not be consulted for DIOCGCACHE.

Fixes an observed panic when rf_get_component_caches() does an IOCTL to
a failed device while reconstruction is in progress.

XXX pullup netbsd-10
XXX pullup netbsd-9


To generate a diff of this commit:
cvs rdiff -u -r1.412 -r1.413 src/sys/dev/raidframe/rf_netbsdkintf.c

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



CVS commit: src/share/misc

2023-09-16 Thread David H. Gutteridge
Module Name:src
Committed By:   gutteridge
Date:   Sat Sep 16 21:18:29 UTC 2023

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

Log Message:
acronyms.comp: add CAN & ODBC


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

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

Modified files:

Index: src/share/misc/acronyms.comp
diff -u src/share/misc/acronyms.comp:1.364 src/share/misc/acronyms.comp:1.365
--- src/share/misc/acronyms.comp:1.364	Wed Sep 13 14:12:21 2023
+++ src/share/misc/acronyms.comp	Sat Sep 16 21:18:29 2023
@@ -1,4 +1,4 @@
-$NetBSD: acronyms.comp,v 1.364 2023/09/13 14:12:21 jschauma Exp $
+$NetBSD: acronyms.comp,v 1.365 2023/09/16 21:18:29 gutteridge Exp $
 3WHS	three-way handshake
 8VSB	8-state vestigial side band modulation
 AA	anti-aliasing
@@ -212,6 +212,7 @@ CAD	computer-aided design
 CAM	computer assisted manufacturing
 CAM	conditional access module
 CAM	content addressable memory
+CAN	controller area network
 CARP	Common Address Redundancy Protocol
 CAS	column address strobe
 CAS	compare and swap
@@ -1128,6 +1129,7 @@ OBO	off by one
 OBOE	off by one error
 OCL	object constraint language
 OCR	optical character recognition
+ODBC	Open Database Connectivity
 ODE	offline device environment
 ODI	open data-link interface
 ODM	object data manager



CVS commit: src/share/misc

2023-09-16 Thread David H. Gutteridge
Module Name:src
Committed By:   gutteridge
Date:   Sat Sep 16 21:18:29 UTC 2023

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

Log Message:
acronyms.comp: add CAN & ODBC


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

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



CVS commit: src/sys/arch

2023-09-16 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Sep 16 20:53:18 UTC 2023

Modified Files:
src/sys/arch/luna68k/luna68k: trap.c
src/sys/arch/x68k/x68k: trap.c

Log Message:
remove static from dumpssw() and dumpwb() declarations.

Fixes DEBUG enabled builds for luna68k and x68k.


To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/sys/arch/luna68k/luna68k/trap.c
cvs rdiff -u -r1.110 -r1.111 src/sys/arch/x68k/x68k/trap.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

2023-09-16 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Sep 16 20:53:18 UTC 2023

Modified Files:
src/sys/arch/luna68k/luna68k: trap.c
src/sys/arch/x68k/x68k: trap.c

Log Message:
remove static from dumpssw() and dumpwb() declarations.

Fixes DEBUG enabled builds for luna68k and x68k.


To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/sys/arch/luna68k/luna68k/trap.c
cvs rdiff -u -r1.110 -r1.111 src/sys/arch/x68k/x68k/trap.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/luna68k/luna68k/trap.c
diff -u src/sys/arch/luna68k/luna68k/trap.c:1.75 src/sys/arch/luna68k/luna68k/trap.c:1.76
--- src/sys/arch/luna68k/luna68k/trap.c:1.75	Sat Apr 22 10:00:24 2023
+++ src/sys/arch/luna68k/luna68k/trap.c	Sat Sep 16 20:53:18 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.75 2023/04/22 10:00:24 tsutsui Exp $ */
+/* $NetBSD: trap.c,v 1.76 2023/09/16 20:53:18 andvar Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.75 2023/04/22 10:00:24 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.76 2023/09/16 20:53:18 andvar Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -73,8 +73,8 @@ void  trap(struct frame *fp, int type, u
 
 #if defined(M68040)
 #ifdef DEBUG
-static void dumpssw(u_short);
-static void dumpwb(int, u_short, u_int, u_int);
+void dumpssw(u_short);
+void dumpwb(int, u_short, u_int, u_int);
 #endif
 #endif
 

Index: src/sys/arch/x68k/x68k/trap.c
diff -u src/sys/arch/x68k/x68k/trap.c:1.110 src/sys/arch/x68k/x68k/trap.c:1.111
--- src/sys/arch/x68k/x68k/trap.c:1.110	Sat Sep 25 19:16:31 2021
+++ src/sys/arch/x68k/x68k/trap.c	Sat Sep 16 20:53:18 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: trap.c,v 1.110 2021/09/25 19:16:31 tsutsui Exp $	*/
+/*	$NetBSD: trap.c,v 1.111 2023/09/16 20:53:18 andvar Exp $	*/
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.110 2021/09/25 19:16:31 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.111 2023/09/16 20:53:18 andvar Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -85,8 +85,8 @@ void	trap(struct frame *, int, u_int, u_
 
 #if defined(M68040) || defined(M68060)
 #ifdef DEBUG
-static void dumpssw(u_short);
-static void dumpwb(int, u_short, u_int, u_int);
+void dumpssw(u_short);
+void dumpwb(int, u_short, u_int, u_int);
 #endif
 #endif
 



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

2023-09-16 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Sep 16 18:56:40 UTC 2023

Modified Files:
src/sys/arch/sh3/dev: sci.c

Log Message:
sh3/sci(4): replace undefined scistatus with DPRINTF.

Fixes the build with SCI_DEBUG enabled.


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/sys/arch/sh3/dev/sci.c

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

Modified files:

Index: src/sys/arch/sh3/dev/sci.c
diff -u src/sys/arch/sh3/dev/sci.c:1.63 src/sys/arch/sh3/dev/sci.c:1.64
--- src/sys/arch/sh3/dev/sci.c:1.63	Sat Nov 21 17:25:52 2020
+++ src/sys/arch/sh3/dev/sci.c	Sat Sep 16 18:56:39 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: sci.c,v 1.63 2020/11/21 17:25:52 thorpej Exp $ */
+/* $NetBSD: sci.c,v 1.64 2023/09/16 18:56:39 andvar Exp $ */
 
 /*-
  * Copyright (C) 1999 T.Horiuchi and SAITOH Masanobu.  All rights reserved.
@@ -93,7 +93,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sci.c,v 1.63 2020/11/21 17:25:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sci.c,v 1.64 2023/09/16 18:56:39 andvar Exp $");
 
 #include "opt_kgdb.h"
 #include "opt_sci.h"
@@ -119,6 +119,13 @@ __KERNEL_RCSID(0, "$NetBSD: sci.c,v 1.63
 #include 
 #include 
 
+#ifdef SCI_DEBUG
+int sci_debug = 1;
+#define DPRINTF(x)	if (sci_debug) printf x
+#else
+#define DPRINTF(x)
+#endif
+
 static void	scistart(struct tty *);
 static int	sciparam(struct tty *, struct termios *);
 
@@ -573,10 +580,7 @@ sciparam(struct tty *tp, struct termios 
 
 	splx(s);
 
-#ifdef SCI_DEBUG
-	if (sci_debug)
-		scistatus(sc, "sciparam ");
-#endif
+	DPRINTF(("%s: sciparam\n", device_xname(sc->sc_dev)));
 
 	if (!ISSET(t->c_cflag, CHWFLOW)) {
 		if (sc->sc_tx_stopped) {
@@ -692,10 +696,7 @@ sciopen(dev_t dev, int flag, int mode, s
 		sci_hwiflow(sc);
 #endif
 
-#ifdef SCI_DEBUG
-		if (sci_debug)
-			scistatus(sc, "sciopen  ");
-#endif
+		DPRINTF(("%s: sciopen\n", device_xname(sc->sc_dev)));
 
 		splx(s2);
 	}
@@ -1025,10 +1026,7 @@ sci_stsoft(struct sci_softc *sc, struct 
 		}
 	}
 
-#ifdef SCI_DEBUG
-	if (sci_debug)
-		scistatus(sc, "sci_stsoft");
-#endif
+	DPRINTF(("%s: sci_stsoft\n", device_xname(sc->sc_dev)));
 #endif
 }
 
@@ -1217,10 +1215,8 @@ sciintr(void *arg)
 		if (ISSET(~msr, sc->sc_msr_mask)) {
 			sc->sc_tbc = 0;
 			sc->sc_heldtbc = 0;
-#ifdef SCI_DEBUG
-			if (sci_debug)
-scistatus(sc, "sciintr  ");
-#endif
+			
+			DPRINTF(("%s: sciintr\n", device_xname(sc->sc_dev)));
 		}
 
 		sc->sc_st_check = 1;



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

2023-09-16 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Sep 16 18:56:40 UTC 2023

Modified Files:
src/sys/arch/sh3/dev: sci.c

Log Message:
sh3/sci(4): replace undefined scistatus with DPRINTF.

Fixes the build with SCI_DEBUG enabled.


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/sys/arch/sh3/dev/sci.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-09-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Sep 16 18:41:57 UTC 2023

Modified Files:
src/doc: 3RDPARTY CHANGES

Log Message:
new tzcode


To generate a diff of this commit:
cvs rdiff -u -r1.1953 -r1.1954 src/doc/3RDPARTY
cvs rdiff -u -r1.3000 -r1.3001 src/doc/CHANGES

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.1953 src/doc/3RDPARTY:1.1954
--- src/doc/3RDPARTY:1.1953	Tue Sep  5 17:22:57 2023
+++ src/doc/3RDPARTY	Sat Sep 16 14:41:57 2023
@@ -1,4 +1,4 @@
-#	$NetBSD: 3RDPARTY,v 1.1953 2023/09/05 21:22:57 mrg Exp $
+#	$NetBSD: 3RDPARTY,v 1.1954 2023/09/16 18:41:57 christos Exp $
 #
 # This file contains a list of the software that has been integrated into
 # NetBSD where we are not the primary maintainer.
@@ -1426,14 +1426,14 @@ Location:	external/bsd/tradcpp
 Notes:
 
 Package:	tz
-Version:	tzcode2022g / tzdata2023cgtz
+Version:	tzcode2023c / tzdata2023cgtz
 Current Vers:	tzcode2023c / tzdata2023c
 Maintainer:	Paul Eggert 
 Archive Site:	ftp://ftp.iana.org/tz/releases/
 Archive Site:	ftp://munnari.oz.au/pub/oldtz/
 Old Archive Site:	ftp://elsie.nci.nih.gov/pub/
 Home Page:	http://www.iana.org/time-zones
-Date:		2022-12-11
+Date:		2023-09-16
 Mailing List:	t...@iana.org
 Responsible:	kleink, christos, kre
 License:	Public domain

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.3000 src/doc/CHANGES:1.3001
--- src/doc/CHANGES:1.3000	Wed Sep 13 05:27:53 2023
+++ src/doc/CHANGES	Sat Sep 16 14:41:57 2023
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.3000 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.3001 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -222,3 +222,4 @@ Changes from NetBSD 10.0 to NetBSD 11.0:
 	acpi(4): Updated ACPICA to 20230628. [christos 20230901] 
 	sqlite3(1): Import 3.34.0. [christos 20230904]
 	namecache: Tune the namecache for 32-bit systems [ad 20230909]
+	tzcode: Updated to 2023c. [christos 20230916]



CVS commit: src/doc

2023-09-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Sep 16 18:41:57 UTC 2023

Modified Files:
src/doc: 3RDPARTY CHANGES

Log Message:
new tzcode


To generate a diff of this commit:
cvs rdiff -u -r1.1953 -r1.1954 src/doc/3RDPARTY
cvs rdiff -u -r1.3000 -r1.3001 src/doc/CHANGES

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



CVS commit: src/lib/libc

2023-09-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Sep 16 18:40:26 UTC 2023

Modified Files:
src/lib/libc/compat/time: Makefile.inc
src/lib/libc/time: CONTRIBUTING Makefile NEWS asctime.c ctime.3
localtime.c private.h strftime.c theory.html tz-art.html
tz-how-to.html tz-link.html tzfile.5 tzselect.8 tzselect.ksh
tzset.3 version zdump.c zic.8 zic.c
Added Files:
src/lib/libc/compat/time: compat_asctime.c

Log Message:
Update tzcode from 2022g to 2023c:

Release 2023c - 2023-03-28 12:42:14 -0700

Release 2023b - 2023-03-23 19:50:38 -0700

Release 2023a - 2023-03-22 12:39:33 -0700

  Changes to code

You can now tell tzselect local time, to simplify later choices.
Select the 'time' option in its first prompt.

You can now compile with -DTZNAME_MAXIMUM=N to limit time zone
abbreviations to N bytes (default 255).  The reference runtime
library now rejects POSIX-style TZ strings that contain longer
abbreviations, treating them as UTC.  Previously the limit was
platform dependent and abbreviations were silently truncated to
16 bytes even when the limit was greater than 16.

The code by default is now designed for C99 or later.  To build in
a C89 environment, compile with -DPORT_TO_C89.  To support C89
callers of the tzcode library, compile with -DSUPPORT_C89.  The
two new macros are transitional aids planned to be removed in a
future version, when C99 or later will be required.

The code now builds again on pre-C99 platforms, if you compile
with -DPORT_TO_C89.  This fixes a bug introduced in 2022f.

On C23-compatible platforms tzcode no longer uses syntax like
'static [[noreturn]] void usage(void);'.  Instead, it uses
'[[noreturn]] static void usage(void);' as strict C23 requires.
(Problem reported by Houge Langley.)

The code's functions now constrain their arguments with the C
'restrict' keyword consistently with their documentation.
This may allow future optimizations.

zdump again builds standalone with ckdadd and without setenv,
fixing a bug introduced in 2022g.  (Problem reported by panic.)

leapseconds.awk can now process a leap seconds file that never
expires; this might be useful if leap seconds are discontinued.

  Changes to commentary

tz-link.html has a new section "Coordinating with governments and
distributors".  (Thanks to Neil Fuller for some of the text.)

To improve tzselect diagnostics, zone1970.tab's comments column is
now limited to countries that have multiple timezones.

Note that leap seconds are planned to be discontinued by 2035.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/compat/time/Makefile.inc
cvs rdiff -u -r0 -r1.1 src/lib/libc/compat/time/compat_asctime.c
cvs rdiff -u -r1.7 -r1.8 src/lib/libc/time/CONTRIBUTING
cvs rdiff -u -r1.54 -r1.55 src/lib/libc/time/Makefile
cvs rdiff -u -r1.41 -r1.42 src/lib/libc/time/NEWS
cvs rdiff -u -r1.28 -r1.29 src/lib/libc/time/asctime.c
cvs rdiff -u -r1.70 -r1.71 src/lib/libc/time/ctime.3
cvs rdiff -u -r1.137 -r1.138 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.65 -r1.66 src/lib/libc/time/private.h
cvs rdiff -u -r1.51 -r1.52 src/lib/libc/time/strftime.c
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/time/theory.html
cvs rdiff -u -r1.10 -r1.11 src/lib/libc/time/tz-art.html
cvs rdiff -u -r1.9 -r1.10 src/lib/libc/time/tz-how-to.html
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/time/tz-link.html \
src/lib/libc/time/tzselect.8
cvs rdiff -u -r1.33 -r1.34 src/lib/libc/time/tzfile.5
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/time/tzselect.ksh
cvs rdiff -u -r1.45 -r1.46 src/lib/libc/time/tzset.3
cvs rdiff -u -r1.23 -r1.24 src/lib/libc/time/version
cvs rdiff -u -r1.61 -r1.62 src/lib/libc/time/zdump.c
cvs rdiff -u -r1.42 -r1.43 src/lib/libc/time/zic.8
cvs rdiff -u -r1.89 -r1.90 src/lib/libc/time/zic.c

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

Modified files:

Index: src/lib/libc/compat/time/Makefile.inc
diff -u src/lib/libc/compat/time/Makefile.inc:1.2 src/lib/libc/compat/time/Makefile.inc:1.3
--- src/lib/libc/compat/time/Makefile.inc:1.2	Sat Jan 10 22:46:25 2009
+++ src/lib/libc/compat/time/Makefile.inc	Sat Sep 16 14:40:26 2023
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.2 2009/01/11 03:46:25 christos Exp $
+#	$NetBSD: Makefile.inc,v 1.3 2023/09/16 18:40:26 christos Exp $
 
 .PATH: ${COMPATDIR}/time
-SRCS+= compat_localtime.c compat_difftime.c
+SRCS+= compat_asctime.c compat_localtime.c compat_difftime.c

Index: src/lib/libc/time/CONTRIBUTING
diff -u src/lib/libc/time/CONTRIBUTING:1.7 src/lib/libc/time/CONTRIBUTING:1.8
--- src/lib/libc/time/CONTRIBUTING:1.7	Tue Mar 22 13:48:39 2022
+++ src/lib/libc/time/CONTRIBUTING	Sat Sep 16 14:40:26 2023
@@ -18,7 +18,7 @@ To email small changes, please run a POS
 'diff -u old/europe new/europe >myfix.patch', and attach
 'myfix.patch' to 

CVS commit: src/lib/libc

2023-09-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Sep 16 18:40:26 UTC 2023

Modified Files:
src/lib/libc/compat/time: Makefile.inc
src/lib/libc/time: CONTRIBUTING Makefile NEWS asctime.c ctime.3
localtime.c private.h strftime.c theory.html tz-art.html
tz-how-to.html tz-link.html tzfile.5 tzselect.8 tzselect.ksh
tzset.3 version zdump.c zic.8 zic.c
Added Files:
src/lib/libc/compat/time: compat_asctime.c

Log Message:
Update tzcode from 2022g to 2023c:

Release 2023c - 2023-03-28 12:42:14 -0700

Release 2023b - 2023-03-23 19:50:38 -0700

Release 2023a - 2023-03-22 12:39:33 -0700

  Changes to code

You can now tell tzselect local time, to simplify later choices.
Select the 'time' option in its first prompt.

You can now compile with -DTZNAME_MAXIMUM=N to limit time zone
abbreviations to N bytes (default 255).  The reference runtime
library now rejects POSIX-style TZ strings that contain longer
abbreviations, treating them as UTC.  Previously the limit was
platform dependent and abbreviations were silently truncated to
16 bytes even when the limit was greater than 16.

The code by default is now designed for C99 or later.  To build in
a C89 environment, compile with -DPORT_TO_C89.  To support C89
callers of the tzcode library, compile with -DSUPPORT_C89.  The
two new macros are transitional aids planned to be removed in a
future version, when C99 or later will be required.

The code now builds again on pre-C99 platforms, if you compile
with -DPORT_TO_C89.  This fixes a bug introduced in 2022f.

On C23-compatible platforms tzcode no longer uses syntax like
'static [[noreturn]] void usage(void);'.  Instead, it uses
'[[noreturn]] static void usage(void);' as strict C23 requires.
(Problem reported by Houge Langley.)

The code's functions now constrain their arguments with the C
'restrict' keyword consistently with their documentation.
This may allow future optimizations.

zdump again builds standalone with ckdadd and without setenv,
fixing a bug introduced in 2022g.  (Problem reported by panic.)

leapseconds.awk can now process a leap seconds file that never
expires; this might be useful if leap seconds are discontinued.

  Changes to commentary

tz-link.html has a new section "Coordinating with governments and
distributors".  (Thanks to Neil Fuller for some of the text.)

To improve tzselect diagnostics, zone1970.tab's comments column is
now limited to countries that have multiple timezones.

Note that leap seconds are planned to be discontinued by 2035.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/compat/time/Makefile.inc
cvs rdiff -u -r0 -r1.1 src/lib/libc/compat/time/compat_asctime.c
cvs rdiff -u -r1.7 -r1.8 src/lib/libc/time/CONTRIBUTING
cvs rdiff -u -r1.54 -r1.55 src/lib/libc/time/Makefile
cvs rdiff -u -r1.41 -r1.42 src/lib/libc/time/NEWS
cvs rdiff -u -r1.28 -r1.29 src/lib/libc/time/asctime.c
cvs rdiff -u -r1.70 -r1.71 src/lib/libc/time/ctime.3
cvs rdiff -u -r1.137 -r1.138 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.65 -r1.66 src/lib/libc/time/private.h
cvs rdiff -u -r1.51 -r1.52 src/lib/libc/time/strftime.c
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/time/theory.html
cvs rdiff -u -r1.10 -r1.11 src/lib/libc/time/tz-art.html
cvs rdiff -u -r1.9 -r1.10 src/lib/libc/time/tz-how-to.html
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/time/tz-link.html \
src/lib/libc/time/tzselect.8
cvs rdiff -u -r1.33 -r1.34 src/lib/libc/time/tzfile.5
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/time/tzselect.ksh
cvs rdiff -u -r1.45 -r1.46 src/lib/libc/time/tzset.3
cvs rdiff -u -r1.23 -r1.24 src/lib/libc/time/version
cvs rdiff -u -r1.61 -r1.62 src/lib/libc/time/zdump.c
cvs rdiff -u -r1.42 -r1.43 src/lib/libc/time/zic.8
cvs rdiff -u -r1.89 -r1.90 src/lib/libc/time/zic.c

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



CVS commit: src/include

2023-09-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Sep 16 18:19:30 UTC 2023

Modified Files:
src/include: tzfile.h

Log Message:
sync with tzcode 2023c


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/include/tzfile.h

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

Modified files:

Index: src/include/tzfile.h
diff -u src/include/tzfile.h:1.11 src/include/tzfile.h:1.12
--- src/include/tzfile.h:1.11	Tue Aug 16 05:03:04 2022
+++ src/include/tzfile.h	Sat Sep 16 14:19:30 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: tzfile.h,v 1.11 2022/08/16 09:03:04 christos Exp $	*/
+/*	$NetBSD: tzfile.h,v 1.12 2023/09/16 18:19:30 christos Exp $	*/
 
 #ifndef _TZFILE_H_
 #define _TZFILE_H_
@@ -102,20 +102,24 @@ struct tzhead {
 */
 
 #ifndef TZ_MAX_TIMES
+/* This must be at least 242 for Europe/London with 'zic -b fat'.  */
 # define TZ_MAX_TIMES 2000
 #endif /* !defined TZ_MAX_TIMES */
 
 #ifndef TZ_MAX_TYPES
-/* This must be at least 17 for Europe/Samara and Europe/Vilnius.  */
+/* This must be at least 18 for Europe/Vilnius with 'zic -b fat'.  */
 # define TZ_MAX_TYPES 256 /* Limited by what (unsigned char)'s can hold */
 #endif /* !defined TZ_MAX_TYPES */
 
 #ifndef TZ_MAX_CHARS
+/* This must be at least 40 for America/Anchorage.  */
 # define TZ_MAX_CHARS 50	/* Maximum number of abbreviation characters */
 /* (limited by what unsigned chars can hold) */
 #endif /* !defined TZ_MAX_CHARS */
 
 #ifndef TZ_MAX_LEAPS
+/* This must be at least 27 for leap seconds from 1972 through mid-2023.
+   There's a plan to discontinue leap seconds by 2035.  */
 # define TZ_MAX_LEAPS 50	/* Maximum number of leap second corrections */
 #endif /* !defined TZ_MAX_LEAPS */
 



CVS commit: src/include

2023-09-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Sep 16 18:19:30 UTC 2023

Modified Files:
src/include: tzfile.h

Log Message:
sync with tzcode 2023c


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/include/tzfile.h

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



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

2023-09-16 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Sep 16 15:42:01 UTC 2023

Modified Files:
src/sys/arch/sh3/dev: scif.c

Log Message:
sh3/scif(4): redefine DPRINTF again, not all SH ports has machine/debug.h.
Those are defined for hpc only.

unbreaks build for evbsh some kernel configs and SFIC_DEBUG still builds.


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/arch/sh3/dev/scif.c

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

Modified files:

Index: src/sys/arch/sh3/dev/scif.c
diff -u src/sys/arch/sh3/dev/scif.c:1.69 src/sys/arch/sh3/dev/scif.c:1.70
--- src/sys/arch/sh3/dev/scif.c:1.69	Fri Sep 15 20:59:56 2023
+++ src/sys/arch/sh3/dev/scif.c	Sat Sep 16 15:42:01 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: scif.c,v 1.69 2023/09/15 20:59:56 andvar Exp $ */
+/*	$NetBSD: scif.c,v 1.70 2023/09/16 15:42:01 andvar Exp $ */
 
 /*-
  * Copyright (C) 1999 T.Horiuchi and SAITOH Masanobu.  All rights reserved.
@@ -93,7 +93,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: scif.c,v 1.69 2023/09/15 20:59:56 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scif.c,v 1.70 2023/09/16 15:42:01 andvar Exp $");
 
 #include "opt_kgdb.h"
 #include "opt_scif.h"
@@ -177,10 +177,11 @@ struct scif_softc {
 };
 
 #ifdef SCIF_DEBUG
-#define DPRINTF_ENABLE
-#define DPRINTF_DEBUG	scif_debug
+int scif_debug = 1;
+#define DPRINTF(x)	if (scif_debug) printf x
+#else
+#define DPRINTF(x)
 #endif
-#include 
 
 static int scif_match(device_t, cfdata_t, void *);
 static void scif_attach(device_t, device_t, void *);
@@ -688,7 +689,7 @@ scifparam(struct tty *tp, struct termios
 
 	splx(s);
 
-	DPRINTF("%s: scifparam\n", device_xname(sc->sc_dev));
+	DPRINTF(("%s: scifparam\n", device_xname(sc->sc_dev)));
 
 	if (!ISSET(t->c_cflag, CHWFLOW)) {
 		if (sc->sc_tx_stopped) {
@@ -799,7 +800,7 @@ scifopen(dev_t dev, int flag, int mode, 
 		scif_hwiflow(sc);
 #endif
 
-		DPRINTF("%s: scifopen\n", device_xname(sc->sc_dev));
+		DPRINTF(("%s: scifopen\n", device_xname(sc->sc_dev)));
 
 		splx(s2);
 	}
@@ -1147,7 +1148,7 @@ scif_stsoft(struct scif_softc *sc, struc
 		}
 	}
 
-	DPRINTF("%s: scif_stsoft\n", device_xname(sc->sc_dev));
+	DPRINTF(("%s: scif_stsoft\n", device_xname(sc->sc_dev)));
 }
 #endif /* 0 */
 
@@ -1343,7 +1344,7 @@ scifintr(void *arg)
 		if (ISSET(~msr, sc->sc_msr_mask)) {
 			sc->sc_tbc = 0;
 			sc->sc_heldtbc = 0;
-			DPRINTF("%s: scifintr\n", device_xname(sc->sc_dev));
+			DPRINTF(("%s: scifintr\n", device_xname(sc->sc_dev)));
 		}
 
 		sc->sc_st_check = 1;



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

2023-09-16 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Sep 16 15:42:01 UTC 2023

Modified Files:
src/sys/arch/sh3/dev: scif.c

Log Message:
sh3/scif(4): redefine DPRINTF again, not all SH ports has machine/debug.h.
Those are defined for hpc only.

unbreaks build for evbsh some kernel configs and SFIC_DEBUG still builds.


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/arch/sh3/dev/scif.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/x86/include

2023-09-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Sep 16 13:37:10 UTC 2023

Modified Files:
src/sys/arch/x86/include: ieee.h

Log Message:
protect against multiple inclusion


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/x86/include/ieee.h

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



CVS commit: src/sys/arch/x86/include

2023-09-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Sep 16 13:37:10 UTC 2023

Modified Files:
src/sys/arch/x86/include: ieee.h

Log Message:
protect against multiple inclusion


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/x86/include/ieee.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/x86/include/ieee.h
diff -u src/sys/arch/x86/include/ieee.h:1.11 src/sys/arch/x86/include/ieee.h:1.12
--- src/sys/arch/x86/include/ieee.h:1.11	Wed Sep 15 12:11:28 2010
+++ src/sys/arch/x86/include/ieee.h	Sat Sep 16 09:37:10 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: ieee.h,v 1.11 2010/09/15 16:11:28 christos Exp $ */
+/*	$NetBSD: ieee.h,v 1.12 2023/09/16 13:37:10 christos Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -39,6 +39,8 @@
  *
  *	@(#)ieee.h	8.1 (Berkeley) 6/11/93
  */
+#ifndef _X86_IEEE_H_
+#define _X86_IEEE_H_
 
 /*
  * ieee.h defines the machine-dependent layout of the machine's IEEE
@@ -115,3 +117,5 @@ union ieee_ext_u {
 
 #define LDBL_NBIT	0x8000
 #define mask_nbit_l(u)	((u).extu_frach &= ~LDBL_NBIT)
+
+#endif /* _X86_IEEE_H_ */