From ac04a5f50abdbf241d14bce845051051eb80b137 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 29 Mar 2026 14:15:34 +0100 Subject: libreboot-utils/lib: loop eintr on [p]read/[p]write i forgot to do this! with this, I/O should be bullet proof now. i already loop this on other I/O commands. Signed-off-by: Leah Rowe --- util/libreboot-utils/include/common.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'util/libreboot-utils/include') diff --git a/util/libreboot-utils/include/common.h b/util/libreboot-utils/include/common.h index aa5d043a..0ccc02aa 100644 --- a/util/libreboot-utils/include/common.h +++ b/util/libreboot-utils/include/common.h @@ -482,6 +482,14 @@ ssize_t rw_over_nrw(ssize_t r, size_t nrw); off_t lseek_on_eintr(int fd, off_t off, int whence, int loop_eagain, int loop_eintr); int try_err(int loop_err, int errval); +ssize_t read_on_eintr(int fd, + void *buf, size_t count); +ssize_t write_on_eintr(int fd, + void *buf, size_t count); +ssize_t pread_on_eintr(int fd, + void *buf, size_t count, off_t off); +ssize_t pwrite_on_eintr(int fd, + void *buf, size_t count, off_t off); /* Error handling and cleanup */ -- cgit v1.2.1