mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-14 07:19:40 +02:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user