crypt: Rename init_random_seed_or_die() -> crypt_init().
[paraslash.git] / stdout.h
1 /* Copyright (C) 2006 Andre Noll <maan@tuebingen.mpg.de>, see file COPYING. */
2
3 /** \file stdout.h Writing to stdout via buffer trees. */
4
5 /**
6  * The task structure used for writing to stdout.
7  *
8  * This is used by para_recv, para_filter and para_client.
9  */
10 struct stdout_task {
11         /** The task structure used by the scheduler. */
12         struct task *task;
13         /** Stdout is always a leaf node in the buffer tree. */
14         struct btr_node *btrn;
15         /** The descriptor flags of STDOUT at startup. */
16         int fd_flags;
17         /** Whether we have to set STDOUT to nonblocking mode. */
18         bool must_set_nonblock_flag;
19 };
20
21 void stdout_task_register(struct stdout_task *sot, struct sched *s);