[fpc-devel]Re: fpc-devel digest, Vol 1 #1736 - 4 msgs

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Apr 5 10:53:27 CEST 2004


On 5 apr 2004, at 10:41, Marco van de Voort wrote:

> Getdir is indeed a function that would provoke the ../ ./ alternate
> searching behaviour in strace that Jonas described, if something was 
> wrong
> with readdir.

Here's part of the strace of the compiler. It mainly occurs on nfs 
mounts:

stat("fpc.cfg", 0xbff8d3e8)             = -1 ENOENT (No such file or 
directory)
stat("/user/jmaebe/.fpc.cfg", 0xbff8d2d4) = -1 ENOENT (No such file or 
directory)
stat("/etc/fpc.cfg", 0xbff8d2d4)        = -1 ENOENT (No such file or 
directory)
stat("ppc386.cfg", 0xbff8d3e8)          = -1 ENOENT (No such file or 
directory)
stat("/user/jmaebe/.ppc386.cfg", {st_mode=S_IFREG|0644, st_size=155, 
...}) = 0
open("/user/jmaebe/.ppc386.cfg", O_RDONLY) = 3
read(3, "\n#ifdef i386\n-OG2p3u\n#endif\n#ifd"..., 256) = 155
stat("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat(".", {st_mode=S_IFDIR|0755, st_size=3298, ...}) = 0
stat("..", {st_mode=S_IFDIR|0755, st_size=2924, ...}) = 0
open("..", O_RDONLY)                    = 4
readdir(4, {d_ino=2013630, d_name=""})  = 1
stat("../.", {st_mode=S_IFDIR|0755, st_size=2924, ...}) = 0
readdir(4, {d_ino=2013630, d_name=""})  = 1
stat("../.", {st_mode=S_IFDIR|0755, st_size=2924, ...}) = 0
readdir(4, {d_ino=2013630, d_name=""})  = 1
stat("../.", {st_mode=S_IFDIR|0755, st_size=2924, ...}) = 0
readdir(4, {d_ino=2013630, d_name=""})  = 1
stat("../.", {st_mode=S_IFDIR|0755, st_size=2924, ...}) = 0
readdir(4, {d_ino=2013630, d_name=""})  = 1

[endless loop]

It's not due to a recently introduced compiler/rtl change, because I 
still have a copy of 1.0.7 here and it behaves the same.


Jonas





More information about the fpc-devel mailing list