delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/11/29/10:36:44

Date: Mon, 29 Nov 93 09:58:18 -0500
From: DJ Delorie <dj AT ctron DOT com>
To: hmuelner AT fiicmds03 DOT tu-graz DOT ac DOT at
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: 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.

Such a variable already exists, and functions as you describe.  The
default, as in Borland C, is O_TEXT.

> And there should be an environment (or go32) variable to initialize it.

No.  This would globally affect all programs.

> 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.

This would cause output on most programs.  Even DOS does not detect or
warn about this.


- Raw text -


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