Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge FreeBSD 2024-05-17 #2208

Merged
merged 255 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
255 commits
Select commit Hold shift + click to select a range
3d966ae
nvmecontrol: Appease a meaningless signed error warning thing
bsdimp May 11, 2024
9bcc1b1
/bin/rmdir: Exit with status 2 for invalid arguments
hhartzer May 10, 2024
64e05e9
usb: Fix quirks list
VexedUXR Apr 20, 2024
881ae76
usb: Remove uneeded revision verbosity from quirks list
VexedUXR Apr 20, 2024
099a81a
linprocfs: Add support for proc/sysvipc/{msg,sem,shm}
ricardobranco777 May 4, 2024
c5f906d
linux: Make module standalone-buildable
bsdimp May 11, 2024
02f481a
linprocfs: Fix i386 time type
bsdimp May 11, 2024
e934040
cdev_pager_allocate(): ensure that the cdev_pager_ops ctr is called o…
kostikbel May 7, 2024
6d79564
devfs_allocv(): style
kostikbel May 7, 2024
ee2e366
linprocfs: Really fix time_t type issue
bsdimp May 12, 2024
78e4dbc
ipfw: Fix a typo in a source code comment
gbergling May 12, 2024
71ffda4
Revert linprocfs commits
bsdimp May 12, 2024
47535ba
bsdinstall: Remove unused variables in fetchmissingdists
fernape Oct 26, 2023
94b09d3
arm64: map kernel using large pages when page size is 16K
alcriceedu May 11, 2024
be04fec
Import _FORTIFY_SOURCE implementation from NetBSD
kevans91 May 13, 2024
e555125
Prepare the system for _FORTIFY_SOURCE
kevans91 May 13, 2024
9bfd3b4
Add a build knob for _FORTIFY_SOURCE
kevans91 May 13, 2024
421025a
access.2: Mention that lstat(2) should be used for symbolic links
gbergling May 13, 2024
59a6666
if_ovpn: cope with loops
kprovost May 13, 2024
f3eeeb9
expand: Fix markup for the `-t` option.
dag-erling May 13, 2024
050555e
syscalls.master: allow vfork(2) in capsicum(4) capability mode
trasz May 13, 2024
b667c40
src.conf.5: regen after addition of _FORTIFY_SOURCE build knob
emaste May 13, 2024
8b06826
Fix the GCC build after _FORTIFY_SOURCE import
kevans91 May 13, 2024
6638384
syscalls: regen
oshogbo May 13, 2024
58d7ac1
tmpfs: recalculate OBJ_TMPFS_VREF on reinstantiating node' vnode
kostikbel May 6, 2024
6ada4e8
swap-like pagers: assert that writemapping decrease does not pass zero
kostikbel May 8, 2024
4681194
tmpfs_destroy_vobject(): clear v_object under the object lock
kostikbel May 12, 2024
e90259a
regen
oshogbo May 13, 2024
01fc488
nvme: Use strlcpy instead of strncpy to ensure termination
bsdjhb May 13, 2024
da4230a
nvme/f: Use strlcpy instead of strncpy + manual string termination
bsdjhb May 13, 2024
5a178b8
nvme: Add locking asserts
bsdimp May 13, 2024
9db8ca9
nvme: Slight reworking this loop to match FreeBSD style
bsdimp May 13, 2024
c931cf6
nvme: Slight simplification
bsdimp May 13, 2024
0dd84c3
nvme: Add comment about where tr->deadline is set
bsdimp May 13, 2024
0ed58ac
include: ssp: kill off leftover $FreeBSD$ tag
kevans91 May 13, 2024
dec211c
Stop removing ssp headers
kevans91 May 13, 2024
2735824
freebsd-tips: Add fortune to find font providing Unicode character
Jehops May 13, 2024
338d539
x86: Add Intel TD/HFI related MSR/CPUID defines to specialregs.h
koinec May 6, 2024
d9f1f0a
boottrace: Use NULL for SYSINIT's last arg, which is a pointer type
gmshake May 14, 2024
3c2ab5f
Import bmake-20240508
sgerraty May 14, 2024
b5a1f04
arm64_pmap: narrow scope of bti_same test
May 14, 2024
c9f4001
Merge bmake-20240508
sgerraty May 14, 2024
847ef59
ifconfig: Add format shortcuts.
dag-erling May 14, 2024
5681636
nuageinit: by default to not enable nuageinit
bapt May 14, 2024
b0b9435
pci_vendors: update to 2024.05.14
bapt May 14, 2024
79bffdf
usb_vendors: update to 2024.03.18
bapt May 14, 2024
54cc353
snd_hda: Add patch for Lenovo Ideapad 3
christosmarg May 14, 2024
2789533
snd_hda: Rename LENOVO_I* to LENOVO_IDEAPAD*
christosmarg May 14, 2024
305db91
sound: Remove ncards variable from sound_oss_card_info()
christosmarg May 14, 2024
887b277
ota: Import bsd-feature branch from 20240422 (31bb33a32f71)
bsdimp May 14, 2024
eb690a0
awk: Merge in bsd-feature branch of OTA from 20240422 (31bb33a32f71)
bsdimp May 14, 2024
05540e6
net80211: add the 802.11-2016 cipher list to the crypto array set.
Apr 22, 2024
98e8df9
net80211: add placeholder module names for the new ciphers
Apr 22, 2024
dcf6ab2
net80211: allow a single wlan crypto module to register for >1 cipher
Apr 22, 2024
c7f5f14
net80211: add initial key management suites from 802.11-2016, APIs to…
Apr 23, 2024
c6113ac
AMD CPUs: update bits and data from CPUID 0x8000_0008
kostikbel May 13, 2024
5af6fbd
ssp: appease -Wgnu-statement-expression-from-macro-expansion
kevans91 May 14, 2024
61dece6
Enable soft updates by default for UFS2 filesystems.
May 15, 2024
0c57cb2
Issue #237 : Resolver uses nameserver commented out in /etc/resolv.conf
wtoorop May 7, 2024
b5fb1f4
Issue #237 : Resolver uses nameserver commented out in /etc/resolv.conf
wtoorop May 7, 2024
a7beca6
atf: Guard against multiple evaluation.
dag-erling May 15, 2024
154ad8e
Revert "Issue #237 : Resolver uses nameserver commented out in /etc/r…
dag-erling May 15, 2024
4891157
Fix bug in upstream PR 238.
dag-erling May 15, 2024
3b092e4
ldns: Ignore commented-out lines in resolv.conf.
dag-erling May 15, 2024
46a619c
adduser: Additional variable fixes.
dag-erling May 15, 2024
42b28f8
ifconfig: Markup nits.
dag-erling May 15, 2024
ea3751f
freebsd-tips: Tweak fortune to find font providing Unicode character
Jehops May 15, 2024
fc59fc3
uart: Honour clock-frequency in FDT for UART_FDT_CLASS if present
jrtc27 May 15, 2024
d7adf3b
riscv: fix L0 PTE setup (Sv48)
mhorne May 15, 2024
5a061a3
vfs_domount_update(): style, use space instead of tab
kostikbel May 16, 2024
21ccdb4
vfs_domount_update(): postpone setting MNT_UNION until VFS_MOUNT() is…
kostikbel May 15, 2024
ae38a1a
linuxkpi: spinlock: Simplify code
evadot May 15, 2024
5c0a192
linuxkpi: rwlock: Simplify code
evadot May 15, 2024
abb1a13
linuxkpi: refcount: Use atomic_t directly
evadot May 15, 2024
be8846b
contrib/bsddialog: Import version 1.0.2
alfonsosiciliano May 16, 2024
a6d8be4
contrib/bsddialog: Import version 1.0.2
alfonsosiciliano May 16, 2024
1687d77
man filesystems: move driver pages to section four
concussious Apr 21, 2024
a03e8a4
man filesystems: ObsoleteFiles after move to sec 4
concussious May 12, 2024
1a720cb
man filesystems: fix xrefs after move to section 4
concussious May 15, 2024
d33b87e
netstat(1): increase width of Netif column
llfw May 8, 2024
ae9c0ba
netstat(8): for -W, use IFNAMSIZ
llfw May 14, 2024
304a032
sys/modules/dpdk_lpm4: do not build without INET
llfw May 15, 2024
1787871
bhyve: avoid resource leak
khorben May 13, 2024
f381173
ctladm: fix resource leak
khorben May 15, 2024
65fd76b
makeman: extend duplicate option warning to OPT_ options
emaste May 13, 2024
28a5910
linuxkpi: Provide a non-NULL value for THIS_MODULE
amshafer Mar 6, 2024
5372516
SysV SHM: move SHMSEG constants to sys/shm.h
kostikbel May 16, 2024
87a1565
SysV IPC: provide in-kernel helpers to obtain ipcs(8)-like information
kostikbel May 13, 2024
3cb6c6c
libcapsicum: document return values
oshogbo May 16, 2024
fcfb2d6
Merge commit 87f3407856e6 from llvm-project (by Phoebe Wang):
DimitryAndric May 16, 2024
7552991
Trim a spurious trailing backslash
bsdjhb May 16, 2024
cff79fd
linuxkpi: Fix spin_lock_init
evadot May 17, 2024
a7b222d
linuxkpi: rwlock: Fix rwlock_init
evadot May 17, 2024
06db20f
rtld: Add MD_OBJ_ENTRY to extend Struct_Obj_Entry
zxombie May 7, 2024
dd4155b
rtld: Add arch_digest_dynamic
zxombie May 7, 2024
d51fa0a
rtld: Add support for arm64 variant pcs
zxombie Apr 17, 2024
9e48c30
rtld: Add arm64 variant pcs tests
zxombie Apr 19, 2024
1cd90a2
rtld: Move powerpc specific code to powerpc files
zxombie May 13, 2024
d6d860c
arm64: Add MRS_REG_ALT_NAME ID register macros
zxombie May 13, 2024
cd36810
arm64: Use the _REG macros to read ID registers
zxombie May 13, 2024
2228d7c
Revert "rtld: Add arm64 variant pcs tests"
zxombie May 17, 2024
4660d96
arm64/vmm: Fix the build with GCC
zxombie May 16, 2024
2790ff2
dev/psci: Fix a function name
zxombie May 16, 2024
f7bdaa1
arm64: make SPE regs use ALT_NAME macro
zdleaf May 10, 2024
10b3eac
arm64: add PMBSR_MSS_{BSC,FSC} status code field
zdleaf Sep 20, 2023
4f8ba1c
arm64: add CONTEXTIDR_EL1 reg
zdleaf May 10, 2024
16d8dfd
aarch64: disable LIB32 with gcc
brooksdavis May 17, 2024
4c0dfd5
arm: fail early on gcc builds
brooksdavis May 17, 2024
d316de2
zfs: Avoid a gcc -Wint-to-pointer-cast warning
brooksdavis May 17, 2024
097bd33
uart: DBG2 support to find the debug uart
zxombie Mar 12, 2024
f715e95
arm: Add a missing interrupt to the generic timer
zxombie Jan 11, 2024
e72c417
arm: Use the correct irq when in the hypervisor
zxombie Jan 11, 2024
457fa0f
arm64: Support break and watch points in VHE
zxombie Mar 14, 2024
4ab122e
fib_dxr: check if cached fib_data matches the new request in dxr_init()
gornjas May 17, 2024
e9806d2
bhyve: avoid resource leak in error path
khorben May 16, 2024
19bd24c
fib_dxr: do not leak memory if FIB constellation hits structural limit
gornjas May 17, 2024
42b3c16
fib_dxr: code hygiene, prune old code, no functional changes
gornjas May 17, 2024
62adeb9
tpm: Add new tpm_bus.c to module Makefile
chmeeedalf May 17, 2024
25db7bd
libgcc_s: fix nonsense defines
brooksdavis May 17, 2024
f7d45c5
bhyve: avoid side effect in assertion
khorben May 17, 2024
1062db3
libcxxrt: allow build with gcc13 and --no-undefined-version
brooksdavis May 17, 2024
61ad1dd
Improve broken-on-gcc checks
brooksdavis May 17, 2024
cca3506
cxgbe(4): sc->port is indexed by port_id and not tx_chan.
np-2020 May 2, 2024
64a00f8
cxgbe(4): Consolidate all mk_set_tcb_field_ulp in one place.
np-2020 Apr 1, 2023
fb623aa
diff: honour -B flag with -q
emaste May 16, 2024
50bba03
arm64: add page-to-pte convenience macros
May 11, 2024
b3edfa9
tcp rack: improve handling of front states
tuexen May 11, 2024
1940baa
nvme: Add telemetry page definitions
bsdimp Apr 7, 2024
d514783
nvmecontrol: Implement telemetry-log command.
bsdimp Apr 8, 2024
e7ebde4
stand: Spell LUA_COMPILE_SET correctly.
bsdimp May 11, 2024
e1f4a4d
nvmecontrol: Appease a meaningless signed error warning thing
bsdimp May 11, 2024
c39034c
/bin/rmdir: Exit with status 2 for invalid arguments
hhartzer May 10, 2024
d422b16
usb: Fix quirks list
VexedUXR Apr 20, 2024
4b6f251
usb: Remove uneeded revision verbosity from quirks list
VexedUXR Apr 20, 2024
ae55575
linprocfs: Add support for proc/sysvipc/{msg,sem,shm}
ricardobranco777 May 4, 2024
5632639
linux: Make module standalone-buildable
bsdimp May 11, 2024
3edee2f
linprocfs: Fix i386 time type
bsdimp May 11, 2024
439743b
cdev_pager_allocate(): ensure that the cdev_pager_ops ctr is called o…
kostikbel May 7, 2024
470cbb8
devfs_allocv(): style
kostikbel May 7, 2024
b6cf5e4
linprocfs: Really fix time_t type issue
bsdimp May 12, 2024
825b225
ipfw: Fix a typo in a source code comment
gbergling May 12, 2024
502c94b
Revert linprocfs commits
bsdimp May 12, 2024
1a3b736
bsdinstall: Remove unused variables in fetchmissingdists
fernape Oct 26, 2023
b4f5ac5
arm64: map kernel using large pages when page size is 16K
alcriceedu May 11, 2024
56f274b
Import _FORTIFY_SOURCE implementation from NetBSD
kevans91 May 13, 2024
fcc658c
Prepare the system for _FORTIFY_SOURCE
kevans91 May 13, 2024
157e6ab
Add a build knob for _FORTIFY_SOURCE
kevans91 May 13, 2024
fcd13aa
access.2: Mention that lstat(2) should be used for symbolic links
gbergling May 13, 2024
781415e
if_ovpn: cope with loops
kprovost May 13, 2024
5620b7b
expand: Fix markup for the `-t` option.
dag-erling May 13, 2024
895d2ae
syscalls.master: allow vfork(2) in capsicum(4) capability mode
trasz May 13, 2024
4788eaa
src.conf.5: regen after addition of _FORTIFY_SOURCE build knob
emaste May 13, 2024
a9b4027
Fix the GCC build after _FORTIFY_SOURCE import
kevans91 May 13, 2024
d80942c
syscalls: regen
oshogbo May 13, 2024
dbb8a05
tmpfs: recalculate OBJ_TMPFS_VREF on reinstantiating node' vnode
kostikbel May 6, 2024
04cea98
swap-like pagers: assert that writemapping decrease does not pass zero
kostikbel May 8, 2024
be7cbea
tmpfs_destroy_vobject(): clear v_object under the object lock
kostikbel May 12, 2024
055d1ac
regen
oshogbo May 13, 2024
0d9aa18
nvme: Use strlcpy instead of strncpy to ensure termination
bsdjhb May 13, 2024
88f2a00
nvme/f: Use strlcpy instead of strncpy + manual string termination
bsdjhb May 13, 2024
1ff5337
nvme: Add locking asserts
bsdimp May 13, 2024
6520dcb
nvme: Slight reworking this loop to match FreeBSD style
bsdimp May 13, 2024
501493d
nvme: Slight simplification
bsdimp May 13, 2024
4283010
nvme: Add comment about where tr->deadline is set
bsdimp May 13, 2024
a4d5ef9
include: ssp: kill off leftover $FreeBSD$ tag
kevans91 May 13, 2024
d5a97db
Stop removing ssp headers
kevans91 May 13, 2024
85bd184
freebsd-tips: Add fortune to find font providing Unicode character
Jehops May 13, 2024
06ce4a4
x86: Add Intel TD/HFI related MSR/CPUID defines to specialregs.h
koinec May 6, 2024
0702663
boottrace: Use NULL for SYSINIT's last arg, which is a pointer type
gmshake May 14, 2024
32bfc5e
arm64_pmap: narrow scope of bti_same test
May 14, 2024
8c83df2
Merge bmake-20240508
sgerraty May 14, 2024
7ab3e16
ifconfig: Add format shortcuts.
dag-erling May 14, 2024
4ec4245
nuageinit: by default to not enable nuageinit
bapt May 14, 2024
3d02680
pci_vendors: update to 2024.05.14
bapt May 14, 2024
84ca971
usb_vendors: update to 2024.03.18
bapt May 14, 2024
400adfc
snd_hda: Add patch for Lenovo Ideapad 3
christosmarg May 14, 2024
6d63351
snd_hda: Rename LENOVO_I* to LENOVO_IDEAPAD*
christosmarg May 14, 2024
2c67e6c
sound: Remove ncards variable from sound_oss_card_info()
christosmarg May 14, 2024
05c751a
awk: Merge in bsd-feature branch of OTA from 20240422 (31bb33a32f71)
bsdimp May 14, 2024
6542258
net80211: add the 802.11-2016 cipher list to the crypto array set.
Apr 22, 2024
2a94f9d
net80211: add placeholder module names for the new ciphers
Apr 22, 2024
4ddc12a
net80211: allow a single wlan crypto module to register for >1 cipher
Apr 22, 2024
7bd095c
net80211: add initial key management suites from 802.11-2016, APIs to…
Apr 23, 2024
0fdace6
AMD CPUs: update bits and data from CPUID 0x8000_0008
kostikbel May 13, 2024
0522acf
ssp: appease -Wgnu-statement-expression-from-macro-expansion
kevans91 May 14, 2024
6a7c3c3
Enable soft updates by default for UFS2 filesystems.
May 15, 2024
60591bb
Issue #237 : Resolver uses nameserver commented out in /etc/resolv.conf
wtoorop May 7, 2024
ec4b5a1
atf: Guard against multiple evaluation.
dag-erling May 15, 2024
f788ff8
Revert "Issue #237 : Resolver uses nameserver commented out in /etc/r…
dag-erling May 15, 2024
ff4132b
ldns: Ignore commented-out lines in resolv.conf.
dag-erling May 15, 2024
7169833
adduser: Additional variable fixes.
dag-erling May 15, 2024
01471b2
ifconfig: Markup nits.
dag-erling May 15, 2024
68f2c62
freebsd-tips: Tweak fortune to find font providing Unicode character
Jehops May 15, 2024
b365718
uart: Honour clock-frequency in FDT for UART_FDT_CLASS if present
jrtc27 May 15, 2024
70338b9
riscv: fix L0 PTE setup (Sv48)
mhorne May 15, 2024
bbb08bd
vfs_domount_update(): style, use space instead of tab
kostikbel May 16, 2024
244516e
vfs_domount_update(): postpone setting MNT_UNION until VFS_MOUNT() is…
kostikbel May 15, 2024
91c6ed6
linuxkpi: spinlock: Simplify code
evadot May 15, 2024
3f3a501
linuxkpi: rwlock: Simplify code
evadot May 15, 2024
132245a
linuxkpi: refcount: Use atomic_t directly
evadot May 15, 2024
c67ffbb
contrib/bsddialog: Import version 1.0.2
alfonsosiciliano May 16, 2024
331b6e2
man filesystems: move driver pages to section four
concussious Apr 21, 2024
96a01c6
man filesystems: ObsoleteFiles after move to sec 4
concussious May 12, 2024
748984b
man filesystems: fix xrefs after move to section 4
concussious May 15, 2024
ca39109
netstat(1): increase width of Netif column
llfw May 8, 2024
0d413bd
netstat(8): for -W, use IFNAMSIZ
llfw May 14, 2024
92fa3ce
sys/modules/dpdk_lpm4: do not build without INET
llfw May 15, 2024
e70dc14
bhyve: avoid resource leak
khorben May 13, 2024
d293b2e
ctladm: fix resource leak
khorben May 15, 2024
e6f43b3
makeman: extend duplicate option warning to OPT_ options
emaste May 13, 2024
964958f
linuxkpi: Provide a non-NULL value for THIS_MODULE
amshafer Mar 6, 2024
2e8f4a2
SysV SHM: move SHMSEG constants to sys/shm.h
kostikbel May 16, 2024
909f960
SysV IPC: provide in-kernel helpers to obtain ipcs(8)-like information
kostikbel May 13, 2024
6a65b72
libcapsicum: document return values
oshogbo May 16, 2024
6432473
Merge commit 87f3407856e6 from llvm-project (by Phoebe Wang):
DimitryAndric May 16, 2024
c660606
Trim a spurious trailing backslash
bsdjhb May 16, 2024
0ab456b
linuxkpi: Fix spin_lock_init
evadot May 17, 2024
41e5eed
linuxkpi: rwlock: Fix rwlock_init
evadot May 17, 2024
84e55e6
rtld: Add MD_OBJ_ENTRY to extend Struct_Obj_Entry
zxombie May 7, 2024
686f3e9
rtld: Add arch_digest_dynamic
zxombie May 7, 2024
e047efe
rtld: Add support for arm64 variant pcs
zxombie Apr 17, 2024
336a7cd
rtld: Add arm64 variant pcs tests
zxombie Apr 19, 2024
9ce9e14
rtld: Move powerpc specific code to powerpc files
zxombie May 13, 2024
1a52430
arm64: Add MRS_REG_ALT_NAME ID register macros
zxombie May 13, 2024
6597cc4
arm64: Use the _REG macros to read ID registers
zxombie May 13, 2024
7cbe244
Revert "rtld: Add arm64 variant pcs tests"
zxombie May 17, 2024
fe2e266
tpm: Add new tpm_bus.c to module Makefile
chmeeedalf May 17, 2024
49b145d
arm64/vmm: Fix the build with GCC
zxombie May 16, 2024
22dd1f5
dev/psci: Fix a function name
zxombie May 16, 2024
52ac838
arm64: make SPE regs use ALT_NAME macro
zdleaf May 10, 2024
ffbd966
arm64: add PMBSR_MSS_{BSC,FSC} status code field
zdleaf Sep 20, 2023
5a029b0
arm64: add CONTEXTIDR_EL1 reg
zdleaf May 10, 2024
1fe4168
aarch64: disable LIB32 with gcc
brooksdavis May 17, 2024
205a1e0
arm: fail early on gcc builds
brooksdavis May 17, 2024
152b622
zfs: Avoid a gcc -Wint-to-pointer-cast warning
brooksdavis May 17, 2024
c19bd89
uart: DBG2 support to find the debug uart
zxombie Mar 12, 2024
a3d3b27
arm: Add a missing interrupt to the generic timer
zxombie Jan 11, 2024
f0d6110
arm: Use the correct irq when in the hypervisor
zxombie Jan 11, 2024
c848377
arm64: Support break and watch points in VHE
zxombie Mar 14, 2024
c7ffc50
fib_dxr: check if cached fib_data matches the new request in dxr_init()
gornjas May 17, 2024
ce46c07
bhyve: avoid resource leak in error path
khorben May 16, 2024
8656600
fib_dxr: do not leak memory if FIB constellation hits structural limit
gornjas May 17, 2024
7fcb90e
fib_dxr: code hygiene, prune old code, no functional changes
gornjas May 17, 2024
a23b53e
libgcc_s: fix nonsense defines
brooksdavis May 17, 2024
299662b
bhyve: avoid side effect in assertion
khorben May 17, 2024
30fc36a
libcxxrt: allow build with gcc13 and --no-undefined-version
brooksdavis May 17, 2024
aae7014
Improve broken-on-gcc checks
brooksdavis May 17, 2024
e0cef9c
cxgbe(4): sc->port is indexed by port_id and not tx_chan.
np-2020 May 2, 2024
93d8ed0
cxgbe(4): Consolidate all mk_set_tcb_field_ulp in one place.
np-2020 Apr 1, 2023
b1bce6e
diff: honour -B flag with -q
emaste May 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 24 additions & 0 deletions Makefile.inc1
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,30 @@ LIBCOMPAT_INCLUDE_DIRS+= i386
LIBCOMPAT_INCLUDE_DIRS+= arm
.endif

.if ((defined(X_COMPILER_TYPE) && ${X_COMPILER_TYPE} == "gcc") || \
(!defined(X_COMPILER_TYPE) && ${COMPILER_TYPE} == "gcc"))
.if ${TARGET} == "arm"
_GCC_BROKEN="https://reviews.freebsd.org/D36754"
.endif
.if ${TARGET_ARCH} == "powerpc"
_GCC_BROKEN=Missing atomic builtins in libc++.
.endif
.if ${TARGET_ARCH:Mpowerpc64*}
_GCC_BROKEN=libsys.so.7.full has a LOAD segment with RWX permissions.
.endif
.if ${TARGET} == "riscv"
_GCC_BROKEN=boot code linker script issues.
.endif
.if defined(_GCC_BROKEN)
.warning Target ${TARGET} is broken with GCC: ${_GCC_BROKEN}
.if defined(TRY_GCC_BROKEN)
.warning Trying build anyway.
.else
.error Avoiding broken build. Define TRY_GCC_BROKEN to try anyway.
.endif
.endif
.endif

.if ${.MAKE.OS} != "FreeBSD"
CROSSBUILD_HOST=${.MAKE.OS}
.if ${.MAKE.OS} != "Linux" && ${.MAKE.OS} != "Darwin"
Expand Down
27 changes: 22 additions & 5 deletions ObsoleteFiles.inc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,28 @@
# xargs -n1 | sort | uniq -d;
# done

