OSDN Git Service

[flang] Track known file size, add IsATerminal (ext. I/O work part 5)
authorpeter klausler <pklausler@nvidia.com>
Fri, 3 Jul 2020 17:56:08 +0000 (10:56 -0700)
committerpeter klausler <pklausler@nvidia.com>
Fri, 3 Jul 2020 20:04:18 +0000 (13:04 -0700)
commit7926969afc63820b123de9d6895c3913befaae1b
treefdcba321615df7a6e86704263b961446e8c48a2c
parentc7cabf9d608b9aad82e9cb684fbbe9f7a76bf4e0
[flang] Track known file size, add IsATerminal (ext. I/O work part 5)

Add a data member knownSize_ and an accessor to allow the size of
an external file to be tracked when known.  Also add a wrapper for
::isatty() here in the filesystem encapsulation module.  These
features are needed for the external I/O rework changes still
to come.

Reviewed By: sscalpone

Differential Revision: https://reviews.llvm.org/D83141
flang/runtime/file.cpp
flang/runtime/file.h