CVS commit: src/usr.bin/make

2020-10-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Oct 21 06:46:21 UTC 2020

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

Log Message:
make(1): reduce indentation in SuffFindNormalDepsPath


To generate a diff of this commit:
cvs rdiff -u -r1.205 -r1.206 src/usr.bin/make/suff.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-10-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Oct 21 06:40:28 UTC 2020

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

Log Message:
make(1): extract path search from SuffFindNormalDeps


To generate a diff of this commit:
cvs rdiff -u -r1.204 -r1.205 src/usr.bin/make/suff.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-10-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Oct 21 06:36:10 UTC 2020

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

Log Message:
make(1): unindent SuffFindNormalDepsUnknown


To generate a diff of this commit:
cvs rdiff -u -r1.203 -r1.204 src/usr.bin/make/suff.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-10-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Oct 21 06:34:27 UTC 2020

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

Log Message:
make(1): clean up SuffFindNormalDepsKnown


To generate a diff of this commit:
cvs rdiff -u -r1.202 -r1.203 src/usr.bin/make/suff.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-10-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Oct 21 06:30:30 UTC 2020

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

Log Message:
make(1): extract handling of unknown suffix from SuffFindNormalDeps


To generate a diff of this commit:
cvs rdiff -u -r1.201 -r1.202 src/usr.bin/make/suff.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-10-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Oct 21 06:26:46 UTC 2020

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

Log Message:
make(1): extract handling of known suffix from SuffFindNormalDeps


To generate a diff of this commit:
cvs rdiff -u -r1.200 -r1.201 src/usr.bin/make/suff.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-10-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Oct 21 06:12:16 UTC 2020

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

Log Message:
make(1): merge duplicate code for -DDEBUG_SRC


To generate a diff of this commit:
cvs rdiff -u -r1.199 -r1.200 src/usr.bin/make/suff.c

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



CVS commit: src/lib/libc/arch/alpha/sys

2020-10-20 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Oct 21 01:58:30 UTC 2020

Modified Files:
src/lib/libc/arch/alpha/sys: __sigtramp2.S

Log Message:
Fix typo (thanks kamil@ for pointing it out).


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libc/arch/alpha/sys/__sigtramp2.S

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



CVS commit: src/lib/libc/arch/alpha/sys

2020-10-20 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Oct 21 01:55:07 UTC 2020

Modified Files:
src/lib/libc/arch/alpha/sys: __sigtramp2.S

Log Message:
Add call frame unwind info to the Alpha signal trampoline.  Using
kamil@'s test program:

Before:
Backtrace 2 stack frames.
0x12a74  at ./test
0x3fffdca6550 <__sigtramp_siginfo_2> at /usr/lib/libc.so.12

After:
Backtrace 4 stack frames.
0x12a74  at ./test
0x3fffdca6554 <__sigtramp_siginfo_2> at /usr/lib/libc.so.12
0x12b10  at ./test
0x129b4 <___start+0x1a4> at ./test


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/alpha/sys/__sigtramp2.S

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



CVS commit: src/lib/libc/arch/alpha

2020-10-20 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Oct 21 01:24:05 UTC 2020

Modified Files:
src/lib/libc/arch/alpha: genassym.cf
src/lib/libc/arch/alpha/gen: __setjmp14.S swapcontext.S
src/lib/libc/arch/alpha/sys: __sigtramp2.S getcontext.S

Log Message:
- Consistently use _REG_* defines from assym.h to mean register numbers,
  not offsets (i.e. *8 to get the offset).
- Define and use SIZEOF_SIGINFO and UC_GREGS constants, rather than
  hard-code magic numbers.

NFC -- same object code is generated.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/arch/alpha/genassym.cf
cvs rdiff -u -r1.7 -r1.8 src/lib/libc/arch/alpha/gen/__setjmp14.S
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/alpha/gen/swapcontext.S
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/arch/alpha/sys/__sigtramp2.S
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/alpha/sys/getcontext.S

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



CVS commit: src

2020-10-20 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Oct 20 23:27:58 UTC 2020

Modified Files:
src/share/man/man3: queue.3
src/sys/sys: queue.h

Log Message:
Remove the CIRCLEQ API from queue(3)

It was marked deprecated in NetBSD 7 and already removed from
FreeBSD in 2000 and OpenBSD in 2015.

Proposed on tech-kern@.


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/share/man/man3/queue.3
cvs rdiff -u -r1.74 -r1.75 src/sys/sys/queue.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-10-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Oct 20 23:15:23 UTC 2020

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

Log Message:
make(1): document parameter to Var_Parse


To generate a diff of this commit:
cvs rdiff -u -r1.578 -r1.579 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-10-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Oct 20 23:04:35 UTC 2020

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

Log Message:
make(1): remove strange off-by-one feature in SuffSuffGetSuffix

The code worked as intended, yet it was strange to modify cp[1] to
temporarily shorten a string.  Using cp[0] for this purpose is common
style.


To generate a diff of this commit:
cvs rdiff -u -r1.198 -r1.199 src/usr.bin/make/suff.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-10-20 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Oct 20 23:03:30 UTC 2020

Modified Files:
src/sys/arch/arm/fdt: arm_simplefb.c arm_simplefb.h
src/sys/arch/evbarm/fdt: fdt_machdep.c
src/sys/dev/fdt: simplefb.c
src/sys/dev/pci: pciconf.c pciconf.h

Log Message:
Instead of trying to prevent pciconf from reconfiguring the firmware's
framebuffer, instead allow MD code to register callbacks. If a resource is
changed, the driver can unmap the old resource and remap the new. Do this
with simplefb so the console doesn't explode when the VGA device is
(potentially) reconfigured at boot.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arm/fdt/arm_simplefb.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/fdt/arm_simplefb.h
cvs rdiff -u -r1.76 -r1.77 src/sys/arch/evbarm/fdt/fdt_machdep.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/fdt/simplefb.c
cvs rdiff -u -r1.49 -r1.50 src/sys/dev/pci/pciconf.c
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/pci/pciconf.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-10-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Oct 20 22:50:55 UTC 2020

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

Log Message:
make(1): clean up parsing code for dependency lines

The variable names "line" and "cp" were not appropriate for some of the
functions where they point to a single word, not to the whole line.

The const parameters were only necessary during refactoring, to make
sure that no unintended aliasing happens between the local variables.
This kind of bugs has already happened a few times in the last months,
and it requires full test coverage of all edge cases, which is not
achieved yet.

In ParseErrorNoDependency, lstart was always the same as line.


To generate a diff of this commit:
cvs rdiff -u -r1.394 -r1.395 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/kern

2020-10-20 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Tue Oct 20 22:31:21 UTC 2020

Modified Files:
src/sys/kern: sys_process_lwpstatus.c

Log Message:
Include missing . Hopefully fix build for everyone except vax,
for which process_machep.c is missing.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/kern/sys_process_lwpstatus.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-10-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Oct 20 21:15:47 UTC 2020

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

Log Message:
make(1): improve debug messages for suff.c

Especially for the null suffix, the previous message was hard to read.
Who would guess that in "inserting (0)", there is an empty string before
the parenthesis?  The new format uses quotes to make the suffixes
clearly visible.

While here, improve some local variable names.  In a file that defines
both Suff and Src, using s for a variable is just too ambiguous.  The
variable name l can easily be confused with a 1, so name it list
instead.


To generate a diff of this commit:
cvs rdiff -u -r1.197 -r1.198 src/usr.bin/make/suff.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-10-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Oct 20 20:55:35 UTC 2020

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

Log Message:
make(1): inline SuffSuffIsPrefix into SuffParseTransform


To generate a diff of this commit:
cvs rdiff -u -r1.196 -r1.197 src/usr.bin/make/suff.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-10-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Oct 20 20:51:15 UTC 2020

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

Log Message:
make(1): untangle SuffParseTransform

That function was probably not meant to be a brain-twister, but the
convoluted loop combined with Lst_Find/Lst_FindFrom and the deeply
indented second pass for the single suffix made the code harder to
understand than necessary.

No functional change intended, that's why I had to split and enable the
test suffixes.mk first.


To generate a diff of this commit:
cvs rdiff -u -r1.195 -r1.196 src/usr.bin/make/suff.c

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



