Mail Archives: djgpp/1993/11/29/04:31:23
Dear DJ,
the main task in porting unix programs to DJGPP is inserting O_BINARY
in fopens and setmode(fileno(stdin/out), O_BINARY).
I would like to suggest a method similar to that used by Borland:
To have a global variable _fmode with the two values O_BINARY
(perhaps default) and O_TEXT which controls CR/LF translation.
And there should be an environment (or go32) variable to initialize it.
Another great help for porting unix programs would be a possibility
to detect (e.g. warning to stderr or similar) opens with filenames
longer than 8+3 characters.
H.Muelner,
big admirer of DJGPP
- Raw text -