summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-24 07:41:45 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-24 09:48:34 +0000
commitcce396a1ac3786b18f2c21d80c4e65e19481510d (patch)
tree0c6aea100e4254cd190640460ddaa39ce120a497 /util/libreboot-utils/include
parente7ede0c75570ddd57b9d55e33764c3bdd74274b1 (diff)
libreboot-utils: general code cleanup
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/include')
-rw-r--r--util/libreboot-utils/include/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/libreboot-utils/include/common.h b/util/libreboot-utils/include/common.h
index bdd625f8..b26448db 100644
--- a/util/libreboot-utils/include/common.h
+++ b/util/libreboot-utils/include/common.h
@@ -531,6 +531,8 @@ int fs_rename_at(int olddirfd, const char *old,
int newdirfd, const char *new);
int fs_open(const char *path, int flags);
void close_no_err(int *fd);
+void free_if_null(char **buf);
+int close_warn(int *fd, char *s);
struct filesystem *rootfs(void);
int fs_resolve_at(int dirfd, const char *path, int flags);
int fs_next_component(const char **p,
@@ -543,6 +545,8 @@ int openat2p(int dirfd, const char *path,
int flags, mode_t mode);
int mkdirat_on_eintr(int dirfd,
const char *pathname, mode_t mode);
+int if_err(int condition, int errval);
+int if_err_sys(int condition);
/* asserts */