[fpc-pascal] usage of {$FPC_USE_LIBC}
Marco van de Voort
marcov at stack.nl
Tue Jul 18 21:34:14 CEST 2006
> Am Dienstag, den 18.07.2006, 15:42 +0200 schrieb Marco van de Voort:
> >
> > *dir functions are special. These are (3) functions and are done by an own
> > probably not 100% compat implementation in syscall ports.
>
> I'll go looking there, thanks.
>
> ... has this changed recently? I looked at almost any file having
> "syscall" in it's name but didn't find anything regarding "*dir". I
> forgot to mention that I'm using fpc 2.0.2 release sources atm.
Did you grep?
For linux they are in linux/ossysc.inc,
prefix by fp as per baseunix convention (fpreaddir,fpopendir)
> > Why would you want
> > to do this?
>
> Because "readdir_r" gives proper error messages and "readdir" doesn't.
Depends on implementation, but actually I meant: why are you not using
findfirst/findnext which is portable?
More information about the fpc-pascal
mailing list