Mail Archives: djgpp/1998/04/01/12:19:47
> 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 <stdio.h>
#include <sys/ioctl.h>
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.
- Raw text -