Hello Rugxulo,
It wasn't clear what is not buffered. Is TurboC 2.0.1 itself (the compiler,
linker, make, etc.)? Or TurboC 2.0.1's runtime?
It's been a while since I've looked into it. I'm not quite a true
standards expert (BUFSIZ ??), so my understanding is limited.
But I meant runtime as in default file buffering (fread, setbuf).
An intriguing finding.
The "reason" --- as far as I can make it out from the <stdio.h> header
and debugger dumps of the _streams[] array --- seems to be this: the TC
runtime code did not properly distinguish between a line-buffered or
fully buffered stream whose buffer has not been allocated (e.g. in
setvbuf(stdout, NULL, _IOLBF, 0)), and a stream which has explicitly
been marked unbuffered (_IONBF).
Thank you!
--
https://github.com/tkchia
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel