CVS commit: src/lib/libossaudio

2020-11-03 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Tue Nov  3 08:24:33 UTC 2020

Modified Files:
src/lib/libossaudio: ossaudio.c

Log Message:
ossaudio(3): return correctly initialized return value in unlikely
error case. pointed out by tnn.


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/lib/libossaudio/ossaudio.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/arm/include

2020-11-03 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Nov  3 08:34:17 UTC 2020

Modified Files:
src/sys/arch/arm/include: cdefs.h

Log Message:
The ARM C Language Extenstion document defines __ARCH_ARM as the integer
macro indicating the current ARM instruction set.  Let's use it.

PR/55778: evbarm64 GENERIC64 kernel fails to build with clang

XXX Handle the fact that for an ARM architecture ARMvX.Y then,
XXX __ARM_ARCH= X * 100 + Y. E.g. for ARMv8.1 __ARM_ARCH = 801.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/arm/include/cdefs.h

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



CVS commit: src/sys/external/bsd/vchiq/dist/interface/vchiq_arm

2020-11-03 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Nov  3 08:41:30 UTC 2020

Modified Files:
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm: vchiq_2835_arm.c
vchiq_core.h

Log Message:
Fix build on aa64


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_2835_arm.c
cvs rdiff -u -r1.6 -r1.7 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_core.h

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



CVS commit: src/sys/dev/sdmmc

2020-11-03 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Tue Nov  3 09:26:41 UTC 2020

Modified Files:
src/sys/dev/sdmmc: if_bwfm_sdio.c

Log Message:
Continue parsing frames after empty payload.
Add diagnostic messages.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/sdmmc/if_bwfm_sdio.c

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



CVS commit: src/lib/libossaudio

2020-11-03 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Tue Nov  3 09:33:53 UTC 2020

Modified Files:
src/lib/libossaudio: soundcard.h

Log Message:
ossaudio(3): More capability defines from OSSv4


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/lib/libossaudio/soundcard.h

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



CVS commit: src/lib/libossaudio

2020-11-03 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Tue Nov  3 09:36:12 UTC 2020

Modified Files:
src/lib/libossaudio: ossaudio.c

Log Message:
ossaudio(3): Return device playback and capture capabilities in GETCAPS


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/lib/libossaudio/ossaudio.c

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



CVS commit: src/lib/libossaudio

2020-11-03 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Tue Nov  3 09:46:01 UTC 2020

Modified Files:
src/lib/libossaudio: ossaudio.c

Log Message:
ossaudio(3): Reduce code duplication for querying capabilities


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/lib/libossaudio/ossaudio.c

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



CVS commit: src/external/bsd/tmux/dist

2020-11-03 Thread Tobias Nygren
Module Name:src
Committed By:   tnn
Date:   Tue Nov  3 10:52:58 UTC 2020

Modified Files:
src/external/bsd/tmux/dist: tmux.h

Log Message:
tmux.h: annotate file_vprint() as printflike


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/external/bsd/tmux/dist/tmux.h

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



CVS commit: src/sys/external/bsd/vchiq/dist/interface/vchiq_arm

2020-11-03 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Tue Nov  3 12:04:56 UTC 2020

Modified Files:
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm: vchiq_core.h

Log Message:
state struct should use fixed size types. NFCI.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_core.h

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



CVS commit: src/sys/net80211

2020-11-03 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Tue Nov  3 15:06:50 UTC 2020

Modified Files:
src/sys/net80211: ieee80211_crypto_ccmp.c ieee80211_crypto_tkip.c
ieee80211_crypto_wep.c

Log Message:
Use kmem_* instead of malloc/free and use interrupt versions as the
code can be called from interrupt.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/net80211/ieee80211_crypto_ccmp.c
cvs rdiff -u -r1.16 -r1.17 src/sys/net80211/ieee80211_crypto_tkip.c
cvs rdiff -u -r1.12 -r1.13 src/sys/net80211/ieee80211_crypto_wep.c

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



