Re: GNULib save-cwd.c on Windows & Visual Studio 6.0

Jim Meyering <[email protected]> Tue, 08 Mar 2005 17:35:55 +0100
Newsgroups gmane.comp.lib.gnulib.bugs,gmane.comp.version-control.cvs.bugs
Message-ID <[email protected]>
Derek Price <[email protected]> wrote:
> I'm afraid I have to agree with Jim Hyslop.  Whatever Microsoft's
> flaws, I still believe that some of our mutual user base is at least
> relatively innocent and should still be catered to.

This is not about Microsoft per se, but simply about
the lack of fchdir (or POSIX support in general) in WOE.

I suppose it's a long shot, but...
is there a way, in WOE/MSVC, to emulate fchdir's behavior?
I.e., given a file descriptor that is the result of opening a
directory, can you obtain an absolute path name of that directory?

BTW if we end up reverting the changes to save-cwd.c,
we'll also have to do something about its use of chdir_long,
which won't work on systems lacking fchdir:

#if !HAVE_FCHDIR
# undef chdir_long
# define chdir_long(d) chdir (d)
#endif