aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/doc/src/os.xml
diff options
context:
space:
mode:
authorPeter Lemenkov <[email protected]>2014-11-08 15:11:04 +0300
committerPeter Lemenkov <[email protected]>2014-12-15 21:05:05 +0300
commit5cbad390e971ff92a7fb1b71757041ff9edeb81a (patch)
tree5ea8891717e8d41ef64a351973e3a27608de50a2 /lib/kernel/doc/src/os.xml
parentaf87b1c3d4897840d8247589a88d3611106ecedc (diff)
downloadotp-5cbad390e971ff92a7fb1b71757041ff9edeb81a.tar.gz
otp-5cbad390e971ff92a7fb1b71757041ff9edeb81a.tar.bz2
otp-5cbad390e971ff92a7fb1b71757041ff9edeb81a.zip
Introduce os:getenv/2
Signed-off-by: Peter Lemenkov <[email protected]>
Diffstat (limited to 'lib/kernel/doc/src/os.xml')
-rw-r--r--lib/kernel/doc/src/os.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/kernel/doc/src/os.xml b/lib/kernel/doc/src/os.xml
index 2b57e75023..8b85f24455 100644
--- a/lib/kernel/doc/src/os.xml
+++ b/lib/kernel/doc/src/os.xml
@@ -100,6 +100,19 @@ DirOut = os:cmd("dir"), % on Win32 platform</code>
</desc>
</func>
<func>
+ <name name="getenv" arity="2"/>
+ <fsummary>Get the value of an environment variable</fsummary>
+ <desc>
+ <p>Returns the <c><anno>Value</anno></c> of the environment variable
+ <c><anno>VarName</anno></c>, or <c>DefaultValue</c> if the environment variable
+ is undefined.</p>
+ <p>If Unicode file name encoding is in effect (see the <seealso
+ marker="erts:erl#file_name_encoding">erl manual
+ page</seealso>), the strings (both <c><anno>VarName</anno></c> and
+ <c><anno>Value</anno></c>) may contain characters with codepoints > 255.</p>
+ </desc>
+ </func>
+ <func>
<name name="getpid" arity="0"/>
<fsummary>Return the process identifier of the emulator process</fsummary>
<desc>