delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/03/19/13:32:09

Sender: rich AT phekda DOT freeserve DOT co DOT uk
Message-ID: <3E78AA1D.23720139@phekda.freeserve.co.uk>
Date: Wed, 19 Mar 2003 17:34:21 +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: 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>
Reply-To: djgpp-workers AT delorie DOT com

Hello.

Eli Zaretskii wrote:
> 
> > Date: Wed, 19 Mar 2003 12:56:09 +0000
> > From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
> >
> > > > Apparently stat doesn't return the same inode each time on Win2k/XP.
> > >
> > > OK.
> >
> > I don't think this will be difficult to fix. It would be similar to the
> > proposed fix for fstat.
> >
> > The fstat fix uses the stored file name from fd_props, which is the true
> > name of the original file name, then uses _invent_inode on that.
> 
> Then how will ``a similar fix'' for `stat' solve the problem?  `stat'
> already uses the real name of the file, right?
[snip]

Yup. So for stat'ing directories we use _truename on that and then
_invent_inode to invent an inode for it. This will ensure we always return the
same inode for directories. Admittedly I haven't looked particularly closely
at the code.

Bye, Rich =]

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]

- Raw text -


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