+ t->error = 0;
+ if (!sot->check_fd) {
+ if (sz == 0 && btr_no_parent(sot->btrn)) {
+ t->error = -E_ORPHAN;
+ goto err;
+ }
+ return;
+ }
+ if (!FD_ISSET(STDOUT_FILENO, &s->wfds))
+ return;
+ sz = btr_next_buffer(sot->btrn, &buf);
+ if (sz == 0)
+ return;
+ ret = write_nonblock(STDOUT_FILENO, buf, sz, 0);
+ if (ret < 0) {
+ t->error = -ERRNO_TO_PARA_ERROR(errno);
+ goto err;
+ }
+ btr_consume(sot->btrn, ret);
+ return;
+err:
+ btr_del_node(sot->btrn);
+}
+/**
+ * Initialize a stdout task structure with default values.
+ *
+ * \param sot The stdout task structure.
+ *
+ * This fills in the pre/post select function poinzters of the task structure
+ * given by \a sot.
+ */