Date: Sun, 18 Feb 2001 08:38:59 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: "Mark E." cc: djgpp-workers AT delorie DOT com Subject: Re: O_TEMPORARY In-Reply-To: <3A8F26A1.10071.80A22F@localhost> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk On Sun, 18 Feb 2001, Mark E. wrote: > > That > is, simply record each open file in the per-handle array that you > > invented for the O_TEMPORARY feature, even if it is not open with > > O_TEMPORARY. > > If we go this way, then let's take it one step further and have it store the > flags used to open the file with, a flag for 'seek past eof', etc. so it can > be used by many file handling routines and not just the O_TEMPORARY ones. ...and add O_TEMPORARY support to fcntl, and let fstat know about the per-fd info, so it could easily fetch the file's name and hash it for _invent_inode without going through the hoops of undocumented features, and... I just didn't think I should throw all those ideas on you, but maybe you feel like doing all that, too ;-)