rc.subr: Fix a typo in check_jail()'s description
MFC after: 3 days
Event: Berlin Hackathon 202507
(cherry picked from commit 5d5258653ba4b37c38e48443f265ee4dcedf9a50)
rc.subr: Fix a typo in check_jail()'s description
MFC after: 3 days
Event: Berlin Hackathon 202507
(cherry picked from commit 5d5258653ba4b37c38e48443f265ee4dcedf9a50)
amd64: for LA57, connect DMAP directly to PML5, currently reserving 32 slots
This removes the 4T limit on the amd64 usable phys memory.
Other large KVA consumers like large map, should be moved out of the
top PML4 entry as well. After that, kmem on LA57 amd64 can be extended.
Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D51085
amd64 pmap: do not hardcode 512GB
Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D51085
ast: do not dereference NULL td_proc in CTR statement
If ast is called to clean up thread, as in ast_kclear(), td_proc is
NULL. Guard against derefencing it in the trace.
Reported by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
style.Makefile.5: Remove title macros, tag SPDX
Title macros are discouraged in mdoc(7) because they are not portable.
While here, remove a redundant "file". File is still in the title twice.
MFC after: 3 days
d.7: Refrain from unnecessary time travel
Fix a typo in the manual's date.
Reported by: Gary Jennejohn <garyj at gmx.de>
Fixes: 193f2289fc9a d.7: Document the DTrace scripting language
src.conf.5: Regen after retiring some 32-bit architectures
Commit 4a3fb7547e6b ("powerpc: Disconnect 32-bit powerpc from make
universe") changed the default architecture lists. i386 hasn't chanaged
as only the kernels are disabled; i386 is still included in
TARGET_MACHINE_LIST.
Sponsored by: The FreeBSD Foundation
bectl.8: Describe better
+ Concise document description for consistency and apropos results
+ Improve introductory paragraph, mentioning boot loader support
+ Explain -r in "Supported Subcommands and Flags"
+ Clarify the purpose of the check subcommand
+ Add two basic examples, creating and mounting
+ Fold some long lines, correct a stray capitalization.
MFC after: 3 days
Co-authored-by: kevans
(cherry picked from commit d7baf5f70802a9045f5792a7063b2614bf17356a)
builtin.1: streamlined rewrite + document keybinds
+ clean title: one line with keywords, builtin's mlinked
+ additional search terms: FreeBSD, index
+ synopsis: builtins are documented in your shell's manual
+ clear/scoped introduction: increase straightforwardness
+ table alignment fixed, now renders nicely on MANWIDTH=59
+ keybindings: fundamentals now documented, more please?
+ improved structure and flow, and a spdx tag
+ remove info(1) from SEE ALSO
MFC after: 3 days
Discussed with: imp,jlduran
Reviewed by: imp
Closes: https://github.com/freebsd/freebsd-src/pull/1481
(cherry picked from commit 42df4faf7004aabb4f06acd71f860f12977db3ad)
truncate.1: Polish title and examples
+ describe better
+ switch examples to human readable sizes, with consistent spacing
+ `Downsize ... in 5 Megabytes` >> `Downsize ... by 5 Megabytes`
+ remove prompt from lone example with prompt for consistency
+ remove x permissions from kernel example
+ examples now fit on standard console without wrapping
While here:
+ fold a line to eliminate linter warning + tag spdx
+ add -nosplit to AUTHORS to eliminate a rendering glitch
MFC after: 3 days
Discussed with: asomers, jhb, maxim
Reviewed by: imp (previous version)
Closes: https://github.com/freebsd/freebsd-src/pull/1568
(cherry picked from commit 91ad27bcfc496393ba88f39ca13cdf1c59a7f487)
write.2: Add EINVAL to ERRORS
Since phk rewrote the block layer ~2 decades ago, write(2) can return
EINVAL when the target is a block device and nbytes, the write size, is
not a multiple of the sector's block size.
From the original PR:
When coming from Linux, people are surprised by the fact
that write(2) to a device must be aligned to block size.
Writing a non-aligned block onto a raw device is a case
where EINVAL is also returned but the manpage does not mention this.
MFC after: 3 days
PR: 227185
Reported by: riggs
Reviewed by: imp, Pau Amma <pauamma at gundo.com>
Differential Revision: https://reviews.freebsd.org/D51138
(cherry picked from commit bd173a540c0ead4881b0866b721955440e3b96fe)
mandoc: Bump version string to 1.14.6s20250613
The mandoc compiler is still at version 1.14.6, but we have imported
several snapshots since the version was bumped. Append a snapshot date
string to the version to reflect this.
Requested by: wosch
Discussed with: bapt
(cherry picked from commit af2949cd29ef453a63a6345de396be866138b051)
mdoc.7/MANUAL STRUCTURE: add HARDWARE
FreeBSD Release infrastructure has been generating the Hardware
Compatibility Notes from this section for some decades. Make this more
obvious. This does change the upstream mdoc.7 in a minimal way to
document this, but the .Dd wasn't bumped to avoid conflicts with the
next mdoc/mandoc import.
Reported by: bz (HARDWAREs generating compatibility notes)
Reported by: grahamperrin (order listed in fdp-primer/man)
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1463
(cherry picked from commit d235f19d1bf1e3d9ca31822709464cc6250f44c2)
mandoc: Vendor import of upstream at 2025-06-13
Interesting changes:
+ Lb is now part of SNYOPSIS, the LIBRARY section is deprecated
+ Ft now takes multiple args, and no longer should be quoted
+ Fix a segfaut on malformed Tg markup
(cherry picked from commit 4c07abdbacf49e4ba749b8720916d8cd340a50b8)
manuals: Align our tree with upstream C23 macro
Switch all instances of the -isoC-2024 macro to -isoC-2023 selected by
upstream. Keep -isoC-2024 defined, but deprecated, for backwards compat.
MFC after: 3 days (resolved merge conflicts w/ cdefs and memccpy.3)
(cherry picked from commit 1b6936e125382523509901a4fc5b2932ed0e742d)
mandoc: Vendor import of upstream at 2025-04-08
Interesting changes:
+ correct legacy mandoc date typo, reported on our very own bugzilla
+ improve libmandoc manual
+ strengthen recommendations to omit macros from title lines in mdoc(7)
+ improve html5 compliance in html output
+ improve RFC linking in markdown output
+ libmandoc and mdoc manuals have been improved
+ support arithmetic operations in tbl(7) column widths for DocBook
+ define the St -isoC-2023 macro for referencing the C23 spec
Approved by: mhorne (mentor, implicit)
Reviewed by: imp
Discussed with: adrian, bapt, brooks
Closes: https://github.com/freebsd/freebsd-src/pull/1689
(cherry picked from commit 80c12959679ab203459dc20eb9ece3a7328b7de5)
tracing.7: Shorten doc description for apropos
Shorten document description to fit on one line for the beautification
of apropos results, removing only the search keyword "facilities", which
I think is unlikely to cause discoverability regression.
MFC after: No (please mfc if mfc'ing tracing.7)
Reviewed by: 0mp, bcr
Differential Revision: https://reviews.freebsd.org/D51284