[flang-commits] [PATCH] D111785: [flang] runtime: Read environment variables directly
Diana Picus via Phabricator via flang-commits
flang-commits at lists.llvm.org
Thu Oct 14 02:45:15 PDT 2021
rovka created this revision.
rovka added reviewers: klausler, jeanPerier.
rovka added a project: Flang.
Herald added a subscriber: jdoerfert.
rovka requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Add support for reading environment variables directly, via std::getenv,
when they are not found in the envp pointer (or when envp is null). This
needs to allocate a C-style string to pass into std::getenv. If the
memory allocation for that fails, we report an error and return null,
but do not terminate.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D111785
Files:
flang/include/flang/Runtime/memory.h
flang/runtime/environment.cpp
flang/runtime/environment.h
flang/unittests/Runtime/CommandTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111785.379640.patch
Type: text/x-patch
Size: 4012 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20211014/c7c2b632/attachment-0001.bin>
More information about the flang-commits
mailing list