# 20240511: move file system driver manuals to section four
OLD_FILES+=usr/share/man/man5/autofs.5.gz
OLD_FILES+=usr/share/man/man5/cd9660.5.gz
OLD_FILES+=usr/share/man/man5/devfs.5.gz
OLD_FILES+=usr/share/man/man5/ext2fs.5.gz
OLD_FILES+=usr/share/man/man5/ext4fs.5.gz
OLD_FILES+=usr/share/man/man5/fdescfs.5.gz
OLD_FILES+=usr/share/man/man5/fusefs.5.gz
OLD_FILES+=usr/share/man/man5/lindebugfs.5.gz
OLD_FILES+=usr/share/man/man5/linprocfs.5.gz
OLD_FILES+=usr/share/man/man5/linsysfs.5.gz
OLD_FILES+=usr/share/man/man5/mqueuefs.5.gz
OLD_FILES+=usr/share/man/man5/msdosfs.5.gz
OLD_FILES+=usr/share/man/man5/msdos.5.gz
OLD_FILES+=usr/share/man/man5/nullfs.5.gz
OLD_FILES+=usr/share/man/man5/procfs.5.gz
OLD_FILES+=usr/share/man/man5/smbfs.5.gz
OLD_FILES+=usr/share/man/man5/tarfs.5.gz
OLD_FILES+=usr/share/man/man5/tmpfs.5.gz
OLD_FILES+=usr/share/man/man5/unionfs.5.gz
OLD_FILES+=usr/share/man/man7/ffs.7.gz

# 20240508: Remove remnants of portsnap(8)
OLD_DIRS+=var/db/portsnap

Expand Down Expand Up @@ -9510,11 +9532,6 @@ OLD_FILES+=usr/share/man/man4/imm.4.gz
OLD_FILES+=usr/share/man/man4/vpo.4.gz

# 20200104: gcc libssp removed
OLD_FILES+=usr/include/ssp/ssp.h
OLD_FILES+=usr/include/ssp/stdio.h
OLD_FILES+=usr/include/ssp/string.h
OLD_FILES+=usr/include/ssp/unistd.h
OLD_DIRS+=usr/include/ssp
OLD_FILES+=usr/lib/libssp.a

# 20191229: GEOM_SCHED class and gsched tool removed
Expand Down
2 changes: 1 addition & 1 deletion bin/ps/ps.1
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ Display information on all system processes:
.Xr strftime 3 ,
.Xr xo_parse_args 3 ,
.Xr mac 4 ,
.Xr procfs 5 ,
.Xr procfs 4 ,
.Xr pstat 8 ,
.Xr sysctl 8 ,
.Xr mutex 9
Expand Down
15 changes: 8 additions & 7 deletions bin/rmdir/rmdir.1
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ The
.Nm
utility exits with one of the following values:
.Bl -tag -width indent
.It Li 0
Each directory entry specified by a
.It Er 0
Each
.Ar directory
operand
referred to an empty directory and was removed
successfully.
.It Li >0
An error occurred.
referred to an empty directory and was removed successfully.
.It Er 1
An error occurred while attempting to remove one or more directories.
.It Er 2
Invalid arguments.
.El
.Sh EXAMPLES
Remove the directory
Expand All @@ -97,6 +97,7 @@ stopping at the first non-empty directory (if any):
.Dl $ rmdir -p cow/horse/monkey
.Sh SEE ALSO
.Xr rm 1
.Xr rmdir 2
.Sh STANDARDS
The
.Nm
Expand Down
2 changes: 1 addition & 1 deletion bin/rmdir/rmdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,5 @@ usage(void)
{

(void)fprintf(stderr, "usage: rmdir [-pv] directory ...\n");
exit(1);
exit(2);
}
6 changes: 3 additions & 3 deletions bin/rmdir/tests/rmdir_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ invalid_usage_head()

