Mail Archives: djgpp-workers/2000/08/28/12:02:12
Eli Zaretskii wrote:
> When I wrote my message with the list of functions I thought needed to
> support symlinks in leading directories, I scanned the contents of
> djlsr203.zip looking for such functions. But it would be nice if someone
> else's eyes could revisit the list of file-oriented functions and verify
> that nothing is missing.
I think I will browse sources for one more time (this time with
__solve_dir_symlinks() in mind), but if somebody comes across some
obscure function sitting in the corner without symlinks, please tell me.
> The principle is that every function that is available on Unix should
> support symlinks.
Right.
> Functions that are specific to DOS/Windows or to DJGPP
> do not need to support symlinks,
Right. Besides, this is a good portability lesson: when one needs
to use opendir()/readdir(), and when findfirst() and so on.
> unless we have good reasons to add that
> (e.g., because many Unix compatibility functions call that non-Unix
> function).
It must be really a very good reason, though. In most cases all callers
should be updated instead. Otherwise it will lead to disasters: consider
there is a symlink support in findfirst/findnext. And somebody writes nice
program for walking directory tree. And there is somewhere a symlink to
upper directory...
Laurynas
- Raw text -