CVS commit: src/sys/arch/aarch64/aarch64

2020-10-05 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Oct  6 06:26:46 UTC 2020

Modified Files:
src/sys/arch/aarch64/aarch64: cpuswitch.S vectors.S

Log Message:
move #include "opt_compat_netbsd32.h" to where it's required


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/aarch64/aarch64/cpuswitch.S
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/aarch64/aarch64/vectors.S

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-05 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Oct  5 22:45:47 UTC 2020

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

Log Message:
make(1): remove pathname limit for Dir_FindHereOrAbove

While trying to compile the code with GCC's -Wformat-truncation, the
snprintf calls felt quite complicated.  The function Dir_FindHereOrAbove
is not in a bottleneck execution path, therefore it doesn't hurt to
dynamically allocate the memory instead of using size-limited stack
memory.


To generate a diff of this commit:
cvs rdiff -u -r1.160 -r1.161 src/usr.bin/make/dir.c
cvs rdiff -u -r1.28 -r1.29 src/usr.bin/make/dir.h
cvs rdiff -u -r1.370 -r1.371 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-10-05 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Oct  5 22:15:45 UTC 2020

Modified Files:
src/usr.bin/make: Makefile make.h parse.c targ.c

Log Message:
make(1): enable format string truncation warnings for parse.c

No node is ever going to have a million or more cohorts.  And even if
there were, this name is only used for printing informational messages.


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 src/usr.bin/make/Makefile
cvs rdiff -u -r1.155 -r1.156 src/usr.bin/make/make.h
cvs rdiff -u -r1.369 -r1.370 src/usr.bin/make/parse.c
cvs rdiff -u -r1.111 -r1.112 src/usr.bin/make/targ.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-05 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Oct  5 21:37:07 UTC 2020

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

Log Message:
make(1): prepare job.c, main.c, parse.c, suff.c for WARNS=6

In job.c, GCC 5 complains about the macro FILENO that it has type
unsigned int, which is then passed as the argument of dup2, which
expects a simple int.  Maybe this workaround from 1995 is not necessary
anymore, or maybe it is but can be restricted to the few affected
platforms.

This leaves meta.c and the filemon files to be converted.  I didn't do
them since they are not well covered by the unit tests.


To generate a diff of this commit:
cvs rdiff -u -r1.260 -r1.261 src/usr.bin/make/job.c
cvs rdiff -u -r1.54 -r1.55 src/usr.bin/make/job.h
cvs rdiff -u -r1.369 -r1.370 src/usr.bin/make/main.c
cvs rdiff -u -r1.368 -r1.369 src/usr.bin/make/parse.c
cvs rdiff -u -r1.176 -r1.177 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/games/factor

2020-10-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Oct  5 21:11:47 UTC 2020

Modified Files:
src/games/factor: factor.c

Log Message:
PR/55695: Andreas Gustafsson: factor(6) -h option doesn't always work
Handle -h for factors greater than the primes table.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/games/factor/factor.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-05 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Oct  5 20:21:30 UTC 2020

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

Log Message:
make(1): make dir.c, for.c and hash.c ready for WARNS=6

Some types have changed from int to unsigned int, size_t or time_t.

The variable i in hash.c has been kept as int since it counts down to
-1, which generates efficient machine code, at least on x86_64.


To generate a diff of this commit:
cvs rdiff -u -r1.159 -r1.160 src/usr.bin/make/dir.c
cvs rdiff -u -r1.27 -r1.28 src/usr.bin/make/dir.h
cvs rdiff -u -r1.92 -r1.93 src/usr.bin/make/for.c
cvs rdiff -u -r1.43 -r1.44 src/usr.bin/make/hash.c
cvs rdiff -u -r1.25 -r1.26 src/usr.bin/make/hash.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-05 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Oct  5 19:59:07 UTC 2020

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

Log Message:
make(1): make cond.c ready for WARNS=6, part 2


To generate a diff of this commit:
cvs rdiff -u -r1.161 -r1.162 src/usr.bin/make/cond.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-05 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Oct  5 19:56:08 UTC 2020

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

Log Message:
make(1): make cond.c ready for WARNS=6


To generate a diff of this commit:
cvs rdiff -u -r1.160 -r1.161 src/usr.bin/make/cond.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-05 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Oct  5 19:39:30 UTC 2020

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

