- /** Pointer to the data buffer. */
- char *buf;
- /** Number of bytes loaded in \a buf. */
- size_t *loaded;
- /** Pointer to the error variable of the feeding task. */
- int *input_error;
- /** Non-zero if a write error occurred. */
- int error;
- /** 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;