[llvm] [SystemZ][z/OS] Query if a file is text and set the text flag accordingly (PR #109664)
Abhina Sree via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 24 08:43:54 PDT 2024
================
@@ -52,6 +52,12 @@ std::error_code restorezOSStdHandleAutoConversion(int FD);
/// \brief Set the tag information for a file descriptor.
std::error_code setzOSFileTag(int FD, int CCSID, bool Text);
+// Get the the tag ccsid for a file name or a file descriptor.
+ErrorOr<__ccsid_t> getzOSFileTag(const char *FileName, const int FD = -1);
----------------
abhina-sree wrote:
Thanks, this is done!
https://github.com/llvm/llvm-project/pull/109664
More information about the llvm-commits
mailing list