Log Message:
make(1): fix compilation with GCC 10 and -Wimplicit-fallthrough=4


To generate a diff of this commit:
cvs rdiff -u -r1.567 -r1.568 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-05 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Oct  5 19:30:37 UTC 2020

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

Log Message:
make(1): fix double-free bug in -DCLEANUP mode (since 2020-10-02)

The bug had been introduced with dir.c 1.155 on 2020-10-02 22:20:25.  In
that commit, openDirectories was replaced with a combination of a list
with a hash table, for more efficient lookup by name.

Upon cleanup, OpenDirs_Done is called, which in turn called
Dir_ClearPath.  Dir_ClearPath takes full ownership of the given list and
empties it.  This was no problem before since afterwards the list was
empty and calling Lst_Free just frees the remaining list pointer.

With OpenDirs, this list was combined with a hash table, and the hash
table contains the list nodes, assuming that the OpenDirs functions have
full ownership of both the list and the hash table.  This assumption was
generally correct, except for the one moment during cleanup where full
ownership of the list was passed to Dir_ClearPath, while the hash table
still contained pointers to the (now freed) list nodes.  This by itself
was not a problem since the hash table would be freed afterwards.  But
as part of Dir_ClearPath, OpenDirs_Remove was called, which looked up
the freed directory by name and now found the freed list node, trying to
free it again.  Boom.

Fixed by replacing the call to Dir_ClearPath with code that only frees
the directories, without giving up control over the list.


To generate a diff of this commit:
cvs rdiff -u -r1.158 -r1.159 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-10-05 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Oct  5 19:27:48 UTC 2020

Modified Files:
src/usr.bin/make: Makefile arch.c compat.c cond.c dir.c enum.c for.c
hash.c job.c main.c make.h make_malloc.c nonints.h parse.c str.c
suff.c targ.c trace.c util.c var.c
src/usr.bin/make/unit-tests: Makefile directive-export-literal.exp
directive-export-literal.mk directive-ifndef.exp
directive-ifndef.mk directive-ifnmake.exp directive-ifnmake.mk
make-exported.exp make-exported.mk opt-debug-file.mk
opt-debug-for.exp opt-debug-for.mk opt-debug-jobs.exp
opt-debug-jobs.mk opt-debug-lint.exp opt-debug-lint.mk
opt-debug-loud.exp opt-debug-loud.mk opt-debug.exp opt-debug.mk
var-op-append.mk varname-dot-curdir.mk

Log Message:
make(1): revert previous commit

It had accidentally reverted all the work from the past few days.


To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 src/usr.bin/make/Makefile
cvs rdiff -u -r1.131 -r1.132 src/usr.bin/make/arch.c
cvs rdiff -u -r1.164 -r1.165 src/usr.bin/make/compat.c
cvs rdiff -u -r1.159 -r1.160 src/usr.bin/make/cond.c
cvs rdiff -u -r1.157 -r1.158 src/usr.bin/make/dir.c
cvs rdiff -u -r1.11 -r1.12 src/usr.bin/make/enum.c
cvs rdiff -u -r1.91 -r1.92 src/usr.bin/make/for.c
cvs rdiff -u -r1.42 -r1.43 src/usr.bin/make/hash.c
cvs rdiff -u -r1.259 -r1.260 src/usr.bin/make/job.c
cvs rdiff -u -r1.368 -r1.369 src/usr.bin/make/main.c
cvs rdiff -u -r1.154 -r1.155 src/usr.bin/make/make.h
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/make/make_malloc.c
cvs rdiff -u -r1.139 -r1.140 src/usr.bin/make/nonints.h
cvs rdiff -u -r1.367 -r1.368 src/usr.bin/make/parse.c
cvs rdiff -u -r1.67 -r1.68 src/usr.bin/make/str.c
cvs rdiff -u -r1.175 -r1.176 src/usr.bin/make/suff.c
cvs rdiff -u -r1.110 -r1.111 src/usr.bin/make/targ.c
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/make/trace.c
cvs rdiff -u -r1.62 -r1.63 src/usr.bin/make/util.c
cvs rdiff -u -r1.566 -r1.567 src/usr.bin/make/var.c
cvs rdiff -u -r1.161 -r1.162 src/usr.bin/make/unit-tests/Makefile
cvs rdiff -u -r1.3 -r1.4 \
src/usr.bin/make/unit-tests/directive-export-literal.exp \
src/usr.bin/make/unit-tests/directive-ifndef.exp \
src/usr.bin/make/unit-tests/directive-ifnmake.exp \
src/usr.bin/make/unit-tests/opt-debug-file.mk \
src/usr.bin/make/unit-tests/opt-debug-for.exp \
src/usr.bin/make/unit-tests/opt-debug-for.mk \
src/usr.bin/make/unit-tests/opt-debug-jobs.exp \
src/usr.bin/make/unit-tests/opt-debug-jobs.mk \
src/usr.bin/make/unit-tests/opt-debug-loud.exp \
src/usr.bin/make/unit-tests/opt-debug-loud.mk \
src/usr.bin/make/unit-tests/opt-debug.exp
cvs rdiff -u -r1.4 -r1.5 \
src/usr.bin/make/unit-tests/directive-export-literal.mk \
src/usr.bin/make/unit-tests/directive-ifndef.mk \
src/usr.bin/make/unit-tests/directive-ifnmake.mk \
src/usr.bin/make/unit-tests/make-exported.exp \
src/usr.bin/make/unit-tests/opt-debug.mk \
src/usr.bin/make/unit-tests/var-op-append.mk
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/make/unit-tests/make-exported.mk \
src/usr.bin/make/unit-tests/varname-dot-curdir.mk
cvs rdiff -u -r1.10 -r1.11 src/usr.bin/make/unit-tests/opt-debug-lint.exp
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/make/unit-tests/opt-debug-lint.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-10-05 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Oct  5 19:24:29 UTC 2020

