This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: New rename(2) function
On Aug 1 18:25, Eric Blake wrote:
> According to Corinna Vinschen on 8/1/2007 3:03 PM:
> >>> "If the old argument and the new argument resolve to the same existing file,
> >>> rename() shall return successfully and perform no other action."
> >> [...]
> >> *sob*. This requires to open both files and look for the file id.
> >> I'm seriously disappointed about this requirement. You can tell
> >> that your friend Austin or whatever his name is!!!1!
> >
> > I've checked in a patch to get on with Doc Austin.
>
> Is it any cheaper to determine how many links fh has, and skipping all the
> efforts of opening nfh if it is less than 2?
Hmm, yeah, thanks, I failed to think of that.
> Other than that, it looks
> like you've implemented what the Doc ordered (although it may still be
> worth asking him to reconsider his position on ERN 88).
Sounds good.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat