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
2025-11-19 19:23:36 -08:00
2026-01-21 13:51:40 +00:00
2026-01-28 11:25:36 -08:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-02-19 20:39:41 -08:00
2025-12-20 17:25:32 -08:00
2025-12-20 17:25:32 -08:00
2026-03-04 23:34:45 -08:00
2026-01-18 15:55:38 +00:00
2026-03-04 23:34:45 -08:00
2025-12-20 17:25:32 -08:00
2026-01-21 13:51:40 +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-03-10 16:18:29 +00:00
2025-12-13 17:18:47 +00:00
2026-02-19 21:18:41 -08:00
2026-01-18 15:55:38 +00:00
2026-01-30 14:12:12 +00:00
2026-01-18 15:55:38 +00:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-21 13:51:40 +00:00
2026-01-18 15:55:38 +00:00
2022-01-31 12:07:39 -08:00
2026-01-21 13:51:58 +00:00
2026-02-19 21:22:17 -08: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-03-12 21:19:33 +00:00
2026-02-19 21:34:03 -08:00
2026-01-21 13:51:40 +00:00
2026-01-01 10:56:16 -08:00
2026-01-21 13:51:40 +00:00
2026-01-01 10:56:16 -08:00
2026-02-28 19:13:42 -08:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-01-28 11:25:36 -08:00
2026-01-21 13:51:40 +00:00
2026-03-10 16:30:52 +00:00
2026-02-17 18:45:33 -08:00
2026-01-01 10:56:16 -08:00
2026-01-21 13:51:40 +00:00
2005-07-18 07:52:37 +00:00
2026-02-04 16:42:26 -08:00
2026-01-01 10:56:16 -08:00
2026-02-19 21:40:44 -08:00
2026-03-10 16:30:52 +00:00
2026-01-18 15:55:38 +00:00
2021-10-31 22:36:46 -07:00
2026-02-10 12:24:17 +00:00
2026-01-18 15:55:38 +00:00
2026-01-01 10:56:16 -08:00
2026-02-27 16:18:32 -08:00
2026-02-19 20:36:56 -08:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-02-27 16:18:32 -08:00
2026-03-04 18:42:48 -08:00
2026-01-01 10:56:16 -08:00
2026-03-15 15:32:08 -07:00
2026-03-15 15:32:08 -07:00
2026-03-10 16:30:52 +00:00
2026-01-21 13:51:40 +00:00
2003-07-06 06:08:40 +00:00
2026-01-18 15:55:38 +00:00
2026-01-21 13:51:40 +00:00
2026-02-19 20:36:47 -08:00
2026-02-18 20:09:44 -08:00
2026-01-21 13:51:40 +00:00
2025-05-12 01:28:48 -07:00
2025-12-20 17:25:32 -08:00
2025-12-20 17:25:32 -08:00
2025-12-20 17:25:32 -08:00
2026-03-09 13:14:54 +00:00
2025-12-20 17:25:32 -08:00
2026-01-01 10:56:16 -08:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-02-19 20:36:40 -08:00
2026-01-21 13:51:40 +00:00
2026-01-24 13:49:03 +00:00
2026-03-10 16:30:52 +00:00
2024-05-05 17:50:28 +01:00
2026-01-21 13:51:40 +00:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-02-19 20:49:40 -08:00
2026-01-21 13:51:40 +00:00
2026-02-09 22:30:48 -08:00
2026-02-06 13:37:58 +00:00
2026-01-21 13:51:40 +00:00
2026-02-19 21:42:35 -08:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-21 13:51:40 +00:00
2026-02-16 10:45:45 +00:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +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-21 13:51:40 +00:00
2026-02-19 20:35:35 -08:00
2026-01-21 13:51:40 +00: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-01-21 13:51:39 +00:00
2026-01-01 10:56:16 -08:00
2025-11-03 13:00:32 +00:00
2024-05-05 17:50:14 +01:00
2026-03-06 20:39:38 -08:00
2026-02-21 19:20:07 -08:00
2026-01-21 13:51:40 +00:00
2026-02-19 21:37:15 -08:00
2025-07-09 17:12:40 -07:00
2026-02-19 21:28:40 -08:00
2026-02-27 16:50:36 -08:00
2026-01-01 10:56:16 -08:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-02-27 16:18:32 -08:00
2026-02-27 16:18:32 -08:00
2026-01-21 13:51:40 +00: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-02-19 21:24:54 -08:00
2026-03-15 15:32:08 -07:00
2026-01-18 15:55:38 +00:00
2023-07-18 23:10:40 +01:00
2025-11-22 12:43:28 +00:00
2026-01-01 10:56:16 -08:00
2026-01-21 13:51:40 +00:00
2026-03-13 20:37:10 -07:00
2026-03-04 23:40:03 -08:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-02-19 20:35:19 -08:00
2025-12-20 17:25:32 -08:00
2025-12-20 17:25:32 -08:00
2026-01-21 13:51:40 +00:00
2025-12-20 17:25:32 -08:00
2026-03-10 16:30:52 +00:00
2026-03-10 16:30:52 +00:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-01-21 13:51:40 +00:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-03-09 20:06:07 -07:00
2026-02-19 21:11:27 -08:00
2026-02-18 20:09:44 -08:00
2026-02-14 14:48:45 -08:00
2026-01-21 13:51:40 +00:00
2026-03-10 18:13:34 +00:00