- /** pointer to the data buffer */
- char *buf;
- /** number of bytes loaded in \a buf */
- size_t *loaded;
- /** pointer to the eof flag of the feeding task */
- int *input_eof;
- /** non-zero if a write error occured */
- int eof;
- /** the task structure */
- struct task task;
- /** whether \p STDOUT_FILENO was included in the write fd set */
- int check_fd;
+ /** The task structure used by the scheduler. */
+ struct task *task;
+ /** Stdout is always a leaf node in the buffer tree. */
+ struct btr_node *btrn;
+ /** The descriptor flags of STDOUT at startup. */
+ int fd_flags;
+ /** Whether we have to set STDOUT to nonblocking mode. */
+ bool must_set_nonblock_flag;