mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-16 03:25:25 +02:00
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 <leah@libreboot.org>
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user