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

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Apr 4 21:32:10 CEST 2004


On 4 apr 2004, at 20:52, Peter Vreman wrote:

>> 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.


Jonas





More information about the fpc-devel mailing list