Mail Archives: djgpp-workers/2000/08/16/17:02:39
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 -