Home
last modified time | relevance | path

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

/netbsd/src/external/bsd/libarchive/dist/libarchive/
Darchive_string.h165 archive_strncpy((as), (p), ((p) == NULL ? 0 : strlen(p)))
172 #define archive_strncpy(as,p,l) \ macro
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()
Darchive_read_support_format_tar.c1118 archive_strncpy(&(tar->localname), acl, p - acl); in header_Solaris_ACL()
1356 archive_strncpy(&linkpath, in header_common()
1434 archive_strncpy(&linkpath, in header_common()
1701 archive_strncpy(&as, header->prefix, sizeof(header->prefix)); in header_ustar()
1706 archive_strncpy(&as, header->name, sizeof(header->name)); in header_ustar()
1906 archive_strncpy(&attr_name, name_start, name_length); in header_pax_extension()
Darchive_write_set_format_v7tar.c307 archive_strncpy(&as, p, path_length); in archive_write_v7tar_header()
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()
Darchive_write_set_format_ustar.c333 archive_strncpy(&as, p, path_length);
Darchive_write_set_format_gnutar.c362 archive_strncpy(&as, p, path_length); in archive_write_gnutar_header()
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()
Darchive_string.c4108 archive_strncpy(&(aes->aes_mbs), mbs, len); in archive_mstring_copy_mbs_len()
4131 archive_strncpy(&(aes->aes_utf8), utf8, strlen(utf8)); in archive_mstring_copy_utf8()
Darchive_write_set_format_pax.c729 archive_strncpy(&as, p, path_length);
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()
Darchive_read_support_format_cab.c810 archive_strncpy(&(file->pathname), p, len); in cab_read_header()
Darchive_read_support_format_iso9660.c1976 archive_strncpy(&file->name, (const char *)p, name_len); in parse_file_info()
Darchive_write_disk_posix.c4484 archive_strncpy(&datafork, pathname, p - pathname); in fixup_appledouble()
/netbsd/src/external/bsd/libarchive/dist/libarchive/test/
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()