CVS commit: src/usr.bin/make

2022-03-22 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Mar 22 23:37:10 UTC 2022

Modified Files:
src/usr.bin/make: main.c

Log Message:
make: clean up comments and code for setting debug flags

No binary change.


To generate a diff of this commit:
cvs rdiff -u -r1.578 -r1.579 src/usr.bin/make/main.c

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

Modified files:

Index: src/usr.bin/make/main.c
diff -u src/usr.bin/make/main.c:1.578 src/usr.bin/make/main.c:1.579
--- src/usr.bin/make/main.c:1.578	Wed Feb  9 20:52:06 2022
+++ src/usr.bin/make/main.c	Tue Mar 22 23:37:09 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.578 2022/02/09 20:52:06 rillig Exp $	*/
+/*	$NetBSD: main.c,v 1.579 2022/03/22 23:37:09 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -111,7 +111,7 @@
 #include "trace.h"
 
 /*	"@(#)main.c	8.3 (Berkeley) 3/19/94"	*/
-MAKE_RCSID("$NetBSD: main.c,v 1.578 2022/02/09 20:52:06 rillig Exp $");
+MAKE_RCSID("$NetBSD: main.c,v 1.579 2022/03/22 23:37:09 rillig Exp $");
 #if defined(MAKE_NATIVE) && !defined(lint)
 __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993 "
 	"The Regents of the University of California.  "
@@ -314,7 +314,7 @@ MainParseArgDebug(const char *argvalue)
 			break;
 		case 'F':
 			MainParseArgDebugFile(modules + 1);
-			goto debug_setbuf;
+			goto finish;
 		default:
 			(void)fprintf(stderr,
 			"%s: illegal argument to d option -- %c\n",
@@ -323,20 +323,15 @@ MainParseArgDebug(const char *argvalue)
 		}
 	}
 
-debug_setbuf:
+finish:
 	opts.debug = debug;
 
-	/*
-	 * Make the debug_file unbuffered, and make
-	 * stdout line buffered (unless debugfile == stdout).
-	 */
 	setvbuf(opts.debug_file, NULL, _IONBF, 0);
-	if (opts.debug_file != stdout) {
+	if (opts.debug_file != stdout)
 		setvbuf(stdout, NULL, _IOLBF, 0);
-	}
 }
 
