[flang-commits] [flang] GETLOG runtime and extension implementation: get login username (PR #70917)
via flang-commits
flang-commits at lists.llvm.org
Thu Nov 9 07:34:50 PST 2023
================
@@ -47,6 +47,12 @@ std::int32_t RTNAME(GetEnvVariable)(const Descriptor &name,
bool trim_name = true, const Descriptor *errmsg = nullptr,
const char *sourceFile = nullptr, int line = 0);
}
+
+// Try to get the name of current user
+// Returns a STATUS as described in the standard.
+std::int32_t RTNAME(GetLog)(
+ const Descriptor *argument = nullptr, const Descriptor *errmsg = nullptr);
+
----------------
jeanPerier wrote:
I believe all the runtime entry point of command.h are here to cover standard compliant intrinsic (and that calls to them may be generated by the compiler).
I am not very opposed to defining this entry point, but do you see a use case outside of the non standard `getlog`?
https://github.com/llvm/llvm-project/pull/70917
More information about the flang-commits
mailing list