CVS commit: src/bin/sh
Module Name:src Committed By: kre Date: Sat Jun 15 06:07:14 UTC 2024 Modified Files: src/bin/sh: jobs.c Log Message: When generating the text that identifies the command for the job tree from the parse tree data, be more intelligent about where we stick ';' characters. Previously, given: (sleep 2 & sleep 3 & sleep 10&) & jobs -l The output would be something like [1] + 23631 Running (sleep 2 &; sleep 3 &; sleep 10 &) That's nonsense (even if clear enough). After this change the output will be: [1] + 12116 Running (sleep 2 & sleep 3 & sleep 10 &) There are a few other cases where an incorrect ';' will also be suppressed. To generate a diff of this commit: cvs rdiff -u -r1.120 -r1.121 src/bin/sh/jobs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/sh
Module Name:src Committed By: kre Date: Sat Jun 15 06:07:14 UTC 2024 Modified Files: src/bin/sh: jobs.c Log Message: When generating the text that identifies the command for the job tree from the parse tree data, be more intelligent about where we stick ';' characters. Previously, given: (sleep 2 & sleep 3 & sleep 10&) & jobs -l The output would be something like [1] + 23631 Running (sleep 2 &; sleep 3 &; sleep 10 &) That's nonsense (even if clear enough). After this change the output will be: [1] + 12116 Running (sleep 2 & sleep 3 & sleep 10 &) There are a few other cases where an incorrect ';' will also be suppressed. To generate a diff of this commit: cvs rdiff -u -r1.120 -r1.121 src/bin/sh/jobs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/bin/sh/jobs.c diff -u src/bin/sh/jobs.c:1.120 src/bin/sh/jobs.c:1.121 --- src/bin/sh/jobs.c:1.120 Sat Jun 15 05:18:48 2024 +++ src/bin/sh/jobs.c Sat Jun 15 06:07:14 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: jobs.c,v 1.120 2024/06/15 05:18:48 kre Exp $ */ +/* $NetBSD: jobs.c,v 1.121 2024/06/15 06:07:14 kre Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: jobs.c,v 1.120 2024/06/15 05:18:48 kre Exp $"); +__RCSID("$NetBSD: jobs.c,v 1.121 2024/06/15 06:07:14 kre Exp $"); #endif #endif /* not lint */ @@ -111,7 +111,7 @@ STATIC int dowait(int, struct job *, str #define WSILENT 4 STATIC int jobstatus(const struct job *, int); STATIC int waitproc(int, struct job *, int *); -STATIC void cmdtxt(union node *); +STATIC int cmdtxt(union node *, int); STATIC void cmdlist(union node *, int); STATIC void cmdputs(const char *); inline static void cmdputi(int); @@ -1720,7 +1720,7 @@ commandtext(struct procstat *ps, union n else len = sizeof(ps->cmd) / 10; cmdnleft = len; - cmdtxt(n); + (void)cmdtxt(n, 1); if (cmdnleft <= 0) { char *p = ps->cmd + len - 4; p[0] = '.'; @@ -1736,8 +1736,16 @@ commandtext(struct procstat *ps, union n } -STATIC void -cmdtxt(union node *n) +/* + * Generate a string describing tree node n & its descendants (recursive calls) + * + * Return true (non-zero) if the output is complete (ends with an operator) + * so no ';' need be added before the following command. Return false (zero) + * if a ';' is needed to terminate the output if it is followed by something + * which is not an operator. + */ +STATIC int +cmdtxt(union node *n, int top) { union node *np; struct nodelist *lp; @@ -1745,111 +1753,120 @@ cmdtxt(union node *n) int i; if (n == NULL || cmdnleft <= 0) - return; + return 1; switch (n->type) { case NSEMI: - cmdtxt(n->nbinary.ch1); - cmdputs("; "); - cmdtxt(n->nbinary.ch2); - break; + if (!cmdtxt(n->nbinary.ch1, 0)) + cmdputs(";"); + cmdputs(" "); + return cmdtxt(n->nbinary.ch2, 0); case NAND: - cmdtxt(n->nbinary.ch1); + (void)cmdtxt(n->nbinary.ch1, 0); cmdputs(" && "); - cmdtxt(n->nbinary.ch2); - break; + return cmdtxt(n->nbinary.ch2, 0); case NOR: - cmdtxt(n->nbinary.ch1); + (void) cmdtxt(n->nbinary.ch1, 0); cmdputs(" || "); - cmdtxt(n->nbinary.ch2); - break; + return cmdtxt(n->nbinary.ch2, 0); case NDNOT: cmdputs("! "); /* FALLTHROUGH */ case NNOT: cmdputs("! "); - cmdtxt(n->nnot.com); + return cmdtxt(n->nnot.com, 0); break; case NPIPE: for (lp = n->npipe.cmdlist ; lp ; lp = lp->next) { - cmdtxt(lp->n); + (void) cmdtxt(lp->n, 0); if (lp->next) cmdputs(" | "); } - if (n->npipe.backgnd) + if (!top && n->npipe.backgnd) { cmdputs(" &"); - break; + return 1; + } + return 0; case NSUBSHELL: cmdputs("("); - cmdtxt(n->nredir.n); + (void) cmdtxt(n->nredir.n, 0); cmdputs(")"); - break; + return 0; case NREDIR: case NBACKGND: - cmdtxt(n->nredir.n); - break; + return cmdtxt(n->nredir.n, top); case NIF: cmdputs("if "); - cmdtxt(n->nif.test); - cmdputs("; then "); - cmdtxt(n->nif.ifpart); + if (!cmdtxt(n->nif.test, 0)) + cmdputs(";"); + cmdputs(" then "); + i = cmdtxt(n->nif.ifpart, 0); if (n->nif.elsepart) { - cmdputs("; else "); - cmdtxt(n->nif.elsepart); - } - cmdputs("; fi"); - break; + if (i == 0) +cmdputs(";"); + cmdputs(" else "); + i = cmdtxt(n->nif.elsepart, 0); + } + if (i == 0) + cmdputs(";"); + cmdputs(" fi"); + return 0; case NWHILE: cmdputs("while "); goto until; case NUNTIL: cmdputs("until "); until: - cmdtxt(n->nbinary.ch1); - cmdputs("; do "); - cmdtxt(n->nbinary.ch2); - cmdputs("; done"); - break; + if (!cmdtxt(n->nbinary.ch1, 0)) + cmdputs(";"); + cmdputs(" do "); + if (!cmdtxt(n->nbinary.ch2, 0)) + cmdputs(";"); + cmdputs(" done"); + return 0; case NFOR: cmdputs("for "); cmdputs(n->nfor.var); cmdputs(" in "); cmdlist(n->nfor.args, 1); cmdputs("; do "); - cmdtxt(n->
CVS commit: src/bin/sh
Module Name:src Committed By: kre Date: Sat Jun 15 05:18:48 UTC 2024 Modified Files: src/bin/sh: eval.c jobs.c jobs.h Log Message: POSIX.1-2024 requires that when an async (background) job is started at the top level (ie: not in any kind of subshell environment) of an interactive shell, that the shell print the job number assigned, and the process id of the lead (or only) process in the job, in the form: [JN] pid Make that happen. (Other shells have been doing this for ages). To generate a diff of this commit: cvs rdiff -u -r1.191 -r1.192 src/bin/sh/eval.c cvs rdiff -u -r1.119 -r1.120 src/bin/sh/jobs.c cvs rdiff -u -r1.26 -r1.27 src/bin/sh/jobs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/bin/sh/eval.c diff -u src/bin/sh/eval.c:1.191 src/bin/sh/eval.c:1.192 --- src/bin/sh/eval.c:1.191 Mon Dec 25 04:52:38 2023 +++ src/bin/sh/eval.c Sat Jun 15 05:18:48 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: eval.c,v 1.191 2023/12/25 04:52:38 kre Exp $ */ +/* $NetBSD: eval.c,v 1.192 2024/06/15 05:18:48 kre Exp $ */ /*- * Copyright (c) 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)eval.c 8.9 (Berkeley) 6/8/95"; #else -__RCSID("$NetBSD: eval.c,v 1.191 2023/12/25 04:52:38 kre Exp $"); +__RCSID("$NetBSD: eval.c,v 1.192 2024/06/15 05:18:48 kre Exp $"); #endif #endif /* not lint */ @@ -574,9 +574,10 @@ evalsubshell(union node *n, int flags) INTON; redirect(n->nredir.redirect, REDIR_KEEP); evaltree(n->nredir.n, flags | EV_EXIT); /* never returns */ - } else if (backgnd) + } else if (backgnd) { + jobstarted(jp); exitstatus = 0; - else + } else exitstatus = waitforjob(jp); INTON; @@ -744,8 +745,10 @@ evalpipe(union node *n) exitstatus = waitforjob(jp); CTRACE(DBG_EVAL, ("evalpipe: job done exit status %d\n", exitstatus)); - } else + } else { + jobstarted(jp); exitstatus = 0; + } INTON; } @@ -1419,7 +1422,9 @@ evalcommand(union node *cmd, int flgs, s backcmd->fd = pip[0]; close(pip[1]); backcmd->jp = jp; - } + } else + jobstarted(jp); + FORCEINTON; out: Index: src/bin/sh/jobs.c diff -u src/bin/sh/jobs.c:1.119 src/bin/sh/jobs.c:1.120 --- src/bin/sh/jobs.c:1.119 Tue Jan 30 19:05:07 2024 +++ src/bin/sh/jobs.c Sat Jun 15 05:18:48 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: jobs.c,v 1.119 2024/01/30 19:05:07 kre Exp $ */ +/* $NetBSD: jobs.c,v 1.120 2024/06/15 05:18:48 kre Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: jobs.c,v 1.119 2024/01/30 19:05:07 kre Exp $"); +__RCSID("$NetBSD: jobs.c,v 1.120 2024/06/15 05:18:48 kre Exp $"); #endif #endif /* not lint */ @@ -1099,6 +1099,21 @@ anyjobs(void) } /* + * Output the (new) POSIX required "[%d] %d" string whenever an + * async (ie: background) job is started in an interactive shell. + * Note that a subshell environment is not regarded as interactive. + */ +void +jobstarted(struct job *jp) +{ + if (!iflag || !rootshell) + return; + + outfmt(out2, "[%d] %ld\n", JNUM(jp), + jp->pgrp != 0 ? (long)jp->pgrp : (long)jp->ps->pid); +} + +/* * Return a new job structure, */ Index: src/bin/sh/jobs.h diff -u src/bin/sh/jobs.h:1.26 src/bin/sh/jobs.h:1.27 --- src/bin/sh/jobs.h:1.26 Fri Apr 7 10:34:13 2023 +++ src/bin/sh/jobs.h Sat Jun 15 05:18:48 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: jobs.h,v 1.26 2023/04/07 10:34:13 kre Exp $ */ +/* $NetBSD: jobs.h,v 1.27 2024/06/15 05:18:48 kre Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -101,6 +101,7 @@ int stoppedjobs(void); void commandtext(struct procstat *, union node *); int getjobpgrp(const char *); int anyjobs(void); +void jobstarted(struct job *); #if ! JOBS #define setjobctl(on) /* do nothing */
CVS commit: src/bin/sh
Module Name:src Committed By: kre Date: Sat Jun 15 05:18:48 UTC 2024 Modified Files: src/bin/sh: eval.c jobs.c jobs.h Log Message: POSIX.1-2024 requires that when an async (background) job is started at the top level (ie: not in any kind of subshell environment) of an interactive shell, that the shell print the job number assigned, and the process id of the lead (or only) process in the job, in the form: [JN] pid Make that happen. (Other shells have been doing this for ages). To generate a diff of this commit: cvs rdiff -u -r1.191 -r1.192 src/bin/sh/eval.c cvs rdiff -u -r1.119 -r1.120 src/bin/sh/jobs.c cvs rdiff -u -r1.26 -r1.27 src/bin/sh/jobs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/sh
Module Name:src Committed By: kre Date: Sat Jun 15 05:02:24 UTC 2024 Modified Files: src/bin/sh: syntax.h Log Message: This file uses CHAR_MIN so needs to be complete. While here, fix a typo in the alternate (as in #if 0'd out) version of the ISCTL() macro. NFCI. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/bin/sh/syntax.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/sh
Module Name:src Committed By: kre Date: Sat Jun 15 05:02:24 UTC 2024 Modified Files: src/bin/sh: syntax.h Log Message: This file uses CHAR_MIN so needs to be complete. While here, fix a typo in the alternate (as in #if 0'd out) version of the ISCTL() macro. NFCI. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/bin/sh/syntax.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/bin/sh/syntax.h diff -u src/bin/sh/syntax.h:1.12 src/bin/sh/syntax.h:1.13 --- src/bin/sh/syntax.h:1.12 Wed Feb 27 04:10:56 2019 +++ src/bin/sh/syntax.h Sat Jun 15 05:02:24 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: syntax.h,v 1.12 2019/02/27 04:10:56 kre Exp $ */ +/* $NetBSD: syntax.h,v 1.13 2024/06/15 05:02:24 kre Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -34,6 +34,7 @@ #include #include +#include /* Syntax classes */ #define CWORD 0 /* character is nothing special */ @@ -93,7 +94,7 @@ #define ISCTL(c) ((c) >= CTL_FIRST && (c) <= CTL_LAST) #if 0/* alternative form (generally slower) */ -#define ICCTL(c) (BASESYNTAX[(int)(c)] == CCTL) +#define ISCTL(c) (BASESYNTAX[(int)(c)] == CCTL) #endif extern const char basesyntax[];
CVS commit: src/sys/dev/scsipi
Module Name:src Committed By: kardel Date: Fri Jun 14 18:44:18 UTC 2024 Modified Files: src/sys/dev/scsipi: scsipi_base.c Log Message: Ignore unit attention caused EIO errors when attempting to fetch supported op-codes and their timeout values during device attachment. To generate a diff of this commit: cvs rdiff -u -r1.189 -r1.190 src/sys/dev/scsipi/scsipi_base.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/scsipi
Module Name:src Committed By: kardel Date: Fri Jun 14 18:44:18 UTC 2024 Modified Files: src/sys/dev/scsipi: scsipi_base.c Log Message: Ignore unit attention caused EIO errors when attempting to fetch supported op-codes and their timeout values during device attachment. To generate a diff of this commit: cvs rdiff -u -r1.189 -r1.190 src/sys/dev/scsipi/scsipi_base.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/scsipi/scsipi_base.c diff -u src/sys/dev/scsipi/scsipi_base.c:1.189 src/sys/dev/scsipi/scsipi_base.c:1.190 --- src/sys/dev/scsipi/scsipi_base.c:1.189 Sat Apr 9 23:38:32 2022 +++ src/sys/dev/scsipi/scsipi_base.c Fri Jun 14 18:44:18 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: scsipi_base.c,v 1.189 2022/04/09 23:38:32 riastradh Exp $ */ +/* $NetBSD: scsipi_base.c,v 1.190 2024/06/14 18:44:18 kardel Exp $ */ /*- * Copyright (c) 1998, 1999, 2000, 2002, 2003, 2004 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: scsipi_base.c,v 1.189 2022/04/09 23:38:32 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: scsipi_base.c,v 1.190 2024/06/14 18:44:18 kardel Exp $"); #ifdef _KERNEL_OPT #include "opt_scsi.h" @@ -1404,6 +1404,7 @@ scsipi_get_opcodeinfo(struct scsipi_peri u_int8_t *data; int len = 16*1024; int rc; + int retries; struct scsi_repsuppopcode cmd; /* refrain from asking for supported opcodes */ @@ -1420,7 +1421,6 @@ scsipi_get_opcodeinfo(struct scsipi_peri * enumerate all codes * if timeout exists insert maximum into opcode table */ - data = malloc(len, M_DEVBUF, M_WAITOK|M_ZERO); memset(&cmd, 0, sizeof(cmd)); @@ -1429,9 +1429,22 @@ scsipi_get_opcodeinfo(struct scsipi_peri cmd.repoption = RSOC_RCTD|RSOC_ALL; _lto4b(len, cmd.alloclen); - rc = scsipi_command(periph, (void *)&cmd, sizeof(cmd), - (void *)data, len, 0, 1000, NULL, - XS_CTL_DATA_IN|XS_CTL_SILENT); + /* loop to skip any UNIT ATTENTIONS at this point */ + retries = 3; + do { + rc = scsipi_command(periph, (void *)&cmd, sizeof(cmd), +(void *)data, len, 0, 6, NULL, +XS_CTL_DATA_IN|XS_CTL_SILENT); +#ifdef SCSIPI_DEBUG + if (rc != 0) { + SC_DEBUG(periph, SCSIPI_DB3, +("SCSI_MAINTENANCE_IN" + "[RSOC_REPORT_SUPPORTED_OPCODES] command" +" failed: rc=%d, retries=%d\n", +rc, retries)); + } +#endif +} while (rc == EIO && retries-- > 0); if (rc == 0) { int count;
CVS commit: src/usr.bin/systat
Module Name:src Committed By: rillig Date: Fri Jun 14 17:15:45 UTC 2024 Modified Files: src/usr.bin/systat: main.c Log Message: systat: don't compare integer to floating point constants No binary change. To generate a diff of this commit: cvs rdiff -u -r1.56 -r1.57 src/usr.bin/systat/main.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/systat/main.c diff -u src/usr.bin/systat/main.c:1.56 src/usr.bin/systat/main.c:1.57 --- src/usr.bin/systat/main.c:1.56 Sat Aug 21 13:22:19 2021 +++ src/usr.bin/systat/main.c Fri Jun 14 17:15:45 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.56 2021/08/21 13:22:19 christos Exp $ */ +/* $NetBSD: main.c,v 1.57 2024/06/14 17:15:45 rillig Exp $ */ /*- * Copyright (c) 1980, 1992, 1993 @@ -36,7 +36,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19 #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93"; #endif -__RCSID("$NetBSD: main.c,v 1.56 2021/08/21 13:22:19 christos Exp $"); +__RCSID("$NetBSD: main.c,v 1.57 2024/06/14 17:15:45 rillig Exp $"); #endif /* not lint */ #include @@ -237,7 +237,7 @@ main(int argc, char **argv) curmode->c_flags |= CF_INIT; labels(); - dellave = 0.0; + dellave = 0; display(0); if (!bflag) { @@ -291,13 +291,13 @@ display(int signo) if (curmode->c_flags & CF_LOADAV) { j = 5.0*avenrun[0] + 0.5; dellave -= avenrun[0]; - if (dellave >= 0.0) + if (dellave >= 0) c = '<'; else { c = '>'; dellave = -dellave; } - if (dellave < 0.1) + if (dellave < 1) c = '|'; dellave = avenrun[0]; wmove(wload, 0, 0);
CVS commit: src/usr.bin/systat
Module Name:src Committed By: rillig Date: Fri Jun 14 17:15:45 UTC 2024 Modified Files: src/usr.bin/systat: main.c Log Message: systat: don't compare integer to floating point constants No binary change. To generate a diff of this commit: cvs rdiff -u -r1.56 -r1.57 src/usr.bin/systat/main.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/man/man9
Module Name:src Committed By: uwe Date: Fri Jun 14 14:36:32 UTC 2024 Modified Files: src/share/man/man9: uvm_obj_wirepages.9 Log Message: uvm_obj_wirepages(9): fix a couple of markup glitches To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/share/man/man9/uvm_obj_wirepages.9 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/man9/uvm_obj_wirepages.9 diff -u src/share/man/man9/uvm_obj_wirepages.9:1.1 src/share/man/man9/uvm_obj_wirepages.9:1.2 --- src/share/man/man9/uvm_obj_wirepages.9:1.1 Fri Jun 14 13:19:35 2024 +++ src/share/man/man9/uvm_obj_wirepages.9 Fri Jun 14 14:36:32 2024 @@ -1,4 +1,4 @@ -.\" $NetBSD: uvm_obj_wirepages.9,v 1.1 2024/06/14 13:19:35 riastradh Exp $ +.\" $NetBSD: uvm_obj_wirepages.9,v 1.2 2024/06/14 14:36:32 uwe Exp $ .\" .\" Copyright (c) 2024 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -53,9 +53,9 @@ the pages in the range will not be paged If .Fa list is nonnull, it is initialized to a tailq of pages linked through the -.Dv pageq.queue +.Fa pageq.queue member of -.Dt struct vm_page , +.Vt struct vm_page , for the convenience of the caller. The caller is not transferred ownership of any part of .Fa list
CVS commit: src/share/man/man9
Module Name:src Committed By: uwe Date: Fri Jun 14 14:36:32 UTC 2024 Modified Files: src/share/man/man9: uvm_obj_wirepages.9 Log Message: uvm_obj_wirepages(9): fix a couple of markup glitches To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/share/man/man9/uvm_obj_wirepages.9 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: riastradh Date: Fri Jun 14 13:19:35 UTC 2024 Modified Files: src/distrib/sets/lists/comp: mi src/share/man/man9: Makefile Added Files: src/share/man/man9: uvm_obj_wirepages.9 Log Message: uvm_obj_wirepages(9): New man page. To generate a diff of this commit: cvs rdiff -u -r1.2457 -r1.2458 src/distrib/sets/lists/comp/mi cvs rdiff -u -r1.469 -r1.470 src/share/man/man9/Makefile cvs rdiff -u -r0 -r1.1 src/share/man/man9/uvm_obj_wirepages.9 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: riastradh Date: Fri Jun 14 13:19:35 UTC 2024 Modified Files: src/distrib/sets/lists/comp: mi src/share/man/man9: Makefile Added Files: src/share/man/man9: uvm_obj_wirepages.9 Log Message: uvm_obj_wirepages(9): New man page. To generate a diff of this commit: cvs rdiff -u -r1.2457 -r1.2458 src/distrib/sets/lists/comp/mi cvs rdiff -u -r1.469 -r1.470 src/share/man/man9/Makefile cvs rdiff -u -r0 -r1.1 src/share/man/man9/uvm_obj_wirepages.9 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/sets/lists/comp/mi diff -u src/distrib/sets/lists/comp/mi:1.2457 src/distrib/sets/lists/comp/mi:1.2458 --- src/distrib/sets/lists/comp/mi:1.2457 Thu Mar 7 22:15:52 2024 +++ src/distrib/sets/lists/comp/mi Fri Jun 14 13:19:35 2024 @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.2457 2024/03/07 22:15:52 christos Exp $ +# $NetBSD: mi,v 1.2458 2024/06/14 13:19:35 riastradh Exp $ # # Note: don't delete entries from here - mark them as "obsolete" instead. ./etc/mtree/set.compcomp-sys-root @@ -13020,6 +13020,8 @@ ./usr/share/man/cat9/uvm_map_pageable.0 comp-sys-catman .cat ./usr/share/man/cat9/uvm_map_protect.0 comp-sys-catman .cat ./usr/share/man/cat9/uvm_meter.0 comp-sys-catman .cat +./usr/share/man/cat9/uvm_obj_unwirepages.0 comp-sys-catman .cat +./usr/share/man/cat9/uvm_obj_wirepages.0 comp-sys-catman .cat ./usr/share/man/cat9/uvm_page_physload.0 comp-sys-catman .cat ./usr/share/man/cat9/uvm_pagealloc.0 comp-sys-catman .cat ./usr/share/man/cat9/uvm_pagefree.0 comp-sys-catman .cat @@ -21392,6 +21394,8 @@ ./usr/share/man/html9/uvm_map_pageable.html comp-sys-htmlman html ./usr/share/man/html9/uvm_map_protect.html comp-sys-htmlman html ./usr/share/man/html9/uvm_meter.html comp-sys-htmlman html +./usr/share/man/html9/uvm_obj_unwirepages.html comp-sys-htmlman html +./usr/share/man/html9/uvm_obj_wirepages.html comp-sys-htmlman html ./usr/share/man/html9/uvm_page_physload.html comp-sys-htmlman html ./usr/share/man/html9/uvm_pagealloc.html comp-sys-htmlman html ./usr/share/man/html9/uvm_pagefree.html comp-sys-htmlman html @@ -29987,6 +29991,8 @@ ./usr/share/man/man9/uvm_map_pageable.9 comp-sys-man .man ./usr/share/man/man9/uvm_map_protect.9 comp-sys-man .man ./usr/share/man/man9/uvm_meter.9 comp-sys-man .man +./usr/share/man/man9/uvm_obj_unwirepages.9 comp-sys-man .man +./usr/share/man/man9/uvm_obj_wirepages.9 comp-sys-man .man ./usr/share/man/man9/uvm_page_physload.9 comp-sys-man .man ./usr/share/man/man9/uvm_pagealloc.9 comp-sys-man .man ./usr/share/man/man9/uvm_pagefree.9 comp-sys-man .man Index: src/share/man/man9/Makefile diff -u src/share/man/man9/Makefile:1.469 src/share/man/man9/Makefile:1.470 --- src/share/man/man9/Makefile:1.469 Sun Jan 7 00:38:18 2024 +++ src/share/man/man9/Makefile Fri Jun 14 13:19:35 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.469 2024/01/07 00:38:18 pgoyette Exp $ +# $NetBSD: Makefile,v 1.470 2024/06/14 13:19:35 riastradh Exp $ # Makefile for section 9 (kernel function and variable) manual pages. @@ -66,7 +66,7 @@ MAN+= secmodel_suser.9 \ ubc.9 ucas.9 ucom.9 ufetch.9 uiomove.9 \ usbd_status.9 usbdi.9 usbnet.9 \ userret.9 ustore.9 \ - uvm.9 uvm_hotplug.9 uvm_km.9 uvm_map.9 \ + uvm.9 uvm_hotplug.9 uvm_km.9 uvm_map.9 uvm_obj_wirepages.9 \ vattr.9 veriexec.9 vcons.9 versioningsyscalls.9 \ vfs.9 vfs_hooks.9 vfsops.9 vfssubr.9 \ video.9 vme.9 vnfileops.9 vnode.9 vnodeops.9 vnsubr.9 vmem.9 \ @@ -1014,6 +1014,7 @@ MLINKS+=uvm_map.9 uvm_unmap.9 uvm_map.9 uvm_map.9 uvmspace_exec.9 uvm_map.9 uvmspace_fork.9 \ uvm_map.9 uvmspace_free.9 uvm_map.9 uvmspace_share.9 \ uvm_map.9 uvmspace_unshare.9 +MLINKS+=uvm_obj_wirepages.9 uvm_obj_unwirepages.9 MLINKS+=vme.9 vme_probe.9 \ vme.9 vme_space_map.9 \ Added files: Index: src/share/man/man9/uvm_obj_wirepages.9 diff -u /dev/null src/share/man/man9/uvm_obj_wirepages.9:1.1 --- /dev/null Fri Jun 14 13:19:35 2024 +++ src/share/man/man9/uvm_obj_wirepages.9 Fri Jun 14 13:19:35 2024 @@ -0,0 +1,90 @@ +.\" $NetBSD: uvm_obj_wirepages.9,v 1.1 2024/06/14 13:19:35 riastradh Exp $ +.\" +.\" Copyright (c) 2024 The NetBSD Foundation, Inc. +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\"notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\"notice, this list of conditions and the following disclaimer in the +.\"documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS +.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT