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-10 #2207

Merged
merged 416 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
416 commits
Select commit Hold shift + click to select a range
042267e
Explain cron.d
May 10, 2024
b01988d
mdconfig: Print options when listing devices
ricardobranco777 May 10, 2024
44e72c6
Add man page for nfslockd.
dag-erling May 10, 2024
e353ac0
am64: Allow cpu.h to be included from assembly
zxombie May 3, 2024
c78ebc6
arm64: Support a shared release for spin-table
zxombie Apr 29, 2024
797f1c7
arm64: Flush the spintable release address
zxombie May 3, 2024
f91e940
dev/psci: Check all compat strings
zxombie Apr 23, 2024
4ab0f5a
arm64/gicv3: Check if the hardware supports LPIs
zxombie Apr 23, 2024
719908c
arm64: Merge common page table creation code
zxombie Apr 25, 2024
634dd43
arm64: Update the page table list in locore
zxombie Apr 24, 2024
c6f9df7
cat: Check for lack of success rather than a specific failure.
dag-erling May 10, 2024
ad4f3bd
cat: Missed a couple.
dag-erling May 10, 2024
2e0c027
ukswitch: fix non-debug build
emaste May 10, 2024
06af7bd
posix: POSIX-1.2008 moved SA_* from XSI to base standard
bsdimp May 10, 2024
71ed1ad
grdc: add countdown timer mode
gavinatkinson May 10, 2024
6ed7d0e
grdc: Add copyright
bsdimp May 10, 2024
bf1820f
nvmecontrol: Fix a sizeof mismatch
bsdjhb May 10, 2024
1f029b8
nvmf: Use strlcpy instead of strncpy to ensure termination
bsdjhb May 10, 2024
0ac468c
nvmecontrol: Free array of I/O queue pairs on failure to handoff
bsdjhb May 10, 2024
1662e47
nvmecontrol: Free the addrinfo list when failing to open a TCP socket
bsdjhb May 10, 2024
1f83483
ctl_backend_block: Correct value of NVME nsdata nuse field
bsdjhb May 10, 2024
50884a0
nvmf_transport: Remove invalid assertion
bsdjhb May 10, 2024
9d8a371
sctp: store cookie secret change time as time_t
tuexen May 10, 2024
42aeb8d
sctp: store vtag expire time as time_t
tuexen May 10, 2024
10eea8d
tpm20: Support partial reads
chmeeedalf May 9, 2024
de1ac94
conf: Generate fdt_static_dtb.h in OBJDIR
chmeeedalf May 9, 2024
b67716d
sctp: store heartbeat creation time as time_t
tuexen May 10, 2024
5120ea0
sctp: improve heartbeat timer computation
tuexen May 10, 2024
dd4d206
kmod.mk use ${XARGS}
sgerraty May 10, 2024
0b272e0
madt: print CPU APIC ID as signed int
emaste May 10, 2024
4e32868
Increase IOAPIC_MAX_ID to 255 (from 254)
emaste May 10, 2024
88cbbbb
Revert "grdc: Add copyright"
bsdimp May 10, 2024
f75764f
md: Merge two switch statements in mdstart_vnode
bsdjhb May 10, 2024
473c90a
uio: Use switch statements when handling UIO_READ vs UIO_WRITE
bsdjhb May 10, 2024
9e01640
vm: Change the return types of kernacc and useracc to bool
bsdjhb May 10, 2024
c2a8005
unbound: Vendor import 1.20.0
cschuber May 10, 2024
a7cc56b
linux: Adjust rlimit SIGPENDING & MSGQUEUE behaviour to match linprocfs
ricardobranco777 May 10, 2024
467e3e2
CONTRIBUTING.md/style: spring cleaning
concussious May 10, 2024
816c4d3
tftpd: Add missing `-S` option to synopsis.
dag-erling May 10, 2024
1111da6
tftpd: Drop unneeded includes.
dag-erling May 10, 2024
ae285a8
tftpd: Add missing include.
dag-erling May 10, 2024
4d09eb8
tftpd: Satisfy clang-analyzer.
dag-erling May 10, 2024
25945af
tftpd: silence gcc overflow warnings
dag-erling May 10, 2024
335c7cd
unbound: Vendor import 1.20.0
cschuber May 10, 2024
38c3524
kern/intr: remove support for passing trap frame as argument
ehem Oct 8, 2021
a2409f1
intr: Document how to get the interrupt frame
bsdimp May 10, 2024
0c73a34
packages: add package for NTP
llfw May 4, 2024
38d82f0
checkstyle9: Relax sob line requirement
bsdimp May 4, 2024
5eebdb6
aic7xxx: aicasm correct include file
hpvb May 4, 2024
34becad
aic7xxx: make target mode enable a device hint
hpvb May 4, 2024
bec9ad5
intro.2 as errno.2: Update maximum hard link limit
concussious May 4, 2024
60dfd28
intro.2: Add sys/syscall.h to SYNOPSIS
concussious May 4, 2024
60493ba
intro.2 as errno.2: Use the name macro for errno
concussious May 4, 2024
9234196
arp(8): fix a typo in error message for -s/-S
llfw May 4, 2024
e27defa
Merge llvm-project release/18.x llvmorg-18.1.5-0-g617a15a9eac9
DimitryAndric May 4, 2024
63113da
Fixup: Merge llvm-project release/18.x llvmorg-18.1.5-0-g617a15a9eac9
DimitryAndric May 4, 2024
8473b9e
rc.conf.5: modernise network_interfaces
llfw May 4, 2024
2bf6da4
libfido2: update to 1.14.0
emaste May 4, 2024
54e7a5b
lib/clang: clean out old llvm/clang Sparc target remnants
DimitryAndric May 4, 2024
2c51e39
nfsd: Fix Link conformance with RFC8881 for delegations
May 4, 2024
18ea339
rc.conf.5: Fix translation from netmask to cdir
bsdimp May 4, 2024
75767e1
ota: Merge one true awk 20240422 (a3b68e649d2d)
bsdimp May 4, 2024
a21ad2f
release: Use qemu when cross-building vm images
cperciva May 5, 2024
631cbeb
TCP can be subject to Sack Attacks lets fix this issue.
May 5, 2024
b71f517
mlx5en: add diagnostic in one more case of failed eeprom read prepara…
kostikbel May 5, 2024
9240193
Import device-tree files from Linux 6.6
evadot May 6, 2024
5f1f1ee
dts: Bump the freebsd branding version to 6.6
evadot May 6, 2024
ac17482
Import device-tree files from Linux 6.7
evadot May 6, 2024
32a4699
dts: Bump the freebsd branding version to 6.7
evadot May 6, 2024
7665819
Import device-tree files from Linux 6.8
evadot May 6, 2024
49e551a
dts: Bump the freebsd branding version to 6.8
evadot May 6, 2024
80555bc
if: guard against if_ioctl being NULL
kprovost May 6, 2024
28d3f57
pw: Rename some enums.
dag-erling May 6, 2024
b0d00c9
pw: Don't silently ignore unparsed command line arguments.
dag-erling May 6, 2024
983bdc7
adduser: Fix confusion between `uclass` and `_class`.
dag-erling May 6, 2024
5699dc1
pw: Test home directory ownership and mode.
dag-erling May 6, 2024
d0f1115
endian.h: Define uint{16,32,64}_t
bsdimp May 6, 2024
d25b3e7
ps: handle incorrect -D values
Apr 23, 2024
6a2f09f
git-arc: Add list mode support for the update command
bsdjhb May 6, 2024
2c0b063
fib_dxr: log malloc() failures.
gornjas May 6, 2024
49ca112
sound: Merge pcm_chn_create() and chn_init()
christosmarg May 6, 2024
607948f
sound: Add __assert_unreachable() to default cases in pcm_chn_add() a…
christosmarg May 6, 2024
7f2ab88
sound: Convert pcm_chn_add() to void
christosmarg May 6, 2024
f234e2e
sound: Remove hw.snd.version and SND_DRV_VERSION
christosmarg May 6, 2024
8cc0b35
RELNOTES: Mention hw.snd.version being removed
christosmarg May 6, 2024
aa4ec9a
sound: Move chip.h contents to pcm/sound.h
christosmarg May 6, 2024
857ac81
sound: Remove unused dsp_cdevs[] fields and devices
christosmarg May 6, 2024
a90d99e
sound: Use nitems() where possible
christosmarg May 6, 2024
d24df84
sound: Move vchan-related code to pcm/vchan.*
christosmarg May 6, 2024
84e407e
sound: Rename pcm_getparentchannel() to vchan_getparentchannel()
christosmarg May 6, 2024
4005f12
sound: Remove unused "num" argument from chn_init() and related callers
christosmarg May 6, 2024
34d2485
fib_dxr: free() does nothing if arg is NULL, so remove a redundant ch…
gornjas May 6, 2024
6b5804f
fib_dxr: update comment.
gornjas May 6, 2024
858f3dc
sound: Update pcm/vchan.c LICENSE header
christosmarg May 6, 2024
d46ef42
tests/fusefs: fix all tests that depend on kern.maxphys
glebius May 6, 2024
836c7b2
arm: Remove stray references to dev/sound/chip.h
christosmarg May 6, 2024
cd1c1bd
sockets: hide socket hhook(9)s under SOCKET_HHOOK
glebius May 6, 2024
5c5d346
release: Rework vm_extra_pre_umount
cperciva May 6, 2024
273de33
nvmf: Remove packing pragmas from nvmf_proto.h
bsdjhb May 6, 2024
d6d099f
nvmf_tcp: Correct tests for PDU direction
bsdjhb May 6, 2024
22499b6
clock_gettime.2: fix markup
emaste May 6, 2024
537ea50
nvmf: Add explicit alignment for struct nvmf_fabric_cmd
bsdjhb May 6, 2024
e84e540
lagg: propagate up/down to the children
glebius May 6, 2024
9f80abb
lagg: remove use of net epoch in the ioctl paths
glebius May 6, 2024
dede707
lagg: enable tests that stress the configuration changes
glebius May 6, 2024
73cc5d6
sg: Add sg(4) man page
bsdimp May 6, 2024
a26de97
Disconnect GBDE from the build. (Per earlier announcements of retirem…
bsdphk May 7, 2024
1b7ced3
Add GBDE to ObsoleteFiles.inc
bsdphk May 7, 2024
3d7e9ee
Remove gbde.4 man page
bsdphk May 7, 2024
460d7f8
Remove gbde support from swapon(8)
bsdphk May 7, 2024
887939f
Remove GBDE rc support
bsdphk May 7, 2024
4c6ec9d
Remove gbde from rescue
bsdphk May 7, 2024
c9c869f
Remove documentation of GBDE rc support
bsdphk May 7, 2024
1ae6a4a
Remove GBDE stress test
bsdphk May 7, 2024
d6e35ce
Remove GBDE source files
bsdphk May 7, 2024
97a4cd0
Add gbde rc.d script to ObsoleteFiles.inc
bsdphk May 7, 2024
462846d
Remove gbde from the "userland" pseudo-target
bsdphk May 7, 2024
fae92ac
Remove cross-references to GBDE
bsdphk May 7, 2024
1dea710
Remove final cross-reference to GBDE
bsdphk May 7, 2024
234460d
Remove lingering geom_bde references.
bsdphk May 7, 2024
35325d9
dlopen(3): mention fdlopen for capsicum(4)
emaste May 7, 2024
ebad9e9
boot1.efi: Don't redundantly include devpath.c
bsdimp May 7, 2024
6c9f438
fib_dxr: move the bulko of malloc() failure logging into dxr_build()
gornjas May 7, 2024
bc97bbd
fib_dxr: KASSERTs for chasing NULL ptr and runaway refcount suspects
gornjas May 7, 2024
e12d36a
fib_dxr: s/KASSERT/MPASS/
gornjas May 7, 2024
d183e73
fib_dxr: set fib_data field in struct dxr_aux early enough
gornjas May 7, 2024
864fdbe
busdma: deduplicate _bus_dmamap_addseg() function
mhorne Feb 14, 2024
a778d1b
busdma: better handling of small segment bouncing
mhorne Feb 14, 2024
d01028f
starfive: add a syscon driver
mhorne Mar 5, 2024
6e97e29
jh7110: Add StarFive JH7110 clock/reset generator drivers
mhorne May 6, 2024
8196952
jh7110: enable MMC driver
mhorne Mar 4, 2024
c2ce369
Revert "jh7110: Add StarFive JH7110 clock/reset generator drivers"
mhorne May 7, 2024
64feedf
jh7110: Add StarFive JH7110 clock/reset generator drivers
jsihvola May 7, 2024
17066e8
libcbor: Ignore errors for unknown #pragmas
bsdjhb May 7, 2024
9acc398
tcp: clean up macro useage in tcp_fixed_maxseg()
rscheff May 4, 2024
95eafe1
libzpool: Disable -Wpointer-to-int-cast warnings for GCC
bsdjhb May 7, 2024
0029db0
nvmecontrol: Fix a sign compare mismatch
bsdjhb May 7, 2024
73224df
nvme: Bump the alignment of struct nvme_health_information_page to 8
bsdjhb May 7, 2024
12b11ad
sockets: garbage collect PRCOREQUESTS and stale comment
glebius May 7, 2024
dc15453
tcp_hostcache: remove unnecessary socketvar.h
glebius May 7, 2024
3eb7d96
in6_rmx: remove unnecessary socketvar.h
glebius May 7, 2024
7f4b36a
arm64 pmap: Add ATTR_CONTIGUOUS support [Part 3]
alcriceedu Apr 17, 2024
f2b48d4
ObsoleteFiles.inc: Remove /var/db/portsnap
OlCe2 May 4, 2024
e54a3cc
dtb: rockchip: Add Radxa ROCK 4C Plus to the build.
May 8, 2024
ed09550
mii: Add support for Realtek RTL8211F-VD PHY
May 8, 2024
5ea6b90
carp: support VRRPv3
kprovost Apr 2, 2024
b8e8ede
carp: don't chain call vrrp_send_ad via carp_send_ad
glebius Apr 29, 2024
0c67f0a
carp: assert that we are calling correct input function. We are.
glebius Apr 29, 2024
54d278d
carp: refactor packet tagging for ether_output()
glebius Apr 30, 2024
40ec3a6
carp: isolate VRRP from CARP
glebius Apr 30, 2024
505dab0
netinet tests: basic VRRP tests
kprovost Apr 11, 2024
0835ea3
carp: document the new VRRPv3 support
kprovost Apr 12, 2024
25b2d99
pf: always mark states as unlinked before detaching them
kprovost May 6, 2024
90e1b4e
tcp: filter small SACK blocks
rscheff May 4, 2024
57eb93b
tcp: add sysctl to allow/disallow TSO during SACK loss recovery
rscheff May 8, 2024
40ccd3b
tcp: add counter to track when SACK loss recovery uses TSO
rscheff May 8, 2024
f0078be
libthr: avoid varargs in fcntl and openat interposers
brooksdavis May 8, 2024
7ed262f
soxstack: slience 32-bit gcc warning
brooksdavis May 8, 2024
b11b6be
ofed: don't expose symbols twice
brooksdavis May 8, 2024
960ae77
bsdinstall: Stop loading cryptodev for ZFS installations
markjdb May 8, 2024
99821e1
vmm: Start reconciling amd64 and arm64 copies of vmm_dev.c
markjdb May 8, 2024
f8224bb
bhyve: Do not define GDB_LOG
markjdb May 8, 2024
f6dc0ae
smsc(4): update to mention Microchip
emaste May 7, 2024
1d9b0c7
Merge commit 5300a6731e98 from llvm-project (by Jonathan Peyton):
DimitryAndric May 8, 2024
8544bc5
Merge commit 73bb8d9d92f6 from llvm-project (by Jonathan Peyton):
DimitryAndric May 8, 2024
2e871cb
linuxkpi: Make arch_io_*_memtype_wc amd64-only
TijlCoosemans May 8, 2024
9463d39
nvme: Explicitly align struct nvme_command on an 8 byte boundary
bsdjhb May 8, 2024
4496e7a
net80211: add a new field specifically for announcing specific ciphers
Apr 17, 2024
0e8ecc1
wpa: Remove the now not-needed local logic to hard-code cipher support
Apr 17, 2024
62c7d49
net80211: add driver / crypto methods to set the hardware / software …
Apr 18, 2024
882b61e
net80211: add new ciphers and RSN flags
Apr 19, 2024
857524c
release: make dependencies, not recursive make
cperciva May 9, 2024
c1e4eac
xen/debug: remove usage of sbuf_{clear,finish}() on drained sbuf
May 2, 2024
2a8233b
libpfctl: fix file descriptor leak
kprovost May 9, 2024
c3dc3b7
sctp: add missing check
tuexen May 8, 2024
25fe736
Update example from gcc6 to gcc13
bsdimp May 9, 2024
7d42206
sctp: fix sctp_sendall() when an mbuf chain is provided
tuexen May 8, 2024
9260972
sctp: don't provide uninitialized memory to process_chunk_drop()
tuexen May 8, 2024
05b95a9
sctp: allow stcb == NULL in sctp_shutdown()
tuexen May 8, 2024
4e10e0e
sctp: minor cleanup
tuexen May 8, 2024
8aab153
fusefs: make the tests more robust to changes to maxphys
asomers May 9, 2024
b86ca10
ip17x: fix non-debug build
emaste May 8, 2024
6480b74
snd_hdsp(4): RME HDSP 9632 and HDSP 9652 sound card driver.
0EVSG May 9, 2024
d01e92b
sound: Remove nmix variable from mixer_oss_mixerinfo()
christosmarg May 9, 2024
841b50e
sound: Fix oss_sysinfo->numcards
christosmarg May 9, 2024
674f925
sound: Add missing oss_mixerinfo devnode and legacy_device fields
christosmarg May 9, 2024
46a93f8
sound: Rename oss_audioinfo->real_device to oss_audioinfo->legacy_device
christosmarg May 9, 2024
42e52a3
arm/pmu: remove passing trap frame as argument
ehem May 9, 2024
1dbd3ce
kern/intr: change ->ie_irq to unsigned
ehem May 9, 2024
95478df
kern/intr: redeclare intr_setaffinity()'s third arg constant
ehem May 9, 2024
781d02d
intrng: switch flag arguments to unsigned
ehem May 9, 2024
9e13c5c
sys: declare bit sets unsigned
ehem May 9, 2024
eb013eb
arm: add missing atomic-pointer functions
ehem May 9, 2024
46b28fb
intr/x86: replace use of vector in interface with intsrc
ehem May 9, 2024
f822128
arp.8: don't document a syntax that doesn't exist
llfw May 9, 2024
d71550e
Address module reproducibility issues
dankm May 9, 2024
76d3f23
New sysctl to disable NOMATCH until devmatch runs
ica574 Apr 29, 2024
b151117
Allow -DNO_STRICT_REGEX to restore historic regex behavior
sgerraty May 10, 2024
17fa6a1
nfscl: Do not do readahead for directories
May 10, 2024
dd81b69
Fix memory corruption in C++ demangler
jart May 10, 2024
92cdab5
ipfw: correctly report table manipulation errors
May 10, 2024
d9efef5
ahc(4): Default to memory mapped IO
hpvb May 10, 2024
2da60fd
Update README.md to add pointer to release page.
LukeTheEngineer May 10, 2024
516d2a1
sysexits: Tidy deprecated header and manual
concussious May 10, 2024
6ab44f3
at cron file is now in /etc/cron.d
May 10, 2024
5ac1b9e
Explain cron.d
May 10, 2024
f1f07c8
mdconfig: Print options when listing devices
ricardobranco777 May 10, 2024
a4563f7
Add man page for nfslockd.
dag-erling May 10, 2024
897d35c
am64: Allow cpu.h to be included from assembly
zxombie May 3, 2024
fc49bf6
arm64: Support a shared release for spin-table
zxombie Apr 29, 2024
822974a
arm64: Flush the spintable release address
zxombie May 3, 2024
dce9c12
dev/psci: Check all compat strings
zxombie Apr 23, 2024
9744b52
arm64/gicv3: Check if the hardware supports LPIs
zxombie Apr 23, 2024
8637e1f
arm64: Merge common page table creation code
zxombie Apr 25, 2024
201afe6
arm64: Update the page table list in locore
zxombie Apr 24, 2024
e840f3f
cat: Check for lack of success rather than a specific failure.
dag-erling May 10, 2024
76d0f4f
cat: Missed a couple.
dag-erling May 10, 2024
f88e8d0
ukswitch: fix non-debug build
emaste May 10, 2024
ba0b942
tpm20: Support partial reads
chmeeedalf May 9, 2024
8414c3c
conf: Generate fdt_static_dtb.h in OBJDIR
chmeeedalf May 9, 2024
ef3dd5d
posix: POSIX-1.2008 moved SA_* from XSI to base standard
bsdimp May 10, 2024
0bde748
grdc: add countdown timer mode
gavinatkinson May 10, 2024
9e5c3ad
grdc: Add copyright
bsdimp May 10, 2024
fc79ccb
nvmecontrol: Fix a sizeof mismatch
bsdjhb May 10, 2024
ca2224a
nvmf: Use strlcpy instead of strncpy to ensure termination
bsdjhb May 10, 2024
15d4893
nvmecontrol: Free array of I/O queue pairs on failure to handoff
bsdjhb May 10, 2024
eebd436
nvmecontrol: Free the addrinfo list when failing to open a TCP socket
bsdjhb May 10, 2024
e5e132e
ctl_backend_block: Correct value of NVME nsdata nuse field
bsdjhb May 10, 2024
99338a0
nvmf_transport: Remove invalid assertion
bsdjhb May 10, 2024
a2162f8
kmod.mk use ${XARGS}
sgerraty May 10, 2024
ff1ee86
madt: print CPU APIC ID as signed int
emaste May 10, 2024
9339b86
sctp: store cookie secret change time as time_t
tuexen May 10, 2024
be803f5
Increase IOAPIC_MAX_ID to 255 (from 254)
emaste May 10, 2024
4c29956
sctp: store vtag expire time as time_t
tuexen May 10, 2024
eeb5e86
sctp: store heartbeat creation time as time_t
tuexen May 10, 2024
365dfe3
Revert "grdc: Add copyright"
bsdimp May 10, 2024
94dc360
sctp: improve heartbeat timer computation
tuexen May 10, 2024
4a76675
md: Merge two switch statements in mdstart_vnode
bsdjhb May 10, 2024
92a4887
Skipping merge of 473c90ac04cec0abbb414978c53e9c259c9129e8
bsdjhb Aug 26, 2024
4ed5c79
vm: Change the return types of kernacc and useracc to bool
bsdjhb May 10, 2024
6e18ee3
linux: Adjust rlimit SIGPENDING & MSGQUEUE behaviour to match linprocfs
ricardobranco777 May 10, 2024
591891f
CONTRIBUTING.md/style: spring cleaning
concussious May 10, 2024
7bf3106
tftpd: Add missing `-S` option to synopsis.
dag-erling May 10, 2024
1d1f9d2
tftpd: Drop unneeded includes.
dag-erling May 10, 2024
d26188b
tftpd: Add missing include.
dag-erling May 10, 2024
9caa6ed
tftpd: Satisfy clang-analyzer.
dag-erling May 10, 2024
b8a049f
tftpd: silence gcc overflow warnings
dag-erling May 10, 2024
4f467cb
unbound: Vendor import 1.20.0
cschuber May 10, 2024
90ec168
kern/intr: remove support for passing trap frame as argument
ehem Oct 8, 2021
c205e0e
intr: Document how to get the interrupt frame
bsdimp May 10, 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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
16 changes: 9 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,21 @@ command can help minimize churn by only formatting the areas nearby the changes.
not perfect, using these tools will maximize your chances of not having style
comments on your pull requests.

For [Lua](https://www.lua.org), see
[style.lua(9)](https://man.freebsd.org/cgi/man.cgi?query=style.lua&sektion=9)
for details. Lua is used for the boot loader and a few scripts in the base system.

For Makefiles changes, see
[style.Makefile(5)](https://man.freebsd.org/cgi/man.cgi?query=style.Makefile&sektion=5)
for details. FreeBSD's base system uses the in-tree make, not GNU Make, so
[make(1)](https://man.freebsd.org/cgi/man.cgi?query=make&sektion=1) is another useful
resource.

The project uses mdoc for all its man pages. Changes should pass `mandoc -Tlint` and igor (install the latter with `pkg install igor`).
Please be sure to observe the one-sentence-per-line rule so manual pages properly render. Any semantic changes to the manual pages should bump the date.
[style.mdoc(5)](https://man.freebsd.org/cgi/man.cgi?query=style.mdoc&sektion=5) has the all details.

For [Lua](https://www.lua.org), please see
[style.lua(9)](https://man.freebsd.org/cgi/man.cgi?query=style.lua&sektion=9)
for details. Lua is used for the boot loader and a few scripts in the base system.
For manual page changes, see
[style.mdoc(5)](https://man.freebsd.org/cgi/man.cgi?query=style.mdoc&sektion=5)
for details. Changes should pass `mandoc -Tlint` and igor (install the latter with `pkg install igor`).
Please be sure to observe the one-sentence-per-line rule so manual pages properly render.
Proposed changes to manual pages should not bump the document date until merged.

For shell scripts, avoid using bash. The system shell (/bin/sh) is preferred.
Shell scripts in the base system cannot use bash or bash extensions
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
#
# Once you have installed the necessary cross toolchain, simply pass
# CROSS_TOOLCHAIN=${TARGET_ARCH}-gccN while building with the above steps,
# e.g., `make buildworld CROSS_TOOLCHAIN=amd64-gcc6`.
# e.g., `make buildworld CROSS_TOOLCHAIN=amd64-gcc13`.
#
# The ${TARGET_ARCH}-gccN packages are provided as flavors of the
# devel/freebsd-gccN ports.
Expand Down
10 changes: 10 additions & 0 deletions ObsoleteFiles.inc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@
# xargs -n1 | sort | uniq -d;
# done

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

# 20240507: remove gbde
OLD_FILES+=boot/kernel/geom_bde.ko
OLD_FILES+=etc/rc.d/gbde
OLD_FILES+=sbin/gbde
OLD_FILES+=usr/share/man/man4/gbde.4.gz
OLD_FILES+=usr/share/man/man8/gbde.8.gz

# 20240422: remove improperly installed libcxxrt.so.1
MOVED_LIBS+=usr/lib/libcxxrt.so.1

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ See build(7), config(8), [FreeBSD handbook on building userland](https://docs.fr
For information on the CPU architectures and platforms supported by FreeBSD, see the [FreeBSD
website's Platforms page](https://www.freebsd.org/platforms/).

For official FreeBSD bootable images, see the [release page](https://download.freebsd.org/ftp/releases/ISO-IMAGES/).

Source Roadmap:
---------------
| Directory | Description |
Expand Down
3 changes: 3 additions & 0 deletions RELNOTES
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ newline. Entries should be separated by a newline.

Changes to this file should not be MFCed.

7398d1ece5cf:
hw.snd.version is removed.

a15f7c96a276,a8089ea5aee5:
NVMe over Fabrics controller. The nvmft(4) kernel module adds
a new frontend to the CAM target layer which exports ctl(4)
Expand Down
16 changes: 8 additions & 8 deletions bin/cat/cat.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ init_casper_net(cap_channel_t *casper)
familylimit = AF_LOCAL;
cap_net_limit_name2addr_family(limit, &familylimit, 1);

if (cap_net_limit(limit) < 0)
if (cap_net_limit(limit) != 0)
err(EXIT_FAILURE, "unable to apply limits");
}
#endif
Expand Down Expand Up @@ -198,15 +198,15 @@ main(int argc, char *argv[])
stdout_lock.l_start = 0;
stdout_lock.l_type = F_WRLCK;
stdout_lock.l_whence = SEEK_SET;
if (fcntl(STDOUT_FILENO, F_SETLKW, &stdout_lock) == -1)
if (fcntl(STDOUT_FILENO, F_SETLKW, &stdout_lock) != 0)
err(EXIT_FAILURE, "stdout");
}

init_casper(argc, argv);

caph_cache_catpages();

if (caph_enter_casper() < 0)
if (caph_enter_casper() != 0)
err(EXIT_FAILURE, "capsicum");

if (bflag || eflag || nflag || sflag || tflag || vflag)
Expand Down Expand Up @@ -266,7 +266,7 @@ scanfiles(char *argv[], int cooked __unused)
#endif
} else {
#ifndef BOOTSTRAP_CAT
if (in_kernel_copy(fd) == -1) {
if (in_kernel_copy(fd) != 0) {
if (errno == EINVAL || errno == EBADF ||
errno == EISDIR)
raw_cat(fd);
Expand Down Expand Up @@ -473,7 +473,7 @@ udom_open(const char *path, int flags)
errno = serrno;
return (-1);
}
if (caph_rights_limit(fd, &rights) < 0) {
if (caph_rights_limit(fd, &rights) != 0) {
serrno = errno;
close(fd);
freeaddrinfo(res0);
Expand Down Expand Up @@ -502,20 +502,20 @@ udom_open(const char *path, int flags)
switch (flags & O_ACCMODE) {
case O_RDONLY:
cap_rights_clear(&rights, CAP_WRITE);
if (shutdown(fd, SHUT_WR) == -1)
if (shutdown(fd, SHUT_WR) != 0)
warn(NULL);
break;
case O_WRONLY:
cap_rights_clear(&rights, CAP_READ);
if (shutdown(fd, SHUT_RD) == -1)
if (shutdown(fd, SHUT_RD) != 0)
warn(NULL);
break;
default:
break;
}

cap_rights_clear(&rights, CAP_CONNECT, CAP_SHUTDOWN);
if (caph_rights_limit(fd, &rights) < 0) {
if (caph_rights_limit(fd, &rights) != 0) {
serrno = errno;
close(fd);
errno = serrno;
Expand Down
2 changes: 2 additions & 0 deletions bin/ps/ps.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@
else if (len <= 4 &&
strncasecmp(optarg, "both", len) == 0)
directions |= BOTH;
else

Check warning on line 266 in bin/ps/ps.c

View workflow job for this annotation

GitHub Actions / Style Checker

braces {} are encouraged even for single statement blocks
usage();
break;
}
case 'd':
Expand Down
2 changes: 2 additions & 0 deletions cddl/lib/libzpool/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ CSTD= c99

CFLAGS+= -g -DDEBUG=1

CFLAGS.gcc+= -Wno-pointer-to-int-cast

# Pointer values are used as debugging "tags" to mark reference count
# ownerships and in some cases the tag reference is dropped after an
# object is freed.
Expand Down
2 changes: 1 addition & 1 deletion contrib/elftoolchain/libelftc/libelftc_dem_gnu3.c
Original file line number Diff line number Diff line change
Expand Up @@ -2138,7 +2138,7 @@ cpp_demangle_read_sname(struct cpp_demangle_data *ddata)
assert(ddata->cur_output->size > 0);
if (vector_read_cmd_find(&ddata->cmd, READ_TMPL) == NULL)
ddata->last_sname =
ddata->cur_output->container[ddata->output.size - 1];
ddata->cur_output->container[ddata->cur_output->size - 1];

ddata->cur += len;

Expand Down
2 changes: 1 addition & 1 deletion contrib/libcxxrt/libelftc_dem_gnu3.c
Original file line number Diff line number Diff line change
Expand Up @@ -2472,7 +2472,7 @@ cpp_demangle_read_sname(struct cpp_demangle_data *ddata)
assert(ddata->cur_output->size > 0);
if (vector_read_cmd_find(&ddata->cmd, READ_TMPL) == NULL)
ddata->last_sname =
ddata->cur_output->container[ddata->output.size - 1];
ddata->cur_output->container[ddata->cur_output->size - 1];

ddata->cur += len;

Expand Down
97 changes: 97 additions & 0 deletions contrib/libfido2/.actions/build-bsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
#!/bin/sh -eux

# Copyright (c) 2022 Yubico AB. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# SPDX-License-Identifier: BSD-2-Clause

BASE_URL="https://builds.sr.ht"
MANIFEST="$(mktemp)"
LOGFILE="$(mktemp)"
trap '[ -f "${LOGFILE}" ] && cat -- "${LOGFILE}"' EXIT

# construct the sourcehut build manifest
cat > "${MANIFEST}" <<- EOF
image: ${IMAGE}
packages:
- cmake
- llvm
- pcsc-lite
EOF

case "${IMAGE}" in
freebsd*)
cat >> "${MANIFEST}" <<- EOF
- libcbor
- pkgconf
EOF
;;
esac

cat >> "${MANIFEST}" <<- EOF
sources:
- ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}#$(git rev-parse HEAD)
tasks:
- build: |
if [ "\$(uname)" = "OpenBSD" ]; then
SUDO="doas -u root"
else
SUDO=sudo
fi
SCAN="/usr/local/bin/scan-build --use-cc=/usr/bin/cc --status-bugs"
cd libfido2
for T in Debug Release; do
mkdir build-\$T
(cd build-\$T && \${SCAN} cmake -DCMAKE_BUILD_TYPE=\$T ..)
\${SCAN} make -j"\$(sysctl -n hw.ncpu)" -C build-\$T
make -C build-\$T regress
\${SUDO} make -C build-\$T install
done
EOF

q() {
curl \
--silent \
--oauth2-bearer "${SOURCEHUT_TOKEN}" \
--header "Content-Type: application/json" \
--data @- -- \
"${BASE_URL}/query" \
| tee -a -- "${LOGFILE}"
}

submit_job() {
local manifest="$1"
jq \
--compact-output --null-input \
'{ query: $body, variables: { var: $var } }' \
--arg body 'mutation($var: String!) { submit(manifest: $var) { id } }' \
--rawfile var "${manifest}" \
| q \
| jq --exit-status --raw-output '.data.submit.id'
}

job_status() {
local id="$1"
jq \
--compact-output --null-input \
'{ query: $body, variables: { var: $var } }' \
--arg body 'query($var: Int!) { job(id: $var) { status } }' \
--argjson var "${id}" \
| q \
| jq --exit-status --raw-output '.data.job.status'
}

JOB_ID="$(submit_job "${MANIFEST}")" || exit 1
[ -z "${JOB_ID}" ] && exit 1
echo "Job '${JOB_ID}' running at ${BASE_URL}/~yubico-libfido2/job/${JOB_ID}"

while true; do
JOB_STATUS="$(job_status "${JOB_ID}")" || exit 1
case "${JOB_STATUS}" in
SUCCESS) exit 0;;
FAILED) exit 1;;
PENDING|QUEUED|RUNNING) ;;
*) exit 1;;
esac
sleep 60
done
21 changes: 21 additions & 0 deletions contrib/libfido2/.actions/build-linux-clang
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh -eux

# Copyright (c) 2022 Yubico AB. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# SPDX-License-Identifier: BSD-2-Clause

${CC} --version
SCAN=scan-build${CC#clang}

# Check exports.
(cd src && ./diff_exports.sh)

# Build, analyze, and install libfido2.
for T in Debug Release; do
mkdir build-$T
(cd build-$T && ${SCAN} --use-cc="${CC}" cmake -DCMAKE_BUILD_TYPE=$T ..)
${SCAN} --use-cc="${CC}" --status-bugs make -j"$(nproc)" -C build-$T
make -C build-$T regress
sudo make -C build-$T install
done
23 changes: 23 additions & 0 deletions contrib/libfido2/.actions/build-linux-gcc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh -eux

# Copyright (c) 2022 Yubico AB. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# SPDX-License-Identifier: BSD-2-Clause

${CC} --version

# Build and install libfido2.
for T in Debug Release; do
mkdir build-$T
(cd build-$T && cmake -DCMAKE_BUILD_TYPE=$T ..)
make -j"$(nproc)" -C build-$T
make -C build-$T regress
sudo make -C build-$T install
done

# Check udev/fidodevs.
[ -x "$(which update-alternatives)" ] && {
sudo update-alternatives --set awk "$(which original-awk)"
}
udev/check.sh udev/fidodevs
58 changes: 58 additions & 0 deletions contrib/libfido2/.actions/build-linux-i686-w64-mingw32-gcc
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#!/bin/sh -eux

# Copyright (c) 2022-2023 Yubico AB. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# SPDX-License-Identifier: BSD-2-Clause

# XXX defining CC and cross-compiling confuses OpenSSL's build.
unset CC

sudo mkdir /fakeroot
sudo chmod 755 /fakeroot

cat << EOF > /tmp/mingw.cmake
SET(CMAKE_SYSTEM_NAME Windows)
SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
SET(CMAKE_FIND_ROOT_PATH /fakeroot)
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
EOF

# Build and install libcbor.
git clone --depth=1 https://github.com/pjk/libcbor -b v0.10.1
cd libcbor
mkdir build
(cd build && cmake -DCMAKE_TOOLCHAIN_FILE=/tmp/mingw.cmake \
-DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/fakeroot ..)
make -j"$(nproc)" -C build
sudo make -C build install
cd ..

# Build and install OpenSSL 1.1.1w.
git clone --depth=1 https://github.com/openssl/openssl -b OpenSSL_1_1_1w
cd openssl
./Configure mingw --prefix=/fakeroot --openssldir=/fakeroot/openssl \
--cross-compile-prefix=i686-w64-mingw32-
make -j"$(nproc)"
sudo make install_sw
cd ..

# Build and install zlib.
git clone --depth=1 https://github.com/madler/zlib -b v1.3
cd zlib
make -fwin32/Makefile.gcc PREFIX=i686-w64-mingw32-
sudo make -fwin32/Makefile.gcc PREFIX=i686-w64-mingw32- DESTDIR=/fakeroot \
INCLUDE_PATH=/include LIBRARY_PATH=/lib BINARY_PATH=/bin install
cd ..

# Build and install libfido2.
export PKG_CONFIG_PATH=/fakeroot/lib/pkgconfig
mkdir build
(cd build && cmake -DCMAKE_TOOLCHAIN_FILE=/tmp/mingw.cmake \
-DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/fakeroot ..)
make -j"$(nproc)" -C build
sudo make -C build install
Loading
Loading