diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-14 01:04:03 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-26 06:59:41 +0000 |
| commit | 0cceb5886777faea68b266e76d47c7e603ec9ae6 (patch) | |
| tree | 5a645e364c65e784abeb086934ad7847483440e8 /util/nvmutil/nvmutil.c | |
| parent | 8a7d73c223a3d31c0750143086f797368132ca54 (diff) | |
util/nvmutil: rename lseek_eintr
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 75234fc7..6264537f 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -337,7 +337,7 @@ static ssize_t rw_file_once(int fd, u8 *mem, size_t len, static ssize_t prw(int fd, void *mem, size_t nrw, off_t off, int rw_type, int loop_eagain, int loop_eintr); static int rw_over_nrw(ssize_t r, size_t nrw); -static off_t lseek_eintr(int fd, off_t off, +static off_t lseek_loop(int fd, off_t off, int whence, int loop_eagain, int loop_eintr); static int try_err(int loop_err, int errval); @@ -1742,10 +1742,10 @@ try_rw_again: if (flags & O_APPEND) goto err_prw; - if ((off_orig = lseek_eintr(fd, (off_t)0, SEEK_CUR, + if ((off_orig = lseek_loop(fd, (off_t)0, SEEK_CUR, loop_eagain, loop_eintr)) == (off_t)-1) r = -1; - else if (lseek_eintr(fd, off, SEEK_SET, + else if (lseek_loop(fd, off, SEEK_SET, loop_eagain, loop_eintr) == (off_t)-1) r = -1; @@ -1761,7 +1761,7 @@ try_rw_again: || errno == try_err(loop_eagain, EAGAIN))); saved_errno = errno; - if (lseek_eintr(fd, off_orig, SEEK_SET, + if (lseek_loop(fd, off_orig, SEEK_SET, loop_eagain, loop_eintr) == (off_t)-1) { if (r < 0) errno = saved_errno; @@ -1819,7 +1819,7 @@ err_rw_over_nrw: } static off_t -lseek_eintr(int fd, off_t off, int whence, +lseek_loop(int fd, off_t off, int whence, int loop_eagain, int loop_eintr) { off_t old = -1; |
