Searched refs:bytesRead (Results 1 - 25 of 239) sorted by relevance

12345678910

/haiku/src/kits/debugger/model/
H A DTeamMemory.cpp31 ssize_t bytesRead = ReadMemory(address, buffer, toRead); local
32 if (bytesRead < 0)
33 return _string.Length() == 0 ? bytesRead : B_OK;
35 if (bytesRead == 0)
39 size_t length = strnlen(buffer, bytesRead);
43 if (length < (size_t)bytesRead)
46 address += bytesRead;
47 maxLength -= bytesRead;
/haiku/src/kits/shared/
H A DAttributeUtilities.cpp46 ssize_t bytesRead = source.ReadAttr(attrName, attrInfo.type, local
48 if (bytesRead < 0)
49 return bytesRead;
53 attrInfo.type, offset, buffer, bytesRead);
57 bytesLeft -= bytesRead;
58 offset += bytesRead;
/haiku/src/build/libroot/
H A Dfs_attr_extattr.h24 ssize_t bytesRead; local
26 bytesRead = extattr_list_fd(fd, EXTATTR_NAMESPACE_USER, buffer,
29 bytesRead = extattr_list_link(path, EXTATTR_NAMESPACE_USER, buffer,
33 if (bytesRead <= 0)
34 return bytesRead;
40 memmove(buffer, buffer + 1, bytesRead - 1);
42 while (index < bytesRead - 1) {
48 buffer[bytesRead - 1] = '\0';
50 return bytesRead;
/haiku/src/tests/add-ons/kernel/drivers/random/
H A Drandom_test.cpp24 ssize_t bytesRead = read(fd, buffer, sizeof(buffer)); local
25 if (bytesRead < 0) {
31 printf("Read %d bytes from random device: ", (int)bytesRead);
32 for (int i = 0; i < bytesRead; i++)
/haiku/src/add-ons/kernel/file_systems/netfs/shared/
H A DPortChannel.cpp125 int32 bytesRead = min(size, fBufferContentSize); local
126 memcpy(buffer, fBuffer + fBufferOffset, bytesRead);
127 fBufferOffset += bytesRead;
128 fBufferContentSize -= bytesRead;
129 size -= bytesRead;
130 buffer += bytesRead;
136 ssize_t bytesRead = read_port(fReceivePort, 0, buffer, size); local
137 if (bytesRead < 0)
138 return bytesRead;
139 size -= bytesRead;
143 ssize_t bytesRead = read_port(fReceivePort, 0, fBuffer, local
[all...]
/haiku/src/bin/debug/strace/
H A DMemoryReader.cpp51 MemoryReader::Read(void *_address, void *_buffer, int32 size, int32 &bytesRead) argument
55 bytesRead = 0;
67 if (bytesRead > 0)
72 bytesRead += actuallyRead;
83 MemoryReader::_Read(void *address, void *buffer, int32 size, int32 &bytesRead) argument
105 ssize_t bytesRead = read_port(fReplyPort, &code, &reply, sizeof(reply)); local
106 if (bytesRead > 0)
108 if (bytesRead != B_INTERRUPTED)
109 return bytesRead;
115 bytesRead
[all...]
H A DMemoryReader.h20 int32 &bytesRead);
24 int32 &bytesRead);
/haiku/src/system/boot/loader/
H A Dpager.cpp32 size_t bytesRead = textSource.Read(offset, buffer, bufferSize - 1); local
33 if (bytesRead == 0)
36 buffer[bytesRead] = '\0';
39 for (size_t i = 0; i < bytesRead; i++) {
45 bytesRead = lineEnd - buffer;
47 if (bytesRead > (size_t)width)
48 bytesRead = width;
51 for (size_t i = 0; i < bytesRead; i++) {
56 bool lineBreak = buffer[bytesRead] == '\n';
58 buffer[bytesRead]
72 size_t bytesRead = next_line(textSource, width, offset, buffer, local
137 size_t bytesRead = next_line(textSource, width, offset, lineBuffer, local
[all...]
/haiku/src/kits/package/hpkg/
H A DAttributeDataReader.cpp32 ssize_t bytesRead = fs_read_attr(fFD, fAttribute, fType, offset, buffer, local
34 if (bytesRead < 0)
36 return (size_t)bytesRead == size ? B_OK : B_ERROR;
H A DFDDataReader.cpp35 ssize_t bytesRead = pread(fFD, buffer, size, offset); local
36 if (bytesRead < 0)
38 return (size_t)bytesRead == size ? B_OK : B_ERROR;
/haiku/src/kits/debug/arch/x86/
H A Darch_debug_support.cpp40 ssize_t bytesRead = debug_read_memory(context, stackFrameAddress, &stackFrame, local
42 if (bytesRead < B_OK)
43 return bytesRead;
44 if (bytesRead != sizeof(stackFrame))
/haiku/src/kits/debug/arch/x86_64/
H A Darch_debug_support.cpp41 ssize_t bytesRead = debug_read_memory(context, stackFrameAddress, local
43 if (bytesRead < B_OK)
44 return bytesRead;
45 if (bytesRead != sizeof(stackFrame))
/haiku/src/kits/debug/arch/sparc/
H A Darch_debug_support.cpp41 ssize_t bytesRead = debug_read_memory(context, stackFrameAddress, local
43 if (bytesRead < B_OK)
44 return bytesRead;
45 if (bytesRead != sizeof(stackFrame))
/haiku/src/kits/debug/arch/riscv64/
H A Darch_debug_support.cpp41 ssize_t bytesRead = debug_read_memory(context, stackFrameAddress, local
43 if (bytesRead < B_OK)
44 return bytesRead;
45 if (bytesRead != sizeof(stackFrame))
/haiku/src/system/boot/platform/openfirmware/
H A Dconsole.cpp145 ssize_t bytesRead = ConsoleHandle::ReadAt(NULL, 0, buffer, bufferSize); local
146 if (bytesRead < 0)
147 return bytesRead;
148 bytesTotal += bytesRead;
340 ssize_t bytesRead; local
342 bytesRead = sInput.ReadAt(NULL, 0, buffer, 3);
343 if (bytesRead < 0)
345 } while (bytesRead == 0);
348 if (bytesRead == 3 && buffer[0] == 27 && buffer[1] == 91) {
355 if (bytesRead >
366 ssize_t bytesRead = sInput.ReadAt(NULL, 0, buffer, 3); local
[all...]
H A Dnetwork.cpp115 int bytesRead = of_getprop(package, "local-mac-address", &fMACAddress, local
117 if (bytesRead == OF_FAILED || bytesRead < (int)sizeof(fMACAddress)) {
120 bytesRead = of_getprop(gChosen, "mac-address", &fMACAddress,
122 if (bytesRead == OF_FAILED || bytesRead < (int)sizeof(fMACAddress)) {
138 bytesRead = of_getprop(gChosen, "dhcp-response", &dhcpResponse,
140 if (bytesRead != OF_FAILED && bytesRead == (int)sizeof(dhcpResponse)) {
154 bytesRead
[all...]
/haiku/src/tools/fs_shell/
H A Dexternal_commands_beos.cpp48 ssize_t bytesRead; local
51 bytesRead = read_port(port, &code, message, sizeof(_message));
52 } while (bytesRead == B_INTERRUPTED);
54 if (bytesRead < 0) {
56 strerror(bytesRead));
61 int commandLen = _message + bytesRead - message->command;
H A Dfs_shell_command_beos.cpp62 ssize_t bytesRead; local
65 bytesRead = read_port(replyPort, &code, &reply, sizeof(reply));
66 } while (bytesRead == B_INTERRUPTED);
68 if (bytesRead < 0) {
70 strerror(bytesRead));
/haiku/src/kits/debugger/elf/
H A DElfSymbolLookup.cpp59 ssize_t bytesRead = _ReadPartial(address, buffer, size); local
60 if (bytesRead < 0)
61 return totalRead == 0 ? bytesRead : totalRead;
62 if (bytesRead == 0)
65 totalRead += bytesRead;
66 buffer += bytesRead;
67 size -= bytesRead;
76 size_t bytesRead = _ReadCached(address, buffer, size); local
77 if (bytesRead > 0)
78 return bytesRead;
108 ssize_t bytesRead = fSource->Read(address, fBuffer[i], fBufferSize); local
202 ssize_t bytesRead = fSource->Read(fSymbolHash + 4, &symbolCount, 4); local
221 ssize_t bytesRead = fSource->Read(symbolAddress, &symbol, local
281 ssize_t bytesRead = fSource->Read(address, buffer, toRead); local
[all...]
/haiku/src/kits/package/
H A DChecksumAccessors.cpp60 ssize_t bytesRead = checksumFile.Read(buffer, kSHA256ChecksumHexDumpSize);
63 if (bytesRead < 0)
64 return bytesRead;
65 if (bytesRead != kSHA256ChecksumHexDumpSize)
112 ssize_t bytesRead = file.Read(buffer, kBlockSize); local
113 if (bytesRead < 0)
114 return bytesRead;
116 sha.Update(buffer, bytesRead);
118 handledSize += bytesRead;
/haiku/src/kits/storage/
H A DFileDescriptorIO.cpp33 ssize_t bytesRead = read(fFD, buffer, size); local
34 return bytesRead >= 0 ? bytesRead : errno;
49 ssize_t bytesRead = pread(fFD, buffer, size, position); local
50 return bytesRead >= 0 ? bytesRead : errno;
H A DFdIO.cpp62 ssize_t bytesRead = read(fFd, buffer, size); local
63 return bytesRead >= 0 ? bytesRead : errno;
78 ssize_t bytesRead = pread(fFd, buffer, size, position); local
79 return bytesRead >= 0 ? bytesRead : errno;
/haiku/src/kits/support/
H A DBufferedDataIO.cpp113 size_t bytesRead = 0; local
117 bytesRead = min_c(size, fSize);
119 bytesRead);
120 memcpy(buffer, fBuffer + fPosition, bytesRead);
122 buffer = (void*)((uint8_t*)buffer + bytesRead);
123 size -= bytesRead;
124 fPosition += bytesRead;
125 fSize -= bytesRead;
128 return bytesRead;
158 bytesRead
[all...]
H A DDataPositionIOWrapper.cpp29 ssize_t bytesRead = fIO->Read(buffer, size); local
30 if (bytesRead > 0)
31 fPosition += bytesRead;
33 return bytesRead;
/haiku/src/tests/kits/support/
H A Dcompression_test.cpp203 ssize_t bytesRead = inputStream->Read(buffer, sizeof(buffer)); local
204 if (bytesRead < 0) {
206 strerror(bytesRead));
209 if (bytesRead == 0)
212 error = outputFile.WriteExactly(buffer, bytesRead);
239 ssize_t bytesRead = inputFile.Read(buffer, sizeof(buffer)); local
240 if (bytesRead < 0) {
242 strerror(bytesRead));
245 if (bytesRead == 0)
248 error = outputStream->WriteExactly(buffer, bytesRead);
[all...]

Completed in 245 milliseconds

12345678910