CVS commit: xsrc/external/mit/xorg-server/dist/hw/netbsd/x68k

2020-11-03 Thread Izumi Tsutsui
Module Name:xsrc
Committed By:   tsutsui
Date:   Tue Nov  3 15:25:21 UTC 2020

Modified Files:
xsrc/external/mit/xorg-server/dist/hw/netbsd/x68k: x68kFb.c

Log Message:
Restore video mode properly on exit even on CRT Mode 19 (640x480 31kHz VGA).


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
xsrc/external/mit/xorg-server/dist/hw/netbsd/x68k/x68kFb.c

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



CVS commit: xsrc/external/mit/xorg-server/dist/hw/netbsd/x68k

2020-11-03 Thread Izumi Tsutsui
Module Name:xsrc
Committed By:   tsutsui
Date:   Tue Nov  3 15:27:45 UTC 2020

Modified Files:
xsrc/external/mit/xorg-server/dist/hw/netbsd/x68k: X68kConfig

Log Message:
Add ModeDef for 640x480x4bit PseudoColor.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
xsrc/external/mit/xorg-server/dist/hw/netbsd/x68k/X68kConfig

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



CVS commit: xsrc/external/mit/xorg-server/dist/hw/netbsd/x68k

2020-11-03 Thread Izumi Tsutsui
Module Name:xsrc
Committed By:   tsutsui
Date:   Tue Nov  3 15:52:57 UTC 2020

Modified Files:
xsrc/external/mit/xorg-server/dist/hw/netbsd/x68k: x68k.h x68kFb.c
x68kReg.h

Log Message:
Avoid a use of __UNVOLATILE(3).  Tested on XM6i.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
xsrc/external/mit/xorg-server/dist/hw/netbsd/x68k/x68k.h \
xsrc/external/mit/xorg-server/dist/hw/netbsd/x68k/x68kFb.c
cvs rdiff -u -r1.3 -r1.4 \
xsrc/external/mit/xorg-server/dist/hw/netbsd/x68k/x68kReg.h

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



CVS commit: [thorpej-futex] src/sys/sys

2020-11-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Nov  3 16:05:51 UTC 2020

Modified Files:
src/sys/sys [thorpej-futex]: futex.h

Log Message:
Add definitions for FUTEX_NETBSD_RW_WAIT and FUTEX_NETBSD_RW_HANDOFF.
(Forgot to commit this file previously.)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.4.2.1 src/sys/sys/futex.h

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



CVS commit: xsrc/external/mit/xorg-server/dist/hw/netbsd/x68k

2020-11-03 Thread Izumi Tsutsui
Module Name:xsrc
Committed By:   tsutsui
Date:   Tue Nov  3 16:59:38 UTC 2020

Modified Files:
xsrc/external/mit/xorg-server/dist/hw/netbsd/x68k: x68kConfig.c
x68kGraph.c

Log Message:
Remove unnecessary pointer casts from malloc(3).


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
xsrc/external/mit/xorg-server/dist/hw/netbsd/x68k/x68kConfig.c
cvs rdiff -u -r1.7 -r1.8 \
xsrc/external/mit/xorg-server/dist/hw/netbsd/x68k/x68kGraph.c

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



CVS commit: src

2020-11-03 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Nov  3 17:17:31 UTC 2020

Modified Files:
src/distrib/sets/lists/tests: mi
src/usr.bin/make/unit-tests: Makefile directive-elif.exp
directive-elif.mk directive-export-env.mk
directive-export-literal.mk directive-export.exp
directive-export.mk directive-include.exp directive-include.mk
directive-info.exp directive-info.mk directive-undef.exp
directive-undef.mk directive-unexport-env.mk directive-unexport.exp
directive-unexport.mk directive-warning.exp directive-warning.mk
directive.exp directive.mk
Removed Files:
src/usr.bin/make/unit-tests: directives.exp directives.mk

