opnsense-src/lib/libdiff
Dag-Erling Smørgrav b97396baca libdiff: Simplify truncation detection
* Adjust the comment to reflect the fact that SIGBUS can occur not only
  if the file is truncated, but also if an I/O error occurs while paging
  in any part of it.

* Instead of setting a flag, just return EIO.

* Adjust the unit test accordingly.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	thj, kevans
Differential Revision:	https://reviews.freebsd.org/D55108

(cherry picked from commit a689bfa4e25af8307709dc12f75b0e02a65abf18)
2026-02-10 14:24:07 +00:00
..
tests libdiff: Simplify truncation detection 2026-02-10 14:24:07 +00:00
Makefile */*: remove recallocarray() compat shims following import into libc 2025-12-12 11:37:07 +01:00