http_recv: set the eof flag on buffer overruns.
[paraslash.git] / stdout.h
index f02483d1d9b286d3421b55d94e171952c7b33f50..4dafafdec596d3ff60fd70dbc2291482165f71d0 100644 (file)
--- a/stdout.h
+++ b/stdout.h
@@ -1,11 +1,14 @@
+/** \file stdout.h common code for uitlities that write to stdout */
 struct stdout_task {
        char *buf;
        size_t *bufsize;
        size_t *loaded;
-       int *eof;
+       int *input_eof;
+       int eof;
        struct task task;
        int check_fd;
 };
 
 void stdout_pre_select(struct sched *s, struct task *t);
 void stdout_post_select(struct sched *s, struct task *t);
+void stdout_set_defaults(struct stdout_task *sot);