diff options
author | Sverker Eriksson <[email protected]> | 2014-12-08 20:37:59 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2015-11-26 19:48:09 +0100 |
commit | ef45d2c9f874354b17c2aca96de7b3306a9eb943 (patch) | |
tree | 7236c8f7c39c6bd0b305e17549c747ec6293bfd8 /erts/emulator/beam/erl_nif.c | |
parent | 01cc99b35c00be86d832693776ee8ed880b59882 (diff) | |
download | otp-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/emulator/beam/erl_nif.c')
-rw-r--r-- | erts/emulator/beam/erl_nif.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_nif.c b/erts/emulator/beam/erl_nif.c index add4a66f90..d7a2076d85 100644 --- a/erts/emulator/beam/erl_nif.c +++ b/erts/emulator/beam/erl_nif.c @@ -1173,6 +1173,7 @@ ErlNifTid enif_thread_self(void) { return erl_drv_thread_self(); } int enif_equal_tids(ErlNifTid tid1, ErlNifTid tid2) { return erl_drv_equal_tids(tid1,tid2); } void enif_thread_exit(void *resp) { erl_drv_thread_exit(resp); } int enif_thread_join(ErlNifTid tid, void **respp) { return erl_drv_thread_join(tid,respp); } +int enif_getenv(const char *key, char *value, size_t *value_size) { return erl_drv_getenv(key, value, value_size); } int enif_fprintf(void* filep, const char* format, ...) { |