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

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Fri Nov 10 04:43:35 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);
+
----------------
kiranchandramohan wrote:

I guess @PAX-12-WU was looking at `iargc` as a reference where `iargc` (extension intrinsic) and `command_argument_count` (standard intrinsic) share a single entry point here. I am guessing @jeanPerier is saying that the implementation of `getlog` can be inlined into the extensions file since no other standard intrinsic would require it here.

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


More information about the flang-commits mailing list