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

Florian Klaempfl Florian.Klaempfl at gmx.de
Mon Apr 5 08:29:43 CEST 2004


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.
> 
> 
> When it is really a showstopper it would have been popped up earlier. 

It could be processor dependend. Or do you talk about i386, Jonas?

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






More information about the fpc-devel mailing list