Home
last modified time | relevance | path

Searched refs:archive_strncpy (Results 1 – 15 of 15) sorted by relevance

/freebsd-src/contrib/libarchive/libarchive/
H A Darchive_string.h165 archive_strncpy((as), (p), ((p) == NULL ? 0 : strlen(p)))
172 #define archive_strncpy(as,p,l) \ macro
H A Darchive_read_support_format_lha.c833 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 Darchive_write_set_format_v7tar.c307 archive_strncpy(&as, p, path_length); in archive_write_v7tar_header()
H A Darchive_read_support_format_tar.c1118 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 Darchive_read_support_format_xar.c2727 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 Darchive_write_set_format_ustar.c333 archive_strncpy(&as, p, path_length); in archive_write_ustar_header()
H A Darchive_write_set_format_gnutar.c362 archive_strncpy(&as, p, path_length); in archive_write_gnutar_header()
H A Darchive_write_set_format_xar.c763 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 Darchive_string.c4108 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 Darchive_write_set_format_pax.c729 archive_strncpy(&as, p, path_length); in archive_write_pax_header()
H A Darchive_read_support_format_zip.c3869 archive_strncpy(&str, name, name_length); in expose_parent_dirs()
4073 archive_strncpy(&(zip_entry->rsrcname), in slurp_central_directory()
H A Darchive_read_support_format_cab.c810 archive_strncpy(&(file->pathname), p, len); in cab_read_header()
H A Darchive_read_support_format_iso9660.c1976 archive_strncpy(&file->name, (const char *)p, name_len); in parse_file_info()
H A Darchive_write_disk_posix.c4420 archive_strncpy(&datafork, pathname, p - pathname); in fixup_appledouble()
/freebsd-src/contrib/libarchive/libarchive/test/
H A Dtest_archive_string.c155 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()