CVS commit: src/usr.bin/make/unit-tests

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Nov 15 06:19:34 UTC 2020

Modified Files:
src/usr.bin/make/unit-tests: opt.exp opt.mk

Log Message:
make(1): add test for passing MAKEFLAGS to sub-makes


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/make/unit-tests/opt.exp
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/make/unit-tests/opt.mk

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



CVS commit: src/usr.bin/make/unit-tests

2020-11-14 Thread Simon J. Gerraty
Module Name:src
Committed By:   sjg
Date:   Sun Nov 15 06:06:20 UTC 2020

Modified Files:
src/usr.bin/make/unit-tests: opt.exp opt.mk

Log Message:
Avoid reading unexpected makefiles


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/make/unit-tests/opt.exp
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/opt.mk

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



CVS commit: src/usr.bin/make/unit-tests

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Nov 15 05:48:18 UTC 2020

Modified Files:
src/usr.bin/make/unit-tests: varmod-to-abs.exp varmod-to-abs.mk

Log Message:
make(1): fix test varmod-to-abs with USE_ABSOLUTE_TESTNAMES=yes

When running the tests with specifying absolute filenames, it doesn't
make sense to prefix the MAKEFILE with "./", which made the tests fail on
FreeBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/varmod-to-abs.exp
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/make/unit-tests/varmod-to-abs.mk

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



CVS commit: src/usr.bin/make/unit-tests

2020-11-14 Thread Simon J. Gerraty
Module Name:src
Committed By:   sjg
Date:   Sun Nov 15 05:43:56 UTC 2020

Modified Files:
src/usr.bin/make/unit-tests: opt-chdir.mk

Log Message:
Avoid problem with /usr/obj


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/make/unit-tests/opt-chdir.mk

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



CVS commit: src/external/cddl/osnet/dist/uts/common/fs/zfs

2020-11-14 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Sun Nov 15 00:54:13 UTC 2020

Modified Files:
src/external/cddl/osnet/dist/uts/common/fs/zfs: zfs_vnops.c

Log Message:
Commit the ZFS file that I forgot in this previous commit:

Move the handling of PG_PAGEOUT from uvm_aio_aiodone_pages() to
uvm_page_unbusy() so that all callers of uvm_page_unbusy() don't need to
handle this flag separately.  Split out the pages part of uvm_aio_aiodone()
into uvm_aio_aiodone_pages() in rump just like in the real kernel.
In ZFS functions that can fail to copy data between the ARC and VM pages,
use uvm_aio_aiodone_pages() rather than uvm_page_unbusy() so that we can
handle these "I/O" errors.  Fixes PR 55702.


To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 \
src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c

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



CVS commit: src/distrib/evbarm/isoimage

2020-11-14 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Nov 15 00:19:17 UTC 2020

Modified Files:
src/distrib/evbarm/isoimage: Makefile.cdrom

Log Message:
Use "efi" boot image platform ID.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/distrib/evbarm/isoimage/Makefile.cdrom

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



CVS commit: src/usr.sbin/makefs

2020-11-14 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Nov 15 00:18:48 UTC 2020

Modified Files:
src/usr.sbin/makefs: makefs.8
src/usr.sbin/makefs/cd9660: cd9660_eltorito.c

Log Message:
Add "efi" as a supported boot image type and derive the platform ID for
the validation entry from the default boot image instead of hard-coding
X86.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/usr.sbin/makefs/makefs.8
cvs rdiff -u -r1.23 -r1.24 src/usr.sbin/makefs/cd9660/cd9660_eltorito.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/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 23:03:09 UTC 2020

Modified Files:
src/usr.bin/make: main.c
src/usr.bin/make/unit-tests: varmod-to-abs.exp varmod-to-abs.mk

Log Message:
make(1): switch cache for realpath from GNode to HashTable

An unintended side effect from the GNode implementation was that the
variable modifier :tA and the other places where cached_realpath are
used could be affected by setting a variable in the global scope,
thereby "redirecting" absolute paths to completely unrelated but
existing paths.

