aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc/src/erl_nif.xml
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2014-12-08 20:37:59 +0100
committerSverker Eriksson <[email protected]>2015-11-26 19:48:09 +0100
commitef45d2c9f874354b17c2aca96de7b3306a9eb943 (patch)
tree7236c8f7c39c6bd0b305e17549c747ec6293bfd8 /erts/doc/src/erl_nif.xml
parent01cc99b35c00be86d832693776ee8ed880b59882 (diff)
downloadotp-ef45d2c9f874354b17c2aca96de7b3306a9eb943.tar.gz
otp-ef45d2c9f874354b17c2aca96de7b3306a9eb943.tar.bz2
otp-ef45d2c9f874354b17c2aca96de7b3306a9eb943.zip
erts: Add enif_getenv
to read OS environment variables in a safe and portable way.
Diffstat (limited to 'erts/doc/src/erl_nif.xml')
-rw-r--r--erts/doc/src/erl_nif.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/doc/src/erl_nif.xml b/erts/doc/src/erl_nif.xml
index 23c3d5fcee..3b77b1ffa0 100644
--- a/erts/doc/src/erl_nif.xml
+++ b/erts/doc/src/erl_nif.xml
@@ -791,6 +791,10 @@ typedef enum {
and return true, or return false if <c>term</c> is not an unsigned integer or is
outside the bounds of type <c>unsigned long</c>.</p></desc>
</func>
+ <func><name><ret>int</ret><nametext>enif_getenv(const char* key, char* value, size_t *value_size)</nametext></name>
+ <fsummary>Get the value of an environment variable</fsummary>
+ <desc><p>Same as <seealso marker="erl_driver#erl_drv_getenv">erl_drv_getenv</seealso>.</p></desc>
+ </func>
<func><name><ret>int</ret><nametext>enif_has_pending_exception(ErlNifEnv* env, ERL_NIF_TERM* reason)</nametext></name>
<fsummary>Check if an exception has been raised</fsummary>
<desc><p>Return true if a pending exception is associated