[fpc-pascal] fpc in symlinked directory
Michael Van Canneyt
michael at freepascal.org
Thu Mar 27 08:16:11 CET 2014
On Wed, 26 Mar 2014, Mattias Gaertner wrote:
> On Wed, 26 Mar 2014 18:47:06 +0100 (CET)
> Michael Van Canneyt <michael at freepascal.org> wrote:
>
>> [...]
>> The compiler does not do anything special: it determines its current
>> working directory using the RTL, meaning it gets the resolved current
>> working directory.
>
> I described the situation from a user's pov.
> Somewhere it should be documented.
I will do so.
>
> BTW, is there already a RTL function to resolve a file name?
fpReadLink ?
Or do you mean a complete filename ? No. It would be a welcome addition, though.
> Using SetCurrentDir is not thread safe.
What do you mean ? The CWD is process wide, so obviously setting it is not thread-safe ?
Michael.
More information about the fpc-pascal
mailing list