FreeBSD/src 99d295elib/libc/stdlib realpath.c

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
DeltaFile
+7-3lib/libc/stdlib/realpath.c
+7-31 files

FreeBSD/src 1aecb32lib/libc/stdlib realpath.3

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
DeltaFile
+12-24lib/libc/stdlib/realpath.3
+12-241 files

FreeBSD/src dad6e6fsys/vm vm_mmap.c

Provide more precise error explanations for mmap(2) EINVAL errors.

Reviewed by:  kib
Differential Revision: https://reviews.freebsd.org/D55888
MFC-after:    1 week
Sponsored by: Netflix
DeltaFile
+23-13sys/vm/vm_mmap.c
+23-131 files

FreeBSD/src 51446d3sys/vm vm_mmap.c

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]
DeltaFile
+0-4sys/vm/vm_mmap.c
+0-41 files

FreeBSD/ports ce1b9c0benchmarks/clpeak distinfo Makefile

benchmarks/clpeak: update to 1.1.7

Changes:        https://github.com/krrishnarraj/clpeak/releases/tag/1.1.7
Reported by:    GitHub (watch releases)

(cherry picked from commit e3d59935df2f73942688165304bda01bc7c9d7e6)
DeltaFile
+3-3benchmarks/clpeak/distinfo
+1-1benchmarks/clpeak/Makefile
+4-42 files

FreeBSD/ports e3d5993benchmarks/clpeak distinfo Makefile

benchmarks/clpeak: update to 1.1.7

Changes:        https://github.com/krrishnarraj/clpeak/releases/tag/1.1.7
Reported by:    GitHub (watch releases)
DeltaFile
+3-3benchmarks/clpeak/distinfo
+1-1benchmarks/clpeak/Makefile
+4-42 files

FreeBSD/ports 72ca742x11/swaylock-plugin distinfo Makefile

x11/swaylock-plugin: update to 1.8.6

Changes:        https://github.com/mstoeckl/swaylock-plugin/releases/tag/v1.8.6
Reported by:    GitHub (watch releases)
DeltaFile
+3-3x11/swaylock-plugin/distinfo
+1-1x11/swaylock-plugin/Makefile
+4-42 files

FreeBSD/ports 22ff18fgames/veloren-weekly distinfo Makefile

games/veloren-weekly: update to s20260318

Changes:        https://gitlab.com/veloren/veloren/-/compare/96cd780828...8e3f8d2e6b
(cherry picked from commit 91ef2c5c7f59ce9c6b28333cd3ac83ba90b5aded)
DeltaFile
+3-3games/veloren-weekly/distinfo
+2-2games/veloren-weekly/Makefile
+5-52 files

FreeBSD/ports b928a6ax11-wm/labwc distinfo Makefile

x11-wm/labwc: update to 0.9.6

Changes:        https://github.com/labwc/labwc/releases/tag/0.9.6
Reported by:    GitHub (watch releases)

(cherry picked from commit fbaf3bfd70ed6e82989bc91bed96dad24c0fde15)
DeltaFile
+3-3x11-wm/labwc/distinfo
+1-1x11-wm/labwc/Makefile
+4-42 files

FreeBSD/ports 598e543graphics/mesa-devel distinfo Makefile

graphics/mesa-devel: update to 26.0.b.2554

Changes:        https://gitlab.freedesktop.org/mesa/mesa/-/compare/a4cabc1334e...402bd37f9d1
DeltaFile
+3-3graphics/mesa-devel/distinfo
+2-2graphics/mesa-devel/Makefile
+5-52 files

FreeBSD/ports 91ef2c5games/veloren-weekly distinfo Makefile

games/veloren-weekly: update to s20260318

Changes:        https://gitlab.com/veloren/veloren/-/compare/96cd780828...8e3f8d2e6b
DeltaFile
+3-3games/veloren-weekly/distinfo
+2-2games/veloren-weekly/Makefile
+5-52 files

FreeBSD/ports fbaf3bfx11-wm/labwc distinfo Makefile

x11-wm/labwc: update to 0.9.6

Changes:        https://github.com/labwc/labwc/releases/tag/0.9.6
Reported by:    GitHub (watch releases)
DeltaFile
+3-3x11-wm/labwc/distinfo
+1-1x11-wm/labwc/Makefile
+4-42 files

