NetBSD/src cR1Ui0rsbin/fsck openspecial.c, sbin/newfs newfs.c

   PR/59957: Taylor R. Campbell: Centralize the disk open sequence from newfs
   and tunefs to a new function "openspecial" and use it to fix this PR, and
   the same issue with newfs_ext2fs.
VersionDeltaFile
1.1+85-0sbin/fsck/openspecial.c
1.59+5-32sbin/tunefs/tunefs.c
1.121+5-19sbin/newfs/newfs.c
1.46+7-9sbin/newfs_msdos/newfs_msdos.c
1.12+3-6sbin/newfs_ext2fs/newfs_ext2fs.c
1.15+5-2sbin/tunefs/Makefile
+110-684 files not shown
+119-7410 files

NetBSD/src DkP87Selib/libpthread pthread_main_np.3

   pthread_main_np.3: grammar fix
VersionDeltaFile
1.2+2-2lib/libpthread/pthread_main_np.3
+2-21 files

NetBSD/src 8SsL29Jdoc 3RDPARTY CHANGES

   new zstd
VersionDeltaFile
1.2196+4-3doc/3RDPARTY
1.3252+2-1doc/CHANGES
+6-42 files

NetBSD/src jHycBs7external/bsd/zstd zstd2netbsd, external/bsd/zstd/dist/.circleci config.yml

   merge changes between zstd-1.5.6 and zstd-1.5.7
VersionDeltaFile
1.1+42-0external/bsd/zstd/zstd2netbsd
1.10+2-1external/bsd/zstd/lib/Makefile
1.2+0-0external/bsd/zstd/dist/build/VS2010/fullbench-dll/fullbench-dll.vcxproj
1.2+0-0external/bsd/zstd/dist/contrib/linux-kernel/test/include/asm/unaligned.h
1.2+0-0external/bsd/zstd/dist/.circleci/config.yml
1.2+0-0external/bsd/zstd/dist/.circleci/images/primary/Dockerfile
+44-16 files

