[fpc-pascal]Detecting (sym)link in fpc/Linux

Cor Slot cslot at xs4all.nl
Wed Sep 5 19:15:55 CEST 2001


Hi Mirek Novak,

On Wed, 05 Sep 2001 16:46:19 +0200 Mirek Novak <mirek.novak at auto.cz> wrote:

> in fpc unit linux there are defined 'POSIX macros' (as said in 'man fstat')
> for checking filetype
> what U need is 'S_ISLNK()' see units.pdf

Aha... Thanx! That's what I needed... And I also needed to use LStat
instead of FStat to get the correct results.

Thanks!

Cheers,
Cor.
cslot at xs4all.nl
==============================
Cor.J. Slot     Rotterdam [NL]
Voice/FAXmail +31 84 851 04 78
==============================





More information about the fpc-pascal mailing list