Another unintended side effect was that filenames containing a dollar
sign would not be resolved correctly since the dollar sign would be
expanded as a variable expression by Var_Set.

While here, the debugging output for the realpath cache has been
adjusted to the standard behavior.  Previously, when a new entry was
added to the cache, this was logged for the module VAR, as a side effect
of calling Var_Set, but only if the preprocessor macro
DEBUG_REALPATH_CACHE was defined at compilation time.  When relative
paths were purged from the cache because the current directory changed
and logging for the DIR module was active, the log output went directly
to stderr instead of the usual opts.debug_file.  This deviation from the
standard behavior was probably not intended as well.

All logging concerning the realpath cache now goes into the standard
debug log file and is controlled by the -dd option, not -dv.


To generate a diff of this commit:
cvs rdiff -u -r1.468 -r1.469 src/usr.bin/make/main.c
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/varmod-to-abs.exp
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/varmod-to-abs.mk

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



CVS commit: src/usr.bin/make/unit-tests

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 22:39:14 UTC 2020

Modified Files:
src/usr.bin/make/unit-tests: opt-chdir.exp opt-chdir.mk

Log Message:
make(1): add tests for the command line option -C


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/opt-chdir.exp
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/opt-chdir.mk

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



CVS commit: src/usr.bin/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 22:19:13 UTC 2020

Modified Files:
src/usr.bin/make: main.c make.1
src/usr.bin/make/unit-tests: opt.exp

Log Message:
make(1): document the -S option

This option has been available at least since 1993-03-21, and for the
same time it has been undocumented.


To generate a diff of this commit:
cvs rdiff -u -r1.467 -r1.468 src/usr.bin/make/main.c
cvs rdiff -u -r1.291 -r1.292 src/usr.bin/make/make.1
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/opt.exp

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



CVS commit: src/usr.bin/make/unit-tests

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 22:17:29 UTC 2020

Modified Files:
src/usr.bin/make/unit-tests: opt-chdir.mk

Log Message:
make(1): document since when the -C option is available


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/opt-chdir.mk

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



CVS commit: src/usr.bin/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 22:16:18 UTC 2020

Modified Files:
src/usr.bin/make: main.c
src/usr.bin/make/unit-tests: opt.exp

Log Message:
make(1): fix trailing whitespace in usage (since 2009-08-27)


To generate a diff of this commit:
cvs rdiff -u -r1.466 -r1.467 src/usr.bin/make/main.c
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/opt.exp

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



CVS commit: src/usr.bin/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 21:55:22 UTC 2020

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

Log Message:
make(1): don't modify progname in usage


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

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



CVS commit: src/usr.bin/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 21:29:44 UTC 2020

Modified Files:
src/usr.bin/make: arch.c dir.c hash.c hash.h var.c

Log Message:
make(1): replace a few HashTable_CreateEntry with HashTable_Set

Instead of HashTable_CreateEntry and HashEntry_Set, several places just
need the HashEntry for storing a value in it.  This makes the calling
code simpler to understand.

These parts of the code are already hard enough to understand since they
are about memory management and aliasing.  Having a too detailed API for
the HashTable only distracts from these topics.


To generate a diff of this commit:
cvs rdiff -u -r1.176 -r1.177 src/usr.bin/make/arch.c
cvs rdiff -u -r1.209 -r1.210 src/usr.bin/make/dir.c
cvs rdiff -u -r1.56 -r1.57 src/usr.bin/make/hash.c
cvs rdiff -u -r1.32 -r1.33 src/usr.bin/make/hash.h
cvs rdiff -u -r1.684 -r1.685 src/usr.bin/make/var.c

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



CVS commit: src/external/gpl3/gcc/dist/gcc

2020-11-14 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Nov 14 21:24:03 UTC 2020

Modified Files:
src/external/gpl3/gcc/dist/gcc: file-prefix-map.c

Log Message:
PR/55802: Andreas Gustafsson: Unbreak reproducible builds.

