RainerStratmann at t-online.de
Thu May 1 18:53:02 CEST 2008
Am Donnerstag, 1. Mai 2008 18:58 schrieb Marc Santhoff:
> What os are you on?
Knoppix last DVD from heise
> I did "man readdir" and "man dirent" and found enough information. One
> bit from the dirent manpage:
I did it also
Other than Linux, the d_type field is available mainly only on BSD systems.
This field makes it possible to avoid the expense of calling
stat() if further actions depend on the type of the file.
So I will use stat.
> The usage of the member d_type of struct dirent is unportable as it is
> FreeBSD-specific. It also may fail on certain filesystems, for
> example the cd9660 filesystem.
> Maybe that's hitting you ...
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
More information about the fpc-pascal