From 6d9f162f5b649c68e95a534a06339a83ddfe621c Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 31 Mar 2026 12:22:42 +0100 Subject: lbutils/file: only support real pread/pwrite the portable version was written for fun, but it's bloat, and makes the code hard to read. every unix since about 2005 has these functions. Signed-off-by: Leah Rowe --- util/libreboot-utils/lib/command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/libreboot-utils/lib/command.c') diff --git a/util/libreboot-utils/lib/command.c b/util/libreboot-utils/lib/command.c index 3ee75628..16ca8346 100644 --- a/util/libreboot-utils/lib/command.c +++ b/util/libreboot-utils/lib/command.c @@ -496,8 +496,8 @@ cat_buf(unsigned char *b) err_exit(errno, "null pointer in cat command"); if (rw_file_exact(STDOUT_FILENO, b, - GBE_PART_SIZE, 0, IO_WRITE, LOOP_EAGAIN, LOOP_EINTR, - MAX_ZERO_RW_RETRY, OFF_ERR) < 0) + GBE_PART_SIZE, 0, IO_WRITE, MAX_ZERO_RW_RETRY, OFF_ERR) + < 0) err_exit(errno, "stdout: cat"); } void -- cgit v1.2.1