delorie.com/archives/browse.cgi | search |
Sender: | rich AT phekda DOT freeserve DOT co DOT uk |
Message-ID: | <3E31786E.9139EC4C@phekda.freeserve.co.uk> |
Date: | Fri, 24 Jan 2003 17:31:26 +0000 |
From: | Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk> |
X-Mailer: | Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586) |
X-Accept-Language: | de,fr |
MIME-Version: | 1.0 |
To: | djgpp-workers AT delorie DOT com |
Subject: | Re: _creatnew again [Was: Re: redirection problem with perl] |
References: | <200301241426 DOT PAA07035 AT lws256 DOT lu DOT erisoft DOT se> |
Reply-To: | djgpp-workers AT delorie DOT com |
Hello. Martin Stromberg wrote: > > > It seems that the extended open-create call has two distinct functions: > > > > (1) Create and open the file in whatever mode you specify. > > (2) Set the attributes to whatever you specify. > > > > It seems like (1) controls access through the returned descriptor and (2) > > controls subsequent access to the file (e.g.: after you've closed the > > descriptor). > > > > So it's possibly to open a file for read-write, but set the file's attributes > > to read-write. You can also create file & simultaneously open it for > ^^^^^^^^^^ read-only? Yes. I changed something just before I sent it. Obviously I didn't re-read the whole mail properly. Sorry. > > read-only/read-write/write-only and have it read-only subsequently (on disk). > > That's weird functionality! Yes, but potentially useful. > >From where does _creatnew() come from? I. e. with what are we > supposedly compatible? AFAIK nothing. Bye, Rich =] -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |