Message-ID: <399B00B3.1AA2C454@softhome.net> Date: Wed, 16 Aug 2000 22:59:31 +0200 From: Laurynas Biveinis X-Mailer: Mozilla 4.74 [en] (Win98; U) X-Accept-Language: lt,en MIME-Version: 1.0 To: DJGPP Workers Subject: Symlinks & fstat Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Not-yet-posted symlink code in fstat() needs serious reconsideration with FSEXT support in readlink. The problem is that fstat() is yet another function which needs to know how does a symlink look. I see two ways to handle this: 1) Use the file name extracted from SFT, and pass that to readlink(). BTW, because SFT actually has file name, it might be possible to implement fchmod() in DOS. I put it in my TODO[*]. 2) Move most of the code in readlink() to __internal_readlink() or something like that, which would accept either file name or handle, and provide FSEXT hook there. Any ideas which one is better? Personally I prefer the first way, if the info in SFT is reliable. [*]. At the end of it, for known reasons. Laurynas