delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/08/16/17:02:39

Message-ID: <399B00B3.1AA2C454@softhome.net>
Date: Wed, 16 Aug 2000 22:59:31 +0200
From: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: Mozilla 4.74 [en] (Win98; U)
X-Accept-Language: lt,en
MIME-Version: 1.0
To: DJGPP Workers <djgpp-workers AT delorie DOT com>
Subject: Symlinks & fstat
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019