www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/02/00:05:01

Sender: nate AT cartsys DOT com
Message-ID: <35ECBED8.FBB41EDB@cartsys.com>
Date: Tue, 01 Sep 1998 20:43:20 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: bowman AT montana DOT com
CC: "djgpp AT delorie DOT com" <djgpp AT delorie DOT com>
Subject: Re: Midnight Commander and symbolic links
References: <35ECA2DF DOT 19993D46 AT montana DOT com>

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 -


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