Date: Wed, 1 Apr 1998 22:55:35 +0530 (IST) From: "Mahadevan R." Reply-To: mdevan AT iname DOT com To: Eli Zaretskii Cc: djgpp AT delorie DOT com Subject: Re: "bash"ing "cat"s. In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk > Bit 6 cleared means that stdin is NOT at EOF. Does that mean that normal > reads from stdin always return bit 6 set (i.e. stdin IS at EOF)? The Interrupt List also says bit 6 is "EOF on input", but.. -- isbuggy.c -------------- #include #include int main() { printf((ioctl(0, DOS_GETDEVDATA) & 0x40) ? "set\n" : "clr\n"); return 0; } --------------------------- ..seems to contradict this. It prints "clr" when in buggy state.