Home
last modified time | relevance | path

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

12345

/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_compat_solaris_pax_sparse.c38 size_t bytes_read; in test_compat_solaris_pax_sparse_1() local
78 archive_read_data_block(a, &buff, &bytes_read, &offset)) { in test_compat_solaris_pax_sparse_1()
80 assert((offset >= 0 && offset + bytes_read <= 131072) || in test_compat_solaris_pax_sparse_1()
82 (offset >= 786432 && offset + bytes_read <= 786432+32775)); in test_compat_solaris_pax_sparse_1()
83 if (offset == 0 && bytes_read >= 1024*8) { in test_compat_solaris_pax_sparse_1()
87 } else if (offset + bytes_read == 819207 && bytes_read >= 7) { in test_compat_solaris_pax_sparse_1()
89 last += bytes_read - 7; in test_compat_solaris_pax_sparse_1()
119 size_t bytes_read; in test_compat_solaris_pax_sparse_2() local
154 archive_read_data_block(a, &buff, &bytes_read, &offset)) { in test_compat_solaris_pax_sparse_2()
158 if (offset + bytes_read == 819231 && bytes_read >= 31) { in test_compat_solaris_pax_sparse_2()
[all …]
H A Dtest_sparse_basic.c331 size_t bytes_read; in verify_sparse_file() local
342 while (ARCHIVE_OK == archive_read_data_block(a, &buff, &bytes_read, in verify_sparse_file()
346 fprintf(stderr, "%s: bytes_read=%d offset=%d\n", path, (int)bytes_read, (int)offset); in verify_sparse_file()
363 && expected_offset + (int64_t)sparse->size <= offset + (int64_t)bytes_read) { in verify_sparse_file()
378 while (expected_offset + (int64_t)sparse->size <= offset + (int64_t)bytes_read) { in verify_sparse_file()
386 if (end > (const char *)buff + bytes_read) { in verify_sparse_file()
387 end = (const char *)buff + bytes_read; in verify_sparse_file()
398 if (assert(expected_offset + sparse->size <= offset + bytes_read)) { in verify_sparse_file()
410 if (expected_offset < offset + (int64_t)bytes_read) { in verify_sparse_file()
411 const char *end = (const char *)buff + bytes_read; in verify_sparse_file()
[all …]
/freebsd/sys/dev/cxgbe/cudbg/
H A Dfastlz_api.c213 unsigned int bytes_read; in compress_buff() local
225 if (bytes_read < 32) in compress_buff()
242 bytes_read); in compress_buff()
261 bytes_read); in compress_buff()
268 bytes_read); in compress_buff()
286 size_t bytes_read; in detect_magic() local
292 if (bytes_read < 8) in detect_magic()
393 if (bytes_read == 0) in decompress_buffer()
442 bytes_read = in decompress_buffer()
454 bytes_read); in decompress_buffer()
[all …]
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/libcbor/examples/
H A Dstreaming_parser.c54 size_t bytes_read = 0; in main() local
56 while (bytes_read < length) { in main()
57 decode_result = cbor_stream_decode(buffer + bytes_read, length - bytes_read, in main()
59 bytes_read += decode_result.read; in main()
/freebsd/sys/dev/liquidio/base/
H A Dlio_console.c468 int32_t bytes_read) in lio_output_console_line() argument
475 for (i = 0; i < bytes_read; i++) { in lio_output_console_line()
539 if (bytes_read > 0) { in lio_check_console()
540 total_read += bytes_read; in lio_check_console()
548 bytes_read); in lio_check_console()
551 } else if (bytes_read < 0) { in lio_check_console()
553 console_num, bytes_read); in lio_check_console()
798 if (bytes_read > 0) { in lio_get_uboot_version()
801 total_read += bytes_read; in lio_get_uboot_version()
805 } else if (bytes_read < 0) { in lio_get_uboot_version()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DNativeProcessProtocol.cpp376 size_t bytes_read = 0; in RemoveSoftwareBreakpoint() local
433 size_t bytes_read = 0; in EnableSoftwareBreakpoint() local
440 if (bytes_read != saved_opcode_bytes.size()) { in EnableSoftwareBreakpoint()
445 saved_opcode_bytes.size(), bytes_read); in EnableSoftwareBreakpoint()
682 size_t bytes_read = 0; in ReadCStringFromMemory() local
695 bytes_to_read, bytes_read); in ReadCStringFromMemory()
697 if (bytes_read == 0) in ReadCStringFromMemory()
708 total_bytes_read += bytes_read; in ReadCStringFromMemory()
709 curr_buffer += bytes_read; in ReadCStringFromMemory()
710 curr_addr += bytes_read; in ReadCStringFromMemory()
[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 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()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_support_format_tar.c593 ssize_t bytes_read; in archive_read_format_tar_read_data() local
626 if (bytes_read < 0) in archive_read_format_tar_read_data()
639 *size = bytes_read; in archive_read_format_tar_read_data()
853 ssize_t bytes_read; in tar_read_header() local
2346 ssize_t bytes_read; in gnu_sparse_old_read() local
2363 if (bytes_read < 0) in gnu_sparse_old_read()
2484 ssize_t bytes_read; in gnu_sparse_10_atol() local
2515 bytes_read--; in gnu_sparse_10_atol()
2528 ssize_t bytes_read; in gnu_sparse_10_read() local
2764 ssize_t bytes_read; in readline() local
[all …]
H A Darchive_read_support_format_ar.c483 ssize_t bytes_read; in archive_read_format_ar_read_data() local
494 *buff = __archive_read_ahead(a, 1, &bytes_read); in archive_read_format_ar_read_data()
495 if (bytes_read == 0) { in archive_read_format_ar_read_data()
500 if (bytes_read < 0) in archive_read_format_ar_read_data()
502 if (bytes_read > ar->entry_bytes_remaining) in archive_read_format_ar_read_data()
503 bytes_read = (ssize_t)ar->entry_bytes_remaining; in archive_read_format_ar_read_data()
504 *size = bytes_read; in archive_read_format_ar_read_data()
505 ar->entry_bytes_unconsumed = bytes_read; in archive_read_format_ar_read_data()
507 ar->entry_offset += bytes_read; in archive_read_format_ar_read_data()
508 ar->entry_bytes_remaining -= bytes_read; in archive_read_format_ar_read_data()
H A Darchive_write_add_filter_program.c333 ssize_t bytes_read; in __archive_write_program_close() local
345 bytes_read = read(data->child_stdout, in __archive_write_program_close()
348 } while (bytes_read == -1 && errno == EINTR); in __archive_write_program_close()
350 if (bytes_read == 0 || (bytes_read == -1 && errno == EPIPE)) in __archive_write_program_close()
353 if (bytes_read == -1) { in __archive_write_program_close()
359 data->child_buf_avail += bytes_read; in __archive_write_program_close()
H A Darchive_read_open_file.c111 size_t bytes_read; in file_read() local
114 bytes_read = fread(mine->buffer, 1, mine->block_size, mine->f); in file_read()
115 if (bytes_read < mine->block_size && ferror(mine->f)) { in file_read()
118 return (bytes_read); in file_read()
H A Darchive_read_open_fd.c115 ssize_t bytes_read; in file_read() local
119 bytes_read = read(mine->fd, mine->buffer, mine->block_size); in file_read()
120 if (bytes_read < 0) { in file_read()
126 return (bytes_read); in file_read()
H A Darchive_read.c827 size_t bytes_read; in archive_read_data() local
831 bytes_read = 0; in archive_read_data()
844 return (bytes_read); in archive_read_data()
876 bytes_read += len; in archive_read_data()
891 bytes_read += len; in archive_read_data()
897 return (bytes_read); in archive_read_data()
1328 ssize_t bytes_read; in __archive_read_filter_ahead() local
1538 ssize_t bytes_read; in advance_file_pointer() local
1583 if (bytes_read < 0) { in advance_file_pointer()
1586 return (bytes_read); in advance_file_pointer()
[all …]
/freebsd/sys/contrib/openzfs/lib/libzutil/
H A Dzutil_pool.c106 zpool_history_unpack(char *buf, uint64_t bytes_read, uint64_t *leftover, in zpool_history_unpack() argument
114 while (bytes_read > sizeof (reclen)) { in zpool_history_unpack()
120 if (bytes_read < sizeof (reclen) + reclen) in zpool_history_unpack()
127 bytes_read -= sizeof (reclen) + reclen; in zpool_history_unpack()
145 *leftover = bytes_read; in zpool_history_unpack()
/freebsd/crypto/openssl/apps/
H A Ds_time.c128 long bytes_read = 0, finishtime = 0; in s_time_main() local
273 bytes_read = 0; in s_time_main()
289 bytes_read += i; in s_time_main()
317 nConn, totalTime, ((double)nConn / totalTime), bytes_read); in s_time_main()
321 nConn > 0 ? bytes_read / nConn : 0l); in s_time_main()
355 bytes_read = 0; in s_time_main()
371 bytes_read += i; in s_time_main()
396 nConn, totalTime, ((double)nConn / totalTime), bytes_read); in s_time_main()
400 nConn, (long)time(NULL) - finishtime + maxtime, bytes_read / nConn); in s_time_main()
/freebsd/lib/libutil/
H A Duucplock.c208 int bytes_read; in get_pid() local
212 bytes_read = read (fd, buf, sizeof (buf) - 1); in get_pid()
213 if (bytes_read > 0) { in get_pid()
214 buf[bytes_read] = '\0'; in get_pid()
218 *err = bytes_read ? errno : EINVAL; in get_pid()
/freebsd/contrib/llvm-project/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()
/freebsd/sys/security/mac_veriexec_parser/
H A Dmac_veriexec_parser.c260 ssize_t bytes_read, resid; in read_manifest() local
264 bytes_read = 0; in read_manifest()
276 while (bytes_read < va.va_size) { in read_manifest()
279 va.va_size - bytes_read, bytes_read, in read_manifest()
285 bytes_read = va.va_size - resid; in read_manifest()
288 data[bytes_read] = '\0'; in read_manifest()
/freebsd/contrib/dialog/
H A Dtextbox.c42 long bytes_read; member
144 obj->bytes_read = begin_line = 0; in read_high()
148 - ((obj->bytes_read - begin_line) in read_high()
151 obj->bytes_read++; in read_high()
152 begin_line = obj->bytes_read; in read_high()
154 obj->bytes_read++; in read_high()
163 obj->buffer_len = obj->bytes_read; in read_high()
177 obj->bytes_read = obj->fd_bytes_read; in read_high()
206 if (obj->bytes_read == -1) in read_high()
374 || obj->in_buf >= obj->bytes_read in back_lines()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_custom.cpp149 size_t bytes_read; in __dfsw_strchr() local
158 size_t bytes_read; in __dfso_strchr() local
271 *bytes_read = n; in dfsan_memcmp_bcmp()
294 size_t bytes_read; in dfsan_memcmp_bcmp_label() local
303 size_t bytes_read; in dfsan_memcmp_bcmp_origin() local
384 size_t bytes_read; in DECLARE_WEAK_INTERCEPTOR_HOOK() local
396 size_t bytes_read; in __dfso_strcmp() local
423 size_t bytes_read; in __dfsw_strcasecmp() local
433 size_t bytes_read; in __dfso_strcasecmp() local
463 size_t bytes_read; in DECLARE_WEAK_INTERCEPTOR_HOOK() local
[all …]
/freebsd/contrib/llvm-project/lldb/source/Host/posix/
H A DPipePosix.cpp305 size_t &bytes_read) { in ReadWithTimeout() argument
307 bytes_read = 0; in ReadWithTimeout()
322 ::read(fd, static_cast<char *>(buf) + bytes_read, size - bytes_read); in ReadWithTimeout()
324 bytes_read += result; in ReadWithTimeout()
325 if (bytes_read == size || result == 0) in ReadWithTimeout()
/freebsd/crypto/openssl/providers/common/
H A Dbio_prov.c91 size_t *bytes_read) in ossl_prov_bio_read_ex() argument
95 return c_bio_read_ex(bio, data, data_len, bytes_read); in ossl_prov_bio_read_ex()
165 size_t *bytes_read) in bio_core_read_ex() argument
167 return ossl_prov_bio_read_ex(BIO_get_data(bio), data, data_len, bytes_read); in bio_core_read_ex()

12345