Modified Files:
src/usr.bin/make: Makefile arch.c compat.c cond.c dir.c enum.c for.c
hash.c job.c main.c make.h make_malloc.c nonints.h parse.c str.c
suff.c targ.c trace.c util.c var.c
src/usr.bin/make/unit-tests: Makefile directive-export-literal.exp
directive-export-literal.mk directive-ifndef.exp
directive-ifndef.mk directive-ifnmake.exp directive-ifnmake.mk
make-exported.exp make-exported.mk opt-debug-file.mk
opt-debug-for.exp opt-debug-for.mk opt-debug-jobs.exp
opt-debug-jobs.mk opt-debug-lint.exp opt-debug-lint.mk
opt-debug-loud.exp opt-debug-loud.mk opt-debug.exp opt-debug.mk
var-op-append.mk varname-dot-curdir.mk

Log Message:
make(1): fix double-free bug in -DCLEANUP mode (since 2020-10-02)

The bug had been introduced with dir.c 1.155 on 2020-10-02 22:20:25.  In
that commit, openDirectories was replaced with a combination of a list
with a hash table, for more efficient lookup by name.

Upon cleanup, OpenDirs_Done is called, which in turn called
Dir_ClearPath.  Dir_ClearPath takes full ownership of the given list and
empties it.  This was no problem before since afterwards the list was
empty and calling Lst_Free just frees the remaining list pointer.

With OpenDirs, this list was combined with a hash table, and the hash
table contains the list nodes, assuming that the OpenDirs functions have
full ownership of both the list and the hash table.  This assumption was
generally correct, except for the one moment during cleanup where full
ownership of the list was passed to Dir_ClearPath, while the hash table
still contained pointers to the (now freed) list nodes.  This by itself
was not a problem since the hash table would be freed afterwards.  But
as part of Dir_ClearPath, OpenDirs_Remove was called, which looked up
the freed directory by name and now found the freed list node, trying to
free it again.  Boom.

