CVS commit: src/common/lib/libc/misc
Module Name:src Committed By: andvar Date: Thu Dec 7 07:10:44 UTC 2023 Modified Files: src/common/lib/libc/misc: ubsan.c Log Message: s/miltiple/multiple/ in comment. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/common/lib/libc/misc/ubsan.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/common/lib/libc/misc/ubsan.c diff -u src/common/lib/libc/misc/ubsan.c:1.11 src/common/lib/libc/misc/ubsan.c:1.12 --- src/common/lib/libc/misc/ubsan.c:1.11 Sun Sep 19 10:34:06 2021 +++ src/common/lib/libc/misc/ubsan.c Thu Dec 7 07:10:44 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: ubsan.c,v 1.11 2021/09/19 10:34:06 andvar Exp $ */ +/* $NetBSD: ubsan.c,v 1.12 2023/12/07 07:10:44 andvar Exp $ */ /*- * Copyright (c) 2018 The NetBSD Foundation, Inc. @@ -38,9 +38,9 @@ #include #if defined(_KERNEL) -__KERNEL_RCSID(0, "$NetBSD: ubsan.c,v 1.11 2021/09/19 10:34:06 andvar Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ubsan.c,v 1.12 2023/12/07 07:10:44 andvar Exp $"); #else -__RCSID("$NetBSD: ubsan.c,v 1.11 2021/09/19 10:34:06 andvar Exp $"); +__RCSID("$NetBSD: ubsan.c,v 1.12 2023/12/07 07:10:44 andvar Exp $"); #endif #if defined(_KERNEL) @@ -1249,7 +1249,7 @@ __ubsan_get_current_report_data(const ch * interrupt handling etc). * * A proper solution would need probably a lock-free bounded queue built - * with atomic operations with the property of miltiple consumers and + * with atomic operations with the property of multiple consumers and * multiple producers. Maintaining and validating such code is not * worth the effort. *
CVS commit: src/common/lib/libc/misc
Module Name:src Committed By: andvar Date: Thu Dec 7 07:10:44 UTC 2023 Modified Files: src/common/lib/libc/misc: ubsan.c Log Message: s/miltiple/multiple/ in comment. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/common/lib/libc/misc/ubsan.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/scsipi
Module Name:src Committed By: andvar Date: Thu Dec 7 07:04:13 UTC 2023 Modified Files: src/sys/dev/scsipi: scsi_disk.h Log Message: s/multiplcation/multiplication/ in comment. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/sys/dev/scsipi/scsi_disk.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/scsipi
Module Name:src Committed By: andvar Date: Thu Dec 7 07:04:13 UTC 2023 Modified Files: src/sys/dev/scsipi: scsi_disk.h Log Message: s/multiplcation/multiplication/ in comment. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/sys/dev/scsipi/scsi_disk.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/dev/scsipi/scsi_disk.h diff -u src/sys/dev/scsipi/scsi_disk.h:1.34 src/sys/dev/scsipi/scsi_disk.h:1.35 --- src/sys/dev/scsipi/scsi_disk.h:1.34 Wed Nov 10 16:17:34 2021 +++ src/sys/dev/scsipi/scsi_disk.h Thu Dec 7 07:04:13 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: scsi_disk.h,v 1.34 2021/11/10 16:17:34 msaitoh Exp $ */ +/* $NetBSD: scsi_disk.h,v 1.35 2023/12/07 07:04:13 andvar Exp $ */ /* * SCSI-specific interface description @@ -333,7 +333,7 @@ union scsi_disk_pages { u_int8_t pg_length; /* page length (should be 0x0a) */ u_int8_t flags; /* cache parameter flags */ #define CACHING_RCD 0x01 /* read cache disable */ -#define CACHING_MF 0x02 /* multiplcation factor */ +#define CACHING_MF 0x02 /* multiplication factor */ #define CACHING_WCE 0x04 /* write cache enable (write-back) */ #define CACHING_SIZE 0x08 /* use CACHE SEGMENT SIZE */ #define CACHING_DISC 0x10 /* pftch across time discontinuities */
CVS commit: src/sys/arch/arc
Module Name:src Committed By: thorpej Date: Thu Dec 7 03:46:10 UTC 2023 Modified Files: src/sys/arch/arc/arc: bus_space.c machdep.c wired_map_machdep.c src/sys/arch/arc/include: bus_defs.h bus_funcs.h src/sys/arch/arc/isa: isabus.c src/sys/arch/arc/pci: necpb.c Log Message: extent(9) -> vmem(9) To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/arch/arc/arc/bus_space.c cvs rdiff -u -r1.131 -r1.132 src/sys/arch/arc/arc/machdep.c cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arc/arc/wired_map_machdep.c cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arc/include/bus_defs.h \ src/sys/arch/arc/include/bus_funcs.h cvs rdiff -u -r1.53 -r1.54 src/sys/arch/arc/isa/isabus.c cvs rdiff -u -r1.48 -r1.49 src/sys/arch/arc/pci/necpb.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/arc
Module Name:src Committed By: thorpej Date: Thu Dec 7 03:46:10 UTC 2023 Modified Files: src/sys/arch/arc/arc: bus_space.c machdep.c wired_map_machdep.c src/sys/arch/arc/include: bus_defs.h bus_funcs.h src/sys/arch/arc/isa: isabus.c src/sys/arch/arc/pci: necpb.c Log Message: extent(9) -> vmem(9) To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/arch/arc/arc/bus_space.c cvs rdiff -u -r1.131 -r1.132 src/sys/arch/arc/arc/machdep.c cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arc/arc/wired_map_machdep.c cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arc/include/bus_defs.h \ src/sys/arch/arc/include/bus_funcs.h cvs rdiff -u -r1.53 -r1.54 src/sys/arch/arc/isa/isabus.c cvs rdiff -u -r1.48 -r1.49 src/sys/arch/arc/pci/necpb.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/arc/arc/bus_space.c diff -u src/sys/arch/arc/arc/bus_space.c:1.12 src/sys/arch/arc/arc/bus_space.c:1.13 --- src/sys/arch/arc/arc/bus_space.c:1.12 Fri Jan 27 18:52:49 2012 +++ src/sys/arch/arc/arc/bus_space.c Thu Dec 7 03:46:10 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: bus_space.c,v 1.12 2012/01/27 18:52:49 para Exp $ */ +/* $NetBSD: bus_space.c,v 1.13 2023/12/07 03:46:10 thorpej Exp $ */ /* NetBSD: bus_machdep.c,v 1.1 2000/01/26 18:48:00 drochner Exp */ /*- @@ -32,12 +32,12 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.12 2012/01/27 18:52:49 para Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.13 2023/12/07 03:46:10 thorpej Exp $"); #include #include #include -#include +#include #include @@ -316,7 +316,7 @@ arc_bus_space_init(bus_space_tag_t bst, { bst->bs_name = name; - bst->bs_extent = NULL; + bst->bs_arena = NULL; bst->bs_start = start; bst->bs_size = size; bst->bs_pbase = paddr; @@ -338,16 +338,28 @@ arc_bus_space_init(bus_space_tag_t bst, } void -arc_bus_space_init_extent(bus_space_tag_t bst, void *storage, -size_t storagesize) +arc_bus_space_init_arena(bus_space_tag_t bst, struct vmem *arena_store, +struct vmem_btag *btag_store, unsigned int btag_count) { + int error __diagused; - bst->bs_extent = extent_create(bst->bs_name, - bst->bs_start, bst->bs_start + bst->bs_size, - storage, storagesize, EX_NOWAIT); - if (bst->bs_extent == NULL) - panic("arc_bus_space_init_extent: cannot create extent map %s", - bst->bs_name); + bst->bs_arena = vmem_init(arena_store, + bst->bs_name, /* name */ + 0, /* addr */ + 0, /* size */ + 1, /* quantum */ + NULL, /* importfn */ + NULL, /* releasefn */ + NULL, /* source */ + 0, /* qcache_max */ + VM_NOSLEEP | VM_PRIVTAGS, + IPL_NONE); + KASSERT(bst->bs_arena != NULL); + + vmem_add_bts(bst->bs_arena, btag_store, btag_count); + error = vmem_add(bst->bs_arena, bst->bs_start, bst->bs_size, + VM_NOSLEEP); + KASSERT(error == 0); } void @@ -367,22 +379,6 @@ arc_bus_space_set_aligned_stride(bus_spa bst->bs_stride_8 = alignment_shift; } -static int malloc_safe = 0; - -void -arc_bus_space_malloc_set_safe(void) -{ - - malloc_safe = EX_MALLOCOK; -} - -int -arc_bus_space_extent_malloc_flag(void) -{ - - return malloc_safe; -} - int arc_bus_space_compose_handle(bus_space_tag_t bst, bus_addr_t addr, bus_size_t size, int flags, bus_space_handle_t *bshp) @@ -457,9 +453,8 @@ arc_bus_space_map(bus_space_tag_t bst, b if (addr < bst->bs_start || addr + size > bst->bs_start + bst->bs_size) return EINVAL; - if (bst->bs_extent != NULL) { - err = extent_alloc_region(bst->bs_extent, addr, size, - EX_NOWAIT | malloc_safe); + if (bst->bs_arena != NULL) { + err = vmem_xalloc_addr(bst->bs_arena, addr, size, VM_NOSLEEP); if (err) return err; } @@ -472,7 +467,7 @@ arc_bus_space_unmap(bus_space_tag_t bst, bus_size_t size) { - if (bst->bs_extent != NULL) { + if (bst->bs_arena != NULL) { paddr_t pa; bus_addr_t addr; int err; @@ -483,8 +478,7 @@ arc_bus_space_unmap(bus_space_tag_t bst, panic("arc_bus_space_unmap: %s va 0x%qx: error %d", bst->bs_name, (unsigned long long) bsh, err); addr = (bus_size_t)(pa - bst->bs_pbase) + bst->bs_start; - extent_free(bst->bs_extent, addr, size, - EX_NOWAIT | malloc_safe); + vmem_xfree(bst->bs_arena, addr, size); } bus_space_dispose_handle(bst, bsh, size); } @@ -520,19 +514,25 @@ arc_bus_space_alloc(bus_space_tag_t bst, bus_size_t size, bus_size_t align, bus_size_t boundary, int flags, bus_addr_t *addrp, bus_space_handle_t *bshp) { - u_long addr; + vmem_addr_t addr; int err; - if (bst->bs_extent == NULL) - panic("arc_bus_space_alloc: extent map %s not available", + if (bst->bs_arena == NULL) + panic("arc_bus_space_alloc: vmem arena %s not available", bst->bs_name); if (start < bst->bs_start || start + size > bst->bs_start + bst->bs_size) return EINVAL; - err =
CVS commit: src/usr.bin/make/unit-tests
Module Name:src Committed By: rillig Date: Wed Dec 6 22:28:20 UTC 2023 Modified Files: src/usr.bin/make/unit-tests: directive-for.exp directive-for.mk Log Message: tests/make: show how global variables are unaffected by .for loops To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/usr.bin/make/unit-tests/directive-for.exp cvs rdiff -u -r1.23 -r1.24 src/usr.bin/make/unit-tests/directive-for.mk 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/unit-tests/directive-for.exp diff -u src/usr.bin/make/unit-tests/directive-for.exp:1.20 src/usr.bin/make/unit-tests/directive-for.exp:1.21 --- src/usr.bin/make/unit-tests/directive-for.exp:1.20 Thu Oct 19 18:24:33 2023 +++ src/usr.bin/make/unit-tests/directive-for.exp Wed Dec 6 22:28:20 2023 @@ -17,15 +17,15 @@ make: "directive-for.mk" line 146: }{ }{ make: "directive-for.mk" line 166: invalid character ':' in .for loop variable name make: "directive-for.mk" line 173: invalid character '$' in .for loop variable name make: "directive-for.mk" line 185: invalid character '$' in .for loop variable name -make: "directive-for.mk" line 196: Unknown modifier "Z" -make: "directive-for.mk" line 197: XXX: Should not reach word1 -make: "directive-for.mk" line 197: XXX: Should not reach before--after -make: "directive-for.mk" line 197: XXX: Should not reach word3 -make: "directive-for.mk" line 205: no iteration variables in for -make: "directive-for.mk" line 231: 1 open conditional -make: "directive-for.mk" line 247: for-less endfor -make: "directive-for.mk" line 248: if-less endif -make: "directive-for.mk" line 256: if-less endif +make: "directive-for.mk" line 210: Unknown modifier "Z" +make: "directive-for.mk" line 211: XXX: Should not reach word1 +make: "directive-for.mk" line 211: XXX: Should not reach before--after +make: "directive-for.mk" line 211: XXX: Should not reach word3 +make: "directive-for.mk" line 219: no iteration variables in for +make: "directive-for.mk" line 245: 1 open conditional +make: "directive-for.mk" line 261: for-less endfor +make: "directive-for.mk" line 262: if-less endif +make: "directive-for.mk" line 270: if-less endif For: new loop 2 For: end for 2 For: end for 1 @@ -36,7 +36,7 @@ For: loop body with outer = o: endfor For: end for 1 For: loop body with inner = i: -make: "directive-for.mk" line 304: newline-item=(a) +make: "directive-for.mk" line 318: newline-item=(a) make: Fatal errors encountered -- cannot continue make: stopped in unit-tests exit status 1 Index: src/usr.bin/make/unit-tests/directive-for.mk diff -u src/usr.bin/make/unit-tests/directive-for.mk:1.23 src/usr.bin/make/unit-tests/directive-for.mk:1.24 --- src/usr.bin/make/unit-tests/directive-for.mk:1.23 Thu Oct 19 18:24:33 2023 +++ src/usr.bin/make/unit-tests/directive-for.mk Wed Dec 6 22:28:20 2023 @@ -1,4 +1,4 @@ -# $NetBSD: directive-for.mk,v 1.23 2023/10/19 18:24:33 rillig Exp $ +# $NetBSD: directive-for.mk,v 1.24 2023/12/06 22:28:20 rillig Exp $ # # Tests for the .for directive. # @@ -25,7 +25,7 @@ NUMBERS+= ${num} # The .for loop also works for multiple iteration variables. -# This is something that the modifier :@ cannot do. +# This is something that the modifier :@ cannot do as easily. .for name value in VARNAME value NAME2 value2 ${name}= ${value} .endfor @@ -189,6 +189,20 @@ INDIRECT= direct .endfor +# Regular global variables and the "variables" from the .for loop don't +# interfere with each other. In the following snippet, the variable 'DIRECT' +# is used both as a global variable, as well as an iteration variable in the +# .for loop. The expression '${INDIRECT}' refers to the global variable, not +# to the one from the .for loop. +DIRECT= global +INDIRECT= ${DIRECT} +.for DIRECT in iteration +. if "${DIRECT} ${INDIRECT}" != "iteration global" +.error +. endif +.endfor + + # XXX: A parse error or evaluation error in the items of the .for loop # should skip the whole loop. As of 2023-05-09, the loop is expanded as # usual.
CVS commit: src/usr.bin/make/unit-tests
Module Name:src Committed By: rillig Date: Wed Dec 6 22:28:20 UTC 2023 Modified Files: src/usr.bin/make/unit-tests: directive-for.exp directive-for.mk Log Message: tests/make: show how global variables are unaffected by .for loops To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/usr.bin/make/unit-tests/directive-for.exp cvs rdiff -u -r1.23 -r1.24 src/usr.bin/make/unit-tests/directive-for.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/regress/lib/libc/ieeefp/testfloat/notes
Module Name:src Committed By: andvar Date: Wed Dec 6 22:23:11 UTC 2023 Modified Files: src/regress/lib/libc/ieeefp/testfloat/notes: systemBugs.txt Log Message: s/multipies/multiplies/. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 \ src/regress/lib/libc/ieeefp/testfloat/notes/systemBugs.txt Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/regress/lib/libc/ieeefp/testfloat/notes/systemBugs.txt diff -u src/regress/lib/libc/ieeefp/testfloat/notes/systemBugs.txt:1.1.1.1 src/regress/lib/libc/ieeefp/testfloat/notes/systemBugs.txt:1.2 --- src/regress/lib/libc/ieeefp/testfloat/notes/systemBugs.txt:1.1.1.1 Tue Mar 13 06:23:19 2001 +++ src/regress/lib/libc/ieeefp/testfloat/notes/systemBugs.txt Wed Dec 6 22:23:11 2023 @@ -142,7 +142,7 @@ Some older SPARCstations appear confused detected before or after rounding. For conversions from double precision to single precision, tininess is detected after rounding, while for all quadruple-precision operations it is detected before rounding. Single- and -double-precision multipies go both ways: +double-precision multiplies go both ways: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - float32_mul, float64_mul
CVS commit: src/regress/lib/libc/ieeefp/testfloat/notes
Module Name:src Committed By: andvar Date: Wed Dec 6 22:23:11 UTC 2023 Modified Files: src/regress/lib/libc/ieeefp/testfloat/notes: systemBugs.txt Log Message: s/multipies/multiplies/. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 \ src/regress/lib/libc/ieeefp/testfloat/notes/systemBugs.txt Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/man/man4/man4.amiga
Module Name:src Committed By: andvar Date: Wed Dec 6 22:20:37 UTC 2023 Modified Files: src/share/man/man4/man4.amiga: grfcv3d.4 Log Message: s/multipie/multiple/. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/share/man/man4/man4.amiga/grfcv3d.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/man4.amiga/grfcv3d.4 diff -u src/share/man/man4/man4.amiga/grfcv3d.4:1.9 src/share/man/man4/man4.amiga/grfcv3d.4:1.10 --- src/share/man/man4/man4.amiga/grfcv3d.4:1.9 Fri Feb 17 22:24:46 2017 +++ src/share/man/man4/man4.amiga/grfcv3d.4 Wed Dec 6 22:20:37 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: grfcv3d.4,v 1.9 2017/02/17 22:24:46 christos Exp $ +.\" $NetBSD: grfcv3d.4,v 1.10 2023/12/06 22:20:37 andvar Exp $ .\" .\" Copyright (c) 1997 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -81,7 +81,7 @@ based on .Xr amiga/grfcv 4 driver. .An Bernd Ernesti . -fixed multipie bugs and later maintained the driver. +fixed multiple bugs and later maintained the driver. The .Xr wsdisplay 4 interface was added by
CVS commit: src/share/man/man4/man4.amiga
Module Name:src Committed By: andvar Date: Wed Dec 6 22:20:37 UTC 2023 Modified Files: src/share/man/man4/man4.amiga: grfcv3d.4 Log Message: s/multipie/multiple/. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/share/man/man4/man4.amiga/grfcv3d.4 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
Module Name:src Committed By: kre Date: Wed Dec 6 21:45:11 UTC 2023 Modified Files: src/lib/libc/time: zdump.8 Log Message: A couple more (relatively minor) markup fixes. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/lib/libc/time/zdump.8 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/zdump.8 diff -u src/lib/libc/time/zdump.8:1.24 src/lib/libc/time/zdump.8:1.25 --- src/lib/libc/time/zdump.8:1.24 Wed Dec 6 20:01:44 2023 +++ src/lib/libc/time/zdump.8 Wed Dec 6 21:45:11 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: zdump.8,v 1.24 2023/12/06 20:01:44 christos Exp $ +.\" $NetBSD: zdump.8,v 1.25 2023/12/06 21:45:11 kre Exp $ .\" @(#)zdump.8 8.2 .\" This file is in the public domain, so clarified as of .\" 2009-05-17 by Arthur David Olson. @@ -48,9 +48,9 @@ For each on the command line, print the times at the two extreme time values, the times (if present) at and just beyond the boundaries of years that -.BR localtime (3) +.Xr localtime 3 and -.BR gmtime (3) +.Xr gmtime 3 can represent, and the times both one second before and exactly at each detected time discontinuity.
CVS commit: src/lib/libc/time
Module Name:src Committed By: kre Date: Wed Dec 6 21:45:11 UTC 2023 Modified Files: src/lib/libc/time: zdump.8 Log Message: A couple more (relatively minor) markup fixes. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/lib/libc/time/zdump.8 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
Module Name:src Committed By: kre Date: Wed Dec 6 21:42:01 UTC 2023 Modified Files: src/lib/libc/time: zic.8 Log Message: More markup fixes.This man page remains exceedingly ugly (particularly relating to vertical space - which often is missing where it would be better if it weren't, or is present and wasteful/ugly). To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/lib/libc/time/zic.8 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/zic.8 diff -u src/lib/libc/time/zic.8:1.44 src/lib/libc/time/zic.8:1.45 --- src/lib/libc/time/zic.8:1.44 Wed Dec 6 20:01:44 2023 +++ src/lib/libc/time/zic.8 Wed Dec 6 21:42:01 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: zic.8,v 1.44 2023/12/06 20:01:44 christos Exp $ +.\" $NetBSD: zic.8,v 1.45 2023/12/06 21:42:01 kre Exp $ .\" @(#)zic.8 8.6 .\" This file is in the public domain, so clarified as of .\" 2009-05-17 by Arthur David Olson. @@ -124,7 +124,7 @@ are possibly signed decimal counts of se (1970-01-01 00:00:00 UTC). Omitted counts default to extreme values. The output files use UT offset 0 and abbreviation -.q "\*-00" +.Qq "\*-00" in place of the omitted timestamp data. For example, .Bd -literal @@ -441,7 +441,7 @@ equivalent to 0 .El .Pp Although -.I zic +.Nm rounds times to the nearest integer second (breaking ties to the even integer), the fractions may be useful to other applications requiring greater precision. @@ -464,7 +464,7 @@ in the absence of an indicator, local (wall clock) time is assumed. These forms ignore leap seconds; for example, if a leap second occurs at 00:59:60 local time, -.q "1:00" +.Qq "1:00" stands for 3601 seconds after local midnight instead of the usual 3600 seconds. The intent is that a rule line describes the instants when a clock/calendar set to the type of time specified in the @@ -615,14 +615,14 @@ continuation. If a zone changes at the same instant that a rule would otherwise take effect in the earlier zone or continuation line, the rule is ignored. A zone or continuation line -.I L +.Em L with a named rule set starts with standard time by default: that is, any of -.IR L 's +.Em L Ns 's timestamps preceding -.IR L 's +.Em L Ns 's earliest rule use the rule in effect after -.IR L 's +.Em L Ns 's first transition into standard time. In a single zone it is an error if two rules take effect at the same instant, or if two zone changes take effect at the same instant.
CVS commit: src/lib/libc/time
Module Name:src Committed By: kre Date: Wed Dec 6 21:42:01 UTC 2023 Modified Files: src/lib/libc/time: zic.8 Log Message: More markup fixes.This man page remains exceedingly ugly (particularly relating to vertical space - which often is missing where it would be better if it weren't, or is present and wasteful/ugly). To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/lib/libc/time/zic.8 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
Module Name:src Committed By: christos Date: Wed Dec 6 20:01:44 UTC 2023 Modified Files: src/lib/libc/time: zdump.8 zic.8 Log Message: PR/57757: Izumi Tsutsui: Fix markup errors To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/lib/libc/time/zdump.8 cvs rdiff -u -r1.43 -r1.44 src/lib/libc/time/zic.8 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/zdump.8 diff -u src/lib/libc/time/zdump.8:1.23 src/lib/libc/time/zdump.8:1.24 --- src/lib/libc/time/zdump.8:1.23 Wed Jul 26 05:17:20 2023 +++ src/lib/libc/time/zdump.8 Wed Dec 6 15:01:44 2023 @@ -1,9 +1,9 @@ -.\" $NetBSD: zdump.8,v 1.23 2023/07/26 09:17:20 rin Exp $ +.\" $NetBSD: zdump.8,v 1.24 2023/12/06 20:01:44 christos Exp $ .\" @(#)zdump.8 8.2 .\" This file is in the public domain, so clarified as of .\" 2009-05-17 by Arthur David Olson. .\" .TH zdump 8 -.Dd October 22, 2021 +.Dd December 6, 2023 .Dt ZDUMP 8 .Os .Sh NAME @@ -26,7 +26,7 @@ The program prints the current time in each .Ar timezone named on the command line. -.SH OPTIONS +.Sh OPTIONS .Bl -tag -width X -compact .It Fl \-version Output version information and exit. Index: src/lib/libc/time/zic.8 diff -u src/lib/libc/time/zic.8:1.43 src/lib/libc/time/zic.8:1.44 --- src/lib/libc/time/zic.8:1.43 Sat Sep 16 14:40:26 2023 +++ src/lib/libc/time/zic.8 Wed Dec 6 15:01:44 2023 @@ -1,9 +1,9 @@ -.\" $NetBSD: zic.8,v 1.43 2023/09/16 18:40:26 christos Exp $ +.\" $NetBSD: zic.8,v 1.44 2023/12/06 20:01:44 christos Exp $ .\" @(#)zic.8 8.6 .\" This file is in the public domain, so clarified as of .\" 2009-05-17 by Arthur David Olson. .\" .TH zic 8 -.Dd September 16, 2023 +.Dd December 6, 2023 .Dt ZIC 8 .Os .Sh NAME @@ -313,11 +313,15 @@ abbreviation must be unambiguous in cont .Pp A rule line has the form .Pp -.Dl Rule NAME FROM TO \&- IN ON AT SAVE LETTER/S +.Bl -column -compact -offset indent "Rule" "NAME" "FROM" "1995" "\&*" "Apr" "lastSun" "2:00w" "1:00d" "LETTER/S" +.It Rule NAME FROM TO \&- IN ON AT SAVE LETTER/S +.El .Pp For example: .Pp -.Dl Rule US 1967 1973 \&- Apr lastSun 2:00w 1:00d D +.Bl -column -compact -offset indent "Rule" "NAME" "FROM" "1995" "\&*" "Apr" "lastSun" "2:00w" "1:00d" "LETTER/S" +.It Rule US 1967 1973 \&- Apr lastSun 2:00w 1:00d D +.El .Pp The fields that make up a rule line are: .Bl -tag -width "LETTER/S" @@ -507,13 +511,17 @@ If this field is the variable part is null. .El .Pp -A zone line has the form +A zone line has the form: .Pp -.Dl Zone NAME STDOFF RULES/SAVE FORMAT [UNTIL] +.Bl -column -compact -offset indent "Zone" "Asia/Amman" "STDOFF" "RULES/SAVE" "FORMAT" "[UNTIL]" +Zone NAME STDOFF RULES/SAVE FORMAT [UNTIL] +.El .Pp For example: .Pp -.Dl Zone Asia/Amman 2:00 Jordan EE%sT 2017 Oct 27 1:00 +.Bl -column -compact -offset indent "Zone" "Asia/Amman" "STDOFF" "RULES/SAVE" "FORMAT" "[UNTIL"] +Zone Asia/Amman 2:00 Jordan EE%sT 2017 Oct 27 1:00 +.El .Pp The fields that make up a zone line are: .Bl -tag -width "RULES/SAVE" @@ -632,13 +640,15 @@ that would otherwise take effect in the seconds is instead assumed to take effect simultaneously. For example: .Pp -.Bl -column -compact -offset indent "# Rule" "Swiss" "FROM" "1995" "\&*" "Oct" "lastSun" "1:00u" "SAVE" "LETTER/S" +.Bl -column -compact -offset indent "# Rule" "NAME" "FROM" "2006" "\&-" "Oct" "lastSun" "1:00" "SAVE" "LETTER/S" .It # Rule NAME FROM TO \&- IN ON AT SAVE LETTER/S .It Rule US 1967 2006 \&- Oct lastSun 2:00 0 S .It Rule US 1967 1973 \&- Apr lastSun 2:00 1:00 D -.It # Zone NAMESTDOFF RULES FORMAT [UNTIL] +.El +.Bl -column -compact -offset indent "# Zone" "America/Menominee" "STDOFF" "RULES" "FORMAT" "[UNTIL]" +.It # Zone NAME STDOFF RULES FORMAT [UNTIL] .It Zone America/Menominee \&-5:00 \&- EST 1973 Apr 29 2:00 -.It \&-6:00 US C%sT +.It \& \& \&-6:00 US C%sT .El .Pp Here, an incorrect reading would be there were two clock changes on 1973-04-29, @@ -651,11 +661,15 @@ interprets this more sensibly as a singl .Pp A link line has the form .Pp -.Dl Link TARGET LINK-NAME +.Bl -column -compact -offset indent "Link" "Europe/Istanbul" "Asia/Istanbul" +.It Link TARGET LINK-NAME +.El .Pp For example: .Pp -.Dl Link Europe/Istanbul Asia/Istanbul +.Bl -column -compact -offset indent "Link" "Europe/Istanbul" "Asia/Istanbul" +.It Link Europe/Istanbul Asia/Istanbul +.El .Pp The .Em TARGET @@ -675,12 +689,12 @@ Links can chain together, although the b chain of one or more links does not terminate in a Zone name. A link line can appear before the line that defines the link target. For example: -.Bl -column -offset indent ".Sy Link" ".Sy Greenwich" ".Sy G_M_T" -.It Sy Link Ta Sy Greenwich Ta Sy G_M_T -.It -.It Link Ta Sy Etc/GMT Ta Sy Greenwich -.It Zone Ta Sy Etc/GMT 0 Ta Sy Ta Sy \*- GMT +.Bl -column -offset indent "Link" "Greenwich" "Greenwich" +.It Link Greenwich G_M_T +.It Link Etc/GMT
CVS commit: src/lib/libc/time
Module Name:src Committed By: christos Date: Wed Dec 6 20:01:44 UTC 2023 Modified Files: src/lib/libc/time: zdump.8 zic.8 Log Message: PR/57757: Izumi Tsutsui: Fix markup errors To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/lib/libc/time/zdump.8 cvs rdiff -u -r1.43 -r1.44 src/lib/libc/time/zic.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.