lockf: Avoid spinning when operating on an fd
When operating on a file descriptor, acquire_lock() would ignore the
flags argument and always operate in non-blocking mode, resulting in
unnecessary busy-looping.
PR: 294832
MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D56722
stat: Drop unused code and conditionals
We haven't pulled from upstream in over 15 years, and the codebases
have diverged so far it is unlikely that we ever will.
* Drop NetBSD and OpenBSD version control information.
* Drop support for building on non-BSD / non-POSIX platforms.
* Fix a few minor style issues.
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D56771
[SLP][REVEC] Replace all uses of direct gather scalar operands
When ReVec gather inserts a tree-vector scalar V directly as a
shufflevector operand (poison-vector path of createInsertVector), the
existing per-User external use only rewrites V's use inside that one
shufflevector. Other in-IR uses of V are left untouched and trigger
the "Deleting out-of-tree value" assertion in vectorizeTree when V's
tree entry is erased.
Register an additional nullptr-User external use so V's remaining
uses are rewritten via replaceAllUsesWith.
Fixes #195425
Reviewers:
Pull Request: https://github.com/llvm/llvm-project/pull/195536
vt_core: don't draw the splash if a panic occurred
The shutdown splash draws over all the useful info if ddb(4) is
disabled. Don't draw the splash screen if we're rebooting because of a
panic.
MFC after: 3 days
sysutils/xcp: update to 0.24.8
Bug Fixes
(xcp) Update rand to latest and fix API usage.
(xcp) treat source roots that are symlinks the same as deeper symlinks
net/xfr: update to 0.9.12
What's Changed
Add pre-commit hooks for fmt/clippy/test by @lance0 in #74
Bump the rust-dependencies group with 15 updates by @dependabot[bot] in #71
Apply -w to UDP SO_SNDBUF / SO_RCVBUF on both ends by @lance0 in #75
py-wcwidth: update to 0.7.0.
New support for kitty text sizing protocol (OSC 66) in width() and clip().
New clip() parameter control_codes='parse', 'ignore', and 'strict'. clip()
is now able to clip OSC 8 hyperlinks and OSC 66 text sizing sequences.
Improved clip() and width() to support horizontal cursor sequences (cub, cuf,
hpa). Cursor-left (cub) or backspace (\b) now overwrites text. column_address
(hpa) and carriage return (\r) are now parsed, and more values conditionally raise
ValueError when control_codes='strict'.
PR's
Remove docs, add utils by @jquast in #209
Bump requests from 2.32.5 to 2.33.0 in /docs by @dependabot[bot] in #210
Bump pygments from 2.19.2 to 2.20.0 in /docs by @dependabot[bot] in #212
dependabot nonsense by @jquast in #215
Expand terminal escape sequence for three more ECMA-48 "families" by @jquast in #214
Improve clip() and width() with hyperlinks and overtyping by @jquast in #216
Improve width() and clip() with kitty Text Sizing Protocol by @jquast in #213
netbsd-tests: Fix the mmap_truncate_signal test
Add a volatile qualifier in the loop which triggers SIGBUS, as otherwise
the compiler is smart enough to elide it, replacing it with a check for
page != 0.
MFC after: 1 week
(cherry picked from commit e3b8e55e710bf355f371d798aa943281007a7ea9)
tests/ipfw: Make tests run more reliably in parallel
- Don't use /dev/null as the pidfile for inetd, that doesn't work
properly. Create a pidfile in the per-test scratch directory.
- Use atf_check to validate results from setup commands.
MFC after: 1 week
(cherry picked from commit bea17411473bc58608badd425c223ee59d40a465)
vm_swapout: Remove a special case from vm_swapout_map_deactivate_pages()
John points out that this probably should have been removed in commit
472888018ce, which removed a special case where we'd set desired=0 if
the target process has P_INMEM clear. It's not obvious to me that the
desired=0 case can't arise by setting an RSS limit to 0, but I'm not
sure why we'd try to go the extra mile in that case anyway.
Reported by: jhb
Reviewed by: kib
MFC after: 2 weeks
Fixes: 472888018ce1 ("proc: Remove kernel stack swapping support, part 6")
Differential Revision: https://reviews.freebsd.org/D56140
(cherry picked from commit b6b0afefec4739923897d984448704ce34a21e6b)
tests/socket_afinet: Fix the bind_connected_port test
The test verifies that a socket can bind to a local address assigned by
connect(2) to a different socket. It was however trying to bind to the
wrong address, and the check of the result was inverted, so this went
unnoticed. It also needs to set SO_REUSEADDR for this to succeed.
Reported by: glebius
MFC after: 1 week
(cherry picked from commit d3d0466cae546254c50c80cf3e0c060bbbbba53c)
nullfs: Clear inotify flags during reclaim
The inotify flags are copied from the lower vnode into the nullfs vnode
so that the INOTIFY() macro will invoke VOP_INOTIFY on the nullfs vnode;
this is then bypassed to the lower vnode. However, when a nullfs vnode
is reclaimed we should clear these flags, as the vnode is now doomed and
no longer forwards VOPs to the lower vnode.
Add regression tests. Remove a test in vn_inotify_revoke() which is no
longer needed after this change.
PR: 292495
Reviewed by: kib
Reported by: Jed Laundry <jlaundry at jlaundry.com>
Fixes: f1f230439fa4 ("vfs: Initial revision of inotify")
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D56639
(cherry picked from commit a02d794f5acd12ba3cf1de5c204a8dd56af47edd)
tests/posixshm: Check for hardware support in largepage_pkru
MFC after: 3 days
Fixes: ca87c0b8e396 ("pkru: Fix handling of 1GB largepage mappings")
(cherry picked from commit 75c66218401c00f4728d5312e2b933b8d3aefde1)
py-typer: update to 0.25.1.
Features
🔧 Add Typer Library Skill for Agents. PR #1620 by @svlandeg.
Internal
⬆ Bump ruff from 0.15.11 to 0.15.12. PR #1722 by @dependabot[bot].
⬆ Bump prek from 0.3.10 to 0.3.11. PR #1723 by @dependabot[bot].