summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-14 01:04:03 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-14 01:04:03 +0000
commitad44c1f9b4b6a1da371ec2687fad88372db54e0e (patch)
tree7e436dad05a91e942933743076e41c6ae6e5ac24 /util
parent3cb7508ec7dcbc715c1c1bf9452bb7e0ad5ff8c1 (diff)
util/nvmutil: rename lseek_eintr
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c10
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;