Leah Rowe
7cc584fe0e
nvmutil: rename lseek_loop to lseek_on_eintr
...
that's what it does!
Signed-off-by: Leah Rowe <leah@libreboot.org >
2026-03-26 06:59:42 +00:00
Leah Rowe
f4ea610014
nvmutil: rename x_i_close to close_on_eintr
...
that's what it does. waits for eintr to stop firing
Signed-off-by: Leah Rowe <leah@libreboot.org >
2026-03-26 06:59:42 +00:00
Leah Rowe
d9f2aff95c
nvmutil: don't have finite eintr wait
...
this is technically incorrect. we don't control
faults in the hardware.
Signed-off-by: Leah Rowe <leah@libreboot.org >
2026-03-26 06:59:42 +00:00
Leah Rowe
81ac8eead9
nvmutil: rename x_i_fsync to fsync_on_eintr
...
that's what it does. waits on eintr.
Signed-off-by: Leah Rowe <leah@libreboot.org >
2026-03-26 06:59:42 +00:00
Leah Rowe
2ddb9019c8
util/rename: rename x_i_fsync
...
rename to fsync_on_eintr, because that's what it does
Signed-off-by: Leah Rowe <leah@libreboot.org >
2026-03-26 06:59:42 +00:00
Leah Rowe
861cc85580
nvmutil: remove memcmp/memcpy/strrchr/rename
...
i had this idea in my head of later porting this
to k&r c for fun. but screw it.
compiling on everything since 1989 is enough
Signed-off-by: Leah Rowe <leah@libreboot.org >
2026-03-26 06:59:42 +00:00
Leah Rowe
1b82927843
util/nvmutil: tidy up includes
...
Signed-off-by: Leah Rowe <leah@libreboot.org >
2026-03-26 06:59:42 +00:00
Leah Rowe
aff629f571
util/nvmutil: major cleanup
...
handle init in xstatus()
it's now a singleton design
also tidied up some other code
also removed todo.c. bloat.
will do all those anyway.
too much change. i just kept
touching the code until it
looked good
Signed-off-by: Leah Rowe <leah@libreboot.org >
2026-03-26 06:59:42 +00:00
Leah Rowe
a5a4e3d215
nvmutil: move lib files to lib/
...
only keep nvmutil.c in main
Signed-off-by: Leah Rowe <leah@libreboot.org >
2026-03-26 06:59:42 +00:00