X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdin.h;h=ee03922e06bd06fe2bc21d4f447a72766fe13e9c;hp=b9ee68be23004924e3002421214319eebba35dec;hb=8b351937ccfe70a0837e77d691ebc240674fb6f8;hpb=fbcc28c36aa7d5e07874e473cbaf044124afd63b diff --git a/stdin.h b/stdin.h index b9ee68be..ee03922e 100644 --- a/stdin.h +++ b/stdin.h @@ -19,7 +19,7 @@ /** \file stdin.h the stdin task structure and exported symbols from stdin.c */ /** - * the task structure used when reading from stdin + * the task structure used for reading from stdin */ struct stdin_task { /** input buffer */ @@ -28,9 +28,11 @@ struct stdin_task { size_t bufsize; /** number of bytes currently loaded in \a buf */ size_t loaded; + /** whether \p STDIN_FILENO was included in the read fd set */ + int check_fd; /** the task structure */ struct task task; - /** non-zero if a read from stdin returned zero */ + /** non-zero on read error, or if a read from stdin returned zero */ int eof; };