delorie.com/archives/browse.cgi | search |
Date: | Fri, 17 Aug 2001 11:58:53 +0300 |
From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
Sender: | halo1 AT zahav DOT net DOT il |
To: | sandmann AT clio DOT rice DOT edu |
Message-Id: | <6480-Fri17Aug2001115852+0300-eliz@is.elta.co.il> |
X-Mailer: | Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 |
CC: | djgpp-workers AT delorie DOT com, acottrel AT ihug DOT com DOT au |
In-reply-to: | <10108170329.AA12403@clio.rice.edu> (sandmann@clio.rice.edu) |
Subject: | Re: Win2K : what about _creat* ? |
References: | <10108170329 DOT AA12403 AT clio DOT rice DOT edu> |
Reply-To: | djgpp-workers AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp-workers AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) > Date: Thu, 16 Aug 2001 22:29:09 -0500 (CDT) > > + if(_osmajor == 5 && _USE_LFN && _dos_get_version(1) == 0x532) > + { > + _close(r.x.ax); > + return _open(filename, 2); > + } I suggest the other way around: open first, then close the LFN handle. This way, you minimize the risk of something removing the file in between. (You might need to fsync the handle before the call to _open, though.) > Thoughts? 5 lines of code for each one, and it puts all the work on > the _open already written. I agree.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |