[all-commits] [llvm/llvm-project] ea4758: [flang] Rework read/write permission management fo...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Jul 17 14:45:49 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ea4758a125298cc25639007509a8012f2f71fb00
      https://github.com/llvm/llvm-project/commit/ea4758a125298cc25639007509a8012f2f71fb00
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2020-07-17 (Fri, 17 Jul 2020)

  Changed paths:
    M flang/runtime/file.cpp
    M flang/runtime/file.h
    M flang/runtime/io-api.cpp
    M flang/runtime/io-stmt.cpp
    M flang/runtime/io-stmt.h
    M flang/runtime/unit.cpp
    M flang/runtime/unit.h

  Log Message:
  -----------
  [flang] Rework read/write permission management for runtime file opening

Anonymous Fortran unit files (e.g., "./fort.7") need to be created
O_RDWR so that they can be written, rewound, and read.  Other
files opened with no ACTION= specifier need to set read/write
permissions based on the file, if it exists.

Reviewed By: sscalpone

Differential Revision: https://reviews.llvm.org/D84063




More information about the All-commits mailing list