FreeBSD/src 8f41ee9sys/dev/cxgbe/common t4_hw.c

cxgbe(4): decode the T7 MC interrupt correctly

The layout for the main INT_CAUSE is a bit different for T7.

MFC after:      1 week
Sponsored by:   Chelsio Communications
DeltaFile
+10-0sys/dev/cxgbe/common/t4_hw.c
+10-01 files

FreeBSD/ports 97f49demath/libsemigroups distinfo Makefile

math/libsemigroups: upgrade to v3.5.3

Releases notes at https://github.com/libsemigroups/libsemigroups/releases
DeltaFile
+3-3math/libsemigroups/distinfo
+1-1math/libsemigroups/Makefile
+4-42 files

FreeBSD/src 6317122sys/dev/cxgbe/common t4_hw.c

cxgbe(4): adjustments to the output of the slow interrupt handler

- Display an appropriate alert character instead of a question mark for
  unknown bits.
- Display all fatal bits for a register and not just the ones that are
  currently set.

MFC after:      1 week
Sponsored by:   Chelsio Communications
DeltaFile
+5-4sys/dev/cxgbe/common/t4_hw.c
+5-41 files

FreeBSD/src 85cf26csys/netinet in_var.h

in_var.h: fixup comments that mention use by ifmcstat(8)
DeltaFile
+1-4sys/netinet/in_var.h
+1-41 files

FreeBSD/src ad0e698usr.sbin/ifmcstat ifmcstat.c ifmcstat.8

ifmcstat: remove libkvm(3) code

It has been broken and disabled for over 10 years.  Remove mentions of the
kvm(3) from the manual page.
DeltaFile
+2-500usr.sbin/ifmcstat/ifmcstat.c
+1-44usr.sbin/ifmcstat/ifmcstat.8
+3-5442 files

FreeBSD/ports ed1f422math/primecount distinfo Makefile

math/primecount: upgrade to v8.3

Release notes at https://github.com/kimwalisch/primecount/releases/tag/v8.3
DeltaFile
+3-3math/primecount/distinfo
+1-1math/primecount/Makefile
+4-42 files

FreeBSD/ports b3ef522graphics/cimg distinfo Makefile

graphics/cimg: upgrade to v.3.7.3
DeltaFile
+3-3graphics/cimg/distinfo
+1-1graphics/cimg/Makefile
+4-42 files

FreeBSD/src 1acf507release/tools ec2.conf

EC2: Don't use unicode in boot loader

The boot loader menu is disabled by default in EC2, but if it is ever
turned on, the default (unicode) output breaks EC2's web interface to
the serial console.

Set loader_menu_frame="ascii" instead.

MFC after:      3 days
Sponsored by:   Amazon

(cherry picked from commit 277830b4d3ae9999c80bf915b5491850e91c6516)
(cherry picked from commit 251907ca480eff7f6177f52959b71a6cfce45579)
DeltaFile
+4-1release/tools/ec2.conf
+4-11 files

FreeBSD/src c25839csys/kern subr_intr.c

intrng: Shuffle unhandled interrupts too

When interrupt vectors are first allocated, they get assigned to
CPU #0; at SI_SUB_SMP / SI_ORDER_SECOND (aka once we have multiple
CPUs), the intr_irq_shuffle SYSINIT clears their CPU sets with the
effect of forcing them to be assigned to new CPUs later.

In case where interrupt vectors were allocated *but not yet bound*
this code did not run, with the effect that those interrupts would
remain pinned to CPU #0 forever.  This affected the ena(4) driver,
which allocates interrupts for I/O when the device is attached but
doesn't set them up until the interface is brought up much later in
the boot process (and, crucially, long after intr_irq_shuffle runs).

Adjust intr_irq_shuffle to clear the CPU set for an interrupt source
even if it currently has no handlers, so that it will be properly
assigned to a CPU when it is used later.

Reviewed by:    andrew, mhorne

    [5 lines not shown]
DeltaFile
+13-1sys/kern/subr_intr.c
+13-11 files

FreeBSD/src 660a79erelease/tools ec2.conf

EC2: Don't use unicode in boot loader

The boot loader menu is disabled by default in EC2, but if it is ever
turned on, the default (unicode) output breaks EC2's web interface to
the serial console.

