summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/include/common.h
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-28 08:09:14 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-28 08:09:14 +0000
commit49cac232d8e3cc6147a530d4f7971832f6b869b5 (patch)
treed8ac4490b6cd9fc1211bc4f1a7416f512a56beec /util/libreboot-utils/include/common.h
parent03dd3c289439e46ba0c5840cc7ab73b3c3fa60a3 (diff)
libreboot-utils: much stricter open() handling
abort on error, and do EINTR looping Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/include/common.h')
-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 d41c4a77..d9f327ee 100644
--- a/util/libreboot-utils/include/common.h
+++ b/util/libreboot-utils/include/common.h
@@ -545,6 +545,7 @@ int fs_rename_at(int olddirfd, const char *old,
int newdirfd, const char *new);
int fs_open(const char *path, int flags);
void free_and_set_null(char **buf);
+void open_on_eintr(char *path, int *fd, int flags, mode_t mode);
struct filesystem *rootfs(void);
int fs_resolve_at(int dirfd, const char *path, int flags);
int fs_next_component(const char **p,