summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-28 08:32:27 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-28 08:32:27 +0000
commit4ecdadb7a601b0613e65bf8547d17b39ed87153f (patch)
tree2f29c2b6adc0b2891ceed08541b8c4645df2c413 /util/libreboot-utils/include
parent49cac232d8e3cc6147a530d4f7971832f6b869b5 (diff)
libreboot-utils: unified errno handling on returns
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/include')
-rw-r--r--util/libreboot-utils/include/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/libreboot-utils/include/common.h b/util/libreboot-utils/include/common.h
index d9f327ee..e8252d4b 100644
--- a/util/libreboot-utils/include/common.h
+++ b/util/libreboot-utils/include/common.h
@@ -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);