discuss-gnustep
[Top][All Lists]
Advanced

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

Re: GWorkspace 0.7.0, System, Applications and restart


From: Richard Frith-Macdonald
Subject: Re: GWorkspace 0.7.0, System, Applications and restart
Date: Sat, 19 Mar 2005 20:37:21 +0000

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

On 2005-03-19 19:58:16 +0000 Robert Slover <robert.j.slover@verizon.net>
wrote:

I don't know how portable it is, but you can resolvepath(2) the file path, stat(2) it, look at the dev_t member, stat(2) the directory, look at the dev_t member of that, stat(2) the directory's parent, look at dev_t, etc., and so on back up the file tree toward the root. When dev_t changes, you've found the filesystem's mount point.

Not portable ... should be using the methods of the NSFileManager class.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using the GPG bundle for GNUMail

iD8DBQFCPI2BE6AJp3nmKIkRAvLEAKCPuLV5L83ha1VR7YhaWqfGVOHaugCaAx9W
TZx6OYZJRd1dvpMZhBl5kRQ=
=oM0y
-----END PGP SIGNATURE-----





reply via email to

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