Date: Wed, 2 Sep 1998 11:13:55 +0300 (IDT) From: Eli Zaretskii To: bowman cc: "djgpp AT delorie DOT com" Subject: Re: Midnight Commander and symbolic links In-Reply-To: <35ECA2DF.19993D46@montana.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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).