-/* Is path relative, or does it contain any relative component "." or ".."? */
+/* Is path relative or does it contain any relative component "." or ".."? */
 static bool
 IsRelativePath(const char *path)
 {



CVS commit: src/usr.bin/make

2022-03-22 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Mar 22 23:37:10 UTC 2022

Modified Files:
src/usr.bin/make: main.c

Log Message:
make: clean up comments and code for setting debug flags

No binary change.


To generate a diff of this commit:
cvs rdiff -u -r1.578 -r1.579 src/usr.bin/make/main.c

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



CVS commit: src

2022-03-22 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Tue Mar 22 21:45:13 UTC 2022

Modified Files:
src/lib/libc/rpc: svc_auth.c
src/sys/dev/ic: mfireg.h

Log Message:
fix typos in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/rpc/svc_auth.c
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/ic/mfireg.h

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/rpc/svc_auth.c
diff -u src/lib/libc/rpc/svc_auth.c:1.17 src/lib/libc/rpc/svc_auth.c:1.18
--- src/lib/libc/rpc/svc_auth.c:1.17	Mon Mar 11 20:19:29 2013
+++ src/lib/libc/rpc/svc_auth.c	Tue Mar 22 21:45:13 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: svc_auth.c,v 1.17 2013/03/11 20:19:29 tron Exp $	*/
+/*	$NetBSD: svc_auth.c,v 1.18 2022/03/22 21:45:13 andvar Exp $	*/
 
 /*
  * Copyright (c) 2010, Oracle America, Inc.
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)svc_auth.c 1.26 89/02/07 Copyr 1984 Sun Micro";
 #else
-__RCSID("$NetBSD: svc_auth.c,v 1.17 2013/03/11 20:19:29 tron Exp $");
+__RCSID("$NetBSD: svc_auth.c,v 1.18 2022/03/22 21:45:13 andvar Exp $");
 #endif
 #endif
 
@@ -92,7 +92,7 @@ static struct authsvc *Auths = NULL;
  * set rqst->rq_xprt->verf to the appropriate response verifier;
  * sets rqst->rq_client_cred to the "cooked" form of the credentials.
  *
- * NB: rqst->rq_cxprt->verf must be pre-alloctaed;
+ * NB: rqst->rq_cxprt->verf must be pre-allocated;
  * its length is set appropriately.
  *
  * The caller still owns and is responsible for msg->u.cmb.cred and

Index: src/sys/dev/ic/mfireg.h
diff -u src/sys/dev/ic/mfireg.h:1.12 src/sys/dev/ic/mfireg.h:1.13
--- src/sys/dev/ic/mfireg.h:1.12	Sat Nov  6 06:52:48 2021
+++ src/sys/dev/ic/mfireg.h	Tue Mar 22 21:45:13 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: mfireg.h,v 1.12 2021/11/06 06:52:48 msaitoh Exp $ */
+/* $NetBSD: mfireg.h,v 1.13 2022/03/22 21:45:13 andvar Exp $ */
 /* $OpenBSD: mfireg.h,v 1.24 2006/06/19 19:05:45 marco Exp $ */
 /*
  * Copyright (c) 2006 Marco Peereboom 
@@ -184,7 +184,7 @@
   ) / sizeof(mpi2_sge_io_union))
 
 /*
- * (Command frame size allocaed in SRB ext - Raid SCSI IO message size)
+ * (Command frame size allocated in SRB ext - Raid SCSI IO message size)
  * / size of SGL ;
  * (1280 - 256) / 16 = 64
  */



CVS commit: src

2022-03-22 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Tue Mar 22 21:45:13 UTC 2022

Modified Files:
src/lib/libc/rpc: svc_auth.c
src/sys/dev/ic: mfireg.h

Log Message:
fix typos in comments.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/rpc/svc_auth.c
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/ic/mfireg.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/hppa/include

2022-03-22 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Tue Mar 22 18:32:51 UTC 2022

Modified Files:
src/sys/arch/hppa/include: param.h

Log Message:
bump MSGBUFSIZE


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/hppa/include/param.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/hppa/include

2022-03-22 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Tue Mar 22 18:32:51 UTC 2022

Modified Files:
src/sys/arch/hppa/include: param.h

Log Message:
bump MSGBUFSIZE


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/hppa/include/param.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/hppa/include/param.h
diff -u src/sys/arch/hppa/include/param.h:1.29 src/sys/arch/hppa/include/param.h:1.30
--- src/sys/arch/hppa/include/param.h:1.29	Mon May 31 14:38:55 2021
+++ src/sys/arch/hppa/include/param.h	Tue Mar 22 18:32:51 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: param.h,v 1.29 2021/05/31 14:38:55 simonb Exp $	*/
+/*	$NetBSD: param.h,v 1.30 2022/03/22 18:32:51 macallan Exp $	*/
 
 /*	$OpenBSD: param.h,v 1.12 2001/07/06 02:07:41 provos Exp $	*/
 
@@ -64,7 +64,7 @@
 #define	USPACE		(UPAGES * NBPG)	/* pages for user struct and kstack */
 
 #ifndef	MSGBUFSIZE
-#define	MSGBUFSIZE	(2 * NBPG)	/* default message buffer size */
+#define	MSGBUFSIZE	(4 * NBPG)	/* default message buffer size */
 #endif
 
 /*



CVS commit: src/doc

2022-03-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Mar 22 17:49:31 UTC 2022

Modified Files:
src/doc: 3RDPARTY CHANGES

Log Message:
new tzcode


To generate a diff of this commit:
cvs rdiff -u -r1.1846 -r1.1847 src/doc/3RDPARTY
cvs rdiff -u -r1.2866 -r1.2867 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.1846 src/doc/3RDPARTY:1.1847
--- src/doc/3RDPARTY:1.1846	Sun Mar 20 14:04:52 2022
+++ src/doc/3RDPARTY	Tue Mar 22 13:49:30 2022
@@ -1,4 +1,4 @@
-#	$NetBSD: 3RDPARTY,v 1.1846 2022/03/20 18:04:52 kre Exp $
+#	$NetBSD: 3RDPARTY,v 1.1847 2022/03/22 17:49:30 christos Exp $
 #
 # This file contains a list of the software that has been integrated into
 # NetBSD where we are not the primary maintainer.
@@ -1410,7 +1410,7 @@ Notes:
 Added changes from a5 -> a12 manually.
 
 Package:	tz
-Version:	tzcode2021e / tzdata2022agtz
+Version:	tzcode2022a / tzdata2022agtz
 Current Vers:	tzcode2022a / tzdata2022a
 Maintainer:	Paul Eggert 
 Archive Site:	ftp://ftp.iana.org/tz/releases/

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.2866 src/doc/CHANGES:1.2867
--- src/doc/CHANGES:1.2866	Sun Mar 20 14:04:52 2022
+++ src/doc/CHANGES	Tue Mar 22 13:49:30 2022
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2866 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2867 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -484,4 +484,4 @@ Changes from NetBSD 9.0 to NetBSD 10.0:
 	OpenSSL: Imported 1.1.1n. [christos 20220315]
 	tzdata: updated to 2022a (using the 2022agtz fork to restore data
 		from previously merged zones) [kre 20220320] 
-
+	tzcode: Updated to 2022a. [christos 20220322]



CVS commit: src/doc

2022-03-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Mar 22 17:49:31 UTC 2022

Modified Files:
src/doc: 3RDPARTY CHANGES

Log Message:
new tzcode


To generate a diff of this commit:
cvs rdiff -u -r1.1846 -r1.1847 src/doc/3RDPARTY
cvs rdiff -u -r1.2866 -r1.2867 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/time

2022-03-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Mar 22 17:48:39 UTC 2022

Modified Files:
src/lib/libc/time: CONTRIBUTING Makefile NEWS localtime.c private.h
theory.html tz-link.html tzselect.8 tzselect.ksh version zdump.c
zic.c

Log Message:
welcome to tzcode-2022a

  Changes to code

Fix bug when mktime gets confused by truncated TZif files with
unspecified local time.  (Problem reported by Almaz Mingaleev.)

Fix bug when 32-bit time_t code reads malformed 64-bit TZif data.
(Problem reported by Christos Zoulas.)

When reading a version 2 or later TZif file, the TZif reader now
validates the version 1 header and data block only enough to skip
over them, as recommended by RFC 8536 section 4.  Also, the TZif
reader no longer mistakenly attempts to parse a version 1 TZIf
file header as a TZ string.

zdump -v now outputs "(localtime failed)" and "(gmtime failed)"
when local time and UT cannot be determined for a timestamp.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/time/CONTRIBUTING
cvs rdiff -u -r1.49 -r1.50 src/lib/libc/time/Makefile
cvs rdiff -u -r1.34 -r1.35 src/lib/libc/time/NEWS
cvs rdiff -u -r1.126 -r1.127 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.57 -r1.58 src/lib/libc/time/private.h
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/time/theory.html
cvs rdiff -u -r1.10 -r1.11 src/lib/libc/time/tz-link.html
cvs rdiff -u -r1.9 -r1.10 src/lib/libc/time/tzselect.8
cvs rdiff -u -r1.18 -r1.19 src/lib/libc/time/tzselect.ksh
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/time/version
cvs rdiff -u -r1.55 -r1.56 src/lib/libc/time/zdump.c
cvs rdiff -u -r1.80 -r1.81 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/time/CONTRIBUTING
diff -u src/lib/libc/time/CONTRIBUTING:1.6 src/lib/libc/time/CONTRIBUTING:1.7
--- src/lib/libc/time/CONTRIBUTING:1.6	Fri Oct 22 10:26:04 2021
+++ src/lib/libc/time/CONTRIBUTING	Tue Mar 22 13:48:39 2022
@@ -1,53 +1,58 @@
-Contributing to the tz code and data
+# Contributing to the tz code and data
+
+Please do not create issues or pull requests on GitHub, as the
+proper procedure for proposing and distributing patches is via
+email as described below.
 
 The time zone database is by no means authoritative: governments
 change timekeeping rules erratically and sometimes with little
 warning, the data entries do not cover all of civil time before
 1970, and undoubtedly errors remain in the code and data.  Feel
 free to fill gaps or fix mistakes, and please email improvements
-to t...@iana.org for use in the future.  In your email, please give
+to  for use in the future.  In your email, please give
 reliable sources that reviewers can check.
 
--
-
-Developers can contribute technical changes to the source code and
-data as follows.
+## Contributing technical changes
 
 To email small changes, please run a POSIX shell command like
 'diff -u old/europe new/europe >myfix.patch', and attach
-myfix.patch to the email.
+'myfix.patch' to the email.
 
 For more-elaborate or possibly-controversial changes,
 such as renaming, adding or removing zones, please read
- or the file
-theory.html.  It is also good to browse the mailing list archives
+"Theory and pragmatics of the tz code and data"
+.
+It is also good to browse the mailing list archives
  for examples of patches that tend
 to work well.  Additions to data should contain commentary citing
-reliable sources as justification.  Citations should use https: URLs
+reliable sources as justification.  Citations should use "https:" URLs
 if available.
 
 For changes that fix sensitive security-related bugs, please see the
-file SECURITY.
+distribution's 'SECURITY' file.
 
-Please submit changes against either the latest release in
+Please submit changes against either the latest release
  or the main branch of the development
-repository.  The latter is preferred.  If you use Git the following
-workflow may be helpful:
+repository.  The latter is preferred.
+
+## Sample Git workflow for developing contributions
+
+If you use Git the following workflow may be helpful:
 
   * Copy the development repository.
 
-  git clone https://github.com/eggert/tz.git
-  cd tz
+git clone https://github.com/eggert/tz.git
+cd tz
 
   * Get current with the main branch.
 
-  git checkout main
-  git pull
+git checkout main
+git pull
 
   * Switch to a new branch for the changes.  Choose a different
 branch name for each change set.
 
-  git checkout -b mybranch
+git checkout -b mybranch
 
   * Sleuth by using 'git blame'.  For example, when fixing data for
 Africa/Sao_Tome, if the comm

CVS commit: src/lib/libc/time

2022-03-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Mar 22 17:48:39 UTC 2022

Modified Files:
src/lib/libc/time: CONTRIBUTING Makefile NEWS localtime.c private.h
theory.html tz-link.html tzselect.8 tzselect.ksh version zdump.c
zic.c

Log Message:
welcome to tzcode-2022a

  Changes to code

Fix bug when mktime gets confused by truncated TZif files with
unspecified local time.  (Problem reported by Almaz Mingaleev.)

Fix bug when 32-bit time_t code reads malformed 64-bit TZif data.
(Problem reported by Christos Zoulas.)

When reading a version 2 or later TZif file, the TZif reader now
validates the version 1 header and data block only enough to skip
over them, as recommended by RFC 8536 section 4.  Also, the TZif
reader no longer mistakenly attempts to parse a version 1 TZIf
file header as a TZ string.

zdump -v now outputs "(localtime failed)" and "(gmtime failed)"
when local time and UT cannot be determined for a timestamp.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/time/CONTRIBUTING
cvs rdiff -u -r1.49 -r1.50 src/lib/libc/time/Makefile
cvs rdiff -u -r1.34 -r1.35 src/lib/libc/time/NEWS
cvs rdiff -u -r1.126 -r1.127 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.57 -r1.58 src/lib/libc/time/private.h
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/time/theory.html
cvs rdiff -u -r1.10 -r1.11 src/lib/libc/time/tz-link.html
cvs rdiff -u -r1.9 -r1.10 src/lib/libc/time/tzselect.8
cvs rdiff -u -r1.18 -r1.19 src/lib/libc/time/tzselect.ksh
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/time/version
cvs rdiff -u -r1.55 -r1.56 src/lib/libc/time/zdump.c
cvs rdiff -u -r1.80 -r1.81 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.