bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Derek Price
Subject: Re: GNULib save-cwd.c on Windows & Visual Studio 6.0
Date: Tue, 08 Mar 2005 11:58:59 -0500
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jim Meyering wrote:

| Derek Price <address@hidden> 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'm very, very reluctant to introduce a dependency on Cygwin for a
single function...

| 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?


Glancing at the sources for cygwin, it looks like they decided to save
the file name via their open() function and look up the stored value
in their fchdir(), then call chdir() on it.

Regards,

Derek
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCLdnTLD1OTBfyMaQRAgH3AKCV4TwsCiIK2V1M3Ub4zKzeiKyZDgCg0zOZ
N0MOMsKS+B3K5zqbg2uzaTY=
=qePb
-----END PGP SIGNATURE-----






reply via email to

[Prev in Thread] Current Thread [Next in Thread]