Home
last modified time | relevance | path

Searched refs:copy_length (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/libarchive/libarchive/
H A Darchive_write_set_format_ustar.c392 size_t copy_length; local
410 r = archive_entry_pathname_l(entry, &pp, &copy_length, sconv);
422 if (copy_length <= USTAR_name_size)
423 memcpy(h + USTAR_name_offset, pp, copy_length);
426 p = strchr(pp + copy_length - USTAR_name_size - 1, '/');
459 pp + copy_length - p - 1);
463 r = archive_entry_hardlink_l(entry, &p, &copy_length, sconv);
476 if (copy_length > 0)
479 r = archive_entry_symlink_l(entry, &p, &copy_length, sconv);
493 if (copy_length > 0) {
[all …]
H A Darchive_write_set_format_gnutar.c569 size_t copy_length; in archive_format_gnutar_header() local
591 copy_length = strlen(p); in archive_format_gnutar_header()
594 copy_length = gnutar->pathname_length; in archive_format_gnutar_header()
596 if (copy_length > GNUTAR_name_size) in archive_format_gnutar_header()
597 copy_length = GNUTAR_name_size; in archive_format_gnutar_header()
598 memcpy(h + GNUTAR_name_offset, p, copy_length); in archive_format_gnutar_header()
600 if ((copy_length = gnutar->linkname_length) > 0) { in archive_format_gnutar_header()
601 if (copy_length > GNUTAR_linkname_size) in archive_format_gnutar_header()
602 copy_length = GNUTAR_linkname_size; in archive_format_gnutar_header()
604 copy_length); in archive_format_gnutar_header()
[all …]
H A Darchive_write_set_format_v7tar.c365 size_t copy_length; in format_header_v7tar() local
383 r = archive_entry_pathname_l(entry, &pp, &copy_length, sconv); in format_header_v7tar()
395 if (strict && copy_length < V7TAR_name_size) in format_header_v7tar()
396 memcpy(h + V7TAR_name_offset, pp, copy_length); in format_header_v7tar()
397 else if (!strict && copy_length <= V7TAR_name_size) in format_header_v7tar()
398 memcpy(h + V7TAR_name_offset, pp, copy_length); in format_header_v7tar()
406 r = archive_entry_hardlink_l(entry, &p, &copy_length, sconv); in format_header_v7tar()
419 if (copy_length > 0) in format_header_v7tar()
422 r = archive_entry_symlink_l(entry, &p, &copy_length, sconv); in format_header_v7tar()
436 if (copy_length > 0) { in format_header_v7tar()
[all …]
/freebsd/sys/dev/isci/scil/
H A Dscic_sds_stp_request.c1211 U32 copy_length; in scic_sds_stp_request_pio_data_in_copy_data_buffer()
1218 copy_length = MIN(length, current_sgl->length - sgl_offset); in scic_sds_stp_request_pio_data_in_copy_data_buffer()
1220 memcpy(destination_address, source_address, copy_length); in scic_sds_stp_request_pio_data_in_copy_data_buffer()
1222 length -= copy_length; in scic_sds_stp_request_pio_data_in_copy_data_buffer()
1223 sgl_offset += copy_length; in scic_sds_stp_request_pio_data_in_copy_data_buffer()
1224 data_offset += copy_length; in scic_sds_stp_request_pio_data_in_copy_data_buffer()
1225 source_address += copy_length; in scic_sds_stp_request_pio_data_in_copy_data_buffer()
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_interceptors.cpp538 uptr copy_length = Min(size, from_length + 1); local
539 ASAN_READ_RANGE(ctx, from, copy_length);
544 CHECK_RANGES_OVERLAP("strncat", to, to_length + copy_length + 1,
545 from, copy_length);
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_interceptors.cpp193 uptr copy_length = Min(size, from_length + 1); in INTERCEPTOR() local
194 MEMPROF_READ_RANGE(from, copy_length); in INTERCEPTOR()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dvdev_indirect.c1023 size_t copy_length = entries * sizeof (*first_mapping); in vdev_indirect_mapping_duplicate_adjacent_entries() local
1024 duplicate_mappings = kmem_alloc(copy_length, KM_SLEEP); in vdev_indirect_mapping_duplicate_adjacent_entries()
1025 memcpy(duplicate_mappings, first_mapping, copy_length); in vdev_indirect_mapping_duplicate_adjacent_entries()
/freebsd/stand/libsa/zfs/
H A Dzfsimpl.c526 size_t copy_length = entries * sizeof (*first_mapping); in vdev_indirect_mapping_duplicate_adjacent_entries() local
527 duplicate_mappings = malloc(copy_length); in vdev_indirect_mapping_duplicate_adjacent_entries()
529 bcopy(first_mapping, duplicate_mappings, copy_length); in vdev_indirect_mapping_duplicate_adjacent_entries()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc313 uptr copy_length = internal_strnlen(s, size); \
314 char *new_mem = (char *)WRAP(malloc)(copy_length + 1); \
316 COMMON_INTERCEPTOR_READ_STRING(ctx, s, Min(size, copy_length + 1)); \
319 COMMON_INTERCEPTOR_COPY_STRING(ctx, new_mem, s, copy_length); \
320 internal_memcpy(new_mem, s, copy_length); \
321 new_mem[copy_length] = '\0'; \