Fixed by replacing the call to Dir_ClearPath with code that only frees
the directories, without giving up control over the list.


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 src/usr.bin/make/Makefile
cvs rdiff -u -r1.130 -r1.131 src/usr.bin/make/arch.c
cvs rdiff -u -r1.163 -r1.164 src/usr.bin/make/compat.c
cvs rdiff -u -r1.158 -r1.159 src/usr.bin/make/cond.c
cvs rdiff -u -r1.156 -r1.157 src/usr.bin/make/dir.c
cvs rdiff -u -r1.10 -r1.11 src/usr.bin/make/enum.c
cvs rdiff -u -r1.90 -r1.91 src/usr.bin/make/for.c
cvs rdiff -u -r1.41 -r1.42 src/usr.bin/make/hash.c
cvs rdiff -u -r1.258 -r1.259 src/usr.bin/make/job.c
cvs rdiff -u -r1.367 -r1.368 src/usr.bin/make/main.c
cvs rdiff -u -r1.153 -r1.154 src/usr.bin/make/make.h
cvs rdiff -u -r1.21 -r1.22 src/usr.bin/make/make_malloc.c
cvs rdiff -u -r1.138 -r1.139 src/usr.bin/make/nonints.h
cvs rdiff -u -r1.366 -r1.367 src/usr.bin/make/parse.c
cvs rdiff -u -r1.66 -r1.67 src/usr.bin/make/str.c
cvs rdiff -u -r1.174 -r1.175 src/usr.bin/make/suff.c
cvs rdiff -u -r1.109 -r1.110 src/usr.bin/make/targ.c
cvs rdiff -u -r1.17 -r1.18 src/usr.bin/make/trace.c
cvs rdiff -u -r1.61 -r1.62 src/usr.bin/make/util.c
cvs rdiff -u -r1.565 -r1.566 src/usr.bin/make/var.c
cvs rdiff -u -r1.160 -r1.161 src/usr.bin/make/unit-tests/Makefile
cvs rdiff -u -r1.2 -r1.3 \
src/usr.bin/make/unit-tests/directive-export-literal.exp \
src/usr.bin/make/unit-tests/directive-ifndef.exp \
src/usr.bin/make/unit-tests/directive-ifnmake.exp \
src/usr.bin/make/unit-tests/opt-debug-file.mk \
src/usr.bin/make/unit-tests/opt-debug-for.exp \
src/usr.bin/make/unit-tests/opt-debug-for.mk \
src/usr.bin/make/unit-tests/opt-debug-jobs.exp \
src/usr.bin/make/unit-tests/opt-debug-jobs.mk \
src/usr.bin/make/unit-tests/opt-debug-loud.exp \
src/usr.bin/make/unit-tests/opt-debug-loud.mk \
src/usr.bin/make/unit-tests/opt-debug.exp
cvs rdiff -u -r1.3 -r1.4 \
src/usr.bin/make/unit-tests/directive-export-literal.mk \
src/usr.bin/make/unit-tests/directive-ifndef.mk \
src/usr.bin/make/unit-tests/directive-ifnmake.mk \
src/usr.bin/make/unit-tests/make-exported.exp \
src/usr.bin/make/unit-tests/opt-debug.mk \
src/usr.bin/make/unit-tests/var-op-append.mk
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/make/unit-tests/make-exported.mk \
src/usr.bin/make/unit-tests/varname-dot-curdir.mk
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/make/unit-tests/opt-debug-lint.exp
cvs rdiff -u -r1.8 -r1.9 src/usr.bin/make/unit-tests/opt-debug-lint.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-10-05 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Oct  5 18:29:20 UTC 2020

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

Log Message:
make(1): fix test for .ifndef when compiled with -DUSE_UCHAR_BOOLEAN

In that compilation variant, TRUE is defined to 255, to see whether all
boolean expressions evaluate to either 1 or 0.  The field If.doNot in
cond.c doesn't do this since it uses the actual value of TRUE.
Therefore, change the evaluation slightly to also handle this case.


To generate a diff of this commit:
cvs rdiff -u -r1.157 -r1.158 src/usr.bin/make/cond.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-05 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Oct  5 18:04:57 UTC 2020

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

Log Message:
make(1): clean up compat.c

Only cosmetic changes, no change of functionality.


To generate a diff of this commit:
cvs rdiff -u -r1.162 -r1.163 src/usr.bin/make/compat.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-05 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Oct  5 17:33:21 UTC 2020

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

Log Message:
make(1): extract init_machine and init_machine_arch from main


To generate a diff of this commit:
cvs rdiff -u -r1.366 -r1.367 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/sbin/ifconfig

2020-10-05 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Mon Oct  5 17:29:22 UTC 2020

Modified Files:
src/sbin/ifconfig: media.c

Log Message:
Minor correction to prior


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sbin/ifconfig/media.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-05 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Oct  5 16:54:41 UTC 2020

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

Log Message:
make(1): extract parsing of sources from ParseDoDependency


To generate a diff of this commit:
cvs rdiff -u -r1.365 -r1.366 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-10-05 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Oct  5 16:45:03 UTC 2020

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

Log Message:
make(1): extract the target parsing from ParseDoDependency


To generate a diff of this commit:
cvs rdiff -u -r1.364 -r1.365 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-10-05 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Oct  5 16:33:20 UTC 2020

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

Log Message:
make(1): split ParseDoDependency into several smaller functions


To generate a diff of this commit:
cvs rdiff -u -r1.363 -r1.364 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/sbin/ifconfig

2020-10-05 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Mon Oct  5 16:17:05 UTC 2020

Modified Files:
src/sbin/ifconfig: media.c

Log Message:
ifconfig: Warn once more if media supported but no types

This reverts media.c -r1.7


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sbin/ifconfig/media.c

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



CVS commit: src/sys/net

2020-10-05 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Mon Oct  5 16:11:25 UTC 2020

Modified Files:
src/sys/net: if_spppsubr.c if_spppvar.h

Log Message:
ppp: Remove media

There is none after all.
Applications should be using ifi_link_state and not checking media.


To generate a diff of this commit:
cvs rdiff -u -r1.189 -r1.190 src/sys/net/if_spppsubr.c
cvs rdiff -u -r1.23 -r1.24 src/sys/net/if_spppvar.h

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-05 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Mon Oct  5 16:04:11 UTC 2020

Modified Files:
src/doc: 3RDPARTY CHANGES

Log Message:
Note import of dhcpcd-9.3.0


To generate a diff of this commit:
cvs rdiff -u -r1.1747 -r1.1748 src/doc/3RDPARTY
cvs rdiff -u -r1.2742 -r1.2743 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/external/bsd/dhcpcd/dist/src

2020-10-05 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Mon Oct  5 16:02:15 UTC 2020

Modified Files:
src/external/bsd/dhcpcd/dist/src: bpf.c dhcp.c dhcp6.c dhcpcd.c
if-bsd.c if-options.c ipv6nd.c logerr.c privsep.c script.c

Log Message:
Sync with dhcpcd-9.3.0


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/external/bsd/dhcpcd/dist/src/bpf.c
cvs rdiff -u -r1.39 -r1.40 src/external/bsd/dhcpcd/dist/src/dhcp.c
cvs rdiff -u -r1.22 -r1.23 src/external/bsd/dhcpcd/dist/src/dhcp6.c
cvs rdiff -u -r1.42 -r1.43 src/external/bsd/dhcpcd/dist/src/dhcpcd.c
cvs rdiff -u -r1.23 -r1.24 src/external/bsd/dhcpcd/dist/src/if-bsd.c \
src/external/bsd/dhcpcd/dist/src/ipv6nd.c
cvs rdiff -u -r1.27 -r1.28 src/external/bsd/dhcpcd/dist/src/if-options.c
cvs rdiff -u -r1.8 -r1.9 src/external/bsd/dhcpcd/dist/src/logerr.c
cvs rdiff -u -r1.7 -r1.8 src/external/bsd/dhcpcd/dist/src/privsep.c
cvs rdiff -u -r1.9 -r1.10 src/external/bsd/dhcpcd/dist/src/script.c

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



CVS import: src/external/bsd/dhcpcd/dist

2020-10-05 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Mon Oct  5 16:01:14 UTC 2020

Update of /cvsroot/src/external/bsd/dhcpcd/dist
In directory ivanova.netbsd.org:/tmp/cvs-serv12318

Log Message:
Update to dhcpcd-9.3.0 with the following changes:
 * dhcpcd: Backticks have been removed from quoting filenames
 * dhcpcd: Only manipulate stdin, stdout and stderr if they are valid
 * duid: Adjust option so the type can be specified
 * logerr: Don't leak logfile fd to scripts
 * privsep: Run the launcher process in the sandbox
 * BSD: Use `ifi_link_state` as the single source of truth about carrier
 * BSD: Ignore vether(4) devices by default

Status:

Vendor Tag: ROY
Release Tags:   dhcpcd-9_3_0

U src/external/bsd/dhcpcd/dist/LICENSE
U src/external/bsd/dhcpcd/dist/README.md
U src/external/bsd/dhcpcd/dist/src/defs.h
U src/external/bsd/dhcpcd/dist/src/common.c
U src/external/bsd/dhcpcd/dist/src/control.c
C src/external/bsd/dhcpcd/dist/src/dhcpcd.c
U src/external/bsd/dhcpcd/dist/src/duid.c
U src/external/bsd/dhcpcd/dist/src/eloop.c
C src/external/bsd/dhcpcd/dist/src/logerr.c
U src/external/bsd/dhcpcd/dist/src/if.c
C src/external/bsd/dhcpcd/dist/src/if-options.c
U src/external/bsd/dhcpcd/dist/src/sa.c
U src/external/bsd/dhcpcd/dist/src/route.c
U src/external/bsd/dhcpcd/dist/src/dhcp-common.c
C src/external/bsd/dhcpcd/dist/src/script.c
U src/external/bsd/dhcpcd/dist/src/auth.c
C src/external/bsd/dhcpcd/dist/src/if-bsd.c
C src/external/bsd/dhcpcd/dist/src/dhcp.c
U src/external/bsd/dhcpcd/dist/src/ipv4.c
C src/external/bsd/dhcpcd/dist/src/bpf.c
U src/external/bsd/dhcpcd/dist/src/arp.c
U src/external/bsd/dhcpcd/dist/src/ipv4ll.c
U src/external/bsd/dhcpcd/dist/src/ipv6.c
C src/external/bsd/dhcpcd/dist/src/ipv6nd.c
C src/external/bsd/dhcpcd/dist/src/dhcp6.c
U src/external/bsd/dhcpcd/dist/src/dhcpcd-embedded.c
C src/external/bsd/dhcpcd/dist/src/privsep.c
U src/external/bsd/dhcpcd/dist/src/privsep-root.c
U src/external/bsd/dhcpcd/dist/src/privsep-control.c
U src/external/bsd/dhcpcd/dist/src/privsep-inet.c
U src/external/bsd/dhcpcd/dist/src/privsep-bpf.c
U src/external/bsd/dhcpcd/dist/src/privsep-bsd.c
U src/external/bsd/dhcpcd/dist/src/common.h
U src/external/bsd/dhcpcd/dist/src/control.h
U src/external/bsd/dhcpcd/dist/src/dhcpcd.h
U src/external/bsd/dhcpcd/dist/src/duid.h
U src/external/bsd/dhcpcd/dist/src/eloop.h
U src/external/bsd/dhcpcd/dist/src/logerr.h
U src/external/bsd/dhcpcd/dist/src/if.h
U src/external/bsd/dhcpcd/dist/src/if-options.h
U src/external/bsd/dhcpcd/dist/src/sa.h
U src/external/bsd/dhcpcd/dist/src/route.h
U src/external/bsd/dhcpcd/dist/src/dhcp-common.h
U src/external/bsd/dhcpcd/dist/src/script.h
U src/external/bsd/dhcpcd/dist/src/auth.h
U src/external/bsd/dhcpcd/dist/src/dhcp.h
U src/external/bsd/dhcpcd/dist/src/ipv4.h
U src/external/bsd/dhcpcd/dist/src/bpf.h
U src/external/bsd/dhcpcd/dist/src/arp.h
U src/external/bsd/dhcpcd/dist/src/ipv4ll.h
U src/external/bsd/dhcpcd/dist/src/ipv6.h
U src/external/bsd/dhcpcd/dist/src/ipv6nd.h
U src/external/bsd/dhcpcd/dist/src/dhcp6.h
U src/external/bsd/dhcpcd/dist/src/dhcpcd-embedded.h
U src/external/bsd/dhcpcd/dist/src/privsep.h
U src/external/bsd/dhcpcd/dist/src/privsep-root.h
U src/external/bsd/dhcpcd/dist/src/privsep-control.h
U src/external/bsd/dhcpcd/dist/src/privsep-inet.h
U src/external/bsd/dhcpcd/dist/src/privsep-bpf.h
U src/external/bsd/dhcpcd/dist/src/dev.h
U src/external/bsd/dhcpcd/dist/src/dhcpcd.conf.5.in
U src/external/bsd/dhcpcd/dist/src/dhcpcd.8.in
U src/external/bsd/dhcpcd/dist/src/dhcpcd.conf
U src/external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.in
U src/external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.8.in
U src/external/bsd/dhcpcd/dist/hooks/01-test
U src/external/bsd/dhcpcd/dist/hooks/10-wpa_supplicant
U src/external/bsd/dhcpcd/dist/hooks/15-timezone
U src/external/bsd/dhcpcd/dist/hooks/20-resolv.conf
U src/external/bsd/dhcpcd/dist/hooks/29-lookup-hostname
U src/external/bsd/dhcpcd/dist/hooks/30-hostname.in
U src/external/bsd/dhcpcd/dist/hooks/50-ntp.conf
U src/external/bsd/dhcpcd/dist/hooks/50-ypbind.in

