| /llvm-project/compiler-rt/lib/xray/ |
| H A D | xray_x86_64.cpp | 31 ssize_t BytesRead; in retryingReadSome() local 33 while (BytesToRead && (BytesRead = read(Fd, Begin, BytesToRead))) { in retryingReadSome() 34 if (BytesRead == -1) { in retryingReadSome() 41 TotalBytesRead += BytesRead; in retryingReadSome() 42 BytesToRead -= BytesRead; in retryingReadSome() 43 Begin += BytesRead; in retryingReadSome() 55 ssize_t BytesRead; in readValueFromFile() local 57 std::tie(BytesRead, Success) = retryingReadSome(Fd, Line, Line + BufSize); in readValueFromFile()
|
| /llvm-project/lldb/unittests/TestingSupport/Host/ |
| H A D | NativeProcessTestUtils.h | 74 size_t &BytesRead) /*override*/ { in ReadMemory() argument 77 BytesRead = 0; in ReadMemory() 80 BytesRead = ExpectedMemory->size(); in ReadMemory() 81 assert(BytesRead <= Size); in ReadMemory() 82 std::memcpy(Buf, ExpectedMemory->data(), BytesRead); in ReadMemory() 108 size_t BytesRead; in ReadMemoryWithoutTrap() local 110 T::ReadMemoryWithoutTrap(Addr, Data.data(), Data.size(), BytesRead); in ReadMemoryWithoutTrap() 113 Data.resize(BytesRead); in ReadMemoryWithoutTrap()
|
| /llvm-project/llvm/lib/Support/ |
| H A D | RandomNumberGenerator.cpp | 84 ssize_t BytesRead = read(Fd, Buffer, Size); in getRandomBytes() 85 if (BytesRead == -1) in getRandomBytes() 87 else if (BytesRead != static_cast<ssize_t>(Size)) in getRandomBytes()
|
| H A D | Path.cpp | 994 int BytesRead = 0, BytesWritten = 0; in copy_file_internal() 996 BytesRead = read(ReadFD, Buf, BufSize); in copy_file_internal() 997 if (BytesRead <= 0) in copy_file_internal() 999 while (BytesRead) { in copy_file_internal() 1000 BytesWritten = write(WriteFD, Buf, BytesRead); in copy_file_internal() 1003 BytesRead -= BytesWritten; in copy_file_internal() 1010 if (BytesRead < 0 || BytesWritten < 0) in copy_file_internal() 1052 int BytesRead = 0; in md5_contents() 1054 BytesRead = read(FD, Buf.data(), BufSize); in md5_contents() 1055 if (BytesRead < in md5_contents() 995 int BytesRead = 0, BytesWritten = 0; copy_file_internal() local 1053 int BytesRead = 0; md5_contents() local [all...] |
| /llvm-project/llvm/include/llvm/Bitstream/ |
| H A D | BitstreamReader.h | 168 unsigned BytesRead; in fillCurWord() local 170 BytesRead = sizeof(word_t); in fillCurWord() 175 BytesRead = BitcodeBytes.size() - NextChar; in fillCurWord() 177 for (unsigned B = 0; B != BytesRead; ++B) in fillCurWord() 180 NextChar += BytesRead; in fillCurWord() 181 BitsInCurWord = BytesRead * 8; in fillCurWord()
|
| H A D | BitstreamWriter.h | 243 ssize_t BytesRead = fdStream()->read(Bytes, BytesFromDisk); in BackpatchByte() local 244 (void)BytesRead; // silence warning in BackpatchByte() 245 assert(BytesRead >= 0 && static_cast<size_t>(BytesRead) == BytesFromDisk); in BackpatchByte()
|
| /llvm-project/llvm/unittests/Support/ |
| H A D | raw_socket_stream_test.cpp | 62 ssize_t BytesRead = Server.read(Bytes, 8); in TEST() local 67 ASSERT_EQ(8, BytesRead); in TEST() 96 ssize_t BytesRead = Server.read(Bytes, 8, std::chrono::milliseconds(100)); in TEST() 97 ASSERT_EQ(BytesRead, -1); in TEST()
|
| H A D | Path.cpp | 1772 Expected<size_t> BytesRead = in TEST_F() 1774 EXPECT_EQ(errorToErrorCode(BytesRead.takeError()), errc::is_a_directory); in TEST_F() 1998 if (Expected<size_t> BytesRead = fs::readNativeFile( in TEST_F() 2000 return Buf.substr(0, *BytesRead); in TEST_F() 2002 return BytesRead.takeError(); in TEST_F() 2065 if (Expected<size_t> BytesRead = fs::readNativeFileSlice( in TEST_F() 2067 return Buf.substr(0, *BytesRead); in TEST_F() 2069 return BytesRead.takeError(); in TEST_F() 1768 Expected<size_t> BytesRead = TEST_F() local 1994 if (Expected<size_t> BytesRead = fs::readNativeFile( TEST_F() local 2061 if (Expected<size_t> BytesRead = fs::readNativeFileSlice( TEST_F() local
|
| /llvm-project/llvm/tools/llvm-exegesis/lib/ |
| H A D | BenchmarkRunner.cpp | 270 ssize_t BytesRead = recvmsg(SocketFD, &Message, 0); in getFileDescriptorFromSocket() 272 if (BytesRead < 0) in getFileDescriptorFromSocket() 263 ssize_t BytesRead = recvmsg(SocketFD, &Message, 0); getFileDescriptorFromSocket() local
|
| /llvm-project/bolt/lib/Profile/ |
| H A D | DataAggregator.cpp | 337 Expected<size_t> BytesRead = sys::fs::readNativeFileSlice( in checkPerfDataMagic() 339 if (!BytesRead) { in checkPerfDataMagic() 340 consumeError(BytesRead.takeError()); in checkPerfDataMagic() local 344 if (*BytesRead != 7) in checkPerfDataMagic()
|
| /llvm-project/llvm/lib/Support/Windows/ |
| H A D | Path.inc | 1307 DWORD BytesRead = 0; 1308 if (::ReadFile(FileHandle, Buf.data(), BytesToRead, &BytesRead, Overlap)) 1309 return BytesRead; 1313 return BytesRead;
|