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>
This commit is contained in:
Leah Rowe
2026-04-01 14:29:39 +01:00
parent 229a283604
commit a879114734
3 changed files with 35 additions and 115 deletions
+1 -2
View File
@@ -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,