summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/lib/command.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-31 12:22:42 +0100
committerLeah Rowe <leah@libreboot.org>2026-03-31 12:22:42 +0100
commit6d9f162f5b649c68e95a534a06339a83ddfe621c (patch)
tree2ec5b7a525ef11d674eba117d54d4f0f4fbccdc6 /util/libreboot-utils/lib/command.c
parenta7695375549797a2894546d51ab8c8c3b093f8a8 (diff)
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 <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/lib/command.c')
-rw-r--r--util/libreboot-utils/lib/command.c4
1 files changed, 2 insertions, 2 deletions
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