On Wed, 26 Mar 2014, Mattias Gaertner wrote:

On Wed, 26 Mar 2014 18:47:06 +0100 (CET)
Michael Van Canneyt <[email protected]> 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.
_______________________________________________
fpc-pascal maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to