diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-28 08:09:14 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-28 08:09:14 +0000 |
| commit | 49cac232d8e3cc6147a530d4f7971832f6b869b5 (patch) | |
| tree | d8ac4490b6cd9fc1211bc4f1a7416f512a56beec /util/libreboot-utils/include | |
| parent | 03dd3c289439e46ba0c5840cc7ab73b3c3fa60a3 (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')
| -rw-r--r-- | util/libreboot-utils/include/common.h | 1 |
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, |