For reproducible builds to work we need to have a consistent command
line (because the command line gets recorded in dwarf). So we can't
do:

-ffile-prefix-map=/joe/random/src=/usr/src

because then /joe/random/src gets recorded. We do instead:

-ffile-prefix-map=\$NETBSDSRCDIR=/usr/src

The patch restores the environment variable parsing that got lost
in the last 2 gcc upgrades.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/dist/gcc/file-prefix-map.c

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



CVS commit: src/usr.sbin/envstat

2020-11-14 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sat Nov 14 20:07:13 UTC 2020

Modified Files:
src/usr.sbin/envstat: envstat.8

Log Message:
New sentence, new line.
Other whitespace fixes, and some Xr fixes.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/usr.sbin/envstat/envstat.8

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



CVS commit: src/share/man/man4/man4.x86

2020-11-14 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sat Nov 14 20:04:46 UTC 2020

Modified Files:
src/share/man/man4/man4.x86: coretemp.4 est.4 imcsmb.4 odcm.4
powernow.4

Log Message:
Add "x86" to Dt


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man4/man4.x86/coretemp.4 \
src/share/man/man4/man4.x86/powernow.4
cvs rdiff -u -r1.6 -r1.7 src/share/man/man4/man4.x86/est.4
cvs rdiff -u -r1.9 -r1.10 src/share/man/man4/man4.x86/imcsmb.4
cvs rdiff -u -r1.5 -r1.6 src/share/man/man4/man4.x86/odcm.4

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



CVS commit: src/usr.bin/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 19:36:31 UTC 2020

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

Log Message:
make(1): inline local variable in Dir_UpdateMTime

Now that the signature of cached_stats is cleaned up, the line is short
enough to contain the whole condition.


To generate a diff of this commit:
cvs rdiff -u -r1.208 -r1.209 src/usr.bin/make/dir.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/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 19:24:24 UTC 2020

Modified Files:
src/usr.bin/make: dir.c dir.h meta.c

Log Message:
make(1): remove redundant struct make_stat

In the cache for stat(2) and lstat(2), only one of the two timestamps
was ever used.  To prevent a result from stat(2) leaking into the cache
for lstat(2), there have been two completely separate caches all the
time.  Using different fields in the struct was therefore unnecessary.

By removing the redundant field, the internal struct in the cache is the
same as the external struct.  This makes one of them redundant, thus
struct make_stat has been renamed to cached_stat, which better describes
its purpose, and the internal struct cache_st has been removed.

Just as before, the cache prevents any direct access to its internal
data.  When passing it to the caller, it is copied.

Just as before, the field names of struct cached_stat cannot correspond
to those from struct stat, since the latter are often defined as macros.
Therefore they are prefixed with cst instead of st.

The redundancy had been added on 2020-06-05.


To generate a diff of this commit:
cvs rdiff -u -r1.207 -r1.208 src/usr.bin/make/dir.c
cvs rdiff -u -r1.33 -r1.34 src/usr.bin/make/dir.h
cvs rdiff -u -r1.142 -r1.143 src/usr.bin/make/meta.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/make/unit-tests

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 18:47:21 UTC 2020

Modified Files:
src/usr.bin/make/unit-tests: varmod-to-abs.exp varmod-to-abs.mk

Log Message:
make(1): add test for undocumented path-to-abspath mapping for :tA


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/varmod-to-abs.exp
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/varmod-to-abs.mk

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



CVS commit: src/usr.bin/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 18:36:27 UTC 2020

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

Log Message:
make(1): clean up Fatal

Use the shortest possible scope between va_start and the corresponding
va_end.


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

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



CVS commit: src/usr.bin/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 18:14:34 UTC 2020

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

Log Message:
make(1): clean up InitDefSysIncPath

Flipping the arguments to strncmp puts the subject first in the
sentence. Inverting the condition makes the code flow easier to follow.


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

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



CVS commit: src/usr.bin/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 18:07:26 UTC 2020

