diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-31 11:54:41 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-31 12:03:46 +0100 |
| commit | 277c0c8e87a1ad3012b606d17c8afc3e785f3d39 (patch) | |
| tree | bfd01b5ba92f683370ee23a596f87c594195f098 /config/coreboot/qemu_x86_12mb/target.cfg | |
| parent | aacf9fb6c9f6f364c8d1799b02f4d5fc0f63e98f (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/coreboot/qemu_x86_12mb/target.cfg')
0 files changed, 0 insertions, 0 deletions
