[fpc-devel]Linux readdir syscall is superseded by getdents

Peter Vreman peter at freepascal.org
Sun Apr 4 23:18:36 CEST 2004

>>> On my system FPC doesn't work because the fpreaddir-function failes on
>>> larger directories. I saw that fpreaddir still uses the linux
>>> readdir-call, wich is superseded by getdents. (also the comments are
>>> wrong. The result of the readdir-call isn't the amount of bytes
>>> read. That's only the case by the getdents-call)
>> I'll test/apply the patch after 1.9.4 is released
> I think this is a critical bug. I've also got lots of troubles with the
> Linux compiler lately: it often gets in an endless loop. When I strace
> it, you can see it keeps fstat'ing "." and ".." in succession, without
> ever going to the next item. So it's probably related to this bug.

When it is really a showstopper it would have been popped up earlier. I've
run the compiler under all linux kernels upto 2.6.5-rc2 (including some
x86_64 kernels) with ext3 filesystem without problems. So the readdir
syscall is still fully supported.

And with changes like this short before a release there is always someone
called Murphy that would popup...

More information about the fpc-devel mailing list