mirror_zfs/lib/libspl
Alexander Motin 2e09f166f0 FreeBSD: Fix uninitialized variable error
On FreeBSD errno is defined as (* __error()), which means compiler
can't say whether two consecutive reads will return the same.
And without this knowledge the reported error is formally right.

Caching of the errno in local variable fixes the issue.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Rob Norris <robn@despairlabs.com>
Signed-off-by: Alexander Motin <alexander.motin@TrueNAS.com>
Closes #17975
2025-12-10 10:21:29 -08:00
..
include libspl: hide zfs_tunable_* symbols 2025-11-12 13:07:32 -08:00
os Validate mountpoint on path-based unmount using statx 2025-07-08 22:10:00 -04:00
assert.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
atomic.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
backtrace.c Support using llvm-libunwind 2025-04-24 13:58:48 -04:00
getexecname.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
libspl_impl.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
list.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
Makefile.am Fix atomic-alignment warnings in libspl on FreeBSD/i386 2025-09-17 16:34:19 -07:00
mkdirp.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
page.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
strlcat.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
strlcpy.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
timestamp.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
tunables.c FreeBSD: Fix uninitialized variable error 2025-12-10 10:21:29 -08:00