PR standards/49960 - note -c and -m are incompatible
Note, this is not really a standards issue, POSIX says:
If the -m option is specified, the number of characters shall
replace the <bytes> field in this format.
There is no output format in POSIX which permits both bytes and
characters to be specified, and since which value represents which
counter is determined entirely by position, which of bytes or
characters would come first if both were to be presented would be
indeterminate, so I won't be doing that.
Slightly different wording used than that suggested bty Sebastian Ritter
in the PR.
Pull up following revision(s) (requested by riastradh in ticket #2003):
tests/lib/libc/sys/t_sigtimedwait.c: revision 1.3
tests/lib/libc/sys/t_sigtimedwait.c: revision 1.4
tests/lib/libc/sys/t_sigtimedwait.c: revision 1.5
sys/kern/sys_sig.c: revision 1.59
sys/kern/sys_sig.c: revision 1.60
sys/kern/sys_sig.c: revision 1.61
t_sigtimedwait: Spruce up and add tests for interruption by signal.
PR standards/59586: sigwaitinfo() returns ECANCELED instead of EINTR
- POSIX compliance violation
sigtimedwait(2): Return EINTR, not ECANCELED.
The return value ECANCELED was a vestige of the logic to implement
sigtimedwait(2) in the SA (scheduler activations) era of NetBSD
[38 lines not shown]
Pull up following revision(s) (requested by mrg in ticket #181):
distrib/sets/lists/tests/mi: revision 1.1407
tests/usr.bin/cc/Makefile: revision 1.11
tests/usr.bin/cc/t_libm_cabs.sh: revision 1.1
add a test to confirm that __builtin_cabsl() is renamed to __c99_cabsl().
Pull up following revision(s) (requested by mrg in ticket #181):
external/gpl3/gcc.old/dist/gcc/config/ia64/ia64.cc: revision 1.2
external/gpl3/gcc.old/dist/gcc/config/alpha/alpha.cc: revision 1.2
external/gpl3/gcc.old/dist/gcc/config/mips/mips.cc: revision 1.2
external/gpl3/gcc.old/dist/gcc/config/m68k/m68k.cc: revision 1.2
external/gpl3/gcc.old/dist/gcc/config/sh/sh.cc: revision 1.2
external/gpl3/gcc.old/dist/gcc/config/sparc/sparc.cc: revision 1.2
external/gpl3/gcc.old/dist/gcc/config/riscv/riscv-builtins.cc: revision 1.2
external/gpl3/gcc.old/dist/gcc/config/arm/arm-builtins.cc: revision 1.2
external/gpl3/gcc.old/dist/gcc/config/pa/pa.cc: revision 1.2
(all applied to external/gpl3/gcc/dist/gcc/config, all via patch)
port the __c99_cabs*() rename fixes into GCC 12.
almost identical to the GCC 14 version, riscv-builtins.cc needed a new
Pull up following revision(s) (requested by skrll in ticket #179):
sys/arch/riscv/include/sbi.h: revision 1.2
sys/arch/riscv/riscv/sbi.c: revision 1.2
riscv: fix the SBI version 0.3 PMU FID define names
Pull up following revision(s) (requested by riastradh in ticket #178):
sys/dev/usb/if_urndis.c: revision 1.50
sys/dev/usb/usb.h: revision 1.125
sys/modules/if_urndis/if_urndis.ioconf: revision 1.2
usb.h: Provide definitions for USB class 0xef: miscellaneous.
Source: https://usb.org/defined-class-codeshttps://web.archive.org/web/20251216031858/https://usb.org/defined-class-codes
PR kern/59872: urndis(4): missing support for some devices
urndis(4): Match more interface ids.
There are some others we should consider too, based on what OpenBSD,
FreeBSD, and Linux match, but I haven't tested with these devices:
class subclass protocol
[22 lines not shown]
Pull up following revision(s) (requested by riastradh in ticket #1234):
sys/net/if_spppsubr.c: revision 1.273
PPP: bind the current thread to it's CPU for getting and setting addresses
Thanks to riastradh@ for the hint about the initial patch which started
this from knakahara@ in r1.260
Fixes PR kern/59675
Pull up following revision(s) (requested by riastradh in ticket #177):
sys/net/if_spppsubr.c: revision 1.273
PPP: bind the current thread to it's CPU for getting and setting addresses
Thanks to riastradh@ for the hint about the initial patch which started
this from knakahara@ in r1.260
Fixes PR kern/59675
Pull up following revision(s) (requested by riastradh in ticket #176):
usr.bin/man/man.1: revision 1.32
usr.bin/man/man.c: revision 1.74
PR/59625: Ingo Schwarze: Add a new -l flag that specifies to interpret
arguments as filenames, keeping the current behavior of interpreting
arguments as filenames if they begin with "/" "./" or "../" for compatibility.
In the future we can remove that.
Pull up following revision(s) (requested by riastradh in ticket #1233):
tests/lib/libc/sys/t_sigtimedwait.c: revision 1.3
tests/lib/libc/sys/t_sigtimedwait.c: revision 1.4
tests/lib/libc/sys/t_sigtimedwait.c: revision 1.5
sys/kern/sys_sig.c: revision 1.59
sys/kern/sys_sig.c: revision 1.60
sys/kern/sys_sig.c: revision 1.61
t_sigtimedwait: Spruce up and add tests for interruption by signal.
PR standards/59586: sigwaitinfo() returns ECANCELED instead of EINTR
- POSIX compliance violation
sigtimedwait(2): Return EINTR, not ECANCELED.
The return value ECANCELED was a vestige of the logic to implement
sigtimedwait(2) in the SA (scheduler activations) era of NetBSD
[38 lines not shown]
Pull up following revision(s) (requested by riastradh in ticket #175):
tests/lib/libc/sys/t_sigtimedwait.c: revision 1.3
tests/lib/libc/sys/t_sigtimedwait.c: revision 1.4
tests/lib/libc/sys/t_sigtimedwait.c: revision 1.5
sys/kern/sys_sig.c: revision 1.59
sys/kern/sys_sig.c: revision 1.60
sys/kern/sys_sig.c: revision 1.61
t_sigtimedwait: Spruce up and add tests for interruption by signal.
PR standards/59586: sigwaitinfo() returns ECANCELED instead of EINTR
- POSIX compliance violation
sigtimedwait(2): Return EINTR, not ECANCELED.
The return value ECANCELED was a vestige of the logic to implement
sigtimedwait(2) in the SA (scheduler activations) era of NetBSD
[38 lines not shown]
Pull up following revision(s) (requested by riastradh in ticket #174):
sys/kern/subr_time_arith.c: revision 1.6
sys/kern/kern_time.c: revision 1.229
itimer: Fix mistaken overflow prevention in overrun counting.
itimer_transition just returns the new number of overruns, doesn't
add to an existing number; it's the caller who must add to the
existing number, and avoid arithmetic overflow in that addition.
(Should maybe push the addition into itimer_transition but that
requires a little more work -- also it should maybe saturate at
DELAYTIMER_MAX rather than INT_MAX.)
While here, fix another arithmetic overflow in overrun counting in
ptimer_intr.
PR kern/58926: itimer(9) integer overflow in overrun counting
Pull up following revision(s) (requested by pgoyette in ticket #1232):
sys/dev/pci/if_rgereg.h: revision 1.18
sys/dev/pci/if_rge.c: revision 1.47
Catch up with upstream (OpenBSD)
Add support for RTL8125D revision 0x6890000
Pull up following revision(s) (requested by pgoyette in ticket #172):
sys/dev/pci/if_rgereg.h: revision 1.18
sys/dev/pci/if_rge.c: revision 1.47
Catch up with upstream (OpenBSD)
Add support for RTL8125D revision 0x6890000
Pull up following revision(s) (requested by kre in ticket #171):
bin/dd/dd.1: revision 1.40
bin/dd/dd.1: revision 1.41
bin/dd/args.c: revision 1.44
bin/dd/dd.c: revision 1.54
bin/dd/dd.1: revision 1.39
PR bin/59942 Fix handling of count=0
Apply (modified) patch from Andrus Suvalau in PR bin/59942
(The actual change is very simple)
This looks to have been broken since version 1.1 - simply short
circuiting processing because count==0 is wrong, there is much
else that needs to be done before copying nothing (including
verifying args that follow it).
It is almost certain that files=0 will need a similar change.
[11 lines not shown]
Pull up following revision(s) (requested by khorben in ticket #170):
sys/arch/amd64/conf/MICROVM: revision 1.5
sys/arch/amd64/amd64/locore.S: revision 1.234
sys/arch/x86/x86/x86_machdep.c: revision 1.160
sys/arch/amd64/amd64/genassym.cf: revision 1.100
sys/arch/amd64: support ramdisks when booting in GENPVH mode
This adds support for booting NetBSD/amd64 with QEMU's -kernel/-initrd
combination, in generic PVH mode (GENPVH). This includes the MICROVM
kernel, which now defaults to supporting modules and root on memory
disks.
This patch probes the first few bytes loaded in memory for
differentiating between modules, splash screens (PNG or JPEG), or
assumes filesystem images otherwise. It works with plain filesystem
images, but not with modules yet. Supporting any combination of
filesystem, modules or splash screen images should be possible in the
[5 lines not shown]
Pull up following revision(s) (requested by christos in ticket #2002):
sys/nfs/nfs_vnops.c: revision 1.326
sys/nfs/nfs_vnops.c: revision 1.327
prevent i being used if it is negative (0 does nothing). From OpenBSD
fix remote kernel memory disclosure (rlen can be negative)
https://github.com/iljavs/FreeBSD-Jail-Security-Research-Mirror/ slide 32