ecn(9): Update ecn tunneling functions to RFC 6040
Update ECN tunneling functions from obsolete RFC 3168 to
newer RFC 6040.
Also, add ECN_COMPLETE to support dangerous packet reporting
without causing extra costs to existing caller functions.
Finally, return values are specified as macro to reduce
confusion, considering extra return values for ECN_WARN
and ECN_ALARM were added.
Reviewed By: glebius, tuexen
Differential Revision: https://reviews.freebsd.org/D53516
x11/xfce4-terminal: Fix unsafe paste confirmation dialog functionality
Reverting upstream change that causes the unsafe paste confirmation
dialog to not show up when pasting multi line selection with the
middle mouse button.
Issue reported upstream here: https://gitlab.xfce.org/apps/xfce4-terminal/-/issues/385
Reported by: Marek Zarychta (via irc, nick mzar)
devel/wasi-libcxx: cosmetic changes to prepare for devel/wasi-libc update
Use ${TRIPLE} more:
- reference <stdlib.h> from ${WASI_SYSROOT} for the devel/wasi-libc line
- add PLIST_SUB
x11-wm/xfce4-panel-profiles: Fix python executable path, add missing dependency
- Fix python executable path, avoiding to embed WORKDIR path in command
- Add RUN_DEPENDS on required python library
While here:
- Remove unneded patch, port now uses meson to build, so patching
the Makefile is not needed
PR: 293751
devel/wasi-compiler-rt: drop devel/wasi-libc BUILD_DEPENDS
std{arg,def}.h are shipped in the LLVM ports and the build references
them there rather than the mechanical copies in devel/wasi-libc.
Also needed to reverse the dependency order for newer devel/wasi-libc.
realpath: Improve prev_len logic
* Save prev_len after having checked for and appended a trailing slash,
not before. This requires us to back up if we end up returning a
partial result, but previously we would sometimes return a partial
result with a trailing slash and sometimes without.
* Replace strlcat() with a faster strlcpy() since we know exactly how
far into the buffer we are.
MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D55914
realpath: Improve manual page
* Try to make the RETURN VALUES section flow better.
* Add basename(3), dirname(3), free(3) to the SEE ALSO section.
* Drop the CAVEATS section, which was obsolete the moment realpath(3)
was added to the Single Unix Specification in 1994.
MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D55928
Delete error-check code that can never happen.
Near the top of kern_mmap() that implements the mmap(2) system call,
it sets
prot = PROT_EXTRACT(prot);
with
So prot can only be the three PROT_ flags.
The following test of the user's mmap(2) parameters (near line 275
in vm/vm_mmap.c):
if (prot != PROT_NONE &&
(prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC)) != 0) {
return (EXTERROR(EINVAL, "invalid prot %#jx", prot));
}
[7 lines not shown]