[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 03:59:53 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:

Sorry I couldn't understand.. Are you suggesting having it as a lowing intrinsics? If I don't define it here, then under `flang/runtime/command.cpp`, it won't know what `RTNAME(GetLog)` is, because it is not defined.

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


More information about the flang-commits mailing list