summaryrefslogtreecommitdiff
path: root/config/ifd
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-31 11:54:41 +0100
committerLeah Rowe <leah@libreboot.org>2026-03-31 12:03:46 +0100
commit277c0c8e87a1ad3012b606d17c8afc3e785f3d39 (patch)
treebfd01b5ba92f683370ee23a596f87c594195f098 /config/ifd
parentaacf9fb6c9f6f364c8d1799b02f4d5fc0f63e98f (diff)
lbutils/file: don't reset errno on successful io
some io syscalls may set errno on success. this patch honours that. we try to preserve caller errno, but it is important for debugging not to clobber it. if fs_err_retry errs, then we don't reset errno. if fs_err is successful but errno wasn't set, we restore caller errno. this is done by setting errno to zero in callers, which also restore caller errno. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config/ifd')
0 files changed, 0 insertions, 0 deletions