Home
last modified time | relevance | path

Searched refs:ReadFD (Results 1 – 5 of 5) sorted by relevance

/external/llvm/unittests/Support/
DReplaceFileTest.cpp73 int ReadFD = 0; in TEST() local
74 ASSERT_NO_ERROR(fs::openFileForRead(TargetFileName, ReadFD)); in TEST()
75 ScopedFD EventuallyCloseIt(ReadFD); in TEST()
82 auto Buffer = MemoryBuffer::getOpenFile(ReadFD, TargetFileName, -1); in TEST()
93 int ReadFD = 0; in TEST() local
94 ASSERT_NO_ERROR(fs::openFileForRead(TargetFileName, ReadFD)); in TEST()
95 ScopedFD EventuallyCloseIt(ReadFD); in TEST()
96 auto Buffer = MemoryBuffer::getOpenFile(ReadFD, TargetFileName, -1); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DReplaceFileTest.cpp88 int ReadFD = 0; in TEST() local
89 ASSERT_NO_ERROR(fs::openFileForRead(TargetFileName, ReadFD)); in TEST()
90 ScopedFD EventuallyCloseIt(ReadFD); in TEST()
97 EXPECT_TRUE(FDHasContent(ReadFD, "!!target!!")); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DPath.cpp930 static std::error_code copy_file_internal(int ReadFD, int WriteFD) { in copy_file_internal() argument
935 BytesRead = read(ReadFD, Buf, BufSize); in copy_file_internal()
955 int ReadFD, WriteFD; in copy_file() local
956 if (std::error_code EC = openFileForRead(From, ReadFD, OF_None)) in copy_file()
960 close(ReadFD); in copy_file()
964 std::error_code EC = copy_file_internal(ReadFD, WriteFD); in copy_file()
966 close(ReadFD); in copy_file()
973 int ReadFD; in copy_file() local
974 if (std::error_code EC = openFileForRead(From, ReadFD, OF_None)) in copy_file()
977 std::error_code EC = copy_file_internal(ReadFD, ToFD); in copy_file()
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DPath.cpp897 int ReadFD, WriteFD; in copy_file() local
898 if (std::error_code EC = openFileForRead(From, ReadFD)) in copy_file()
901 close(ReadFD); in copy_file()
909 BytesRead = read(ReadFD, Buf, BufSize); in copy_file()
921 close(ReadFD); in copy_file()
/external/llvm/lib/Support/
DPath.cpp895 int ReadFD, WriteFD; in copy_file() local
896 if (std::error_code EC = openFileForRead(From, ReadFD)) in copy_file()
899 close(ReadFD); in copy_file()
907 BytesRead = read(ReadFD, Buf, BufSize); in copy_file()
919 close(ReadFD); in copy_file()