maint: adjust to Gnulib safe_read etc. changes
commit586dfa995a7a3a65b629877ad58f7480805eff83
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 11 Aug 2024 02:30:46 +0000 (10 19:30 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 11 Aug 2024 06:00:33 +0000 (10 23:00 -0700)
tree3a4e9a07bfa4d4f9c1a6b4132b7e1559cbece62a
parent5b4741dbc231de5e7eea06e3c8e8d3f90fa63fd9
maint: adjust to Gnulib safe_read etc. changes

Although these patches don’t affect user-visible behavior,
they do clean up the source code a bit, and the
machine code should be a tiny bit more efficient.
* src/cat.c (simple_cat, cat):
* src/csplit.c (read_input):
* src/head.c (copy_fd, elide_tail_bytes_pipe)
(elide_tail_lines_pipe, elide_tail_lines_seekable, head_bytes)
(head_lines):
* src/install.c (have_same_content):
* src/tac-pipe.c (buf_init_from_stdin):
* src/tac.c (tac_seekable, copy_to_temp):
* src/tail.c (dump_remainder, file_lines, pipe_lines)
(pipe_bytes, start_bytes, start_lines, tail_forever_inotify):
* src/tr.c (plain_read):
Adjust to recent Gnulib changes by using new types
for safe_read, safe_write, full_read, full_write.
src/cat.c
src/csplit.c
src/head.c
src/install.c
src/tac-pipe.c
src/tac.c
src/tail.c
src/tr.c