10 conflicts created by this import.
Use the following command to help the merge:

cvs checkout -jROY:yesterday -jROY src/external/bsd/dhcpcd/dist



CVS commit: src/usr.bin/make

2020-10-05 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Oct  5 15:43:32 UTC 2020

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

Log Message:
make(1): split ParseDoSrc into smaller functions


To generate a diff of this commit:
cvs rdiff -u -r1.362 -r1.363 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-10-05 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Oct  5 15:14:25 UTC 2020

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

Log Message:
make(1): replace GNode macros with inline functions

Curiously, this affects the size of the generated code: it gets smaller
than before.


To generate a diff of this commit:
cvs rdiff -u -r1.152 -r1.153 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-10-05 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon Oct  5 15:11:37 UTC 2020

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

Log Message:
make(1): allow easy creation of preprocessed source and assembler

To be used during development, to see how changes in the source code
affect the generated machine code.


To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/usr.bin/make/Makefile

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



CVS commit: src/share/misc

2020-10-05 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Mon Oct  5 14:54:51 UTC 2020

Modified Files:
src/share/misc: acronyms

Log Message:
NGPC


To generate a diff of this commit:
cvs rdiff -u -r1.307 -r1.308 src/share/misc/acronyms

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



CVS commit: src/share/man/man8

2020-10-05 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Mon Oct  5 14:54:25 UTC 2020

Modified Files:
src/share/man/man8: afterboot.8

Log Message:
bump date


To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/share/man/man8/afterboot.8

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



CVS commit: src/crypto/external/bsd/openssl

2020-10-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Oct  5 14:34:04 UTC 2020

Modified Files:
src/crypto/external/bsd/openssl/dist/crypto/bn: bn_print.c
src/crypto/external/bsd/openssl/dist/include/openssl: bn.h
src/crypto/external/bsd/openssl/lib/libcrypto: crypto.map

Log Message:
revert previous octal conversion code (broken and not worth it).


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/crypto/external/bsd/openssl/dist/crypto/bn/bn_print.c
cvs rdiff -u -r1.2 -r1.3 \
src/crypto/external/bsd/openssl/dist/include/openssl/bn.h
cvs rdiff -u -r1.10 -r1.11 \
src/crypto/external/bsd/openssl/lib/libcrypto/crypto.map

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



CVS commit: src/games/factor

2020-10-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Oct  5 14:31:30 UTC 2020

Modified Files:
src/games/factor: factor.c

Log Message:
revert previous and don't parse octal


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/games/factor/factor.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-05 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Oct  5 13:32:32 UTC 2020

Modified Files:
src/doc: HACKS

Log Message:
Update gdb/dwarf2expr.c hack for earmv7hf{,eb}; the situation does not
change even for GCC 9.3 with ``memcmp'' fix.


To generate a diff of this commit:
cvs rdiff -u -r1.211 -r1.212 src/doc/HACKS

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-05 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Oct  5 13:20:30 UTC 2020

Modified Files:
src/doc: HACKS

Log Message:
Update aes_ccm_tag() hack for m68k.

Even with ``memcmp fix'', GCC 9.4 miscompiles this function for -O[12].
But the situation was slightly changed from that with GCC 8.3:

* -O0 and -O1 work but -O2 fails for 68060 and 68040 (real hardware)
* -O0 and -O2 work but -O1 fails for 68020 and 68010 (TME)


To generate a diff of this commit:
cvs rdiff -u -r1.210 -r1.211 src/doc/HACKS

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



CVS commit: src/usr.sbin/sysinst

2020-10-05 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Oct  5 12:28:46 UTC 2020

