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

Date: Wed, 2 Sep 1998 11:13:55 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: bowman <bowman AT montana DOT com>
cc: "djgpp AT delorie DOT com" <djgpp AT delorie DOT com>
Subject: Re: Midnight Commander and symbolic links
In-Reply-To: <35ECA2DF.19993D46@montana.com>
Message-ID: <Pine.SUN.3.91.980902111335.517b-100000@is>
MIME-Version: 1.0

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 -


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