mirror_zfs/include/os/freebsd
Jessica Clarke bfb276e55c
freebsd: Fix TIMESPEC_OVERFLOW for PowerPC
Once upon a time, 32-bit PowerPC did indeed have a 32-bit time_t, but
FreeBSD 12.0 switched to a 64-bit time_t for PowerPC as an ABI break,
which predates the addition of FreeBSD support to OpenZFS. Moreover,
64-bit PowerPC has existed since FreeBSD 9.0, where __powerpc__ is also
defined (alongside __powerpc64__ to disambiguate), which has always had
a 64-bit time_t. This code has therefore always been wrong for all
PowerPC variants. Fix this by limiting the 32-bit case to just i386,
which is the only architecture in FreeBSD to have a 32-bit time_t and
not have broken ABI, due to its special legacy compatibility status.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Signed-off-by: Jessica Clarke <jrtc27@jrtc27.com>
Closes #18217
Closes #18218
2026-02-17 16:46:02 -08:00
..
linux SPDX: license tags: BSD-2-Clause 2025-03-13 17:56:46 -07:00
spl freebsd: Fix TIMESPEC_OVERFLOW for PowerPC 2026-02-17 16:46:02 -08:00
zfs/sys debug: move all of the debug bits out of the spl 2025-11-12 10:02:51 -08:00
Makefile.am build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00