summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/include/common.h
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-04-01 17:43:43 +0100
committerLeah Rowe <leah@libreboot.org>2026-04-01 17:43:43 +0100
commit736a2504bbe1014fc2804c311e10b72826a71b74 (patch)
tree9817b918ea51d671a283042dbd814940f0d97f17 /util/libreboot-utils/include/common.h
parent249ae57c295c94f4d244251bf5639be305ab2528 (diff)
lbutils/file: don't loop EINTR on close()
state is undefined after EINTR. just abort universally. 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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/libreboot-utils/include/common.h b/util/libreboot-utils/include/common.h
index de643402..7d566d70 100644
--- a/util/libreboot-utils/include/common.h
+++ b/util/libreboot-utils/include/common.h
@@ -525,7 +525,7 @@ int secure_file(int *fd,
int check_seek,
int do_lock,
mode_t mode);
-void close_on_eintr(int *fd);
+void xclose(int *fd);
int fsync_on_eintr(int fd);
int fs_rename_at(int olddirfd, const char *old,
int newdirfd, const char *new);