Files
coreutils/src
Collin Funk 9b855166ed tee: prefer file descriptors over streams
We disable buffering on the streams anyways, so we were effectively
calling the write system call previously despite using streams.

* src/iopoll.h (fclose_wait, fwrite_wait): Remove declarations.
(close_wait, write_wait): Add declarations.
* src/iopoll.c (fwait_for_nonblocking_write, fclose_wait, fwrite_wait):
Remove functions.
(wait_for_nonblocking_write): New function based on
fwait_for_nonblocking_write.
(close_wait): New function based on fclose_wait.
(write_wait): New function based on fwrite_wait.
* src/tee.c: Include fcntl--.h. Don't include stdio--.h.
(get_next_out): Operate on file descriptors instead of streams.
(fail_output): Likewise. Remove clearerr call since we no longer call
fwrite on stdout.
(tee_files): Operate on file descriptors instead of streams. Remove
calls to setvbuf.
2026-03-15 15:32:08 -07:00
..
2026-01-18 15:55:38 +00:00
2026-01-18 15:55:38 +00:00
2026-02-27 16:18:32 -08:00
2026-02-27 16:18:32 -08:00
2026-02-27 16:18:32 -08:00
2026-02-27 16:18:32 -08:00
2026-02-27 16:18:32 -08:00
2026-02-27 16:18:32 -08:00
2026-01-18 15:55:38 +00:00
2026-01-18 15:55:38 +00:00
2026-01-18 15:55:38 +00:00
2026-01-21 13:51:58 +00:00
2026-02-19 21:01:10 -08:00
2026-01-25 19:08:53 -08:00
2026-01-01 10:56:16 -08:00
2026-02-19 21:34:03 -08:00
2026-01-01 10:56:16 -08:00
2026-02-28 19:13:42 -08:00
2026-02-17 18:45:33 -08:00
2005-07-18 07:52:37 +00:00
2026-02-19 21:40:44 -08:00
2026-01-18 15:55:38 +00:00
2026-01-18 15:55:38 +00:00
2026-02-27 16:18:32 -08:00
2026-02-27 16:18:32 -08:00
2026-01-01 10:56:16 -08:00
2003-07-06 06:08:40 +00:00
2026-01-18 15:55:38 +00:00
2026-02-19 20:36:47 -08:00
2025-05-12 01:28:48 -07:00
2026-03-09 13:14:54 +00:00
2026-02-19 20:36:40 -08:00
2026-02-09 22:30:48 -08:00
2026-02-06 13:37:58 +00:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-18 15:55:38 +00:00
2026-01-01 10:56:16 -08:00
2026-01-18 15:55:38 +00:00
2026-01-01 10:56:16 -08:00
2026-02-19 20:53:20 -08:00
2026-03-06 20:39:38 -08:00
2025-07-09 17:12:40 -07:00
2026-02-27 16:50:36 -08:00
2026-01-01 10:56:16 -08:00
2026-02-27 16:18:32 -08:00
2026-02-27 16:18:32 -08:00
2026-03-10 20:14:42 +00:00
2026-01-18 15:55:38 +00:00
2026-02-19 21:08:43 -08:00
2026-01-18 15:55:38 +00:00
2026-01-01 10:56:16 -08:00
2026-03-04 23:40:03 -08:00
2026-02-19 20:35:19 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-02-19 21:11:27 -08:00
2026-02-14 14:48:45 -08:00