Mail Archives: djgpp/1998/09/02/08:01:22
On Tue, 1 Sep 1998, bowman wrote:
> the question: the area I had to patch extensively deal with S_ISLNK,
> lstat, readlink, and other things that would be declared in
> jgpp/include/sys/stat.h, if links were supported.
Aren't those areas conditioned on something like "#ifdef S_ISLNK"? If
they aren't, you should report this as a bug to the maintainer(s) of
MC (there are some old versions of Unix that don't support symlinks as
well, and Posix doesn't require it).
> Most of the code involved performs a test for a linked file, so I've
> taken the temporary method of having the S_ISLNK macro evaluate to false
> etc., but if there is a standard method, i'd prefer to use it.
S_ISLNK shoud be left undefined, and the source should test for
#ifdef S_ISLNK. This *is* the standard method (see, e.g., the sources
if GNU Fileutils).
- Raw text -