Log Message:
make(1): move tests from directives.mk to separate tests


To generate a diff of this commit:
cvs rdiff -u -r1.959 -r1.960 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.186 -r1.187 src/usr.bin/make/unit-tests/Makefile
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/directive-elif.exp \
src/usr.bin/make/unit-tests/directive-export.exp \
src/usr.bin/make/unit-tests/directive-info.exp \
src/usr.bin/make/unit-tests/directive-undef.exp \
src/usr.bin/make/unit-tests/directive-warning.exp \
src/usr.bin/make/unit-tests/directive.exp
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/directive-elif.mk \
src/usr.bin/make/unit-tests/directive-export-env.mk \
src/usr.bin/make/unit-tests/directive-info.mk \
src/usr.bin/make/unit-tests/directive-unexport-env.mk \
src/usr.bin/make/unit-tests/directive-warning.mk \
src/usr.bin/make/unit-tests/directive.mk
cvs rdiff -u -r1.5 -r1.6 \
src/usr.bin/make/unit-tests/directive-export-literal.mk
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/directive-export.mk \
src/usr.bin/make/unit-tests/directive-include.exp \
src/usr.bin/make/unit-tests/directive-include.mk \
src/usr.bin/make/unit-tests/directive-unexport.exp
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/make/unit-tests/directive-undef.mk \
src/usr.bin/make/unit-tests/directive-unexport.mk
cvs rdiff -u -r1.5 -r0 src/usr.bin/make/unit-tests/directives.exp
cvs rdiff -u -r1.6 -r0 src/usr.bin/make/unit-tests/directives.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-03 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Nov  3 17:37:57 UTC 2020

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

Log Message:
make(1): in test forloop.mk, replace shell execution with .info

It's easier to read in the code, and the output has line information to
better relate the output to the code.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/forloop.exp
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/make/unit-tests/forloop.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-03 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Nov  3 17:38:45 UTC 2020

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

Log Message:
make(1): clean up tests error.mk and escape.mk


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/error.exp \
src/usr.bin/make/unit-tests/error.mk
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/make/unit-tests/escape.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-03 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Nov  3 17:59:27 UTC 2020

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

Log Message:
make(1): document the interesting part of the test forsubst.mk


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/forsubst.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-03 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Nov  3 18:18:31 UTC 2020

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

Log Message:
make(1): add all printable ASCII characters to the varmod-subst test

I must have missed some of them when I originally wrote the test.  Not
sure how that happened.  While here, use the official Unicode names.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/varmod-subst.exp
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/make/unit-tests/varmod-subst.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-03 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Nov  3 18:21:37 UTC 2020

Modified Files:
src/usr.bin/make/unit-tests: dollar.exp dollar.mk varmod-loop.mk
varmod-subst.mk

Log Message:
make(1): in tests, replace "dollar character" with "dollar sign"


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/dollar.exp \
src/usr.bin/make/unit-tests/dollar.mk
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/make/unit-tests/varmod-loop.mk \
src/usr.bin/make/unit-tests/varmod-subst.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-03 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Nov  3 18:42:33 UTC 2020

Modified Files:
src/usr.bin/make/unit-tests: dir.mk modmisc.mk modts.mk
varmod-exclam-shell.mk

Log Message:
make(1): clean up unit tests


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/usr.bin/make/unit-tests/dir.mk \
src/usr.bin/make/unit-tests/modts.mk
cvs rdiff -u -r1.49 -r1.50 src/usr.bin/make/unit-tests/modmisc.mk
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/varmod-exclam-shell.mk

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



CVS commit: src/sys/compat/linux/common

2020-11-03 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Nov  3 22:08:44 UTC 2020

Modified Files:
src/sys/compat/linux/common: linux_socket.c

Log Message:
PR/55780: Bernd Sieker: setsockopt in Linux emulation misses some options


To generate a diff of this commit:
cvs rdiff -u -r1.151 -r1.152 src/sys/compat/linux/common/linux_socket.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/cvslatest

2020-11-03 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Nov  3 22:21:44 UTC 2020

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

Log Message:
Handle dummy timestamp better and check for I/O errors. From khorben@


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/usr.bin/cvslatest/cvslatest.c

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



CVS commit: src/sys

2020-11-03 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Wed Nov  4 01:30:19 UTC 2020

Modified Files:
src/sys/kern: init_main.c
src/sys/uvm: uvm_aobj.c uvm_init.c uvm_pdaemon.c

Log Message:
In uvmpd_tryownerlock(), if the initial try-lock of the owner lock fails
then rather than do more try-locks and eventually sleep for a tick,
take a hold on the current owner's lock, drop the page interlock,
and acquire the lock that we took the hold on in a blocking fashion.
After we get the lock, check if the lock that we acquired is still
the lock for the owner of the page that we're interested in.
If the owner hasn't changed then can proceed with this page,
otherwise we will skip this page and move on to a different page.
This dramatically reduces the amount of time that the pagedaemon
sleeps trying to get locks, since even 1 tick is an eternity to sleep
in this context and it was easy to trigger that case in practice,
and with this new method the pagedaemon only very rarely actually blocks
to acquire the lock that it wants since the object locks are adaptive,
and when the pagedaemon does block then the amount of time it spends
sleeping will be generally be much less than 1 tick.


To generate a diff of this commit:
cvs rdiff -u -r1.531 -r1.532 src/sys/kern/init_main.c
cvs rdiff -u -r1.151 -r1.152 src/sys/uvm/uvm_aobj.c
cvs rdiff -u -r1.54 -r1.55 src/sys/uvm/uvm_init.c
cvs rdiff -u -r1.130 -r1.131 src/sys/uvm/uvm_pdaemon.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/pmap

2020-11-03 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Wed Nov  4 01:37:55 UTC 2020

Modified Files:
src/usr.bin/pmap: main.c pmap.c pmap.h

Log Message:
Restrict to root any command option that prints kernel addresses.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/usr.bin/pmap/main.c
cvs rdiff -u -r1.55 -r1.56 src/usr.bin/pmap/pmap.c
cvs rdiff -u -r1.12 -r1.13 src/usr.bin/pmap/pmap.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-03 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Nov  4 02:26:21 UTC 2020

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

Log Message:
make(1): replace emptyString with allocated empty string

Special-casing this variable only made the code more complicated.
Furthermore, it is not related to error handling in any way and
therefore distracted the reader from this topic.


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

2020-11-03 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Nov  4 02:53:18 UTC 2020

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

Log Message:
make(1): remove redundant condition from ApplyModifiersIndirect

Whenever varUndefined is returned from another function, that is only
done if eflags does not contain VARE_UNDEFERR.  Therefore, testing for
that flag is unnecessary.


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

2020-11-03 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Nov  4 02:57:42 UTC 2020

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

Log Message:
make(1): document that "old-style" variables are older than 1993


To generate a diff of this commit:
cvs rdiff -u -r1.179 -r1.180 src/usr.bin/make/make.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-03 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Nov  4 03:13:46 UTC 2020

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

Log Message:
make(1): add missing enum tag for GNodeMade


To generate a diff of this commit:
cvs rdiff -u -r1.180 -r1.181 src/usr.bin/make/make.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-03 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Nov  4 03:37:51 UTC 2020

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

Log Message:
make(1): rename oldVars to discardUndefined

While here, moved all the documentation about this variable into a
single place.


To generate a diff of this commit:
cvs rdiff -u -r1.421 -r1.422 src/usr.bin/make/main.c
cvs rdiff -u -r1.181 -r1.182 src/usr.bin/make/make.h
cvs rdiff -u -r1.422 -r1.423 src/usr.bin/make/parse.c
cvs rdiff -u -r1.654 -r1.655 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

2020-11-03 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Nov  4 04:24:57 UTC 2020

Modified Files:
src/distrib/sets/lists/tests: mi
src/usr.bin/make: var.c
src/usr.bin/make/unit-tests: Makefile
Added Files:
src/usr.bin/make/unit-tests: cmdline-undefined.exp cmdline-undefined.mk

Log Message:
make(1): add test for undefined variables in command line arguments

The variable discardUndefined has an implicit negation in its name,
which makes it hard to understand.  Plus, most of the time it is true.
It's better to have a flag that is false most of the time and has a
positive name.

On the first attempt of inverting that variable, I stumbled upon
MainParseArgs, which initially leaves discardUndefined == FALSE, and
after handling the dashed options, sets it to TRUE.  This would make a
difference when more command line arguments would be added later via the
.MAKEFLAGS special target.

Upon further inspection, the only place where discardUndefined is used
is in VarAssign_EvalSubst in parse.c, and that place is not reachable
from any of the dashed options.  Therefore, discardUndefined could
already be set at the very beginning of MainParseArgs or even when
initializing the global variable itself, without any observable
difference.

Not even the ::= variable modifier could do anything about this since it
is not reachable from the dashed command line options as well, and in
addition, it expands its right-hand side in any case, always discarding
undefined variables.  Oh, these little inconsistencies everywhere.


To generate a diff of this commit:
cvs rdiff -u -r1.960 -r1.961 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.655 -r1.656 src/usr.bin/make/var.c
cvs rdiff -u -r1.187 -r1.188 src/usr.bin/make/unit-tests/Makefile
cvs rdiff -u -r0 -r1.1 src/usr.bin/make/unit-tests/cmdline-undefined.exp \
src/usr.bin/make/unit-tests/cmdline-undefined.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-03 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Nov  4 04:47:56 UTC 2020

Modified Files:
src/usr.bin/make/unit-tests: cmdline-undefined.exp

Log Message:
make(1): fix line numbers in test output of cmdline-undefined.mk


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/cmdline-undefined.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-03 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Nov  4 04:49:33 UTC 2020

Modified Files:
src/usr.bin/make: main.c make.h parse.c var.c
src/usr.bin/make/unit-tests: cmdline-undefined.mk

Log Message:
make(1): negate discardUndefined to preserveUndefined


To generate a diff of this commit:
cvs rdiff -u -r1.422 -r1.423 src/usr.bin/make/main.c
cvs rdiff -u -r1.182 -r1.183 src/usr.bin/make/make.h
cvs rdiff -u -r1.423 -r1.424 src/usr.bin/make/parse.c
cvs rdiff -u -r1.656 -r1.657 src/usr.bin/make/var.c
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/cmdline-undefined.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-03 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Nov  4 05:10:01 UTC 2020

Modified Files:
src/usr.bin/make/unit-tests: varparse-undef-partial.mk

Log Message:
make(1): fix typo and reasoning in test varparse-undef-partial.mk


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/usr.bin/make/unit-tests/varparse-undef-partial.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-03 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Nov  4 06:09:55 UTC 2020

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

Log Message:
make(1): fix indentation in parse.c


To generate a diff of this commit:
cvs rdiff -u -r1.424 -r1.425 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/sys/arch/riscv/include

2020-11-03 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Nov  4 06:24:44 UTC 2020

Modified Files:
src/sys/arch/riscv/include: reg.h

Log Message:
Remove incorrect comment


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/riscv/include/reg.h

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



CVS commit: src/sys/arch/riscv

2020-11-03 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Nov  4 06:56:56 UTC 2020

Modified Files:
src/sys/arch/riscv/conf: GENERIC files.riscv
src/sys/arch/riscv/include: frame.h locore.h sysreg.h
src/sys/arch/riscv/riscv: core_machdep.c db_machdep.c genassym.cf
locore.S trap.c

Log Message:
Miscellaneous updates to reflect riscv-privileged-20190608.pdf

Some from zmcgrew@


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/riscv/conf/GENERIC
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/riscv/conf/files.riscv
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/riscv/include/frame.h
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/riscv/include/locore.h
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/riscv/include/sysreg.h
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/riscv/riscv/core_machdep.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/riscv/riscv/db_machdep.c
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/riscv/riscv/genassym.cf
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/riscv/riscv/locore.S
cvs rdiff -u -r1.10 -r1.11 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: src/sys/arch/riscv

2020-11-03 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Nov  4 07:09:46 UTC 2020

Modified Files:
src/sys/arch/riscv/conf: kern.ldscript
src/sys/arch/riscv/htif: htif.c htif_cons.c htif_disk.c htif_var.h
src/sys/arch/riscv/include: insn.h locore.h
src/sys/arch/riscv/riscv: autoconf.c clock_machdep.c core_machdep.c
cpu_mainbus.c cpu_subr.c db_disasm.c db_machdep.c db_trace.c
exec_machdep.c fixup.c kobj_machdep.c locore.S mainbus.c
netbsd32_machdep.c process_machdep.c procfs_machdep.c
riscv_machdep.c sig_machdep.c softint_machdep.c spl.S stubs.c
sys_machdep.c trap.c

Log Message:
RCSID and whitespace police...


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/riscv/conf/kern.ldscript
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/riscv/htif/htif.c \
src/sys/arch/riscv/htif/htif_cons.c src/sys/arch/riscv/htif/htif_disk.c \
src/sys/arch/riscv/htif/htif_var.h
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/riscv/include/insn.h
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/riscv/include/locore.h
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/riscv/riscv/autoconf.c \
src/sys/arch/riscv/riscv/cpu_mainbus.c \
src/sys/arch/riscv/riscv/cpu_subr.c src/sys/arch/riscv/riscv/db_disasm.c \
src/sys/arch/riscv/riscv/db_trace.c \
src/sys/arch/riscv/riscv/exec_machdep.c src/sys/arch/riscv/riscv/fixup.c \
src/sys/arch/riscv/riscv/mainbus.c \
src/sys/arch/riscv/riscv/softint_machdep.c \
src/sys/arch/riscv/riscv/stubs.c src/sys/arch/riscv/riscv/sys_machdep.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/riscv/riscv/clock_machdep.c \
src/sys/arch/riscv/riscv/procfs_machdep.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/riscv/riscv/core_machdep.c \
src/sys/arch/riscv/riscv/netbsd32_machdep.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/riscv/riscv/db_machdep.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/riscv/riscv/kobj_machdep.c \
src/sys/arch/riscv/riscv/process_machdep.c \
src/sys/arch/riscv/riscv/sig_machdep.c src/sys/arch/riscv/riscv/spl.S
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/riscv/riscv/locore.S
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/riscv/riscv/riscv_machdep.c \
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: src/sys/arch/riscv/include

2020-11-03 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Nov  4 07:40:15 UTC 2020

Modified Files:
src/sys/arch/riscv/include: reg.h

Log Message:
typo in comment


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/riscv/include/reg.h

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



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

2020-11-03 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Nov  4 07:41:34 UTC 2020

Modified Files:
src/sys/arch/riscv/include: reg.h

Log Message:
whitespace in comments


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/riscv/include/reg.h

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



CVS commit: src/sys/arch/riscv

2020-11-03 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Nov  4 07:51:09 UTC 2020

Modified Files:
src/sys/arch/riscv/include: frame.h
src/sys/arch/riscv/riscv: genassym.cf

Log Message:
Fix some of the previous - I must have compile tested the wrong tree


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/riscv/include/frame.h
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/riscv/riscv/genassym.cf

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