Modified Files:
src/usr.sbin/sysinst: README.md_defs bsddisklabel.c
src/usr.sbin/sysinst/arch/amd64: md.h
src/usr.sbin/sysinst/arch/evbarm: md.h
src/usr.sbin/sysinst/arch/i386: md.h

Log Message:
Add a heuristic to detect and properly mark EFI system partitions
when re-using pre-existing partitions.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/usr.sbin/sysinst/README.md_defs
cvs rdiff -u -r1.48 -r1.49 src/usr.sbin/sysinst/bsddisklabel.c
cvs rdiff -u -r1.8 -r1.9 src/usr.sbin/sysinst/arch/amd64/md.h
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/sysinst/arch/evbarm/md.h
cvs rdiff -u -r1.7 -r1.8 src/usr.sbin/sysinst/arch/i386/md.h

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



CVS commit: src/games/factor

2020-10-05 Thread Tobias Nygren
Module Name:src
Committed By:   tnn
Date:   Mon Oct  5 12:22:49 UTC 2020

Modified Files:
src/games/factor: factor.c

Log Message:
factor: usage(): mark __dead


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/games/factor/factor.c

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



CVS commit: src/crypto/external/bsd/openssl/lib/libcrypto

2020-10-05 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Mon Oct  5 11:29:36 UTC 2020

Modified Files:
src/crypto/external/bsd/openssl/lib/libcrypto: crypto.map

Log Message:
Whitespace nit.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 \
src/crypto/external/bsd/openssl/lib/libcrypto/crypto.map

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-05 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Oct  5 10:44:09 UTC 2020

Modified Files:
src/doc: HACKS

Log Message:
Remove -fno-omit-frame-pointer hack for sun2 kernel.


To generate a diff of this commit:
cvs rdiff -u -r1.209 -r1.210 src/doc/HACKS

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



CVS commit: src/sys/arch/sun2/conf

2020-10-05 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Oct  5 10:42:53 UTC 2020

Modified Files:
src/sys/arch/sun2/conf: Makefile.sun2

Log Message:
Kernel without -fno-omit-frame-pointer works fine now, both for GCC8 and 9.
Not sure which commit ``fixed'' the problem although...


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/sun2/conf/Makefile.sun2

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



CVS commit: src/sys/netipsec

2020-10-05 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Mon Oct  5 09:51:25 UTC 2020

Modified Files:
src/sys/netipsec: xform_esp.c

Log Message:
Make sequence number of esp header MP-safe for IPsec Tx side. reviewed by 
ozaki-r@n.o

In IPsec Tx side, one Security Association can be used by multiple CPUs.
On the other hand, in IPsec Rx side, one Security Association is used
by only one CPU.

XXX pullup-{8,9}


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 src/sys/netipsec/xform_esp.c

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



CVS commit: src/external/mit/xorg/lib/fontconfig/etc

2020-10-05 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Mon Oct  5 09:16:53 UTC 2020

Modified Files:
src/external/mit/xorg/lib/fontconfig/etc: fonts.conf

Log Message:
fix indentation


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/mit/xorg/lib/fontconfig/etc/fonts.conf

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



CVS commit: src/external/mit/xorg/lib/fontconfig/etc

2020-10-05 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Mon Oct  5 09:16:26 UTC 2020

Modified Files:
src/external/mit/xorg/lib/fontconfig/etc: fonts.conf

Log Message:
Adjust the default fontconfig fonts.conf to avoid selecting bitmap
fonts included as part of X11 that are also included as scalable fonts
as part of macOS.

Many websites will attempt to select these fonts, which results in
very strange, poor quality rendering.

This should keep legacy X11 applications that want the old "Helvetica"
and "Times" fonts working, but prevent them from being selected by
applications that want scalable fonts.

It should not prevent "Helvetica" or "Times" from being selected
if the user installs a scalable version.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/mit/xorg/lib/fontconfig/etc/fonts.conf

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



CVS commit: src/sys/sys

2020-10-05 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Mon Oct  5 08:38:18 UTC 2020

Modified Files:
src/sys/sys: socketvar.h

Log Message:
soreadable() should consider so_rerror


To generate a diff of this commit:
cvs rdiff -u -r1.160 -r1.161 src/sys/sys/socketvar.h

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