[flang-commits] [flang] [flang] Implement CHDIR intrinsic (PR #124280)

via flang-commits flang-commits at lists.llvm.org
Fri Jan 24 08:49:17 PST 2025


================
@@ -248,5 +249,12 @@ std::int64_t FORTRAN_PROCEDURE_NAME(access)(const char *name,
 }
 #endif
 
+// CHDIR(DIR)
+void RTNAME(Chdir)(const char *dir, int *status) {
+  int stat = chdir(dir);
----------------
jeanPerier wrote:

I am not sure it should be used on windows, although I am not an expert here: https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/chdir?view=msvc-170

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


More information about the flang-commits mailing list