/freebsd-src/contrib/libarchive/libarchive/ |
H A D | archive_string.h | 165 archive_strncpy((as), (p), ((p) == NULL ? 0 : strlen(p))) 172 #define archive_strncpy(as,p,l) \ macro
|
H A D | archive_read_support_format_lha.c | 833 archive_strncpy(&lha->filename, p + H0_FILE_NAME_OFFSET, namelen); in lha_read_file_header_0() 937 archive_strncpy(&lha->filename, p + H1_FILE_NAME_OFFSET, namelen); in lha_read_file_header_1() 1234 archive_strncpy(&lha->filename, in lha_read_file_extended_header() 1263 archive_strncpy(&lha->dirname, in lha_read_file_extended_header() 1399 archive_strncpy(&lha->gname, in lha_read_file_extended_header() 1404 archive_strncpy(&lha->uname, in lha_read_file_extended_header()
|
H A D | archive_write_set_format_v7tar.c | 307 archive_strncpy(&as, p, path_length); in archive_write_v7tar_header()
|
H A D | archive_read_support_format_tar.c | 1118 archive_strncpy(&(tar->localname), acl, p - acl); in header_volume() 1356 archive_strncpy(&linkpath, in header_common() 1434 archive_strncpy(&linkpath, in read_mac_metadata_blob() 1701 archive_strncpy(&as, header->prefix, sizeof(header->prefix)); in pax_header() 1706 archive_strncpy(&as, header->name, sizeof(header->name)); in pax_header() 1906 archive_strncpy(&attr_name, name_start, name_length); in pax_attribute()
|
H A D | archive_read_support_format_xar.c | 2727 archive_strncpy(&(xar->file->symlink), s, len); in xml_data() 2778 archive_strncpy(&(xar->file->gname), s, len); in xml_data() 2786 archive_strncpy(&(xar->file->uname), s, len); in xml_data() 2848 archive_strncpy(&(xar->xattr->name), s, len); in xml_data() 2852 archive_strncpy(&(xar->xattr->fstype), s, len); in xml_data()
|
H A D | archive_write_set_format_ustar.c | 333 archive_strncpy(&as, p, path_length); in archive_write_ustar_header()
|
H A D | archive_write_set_format_gnutar.c | 362 archive_strncpy(&as, p, path_length); in archive_write_gnutar_header()
|
H A D | archive_write_set_format_xar.c | 763 archive_strncpy(&(xar->cur_file->script), b + off, in xar_write_data() 2094 archive_strncpy(&(file->parentdir), pp, len); in file_gen_utility_names() 2198 archive_strncpy(&(file->symlink), pp, len2); in file_gen_utility_names()
|
H A D | archive_string.c | 4108 archive_strncpy(&(aes->aes_mbs), mbs, len); in archive_mstring_copy_mbs_len_l() 4131 archive_strncpy(&(aes->aes_utf8), utf8, strlen(utf8)); in archive_mstring_copy_mbs_len_l()
|
H A D | archive_write_set_format_pax.c | 729 archive_strncpy(&as, p, path_length); in archive_write_pax_header()
|
H A D | archive_read_support_format_zip.c | 3869 archive_strncpy(&str, name, name_length); in expose_parent_dirs() 4073 archive_strncpy(&(zip_entry->rsrcname), in slurp_central_directory()
|
H A D | archive_read_support_format_cab.c | 810 archive_strncpy(&(file->pathname), p, len); in cab_read_header()
|
H A D | archive_read_support_format_iso9660.c | 1976 archive_strncpy(&file->name, (const char *)p, name_len); in parse_file_info()
|
H A D | archive_write_disk_posix.c | 4420 archive_strncpy(&datafork, pathname, p - pathname); in fixup_appledouble()
|
/freebsd-src/contrib/libarchive/libarchive/test/ |
H A D | test_archive_string.c | 155 assert(&s == archive_strncpy(&s, "fubar", 5)); in test_archive_strncpy() 159 assert(&s == archive_strncpy(&s, "snafubar", 5)); in test_archive_strncpy() 163 assert(&s == archive_strncpy(&s, "snafu", 8)); in test_archive_strncpy()
|