Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 25 of 110) sorted by relevance

12345

/openbsd-src/gnu/usr.bin/binutils/bfd/
H A Ddwarf2.c430 unsigned int abbrev_number, bytes_read, abbrev_name; in read_abbrevs() local
466 abbrev_number = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); in read_abbrevs()
467 abbrev_ptr += bytes_read; in read_abbrevs()
478 read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); in read_abbrevs()
479 abbrev_ptr += bytes_read; in read_abbrevs()
484 abbrev_name = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); in read_abbrevs()
485 abbrev_ptr += bytes_read; in read_abbrevs()
486 abbrev_form = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); in read_abbrevs()
487 abbrev_ptr += bytes_read; in read_abbrevs()
504 abbrev_name = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); in read_abbrevs()
[all …]
/openbsd-src/gnu/llvm/lldb/tools/lldb-vscode/
H A DIOStream.cpp98 int bytes_read = 0; in read_full() local
100 bytes_read = ::recv(descriptor.m_socket, ptr, length, 0); in read_full()
102 bytes_read = ::read(descriptor.m_fd, ptr, length); in read_full()
104 if (bytes_read == 0) { in read_full()
109 if (bytes_read < 0) { in read_full()
127 assert(bytes_read >= 0 && (size_t)bytes_read <= length); in read_full()
128 ptr += bytes_read; in read_full()
129 length -= bytes_read; in read_full()
/openbsd-src/gnu/usr.bin/binutils-2.17/bfd/
H A Ddwarf2.c427 unsigned int abbrev_number, bytes_read, abbrev_name; in read_abbrevs() local
463 abbrev_number = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); in read_abbrevs()
464 abbrev_ptr += bytes_read; in read_abbrevs()
475 read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); in read_abbrevs()
476 abbrev_ptr += bytes_read; in read_abbrevs()
481 abbrev_name = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); in read_abbrevs()
482 abbrev_ptr += bytes_read; in read_abbrevs()
483 abbrev_form = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); in read_abbrevs()
484 abbrev_ptr += bytes_read; in read_abbrevs()
518 abbrev_name = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read); in read_abbrevs()
[all …]
/openbsd-src/gnu/usr.bin/binutils-2.17/binutils/
H A Ddwarf.c227 unsigned int bytes_read; in process_extended_line_op() local
232 len = read_leb128 (data, & bytes_read, 0); in process_extended_line_op()
233 data += bytes_read; in process_extended_line_op()
238 return bytes_read; in process_extended_line_op()
241 len += bytes_read; in process_extended_line_op()
254 adr = byte_get (data, len - bytes_read - 1); in process_extended_line_op()
266 printf (_("%lu\t"), read_leb128 (data, & bytes_read, 0)); in process_extended_line_op()
267 data += bytes_read; in process_extended_line_op()
268 printf (_("%lu\t"), read_leb128 (data, & bytes_read, 0)); in process_extended_line_op()
269 data += bytes_read; in process_extended_line_op()
[all …]
/openbsd-src/gnu/llvm/lldb/source/Plugins/Process/POSIX/
H A DNativeProcessELF.cpp70 size_t bytes_read; in GetELFImageInfoAddress() local
72 sizeof(phdr_entry), bytes_read); in GetELFImageInfoAddress()
95 size_t bytes_read; in GetELFImageInfoAddress() local
97 &dynamic_entry, sizeof(dynamic_entry), bytes_read); in GetELFImageInfoAddress()
120 size_t bytes_read; in ReadSVR4LibraryInfo() local
122 ReadMemory(link_map_addr, &link_map, sizeof(link_map), bytes_read); in ReadSVR4LibraryInfo()
128 link_map.l_name, &name_buffer[0], sizeof(name_buffer), bytes_read); in ReadSVR4LibraryInfo()
151 size_t bytes_read; in GetLoadedSVR4Libraries() local
153 ReadMemory(info_address, &address, GetAddressByteSize(), bytes_read); in GetLoadedSVR4Libraries()
162 GetAddressByteSize(), bytes_read); in GetLoadedSVR4Libraries()
/openbsd-src/gnu/llvm/lldb/source/Host/common/
H A DNativeProcessProtocol.cpp376 size_t bytes_read = 0; in RemoveSoftwareBreakpoint() local
378 ReadMemory(addr, curr_break_op.data(), curr_break_op.size(), bytes_read); in RemoveSoftwareBreakpoint()
379 if (error.Fail() || bytes_read < curr_break_op.size()) { in RemoveSoftwareBreakpoint()
382 addr, curr_break_op.size(), bytes_read); in RemoveSoftwareBreakpoint()
433 size_t bytes_read = 0; in EnableSoftwareBreakpoint() local
435 saved_opcode_bytes.size(), bytes_read); in EnableSoftwareBreakpoint()
440 if (bytes_read != saved_opcode_bytes.size()) { in EnableSoftwareBreakpoint()
445 saved_opcode_bytes.size(), bytes_read); in EnableSoftwareBreakpoint()
647 size_t &bytes_read) { in ReadMemoryWithoutTrap() argument
648 Status error = ReadMemory(addr, buf, size, bytes_read); in ReadMemoryWithoutTrap()
[all …]
H A DPipeBase.cpp21 Status PipeBase::Read(void *buf, size_t size, size_t &bytes_read) { in Read() argument
23 bytes_read); in Read()
H A DFile.cpp519 ssize_t bytes_read = -1; in Read() local
521 bytes_read = llvm::sys::RetryAfterSignal(-1, ::read, m_descriptor, buf, num_bytes); in Read()
522 if (bytes_read == -1) { in Read()
526 num_bytes = bytes_read; in Read()
528 bytes_read = ::fread(buf, 1, num_bytes, m_stream); in Read()
530 if (bytes_read == 0) { in Read()
537 num_bytes = bytes_read; in Read()
643 ssize_t bytes_read = in Read() local
645 if (bytes_read < 0) { in Read()
649 offset += bytes_read; in Read()
[all …]
H A DFileCache.cpp109 size_t bytes_read = dst_len; in ReadFile() local
110 error = file_up->Read(dst, bytes_read); in ReadFile()
113 return bytes_read; in ReadFile()
/openbsd-src/gnu/usr.bin/binutils-2.17/opcodes/
H A Dv850-dis.c55 int bytes_read; in disassemble() local
62 bytes_read = short_op ? 2 : 4; in disassemble()
305 status = info->read_memory_func (memaddr + bytes_read, in disassemble()
309 bytes_read += 2; in disassemble()
320 info->memory_error_func (status, memaddr + bytes_read, in disassemble()
325 status = info->read_memory_func (memaddr + bytes_read, in disassemble()
329 bytes_read += 4; in disassemble()
334 info->memory_error_func (status, memaddr + bytes_read, in disassemble()
363 return bytes_read; in disassemble()
/openbsd-src/gnu/usr.bin/binutils/opcodes/
H A Dv850-dis.c58 int bytes_read; local
65 bytes_read = short_op ? 2 : 4;
290 status = info->read_memory_func (memaddr + bytes_read, buffer, 2, info);
293 bytes_read += 2;
304 info->memory_error_func (status, memaddr + bytes_read, info);
309 status = info->read_memory_func (memaddr + bytes_read, buffer, 4, info);
312 bytes_read += 4;
318 info->memory_error_func (status, memaddr + bytes_read, info);
347 return bytes_read;
/openbsd-src/gnu/usr.bin/binutils/gdb/
H A Ddwarf2read.c795 int *bytes_read);
798 struct comp_unit_head *, int *bytes_read);
801 int *bytes_read);
1244 int bytes_read;
1248 &bytes_read);
1249 pubnames_ptr += bytes_read;
1272 int bytes_read; in read_comp_unit_head() local
1275 &bytes_read); in read_comp_unit_head()
1276 info_ptr += bytes_read; in read_comp_unit_head()
1280 &bytes_read); in read_comp_unit_head()
[all …]
H A Ddwarf2-frame.c273 int bytes_read; in execute_cfa_program() local
304 fs->pc = dwarf2_read_address (insn_ptr, insn_end, &bytes_read); in execute_cfa_program()
305 insn_ptr += bytes_read; in execute_cfa_program()
1249 unsigned int bytes_read; in decode_frame_entry_1() local
1256 length = read_initial_length (unit->abfd, buf, &bytes_read); in decode_frame_entry_1()
1257 buf += bytes_read; in decode_frame_entry_1()
1268 dwarf64_p = (bytes_read == 12); in decode_frame_entry_1()
1334 read_unsigned_leb128 (unit->abfd, buf, &bytes_read); in decode_frame_entry_1()
1335 buf += bytes_read; in decode_frame_entry_1()
1338 read_signed_leb128 (unit->abfd, buf, &bytes_read); in decode_frame_entry_1()
[all …]
H A Ddwarf2expr.c199 dwarf2_read_address (unsigned char *buf, unsigned char *buf_end, int *bytes_read) in dwarf2_read_address() argument
206 *bytes_read = TARGET_ADDR_BIT / TARGET_CHAR_BIT; in dwarf2_read_address()
266 int bytes_read; in execute_stack_op() local
306 result = dwarf2_read_address (op_ptr, op_end, &bytes_read); in execute_stack_op()
307 op_ptr += bytes_read; in execute_stack_op()
537 int bytes_read; in execute_stack_op() local
544 &bytes_read); in execute_stack_op()
551 int bytes_read; in execute_stack_op() local
557 &bytes_read); in execute_stack_op()
/openbsd-src/lib/libutil/
H A Duucplock.c214 ssize_t bytes_read; in get_pid() local
218 bytes_read = read(fd, buf, sizeof (buf) - 1); in get_pid()
219 if (bytes_read > 0) { in get_pid()
220 buf[bytes_read] = '\0'; in get_pid()
224 *err = bytes_read ? errno : EINVAL; in get_pid()
/openbsd-src/gnu/llvm/lldb/source/Host/windows/
H A DConnectionGenericFileWindows.cpp169 DWORD bytes_read = 0; in Read() local
210 if (!::GetOverlappedResult(m_file, &m_overlapped, &bytes_read, FALSE)) { in Read()
218 return_info.Set(bytes_read, eConnectionStatusEndOfFile, 0); in Read()
220 return_info.Set(bytes_read, eConnectionStatusError, result_error); in Read()
221 } else if (bytes_read == 0) in Read()
222 return_info.Set(bytes_read, eConnectionStatusEndOfFile, 0); in Read()
224 return_info.Set(bytes_read, eConnectionStatusSuccess, 0); in Read()
/openbsd-src/gnu/llvm/lldb/source/API/
H A DSBFile.cpp57 SBError SBFile::Read(uint8_t *buf, size_t num_bytes, size_t *bytes_read) { in Read() argument
58 LLDB_INSTRUMENT_VA(this, buf, num_bytes, bytes_read); in Read()
63 *bytes_read = 0; in Read()
67 *bytes_read = num_bytes; in Read()
H A DSBCommunication.cpp108 size_t bytes_read = 0; in Read() local
113 bytes_read = m_opaque->Read(dst, dst_len, timeout, status, nullptr); in Read()
117 return bytes_read; in Read()
H A DSBProcess.cpp263 size_t bytes_read = 0; in GetSTDOUT() local
267 bytes_read = process_sp->GetSTDOUT(dst, dst_len, error); in GetSTDOUT()
270 return bytes_read; in GetSTDOUT()
276 size_t bytes_read = 0; in GetSTDERR() local
280 bytes_read = process_sp->GetSTDERR(dst, dst_len, error); in GetSTDERR()
283 return bytes_read; in GetSTDERR()
289 size_t bytes_read = 0; in GetAsyncProfileData() local
293 bytes_read = process_sp->GetAsyncProfileData(dst, dst_len, error); in GetAsyncProfileData()
296 return bytes_read; in GetAsyncProfileData()
805 size_t bytes_read = 0; in ReadMemory() local
[all …]
/openbsd-src/gnu/llvm/lldb/source/Host/posix/
H A DPipePosix.cpp248 size_t &bytes_read) { in ReadWithTimeout() argument
249 bytes_read = 0; in ReadWithTimeout()
264 ::read(fd, static_cast<char *>(buf) + bytes_read, size - bytes_read); in ReadWithTimeout()
266 bytes_read += result; in ReadWithTimeout()
267 if (bytes_read == size || result == 0) in ReadWithTimeout()
H A DConnectionFileDescriptorPosix.cpp279 size_t bytes_read = dst_len; in Read() local
280 error = m_io_sp->Read(dst, bytes_read); in Read()
289 static_cast<uint64_t>(bytes_read), error.AsCString()); in Read()
292 if (bytes_read == 0) { in Read()
354 return bytes_read; in Read()
512 ssize_t bytes_read = in BytesAvailable() local
514 assert(bytes_read == 1); in BytesAvailable()
515 (void)bytes_read; in BytesAvailable()
/openbsd-src/gnu/llvm/compiler-rt/lib/dfsan/
H A Ddfsan_custom.cpp120 static char *dfsan_strchr_with_label(const char *s, int c, size_t *bytes_read, in dfsan_strchr_with_label() argument
128 *bytes_read = i + 1; in dfsan_strchr_with_label()
136 *ret_label = dfsan_union(dfsan_read_label(s, *bytes_read), in dfsan_strchr_with_label()
145 size_t bytes_read; in __dfsw_strchr() local
146 return dfsan_strchr_with_label(s, c, &bytes_read, s_label, c_label, in __dfsw_strchr()
154 size_t bytes_read; in __dfso_strchr() local
156 dfsan_strchr_with_label(s, c, &bytes_read, s_label, c_label, ret_label); in __dfso_strchr()
160 dfsan_origin o = dfsan_read_origin_of_first_taint(s, bytes_read); in __dfso_strchr()
208 size_t *bytes_read) { in dfsan_memcmp_bcmp() argument
212 *bytes_read = i + 1; in dfsan_memcmp_bcmp()
[all …]
/openbsd-src/usr.bin/openssl/
H A Ds_time.c97 static long bytes_read = 0;
383 bytes_read += i; in run_test()
431 bytes_read = 0; in benchmark()
455 nConn, totalTime, ((double) nConn / totalTime), bytes_read); in benchmark()
457 nConn, elapsed, nConn > 0 ? bytes_read / nConn : 0); in benchmark()
99 static long bytes_read = 0; global() variable
/openbsd-src/gnu/usr.bin/texinfo/info/
H A Dfilesys.c561 int bytes_read; in filesys_read_compressed() local
563 bytes_read = fread (chunk, 1, FILESYS_PIPE_BUFFER_SIZE, stream); in filesys_read_compressed()
565 if (bytes_read + offset >= size) in filesys_read_compressed()
569 memcpy (contents + offset, chunk, bytes_read); in filesys_read_compressed()
570 offset += bytes_read; in filesys_read_compressed()
571 if (bytes_read != FILESYS_PIPE_BUFFER_SIZE) in filesys_read_compressed()
/openbsd-src/gnu/llvm/lldb/source/Plugins/Process/mach-core/
H A DProcessMachCore.cpp568 size_t bytes_read = 0; in DoReadMemory() local
587 while (bytes_read < size) { in DoReadMemory()
588 const addr_t curr_addr = addr + bytes_read; in DoReadMemory()
596 std::min(size - bytes_read, (size_t)bytes_left); in DoReadMemory()
599 (char *)buf + bytes_read); in DoReadMemory()
602 bytes_read += curr_bytes_read; in DoReadMemory()
605 if (bytes_read == 0) in DoReadMemory()
613 return bytes_read; in DoReadMemory()

12345