From a879114734c7d0fdd54c58aacf925660a43a06ef Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 1 Apr 2026 14:29:39 +0100 Subject: lbutils: remove rw on_eintr functions. just use rw rw is enough. i unified everything there. next commit will remove rw_type and instead run positional i/o depending on whether the offset is zero. i'm simplifying the API a lot. Signed-off-by: Leah Rowe --- util/libreboot-utils/lib/rand.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'util/libreboot-utils/lib/rand.c') diff --git a/util/libreboot-utils/lib/rand.c b/util/libreboot-utils/lib/rand.c index 1591a3b0..a5617b18 100644 --- a/util/libreboot-utils/lib/rand.c +++ b/util/libreboot-utils/lib/rand.c @@ -165,8 +165,7 @@ retry_rand: { open_file_on_eintr("/dev/urandom", &fd, O_RDONLY, 0400, NULL); while (rw_retry(saved_errno, - rc = read_on_eintr(fd, - (unsigned char *)buf + off, n - off))); + rc = rw(fd, (unsigned char *)buf + off, n - off, 0, IO_READ))); #elif defined(__linux__) long rc; while (sys_retry(saved_errno, -- cgit v1.2.1