/** \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 */
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;
};