Set loader_menu_frame="ascii" instead.

MFC after:      3 days
Sponsored by:   Amazon

(cherry picked from commit 277830b4d3ae9999c80bf915b5491850e91c6516)
(cherry picked from commit 251907ca480eff7f6177f52959b71a6cfce45579)
DeltaFile
+4-1release/tools/ec2.conf
+4-11 files

FreeBSD/src b109809sys/kern subr_intr.c

intrng: Shuffle unhandled interrupts too

When interrupt vectors are first allocated, they get assigned to
CPU #0; at SI_SUB_SMP / SI_ORDER_SECOND (aka once we have multiple
CPUs), the intr_irq_shuffle SYSINIT clears their CPU sets with the
effect of forcing them to be assigned to new CPUs later.

In case where interrupt vectors were allocated *but not yet bound*
this code did not run, with the effect that those interrupts would
remain pinned to CPU #0 forever.  This affected the ena(4) driver,
which allocates interrupts for I/O when the device is attached but
doesn't set them up until the interface is brought up much later in
the boot process (and, crucially, long after intr_irq_shuffle runs).

Adjust intr_irq_shuffle to clear the CPU set for an interrupt source
even if it currently has no handlers, so that it will be properly
assigned to a CPU when it is used later.

Reviewed by:    andrew, mhorne

    [5 lines not shown]
DeltaFile
+13-1sys/kern/subr_intr.c
+13-11 files

FreeBSD/src cc66722tests/sys/netinet raw.c

tests/netinet/raw: fix ssize_t printf(3) format

Fixes:  c1481c9f4a425db7295332be87f837bfb7d127df
DeltaFile
+1-1tests/sys/netinet/raw.c
+1-11 files

FreeBSD/ports b94bed7lang/php84 Makefile, lang/php84/files libressl-patch-ext_openssl_openssl.c

lang/php84: fix build with LibreSSL

sk_X509_new_reserve does not exist in LibreSSL, only OpenSSL.

Obtained from: OpenBSD ports

Approved by: bofh (maintainer)
Differential Revision: https://reviews.freebsd.org/D55921
DeltaFile
+35-0lang/php84/files/libressl-patch-ext_openssl_openssl.c
+4-0lang/php84/Makefile
+39-02 files

FreeBSD/ports b426bd7www/h2o pkg-plist distinfo, www/h2o/files patch-CMakeLists.txt

www/h2o: update to 20260228 snapshot

Tested by:      Uwe Trenkner <uwe at trenknerconsulting.com>
Sponsored by:   SkunkWerks, GmbH
DeltaFile
+75-5www/h2o/pkg-plist
+12-12www/h2o/files/patch-CMakeLists.txt
+3-3www/h2o/distinfo
+2-2www/h2o/Makefile
+92-224 files

FreeBSD/ports 6d6d3d4sysutils/zelta pkg-plist Makefile, sysutils/zelta/files pkg-message.in

sysutils/zelta: update to 1.1.0

PR:             293906
Sponsored by:   SkunkWerks, GmbH
DeltaFile
+13-4sysutils/zelta/pkg-plist
+6-7sysutils/zelta/files/pkg-message.in
+7-5sysutils/zelta/Makefile
+3-3sysutils/zelta/distinfo
+29-194 files

FreeBSD/src c1481c9tests/sys/netinet raw.c Makefile

tests/netinet: provide test for raw_ip.c:rip_input()

The test creates differently bound SOCK_RAW sockets and sends different
probe packets.  There is expected results matrix that every probe is
checked against.
DeltaFile
+219-0tests/sys/netinet/raw.c
+3-0tests/sys/netinet/Makefile
+222-02 files

FreeBSD/ports 1acb764devel/gcc-arm-embedded Makefile

devel/gcc-arm-embedded: Fix version-independend symlink.

PR:             293774
Reported by:    Ed Maste <emaste at freebsd.org>
DeltaFile
+2-2devel/gcc-arm-embedded/Makefile
+2-21 files

FreeBSD/ports 53bbf9dmultimedia/ossia-score Makefile

multimedia/ossia-score: Add missing Qt6 component

Reported by:    fallout (build failure on i386 indicated that quick3d is missing)
DeltaFile
+2-1multimedia/ossia-score/Makefile
+2-11 files