9 void stdout_pre_select(struct sched *s, struct task *t)
11 struct stdout_task *sot = t->private_data;
18 para_fd_set(STDOUT_FILENO, &s->wfds, &s->max_fileno);
21 void stdout_post_select(struct sched *s, struct task *t)
23 struct stdout_task *sot = t->private_data;
29 t->ret = -E_STDOUT_EOF;
32 if (!FD_ISSET(STDOUT_FILENO, &s->wfds))
34 t->ret = -E_STDOUT_WRITE;
35 ret = write(STDOUT_FILENO, sot->buf, *sot->loaded);