diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-04-01 14:29:39 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-04-01 14:29:39 +0100 |
| commit | a879114734c7d0fdd54c58aacf925660a43a06ef (patch) | |
| tree | d13f4951b92a19d31680c61b61177891a8d33b36 /util/libreboot-utils/lib/rand.c | |
| parent | 229a2836045d102423688c3af259aab5dfbf520c (diff) | |
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 <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/lib/rand.c')
| -rw-r--r-- | util/libreboot-utils/lib/rand.c | 3 |
1 files changed, 1 insertions, 2 deletions
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, |
