Subject: Re: fchdir() calls in pkg_*
To: None <Marc.Espie@liafa.jussieu.fr>
From: Harlan Stenn <Harlan.Stenn@pfcs.com>
List: tech-pkg
Date: 08/15/2001 21:26:52
> On Wed, Aug 15, 2001 at 07:17:00AM +0200, Hubert Feyrer wrote:
> > On Wed, 15 Aug 2001, Harlan Stenn wrote:
> > > My current hurdle is the fchdir() calls - before I go and dig thru the co
> de
> > > to see if it will be hard to convert these, does anybody here have an ide
> a
> > > how hard it would be to lose them?
> > 
> > Probably not too hard e.g. using getcwd() and chdir(). I chose the current
> > implementation for its elegance and speed efficiency.
> > 
> Err... Yuck. 
> 
> fchdir() is standard Posix stuff.
> 
> Getting rid of standard posix stuff looks like a bad idea to me, especially
> things as basic as fchdir(). It offers some guarantees that getcwd() +
> chdir() can't match.

I'm not suggesting we get rid of it - I simply need a workaround for those
systems that don't have it.

H