Date: Mon, 29 Nov 93 09:27:55 +0100 From: hmuelner AT fiicmds03 DOT tu-graz DOT ac DOT at To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: O_BINARY 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