NetBSD/src LjoDikzexternal/bsd/zstd/dist/lib zstd.h, external/bsd/zstd/dist/lib/compress zstd_compress.c zstd_compress_internal.h

   Import zstd-1.5.7 (previous was 1.5.6)

   V1.5.7 (Feb 2025)
   fix: compression bug in 32-bit mode associated with long-lasting sessions
   api: new method `ZSTD_compressSequencesAndLiterals()` (#4217, #4232)
   api: `ZSTD_getFrameHeader()` works on skippable frames (#4228)
   perf: substantial compression speed improvements (up to +30%) on small data, by @TocarIP (#4144) and @cyan4973 (#4165)
   perf: improved compression speed (~+5%) for dictionary compression at low levels (#4170)
   perf: much faster speed for `--patch-from` at high compression levels (#4276)
   perf: higher `--patch-from` compression ratios, notably at high levels (#4288)
   perf: better speed for binaries on Windows (@pps83) and when compiled with Visual Studio (@MessyHack)
   perf: slight compression ratio improvement thanks to better block boundaries (#4136, #4176, #4178)
   perf: slight compression ratio improvement for `dfast`, aka levels 3 and 4 (#4171)
   perf: runtime bmi2 detection enabled on x86 32-bit mode (#4251)
   cli: multi-threading as default CLI setting, by @daniellerozenblit
   cli: new `--max` command (#4290)
   build: improve `msbuild` version autodetection, support VS2022, by @ManuelBlanc
   build: fix `meson` build by @artem and @Victor-C-Zhang, and on Windows by @bgilbert
   build: compatibility with Apple Framework, by @Treata11

    [8 lines not shown]
VersionDeltaFile
1.1.1.2+1,057-367external/bsd/zstd/dist/lib/compress/zstd_compress.c
1.1.1.2+650-650external/bsd/zstd/dist/tests/regression/results.csv
1.1.1.2+472-243external/bsd/zstd/dist/tests/fullbench.c
1.1.1.2+241-132external/bsd/zstd/dist/lib/zstd.h
1.1.1.2+227-125external/bsd/zstd/dist/lib/compress/zstd_compress_internal.h
1.1.1.2+254-40external/bsd/zstd/dist/tests/fuzzer.c
+2,901-1,557162 files not shown
+6,300-3,640168 files

NetBSD/src Cqqjyxalib/libpthread pthread_self.3

   pthread_self(3): mention pthread_main_np
VersionDeltaFile
1.6+4-3lib/libpthread/pthread_self.3
+4-31 files

NetBSD/src aUKmPTMsys/arch/m68k/include vmparam.h

   don't expose kernel variables to userland.
VersionDeltaFile
1.8+3-1sys/arch/m68k/include/vmparam.h
+3-11 files

NetBSD/src OzMxENQdoc CHANGES

   Mention pthread_main_np
VersionDeltaFile
1.3251+2-1doc/CHANGES
+2-11 files

NetBSD/src H5M6p9Zdistrib/sets/lists/base shl.mi, distrib/sets/lists/comp mi

   libpthread: add pthread_main_np(3)

   Bump minor version of the shared library.

   As proposed on current-users.
VersionDeltaFile
1.1+57-0lib/libpthread/pthread_main_np.3
1.191+15-2lib/libpthread/pthread.c
1.398+3-3distrib/sets/lists/debug/shl.mi
1.1038+3-3distrib/sets/lists/base/shl.mi
1.2524+4-1distrib/sets/lists/comp/mi
1.46+3-1lib/libpthread/pthread.h
+85-103 files not shown
+90-149 files

NetBSD/src 9ZLQSmEinclude time.h, lib/libc/gen sysctl.c sysconf.3

   PR lib/60219 -- Fix sysconf(_SC_TZNAME_MAX)

   That value is supposed to be the minimum value allowed for
   the maximum length of a timezone abbreviation.   It cannot
   be something larger than is allowed for that (and NAME_MAX
   has nothing to do with it)

   It defines the max lengths allowed for the words in

        TZ=Frankenstein-7Monster-6[transition rules]

   in old style POSIX TZ variable settings - the POSIX required
   minimum value is 6 (so "Frankenstein" would not fit in a minimalist
   POSIX implementation).

   For now, sync the values between libc/sysctl() and libc/localtime()
   via a new _TZNAME_MAXIMUM definition in <time.h> and use that for
   both purposes (as a possible default anyway for localtime() - there
   the default value used will always be at least 254, and building with

    [8 lines not shown]
VersionDeltaFile
1.154+13-3lib/libc/time/localtime.c
1.57+12-1include/time.h
1.40+6-5lib/libc/gen/sysctl.c
1.172+3-3share/man/man7/sysctl.7
1.58+3-3lib/libc/gen/sysconf.3
+37-155 files

NetBSD/src pLRT8I9distrib/utils/x_gzip Makefile

   Fix more zstd lossage
VersionDeltaFile
1.13+2-1distrib/utils/x_gzip/Makefile
+2-11 files

NetBSD/src G9uwo40sys/dev/nvmm/x86 nvmm_x86_svm.c nvmm_x86_vmx.c

   nvmm: Don't report physical lapic freq as virtual lapic freq.

   The virtual lapic emulated by qemu in software always ticks at 1 GHz,
   but the physical lapic on my laptop, for example, ticks at 24 MHz.

   In order for this to work as iMil intended, we need some way for the
   hypervisor (such as qemu) to tell nvmm what its lapic frequency is.
   Until we have that, we can't correctly report any alleged lapic
   frequency to the guest.

   PR kern/59424: hardclock ticks run at breakneck pace under qemu
VersionDeltaFile
1.94+3-3sys/dev/nvmm/x86/nvmm_x86_svm.c
1.94+3-3sys/dev/nvmm/x86/nvmm_x86_vmx.c
+6-62 files

NetBSD/src 8HCSKcAtests/crypto/libcrypto t_sha512trunc.c

   t_sha512trunc.c: add some more test cases

   These were randomly selected (biased for size) from the same source as
   the original ones. If still more are needed, reading from an input file
   would be the better (or, size-wise only) option, but this is simpler
   as-is.
VersionDeltaFile
1.4+290-3tests/crypto/libcrypto/t_sha512trunc.c
+290-31 files

NetBSD/src heDfa6stests/crypto/libcrypto t_sha512trunc.c

   t_sha512trunc.c: fix test case iteration

   The code in check() was repeatedly running the first element of the array
   of test cases, rather than iterating. (Noted by human-powered code
   inspection while preparing another commit that will follow shortly.)
VersionDeltaFile
1.3+6-4tests/crypto/libcrypto/t_sha512trunc.c
+6-41 files

NetBSD/src 3hnIlCkusr.bin/gzip Makefile

   Don't include zstd in the rescue version of gzip. Simplifies things until
   we decide how to handle the zstd build.
VersionDeltaFile
1.21+8-2usr.bin/gzip/Makefile
+8-21 files

NetBSD/src 27kRcuTtools/gzip Makefile

   fix the build.
VersionDeltaFile
1.2+2-2tools/gzip/Makefile
+2-21 files

NetBSD/src fC9obB7usr.bin/tail reverse.c

   GitHub#80: Ricardo Branco: Some pseudo-filesystems return 0 for file size,
   so don't try to use mmap() on them.
VersionDeltaFile
1.24+3-3usr.bin/tail/reverse.c
+3-31 files

NetBSD/src Y5Is2ZEdoc 3RDPARTY

   gcc 16.1.0 out
VersionDeltaFile
1.2195+2-2doc/3RDPARTY
+2-21 files

NetBSD/src CWDn3iAsys/arch/cesfic/include vmparam.h, sys/arch/hp300/include vmparam.h

   Provide defaults for VM_PHYSSEG_MAX, VM_PHYSSEG_STRAT (single segment),
   VM_NFREELIST, and VM_FREELIST_DEFAULT (single freelist).

   Achievement unlocked: some platform <machine/vmparam.h> files are now just
   simple wrappers around <m68k/vmparam.h> (and a few more are *very* close).
VersionDeltaFile
1.35+1-61sys/arch/news68k/include/vmparam.h
1.35+1-57sys/arch/luna68k/include/vmparam.h
1.7+21-1sys/arch/m68k/include/vmparam.h
1.51+2-15sys/arch/hp300/include/vmparam.h
1.31+1-14sys/arch/cesfic/include/vmparam.h
1.22+2-13sys/arch/sun2/include/vmparam.h
+28-1618 files not shown
+49-22214 files

NetBSD/src oIyEA08sys/arch/amiga/include vmparam.h, sys/arch/atari/include vmparam.h

   Centralize the definition of VM_PHYS_SIZE.  While doing so, change
   the logic for its value, eliminating the obsolete USRIOSIZE constant.

   Previously, on Utah-derived platforms, USRIOSIZE was defined as the
   number of PTEs used for phys_map, and VM_PHYS_SIZE was USRIOSIZE * PAGE_SIZE.
   The USRIOSIZE was in turn derived from NPTEPG (number of PTEs in one page).

   On 4K page systems, that was a 4MB phys_map.  On 8K page systems, that
   was a 16MB phys_map (4x muliplier comes from 2x PTEs per page, 2x bytes
   per page mapped).  These values are totally excessive; the most pressure
   phys_map experiences on a typical system is boot-time fsck, and the max
   mapping request it will see is MAXPHYS (64KB); it is generally not used in
   steady-state operation.  In contrast, alpha's phys_map is 512KB and 32-bit
   x86 is ~1MB.

   Instead, simply define reasonable values for VM_PHYS_SIZE independent of
   PAGE_SIZE: 256KB for 68010, 1MB for everone else.  Per-platform constraints
   can override these values (although they happen to match what Sun2 and Sun3
   use, respectively).

    [3 lines not shown]
VersionDeltaFile
1.21+11-16sys/arch/sun2/include/vmparam.h
1.42+10-15sys/arch/sun3/include/vmparam.h
1.6+23-1sys/arch/m68k/include/vmparam.h
1.54+1-14sys/arch/amiga/include/vmparam.h
1.41+1-14sys/arch/atari/include/vmparam.h
1.34+1-12sys/arch/news68k/include/vmparam.h
+47-729 files not shown
+63-17015 files

NetBSD/src 0aaSHUkusr.bin/gzip unzstd.c gzip.c

   Add support for decompressing zstd files.

   From FreeBSD.
VersionDeltaFile
1.1+89-0usr.bin/gzip/unzstd.c
1.130+44-4usr.bin/gzip/gzip.c
1.34+5-3usr.bin/gzip/gzip.1
1.20+6-1usr.bin/gzip/Makefile
+144-84 files

NetBSD/src 7sFXOY1external/bsd/pkg_install/sbin Makefile.inc, tests/lib/libarchive Makefile

   Explicitly link against libzstd where libarchive is used.
   Needed for static linking, where transitive library dependancies
   aren't tracked.
VersionDeltaFile
1.9+4-5usr.bin/unzip/Makefile
1.20+3-2tests/lib/libarchive/Makefile
1.6+3-1external/bsd/pkg_install/sbin/Makefile.inc
1.7+3-1tests/usr.bin/cpio/Makefile
1.6+3-1tests/usr.bin/tar/Makefile
+16-105 files

NetBSD/src Mdo0TQNexternal/bsd/libarchive/include config_netbsd.h

   Re-re-enable zstd library usage.
VersionDeltaFile
1.19+1-1external/bsd/libarchive/include/config_netbsd.h
+1-11 files

NetBSD/src 9kNwO9nsys/arch/alpha/include vmparam.h

   MAXBSIZE -> MAXPHYS in a comment about USRIOSIZE, because MAXPHYS is
   what matters when referring to phys_map.
VersionDeltaFile
1.41+2-2sys/arch/alpha/include/vmparam.h
+2-21 files

NetBSD/src 5Fi1JpPsys/arch/m68k/include vmparam.h

   Enable __USE_TOPDOWN_VM; this was set on sun2 and sun3, but somehow
   forgotten on the rest of m68k.  (Seriously, why is this even optional?)

   Tested on both Utah and new pmap.
VersionDeltaFile
1.5+3-1sys/arch/m68k/include/vmparam.h
+3-11 files

NetBSD/src 2hrK4mrsys/arch/cesfic/include vmparam.h

   G/C obsolete DMMIN, DMMAX
VersionDeltaFile
1.29+1-11sys/arch/cesfic/include/vmparam.h
+1-111 files

NetBSD/src EI3S2nLsys/arch/cesfic/include vmparam.h

   G/C obsolete MACHINE_NEW_NONCONTIG
VersionDeltaFile
1.28+1-4sys/arch/cesfic/include/vmparam.h
+1-41 files

NetBSD/src hg45iKUsys/arch/luna68k/include vmparam.h, sys/arch/m68k/include vmparam.h

   Centralize the definition of VM_{MIN,MAX}_KERNEL_ADDRESS.
VersionDeltaFile
1.20+9-14sys/arch/sun2/include/vmparam.h
1.33+1-21sys/arch/news68k/include/vmparam.h
1.14+1-21sys/arch/virt68k/include/vmparam.h
1.33+1-20sys/arch/luna68k/include/vmparam.h
1.4+19-1sys/arch/m68k/include/vmparam.h
1.54+1-18sys/arch/mac68k/include/vmparam.h
+32-9514 files not shown
+83-21020 files

NetBSD/src neSNqposys/arch/x68k/x68k disksubr.c

   x68k: Initialize d_bbsize and d_sbsize on the disklabel always.
   These values are for (old) FFS, so it didn't make sense to initialize
   only when the BSD disklabel was missing and the Human68k partition existed.
   This avoids disklabel(8)'s warnings:
    disklabel: boot block size 0
    disklabel: super block size 0
   Inspired from PR install/59600.
VersionDeltaFile
1.38+5-4sys/arch/x68k/x68k/disksubr.c
+5-41 files

NetBSD/src 2391UH3usr.sbin/sysinst/arch/x68k md.c

   sysinst/x68k: Remove unnecessary conditions in md_disklabe_is_default().
   lp->d_bbsize and lp->d_sbsize should be constants (this is probably another
   bug) and should not be part of this check.
   Fix PR install/59600
   Should be pulled up -10 and -11.
VersionDeltaFile
1.14+2-4usr.sbin/sysinst/arch/x68k/md.c
+2-41 files