CVS commit: src/sys/conf
Module Name:src Committed By: mrg Date: Fri Jan 1 08:02:16 UTC 2021 Modified Files: src/sys/conf: copyright Log Message: welcome 2021. YES. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/sys/conf/copyright Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/xlint/lint1
Module Name:src Committed By: rillig Date: Fri Jan 1 09:11:40 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c emit1.c func.c Log Message: lint: replace some more LERROR with lint_assert To generate a diff of this commit: cvs rdiff -u -r1.91 -r1.92 src/usr.bin/xlint/lint1/decl.c cvs rdiff -u -r1.29 -r1.30 src/usr.bin/xlint/lint1/emit1.c cvs rdiff -u -r1.40 -r1.41 src/usr.bin/xlint/lint1/func.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/xlint/lint1
Module Name:src Committed By: rillig Date: Fri Jan 1 09:28:22 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y decl.c emit1.c scan.l Log Message: lint: replace simple LERROR with lint_assert To generate a diff of this commit: cvs rdiff -u -r1.123 -r1.124 src/usr.bin/xlint/lint1/cgram.y cvs rdiff -u -r1.92 -r1.93 src/usr.bin/xlint/lint1/decl.c cvs rdiff -u -r1.30 -r1.31 src/usr.bin/xlint/lint1/emit1.c cvs rdiff -u -r1.106 -r1.107 src/usr.bin/xlint/lint1/scan.l Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/doc
Module Name:src Committed By: ryo Date: Fri Jan 1 10:12:25 UTC 2021 Modified Files: src/doc: CHANGES Log Message: evbarm: Add support for Amlogic G12 family SoCs To generate a diff of this commit: cvs rdiff -u -r1.2773 -r1.2774 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/usr.bin/xlint/lint1
Module Name:src Committed By: rillig Date: Fri Jan 1 10:55:28 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y externs1.h func.c Log Message: lint: split label handling into separate functions The only thing these cases have in common is the name "label" and the "reached = 1" assignment. That's not reason enough to combine completely unrelated functions. To generate a diff of this commit: cvs rdiff -u -r1.124 -r1.125 src/usr.bin/xlint/lint1/cgram.y cvs rdiff -u -r1.42 -r1.43 src/usr.bin/xlint/lint1/externs1.h cvs rdiff -u -r1.41 -r1.42 src/usr.bin/xlint/lint1/func.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/xlint/lint1
Module Name:src Committed By: rillig Date: Fri Jan 1 11:01:03 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: func.c Log Message: lint: extract main part of case_label into separate function To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/usr.bin/xlint/lint1/func.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/xlint/lint1
Module Name:src Committed By: rillig Date: Fri Jan 1 11:09:41 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y func.c scan.l tree.c Log Message: lint: rename tokens for left and right parentheses To generate a diff of this commit: cvs rdiff -u -r1.125 -r1.126 src/usr.bin/xlint/lint1/cgram.y cvs rdiff -u -r1.43 -r1.44 src/usr.bin/xlint/lint1/func.c cvs rdiff -u -r1.107 -r1.108 src/usr.bin/xlint/lint1/scan.l cvs rdiff -u -r1.111 -r1.112 src/usr.bin/xlint/lint1/tree.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/xlint/lint1
Module Name:src Committed By: rillig Date: Fri Jan 1 11:14:06 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: func.c Log Message: lint: complete message 203 for case labels To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/usr.bin/xlint/lint1/func.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/xlint/lint1
Module Name:src Committed By: rillig Date: Fri Jan 1 11:41:01 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y check-msgs.lua decl.c func.c init.c tree.c Log Message: lint: add missing redundant messages in source code To generate a diff of this commit: cvs rdiff -u -r1.126 -r1.127 src/usr.bin/xlint/lint1/cgram.y cvs rdiff -u -r1.3 -r1.4 src/usr.bin/xlint/lint1/check-msgs.lua cvs rdiff -u -r1.93 -r1.94 src/usr.bin/xlint/lint1/decl.c cvs rdiff -u -r1.45 -r1.46 src/usr.bin/xlint/lint1/func.c cvs rdiff -u -r1.49 -r1.50 src/usr.bin/xlint/lint1/init.c cvs rdiff -u -r1.112 -r1.113 src/usr.bin/xlint/lint1/tree.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/rockchip
Module Name:src Committed By: jmcneill Date: Fri Jan 1 11:44:41 UTC 2021 Modified Files: src/sys/arch/arm/rockchip: rk_i2s.c Log Message: rk_i2s.c To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/arch/arm/rockchip/rk_i2s.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/xlint
Module Name:src Committed By: rillig Date: Fri Jan 1 11:51:15 UTC 2021 Modified Files: src/usr.bin/xlint/common: lint.h src/usr.bin/xlint/lint1: decl.c scan.l src/usr.bin/xlint/lint2: read.c Log Message: lint: remove NTSPEC from enum tspec_t The number of elements in an enumeration is not a valid enum constant of that enumeration itself. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/usr.bin/xlint/common/lint.h cvs rdiff -u -r1.94 -r1.95 src/usr.bin/xlint/lint1/decl.c cvs rdiff -u -r1.108 -r1.109 src/usr.bin/xlint/lint1/scan.l cvs rdiff -u -r1.34 -r1.35 src/usr.bin/xlint/lint2/read.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/amlogic
Module Name:src Committed By: jmcneill Date: Fri Jan 1 11:51:47 UTC 2021 Modified Files: src/sys/arch/arm/amlogic: mesongx_mmc.c Log Message: #define To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/arm/amlogic/mesongx_mmc.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/xlint
Module Name:src Committed By: rillig Date: Fri Jan 1 11:58:03 UTC 2021 Modified Files: src/usr.bin/xlint/common: lint.h src/usr.bin/xlint/lint1: tree.c src/usr.bin/xlint/lint2: chk.c Log Message: lint: rename styp and utyp To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/usr.bin/xlint/common/lint.h cvs rdiff -u -r1.113 -r1.114 src/usr.bin/xlint/lint1/tree.c cvs rdiff -u -r1.29 -r1.30 src/usr.bin/xlint/lint2/chk.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/amlogic
Module Name:src Committed By: jmcneill Date: Fri Jan 1 11:58:21 UTC 2021 Modified Files: src/sys/arch/arm/amlogic: mesongx_mmc.c Log Message: Use symbolic names for hwtype values. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/amlogic/mesongx_mmc.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/sys/arch/aarch64/aarch64
Module Name:src Committed By: martin Date: Fri Jan 1 12:31:19 UTC 2021 Modified Files: src/sys/arch/aarch64/aarch64 [netbsd-9]: trap.c Log Message: Pull up following revision(s) (requested by rin in ticket #1169): sys/arch/aarch64/aarch64/trap.c: revision 1.21 sys/arch/aarch64/aarch64/trap.c: revision 1.26 PR port-arm/54702 Add support for earmv6hf binaries on COMPAT_NETBSD32 for aarch64: - Emulate ARMv6 instructions with cache operations register (c7), that are deprecated since ARMv7, and disabled on ARMv8 with LP64 kernel. Many thanks to ryo@ for helping me to add support of Thumb-mode, as well as providing exhaustive test cases: https://github.com/ryo/mcr_test/ We've confirmed: - Emulation works in Thumb-mode. - T32 16-bit length illegal instruction results in SIGILL, even if it is located nearby a boundary b/w mapped and unmapped pages. - T32 32-bit instruction results in SIGSEGV if it is located across a boundary b/w mapped and unmapped pages. When emulating obsoleted arm32 instructions, use ufetch(9) rather than dereference tf_pc directly to retrieve an instruction. Even if tf_pc is valid when processor decodes the instruction, someone can unmap its page before tf_pc is read in the exception handler. Now, SIGSEGV is delivered correctly to the process in this case, rather than kernel panic. Pointed out by maxv. Discussed with ryo and skrll. To generate a diff of this commit: cvs rdiff -u -r1.17.4.2 -r1.17.4.3 src/sys/arch/aarch64/aarch64/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/sys/arch/aarch64/aarch64
Module Name:src Committed By: martin Date: Fri Jan 1 12:38:50 UTC 2021 Modified Files: src/sys/arch/aarch64/aarch64 [netbsd-9]: cpufunc.c pmap.c Log Message: Pull up following revision(s) (requested by rin in ticket #1170): sys/arch/aarch64/aarch64/cpufunc.c: revision 1.22 (patch) sys/arch/aarch64/aarch64/cpufunc.c: revision 1.23 (patch) sys/arch/aarch64/aarch64/pmap.c: revision 1.81 Set uvmexp.ncolors appropriately, which is required for some CPU models with VIPT icache. Otherwise, alias in virtual address results in inconsistent results, at least for applications that rewrite text of other process, e.g., GDB for arm32. Also, this hopefully fixes other unexpected failures due to alias. Confirmed that there's no observable regression in performance; difference in ``time make -j8'' for GENERIC64 kernel on BCM2837 with and without setting uvmexp.ncolors is within 0.1%. Thanks to ryo@ for discussion. Fix uvmexp.ncolors for some big.LITTLE configuration; it is uncertain which CPU is used as primary, and as a result, secondary CPUs can require larger number of colors. In order to solve this problem, update uvmexp.ncolors via uvm_page_recolor(9) when secondary CPUs are attached, as done for other ports like x86. Pointed out by jmcneill@, and discussed on port-arm@: http://mail-index.netbsd.org/port-arm/2020/07/03/msg006837.html Tested and OK'd by ryo@. Fix previous; add missing include. To generate a diff of this commit: cvs rdiff -u -r1.5.4.1 -r1.5.4.2 src/sys/arch/aarch64/aarch64/cpufunc.c cvs rdiff -u -r1.41.2.6 -r1.41.2.7 src/sys/arch/aarch64/aarch64/pmap.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/sys/arch/aarch64/aarch64
Module Name:src Committed By: martin Date: Fri Jan 1 12:54:08 UTC 2021 Modified Files: src/sys/arch/aarch64/aarch64 [netbsd-9]: pmap.c Log Message: Pull up following revision(s) (requested by rin in ticket #1171): sys/arch/aarch64/aarch64/pmap.c: revision 1.82 sys/arch/aarch64/aarch64/pmap.c: revision 1.83 pmap_procwr(): sync icache even if p != curproc. This fixes applications like GDB for arm32, that rewrite text of other process. Thanks to ryo@ for discussion. Use tlen for temporary length variable instead of l, which is usually used for struct lwp *. No binary changes. To generate a diff of this commit: cvs rdiff -u -r1.41.2.7 -r1.41.2.8 src/sys/arch/aarch64/aarch64/pmap.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/sys/arch/aarch64
Module Name:src Committed By: martin Date: Fri Jan 1 12:58:36 UTC 2021 Modified Files: src/sys/arch/aarch64/aarch64 [netbsd-9]: netbsd32_machdep.c trap.c src/sys/arch/aarch64/include [netbsd-9]: netbsd32_machdep.h ptrace.h Log Message: Pull up following revision(s) (requested by rin in ticket #1172): sys/arch/aarch64/aarch64/trap.c: revision 1.30 sys/arch/aarch64/include/ptrace.h: revision 1.10 sys/arch/aarch64/include/netbsd32_machdep.h: revision 1.4 (patch) sys/arch/aarch64/aarch64/netbsd32_machdep.c: revision 1.14 sys/arch/aarch64/aarch64/netbsd32_machdep.c: revision 1.15 Add support of ptrace(2) for COMPAT_NETBSD32. Now, GDB for arm32 is usable for debugging 32bit applications. OK ryo@ For rev 1.14 and before, netbsd32_process_write_regs() returns EINVAL if non-modifiable bits are set in CPSR. Instead, mask out non-modifiable bits and make this function success regardless of value in CPSR. New behavior matches that of arm: https://nxr.netbsd.org/xref/src/sys/arch/arm/arm/process_machdep.c#187 This fixes lib/libc/sys/t_ptrace_wait*:access_regs6 tests, in which register contents retrieved by PT_GETREGS are set back by PT_SETREGS. No new regression is observed in full ATF run. OK ryo To generate a diff of this commit: cvs rdiff -u -r1.7.2.1 -r1.7.2.2 \ src/sys/arch/aarch64/aarch64/netbsd32_machdep.c cvs rdiff -u -r1.17.4.3 -r1.17.4.4 src/sys/arch/aarch64/aarch64/trap.c cvs rdiff -u -r1.2 -r1.2.4.1 src/sys/arch/aarch64/include/netbsd32_machdep.h cvs rdiff -u -r1.9 -r1.9.2.1 src/sys/arch/aarch64/include/ptrace.h 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/kern
Module Name:src Committed By: martin Date: Fri Jan 1 13:04:08 UTC 2021 Modified Files: src/sys/kern [netbsd-9]: core_elf32.c Log Message: Pull up following revision(s) (requested by rin in ticket #1173): sys/kern/core_elf32.c: revision 1.65 (patch) Use correct note types for register storage in 32-bit core files for architecture on which 64- and 32-bit ABIs use different values for PT_GET{,FP}REGS, i.e., aarch64{,eb}. Now, 32-bit GDB works fine for core files generated by aarch64{,eb} kernel. Should be no functional changes for ports other than aarch64{,eb}. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.58.4.1 src/sys/kern/core_elf32.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/sys/arch/aarch64/aarch64
Module Name:src Committed By: martin Date: Fri Jan 1 13:06:39 UTC 2021 Modified Files: src/sys/arch/aarch64/aarch64 [netbsd-9]: vm_machdep.c Log Message: Pull up following revision(s) (requested by rin in ticket #1174): sys/arch/aarch64/aarch64/vm_machdep.c: revision 1.9 (patch) Fix clone(2) for COMPAT_NETBSD32. (1) Set r13 (sp for arm32 processes) appropriately when stack is specified to fork1(). (2) For arm32 processes, align stack to 8-byte boundary, instead of 16-byte for native aarch64 processes, to match our 32-bit ABI: https://nxr.netbsd.org/xref/src/sys/arch/arm/arm32/vm_machdep.c#150 Note that sp alignment checking is disabled in aarch32 mode, and this works fine with AARCH64_EL0_STACK_ALIGNMENT_CHECK option. OK ryo To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.5.4.1 src/sys/arch/aarch64/aarch64/vm_machdep.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/sys/arch/aarch64/aarch64
Module Name:src Committed By: martin Date: Fri Jan 1 13:14:29 UTC 2021 Modified Files: src/sys/arch/aarch64/aarch64 [netbsd-9]: trap.c Log Message: Pull up following revision(s) (requested by rin in ticket #1175): sys/arch/aarch64/aarch64/trap.c: revision 1.28,1.31,1.32 (patch) - add support conditionally execution for A32 instruction emulation - separated the processing of ARM and THUMB emul clearly. do not confuse the Thumb-32bit instruction with the ARM instruction. - use far_el1 instead of tf_pc to return correct fault address when instruction emulation To generate a diff of this commit: cvs rdiff -u -r1.17.4.4 -r1.17.4.5 src/sys/arch/aarch64/aarch64/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/sys/ufs/ufs
Module Name:src Committed By: martin Date: Fri Jan 1 13:17:08 UTC 2021 Modified Files: src/sys/ufs/ufs [netbsd-9]: ufs_quota1.c Log Message: Pull up following revision(s) (requested by nia in ticket #1176): sys/ufs/ufs/ufs_quota1.c: revision 1.23 Avoid potentially accessing an array with an index out of range. To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.22.22.1 src/sys/ufs/ufs/ufs_quota1.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
Module Name:src Committed By: martin Date: Fri Jan 1 13:19:03 UTC 2021 Modified Files: src/doc [netbsd-9]: CHANGES-9.2 Log Message: Tickets #1167, #1169 - #1176 To generate a diff of this commit: cvs rdiff -u -r1.1.2.29 -r1.1.2.30 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-8] src/sys/ufs/ufs
Module Name:src Committed By: martin Date: Fri Jan 1 13:19:58 UTC 2021 Modified Files: src/sys/ufs/ufs [netbsd-8]: ufs_quota1.c Log Message: Pull up following revision(s) (requested by nia in ticket #1645): sys/ufs/ufs/ufs_quota1.c: revision 1.23 Avoid potentially accessing an array with an index out of range. To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.22.10.1 src/sys/ufs/ufs/ufs_quota1.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
Module Name:src Committed By: martin Date: Fri Jan 1 13:21:11 UTC 2021 Modified Files: src/doc [netbsd-8]: CHANGES-8.3 Log Message: Ticket #1645 To generate a diff of this commit: cvs rdiff -u -r1.1.2.64 -r1.1.2.65 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: src/usr.bin/xlint/lint1
Module Name:src Committed By: kre Date: Fri Jan 1 13:43:34 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: Build breakage fix (hopefully) - brain dead gcc. NFCI. To generate a diff of this commit: cvs rdiff -u -r1.95 -r1.96 src/usr.bin/xlint/lint1/decl.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
Module Name:src Committed By: riastradh Date: Fri Jan 1 14:04:17 UTC 2021 Modified Files: src/sys/kern: subr_lockdebug.c Log Message: Nix trailing whitespace. To generate a diff of this commit: cvs rdiff -u -r1.77 -r1.78 src/sys/kern/subr_lockdebug.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
Module Name:src Committed By: riastradh Date: Fri Jan 1 14:08:33 UTC 2021 Modified Files: src/sys/kern: subr_lockdebug.c Log Message: Use printf, not printf_nolog, in lockdebug dumps. Otherwise we get no diagnostic information in crash dumps or dmesg, which really puts a damper on the utility of lockdebug. (If there's a reason for printf_nolog instead of printf, it should be documented in comments here, and it had better be a pretty good reason for destroying the diagnostic information that is half the point of lockdebug.) To generate a diff of this commit: cvs rdiff -u -r1.78 -r1.79 src/sys/kern/subr_lockdebug.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/xlint/lint1
Module Name:src Committed By: rillig Date: Fri Jan 1 14:11:20 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: combine duplicate case branches in popdecl This works around GCC 9, which didn't see that the following statement cannot terminate normally, even though 0 is obviously a constant expression and assert_failed is marked as __attribute__((__noreturn__)). do { if (!(0)) assert_failed(...); } while (0) To generate a diff of this commit: cvs rdiff -u -r1.96 -r1.97 src/usr.bin/xlint/lint1/decl.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/xlint/lint1
Module Name:src Committed By: rillig Date: Fri Jan 1 14:51:44 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: Makefile Log Message: lint: remove custom LINTFLAGS These flags are missing the options -g (GNUisms) and -S (C9X mode). Without these flags, NetBSD's system headers cannot be compiled as they make heavy use of __inline and __attribute__. To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/usr.bin/xlint/lint1/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/bsd/wpa/dist/src/drivers
Module Name:src Committed By: roy Date: Fri Jan 1 14:57:14 UTC 2021 Modified Files: src/external/bsd/wpa/dist/src/drivers: driver_bsd.c Log Message: wpa: If route socket overflows, sync drivers to system interfaces Messages such as RTM_IFNFO or RTM_IFANNOUNCE could have been lost. As such, sync the state of our internal driver to the state of the system interfaces as reported by getifaddrs(2). This change requires the routing socket be placed in non-blocking mode. While here, set the routing and inet sockets to close on exec. To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/external/bsd/wpa/dist/src/drivers/driver_bsd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src
Module Name:src Committed By: rillig Date: Fri Jan 1 16:50:47 UTC 2021 Modified Files: src/distrib/sets/lists/tests: mi src/tests/usr.bin/xlint/lint1: Makefile t_integration.sh src/usr.bin/xlint/lint1: init.c Added Files: src/tests/usr.bin/xlint/lint1: d_init_pop_member.c d_init_pop_member.exp Log Message: lint: demonstrate bug in handling of nested C9X struct initializers To generate a diff of this commit: cvs rdiff -u -r1.1005 -r1.1006 src/distrib/sets/lists/tests/mi cvs rdiff -u -r1.23 -r1.24 src/tests/usr.bin/xlint/lint1/Makefile cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/xlint/lint1/d_init_pop_member.c \ src/tests/usr.bin/xlint/lint1/d_init_pop_member.exp cvs rdiff -u -r1.16 -r1.17 src/tests/usr.bin/xlint/lint1/t_integration.sh cvs rdiff -u -r1.50 -r1.51 src/usr.bin/xlint/lint1/init.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/ntp/dist/ntpd
Module Name:src Committed By: roy Date: Fri Jan 1 17:21:47 UTC 2021 Modified Files: src/external/bsd/ntp/dist/ntpd: ntp_io.c Log Message: ntpd: In the event of route(4) overflow, update the interfaces To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/external/bsd/ntp/dist/ntpd/ntp_io.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src
Module Name:src Committed By: rillig Date: Fri Jan 1 19:11:20 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: d_init_pop_member.c d_init_pop_member.exp src/usr.bin/xlint/lint1: init.c Log Message: lint: fix wrong warning about bitfield in C99 structure initialization The variable namemem is supposed to be a circular list, which is "documented" implicitly in push_member. The implementation was buggy though. In pop_member, the circular list was destroyed though. Given the list (capital, major, favorite_color, green), removing capital made major point to itself in the forward direction, even though it should not have been modified at all. In the test, I had been too optimistic to quickly understand the code around variable initialization. I was wrong though, so I had to adjust the comments there to reality. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/d_init_pop_member.c \ src/tests/usr.bin/xlint/lint1/d_init_pop_member.exp cvs rdiff -u -r1.51 -r1.52 src/usr.bin/xlint/lint1/init.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/xlint/lint1
Module Name:src Committed By: rillig Date: Fri Jan 1 19:15:58 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c lint1.h Log Message: lint: un-export struct istk To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 src/usr.bin/xlint/lint1/init.c cvs rdiff -u -r1.45 -r1.46 src/usr.bin/xlint/lint1/lint1.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/xlint/lint1
Module Name:src Committed By: rillig Date: Fri Jan 1 19:28:51 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: document that C99-style initialization is necessarily buggy To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/usr.bin/xlint/lint1/init.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/xlint/lint1
Module Name:src Committed By: rillig Date: Fri Jan 1 20:02:56 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: add debug logging for initialization using named members To generate a diff of this commit: cvs rdiff -u -r1.54 -r1.55 src/usr.bin/xlint/lint1/init.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/unbound/include
Module Name:src Committed By: roy Date: Fri Jan 1 20:16:16 UTC 2021 Modified Files: src/external/bsd/unbound/include: config.h Log Message: libunbound: actually use libevent as we link to it Would appreciate if people modify this file to actually test what polling mechanism unbound uses as select(2) is pretty poor. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/external/bsd/unbound/include/config.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/bsd/unbound/lib/libunbound
Module Name:src Committed By: roy Date: Fri Jan 1 20:38:36 UTC 2021 Modified Files: src/external/bsd/unbound/lib/libunbound: Makefile Log Message: libunbound: Now we use libevent, don't build mini_event or winsock_event. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/external/bsd/unbound/lib/libunbound/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/unit-tests
Module Name:src Committed By: sjg Date: Fri Jan 1 23:07:49 UTC 2021 Modified Files: src/usr.bin/make/unit-tests: var-op-expand.mk Log Message: var-op-expand needs MAKE.SAVE_DOLLARS=yes To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/usr.bin/make/unit-tests/var-op-expand.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/bsd/unbound/lib/libunbound
Module Name:src Committed By: roy Date: Fri Jan 1 23:17:15 UTC 2021 Modified Files: src/external/bsd/unbound/lib/libunbound: Makefile Log Message: Revert prior With the correct #defines mini_event.c and winsock_event.c are compiled but practically unused. What is exposed is not part of the public API, but appease the peanut gallery. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/external/bsd/unbound/lib/libunbound/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/bsd/unbound/dist/util
Module Name:src Committed By: roy Date: Fri Jan 1 23:24:31 UTC 2021 Modified Files: src/external/bsd/unbound/dist/util: mini_event.c Log Message: libunbound: Enforce that mini_event isn't used by include/config.h As I tire of fixing it to use libevent. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/external/bsd/unbound/dist/util/mini_event.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/xlint
Module Name:src Committed By: rillig Date: Sat Jan 2 01:06:15 UTC 2021 Modified Files: src/usr.bin/xlint/common: lint.h src/usr.bin/xlint/lint1: init.c lint1.h op.h scan.l src/usr.bin/xlint/lint2: lint2.h Log Message: lint: use bool instead of u_int:1 in structures Better late than never. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/usr.bin/xlint/common/lint.h cvs rdiff -u -r1.55 -r1.56 src/usr.bin/xlint/lint1/init.c cvs rdiff -u -r1.46 -r1.47 src/usr.bin/xlint/lint1/lint1.h cvs rdiff -u -r1.7 -r1.8 src/usr.bin/xlint/lint1/op.h cvs rdiff -u -r1.109 -r1.110 src/usr.bin/xlint/lint1/scan.l cvs rdiff -u -r1.11 -r1.12 src/usr.bin/xlint/lint2/lint2.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/xlint/lint1
Module Name:src Committed By: rillig Date: Sat Jan 2 01:12:39 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: check-msgs.lua Log Message: lint: fix typo in check-msgs tool To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/usr.bin/xlint/lint1/check-msgs.lua Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/xlint/common
Module Name:src Committed By: rillig Date: Sat Jan 2 01:36:28 UTC 2021 Modified Files: src/usr.bin/xlint/common: tyname.c Log Message: lint: order tspec_name in the same way as the enum To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/usr.bin/xlint/common/tyname.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
Module Name:src Committed By: rin Date: Sat Jan 2 02:13:42 UTC 2021 Modified Files: src/sys/kern: core_elf32.c Log Message: Use instead of , which is not intended for standalone use. Compile tested for all ports with their own COMPAT_NETBSD32 codes: aarch64, amd64, arm, mips64, sparc64, and algor64. Should fix build failure for mips64 in netbsd-9, where netbsd32.h is not included by other header files. To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/sys/kern/core_elf32.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/wscons
Module Name:src Committed By: macallan Date: Sat Jan 2 03:00:56 UTC 2021 Modified Files: src/sys/dev/wscons: wsdisplay_vcons.c Log Message: be more careful when optimizing stretches of blanks into erasecols() now testpat's output is redrawn properly To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/sys/dev/wscons/wsdisplay_vcons.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/games
Module Name:src Committed By: nat Date: Sat Jan 2 03:21:39 UTC 2021 Modified Files: src/games: Makefile Added Files: src/games/testpat: Makefile testpat.6 testpat.c Log Message: Add testpat(6) to games. Testpat displays a test pattern in curses(3). To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/games/Makefile cvs rdiff -u -r0 -r1.1 src/games/testpat/Makefile src/games/testpat/testpat.6 \ src/games/testpat/testpat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/sets/lists/games
Module Name:src Committed By: nat Date: Sat Jan 2 03:24:02 UTC 2021 Modified Files: src/distrib/sets/lists/games: mi Log Message: Add testpat(6) to the games set. To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 src/distrib/sets/lists/games/mi Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/sets/lists/debug
Module Name:src Committed By: nat Date: Sat Jan 2 03:41:07 UTC 2021 Modified Files: src/distrib/sets/lists/debug: mi Log Message: Update the debug set for testpat(6). To generate a diff of this commit: cvs rdiff -u -r1.345 -r1.346 src/distrib/sets/lists/debug/mi Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/xlint
Module Name:src Committed By: rillig Date: Sat Jan 2 03:49:26 UTC 2021 Modified Files: src/usr.bin/xlint/common: externs.h tyname.c src/usr.bin/xlint/lint1: decl.c init.c tree.c src/usr.bin/xlint/lint2: chk.c Log Message: lint: fix buffer truncation for type names Previously, most type names had been cut off after 63 significant characters. In some cases, 127 characters survived, or 255. And for the debugging messages, sometimes even 1023. This inconsistency was useless. It was wrong in the first place to make the caller of the function tyname responsible for handling the buffer. That's not something a caller of such a simple function should do. These callers have better things to do. The API of the new function type_name is as simple as possible. In the implementation, the name of the type is generated anew each time. I just didn't know whether the type details could change, once the type is initialized, and I didn't want to find out. To be on the safe side, the resulting type name is cached, independently of the type it was generated for. Using a trivial, unbalanced binary tree should be good enough for now. All this work is necessary to support adding new debug logging, without being distracted by irrelevant implementation details such as these buffer sizes. Adding new debug messages should be fun and easy; up to now, it was overly bureaucratic. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/usr.bin/xlint/common/externs.h cvs rdiff -u -r1.19 -r1.20 src/usr.bin/xlint/common/tyname.c cvs rdiff -u -r1.97 -r1.98 src/usr.bin/xlint/lint1/decl.c cvs rdiff -u -r1.56 -r1.57 src/usr.bin/xlint/lint1/init.c cvs rdiff -u -r1.114 -r1.115 src/usr.bin/xlint/lint1/tree.c cvs rdiff -u -r1.30 -r1.31 src/usr.bin/xlint/lint2/chk.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.