Sender: rich AT phekda DOT freeserve DOT co DOT uk Message-ID: <3E8182BC.542718B2@phekda.freeserve.co.uk> Date: Wed, 26 Mar 2003 10:36:44 +0000 From: Richard Dawe 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: DJGPP 2.04 release? [Was: Re: nmalloc revisited] References: <10303182107 DOT AA24101 AT clio DOT rice DOT edu> <3E7868E9 DOT 19949F8E AT phekda DOT freeserve DOT co DOT uk> <9003-Wed19Mar2003174940+0200-eliz AT elta DOT co DOT il> <3E78AA1D DOT 23720139 AT phekda DOT freeserve DOT co DOT uk> <3405-Wed19Mar2003223319+0200-eliz AT elta DOT co DOT il> <3E78D73C DOT 3B41ECF AT phekda DOT freeserve DOT co DOT uk> <7263-Thu20Mar2003061743+0200-eliz AT elta DOT co DOT il> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Hello. Eli Zaretskii wrote: > > > Date: Wed, 19 Mar 2003 20:46:52 +0000 > > From: Richard Dawe > > > > We could modify stat to use _invent_inode for directories, so that it > > generates the same inode every time it is called for the directory. We > > would use _invent_inode, because we cannot rely on the current method > > (on Win2k/XP) to return the same inode each time. > > Are you saying that the current code does _not_ invent inodes on > Windows/XP? I'd be surprised, I thought we invent inodes for any > kind of files on all the versions of Windows except 3.1. It invents inodes on Windows '98 SE. Maybe _ioctl_get_first_cluster can get an inode on Win2k/XP, but doesn't return consistent results? That would be weird, but it seems possible. > > To ensure that we get the same inode, we > > would also have to ensure that we pass the same filename to _invent_inode. > > So the directory's filename would need to be fixed using _truename. > > I thought `stat' already calls _truename and the result is passed to > _invent_inode, isn't that true? Yes, that is true. I think someone with Win2k/XP needs to investigate this more. The original e-mail is linked from the DJGPP 2.04 status page: http://www.phekda.freeserve.co.uk/richdawe/djgpp/2.04/status204.html Here's the link for convenience: http://www.delorie.com/archives/browse.cgi?p=djgpp-workers/2002/10/28/17:03:21 I'd do it myself, but I don't have Win2k/XP. Bye, Rich =] -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]