CVS commit: src

2020-10-20 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Oct 20 20:36:53 UTC 2020

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/usr.bin/make: t_make.sh
src/usr.bin/make/unit-tests: Makefile
Added Files:
src/usr.bin/make/unit-tests: suff-add-later.exp suff-add-later.mk
suff-clear-regular.exp suff-clear-regular.mk suff-clear-single.exp
suff-clear-single.mk suff-transform-endless.exp
suff-transform-endless.mk suff-transform-expand.exp
suff-transform-expand.mk suff-transform-select.exp
suff-transform-select.mk
Removed Files:
src/usr.bin/make/unit-tests: suffixes.exp suffixes.mk

Log Message:
make(1): split test suffixes.mk into simpler, isolated tests

The code in suff.c is already hard to understand, and so were the tests
in suffixes.mk since several independent topics were merged into a
single test.

Splitting this test into a separate test per issue allows to document
the expected and actual behavior in more detail.  That's complicated
enough already.

PR bin/49086


To generate a diff of this commit:
cvs rdiff -u -r1.943 -r1.944 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.11 -r1.12 src/tests/usr.bin/make/t_make.sh
cvs rdiff -u -r1.168 -r1.169 src/usr.bin/make/unit-tests/Makefile
cvs rdiff -u -r0 -r1.1 src/usr.bin/make/unit-tests/suff-add-later.exp \
src/usr.bin/make/unit-tests/suff-add-later.mk \
src/usr.bin/make/unit-tests/suff-clear-regular.exp \
src/usr.bin/make/unit-tests/suff-clear-regular.mk \
src/usr.bin/make/unit-tests/suff-clear-single.exp \
src/usr.bin/make/unit-tests/suff-clear-single.mk \
src/usr.bin/make/unit-tests/suff-transform-endless.exp \
src/usr.bin/make/unit-tests/suff-transform-endless.mk \
src/usr.bin/make/unit-tests/suff-transform-expand.exp \
src/usr.bin/make/unit-tests/suff-transform-expand.mk \
src/usr.bin/make/unit-tests/suff-transform-select.exp \
src/usr.bin/make/unit-tests/suff-transform-select.mk
cvs rdiff -u -r1.1 -r0 src/usr.bin/make/unit-tests/suffixes.exp
cvs rdiff -u -r1.3 -r0 src/usr.bin/make/unit-tests/suffixes.mk

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



CVS commit: src/sys/arch

2020-10-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Oct 20 20:36:08 UTC 2020

Modified Files:
src/sys/arch/aarch64/conf: files.aarch64
src/sys/arch/alpha/conf: files.alpha
src/sys/arch/amd64/conf: files.amd64
src/sys/arch/arm/conf: files.arm
src/sys/arch/hppa/conf: files.hppa
src/sys/arch/i386/conf: files.i386
src/sys/arch/ia64/conf: files.ia64
src/sys/arch/m68k/conf: files.m68k
src/sys/arch/mips/conf: files.mips
src/sys/arch/powerpc/conf: files.powerpc
src/sys/arch/riscv/conf: files.riscv
src/sys/arch/sh3/conf: files.sh3
src/sys/arch/sparc/conf: files.sparc
src/sys/arch/sparc64/conf: files.sparc64
src/sys/arch/usermode/conf: files.usermode

Log Message:
harmonize process_machdep.c inclusion.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/aarch64/conf/files.aarch64
cvs rdiff -u -r1.192 -r1.193 src/sys/arch/alpha/conf/files.alpha
cvs rdiff -u -r1.118 -r1.119 src/sys/arch/amd64/conf/files.amd64
cvs rdiff -u -r1.162 -r1.163 src/sys/arch/arm/conf/files.arm
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/hppa/conf/files.hppa
cvs rdiff -u -r1.405 -r1.406 src/sys/arch/i386/conf/files.i386
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/ia64/conf/files.ia64
cvs rdiff -u -r1.49 -r1.50 src/sys/arch/m68k/conf/files.m68k
cvs rdiff -u -r1.79 -r1.80 src/sys/arch/mips/conf/files.mips
cvs rdiff -u -r1.95 -r1.96 src/sys/arch/powerpc/conf/files.powerpc
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/riscv/conf/files.riscv
cvs rdiff -u -r1.46 -r1.47 src/sys/arch/sh3/conf/files.sh3
cvs rdiff -u -r1.160 -r1.161 src/sys/arch/sparc/conf/files.sparc
cvs rdiff -u -r1.161 -r1.162 src/sys/arch/sparc64/conf/files.sparc64
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/usermode/conf/files.usermode

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



