Leah Rowe
18f39ab6fa
util/nvmutil: clean up rhex()
...
Signed-off-by: Leah Rowe <leah@libreboot.org >
2023-06-01 12:02:16 +01:00
Leah Rowe
4d91bcc2d7
util/nvmutil: check correct return value on close()
...
Signed-off-by: Leah Rowe <leah@libreboot.org >
2023-06-01 11:14:49 +01:00
Leah Rowe
c2c31677a3
util/nvmutil: massive code cleanup
...
Signed-off-by: Leah Rowe <leah@libreboot.org >
2023-06-01 11:11:15 +01:00
Leah Rowe
f0846134b7
util/nvmutil: move includes to nvmutil.h
...
Signed-off-by: Leah Rowe <leah@libreboot.org >
2023-06-01 08:48:39 +01:00
Leah Rowe
2dabafe691
util/nvmutil: move xpledge/xunveil to nvmutil.h
...
They don't precisely *pertain* to nvmutil, but they are
useful helper functions for calling pledge/unveil in
OpenBSD. Ideally, the main file should only contain core
logic pertaining to the execution of *nvmutil*.
Put xpledge() and xunveil() in nvmutil.h.
Signed-off-by: Leah Rowe <leah@libreboot.org >
2023-06-01 08:40:01 +01:00
Leah Rowe
9a3e651656
util/nvmutil: use SPDX license headers
...
Signed-off-by: Leah Rowe <leah@libreboot.org >
2023-06-01 08:31:08 +01:00
Leah Rowe
5d6af06a73
util/nvmutil: move non-functions to nvmutil.h
...
Signed-off-by: Leah Rowe <leah@libreboot.org >
2023-06-01 08:25:55 +01:00