invalid_usage_body()
{
atf_check -s not-exit:0 -e match:"$usage_output" rmdir -p
atf_check -s not-exit:0 -e match:"$usage_output" rmdir -v
atf_check -s exit:2 -e match:"$usage_output" rmdir -p
atf_check -s exit:2 -e match:"$usage_output" rmdir -v
}

atf_test_case no_arguments
Expand All @@ -47,7 +47,7 @@ no_arguments_head()

no_arguments_body()
{
atf_check -s not-exit:0 -e match:"$usage_output" rmdir
atf_check -s exit:2 -e match:"$usage_output" rmdir
}

atf_init_test_cases()
Expand Down
151 changes: 95 additions & 56 deletions contrib/atf/atf-c/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,65 +167,104 @@
ATF_CHECK_MSG((expected) == (actual), "%s != %s: " fmt, \
#expected, #actual, ##__VA_ARGS__)

#define ATF_REQUIRE_STREQ(expected, actual) \
ATF_REQUIRE_MSG(strcmp(expected, actual) == 0, "%s != %s (%s != %s)", \
#expected, #actual, expected, actual)

#define ATF_CHECK_STREQ(expected, actual) \
ATF_CHECK_MSG(strcmp(expected, actual) == 0, "%s != %s (%s != %s)", \
#expected, #actual, expected, actual)

#define ATF_REQUIRE_STREQ_MSG(expected, actual, fmt, ...) \
ATF_REQUIRE_MSG(strcmp(expected, actual) == 0, \
"%s != %s (%s != %s): " fmt, \
#expected, #actual, expected, actual, ##__VA_ARGS__)

#define ATF_CHECK_STREQ_MSG(expected, actual, fmt, ...) \
ATF_CHECK_MSG(strcmp(expected, actual) == 0, \
"%s != %s (%s != %s): " fmt, \
#expected, #actual, expected, actual, ##__VA_ARGS__)

#define ATF_REQUIRE_INTEQ(expected, actual) \
ATF_REQUIRE_MSG((expected) == (actual), "%s != %s (%jd != %jd)", \
#expected, #actual, (intmax_t)(expected), \
(intmax_t)(actual))

#define ATF_CHECK_INTEQ(expected, actual) \
ATF_CHECK_MSG((expected) == (actual), "%s != %s (%jd != %jd)", #expected, \
#actual, (intmax_t)(expected), (intmax_t)(actual))

#define ATF_REQUIRE_INTEQ_MSG(expected, actual, fmt, ...) \
ATF_REQUIRE_MSG((expected) == (actual), "%s != %s (%jd != %jd): " fmt, \
#expected, #actual, (intmax_t)(expected), \
(intmax_t)(actual), ##__VA_ARGS__)

#define ATF_CHECK_INTEQ_MSG(expected, actual, fmt, ...) \
ATF_CHECK_MSG((expected) == (actual), "%s != %s (%jd != %jd): " fmt, \
#expected, #actual, (intmax_t)(expected), \
(intmax_t)(actual), ##__VA_ARGS__)

#define ATF_REQUIRE_MATCH(regexp, string) \
ATF_REQUIRE_MSG(atf_utils_grep_string("%s", string, regexp), \
"'%s' not matched in '%s'", regexp, string);

#define ATF_CHECK_MATCH(regexp, string) \
ATF_CHECK_MSG(atf_utils_grep_string("%s", string, regexp), \
"'%s' not matched in '%s'", regexp, string);

#define ATF_REQUIRE_MATCH_MSG(regexp, string, fmt, ...) \
ATF_REQUIRE_MSG(atf_utils_grep_string("%s", string, regexp), \
"'%s' not matched in '%s': " fmt, regexp, string, \
##__VA_ARGS__);

#define ATF_CHECK_MATCH_MSG(regexp, string, fmt, ...) \
ATF_CHECK_MSG(atf_utils_grep_string("%s", string, regexp), \
"'%s' not matched in '%s': " fmt, regexp, string, \
##__VA_ARGS__);
#define ATF_REQUIRE_STREQ(expected, actual) do { \
const char *_atf_expected = (expected); \
const char *_atf_actual = (actual); \
ATF_REQUIRE_MSG(strcmp(_atf_expected, _atf_actual) == 0, \
"%s != %s (%s != %s)", #expected, #actual, \
_atf_expected, _atf_actual); \
} while (0)

#define ATF_CHECK_STREQ(expected, actual) do { \
const char *_atf_expected = (expected); \
const char *_atf_actual = (actual); \
ATF_CHECK_MSG(strcmp(_atf_expected, _atf_actual) == 0, \
"%s != %s (%s != %s)", #expected, #actual, \
_atf_expected, _atf_actual); \
} while (0)

#define ATF_REQUIRE_STREQ_MSG(expected, actual, fmt, ...) do { \
const char *_atf_expected = (expected); \
const char *_atf_actual = (actual); \
ATF_REQUIRE_MSG(strcmp(_atf_expected, _atf_actual) == 0, \
"%s != %s (%s != %s): " fmt, #expected, #actual, \
_atf_expected, _atf_actual, ##__VA_ARGS__); \
} while (0)

#define ATF_CHECK_STREQ_MSG(expected, actual, fmt, ...) do { \
const char *_atf_expected = (expected); \
const char *_atf_actual = (actual); \
ATF_CHECK_MSG(strcmp(_atf_expected, _atf_actual) == 0, \
"%s != %s (%s != %s): " fmt, #expected, #actual, \
_atf_expected, _atf_actual, ##__VA_ARGS__); \
} while (0)

#define ATF_REQUIRE_INTEQ(expected, actual) do { \
intmax_t _atf_expected = (expected); \
intmax_t _atf_actual = (actual); \
ATF_REQUIRE_MSG(_atf_expected == _atf_actual, \
"%s != %s (%jd != %jd)", #expected, #actual, \
_atf_expected, _atf_actual); \
} while (0)

#define ATF_CHECK_INTEQ(expected, actual) do { \
intmax_t _atf_expected = (expected); \
intmax_t _atf_actual = (actual); \
ATF_CHECK_MSG(_atf_expected == _atf_actual, \
"%s != %s (%jd != %jd)", #expected, #actual, \
_atf_expected, _atf_actual); \
} while (0)

#define ATF_REQUIRE_INTEQ_MSG(expected, actual, fmt, ...) do { \
intmax_t _atf_expected = (expected); \
intmax_t _atf_actual = (actual); \
ATF_REQUIRE_MSG(_atf_expected == _atf_actual, \
"%s != %s (%jd != %jd): " fmt, #expected, #actual, \
_atf_expected, _atf_actual, ##__VA_ARGS__); \
} while (0)

#define ATF_CHECK_INTEQ_MSG(expected, actual, fmt, ...) do { \
intmax_t _atf_expected = (expected); \
intmax_t _atf_actual = (actual); \
ATF_CHECK_MSG(_atf_expected == _atf_actual, \
"%s != %s (%jd != %jd): " fmt, #expected, #actual, \
_atf_expected, _atf_actual, ##__VA_ARGS__); \
} while (0)

#define ATF_REQUIRE_MATCH(regexp, string) do { \
const char *_atf_regexp = (regexp); \
const char *_atf_string = (string); \
ATF_REQUIRE_MSG(atf_utils_grep_string("%s", _atf_string, _atf_regexp), \

Check warning on line 237 in contrib/atf/atf-c/macros.h

View workflow job for this annotation

GitHub Actions / Style Checker

line over 80 characters
"'%s' not matched in '%s'", _atf_regexp, _atf_string); \
} while (0)

#define ATF_CHECK_MATCH(regexp, string) do { \
const char *_atf_regexp = (regexp); \
const char *_atf_string = (string); \
ATF_CHECK_MSG(atf_utils_grep_string("%s", _atf_string, _atf_regexp), \
"'%s' not matched in '%s'", _atf_regexp, _atf_string); \
} while (0)

#define ATF_REQUIRE_MATCH_MSG(regexp, string, fmt, ...) do { \
const char *_atf_regexp = (regexp); \
const char *_atf_string = (string); \
ATF_REQUIRE_MSG(atf_utils_grep_string("%s", _atf_string, _atf_regexp), \

Check warning on line 251 in contrib/atf/atf-c/macros.h

View workflow job for this annotation

GitHub Actions / Style Checker

line over 80 characters
"'%s' not matched in '%s': " fmt, _atf_regexp, _atf_string, \
##__VA_ARGS__); \
} while (0)

#define ATF_CHECK_MATCH_MSG(regexp, string, fmt, ...) do { \
const char *_atf_regexp = (regexp); \
const char *_atf_string = (string); \
ATF_CHECK_MSG(atf_utils_grep_string("%s", _atf_string, _atf_regexp), \

Check warning on line 259 in contrib/atf/atf-c/macros.h

View workflow job for this annotation

GitHub Actions / Style Checker

line over 80 characters
"'%s' not matched in '%s': " fmt, _atf_regexp, _atf_string, \
##__VA_ARGS__); \
} while (0)

#define ATF_CHECK_ERRNO(exp_errno, bool_expr) \
atf_tc_check_errno(__FILE__, __LINE__, exp_errno, #bool_expr, bool_expr)
atf_tc_check_errno(__FILE__, __LINE__, (exp_errno), #bool_expr, (bool_expr))

#define ATF_REQUIRE_ERRNO(exp_errno, bool_expr) \
atf_tc_require_errno(__FILE__, __LINE__, exp_errno, #bool_expr, bool_expr)
atf_tc_require_errno(__FILE__, __LINE__, (exp_errno), #bool_expr, (bool_expr))

Check warning on line 268 in contrib/atf/atf-c/macros.h

View workflow job for this annotation

GitHub Actions / Style Checker

line over 80 characters

#endif /* !defined(ATF_C_MACROS_H) */
8 changes: 8 additions & 0 deletions contrib/bmake/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2024-05-07 Simon J Gerraty <[email protected]>

* VERSION (_MAKE_VERSION): 20240508
Merge with NetBSD make, pick up
o make: ensure variables set on command line get added to
.MAKEOVERRIDES (even if they start with '.') so they are passed to
sub-makes.

2024-04-30 Simon J Gerraty <[email protected]>

* VERSION (_MAKE_VERSION): 20240430
Expand Down
2 changes: 1 addition & 1 deletion contrib/bmake/VERSION
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# keep this compatible with sh and make
_MAKE_VERSION=20240430
_MAKE_VERSION=20240508
7 changes: 4 additions & 3 deletions contrib/bmake/job.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: job.c,v 1.470 2024/04/27 20:41:32 rillig Exp $ */
/* $NetBSD: job.c,v 1.471 2024/05/07 18:26:22 sjg Exp $ */

/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
Expand Down Expand Up @@ -154,7 +154,7 @@
#include "trace.h"

/* "@(#)job.c 8.2 (Berkeley) 3/19/94" */
MAKE_RCSID("$NetBSD: job.c,v 1.470 2024/04/27 20:41:32 rillig Exp $");
MAKE_RCSID("$NetBSD: job.c,v 1.471 2024/05/07 18:26:22 sjg Exp $");

/*
* A shell defines how the commands are run. All commands for a target are
Expand Down Expand Up @@ -2190,7 +2190,8 @@
if (shellPath == NULL)
InitShellNameAndPath();

Var_SetWithFlags(SCOPE_CMDLINE, ".SHELL", shellPath, VAR_SET_READONLY);
Var_SetWithFlags(SCOPE_CMDLINE, ".SHELL", shellPath,
VAR_SET_INTERNAL|VAR_SET_READONLY);

Check failure on line 2194 in contrib/bmake/job.c

View workflow job for this annotation

GitHub Actions / Style Checker

spaces required around that '|' (ctx:VxV)
if (shell->errFlag == NULL)
shell->errFlag = "";
if (shell->echoFlag == NULL)
Expand Down
6 changes: 3 additions & 3 deletions contrib/bmake/main.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.614 2024/04/30 16:13:33 sjg Exp $ */
/* $NetBSD: main.c,v 1.615 2024/05/07 18:26:22 sjg Exp $ */

/*
* Copyright (c) 1988, 1989, 1990, 1993
Expand Down Expand Up @@ -111,7 +111,7 @@
#include "trace.h"

/* "@(#)main.c 8.3 (Berkeley) 3/19/94" */
MAKE_RCSID("$NetBSD: main.c,v 1.614 2024/04/30 16:13:33 sjg Exp $");
MAKE_RCSID("$NetBSD: main.c,v 1.615 2024/05/07 18:26:22 sjg Exp $");
#if defined(MAKE_NATIVE)
__COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993 "
"The Regents of the University of California. "
Expand Down Expand Up @@ -1411,7 +1411,7 @@ main_Init(int argc, char **argv)
Global_Set(".MAKEOVERRIDES", "");
Global_Set("MFLAGS", "");
Global_Set(".ALLTARGETS", "");
Var_Set(SCOPE_CMDLINE, ".MAKE.LEVEL.ENV", MAKE_LEVEL_ENV);
Global_Set_ReadOnly(".MAKE.LEVEL.ENV", MAKE_LEVEL_ENV);

/* Set some other useful variables. */
{
Expand Down
5 changes: 3 additions & 2 deletions contrib/bmake/make.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: make.h,v 1.332 2024/04/27 20:41:32 rillig Exp $ */
/* $NetBSD: make.h,v 1.333 2024/05/07 18:26:22 sjg Exp $ */

/*
* Copyright (c) 1988, 1989, 1990, 1993
Expand Down Expand Up @@ -1013,7 +1013,8 @@ typedef enum VarSetFlags {
* except for another call to Var_Set with the same flag. See the
* special targets '.NOREADONLY' and '.READONLY'.
*/
VAR_SET_READONLY = 1 << 1
VAR_SET_READONLY = 1 << 1,
VAR_SET_INTERNAL = 1 << 2
} VarSetFlags;

typedef enum VarExportMode {
Expand Down
7 changes: 7 additions & 0 deletions contrib/bmake/mk/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2024-05-04 Simon J Gerraty <[email protected]>

* install-mk (MK_VERSION): 20240504

* dirdeps.mk: allow BUILD_DIRDEPS_OVERRIDES to pass overrides to
sub-make building DIRDEPS_CACHE.

2024-04-24 Simon J Gerraty <[email protected]>

* meta.autodep.mk: do not override start_utc
Expand Down
Loading
Loading