CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Thu Jan 26 22:20:16 UTC 2023 Modified Files: src/share/misc: acronyms.comp Log Message: +ABEattribute-based encryption +TEETrusted Execution Environment To generate a diff of this commit: cvs rdiff -u -r1.330 -r1.331 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/share/misc
Module Name:src Committed By: jschauma Date: Thu Jan 26 22:20:16 UTC 2023 Modified Files: src/share/misc: acronyms.comp Log Message: +ABEattribute-based encryption +TEETrusted Execution Environment To generate a diff of this commit: cvs rdiff -u -r1.330 -r1.331 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.330 src/share/misc/acronyms.comp:1.331 --- src/share/misc/acronyms.comp:1.330 Thu Dec 8 23:41:22 2022 +++ src/share/misc/acronyms.comp Thu Jan 26 22:20:16 2023 @@ -1,9 +1,10 @@ -$NetBSD: acronyms.comp,v 1.330 2022/12/08 23:41:22 jschauma Exp $ +$NetBSD: acronyms.comp,v 1.331 2023/01/26 22:20:16 jschauma Exp $ 3WHS three-way handshake 8VSB 8-state vestigial side band modulation AA anti-aliasing AAA authentication, authorization, [and] accounting AAT average access time +ABE attribute-based encryption ABI application binary interface ABNF augmented backus-naur form ABR available bit rate @@ -1625,6 +1626,7 @@ TDOA time difference of arrival TDP thermal design {point,power} TDR time-domain reflectometry TECO Text Editor and Corrector +TEE Trusted Execution Environment TFT thin film transistor TFTP Trivial File Transfer Protocol TIAS try it and see
CVS commit: src/usr.bin/split
Module Name:src Committed By: jschauma Date: Fri Jan 27 19:39:04 UTC 2023 Modified Files: src/usr.bin/split: split.c Log Message: whitespace / comment pedantry To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/usr.bin/split/split.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/split
Module Name:src Committed By: jschauma Date: Fri Jan 27 19:39:04 UTC 2023 Modified Files: src/usr.bin/split: split.c Log Message: whitespace / comment pedantry To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/usr.bin/split/split.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/split/split.c diff -u src/usr.bin/split/split.c:1.27 src/usr.bin/split/split.c:1.28 --- src/usr.bin/split/split.c:1.27 Tue Jan 10 21:14:13 2017 +++ src/usr.bin/split/split.c Fri Jan 27 19:39:04 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: split.c,v 1.27 2017/01/10 21:14:13 christos Exp $ */ +/* $NetBSD: split.c,v 1.28 2023/01/27 19:39:04 jschauma Exp $ */ /* * Copyright (c) 1987, 1993, 1994 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 19 #if 0 static char sccsid[] = "@(#)split.c 8.3 (Berkeley) 4/25/94"; #endif -__RCSID("$NetBSD: split.c,v 1.27 2017/01/10 21:14:13 christos Exp $"); +__RCSID("$NetBSD: split.c,v 1.28 2023/01/27 19:39:04 jschauma Exp $"); #endif /* not lint */ #include @@ -56,10 +56,10 @@ __RCSID("$NetBSD: split.c,v 1.27 2017/01 #define DEFLINE 1000 /* Default num lines per file. */ -static int file_open; /* If a file open. */ +static int file_open; /* If a file is open. */ static int ifd = STDIN_FILENO, ofd = -1; /* Input/output file descriptors. */ static char *fname; /* File name prefix. */ -static size_t sfxlen = 2; /* suffix length. */ +static size_t sfxlen = 2; /* Suffix length. */ static void newfile(void); static void split1(off_t, int) __dead;
CVS commit: src/usr.bin/split
Module Name:src Committed By: jschauma Date: Mon Jan 30 15:22:03 UTC 2023 Modified Files: src/usr.bin/split: split.1 split.c Log Message: auto-extend suffix length if required If the input cannot be split into the number of files resulting from the default suffix length, automatically extend the suffix length rather than bailing out with 'too many files'. Suffixes are extended such that the resulting files continue to sort lexically and "cat *" would reproduce the input. For example, splitting a 1M lines file into (default) 1000 lines per file would yield files named 'xaa', 'xab', ..., 'xyy', 'xyz', 'xzaaa', 'xzaab', ..., 'xzanl'. If '-a' is specified, the suffix length is not auto-extended. This behavior matches GNU sort(1) since around version 8.16. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/usr.bin/split/split.1 cvs rdiff -u -r1.28 -r1.29 src/usr.bin/split/split.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/split/split.1 diff -u src/usr.bin/split/split.1:1.15 src/usr.bin/split/split.1:1.16 --- src/usr.bin/split/split.1:1.15 Thu May 31 01:35:35 2007 +++ src/usr.bin/split/split.1 Mon Jan 30 15:22:02 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: split.1,v 1.15 2007/05/31 01:35:35 jschauma Exp $ +.\" $NetBSD: split.1,v 1.16 2023/01/30 15:22:02 jschauma Exp $ .\" .\" Copyright (c) 1990, 1991, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)split.1 8.3 (Berkeley) 4/16/94 .\" -.Dd May 28, 2007 +.Dd January 28, 2023 .Dt SPLIT 1 .Os .Sh NAME @@ -99,7 +99,12 @@ characters in the range .Dq Li a-z . If .Fl a -is not specified, two letters are used as the suffix. +is not specified, two letters are used as the initial +suffix. +If the output does not fit into the resulting number +of files, then the suffix length is automatically +extended as needed such that all output files continue +to sort in lexical order. .Pp If the .Ar name Index: src/usr.bin/split/split.c diff -u src/usr.bin/split/split.c:1.28 src/usr.bin/split/split.c:1.29 --- src/usr.bin/split/split.c:1.28 Fri Jan 27 19:39:04 2023 +++ src/usr.bin/split/split.c Mon Jan 30 15:22:02 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: split.c,v 1.28 2023/01/27 19:39:04 jschauma Exp $ */ +/* $NetBSD: split.c,v 1.29 2023/01/30 15:22:02 jschauma Exp $ */ /* * Copyright (c) 1987, 1993, 1994 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 19 #if 0 static char sccsid[] = "@(#)split.c 8.3 (Berkeley) 4/25/94"; #endif -__RCSID("$NetBSD: split.c,v 1.28 2023/01/27 19:39:04 jschauma Exp $"); +__RCSID("$NetBSD: split.c,v 1.29 2023/01/30 15:22:02 jschauma Exp $"); #endif /* not lint */ #include @@ -60,6 +60,7 @@ static int file_open; /* If a file is o static int ifd = STDIN_FILENO, ofd = -1; /* Input/output file descriptors. */ static char *fname; /* File name prefix. */ static size_t sfxlen = 2; /* Suffix length. */ +static int autosfx = 1; /* Whether to auto-extend the suffix length. */ static void newfile(void); static void split1(off_t, int) __dead; @@ -120,6 +121,7 @@ main(int argc, char *argv[]) (sfxlen = (size_t)strtoul(optarg, &ep, 10)) == 0 || *ep != '\0') errx(1, "%s: illegal suffix length.", optarg); + autosfx = 0; break; case 'n': /* Chunks. */ if (!isdigit((unsigned char)optarg[0]) || @@ -323,6 +325,38 @@ newfile(void) err(1, "%s", fname); quot = fnum; + + /* If '-a' is not specified, then we automatically expand the + * suffix length to accomodate splitting all input. We do this + * by moving the suffix pointer (fpnt) forward and incrementing + * sfxlen by one, thereby yielding an additional two characters + * and allowing all output files to sort such that 'cat *' yields + * the input in order. I.e., the order is '... xyy xyz xzaaa + * xzaab ... xzyzy, xzyzz, xzz, xzzaaab' and so on. */ + if (autosfx && (fpnt[0] == 'y') && (strspn(fpnt+1, "z") == strlen(fpnt+1))) { + if ((fname = realloc(fname, strlen(fname) + sfxlen + 2 + 1)) == NULL) + err(EXIT_FAILURE, NULL); + /* NOTREACHED */ + + fpnt = fname + strlen(fname) - sfxlen; + fpnt[sfxlen + 2] = '\0'; + + fpnt[0] = 'z'; + fpnt[1] = 'a'; + + /* Basename | Suffix + * before: + * x| yz + * after: + * xz | a.. */ + fpnt++; + sfxlen++; + + /* Reset so we start back at all 'a's in our extended suffix. */ + quot = 0; + fnum = 0; + } + for (i = sfxlen - 1; i >= 0; i--) { fpnt[i] = quot % 26 + 'a'; quot = quot / 26;
CVS commit: src/usr.bin/split
Module Name:src Committed By: jschauma Date: Mon Jan 30 15:22:03 UTC 2023 Modified Files: src/usr.bin/split: split.1 split.c Log Message: auto-extend suffix length if required If the input cannot be split into the number of files resulting from the default suffix length, automatically extend the suffix length rather than bailing out with 'too many files'. Suffixes are extended such that the resulting files continue to sort lexically and "cat *" would reproduce the input. For example, splitting a 1M lines file into (default) 1000 lines per file would yield files named 'xaa', 'xab', ..., 'xyy', 'xyz', 'xzaaa', 'xzaab', ..., 'xzanl'. If '-a' is specified, the suffix length is not auto-extended. This behavior matches GNU sort(1) since around version 8.16. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/usr.bin/split/split.1 cvs rdiff -u -r1.28 -r1.29 src/usr.bin/split/split.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/split
Module Name:src Committed By: jschauma Date: Sun Feb 12 20:43:21 UTC 2023 Modified Files: src/usr.bin/split: split.c Log Message: sort option blocks; no functional change To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/usr.bin/split/split.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/split
Module Name:src Committed By: jschauma Date: Sun Feb 12 20:43:21 UTC 2023 Modified Files: src/usr.bin/split: split.c Log Message: sort option blocks; no functional change To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/usr.bin/split/split.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/split/split.c diff -u src/usr.bin/split/split.c:1.29 src/usr.bin/split/split.c:1.30 --- src/usr.bin/split/split.c:1.29 Mon Jan 30 15:22:02 2023 +++ src/usr.bin/split/split.c Sun Feb 12 20:43:21 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: split.c,v 1.29 2023/01/30 15:22:02 jschauma Exp $ */ +/* $NetBSD: split.c,v 1.30 2023/02/12 20:43:21 jschauma Exp $ */ /* * Copyright (c) 1987, 1993, 1994 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 19 #if 0 static char sccsid[] = "@(#)split.c 8.3 (Berkeley) 4/25/94"; #endif -__RCSID("$NetBSD: split.c,v 1.29 2023/01/30 15:22:02 jschauma Exp $"); +__RCSID("$NetBSD: split.c,v 1.30 2023/02/12 20:43:21 jschauma Exp $"); #endif /* not lint */ #include @@ -98,6 +98,13 @@ main(int argc, char *argv[]) errx(1, "%s: illegal line count.", p); } break; + case 'a': /* Suffix length. */ + if (!isdigit((unsigned char)optarg[0]) || + (sfxlen = (size_t)strtoul(optarg, &ep, 10)) == 0 || + *ep != '\0') +errx(1, "%s: illegal suffix length.", optarg); + autosfx = 0; + break; case 'b': /* Byte count. */ if (!isdigit((unsigned char)optarg[0]) || (bytecnt = strtoull(optarg, &ep, 10)) == 0 || @@ -116,13 +123,6 @@ main(int argc, char *argv[]) *ep != '\0') errx(1, "%s: illegal line count.", optarg); break; - case 'a': /* Suffix length. */ - if (!isdigit((unsigned char)optarg[0]) || - (sfxlen = (size_t)strtoul(optarg, &ep, 10)) == 0 || - *ep != '\0') -errx(1, "%s: illegal suffix length.", optarg); - autosfx = 0; - break; case 'n': /* Chunks. */ if (!isdigit((unsigned char)optarg[0]) || (chunks = (size_t)strtoul(optarg, &ep, 10)) == 0 ||
CVS commit: src/usr.bin/split
Module Name:src Committed By: jschauma Date: Tue Feb 14 18:11:55 UTC 2023 Modified Files: src/usr.bin/split: split.1 Log Message: fix synopsis to indicate that options '-l' and '-n' are mutually inclusive To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/usr.bin/split/split.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/split
Module Name:src Committed By: jschauma Date: Tue Feb 14 18:11:55 UTC 2023 Modified Files: src/usr.bin/split: split.1 Log Message: fix synopsis to indicate that options '-l' and '-n' are mutually inclusive To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/usr.bin/split/split.1 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/split/split.1 diff -u src/usr.bin/split/split.1:1.16 src/usr.bin/split/split.1:1.17 --- src/usr.bin/split/split.1:1.16 Mon Jan 30 15:22:02 2023 +++ src/usr.bin/split/split.1 Tue Feb 14 18:11:55 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: split.1,v 1.16 2023/01/30 15:22:02 jschauma Exp $ +.\" $NetBSD: split.1,v 1.17 2023/02/14 18:11:55 jschauma Exp $ .\" .\" Copyright (c) 1990, 1991, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)split.1 8.3 (Berkeley) 4/16/94 .\" -.Dd January 28, 2023 +.Dd February 14, 2023 .Dt SPLIT 1 .Os .Sh NAME @@ -40,7 +40,7 @@ .Op Fl a Ar suffix_length .Oo .Fl b Ar byte_count Ns Oo Li k|m Oc | -.Fl l Ar line_count +.Fl l Ar line_count | .Fl n Ar chunk_count .Oc .Op Ar file Op Ar name
CVS commit: src/usr.bin/split
Module Name:src Committed By: jschauma Date: Tue Feb 14 18:26:59 UTC 2023 Modified Files: src/usr.bin/split: split.c Log Message: sort getopts string To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/usr.bin/split/split.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/split
Module Name:src Committed By: jschauma Date: Tue Feb 14 18:26:59 UTC 2023 Modified Files: src/usr.bin/split: split.c Log Message: sort getopts string To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/usr.bin/split/split.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/split/split.c diff -u src/usr.bin/split/split.c:1.30 src/usr.bin/split/split.c:1.31 --- src/usr.bin/split/split.c:1.30 Sun Feb 12 20:43:21 2023 +++ src/usr.bin/split/split.c Tue Feb 14 18:26:59 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: split.c,v 1.30 2023/02/12 20:43:21 jschauma Exp $ */ +/* $NetBSD: split.c,v 1.31 2023/02/14 18:26:59 jschauma Exp $ */ /* * Copyright (c) 1987, 1993, 1994 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 19 #if 0 static char sccsid[] = "@(#)split.c 8.3 (Berkeley) 4/25/94"; #endif -__RCSID("$NetBSD: split.c,v 1.30 2023/02/12 20:43:21 jschauma Exp $"); +__RCSID("$NetBSD: split.c,v 1.31 2023/02/14 18:26:59 jschauma Exp $"); #endif /* not lint */ #include @@ -79,7 +79,7 @@ main(int argc, char *argv[]) off_t numlines = 0; /* Line count to split on. */ off_t chunks = 0; /* Number of chunks to split into. */ - while ((ch = getopt(argc, argv, "0123456789b:l:a:n:")) != -1) + while ((ch = getopt(argc, argv, "0123456789a:b:l:n:")) != -1) switch (ch) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9':
CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Tue Feb 14 18:56:10 UTC 2023 Modified Files: src/share/misc: style Log Message: exit with EXIT_FAILURE, not 1, as elsewhere To generate a diff of this commit: cvs rdiff -u -r1.67 -r1.68 src/share/misc/style Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Tue Feb 14 18:56:10 UTC 2023 Modified Files: src/share/misc: style Log Message: exit with EXIT_FAILURE, not 1, as elsewhere To generate a diff of this commit: cvs rdiff -u -r1.67 -r1.68 src/share/misc/style 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/style diff -u src/share/misc/style:1.67 src/share/misc/style:1.68 --- src/share/misc/style:1.67 Fri Dec 30 21:12:44 2022 +++ src/share/misc/style Tue Feb 14 18:56:10 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: style,v 1.67 2022/12/30 21:12:44 jkoshy Exp $ */ +/* $NetBSD: style,v 1.68 2023/02/14 18:56:10 jschauma Exp $ */ /* * The revision control tag appears first, with a blank line after it. @@ -30,7 +30,7 @@ #include __COPYRIGHT("@(#) Copyright (c) 2008\ The NetBSD Foundation, inc. All rights reserved."); -__RCSID("$NetBSD: style,v 1.67 2022/12/30 21:12:44 jkoshy Exp $"); +__RCSID("$NetBSD: style,v 1.68 2023/02/14 18:56:10 jschauma Exp $"); /* * VERY important single-line comments look like this. @@ -307,7 +307,7 @@ main(int argc, char *argv[]) /* No spaces after function names. */ if ((result = function(a1, a2, a3, a4)) == NULL) - exit(1); + exit(EXIT_FAILURE); /* * Unary operators don't require spaces, binary operators do.
CVS commit: src/usr.bin/split
Module Name:src Committed By: jschauma Date: Tue Feb 14 18:58:55 UTC 2023 Modified Files: src/usr.bin/split: split.c Log Message: consistently use EXIT_FAILURE / EXIT_SUCCESS instead of 1 / 0 To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/usr.bin/split/split.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/split
Module Name:src Committed By: jschauma Date: Tue Feb 14 18:58:55 UTC 2023 Modified Files: src/usr.bin/split: split.c Log Message: consistently use EXIT_FAILURE / EXIT_SUCCESS instead of 1 / 0 To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/usr.bin/split/split.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/split/split.c diff -u src/usr.bin/split/split.c:1.31 src/usr.bin/split/split.c:1.32 --- src/usr.bin/split/split.c:1.31 Tue Feb 14 18:26:59 2023 +++ src/usr.bin/split/split.c Tue Feb 14 18:58:55 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: split.c,v 1.31 2023/02/14 18:26:59 jschauma Exp $ */ +/* $NetBSD: split.c,v 1.32 2023/02/14 18:58:55 jschauma Exp $ */ /* * Copyright (c) 1987, 1993, 1994 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 19 #if 0 static char sccsid[] = "@(#)split.c 8.3 (Berkeley) 4/25/94"; #endif -__RCSID("$NetBSD: split.c,v 1.31 2023/02/14 18:26:59 jschauma Exp $"); +__RCSID("$NetBSD: split.c,v 1.32 2023/02/14 18:58:55 jschauma Exp $"); #endif /* not lint */ #include @@ -95,21 +95,21 @@ main(int argc, char *argv[]) p = argv[optind] + 1; numlines = strtoull(p, &ep, 10); if (numlines == 0 || *ep != '\0') - errx(1, "%s: illegal line count.", p); + errx(EXIT_FAILURE, "%s: illegal line count.", p); } break; case 'a': /* Suffix length. */ if (!isdigit((unsigned char)optarg[0]) || (sfxlen = (size_t)strtoul(optarg, &ep, 10)) == 0 || *ep != '\0') -errx(1, "%s: illegal suffix length.", optarg); +errx(EXIT_FAILURE, "%s: illegal suffix length.", optarg); autosfx = 0; break; case 'b': /* Byte count. */ if (!isdigit((unsigned char)optarg[0]) || (bytecnt = strtoull(optarg, &ep, 10)) == 0 || (*ep != '\0' && *ep != 'k' && *ep != 'm')) -errx(1, "%s: illegal byte count.", optarg); +errx(EXIT_FAILURE, "%s: illegal byte count.", optarg); if (*ep == 'k') bytecnt *= 1024; else if (*ep == 'm') @@ -121,13 +121,13 @@ main(int argc, char *argv[]) if (!isdigit((unsigned char)optarg[0]) || (numlines = strtoull(optarg, &ep, 10)) == 0 || *ep != '\0') -errx(1, "%s: illegal line count.", optarg); +errx(EXIT_FAILURE, "%s: illegal line count.", optarg); break; case 'n': /* Chunks. */ if (!isdigit((unsigned char)optarg[0]) || (chunks = (size_t)strtoul(optarg, &ep, 10)) == 0 || *ep != '\0') -errx(1, "%s: illegal number of chunks.", optarg); +errx(EXIT_FAILURE, "%s: illegal number of chunks.", optarg); break; default: usage(); @@ -138,7 +138,7 @@ main(int argc, char *argv[]) if (*argv != NULL) { if (strcmp(*argv, "-") != 0 && (ifd = open(*argv, O_RDONLY, 0)) < 0) - err(1, "%s", *argv); + err(EXIT_FAILURE, "%s", *argv); ++argv; } @@ -187,10 +187,10 @@ split1(off_t bytecnt, int maxcnt) for (bcnt = 0;;) switch (len = read(ifd, bfr, MAXBSIZE)) { case 0: - exit(0); + exit(EXIT_SUCCESS); /* NOTREACHED */ case -1: - err(1, "read"); + err(EXIT_FAILURE, "read"); /* NOTREACHED */ default: if (!file_open) { @@ -204,7 +204,7 @@ split1(off_t bytecnt, int maxcnt) /* LINTED: bytecnt - bcnt <= len */ dist = bytecnt - bcnt; if (bigwrite(ofd, bfr, dist) != (size_t)dist) - err(1, "write"); + err(EXIT_FAILURE, "write"); len -= dist; for (C = bfr + dist; len >= bytecnt; /* LINTED: bytecnt <= len */ @@ -216,7 +216,7 @@ split1(off_t bytecnt, int maxcnt) /* LINTED: as above */ if (bigwrite(ofd, C, bytecnt) != (size_t)bytecnt) - err(1, "write"); + err(EXIT_FAILURE, "write"); } if (len) { if (!maxcnt || (nfiles < maxcnt)) { @@ -225,7 +225,7 @@ split1(off_t bytecnt, int maxcnt) } /* LINTED: len >= 0 */ if (bigwrite(ofd, C, len) != (size_t)len) - err(1, "write"); + err(EXIT_FAILURE, "write"); } else file_open = 0; bcnt = len; @@ -233,7 +233,7 @@ split1(off_t bytecnt, int maxcnt) bcnt += len; /* LINTED: len >= 0 */ if (bigwrite(ofd, bfr, len) != (size_t)len) - err(1, "write"); + err(EXIT_FAILURE, "write"); } } } @@ -254,10 +254,10 @@ split2(off_t numlines) for (lcnt = 0;;) switch (len = read(ifd, bfr, MAXBSIZE)) { case 0: - exit(0); + exit(EXIT_SUCCESS); /* NOTREACHED */ case -1: - err(1, "read"); + err(EXIT_FAILURE, "read"); /* NOTREACHED */ default: if (!file_open) { @@ -268,7 +268,7 @@ split2(off_t numlines) if (*Ce == '\n' && ++lcnt == numlines) { bcnt = Ce - Cs + 1; if (bigwrite(ofd, Cs, bcnt) != (size_t)bcnt) - err(1, "write"); + err(EXIT_FAILURE, "write"); lcnt = 0; Cs = Ce + 1; if (len) @@ -279,7 +279,7 @@ split2(off_t numlines) if (Cs < Ce) { bcnt = Ce - Cs; if (bigwrite(ofd, Cs, bcnt) != (
CVS commit: src/sbin/shutdown
Module Name:src Committed By: jschauma Date: Wed Feb 15 01:55:17 UTC 2023 Modified Files: src/sbin/shutdown: shutdown.8 Log Message: adjust width of flag arg to align more nicely To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/sbin/shutdown/shutdown.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/shutdown/shutdown.8 diff -u src/sbin/shutdown/shutdown.8:1.35 src/sbin/shutdown/shutdown.8:1.36 --- src/sbin/shutdown/shutdown.8:1.35 Fri Jul 1 16:58:02 2022 +++ src/sbin/shutdown/shutdown.8 Wed Feb 15 01:55:16 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: shutdown.8,v 1.35 2022/07/01 16:58:02 wiz Exp $ +.\" $NetBSD: shutdown.8,v 1.36 2023/02/15 01:55:16 jschauma Exp $ .\" .\" Copyright (c) 1988, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)shutdown.8 8.2 (Berkeley) 4/27/95 .\" -.Dd July 1, 2022 +.Dd February 14, 2023 .Dt SHUTDOWN 8 .Os .Sh NAME @@ -49,7 +49,7 @@ saving them from system administrators, would otherwise not bother with such niceties. .Pp Available friendlinesses: -.Bl -tag -width bootstr +.Bl -tag -width b_bootstr_ .It Fl b Ar bootstr The given .Ar bootstr
CVS commit: src/sbin/shutdown
Module Name:src Committed By: jschauma Date: Wed Feb 15 01:55:17 UTC 2023 Modified Files: src/sbin/shutdown: shutdown.8 Log Message: adjust width of flag arg to align more nicely To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/sbin/shutdown/shutdown.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Fri Mar 3 15:29:49 UTC 2023 Modified Files: src/share/misc: acronyms.comp Log Message: add CMC (Certificate Management over CMS, RFC5272) add CMS (Cryptographic Message Syntax, RFC5652) To generate a diff of this commit: cvs rdiff -u -r1.344 -r1.345 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/share/misc
Module Name:src Committed By: jschauma Date: Fri Mar 3 15:29:49 UTC 2023 Modified Files: src/share/misc: acronyms.comp Log Message: add CMC (Certificate Management over CMS, RFC5272) add CMS (Cryptographic Message Syntax, RFC5652) To generate a diff of this commit: cvs rdiff -u -r1.344 -r1.345 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.344 src/share/misc/acronyms.comp:1.345 --- src/share/misc/acronyms.comp:1.344 Wed Mar 1 15:45:00 2023 +++ src/share/misc/acronyms.comp Fri Mar 3 15:29:48 2023 @@ -1,4 +1,4 @@ -$NetBSD: acronyms.comp,v 1.344 2023/03/01 15:45:00 fcambus Exp $ +$NetBSD: acronyms.comp,v 1.345 2023/03/03 15:29:48 jschauma Exp $ 3WHS three-way handshake 8VSB 8-state vestigial side band modulation AA anti-aliasing @@ -269,7 +269,9 @@ CM configuration management CMA concert multithread architecture CMC chassis management controller CMC corrected machine check +CMC certificate management over CMS CMS {configuration,content,course} management system +CMS cryptographic message syntax CMI control {management,method} interface CMOS complementary metal-oxide-semiconductor CMP chip multi-processing
CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Wed Mar 15 01:25:02 UTC 2023 Modified Files: src/share/misc: acronyms.comp Log Message: +BQPbounded-error quantum polynomial time +KEMkey encapsulation mechanism +PQCpost-quantum cryptography To generate a diff of this commit: cvs rdiff -u -r1.347 -r1.348 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.347 src/share/misc/acronyms.comp:1.348 --- src/share/misc/acronyms.comp:1.347 Tue Mar 14 19:04:17 2023 +++ src/share/misc/acronyms.comp Wed Mar 15 01:25:02 2023 @@ -1,4 +1,4 @@ -$NetBSD: acronyms.comp,v 1.347 2023/03/14 19:04:17 fcambus Exp $ +$NetBSD: acronyms.comp,v 1.348 2023/03/15 01:25:02 jschauma Exp $ 3WHS three-way handshake 8VSB 8-state vestigial side band modulation AA anti-aliasing @@ -176,6 +176,7 @@ BPI bits per inch BPM business process modelling BPS bits per second BPSK binary phase shift keying +BQP bounded-error quantum polynomial time BQS Berkeley quality software BRE basic regular expression BS backspace @@ -839,6 +840,7 @@ KB kilobyte KBD keyboard KBD kilobaud KCS keyboard controller style +KEM key encapsulation mechanism KLOC thousand lines of code KMS kernel-mode setting KPI kernel programming interface @@ -1281,6 +1283,7 @@ PPR processor programming reference PPT powerpoint PPT punched paper tape PPU physics processing unit +PQC post-quantum cryptography PRAM Parameter RAM PRBS pseudorandom bit sequence PRG pseudorandom generator
CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Wed Mar 15 01:25:02 UTC 2023 Modified Files: src/share/misc: acronyms.comp Log Message: +BQPbounded-error quantum polynomial time +KEMkey encapsulation mechanism +PQCpost-quantum cryptography To generate a diff of this commit: cvs rdiff -u -r1.347 -r1.348 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/share/misc
Module Name:src Committed By: jschauma Date: Thu Mar 23 18:22:15 UTC 2023 Modified Files: src/share/misc: acronyms.comp Log Message: +ALPN (application-layer protocol negotiation; a TLS extension) To generate a diff of this commit: cvs rdiff -u -r1.348 -r1.349 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/share/misc
Module Name:src Committed By: jschauma Date: Thu Mar 23 18:22:15 UTC 2023 Modified Files: src/share/misc: acronyms.comp Log Message: +ALPN (application-layer protocol negotiation; a TLS extension) To generate a diff of this commit: cvs rdiff -u -r1.348 -r1.349 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.348 src/share/misc/acronyms.comp:1.349 --- src/share/misc/acronyms.comp:1.348 Wed Mar 15 01:25:02 2023 +++ src/share/misc/acronyms.comp Thu Mar 23 18:22:15 2023 @@ -1,4 +1,4 @@ -$NetBSD: acronyms.comp,v 1.348 2023/03/15 01:25:02 jschauma Exp $ +$NetBSD: acronyms.comp,v 1.349 2023/03/23 18:22:15 jschauma Exp $ 3WHS three-way handshake 8VSB 8-state vestigial side band modulation AA anti-aliasing @@ -44,6 +44,7 @@ AI artificial intelligence AL access list AL active link ALE address latch enable +ALPN application-layer protocol negotiation ALS ambient light sensor ALSA advanced Linux sound architecture ALU arithmetic and logical unit
CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Sat Apr 1 00:59:11 UTC 2023 Modified Files: src/share/misc: acronyms.comp Log Message: +PIR (private information retrieval) To generate a diff of this commit: cvs rdiff -u -r1.349 -r1.350 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/share/misc
Module Name:src Committed By: jschauma Date: Sat Apr 1 00:59:11 UTC 2023 Modified Files: src/share/misc: acronyms.comp Log Message: +PIR (private information retrieval) To generate a diff of this commit: cvs rdiff -u -r1.349 -r1.350 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.349 src/share/misc/acronyms.comp:1.350 --- src/share/misc/acronyms.comp:1.349 Thu Mar 23 18:22:15 2023 +++ src/share/misc/acronyms.comp Sat Apr 1 00:59:10 2023 @@ -1,4 +1,4 @@ -$NetBSD: acronyms.comp,v 1.349 2023/03/23 18:22:15 jschauma Exp $ +$NetBSD: acronyms.comp,v 1.350 2023/04/01 00:59:10 jschauma Exp $ 3WHS three-way handshake 8VSB 8-state vestigial side band modulation AA anti-aliasing @@ -1235,6 +1235,7 @@ PIM personal information manager PIM platform-independent model PIO programmed input/output PIPT physically indexed, physically tagged +PIR private information retrieval PIQ prefetch input queue PIT programmable interrupt timer PIV personal identity verification
CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Tue Apr 4 20:13:02 UTC 2023 Modified Files: src/share/misc: acronyms.comp Log Message: +RBL, DNSBL reputation block list real-time blackhole list DNS block list To generate a diff of this commit: cvs rdiff -u -r1.350 -r1.351 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/share/misc
Module Name:src Committed By: jschauma Date: Tue Apr 4 20:13:02 UTC 2023 Modified Files: src/share/misc: acronyms.comp Log Message: +RBL, DNSBL reputation block list real-time blackhole list DNS block list To generate a diff of this commit: cvs rdiff -u -r1.350 -r1.351 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.350 src/share/misc/acronyms.comp:1.351 --- src/share/misc/acronyms.comp:1.350 Sat Apr 1 00:59:10 2023 +++ src/share/misc/acronyms.comp Tue Apr 4 20:13:02 2023 @@ -1,4 +1,4 @@ -$NetBSD: acronyms.comp,v 1.350 2023/04/01 00:59:10 jschauma Exp $ +$NetBSD: acronyms.comp,v 1.351 2023/04/04 20:13:02 jschauma Exp $ 3WHS three-way handshake 8VSB 8-state vestigial side band modulation AA anti-aliasing @@ -433,6 +433,7 @@ DNARD Digital network appliance referenc DND drag and drop DNLC directory name lookup cache DNS Domain Name System +DNSBL Domain Name System Block List DNSSEC DNS Security Extensions DOE distributed object environment DOF data over fibre @@ -1345,6 +1346,8 @@ RAS remote access service RAS restartable atomic sequence RAS row address strobe RBF radial basis function +RBL reputation block list +RBL real-time blackhole list RBNF routing backus-naur form RBT red-black tree RC release candidate
CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Mon Sep 26 17:55:35 UTC 2022 Modified Files: src/share/misc: acronyms Log Message: add PFA (please find attached) To generate a diff of this commit: cvs rdiff -u -r1.313 -r1.314 src/share/misc/acronyms Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Mon Sep 26 17:55:35 UTC 2022 Modified Files: src/share/misc: acronyms Log Message: add PFA (please find attached) To generate a diff of this commit: cvs rdiff -u -r1.313 -r1.314 src/share/misc/acronyms 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 diff -u src/share/misc/acronyms:1.313 src/share/misc/acronyms:1.314 --- src/share/misc/acronyms:1.313 Fri Sep 9 14:16:16 2022 +++ src/share/misc/acronyms Mon Sep 26 17:55:35 2022 @@ -1,4 +1,4 @@ -$NetBSD: acronyms,v 1.313 2022/09/09 14:16:16 pgoyette Exp $ +$NetBSD: acronyms,v 1.314 2022/09/26 17:55:35 jschauma Exp $ 10Q thank you 10X thanks 1337 elite ("leet") @@ -447,6 +447,7 @@ PDQ pretty darn quick PDS please don't shout PEBCAK problem exists between chair and keyboard PEBKAC problem exists between keyboard and chair +PFA please find attached PFI pay for inclusion PFY pimply faced youth PHB pointy haired boss
CVS commit: src/lib/libc/sys
Module Name:src Committed By: jschauma Date: Mon Oct 17 18:41:06 UTC 2022 Modified Files: src/lib/libc/sys: wait.2 Log Message: add missing 'the' To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/lib/libc/sys/wait.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc/sys
Module Name:src Committed By: jschauma Date: Mon Oct 17 18:41:06 UTC 2022 Modified Files: src/lib/libc/sys: wait.2 Log Message: add missing 'the' To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/lib/libc/sys/wait.2 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/sys/wait.2 diff -u src/lib/libc/sys/wait.2:1.40 src/lib/libc/sys/wait.2:1.41 --- src/lib/libc/sys/wait.2:1.40 Mon Sep 2 00:12:11 2019 +++ src/lib/libc/sys/wait.2 Mon Oct 17 18:41:06 2022 @@ -1,4 +1,4 @@ -.\" $NetBSD: wait.2,v 1.40 2019/09/02 00:12:11 sevan Exp $ +.\" $NetBSD: wait.2,v 1.41 2022/10/17 18:41:06 jschauma Exp $ .\" .\" Copyright (c) 1980, 1991, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)wait.2 8.2 (Berkeley) 4/19/94 .\" -.Dd September 2, 2019 +.Dd October 17, 2022 .Dt WAIT 2 .Os .Sh NAME @@ -410,7 +410,7 @@ structure contains the full 32 bit exit .Xr _exit 2 ; the .Fa status -argument of other calls only returns 8 lowest bits of the exit status. +argument of other calls only returns the 8 lowest bits of the exit status. .Pp When the .Dv WNOHANG
CVS commit: src/lib/libc/sys
Module Name:src Committed By: jschauma Date: Tue Oct 18 02:31:39 UTC 2022 Modified Files: src/lib/libc/sys: _exit.2 Log Message: Note that the exit status may be truncated to the least significant 8 bits. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/lib/libc/sys/_exit.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc/sys
Module Name:src Committed By: jschauma Date: Tue Oct 18 02:31:39 UTC 2022 Modified Files: src/lib/libc/sys: _exit.2 Log Message: Note that the exit status may be truncated to the least significant 8 bits. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/lib/libc/sys/_exit.2 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/sys/_exit.2 diff -u src/lib/libc/sys/_exit.2:1.18 src/lib/libc/sys/_exit.2:1.19 --- src/lib/libc/sys/_exit.2:1.18 Mon Sep 8 17:54:34 2003 +++ src/lib/libc/sys/_exit.2 Tue Oct 18 02:31:39 2022 @@ -1,4 +1,4 @@ -.\" $NetBSD: _exit.2,v 1.18 2003/09/08 17:54:34 wiz Exp $ +.\" $NetBSD: _exit.2,v 1.19 2022/10/18 02:31:39 jschauma Exp $ .\" .\" Copyright (c) 1980, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)_exit.2 8.1 (Berkeley) 6/4/93 .\" -.Dd April 23, 2002 +.Dd October 17, 2022 .Dt EXIT 2 .Os .Sh NAME @@ -68,6 +68,10 @@ the .Em status is set as defined by .Xr wait 2 . +(Note that only the least significant 8 bits of +.Em status +are preserved and returned to the parent via +.Xr wait 2 Ns .) .It The parent process-ID of all of the calling process's existing child processes are set to 1; the initialization process
CVS commit: src/lib/libc/time
Module Name:src Committed By: jschauma Date: Fri Oct 21 03:05:15 UTC 2022 Modified Files: src/lib/libc/time: ctime.3 Log Message: Note normalizing behavior of mktime(3) using language from FreeBSD. To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64 src/lib/libc/time/ctime.3 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/ctime.3 diff -u src/lib/libc/time/ctime.3:1.63 src/lib/libc/time/ctime.3:1.64 --- src/lib/libc/time/ctime.3:1.63 Tue Aug 16 11:07:40 2022 +++ src/lib/libc/time/ctime.3 Fri Oct 21 03:05:15 2022 @@ -1,8 +1,8 @@ -.\" $NetBSD: ctime.3,v 1.63 2022/08/16 11:07:40 christos Exp $ +.\" $NetBSD: ctime.3,v 1.64 2022/10/21 03:05:15 jschauma Exp $ .\" .\" XXX: License missing? .\" -.Dd August 16, 2022 +.Dd October 22, 2022 .Dt CTIME 3 .Os .Sh NAME @@ -253,7 +253,17 @@ and .Fa tm_yday components of the structure are ignored, and the original values of the other components are not restricted -to their normal ranges. +to their normal ranges and will be normalized, +if need be. +For example, +October 40 is changed into November 9, a +.Fa tm_hour +of \-1 means 1 hour before midnight, +.Fa tm_mday +of 0 means the day preceding the current month, and +.Fa tm_mon +of \-2 means 2 months before January of +.Fa tm_year . (A positive or zero value for .Fa tm_isdst causes
CVS commit: src/lib/libc/time
Module Name:src Committed By: jschauma Date: Fri Oct 21 03:05:15 UTC 2022 Modified Files: src/lib/libc/time: ctime.3 Log Message: Note normalizing behavior of mktime(3) using language from FreeBSD. To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64 src/lib/libc/time/ctime.3 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: jschauma Date: Fri Oct 21 03:08:29 UTC 2022 Modified Files: src/lib/libc/time: ctime.3 Log Message: escape mathematical minus so it doesn't get rendered as a dash To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65 src/lib/libc/time/ctime.3 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/ctime.3 diff -u src/lib/libc/time/ctime.3:1.64 src/lib/libc/time/ctime.3:1.65 --- src/lib/libc/time/ctime.3:1.64 Fri Oct 21 03:05:15 2022 +++ src/lib/libc/time/ctime.3 Fri Oct 21 03:08:29 2022 @@ -1,4 +1,4 @@ -.\" $NetBSD: ctime.3,v 1.64 2022/10/21 03:05:15 jschauma Exp $ +.\" $NetBSD: ctime.3,v 1.65 2022/10/21 03:08:29 jschauma Exp $ .\" .\" XXX: License missing? .\" @@ -298,7 +298,7 @@ are determined. .Pp The function returns the specified calendar time; if the calendar time cannot be represented, it returns -.Va "(time_t)-1" . +.Va "(time_t)\-1" . This can happen either because the resulting conversion would not fit in a .Vt time_t
CVS commit: src/lib/libc/time
Module Name:src Committed By: jschauma Date: Fri Oct 21 03:08:29 UTC 2022 Modified Files: src/lib/libc/time: ctime.3 Log Message: escape mathematical minus so it doesn't get rendered as a dash To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65 src/lib/libc/time/ctime.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Re: CVS commit: src/lib/libc/time
Robert Elz wrote: > Date:Fri, 21 Oct 2022 03:05:15 + > From: "Jan Schaumann" > Message-ID: <20221021030515.cdc9df...@cvs.netbsd.org> > > | Note normalizing behavior of mktime(3) using language from FreeBSD. > > If we are going to start specifying what happens (how the struct tm > is normalised) then we really also need to specify in which order > the fields are corrected. It makes a difference. Perhaps like this? Index: ctime.3 === RCS file: /cvsroot/src/lib/libc/time/ctime.3,v retrieving revision 1.65 diff -u -p -r1.65 ctime.3 --- ctime.3 21 Oct 2022 03:08:29 - 1.65 +++ ctime.3 21 Oct 2022 14:34:39 - @@ -264,6 +264,11 @@ of 0 means the day preceding the current .Fa tm_mon of \-2 means 2 months before January of .Fa tm_year . +This normalization is done in order from +.Fa tm_sec +to +.Fa tm_year , +possibly leading to cascading values. (A positive or zero value for .Fa tm_isdst causes
Re: CVS commit: src/lib/libc/time
Robert Elz wrote: > Date:Fri, 21 Oct 2022 10:36:23 -0400 > From: Jan Schaumann > Message-ID: > > > | Perhaps like this? > > Like that, yes, but as you wrote it isn't how it is actually > done I believe. > > The order looks to be secs, mins, hours, month, day(of month). > > There's no normalisation of the year (no invalid values to correct) > though the year can be adjusted when the month is adjusted. > > That order is assuming that the system is using posix stretchy seconds, > rather than UTC (with leap seconds), but almost all NetBSD systems > work that way - if UTC is being used, then secs cannot be done first, > as until the rest of the data/time is known, it is unknown whether > the number of seconds permitted is 59 60 or 61. With POSIX seconds > the secs/mins/hours correction order doesn't really matter, as there > are always 0..59 secs, 0..59 mins, and 0..23 hours, the rest of the > fields have no impact at all. Right, but all that strikes me as too much to put into the manual page here. I think what matters in this context is that there is an order and that there is a cascading effect. "This normalization is done in order from tm_sec to tm_mon (inclusive), possibly leading to cascading values." or "This normalization is done in order from tm_sec up to tm_year, possibly leading to cascading values." provides sufficient information, I think? -Jan
Re: CVS commit: src/lib/libc/time
Robert Elz wrote: > Date:Fri, 21 Oct 2022 11:54:08 -0400 > From: Jan Schaumann > Message-ID: > > | Right, but all that strikes me as too much to put into > | the manual page here. > > I agree, which is why I wondered if we should be giving any > details about how it is done at all. I believe that it's useful for people to know that values outside the normal ranges are normalized, as well as what that might look like. That helps a lot when trying to determine _why_ the output of mktime(3) with a tm_sec = 180 yields no error and a value of tm_min += 3. I don't think many people would want to go and dig up the sources to make sense of this. Noting that values may cascade is useful (because that, too, is not obvious), but seems to me the limit of detail desired here, while still being useful. -Jan
Re: CVS commit: src/lib/libc/time
Robert Elz wrote: > jo...@bec.de said: > | I'd actually weasle out a bit > > Yes, I would too, but A full set of examples strikes me as too much here still, and I do like the idea of weaseling out. Perhaps: This normalization is done in order from tm_sec up to tm_year, possibly leading to cascading values. That is, a tm_sec value of e.g., 185 with a tm_min value of 58 could lead to an increment of tm_min by three, and thus further incrementing tm_hour by one, and so on. Likewise, negative values can lead to decrementing other tm(3) fields. As with most things relating to time, dates, and calendars, the full details of these side effects are often non‐obvious, and it may be best to avoid such scenarios. ? -Jan
CVS commit: src
Module Name:src Committed By: jschauma Date: Sun Oct 23 15:43:40 UTC 2022 Modified Files: src/include: time.h src/share/man/man3: tm.3 Log Message: correct tm_sec range to be [0-60] The previous range introduced in time.h rev1.14 was supposed to account for a mystical "double leap second", which ultimately never could exist and was a mistaken interpretation from an early ISO C standard whereby the possibility of two leap seconds within a year was erroneously interpreted to mean that two leap seconds could occur at once. To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/include/time.h cvs rdiff -u -r1.4 -r1.5 src/share/man/man3/tm.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src
Module Name:src Committed By: jschauma Date: Sun Oct 23 15:43:40 UTC 2022 Modified Files: src/include: time.h src/share/man/man3: tm.3 Log Message: correct tm_sec range to be [0-60] The previous range introduced in time.h rev1.14 was supposed to account for a mystical "double leap second", which ultimately never could exist and was a mistaken interpretation from an early ISO C standard whereby the possibility of two leap seconds within a year was erroneously interpreted to mean that two leap seconds could occur at once. To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/include/time.h cvs rdiff -u -r1.4 -r1.5 src/share/man/man3/tm.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/include/time.h diff -u src/include/time.h:1.47 src/include/time.h:1.48 --- src/include/time.h:1.47 Tue Oct 4 09:41:41 2016 +++ src/include/time.h Sun Oct 23 15:43:40 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: time.h,v 1.47 2016/10/04 09:41:41 kamil Exp $ */ +/* $NetBSD: time.h,v 1.48 2022/10/23 15:43:40 jschauma Exp $ */ /* * Copyright (c) 1989, 1993 @@ -73,7 +73,7 @@ typedef _BSD_TIMER_T_ timer_t; #define CLOCKS_PER_SEC 100 struct tm { - int tm_sec; /* seconds after the minute [0-61] */ + int tm_sec; /* seconds after the minute [0-60] */ int tm_min; /* minutes after the hour [0-59] */ int tm_hour; /* hours since midnight [0-23] */ int tm_mday; /* day of the month [1-31] */ Index: src/share/man/man3/tm.3 diff -u src/share/man/man3/tm.3:1.4 src/share/man/man3/tm.3:1.5 --- src/share/man/man3/tm.3:1.4 Thu Apr 14 05:45:34 2011 +++ src/share/man/man3/tm.3 Sun Oct 23 15:43:40 2022 @@ -1,4 +1,4 @@ -.\" $NetBSD: tm.3,v 1.4 2011/04/14 05:45:34 jruoho Exp $ +.\" $NetBSD: tm.3,v 1.5 2022/10/23 15:43:40 jschauma Exp $ .\" .\" Copyright (c) 2011 Jukka Ruohonen .\" All rights reserved. @@ -42,7 +42,7 @@ The following standards-compliant fields .Bl -column -offset indent \ "Type" "Field " "Months since January 1 " "Range " .It Sy Type Ta Sy Field Ta Sy Represents Ta Sy Range -.It Vt int Ta Va tm_sec Ta Seconds Ta [0, 61] +.It Vt int Ta Va tm_sec Ta Seconds Ta [0, 60] .It Vt int Ta Va tm_min Ta Minutes Ta [0, 59] .It Vt int Ta Va tm_hour Ta Hours since midnight Ta [0, 23] .It Vt int Ta Va tm_mday Ta Day of the month Ta [1, 31]
Re: CVS commit: src/lib/libc/time
Robert Elz wrote: > Date:Sat, 22 Oct 2022 13:42:54 -0400 > From: Jan Schaumann > Message-ID: > > | A full set of examples strikes me as too much here > > A full set would be yes, but I think we could handle 3. Hmm, maybe something like this? ...and will be normalized, if need be. For example, consider a struct tm initialized with a tm_year = 122, tm_mon = 11, tm_mday = 30, tm_hour = 22, tm_min = 57, and a tm_sec = 0, using UTC, representing 2022‐12‐31T22:57:00Z. Incrementing tm_min by 13 and calling mktime() would yield a time_t with value 1672528200, representing 2022‐12‐31T23:10:00Z, as the tm_min = 70 was normalized to an increment of tm_hour by one and tm_min = 10. This normalizing can lead to cascading changes: Again using a struct tm initialized as in the above example but with a tm_hour = 23, the same change would yield a time_t with value 1672531800, representing 2023‐01‐01T00:10:00Z: the normalization of tm_min incremented tm_hour, which lead to a normalization of tm_mday, which in turn caused tm_mon to be normalized, which in turn lead to the increment of tm_year. In addition, negative values may also be normalized, such that e.g., a tm_hour of −1 means 1 hour before midnight, tm_mday of 0 means the day preceding the current month, and tm_mon of −2 means 2 months before January of tm_year. --- The fact that mktime(2) returns a time_t makes the phrasing even more awkward, and I suppose we could leave out the actual value and say "would yield a time_t representing..."? Other ideas to improve this? -Jan
Re: CVS commit: src/lib/libc/time
Robert Elz wrote: > Date:Sun, 23 Oct 2022 13:53:01 -0400 > From: Jan Schaumann > Message-ID: > > | Hmm, maybe something like this? > > I think there is still too much there, you don't have > to explain everything (or almost anything), but it is > in the right direction I think. New proposal: --- [...] components are not restricted to their normal ranges and will be normalized, if need be. For example, consider a struct tm initialized with a tm_year = 122, tm_mon = 10, tm_mday = 30, tm_hour = 22, tm_min = 57, and a tm_sec = 0. Incrementing tm_min by 13 and calling mktime() would lead to a tm_hour = 23 and tm_min = 10. This normalizing can lead to cascading changes: Again using a struct tm initialized as in the above example but with a tm_hour = 23, the same change would lead to a tm_mon = 11, tm_mday = 1, tm_hour = 0, and tm_min = 10. Negative values may also be normalized with similar cascading effect such that e.g., a tm_hour of −1 means 1 hour before mid‐ night on the previous day and so on. --- ? -Jan
CVS commit: src/lib/libc/time
Module Name:src Committed By: jschauma Date: Wed Oct 26 23:22:54 UTC 2022 Modified Files: src/lib/libc/time: ctime.3 Log Message: rephrase / clarify explanation of struct tm member normalization To generate a diff of this commit: cvs rdiff -u -r1.67 -r1.68 src/lib/libc/time/ctime.3 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/ctime.3 diff -u src/lib/libc/time/ctime.3:1.67 src/lib/libc/time/ctime.3:1.68 --- src/lib/libc/time/ctime.3:1.67 Fri Oct 21 12:28:43 2022 +++ src/lib/libc/time/ctime.3 Wed Oct 26 23:22:54 2022 @@ -1,4 +1,4 @@ -.\" $NetBSD: ctime.3,v 1.67 2022/10/21 12:28:43 uwe Exp $ +.\" $NetBSD: ctime.3,v 1.68 2022/10/26 23:22:54 jschauma Exp $ .\" .\" XXX: License missing? .\" @@ -255,15 +255,56 @@ components of the structure are ignored, and the original values of the other components are not restricted to their normal ranges and will be normalized, if need be. +.Pp For example, -October 40 is changed into November 9, a -.Fa tm_hour -of \-1 means 1 hour before midnight, +consider a +.Fa struct tm +initialized with +.Fa tm_year += 122, +.Fa tm_mon += 10, .Fa tm_mday -of 0 means the day preceding the current month, and += 30, +.Fa tm_hour += 22, +.Fa tm_min += 57, +and +.Fa tm_sec += 0. +Incrementing +.Fa tm_min +by 13 and calling +.Fn mktime +would lead to +.Fa tm_hour += 23 and +.Fa tm_min += 10. +.Pp +This normalizing can lead to cascading changes: +Again using a +.Fa struct tm +initialized as in the above example but with +.Fa tm_hour += 23, +the same change would lead to .Fa tm_mon -of \-2 means 2 months before January of -.Fa tm_year . += 11, +.Fa tm_mday += 1, +.Fa tm_hour += 0, and +.Fa tm_min += 10. +.Pp +Negative values may also be normalized with similar +cascading effect such that e.g., +a +.Fa tm_hour +of \-1 means 1 hour before midnight on the previous +day and so on. .It A positive or zero value for .Fa tm_isdst
CVS commit: src/lib/libc/time
Module Name:src Committed By: jschauma Date: Wed Oct 26 23:22:54 UTC 2022 Modified Files: src/lib/libc/time: ctime.3 Log Message: rephrase / clarify explanation of struct tm member normalization To generate a diff of this commit: cvs rdiff -u -r1.67 -r1.68 src/lib/libc/time/ctime.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/etc
Module Name:src Committed By: jschauma Date: Mon Nov 28 02:46:58 UTC 2022 Modified Files: src/etc: protocols Log Message: regen from IANA 2022-09-28 To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/etc/protocols Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/etc
Module Name:src Committed By: jschauma Date: Mon Nov 28 02:46:58 UTC 2022 Modified Files: src/etc: protocols Log Message: regen from IANA 2022-09-28 To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/etc/protocols Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/etc/protocols diff -u src/etc/protocols:1.31 src/etc/protocols:1.32 --- src/etc/protocols:1.31 Thu Apr 8 19:03:43 2021 +++ src/etc/protocols Mon Nov 28 02:46:58 2022 @@ -1,8 +1,10 @@ -# $NetBSD: protocols,v 1.31 2021/04/08 19:03:43 christos Exp $ -# See also: protocols(5), http://www.sethwklein.net/projects/iana-etc/ +# $NetBSD: protocols,v 1.32 2022/11/28 02:46:58 jschauma Exp $ +# See also: protocols(5), https://www.iana.org/assignments/protocol-numbers/ # +#Protocol Numbers +# #Last Updated -#2021-02-26 +#2022-09-28 # #Available Formats #[IMG] @@ -50,7 +52,7 @@ igmp 2 IGMP # Internet ggp3 GGP # Gateway-to-Gateway [RFC823] ipv4 4 IPv4 # IPv4 encapsulation [RFC2003] st 5 ST # Stream [RFC1190][RFC1819] -tcp6 TCP # Transmission Control[RFC793] +tcp6 TCP # Transmission Control[RFC9293] cbt7 CBT # CBT [Tony_Ballardie] egp8 EGP # Exterior Gateway Protocol [RFC888][David_Mills] # any private interior gateway @@ -162,9 +164,9 @@ iso-ip80 ISO-IP # ISO Inte vmtp 81 VMTP # VMTP[Dave_Cheriton] secure-vmtp 82 SECURE-VMTP # SECURE-VMTP [Dave_Cheriton] vines 83 VINES# VINES [Brian Horn] -ttp 84 TTP iptm IPTM # Transaction Transport [Jim_Stevens] +ttp 84 TTP # Transaction Transport [Jim_Stevens] # Protocol -#iptm 84 IPTM # Internet Protocol Traffic [Jim_Stevens] +iptm 84 IPTM # Internet Protocol Traffic [Jim_Stevens] # Manager nsfnet-igp85 NSFNET-IGP # NSFNET-IGP [Hans_Werner_Braun] dgp 86 DGP # Dissimilar Gateway Protocol [M/A-COM Government Systems, "Dissimilar Gateway Protocol Specification, @@ -205,7 +207,7 @@ ipcomp 108 IPComp # IP Paylo snp 109 SNP # Sitara Networks Protocol[Manickam_R_Sridhar] compaq-peer 110 Compaq-Peer # Compaq Peer Protocol[Victor_Volpe] ipx-in-ip111 IPX-in-IP# IPX in IP [CJ_Lee] -vrrp 112 VRRP carp# Virtual Router Redundancy [RFC5798] +vrrp 112 VRRP # Virtual Router Redundancy [RFC5798] # Protocol pgm 113 PGM # PGM Reliable Transport [Tony_Speakman] # Protocol @@ -238,16 +240,16 @@ rsvp-e2e-ignore 134 RSVP-E2E-IGNORE # [R mobility 135 Mobility # Header Y[RFC6275] udplite 136 UDPLite # [RFC3828] mpls-in-ip 137 MPLS-in-IP # [RFC4023] -manet138 MANET# MANET Protocols [RFC5498] +manet138 manet# MANET Protocols [RFC5498] hip 139 HIP # Host Identity Protocol Y[RFC7401] shim6140 Shim6# Shim6 Protocol Y[RFC5533] wesp 141 WESP # Wrapped Encapsulating [RFC5840] # Security Payload rohc 142 ROHC # Robust Header Compression [RFC5858] ethernet 143 Ethernet # Ethernet[RFC8986] -#144-252Unassigned [Internet_Assigned_Numbers_Authority] -pfsync 240 PFSYNC # PF Synchronization -#241-252Unassigned [Internet_Assigned_Numbers_Authority] +aggfrag 144 AGGFRAG # AGGFRAG encapsulation [RFC-ietf-ipsecme-iptfs-19] +# payload for ESP +#145-252Unassigned [Internet_Assigned_Numbers_Author
CVS commit: src/etc
Module Name:src Committed By: jschauma Date: Mon Nov 28 02:48:34 UTC 2022 Modified Files: src/etc: services Log Message: regen from IANA 2022-11-22 To generate a diff of this commit: cvs rdiff -u -r1.103 -r1.104 src/etc/services Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/etc
Module Name:src Committed By: jschauma Date: Mon Nov 28 02:48:34 UTC 2022 Modified Files: src/etc: services Log Message: regen from IANA 2022-11-22 To generate a diff of this commit: cvs rdiff -u -r1.103 -r1.104 src/etc/services Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. diffs are larger than 1MB and have been omitted
CVS commit: src/etc
Module Name:src Committed By: jschauma Date: Mon Nov 28 15:28:16 UTC 2022 Modified Files: src/etc: protocols Log Message: revert previous Automated test reports failure, reverting until I know why the test failed. To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/etc/protocols Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/etc
Module Name:src Committed By: jschauma Date: Mon Nov 28 15:28:16 UTC 2022 Modified Files: src/etc: protocols Log Message: revert previous Automated test reports failure, reverting until I know why the test failed. To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/etc/protocols Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/etc/protocols diff -u src/etc/protocols:1.32 src/etc/protocols:1.33 --- src/etc/protocols:1.32 Mon Nov 28 02:46:58 2022 +++ src/etc/protocols Mon Nov 28 15:28:16 2022 @@ -1,10 +1,8 @@ -# $NetBSD: protocols,v 1.32 2022/11/28 02:46:58 jschauma Exp $ -# See also: protocols(5), https://www.iana.org/assignments/protocol-numbers/ +# $NetBSD: protocols,v 1.33 2022/11/28 15:28:16 jschauma Exp $ +# See also: protocols(5), http://www.sethwklein.net/projects/iana-etc/ # -#Protocol Numbers -# #Last Updated -#2022-09-28 +#2021-02-26 # #Available Formats #[IMG] @@ -52,7 +50,7 @@ igmp 2 IGMP # Internet ggp3 GGP # Gateway-to-Gateway [RFC823] ipv4 4 IPv4 # IPv4 encapsulation [RFC2003] st 5 ST # Stream [RFC1190][RFC1819] -tcp6 TCP # Transmission Control[RFC9293] +tcp6 TCP # Transmission Control[RFC793] cbt7 CBT # CBT [Tony_Ballardie] egp8 EGP # Exterior Gateway Protocol [RFC888][David_Mills] # any private interior gateway @@ -164,9 +162,9 @@ iso-ip80 ISO-IP # ISO Inte vmtp 81 VMTP # VMTP[Dave_Cheriton] secure-vmtp 82 SECURE-VMTP # SECURE-VMTP [Dave_Cheriton] vines 83 VINES# VINES [Brian Horn] -ttp 84 TTP # Transaction Transport [Jim_Stevens] +ttp 84 TTP iptm IPTM # Transaction Transport [Jim_Stevens] # Protocol -iptm 84 IPTM # Internet Protocol Traffic [Jim_Stevens] +#iptm 84 IPTM # Internet Protocol Traffic [Jim_Stevens] # Manager nsfnet-igp85 NSFNET-IGP # NSFNET-IGP [Hans_Werner_Braun] dgp 86 DGP # Dissimilar Gateway Protocol [M/A-COM Government Systems, "Dissimilar Gateway Protocol Specification, @@ -207,7 +205,7 @@ ipcomp 108 IPComp # IP Paylo snp 109 SNP # Sitara Networks Protocol[Manickam_R_Sridhar] compaq-peer 110 Compaq-Peer # Compaq Peer Protocol[Victor_Volpe] ipx-in-ip111 IPX-in-IP# IPX in IP [CJ_Lee] -vrrp 112 VRRP # Virtual Router Redundancy [RFC5798] +vrrp 112 VRRP carp# Virtual Router Redundancy [RFC5798] # Protocol pgm 113 PGM # PGM Reliable Transport [Tony_Speakman] # Protocol @@ -240,16 +238,16 @@ rsvp-e2e-ignore 134 RSVP-E2E-IGNORE # [R mobility 135 Mobility # Header Y[RFC6275] udplite 136 UDPLite # [RFC3828] mpls-in-ip 137 MPLS-in-IP # [RFC4023] -manet138 manet# MANET Protocols [RFC5498] +manet138 MANET# MANET Protocols [RFC5498] hip 139 HIP # Host Identity Protocol Y[RFC7401] shim6140 Shim6# Shim6 Protocol Y[RFC5533] wesp 141 WESP # Wrapped Encapsulating [RFC5840] # Security Payload rohc 142 ROHC # Robust Header Compression [RFC5858] ethernet 143 Ethernet # Ethernet[RFC8986] -aggfrag 144 AGGFRAG # AGGFRAG encapsulation [RFC-ietf-ipsecme-iptfs-19] -# payload for ESP -#145-252Unassigned [Internet_Assigned_Numbers_Authority] +#144-252Unassigned [Internet_Assigned_Numbers_Authority] +pfsync 240 PFSYNC # PF Synchronization +#241-252Unassigned
CVS commit: src/tests/lib/libc/net
Module Name:src Committed By: jschauma Date: Mon Nov 28 17:09:52 UTC 2022 Modified Files: src/tests/lib/libc/net: t_protoent.sh Log Message: whitespace To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/net/t_protoent.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/lib/libc/net
Module Name:src Committed By: jschauma Date: Mon Nov 28 17:09:52 UTC 2022 Modified Files: src/tests/lib/libc/net: t_protoent.sh Log Message: whitespace To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/net/t_protoent.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/lib/libc/net/t_protoent.sh diff -u src/tests/lib/libc/net/t_protoent.sh:1.2 src/tests/lib/libc/net/t_protoent.sh:1.3 --- src/tests/lib/libc/net/t_protoent.sh:1.2 Mon Sep 3 15:32:18 2012 +++ src/tests/lib/libc/net/t_protoent.sh Mon Nov 28 17:09:52 2022 @@ -1,4 +1,4 @@ -# $NetBSD: t_protoent.sh,v 1.2 2012/09/03 15:32:18 christos Exp $ +# $NetBSD: t_protoent.sh,v 1.3 2022/11/28 17:09:52 jschauma Exp $ # # Copyright (c) 2008 The NetBSD Foundation, Inc. # All rights reserved. @@ -67,15 +67,15 @@ protoent_body() n = split(names[key], ar); printf "name=%s, proto=%s, aliases=", ar[1], proto; for (i=2; i<=n; i++) { - if (i>2) { -printf " "; - } - printf "%s", ar[i]; +if (i>2) { + printf " "; +} +printf "%s ", ar[i]; } printf "\n"; delete ar; } - } + } ' | sort >exp # run test program
CVS commit: src/tests/lib/libc/net
Module Name:src Committed By: jschauma Date: Mon Nov 28 17:41:00 UTC 2022 Modified Files: src/tests/lib/libc/net: t_protoent.sh Log Message: whoops, we don't want an extra space here (erroneously introduced in my previous commit) To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/net/t_protoent.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/lib/libc/net/t_protoent.sh diff -u src/tests/lib/libc/net/t_protoent.sh:1.3 src/tests/lib/libc/net/t_protoent.sh:1.4 --- src/tests/lib/libc/net/t_protoent.sh:1.3 Mon Nov 28 17:09:52 2022 +++ src/tests/lib/libc/net/t_protoent.sh Mon Nov 28 17:41:00 2022 @@ -1,4 +1,4 @@ -# $NetBSD: t_protoent.sh,v 1.3 2022/11/28 17:09:52 jschauma Exp $ +# $NetBSD: t_protoent.sh,v 1.4 2022/11/28 17:41:00 jschauma Exp $ # # Copyright (c) 2008 The NetBSD Foundation, Inc. # All rights reserved. @@ -70,7 +70,7 @@ protoent_body() if (i>2) { printf " "; } -printf "%s ", ar[i]; +printf "%s", ar[i]; } printf "\n"; delete ar;
CVS commit: src/tests/lib/libc/net
Module Name:src Committed By: jschauma Date: Mon Nov 28 17:41:00 UTC 2022 Modified Files: src/tests/lib/libc/net: t_protoent.sh Log Message: whoops, we don't want an extra space here (erroneously introduced in my previous commit) To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/net/t_protoent.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/etc
Module Name:src Committed By: jschauma Date: Mon Nov 28 19:32:46 UTC 2022 Modified Files: src/etc: protocols Log Message: regen from IANA as of 2022-09-28 This time using the updated tools from the net/iana-etc package, ensuring we don't revert previous changes and pass the tests from tests/lib/libc/net/. To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/etc/protocols Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/etc
Module Name:src Committed By: jschauma Date: Mon Nov 28 19:32:46 UTC 2022 Modified Files: src/etc: protocols Log Message: regen from IANA as of 2022-09-28 This time using the updated tools from the net/iana-etc package, ensuring we don't revert previous changes and pass the tests from tests/lib/libc/net/. To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/etc/protocols Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/etc/protocols diff -u src/etc/protocols:1.33 src/etc/protocols:1.34 --- src/etc/protocols:1.33 Mon Nov 28 15:28:16 2022 +++ src/etc/protocols Mon Nov 28 19:32:45 2022 @@ -1,8 +1,9 @@ -# $NetBSD: protocols,v 1.33 2022/11/28 15:28:16 jschauma Exp $ -# See also: protocols(5), http://www.sethwklein.net/projects/iana-etc/ +# See also: protocols(5), https://www.iana.org/assignments/protocol-numbers/ # +#Protocol Numbers +# #Last Updated -#2021-02-26 +#2022-09-28 # #Available Formats #[IMG] @@ -50,7 +51,7 @@ igmp 2 IGMP # Internet ggp3 GGP # Gateway-to-Gateway [RFC823] ipv4 4 IPv4 # IPv4 encapsulation [RFC2003] st 5 ST # Stream [RFC1190][RFC1819] -tcp6 TCP # Transmission Control[RFC793] +tcp6 TCP # Transmission Control[RFC9293] cbt7 CBT # CBT [Tony_Ballardie] egp8 EGP # Exterior Gateway Protocol [RFC888][David_Mills] # any private interior gateway @@ -164,7 +165,7 @@ secure-vmtp 82 SECURE-VMTP # SECURE-V vines 83 VINES# VINES [Brian Horn] ttp 84 TTP iptm IPTM # Transaction Transport [Jim_Stevens] # Protocol -#iptm 84 IPTM # Internet Protocol Traffic [Jim_Stevens] +#iptm 84 IPTM # Internet Protocol Traffic [Jim_Stevens] # Manager nsfnet-igp85 NSFNET-IGP # NSFNET-IGP [Hans_Werner_Braun] dgp 86 DGP # Dissimilar Gateway Protocol [M/A-COM Government Systems, "Dissimilar Gateway Protocol Specification, @@ -245,9 +246,10 @@ wesp 141 WESP # Wrapped # Security Payload rohc 142 ROHC # Robust Header Compression [RFC5858] ethernet 143 Ethernet # Ethernet[RFC8986] -#144-252Unassigned [Internet_Assigned_Numbers_Authority] +aggfrag 144 AGGFRAG # AGGFRAG encapsulation [RFC-ietf-ipsecme-iptfs-19] +# payload for ESP +#145-252Unassigned [Internet_Assigned_Numbers_Authority] pfsync 240 PFSYNC # PF Synchronization -#241-252Unassigned [Internet_Assigned_Numbers_Authority] # 253 Use for experimentation andY[RFC3692] # testing # 254 Use for experimentation andY[RFC3692] @@ -330,3 +332,5 @@ reserved 255 Reserved # [Interne #[Wesley_Craig]Wesley Craigmailto:Wesley.Craig&terminator.cc.umich.edu #[William_Melohn] William Melohn mailto:Melohn&sun.com #[Zaw_Sing_Su] Zaw-Sing Su mailto:ZSu&tsca.istc.sri. +# +#Licensing Terms
CVS commit: src/share/man/man5
Module Name:src Committed By: jschauma Date: Tue Nov 29 14:15:01 UTC 2022 Modified Files: src/share/man/man5: protocols.5 Log Message: be more specific about what /etc/protocols describes The reference to the "DARPA Internet" seems not quite up to date in 2022, so moving that to the HISTORY section. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/share/man/man5/protocols.5 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/man/man5
Module Name:src Committed By: jschauma Date: Tue Nov 29 14:15:01 UTC 2022 Modified Files: src/share/man/man5: protocols.5 Log Message: be more specific about what /etc/protocols describes The reference to the "DARPA Internet" seems not quite up to date in 2022, so moving that to the HISTORY section. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/share/man/man5/protocols.5 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/man5/protocols.5 diff -u src/share/man/man5/protocols.5:1.7 src/share/man/man5/protocols.5:1.8 --- src/share/man/man5/protocols.5:1.7 Thu Aug 7 10:31:17 2003 +++ src/share/man/man5/protocols.5 Tue Nov 29 14:15:01 2022 @@ -1,4 +1,4 @@ -.\" $NetBSD: protocols.5,v 1.7 2003/08/07 10:31:17 agc Exp $ +.\" $NetBSD: protocols.5,v 1.8 2022/11/29 14:15:01 jschauma Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)protocols.5 8.1 (Berkeley) 6/5/93 .\" -.Dd June 5, 1993 +.Dd November 27, 2022 .Dt PROTOCOLS 5 .Os .Sh NAME @@ -38,9 +38,9 @@ .Sh DESCRIPTION The .Nm protocols -file contains information regarding the known protocols used in the -.Tn DARPA -Internet. For each protocol a single line should be present +file contains information regarding the assigned protocol numbers +used by IPv4 and IPv6 to identify the next level protocol. +For each protocol a single line should be present with the following information: .Bd -unfilled -offset indent official protocol name @@ -68,10 +68,23 @@ file resides in .El .Sh SEE ALSO .Xr getprotoent 3 +.Rs +.%R RFC 2780 +.%D March 2000 +.%T "IANA Allocation Guidelines For Values In the \ +Internet Protocol and Related Headers" +.Re +.Rs +.%R RFC 5237 +.%D February 2008 +.%T "IANA Allocation Guidelines for the Protocol Field" +.Re .Sh HISTORY The .Nm file format appeared in -.Bx 4.2 . +.Bx 4.2 , +describing the "known protocols used in the DARPA +Internet". .Sh BUGS A name server should be used instead of a static file.
CVS commit: src/lib/libc/sys
Module Name:src Committed By: jschauma Date: Tue Nov 29 20:26:39 UTC 2022 Modified Files: src/lib/libc/sys: socketpair.2 Log Message: document the only supported type protocol, document type flags This uses language taken from OpenBSD's manual page. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/lib/libc/sys/socketpair.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libc/sys
Module Name:src Committed By: jschauma Date: Tue Nov 29 20:26:39 UTC 2022 Modified Files: src/lib/libc/sys: socketpair.2 Log Message: document the only supported type protocol, document type flags This uses language taken from OpenBSD's manual page. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/lib/libc/sys/socketpair.2 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/sys/socketpair.2 diff -u src/lib/libc/sys/socketpair.2:1.23 src/lib/libc/sys/socketpair.2:1.24 --- src/lib/libc/sys/socketpair.2:1.23 Mon Jun 27 08:21:08 2011 +++ src/lib/libc/sys/socketpair.2 Tue Nov 29 20:26:39 2022 @@ -1,4 +1,4 @@ -.\" $NetBSD: socketpair.2,v 1.23 2011/06/27 08:21:08 wiz Exp $ +.\" $NetBSD: socketpair.2,v 1.24 2022/11/29 20:26:39 jschauma Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)socketpair.2 8.1 (Berkeley) 6/4/93 .\" -.Dd June 24, 2011 +.Dd November 29, 2022 .Dt SOCKETPAIR 2 .Os .Sh NAME @@ -58,12 +58,32 @@ and .Fa sv[1] . The two sockets are indistinguishable. .Pp -The +Possible values for the .Fa type +argument are +.Dv SOCK_STREAM , +.Dv SOCK_DGRAM , and +.Dv SOCK_SEQPACKET ; +the only supported value for the .Fa protocol -argument values are described in -.Xr socket 2 . +is +.Ar 0 , +which will let the system select an appropriate +protocol for the requested socket +.Fa type. +.Pp +Any combination of the following flags may +additionally be used in the +.Fa type +argument: +.Pp +.Bl -tag -width "SOCK_NONBLOCKX" -offset indent -compact +.It SOCK_CLOEXEC +Set close-on-exec flag on both the new descriptors. +.It SOCK_NONBLOCK +Set non-blocking I/O mode on both the new sockets. +.El .Sh RETURN VALUES A 0 is returned if the call succeeds, \-1 if it fails. .Sh ERRORS @@ -95,6 +115,13 @@ The .Fn socketpair function call appeared in .Bx 4.2 . +.Pp +Support for the +.Dv SOCK_CLOEXEC +and +.Dv SOCK_NONBLOCK +flags appeared in +.Nx 6.0 . .Sh BUGS This call is currently implemented only for the .Dv PF_LOCAL
CVS commit: src/etc
Module Name:src Committed By: jschauma Date: Thu Dec 1 13:21:07 UTC 2022 Modified Files: src/etc: protocols Log Message: reinstate $NetBSD$ Noted by msaitoh@ To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/etc/protocols Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/etc
Module Name:src Committed By: jschauma Date: Thu Dec 1 13:21:07 UTC 2022 Modified Files: src/etc: protocols Log Message: reinstate $NetBSD$ Noted by msaitoh@ To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/etc/protocols Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/etc/protocols diff -u src/etc/protocols:1.34 src/etc/protocols:1.35 --- src/etc/protocols:1.34 Mon Nov 28 19:32:45 2022 +++ src/etc/protocols Thu Dec 1 13:21:07 2022 @@ -1,3 +1,4 @@ +# $NetBSD: protocols,v 1.35 2022/12/01 13:21:07 jschauma Exp $ # See also: protocols(5), https://www.iana.org/assignments/protocol-numbers/ # #Protocol Numbers
CVS commit: src/lib/libc/net
Module Name:src Committed By: jschauma Date: Sat Dec 3 23:55:52 UTC 2022 Modified Files: src/lib/libc/net: getservent.3 Log Message: reference /var/db/services.cdb / services_mkdb(8) To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/lib/libc/net/getservent.3 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/net/getservent.3 diff -u src/lib/libc/net/getservent.3:1.14 src/lib/libc/net/getservent.3:1.15 --- src/lib/libc/net/getservent.3:1.14 Thu Aug 7 16:43:10 2003 +++ src/lib/libc/net/getservent.3 Sat Dec 3 23:55:52 2022 @@ -1,4 +1,4 @@ -.\" $NetBSD: getservent.3,v 1.14 2003/08/07 16:43:10 agc Exp $ +.\" $NetBSD: getservent.3,v 1.15 2022/12/03 23:55:52 jschauma Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)getservent.3 8.4 (Berkeley) 5/25/95 .\" -.Dd May 25, 1995 +.Dd December 03, 2022 .Dt GETSERVENT 3 .Os .Sh NAME @@ -127,6 +127,7 @@ searches must also match the protocol. .Sh FILES .Bl -tag -width /etc/services -compact .It Pa /etc/services +.It Pa /var/db/services.cdb .El .Sh DIAGNOSTICS Null pointer @@ -135,7 +136,8 @@ Null pointer or error. .Sh SEE ALSO .Xr getprotoent 3 , -.Xr services 5 +.Xr services 5 , +.Xr services_mkdb 8 .Sh HISTORY The .Fn getservent ,
CVS commit: src/lib/libc/net
Module Name:src Committed By: jschauma Date: Sat Dec 3 23:55:52 UTC 2022 Modified Files: src/lib/libc/net: getservent.3 Log Message: reference /var/db/services.cdb / services_mkdb(8) To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/lib/libc/net/getservent.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/lib/libc/net
Module Name:src Committed By: jschauma Date: Sun Dec 4 02:42:39 UTC 2022 Modified Files: src/tests/lib/libc/net: t_servent.sh Log Message: whitespace To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/net/t_servent.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/lib/libc/net
Module Name:src Committed By: jschauma Date: Sun Dec 4 02:42:39 UTC 2022 Modified Files: src/tests/lib/libc/net: t_servent.sh Log Message: whitespace To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/net/t_servent.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/lib/libc/net/t_servent.sh diff -u src/tests/lib/libc/net/t_servent.sh:1.2 src/tests/lib/libc/net/t_servent.sh:1.3 --- src/tests/lib/libc/net/t_servent.sh:1.2 Tue Mar 8 08:34:17 2016 +++ src/tests/lib/libc/net/t_servent.sh Sun Dec 4 02:42:39 2022 @@ -1,4 +1,4 @@ -# $NetBSD: t_servent.sh,v 1.2 2016/03/08 08:34:17 joerg Exp $ +# $NetBSD: t_servent.sh,v 1.3 2022/12/04 02:42:39 jschauma Exp $ # # Copyright (c) 2008 The NetBSD Foundation, Inc. # All rights reserved. @@ -41,45 +41,45 @@ servent_body() # (3) prune duplicates # tr '\t' ' ' 2) { -printf " "; + sub("#.*", "", $0); + gsub(" *", " ", $0); + if (NF==0) { +next; } - printf "%s", ar[i]; + add($2, $1, 0); + for (i=3; i<=NF; i++) { +add($2, $i, 1); } - printf "\n"; - delete ar; } + END { + for (key in names) { +portproto = key; +sub("/", ", proto=", portproto); +portproto = "port=" portproto; + +n = split(names[key], ar); +printf "name=%s, %s, aliases=", ar[1], portproto; +for (i=2; i<=n; i++) { + if (i>2) { + printf " "; + } + printf "%s", ar[i]; +} +printf "\n"; +delete ar; + } } ' | sort >exp
CVS commit: src/tests/lib/libc/net
Module Name:src Committed By: jschauma Date: Sun Dec 4 02:53:17 UTC 2022 Modified Files: src/tests/lib/libc/net: t_protoent.sh t_servent.sh Log Message: allow testing of files other than those in /etc To test e.g., the file "/some/where/protocols" instead of "/etc/protocols", set TEST_FILE=/some/where/protocols in your environment. Note: this now compares the contents of the file you gave versus what getprotoent(3)/getservent(3) uses (which still is /etc/protocols via h_protoent.c / /etc/services or /var/db/services.cdb via h_servent.c). When you have expected changes in the services or protocols file that you're generating, this necessarily produces a difference. To really allow testing the file versus what the library function returns, you'd have to install the file on the system running the test, but at least with this change you can now generate the file and verify that it didn't caused unexpected differences. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/net/t_protoent.sh cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/net/t_servent.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/lib/libc/net
Module Name:src Committed By: jschauma Date: Sun Dec 4 02:53:17 UTC 2022 Modified Files: src/tests/lib/libc/net: t_protoent.sh t_servent.sh Log Message: allow testing of files other than those in /etc To test e.g., the file "/some/where/protocols" instead of "/etc/protocols", set TEST_FILE=/some/where/protocols in your environment. Note: this now compares the contents of the file you gave versus what getprotoent(3)/getservent(3) uses (which still is /etc/protocols via h_protoent.c / /etc/services or /var/db/services.cdb via h_servent.c). When you have expected changes in the services or protocols file that you're generating, this necessarily produces a difference. To really allow testing the file versus what the library function returns, you'd have to install the file on the system running the test, but at least with this change you can now generate the file and verify that it didn't caused unexpected differences. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/net/t_protoent.sh cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/net/t_servent.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/lib/libc/net/t_protoent.sh diff -u src/tests/lib/libc/net/t_protoent.sh:1.4 src/tests/lib/libc/net/t_protoent.sh:1.5 --- src/tests/lib/libc/net/t_protoent.sh:1.4 Mon Nov 28 17:41:00 2022 +++ src/tests/lib/libc/net/t_protoent.sh Sun Dec 4 02:53:17 2022 @@ -1,4 +1,4 @@ -# $NetBSD: t_protoent.sh,v 1.4 2022/11/28 17:41:00 jschauma Exp $ +# $NetBSD: t_protoent.sh,v 1.5 2022/12/04 02:53:17 jschauma Exp $ # # Copyright (c) 2008 The NetBSD Foundation, Inc. # All rights reserved. @@ -24,6 +24,7 @@ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # +: ${TEST_FILE:="/etc/protocols"} atf_test_case protoent protoent_head() @@ -38,7 +39,7 @@ protoent_body() # (2) fold all names for the same port/proto together # (3) prune duplicates # - tr '\t' ' '
CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Mon Dec 5 15:00:19 UTC 2022 Modified Files: src/share/misc: acronyms.comp Log Message: +CSPM - cloud security posture management To generate a diff of this commit: cvs rdiff -u -r1.327 -r1.328 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.327 src/share/misc/acronyms.comp:1.328 --- src/share/misc/acronyms.comp:1.327 Sun Mar 20 20:19:34 2022 +++ src/share/misc/acronyms.comp Mon Dec 5 15:00:19 2022 @@ -1,4 +1,4 @@ -$NetBSD: acronyms.comp,v 1.327 2022/03/20 20:19:34 andvar Exp $ +$NetBSD: acronyms.comp,v 1.328 2022/12/05 15:00:19 jschauma Exp $ 3WHS three-way handshake 8VSB 8-state vestigial side band modulation AA anti-aliasing @@ -307,6 +307,7 @@ CR carriage return CRC cyclic redundancy check CRL carrier recovery loop CRLF carriage return line feed +CSPM cloud security posture management CSU C start up CRT cathode ray tube CRTP curiously recurring template pattern
CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Mon Dec 5 15:00:19 UTC 2022 Modified Files: src/share/misc: acronyms.comp Log Message: +CSPM - cloud security posture management To generate a diff of this commit: cvs rdiff -u -r1.327 -r1.328 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/share/misc
Module Name:src Committed By: jschauma Date: Tue Dec 6 15:51:16 UTC 2022 Modified Files: src/share/misc: acronyms.comp Log Message: +ROP - return-oriented programming To generate a diff of this commit: cvs rdiff -u -r1.328 -r1.329 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/share/misc
Module Name:src Committed By: jschauma Date: Tue Dec 6 15:51:16 UTC 2022 Modified Files: src/share/misc: acronyms.comp Log Message: +ROP - return-oriented programming To generate a diff of this commit: cvs rdiff -u -r1.328 -r1.329 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.328 src/share/misc/acronyms.comp:1.329 --- src/share/misc/acronyms.comp:1.328 Mon Dec 5 15:00:19 2022 +++ src/share/misc/acronyms.comp Tue Dec 6 15:51:16 2022 @@ -1,4 +1,4 @@ -$NetBSD: acronyms.comp,v 1.328 2022/12/05 15:00:19 jschauma Exp $ +$NetBSD: acronyms.comp,v 1.329 2022/12/06 15:51:16 jschauma Exp $ 3WHS three-way handshake 8VSB 8-state vestigial side band modulation AA anti-aliasing @@ -1370,6 +1370,7 @@ RMS root mean square RMW read, modify, write RNG random number generator ROM read only memory +ROP return-oriented programming RPC remote procedure call RPG Report Program Generator RPKI resource PKI
CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Thu Dec 8 23:41:22 UTC 2022 Modified Files: src/share/misc: acronyms.comp Log Message: +AEAD, HKDF, NMR, SIV To generate a diff of this commit: cvs rdiff -u -r1.329 -r1.330 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/share/misc
Module Name:src Committed By: jschauma Date: Thu Dec 8 23:41:22 UTC 2022 Modified Files: src/share/misc: acronyms.comp Log Message: +AEAD, HKDF, NMR, SIV To generate a diff of this commit: cvs rdiff -u -r1.329 -r1.330 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.329 src/share/misc/acronyms.comp:1.330 --- src/share/misc/acronyms.comp:1.329 Tue Dec 6 15:51:16 2022 +++ src/share/misc/acronyms.comp Thu Dec 8 23:41:22 2022 @@ -1,4 +1,4 @@ -$NetBSD: acronyms.comp,v 1.329 2022/12/06 15:51:16 jschauma Exp $ +$NetBSD: acronyms.comp,v 1.330 2022/12/08 23:41:22 jschauma Exp $ 3WHS three-way handshake 8VSB 8-state vestigial side band modulation AA anti-aliasing @@ -30,6 +30,7 @@ ADPCM adaptive differential pulse code m ADS alternate data stream ADSL asymmetric digital subscriber line ADT abstract data type +AEAD authenticated encryption with associated data AEDC advanced error detection and correction AER advanced error reporting AES Advanced Encryption Standard @@ -681,6 +682,7 @@ HF high frequency HFM highest frequency mode HFS hierarchical file system HID human interface device +HKDF HMAC-based key derivation function HKP HTTP Keyserver Protocol HLL high-level language HMA high memory area @@ -1074,6 +1076,7 @@ NIST National Institute of Standards and NLS native language support NMI non-maskable interrupt NNTP Network News Transfer Protocol +NMR nonce-misuse resistance NOC network operations center NOP no operation NOS network operating system @@ -1492,6 +1495,7 @@ SIP Session Initiation Protocol SIR signal-to-interference ratio SIR slow infrared SISD single instruction, single data +SIV synthetic intialization vector SLAAC stateless address auto-configuration SLC single-level cell SLDRAM synchronous-link dynamic random access memory
CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Tue Dec 19 15:01:23 UTC 2023 Modified Files: src/share/misc: acronyms.comp Log Message: +NVD national vulnerability database To generate a diff of this commit: cvs rdiff -u -r1.383 -r1.384 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/share/misc
Module Name:src Committed By: jschauma Date: Tue Dec 19 15:01:23 UTC 2023 Modified Files: src/share/misc: acronyms.comp Log Message: +NVD national vulnerability database To generate a diff of this commit: cvs rdiff -u -r1.383 -r1.384 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.383 src/share/misc/acronyms.comp:1.384 --- src/share/misc/acronyms.comp:1.383 Thu Dec 7 16:03:32 2023 +++ src/share/misc/acronyms.comp Tue Dec 19 15:01:23 2023 @@ -1,4 +1,4 @@ -$NetBSD: acronyms.comp,v 1.383 2023/12/07 16:03:32 jschauma Exp $ +$NetBSD: acronyms.comp,v 1.384 2023/12/19 15:01:23 jschauma Exp $ 3WHS three-way handshake 8VSB 8-state vestigial side band modulation AA anti-aliasing @@ -1141,6 +1141,7 @@ NTM non-deterministic Turing machine NTP Network Time Protocol NUMA non-uniform memory access NURBS non-uniform rational basis spline +NVD National Vulnerability Database NVMM NetBSD Virtual Machine Monitor NVMM non-volatile main memory NVRAM non-volatile random access memory
CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Tue Jan 2 17:44:00 UTC 2024 Modified Files: src/share/misc: acronyms.comp Log Message: +EPSS Exploit Prediction Scoring System +PEDPIN Entry Device To generate a diff of this commit: cvs rdiff -u -r1.384 -r1.385 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/share/misc
Module Name:src Committed By: jschauma Date: Tue Jan 2 17:44:00 UTC 2024 Modified Files: src/share/misc: acronyms.comp Log Message: +EPSS Exploit Prediction Scoring System +PEDPIN Entry Device To generate a diff of this commit: cvs rdiff -u -r1.384 -r1.385 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.384 src/share/misc/acronyms.comp:1.385 --- src/share/misc/acronyms.comp:1.384 Tue Dec 19 15:01:23 2023 +++ src/share/misc/acronyms.comp Tue Jan 2 17:44:00 2024 @@ -1,4 +1,4 @@ -$NetBSD: acronyms.comp,v 1.384 2023/12/19 15:01:23 jschauma Exp $ +$NetBSD: acronyms.comp,v 1.385 2024/01/02 17:44:00 jschauma Exp $ 3WHS three-way handshake 8VSB 8-state vestigial side band modulation AA anti-aliasing @@ -577,6 +577,7 @@ EPP enhanced parallel port EPP extensible provisioning protocol (RFC5730) EPRML extended partial response, maximum likelihood EPROM erasable programmable read only memory +EPSS Exploit Prediction Scoring System EPT extended page tables ERC error recovery control ERD emergency recovery disk @@ -1254,6 +1255,7 @@ PE protection enable PE provider edge PEAP Protected EAP PECI platform environment control interface +PED PIN Entry Device PEP protocol extension protocol PER packed encoding rules PFS perfect forward secrecy
CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Thu Jan 18 03:33:08 UTC 2024 Modified Files: src/share/misc: acronyms.comp Log Message: +IKM input keying material To generate a diff of this commit: cvs rdiff -u -r1.385 -r1.386 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/share/misc
Module Name:src Committed By: jschauma Date: Thu Jan 18 03:33:08 UTC 2024 Modified Files: src/share/misc: acronyms.comp Log Message: +IKM input keying material To generate a diff of this commit: cvs rdiff -u -r1.385 -r1.386 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.385 src/share/misc/acronyms.comp:1.386 --- src/share/misc/acronyms.comp:1.385 Tue Jan 2 17:44:00 2024 +++ src/share/misc/acronyms.comp Thu Jan 18 03:33:08 2024 @@ -1,4 +1,4 @@ -$NetBSD: acronyms.comp,v 1.385 2024/01/02 17:44:00 jschauma Exp $ +$NetBSD: acronyms.comp,v 1.386 2024/01/18 03:33:08 jschauma Exp $ 3WHS three-way handshake 8VSB 8-state vestigial side band modulation AA anti-aliasing @@ -788,6 +788,7 @@ IGMP Internet Group Management Protocol IGP interior gateway protocol IHV independent hardware vendor IKE Internet key exchange +IKM input keying material ILM internal loopback mode ILOM integrated lights-out management ILP instruction level parallelism
CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Tue Jan 23 15:58:17 UTC 2024 Modified Files: src/share/misc: acronyms.comp Log Message: +HNDL harvest now, decrypt later To generate a diff of this commit: cvs rdiff -u -r1.386 -r1.387 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/share/misc
Module Name:src Committed By: jschauma Date: Tue Jan 23 15:58:17 UTC 2024 Modified Files: src/share/misc: acronyms.comp Log Message: +HNDL harvest now, decrypt later To generate a diff of this commit: cvs rdiff -u -r1.386 -r1.387 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.386 src/share/misc/acronyms.comp:1.387 --- src/share/misc/acronyms.comp:1.386 Thu Jan 18 03:33:08 2024 +++ src/share/misc/acronyms.comp Tue Jan 23 15:58:17 2024 @@ -1,4 +1,4 @@ -$NetBSD: acronyms.comp,v 1.386 2024/01/18 03:33:08 jschauma Exp $ +$NetBSD: acronyms.comp,v 1.387 2024/01/23 15:58:17 jschauma Exp $ 3WHS three-way handshake 8VSB 8-state vestigial side band modulation AA anti-aliasing @@ -724,6 +724,7 @@ HLE hardware lock elision (Intel) HLL high-level language HMA high memory area HMI human-machine interface +HNDL harvest now, decrypt later HOOD hierarchical object oriented design HOTP HMAC-based one time password HP Hewlett-Packard
CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Mon Jan 29 16:31:53 UTC 2024 Modified Files: src/share/misc: acronyms.comp Log Message: +HPKE, PKE (hybrid) public key encryption (see also: RFC9180) To generate a diff of this commit: cvs rdiff -u -r1.387 -r1.388 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.387 src/share/misc/acronyms.comp:1.388 --- src/share/misc/acronyms.comp:1.387 Tue Jan 23 15:58:17 2024 +++ src/share/misc/acronyms.comp Mon Jan 29 16:31:53 2024 @@ -1,4 +1,4 @@ -$NetBSD: acronyms.comp,v 1.387 2024/01/23 15:58:17 jschauma Exp $ +$NetBSD: acronyms.comp,v 1.388 2024/01/29 16:31:53 jschauma Exp $ 3WHS three-way handshake 8VSB 8-state vestigial side band modulation AA anti-aliasing @@ -731,6 +731,7 @@ HP Hewlett-Packard HPC high performance computing HPD hot plug detection HPET high precision event timer +HPKE hybrid public key encryption HSM hardware security module HSM hierarchical storage management HSRP hot standby router protocol @@ -1284,6 +1285,7 @@ PIT programmable interrupt timer PIV personal identity verification PIX Private Internet eXchange PKCS public-key cryptography standards +PKE public key encryption PKI public key infrastructure PLC programmable logic controller PLD programmable logic device
CVS commit: src/share/misc
Module Name:src Committed By: jschauma Date: Mon Jan 29 16:31:53 UTC 2024 Modified Files: src/share/misc: acronyms.comp Log Message: +HPKE, PKE (hybrid) public key encryption (see also: RFC9180) To generate a diff of this commit: cvs rdiff -u -r1.387 -r1.388 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/lib/libpthread
Module Name:src Committed By: jschauma Date: Sat Apr 29 20:51:45 UTC 2023 Modified Files: src/lib/libpthread: pthread_create.3 Log Message: delete spurious space To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/lib/libpthread/pthread_create.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libpthread
Module Name:src Committed By: jschauma Date: Sat Apr 29 20:51:45 UTC 2023 Modified Files: src/lib/libpthread: pthread_create.3 Log Message: delete spurious space To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/lib/libpthread/pthread_create.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libpthread/pthread_create.3 diff -u src/lib/libpthread/pthread_create.3:1.7 src/lib/libpthread/pthread_create.3:1.8 --- src/lib/libpthread/pthread_create.3:1.7 Fri Jul 9 08:51:28 2010 +++ src/lib/libpthread/pthread_create.3 Sat Apr 29 20:51:45 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: pthread_create.3,v 1.7 2010/07/09 08:51:28 jruoho Exp $ +.\" $NetBSD: pthread_create.3,v 1.8 2023/04/29 20:51:45 jschauma Exp $ .\" .\" Copyright (c) 2002 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -126,7 +126,7 @@ The signal mask is inherited from the cr The set of signals pending for the new thread is empty. .El .Sh RETURN VALUES -If successful, the +If successful, the .Fn pthread_create function will return zero. Otherwise an error number will be returned to
CVS commit: src/usr.bin/chflags
Module Name:src Committed By: jschauma Date: Thu May 18 19:08:16 UTC 2023 Modified Files: src/usr.bin/chflags: chflags.1 Log Message: Note that the ability to change certain flags depends on the current securelevel. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/usr.bin/chflags/chflags.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/chflags
Module Name:src Committed By: jschauma Date: Thu May 18 19:08:16 UTC 2023 Modified Files: src/usr.bin/chflags: chflags.1 Log Message: Note that the ability to change certain flags depends on the current securelevel. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/usr.bin/chflags/chflags.1 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/chflags/chflags.1 diff -u src/usr.bin/chflags/chflags.1:1.25 src/usr.bin/chflags/chflags.1:1.26 --- src/usr.bin/chflags/chflags.1:1.25 Fri May 5 04:14:02 2023 +++ src/usr.bin/chflags/chflags.1 Thu May 18 19:08:16 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: chflags.1,v 1.25 2023/05/05 04:14:02 kre Exp $ +.\" $NetBSD: chflags.1,v 1.26 2023/05/18 19:08:16 jschauma Exp $ .\" .\" Copyright (c) 1989, 1990, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -32,7 +32,7 @@ .\" .\" @(#)chflags.1 8.4 (Berkeley) 5/2/95 .\" -.Dd December 12, 2012 +.Dd May 18, 2023 .Dt CHFLAGS 1 .Os .Sh NAME @@ -135,6 +135,13 @@ is used to display the flags. .Pp The kernel does not allow the flags on block and character devices to be changed except by the super-user. +.Pp +Note that the ability to clear certain flags is +dependent on the current kernel +.Em securelevel . +See +.Xr secmodel_securelevel 9 +for details. .Sh EXIT STATUS .Ex -std .Sh SEE ALSO
CVS commit: src/usr.bin/chflags
Module Name:src Committed By: jschauma Date: Fri May 19 16:14:00 UTC 2023 Modified Files: src/usr.bin/chflags: chflags.1 Log Message: We mention secmodel_securelevel(9) in the details, so might as well add it to SEE ALSO. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/usr.bin/chflags/chflags.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/chflags
Module Name:src Committed By: jschauma Date: Fri May 19 16:14:00 UTC 2023 Modified Files: src/usr.bin/chflags: chflags.1 Log Message: We mention secmodel_securelevel(9) in the details, so might as well add it to SEE ALSO. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/usr.bin/chflags/chflags.1 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/chflags/chflags.1 diff -u src/usr.bin/chflags/chflags.1:1.26 src/usr.bin/chflags/chflags.1:1.27 --- src/usr.bin/chflags/chflags.1:1.26 Thu May 18 19:08:16 2023 +++ src/usr.bin/chflags/chflags.1 Fri May 19 16:14:00 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: chflags.1,v 1.26 2023/05/18 19:08:16 jschauma Exp $ +.\" $NetBSD: chflags.1,v 1.27 2023/05/19 16:14:00 jschauma Exp $ .\" .\" Copyright (c) 1989, 1990, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -32,7 +32,7 @@ .\" .\" @(#)chflags.1 8.4 (Berkeley) 5/2/95 .\" -.Dd May 18, 2023 +.Dd May 19, 2023 .Dt CHFLAGS 1 .Os .Sh NAME @@ -152,4 +152,5 @@ for details. .Xr fts 3 , .Xr symlink 7 , .Xr dump 8 , -.Xr init 8 +.Xr init 8 , +.Xr secmodel_securelevel 9
CVS commit: src/usr.bin/chflags
Module Name:src Committed By: jschauma Date: Wed May 24 22:33:17 UTC 2023 Modified Files: src/usr.bin/chflags: chflags.1 Log Message: Briefly describe the 'arch' and 'nodump' flags. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/usr.bin/chflags/chflags.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/chflags
Module Name:src Committed By: jschauma Date: Wed May 24 22:33:17 UTC 2023 Modified Files: src/usr.bin/chflags: chflags.1 Log Message: Briefly describe the 'arch' and 'nodump' flags. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/usr.bin/chflags/chflags.1 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/chflags/chflags.1 diff -u src/usr.bin/chflags/chflags.1:1.28 src/usr.bin/chflags/chflags.1:1.29 --- src/usr.bin/chflags/chflags.1:1.28 Fri May 19 19:50:59 2023 +++ src/usr.bin/chflags/chflags.1 Wed May 24 22:33:17 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: chflags.1,v 1.28 2023/05/19 19:50:59 uwe Exp $ +.\" $NetBSD: chflags.1,v 1.29 2023/05/24 22:33:17 jschauma Exp $ .\" .\" Copyright (c) 1989, 1990, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -32,7 +32,7 @@ .\" .\" @(#)chflags.1 8.4 (Berkeley) 5/2/95 .\" -.Dd May 19, 2023 +.Dd May 24, 2023 .Dt CHFLAGS 1 .Os .Sh NAME @@ -104,6 +104,18 @@ The following keywords are currently def .It Li uchg Ta user immutable Ta owner or super-user .El .Pp +The +.Va arch +flag is only used in connection with certain foreign +filesystems (e.g., MS-DOS, where it indicates whether +a file has been modified since it was last backed up). +.Pp +A file with the +.Va nodump +flag set will by default only be backed up by +.Xr dump 8 +during full backups. +.Pp Putting the letters .Sq Cm no before a keyword causes the flag to be turned off.
Re: CVS commit: src/usr.bin/chflags
Valery Ushakov wrote: > On Wed, May 24, 2023 at 22:33:17 +0000, Jan Schaumann wrote: > > Briefly describe the 'arch' and 'nodump' flags. > > What makes them special and why is that these two have to be described > here and not in chflags(2), where the flags are actually defined? Unlike the other flags, they are not intuitive. As they are exposed to the end-user (versus the programmer), it seems useful to describe them in section 1 of the manual pages. > In any case, please, at least skim through mdoc.samples(7) once. I did. I suspect sometimes what's "obvious" ends up being subjective, though. 'Cm' looked to me to be intended for use with non-dash-preceded flags, not as arguments to the command. I might even have considered 'Ar' more "obvious". -Jan
CVS commit: src/usr.bin/chflags
Module Name:src Committed By: jschauma Date: Thu May 25 12:57:38 UTC 2023 Modified Files: src/usr.bin/chflags: chflags.1 Log Message: revert my previous commit as there is no agreement on it being either desired or appropriate To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/usr.bin/chflags/chflags.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/chflags
Module Name:src Committed By: jschauma Date: Thu May 25 12:57:38 UTC 2023 Modified Files: src/usr.bin/chflags: chflags.1 Log Message: revert my previous commit as there is no agreement on it being either desired or appropriate To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/usr.bin/chflags/chflags.1 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/chflags/chflags.1 diff -u src/usr.bin/chflags/chflags.1:1.30 src/usr.bin/chflags/chflags.1:1.31 --- src/usr.bin/chflags/chflags.1:1.30 Thu May 25 01:31:27 2023 +++ src/usr.bin/chflags/chflags.1 Thu May 25 12:57:37 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: chflags.1,v 1.30 2023/05/25 01:31:27 uwe Exp $ +.\" $NetBSD: chflags.1,v 1.31 2023/05/25 12:57:37 jschauma Exp $ .\" .\" Copyright (c) 1989, 1990, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -32,7 +32,7 @@ .\" .\" @(#)chflags.1 8.4 (Berkeley) 5/2/95 .\" -.Dd May 24, 2023 +.Dd May 25, 2023 .Dt CHFLAGS 1 .Os .Sh NAME @@ -104,18 +104,6 @@ The following keywords are currently def .It Li uchg Ta user immutable Ta owner or super-user .El .Pp -The -.Cm arch -flag is only used in connection with certain foreign -filesystems (e.g., MS-DOS, where it indicates whether -a file has been modified since it was last backed up). -.Pp -A file with the -.Cm nodump -flag set will by default only be backed up by -.Xr dump 8 -during full backups. -.Pp Putting the letters .Sq Cm no before a keyword causes the flag to be turned off.
Re: CVS commit: src/usr.bin/chflags
Valery Ushakov wrote: > Anyway, this change is strictly for the worse. ¯\_(ツ)_/¯ I've reverted the change. -Jan