CVS commit: src/sys

2020-10-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Oct 20 20:28:55 UTC 2020

Modified Files:
src/sys/kern: sys_process_lwpstatus.c sys_ptrace_common.c
src/sys/sys: ptrace.h

Log Message:
Basic register read/write functionality and lwp setting are always provided
by the kernel because they are needed by multiple things
(ptrace/procfs/coredump), so move them to sys_process_lwpstatus (this file
should be renamed to sys_process_common.c?)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/kern/sys_process_lwpstatus.c
cvs rdiff -u -r1.86 -r1.87 src/sys/kern/sys_ptrace_common.c
cvs rdiff -u -r1.71 -r1.72 src/sys/sys/ptrace.h

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



CVS commit: src/sys

2020-10-20 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Tue Oct 20 18:17:58 UTC 2020

Modified Files:
src/sys/arch/mac68k/dev: if_mc.c
src/sys/arch/macppc/dev: am79c950.c
src/sys/dev/ic: am7990.c am79900.c

Log Message:
le(4): add link status change reporting to drivers which support it

Reviewed by thorpej@
Tested by martin@


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/sys/arch/mac68k/dev/if_mc.c
cvs rdiff -u -r1.49 -r1.50 src/sys/arch/macppc/dev/am79c950.c
cvs rdiff -u -r1.82 -r1.83 src/sys/dev/ic/am7990.c
cvs rdiff -u -r1.30 -r1.31 src/sys/dev/ic/am79900.c

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



CVS commit: src/sys/kern

2020-10-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Oct 20 13:47:30 UTC 2020

Modified Files:
src/sys/kern: kern_core.c

Log Message:
only define hooks for 32 bit cores if we need them.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/kern/kern_core.c

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



CVS commit: src/sys/kern

2020-10-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Oct 20 13:16:26 UTC 2020

Modified Files:
src/sys/kern: kern_sig.c

Log Message:
Fix build for _LP64 machines that don't have COMPAT_NETBSD32 (alpha, ia64)


To generate a diff of this commit:
cvs rdiff -u -r1.391 -r1.392 src/sys/kern/kern_sig.c

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/drm2/dist/drm/radeon

2020-10-20 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Tue Oct 20 09:53:59 UTC 2020

Modified Files:
src/sys/external/bsd/drm2/dist/drm/radeon: radeon_atombios_dp.c

Log Message:
add header file hack to resolve conflict of ALIGN macro. (on __BIG_ENDIAN)


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/sys/external/bsd/drm2/dist/drm/radeon/radeon_atombios_dp.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-10-20 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Tue Oct 20 08:57:45 UTC 2020

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

Log Message:
ossaudio(3): Add SNDCTL_AUDIOINFO_EX as an alias of SNDCTL_AUDIOINFO


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/lib/libossaudio/ossaudio.c
cvs rdiff -u -r1.29 -r1.30 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/sys/dev/mii

2020-10-20 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue Oct 20 08:53:34 UTC 2020

Modified Files:
src/sys/dev/mii: makphy.c

Log Message:
Add Intel I347-AT4.


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sys/dev/mii/makphy.c

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



CVS commit: src/doc

2020-10-20 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Tue Oct 20 07:52:46 UTC 2020

Modified Files:
src/doc: CHANGES

Log Message:
doc/CHANGES: Added support for the OSSv4 Mixer API


To generate a diff of this commit:
cvs rdiff -u -r1.2748 -r1.2749 src/doc/CHANGES

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-10-20 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Tue Oct 20 07:52:05 UTC 2020

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

Log Message:
Remove trailing whitespace.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/lib/libossaudio/ossaudio.3

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