delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/11/29/04:31:23

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019