[flang-commits] [flang] GETLOG runtime and extension implementation: get login username (PR #70917)

Yi Wu via flang-commits flang-commits at lists.llvm.org
Fri Nov 10 07:37:12 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);
+
----------------
PAX-12-WU wrote:

It has been moved to extension.cpp where the implementation is inline. I'm not sure if we need the right trim there.

https://github.com/llvm/llvm-project/pull/70917


More information about the flang-commits mailing list