libreboot-utils: unified errno handling on returns

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-28 08:32:27 +00:00
parent 49cac232d8
commit 4ecdadb7a6
5 changed files with 34 additions and 72 deletions
+1
View File
@@ -490,6 +490,7 @@ int try_err(int loop_err, int errval);
*/
void usage(void);
int set_errno(int saved_errno, int fallback);
void err_exit(int nvm_errval, const char *msg, ...);
func_t errhook(func_t ptr); /* hook function for cleanup on err */
const char *getnvmprogname(void);