Mail Archives: djgpp/1998/09/02/00:05:01
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.
>
> Other than the quick and dirty copy that link() uses, and the juggling
> of startup code to produce a symbolic link, is there any uniform way of
> handling gnu code that presupposes a linkable file system?
>
> 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.
I think the standard method is to wrap all symlink-related code in
`#ifdef S_ISLNK', because a system without symlinks does not define that
macro.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -