delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/05/08/12:25:55

Message-ID: <3371FE0C.172C@bo.dada.it>
Date: Thu, 08 May 1997 18:23:41 +0200
From: Diego Zuccato <dz AT bo DOT dada DOT it>
Organization: CyberSpace Software Labs BBS
MIME-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
CC: djgpp-workers AT delorie DOT com
Subject: Re: write() modified to handle __FSEXT funcs on text files
References: <Pine DOT SUN DOT 3 DOT 91 DOT 970508165206 DOT 21083B-100000 AT is>

Eli Zaretskii wrote:
> Now, when you say open ("blabla", O_RDONLY | O_BINARY), all systems will
> be happy.
> If you want to be friendly to Win32 compilers, check for _O_BINARY and
> define O_BINARY to be _O_BINARY if O_BINARY isn't defined.
Code copied to clipboard :-)
Tks.

[...]
> same person both decides how to open the file and installs his/her FSEXT
> hook.
Ok. I'll modify it to have a conversion only in 'normal' files...

> I think that conversion NL -> CR-LF is so easy that any FSEXT hook that
> really needs it could do it by itself.  So I say: don't bother with
> conversion, let the hook do it.
OK. Do you think this implies a change in the documentation ?
I think it could be better... At least to avoid people complaining...

- Raw text -


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