Modified Files:
src/usr.bin/make: main.c
src/usr.bin/make/unit-tests: Makefile

Log Message:
make(1): use progname instead of hard-coded 'make' in warning

This only affects the warning that chdir to objdir failed.  In sub-makes
the progname includes the [n], allowing to narrow down the actual cause
of the problem.


To generate a diff of this commit:
cvs rdiff -u -r1.462 -r1.463 src/usr.bin/make/main.c
cvs rdiff -u -r1.199 -r1.200 src/usr.bin/make/unit-tests/Makefile

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



CVS commit: src/usr.bin/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 17:39:59 UTC 2020

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

Log Message:
make(1): remove redundant parameter from str2Lst_Append


To generate a diff of this commit:
cvs rdiff -u -r1.461 -r1.462 src/usr.bin/make/main.c
cvs rdiff -u -r1.207 -r1.208 src/usr.bin/make/make.h
cvs rdiff -u -r1.141 -r1.142 src/usr.bin/make/meta.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/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 17:39:14 UTC 2020

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

Log Message:
make(1): rename Main_SetVarObjdir to SetVarObjdir

Only exported functions should be prefixed with the module name.


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

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



CVS commit: src/usr.bin/make/unit-tests

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 17:33:51 UTC 2020

Modified Files:
src/usr.bin/make/unit-tests: opt.exp opt.mk

Log Message:
make(1): add tests for edge cases in parsing the command line


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/opt.exp
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/opt.mk

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



CVS commit: src/usr.bin/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 17:29:41 UTC 2020

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

Log Message:
make(1): use different style of accessing characters in MainParseArgs

The * is preferred for iterators.  Since argv[i] is not an iterator but
a fixed string, argv[i][0] expresses the idea "read the first character"
more directly.


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

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



CVS commit: src/usr.bin/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 17:04:01 UTC 2020

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

Log Message:
make(1): clean up JobExec, JobStart, JobDoOutput

The comments about temporary files for shell output are no longer
relevant since the output is always handled via pipes.


To generate a diff of this commit:
cvs rdiff -u -r1.324 -r1.325 src/usr.bin/make/job.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/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 16:44:04 UTC 2020

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

Log Message:
make(1): remove indentation in JobOutput


To generate a diff of this commit:
cvs rdiff -u -r1.323 -r1.324 src/usr.bin/make/job.c

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



CVS commit: src/usr.sbin/envstat

2020-11-14 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Sat Nov 14 16:32:53 UTC 2020

Modified Files:
src/usr.sbin/envstat: envstat.8 envstat.c

Log Message:
Add option -n to print only the value of a sensor.
If statistics are selected with -T, then also display max, min and average.
The empty line between each display is skipped when one or more sensors are
selected with -s.


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/usr.sbin/envstat/envstat.8
cvs rdiff -u -r1.99 -r1.100 src/usr.sbin/envstat/envstat.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/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 16:09:08 UTC 2020

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

Log Message:
make(1): clean up comment above ParseDoDependencyTargetSpecial


To generate a diff of this commit:
cvs rdiff -u -r1.439 -r1.440 src/usr.bin/make/parse.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/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 15:58:01 UTC 2020

Modified Files:
src/usr.bin/make: job.c main.c make.h parse.c

Log Message:
make(1): rename DEFAULT to defaultNode

In C, uppercase names are typically used for constants, and this is not
a constant.


To generate a diff of this commit:
cvs rdiff -u -r1.322 -r1.323 src/usr.bin/make/job.c
cvs rdiff -u -r1.458 -r1.459 src/usr.bin/make/main.c
cvs rdiff -u -r1.206 -r1.207 src/usr.bin/make/make.h
cvs rdiff -u -r1.438 -r1.439 src/usr.bin/make/parse.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/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 15:47:36 UTC 2020

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

Log Message:
make(1): use stderr for error message about failed touch

Error messages belong on stderr, not stdout.  Since at least 1993,
stdout had been used for no good reason.  Plus, in all these years,
nobody ever tested this code path since otherwise the missing newline at
the end of the error message would have been obvious.

