[flang-commits] [flang] [flang][runtime] Add ACCESS library procedure (PR #88395)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Thu Apr 11 09:21:15 PDT 2024


================
@@ -138,5 +139,77 @@ void RTNAME(Sleep)(std::int64_t seconds) {
   std::this_thread::sleep_for(std::chrono::seconds(seconds));
 }
 
+// TODO: not supported on Windows
+#ifndef _WIN32
+std::int64_t FORTRAN_PROCEDURE_NAME(access)(const char *name,
+    std::int64_t nameLength, const char *mode, std::int64_t modeLength) {
+  std::int64_t ret = -1;
----------------
kiranchandramohan wrote:

Nit: Use Braced initialization here and elsewhere in this file.

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


More information about the flang-commits mailing list