Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2004-06

Re: 1.9.4 / Linux / GetEnv

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marco van de Voort
to Unknown author: I use the GetEnv function from the Linux unit quite often. In version 1.9.4 it seems to…
I use the GetEnv function from the Linux unit quite often. In version 1.9.4 it seems to have disappeared. I browsed through the manuals, but did not find an alternative Has anybody got a suggestion?

In this case:

Use the OS dependant routines as much as possible, so Sysutils.getenvironmentvariable

In general:

- Unit Linux is totally deprecated, but available as oldlinux (but I advise seriously against using it)
- Most similar calls are prefixed with "fp" and are in units unix and baseunix, however note that the errorhandling is now C compatible.

See also
http://www.stack.nl/~marcov/unixrtl.pdf

Reply by email

Unknown author

Hallo,

I use the GetEnv function from the Linux unit quite often. In version 1.9.4 it seems to have disappeared. I browsed through the manuals, but did not find an alternative Has anybody got a suggestion?

Groetjes,

Hans.

--- GoldED+/LNX 1.1.5cvs031202
* Origin: The Wizard is using MBSE/Linux (2:280/1018)

Reply by email

Unknown author

Hallo Marco,

Op 15 Jun 04 schreef Marco van de Voort aan

> I use the GetEnv function from the Linux unit quite often.

MvdV> In this case:
MvdV> Use the OS dependant routines as much as possible, so MvdV> Sysutils.getenvironmentvariable

Ah! That one's not documented [yet], as far as I can see. Thank you very much, again!

MvdV> In general:
MvdV> - Unit Linux is totally deprecated, but available as oldlinux (but I MvdV> advise seriously against using it) - Most similar calls are prefixed MvdV> with "fp" and are in units unix and baseunix, however note that the MvdV> errorhandling is now C compatible.

Yes, you told us that already :) And I certainly try to follow that advice.

Groetjes,

Hans.

--- GoldED+/LNX 1.1.5cvs031202
* Origin: The Wizard is using MBSE/Linux (2:280/1018)

Reply by email