This is a good candidate for the "oldest bug in make" trophy.


To generate a diff of this commit:
cvs rdiff -u -r1.321 -r1.322 src/usr.bin/make/job.c

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



CVS commit: [netbsd-9] src/doc

2020-11-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sat Nov 14 15:38:43 UTC 2020

Modified Files:
src/doc [netbsd-9]: CHANGES-9.2

Log Message:
Ticket #1130


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.12 -r1.1.2.13 src/doc/CHANGES-9.2

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



CVS commit: [netbsd-9] src/sys

2020-11-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sat Nov 14 15:36:11 UTC 2020

Modified Files:
src/sys/conf [netbsd-9]: param.c
src/sys/kern [netbsd-9]: init_main.c
src/sys/sys [netbsd-9]: param.h

Log Message:
Pull up following revision(s) (requested by fair in ticket #1130):

sys/sys/param.h: revision 1.679
sys/conf/param.c: revision 1.69
sys/kern/init_main.c: revision 1.533

Set a better default for MAXFILES on larger RAM machines if not
otherwise specified the kernel config file.  Arbitary numbers are
20,000 files for 16GB RAM or more and 10,000 files for 1GB RAM or
more.

TODO: Adjust this and other values totally dynamically.


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.68.4.1 src/sys/conf/param.c
cvs rdiff -u -r1.504 -r1.504.2.1 src/sys/kern/init_main.c
cvs rdiff -u -r1.599.2.8 -r1.599.2.9 src/sys/sys/param.h

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



CVS commit: src

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 15:35:20 UTC 2020

Modified Files:
src/distrib/sets/lists/tests: mi
src/usr.bin/make/unit-tests: Makefile
Added Files:
src/usr.bin/make/unit-tests: opt-touch-jobs.exp opt-touch-jobs.mk

Log Message:
make(1): add test for the -t option in jobs mode


To generate a diff of this commit:
cvs rdiff -u -r1.968 -r1.969 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.198 -r1.199 src/usr.bin/make/unit-tests/Makefile
cvs rdiff -u -r0 -r1.1 src/usr.bin/make/unit-tests/opt-touch-jobs.exp \
src/usr.bin/make/unit-tests/opt-touch-jobs.mk

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



CVS commit: src/usr.bin/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 15:03:37 UTC 2020

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

Log Message:
make(1): fix debug output for GNode details


To generate a diff of this commit:
cvs rdiff -u -r1.204 -r1.205 src/usr.bin/make/make.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/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 14:57:05 UTC 2020

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

Log Message:
make(1): use symbolic names in debug output of GNodes


To generate a diff of this commit:
cvs rdiff -u -r1.203 -r1.204 src/usr.bin/make/make.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/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 14:16:01 UTC 2020

Modified Files:
src/usr.bin/make: compat.c job.c

Log Message:
make(1): clean up Job_Touch

Several more outdated comments were removed.  To compensate for that,
several new comments mark places where errors are not properly
propagated.


To generate a diff of this commit:
cvs rdiff -u -r1.181 -r1.182 src/usr.bin/make/compat.c
cvs rdiff -u -r1.320 -r1.321 src/usr.bin/make/job.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/make/unit-tests

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 14:13:09 UTC 2020

Modified Files:
src/usr.bin/make/unit-tests: opt-touch.exp opt-touch.mk

Log Message:
make(1): add test for touching a .MAKE target


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/opt-touch.exp
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/opt-touch.mk

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



CVS commit: src/usr.bin/make/unit-tests

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 13:59:58 UTC 2020

Modified Files:
src/usr.bin/make/unit-tests: opt-touch.exp opt-touch.mk

Log Message:
make(1): add test for the command line option -t


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/opt-touch.exp
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/opt-touch.mk

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



CVS commit: src/usr.bin/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 13:45:34 UTC 2020

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

Log Message:
make(1): rename JobClose to JobClosePipes, remove confusing comments

The comments referred to w_status, which had been there in 1993, but not
anymore.  Several other details were outdated as well.


To generate a diff of this commit:
cvs rdiff -u -r1.319 -r1.320 src/usr.bin/make/job.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/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 13:27:02 UTC 2020

Modified Files:
src/usr.bin/make: job.c job.h

Log Message:
make(1): fix grammar: setup -> set up


To generate a diff of this commit:
cvs rdiff -u -r1.318 -r1.319 src/usr.bin/make/job.c
cvs rdiff -u -r1.62 -r1.63 src/usr.bin/make/job.h

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



CVS commit: src/usr.bin/make/unit-tests

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 13:17:47 UTC 2020

Modified Files:
src/usr.bin/make/unit-tests: job-flags.exp job-flags.mk

Log Message:
make(1): test ignoring errors from shell commands in jobs mode


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/job-flags.exp \
src/usr.bin/make/unit-tests/job-flags.mk

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



CVS commit: src/usr.bin/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 13:07:39 UTC 2020

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

Log Message:
make(1): replace macro DBPRINTF with JobPrintln

This macro had been bad in several ways.  Its name started with DB, an
unnecessary abbreviation for DEBUG.  Many places that used this macro
used it with the same format string, "%s\n".  This format string can
better be expressed in a function name, JobPrintln.

Only in a few places was the macro used with different format strings.
The one for "set -x" was even forced to arbitrarily separate the
argument from the format string in order to match the expected macro
parameters.

A better choice would have been to use the standard form "%s\n", "set
-x" from the beginning.  Anyway, that call is calling JobPrintln as well
now.

The remaining templates are user-specified, and if anyone should ever
define a completely custom shell with echo handling and error handling
enabled, they will easily crash make when the templates don't contain
exactly one %s conversion.  That's the responsibility of the user, and
it has always been.


To generate a diff of this commit:
cvs rdiff -u -r1.317 -r1.318 src/usr.bin/make/job.c

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



CVS commit: src/sys/arch/riscv/riscv

2020-11-14 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sat Nov 14 13:05:14 UTC 2020

Modified Files:
src/sys/arch/riscv/riscv: trap.c

Log Message:
Improve dump_trapframe output layout and fix printing of s6/s7


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/riscv/riscv/trap.c

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



CVS commit: [netbsd-9] src/doc

2020-11-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sat Nov 14 13:03:10 UTC 2020

Modified Files:
src/doc [netbsd-9]: CHANGES-9.2

Log Message:
Ticket #1131


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.11 -r1.1.2.12 src/doc/CHANGES-9.2

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



CVS commit: [netbsd-9] src/sys/coda

2020-11-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sat Nov 14 13:01:55 UTC 2020

Modified Files:
src/sys/coda [netbsd-9]: coda.h coda_vnops.c

Log Message:
Pull up following revision(s) (requested by hannken in ticket #1131):

sys/coda/coda_vnops.c: revision 1.114 (patch)
sys/coda/coda.h: revision 1.21 (patch)

Rewrite coda_readdir() to directly process the container file.

Passing this operation down to the file system holding the container
cannot work for anything but UFS and UFS doesn't allow reading
directory from a plain file since ~2015.

Fixes PR kern/55775 Coda client, its in-kernel part, opens wrong files ...


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.20.6.1 src/sys/coda/coda.h
cvs rdiff -u -r1.107 -r1.107.4.1 src/sys/coda/coda_vnops.c

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



CVS commit: [netbsd-8] src/doc

2020-11-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sat Nov 14 12:59:56 UTC 2020

Modified Files:
src/doc [netbsd-8]: CHANGES-8.3

Log Message:
Ticket #1622


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.48 -r1.1.2.49 src/doc/CHANGES-8.3

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



CVS commit: [netbsd-8] src/sys/coda

2020-11-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sat Nov 14 12:59:06 UTC 2020

Modified Files:
src/sys/coda [netbsd-8]: coda.h coda_vnops.c

Log Message:
Pull up following revision(s) (requested by hannken in ticket #1622):

sys/coda/coda_vnops.c: revision 1.114 (patch)
sys/coda/coda.h: revision 1.21 (patch)

Rewrite coda_readdir() to directly process the container file.

Passing this operation down to the file system holding the container
cannot work for anything but UFS and UFS doesn't allow reading
directory from a plain file since ~2015.

Fixes PR kern/55775 Coda client, its in-kernel part, opens wrong files ...


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.19.10.1 src/sys/coda/coda.h
cvs rdiff -u -r1.106 -r1.106.2.1 src/sys/coda/coda_vnops.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/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 12:38:06 UTC 2020

Modified Files:
src/usr.bin/make: job.c job.h

Log Message:
make(1): rename JobState to JobStatus

The status is only part of the whole state of a job.


To generate a diff of this commit:
cvs rdiff -u -r1.316 -r1.317 src/usr.bin/make/job.c
cvs rdiff -u -r1.61 -r1.62 src/usr.bin/make/job.h

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



CVS commit: src/usr.sbin/envstat

2020-11-14 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Sat Nov 14 12:36:50 UTC 2020

Modified Files:
src/usr.sbin/envstat: envstat.8 envstat.c

Log Message:
Allow to select raw output for a single device or a list of sensors.


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/usr.sbin/envstat/envstat.8
cvs rdiff -u -r1.98 -r1.99 src/usr.sbin/envstat/envstat.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/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 11:51:58 UTC 2020

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

Log Message:
make(1): remove redundant parameter from cached_stats

The hash table for the cached data depends only on the passed flags,
therefore the caller does not need to know about their existence.


To generate a diff of this commit:
cvs rdiff -u -r1.206 -r1.207 src/usr.bin/make/dir.c

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



CVS commit: src/sys/coda

2020-11-14 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Sat Nov 14 11:42:56 UTC 2020

Modified Files:
src/sys/coda: coda.h coda_vnops.c

Log Message:
Rewrite coda_readdir() to directly process the container file.

Passing this operation down to the file system holding the container
cannot work for anything but UFS and UFS doesn't allow reading
directory from a plain file since ~2015.

Fixes PR kern/55775 Coda client, its in-kernel part, opens wrong files ...


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/coda/coda.h
cvs rdiff -u -r1.113 -r1.114 src/sys/coda/coda_vnops.c

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



CVS commit: src/sys/coda

2020-11-14 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Sat Nov 14 11:41:29 UTC 2020

Modified Files:
src/sys/coda: coda_vfsops.c

Log Message:
Respect "lktype" in all paths in coda_root().


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/sys/coda/coda_vfsops.c

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



CVS commit: src/sys/coda

2020-11-14 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Sat Nov 14 11:42:05 UTC 2020

Modified Files:
src/sys/coda: coda_vnops.c coda_vnops.h

Log Message:
Add coda_pathconf() always returning EINVAL.


To generate a diff of this commit:
cvs rdiff -u -r1.112 -r1.113 src/sys/coda/coda_vnops.c
cvs rdiff -u -r1.16 -r1.17 src/sys/coda/coda_vnops.h

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



CVS commit: src/usr.bin/make

2020-11-14 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Nov 14 11:22:17 UTC 2020

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

Log Message:
make(1): clean up cached_stats

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.205 -r1.206 src/usr.bin/make/dir.c

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



CVS commit: src/usr.sbin/envstat

2020-11-14 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Sat Nov 14 09:11:56 UTC 2020

Modified Files:
src/usr.sbin/envstat: config.c envstat.8 envstat.c envstat.h

Log Message:
For raw output (-x) allow to extract individual properties like drvctl -p.
E.g.

# envstat -x /vcmbox0/0/cur-value
32815


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/usr.sbin/envstat/config.c
cvs rdiff -u -r1.62 -r1.63 src/usr.sbin/envstat/envstat.8
cvs rdiff -u -r1.97 -r1.98 src/usr.sbin/envstat/envstat.c
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/envstat/envstat.h

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