Searched refs:sconv (Results 1 - 20 of 20) sorted by relevance

/freebsd-current/contrib/libarchive/libarchive/test/
H A Dtest_archive_string_conversion.c714 struct archive_string_conv *sconv; local
720 assertA(NULL != (sconv =
724 archive_string_conversion_charset_name(sconv));
726 assertA(NULL != (sconv =
730 archive_string_conversion_charset_name(sconv));
732 assertA(NULL != (sconv =
736 archive_string_conversion_charset_name(sconv));
738 assertA(NULL != (sconv =
742 archive_string_conversion_charset_name(sconv));
744 assertA(NULL != (sconv
[all...]
/freebsd-current/contrib/libarchive/libarchive/
H A Darchive_write_set_format_v7tar.c218 struct archive_string_conv *sconv; local
230 sconv = v7tar->sconv_default;
232 sconv = v7tar->opt_sconv;
330 ret = format_header_v7tar(a, buff, entry, 1, sconv);
361 struct archive_string_conv *sconv)
383 r = archive_entry_pathname_l(entry, &pp, &copy_length, sconv);
392 pp, archive_string_conversion_charset_name(sconv));
406 r = archive_entry_hardlink_l(entry, &p, &copy_length, sconv);
416 p, archive_string_conversion_charset_name(sconv));
422 r = archive_entry_symlink_l(entry, &p, &copy_length, sconv);
359 format_header_v7tar(struct archive_write *a, char h[512], struct archive_entry *entry, int strict, struct archive_string_conv *sconv) argument
[all...]
H A Darchive_write_set_format_cpio_newc.c170 struct archive_string_conv *sconv; local
173 sconv = cpio->opt_sconv;
174 if (sconv == NULL) {
181 sconv = cpio->sconv_default;
183 return (sconv);
224 struct archive_string_conv *sconv; local
231 sconv = get_sconv(a);
250 ret = archive_entry_pathname_l(entry, &path, &len, sconv);
261 archive_string_conversion_charset_name(sconv));
303 ret = archive_entry_symlink_l(entry, &p, &len, sconv);
[all...]
H A Darchive_write_set_format_cpio_binary.c333 struct archive_string_conv *sconv; local
336 sconv = cpio->opt_sconv;
337 if (sconv == NULL) {
344 sconv = cpio->sconv_default;
346 return (sconv);
386 struct archive_string_conv *sconv; local
392 sconv = get_sconv(a);
411 ret = archive_entry_pathname_l(entry, &path, &len, sconv);
422 archive_string_conversion_charset_name(sconv));
482 ret = archive_entry_symlink_l(entry, &p, &len, sconv);
[all...]
H A Darchive_write_set_format_cpio_odc.c230 struct archive_string_conv *sconv; local
233 sconv = cpio->opt_sconv;
234 if (sconv == NULL) {
241 sconv = cpio->sconv_default;
243 return (sconv);
283 struct archive_string_conv *sconv; local
289 sconv = get_sconv(a);
308 ret = archive_entry_pathname_l(entry, &path, &len, sconv);
319 archive_string_conversion_charset_name(sconv));
361 ret = archive_entry_symlink_l(entry, &p, &len, sconv);
[all...]
H A Darchive_write_set_format_ustar.c241 struct archive_string_conv *sconv; local
252 sconv = ustar->sconv_default;
254 sconv = ustar->opt_sconv;
352 ret = __archive_write_format_header_ustar(a, buff, entry, -1, 1, sconv);
384 struct archive_string_conv *sconv)
406 r = archive_entry_pathname_l(entry, &pp, &copy_length, sconv);
415 pp, archive_string_conversion_charset_name(sconv));
459 r = archive_entry_hardlink_l(entry, &p, &copy_length, sconv);
469 p, archive_string_conversion_charset_name(sconv));
475 r = archive_entry_symlink_l(entry, &p, &copy_length, sconv);
382 __archive_write_format_header_ustar(struct archive_write *a, char h[512], struct archive_entry *entry, int tartype, int strict, struct archive_string_conv *sconv) argument
[all...]
H A Darchive_write_set_format_gnutar.c279 struct archive_string_conv *sconv; local
292 sconv = gnutar->sconv_default;
294 sconv = gnutar->opt_sconv;
386 &(gnutar->pathname_length), sconv);
397 archive_string_conversion_charset_name(sconv));
401 &(gnutar->uname_length), sconv);
413 archive_string_conversion_charset_name(sconv));
417 &(gnutar->gname_length), sconv);
429 archive_string_conversion_charset_name(sconv));
435 &(gnutar->linkname_length), sconv);
[all...]
H A Darchive_read_support_format_tar.c150 struct archive_string_conv *sconv; member in struct:tar
532 tar->sconv = tar->opt_sconv;
533 if (tar->sconv == NULL) {
539 tar->sconv = tar->sconv_default;
1077 struct archive_string_conv *sconv, const char *name)
1086 name, archive_string_conversion_charset_name(sconv));
1107 archive_strlen(&(tar->longname)), tar->sconv) != 0)
1108 err = set_conversion_failed_error(a, tar->sconv, "Pathname");
1222 archive_strlen(&(tar->entry_linkpath)), tar->sconv) != 0) {
1223 err = set_conversion_failed_error(a, tar->sconv,
1076 set_conversion_failed_error(struct archive_read *a, struct archive_string_conv *sconv, const char *name) argument
1597 struct archive_string_conv *sconv; local
[all...]
H A Darchive_write_set_format_pax.c593 struct archive_string_conv *sconv; local
621 sconv = NULL;/* Binary mode. */
633 sconv = pax->sconv_utf8;
637 &hardlink_length, sconv);
647 archive_string_conversion_charset_name(sconv));
649 sconv = NULL;/* The header charset switches to binary mode. */
866 r = get_entry_pathname(a, entry_main, &path, &path_length, sconv);
879 archive_string_conversion_charset_name(sconv));
881 sconv = NULL;/* The header charset switches to binary mode. */
883 r = get_entry_uname(a, entry_main, &uname, &uname_length, sconv);
[all...]
H A Darchive_private.h125 struct archive_string_conv *sconv; member in struct:archive
H A Darchive_read_support_format_cpio.c365 struct archive_string_conv *sconv; local
371 sconv = cpio->opt_sconv;
372 if (sconv == NULL) {
379 sconv = cpio->sconv_default;
392 (const char *)h, namelength, sconv) != 0) {
400 archive_string_conversion_charset_name(sconv));
419 (size_t)cpio->entry_bytes_remaining, sconv) != 0) {
429 archive_string_conversion_charset_name(sconv));
H A Darchive_read_support_format_zip.c207 struct archive_string_conv *sconv; member in struct:zip
934 struct archive_string_conv *sconv; local
950 if (zip->sconv == NULL && !zip->init_default_conversion) {
1009 sconv = zip->sconv_utf8;
1010 } else if (zip->sconv != NULL)
1011 sconv = zip->sconv;
1013 sconv = zip->sconv_default;
1016 h, filename_length, sconv) != 0) {
1026 archive_string_conversion_charset_name(sconv));
[all...]
H A Darchive_read_support_format_cab.c294 struct archive_string_conv *sconv; member in struct:cab
470 cab->sconv = archive_string_conversion_from_charset(
472 if (cab->sconv != NULL)
890 struct archive_string_conv *sconv; local
947 sconv = cab->sconv_utf8;
948 } else if (cab->sconv != NULL) {
950 sconv = cab->sconv;
959 sconv = cab->sconv_default;
967 archive_strlen(&(file->pathname)), sconv) !
[all...]
H A Darchive_write_set_format_xar.c249 struct archive_string_conv *sconv; member in struct:xar
545 if (xar->sconv == NULL) {
546 xar->sconv = archive_string_conversion_to_charset(
548 if (xar->sconv == NULL)
1340 r = archive_entry_uname_l(file->entry, &p, &len, xar->sconv);
1366 r = archive_entry_gname_l(file->entry, &p, &len, xar->sconv);
2081 if (archive_entry_pathname_l(file->entry, &pp, &len, xar->sconv)
2186 xar->sconv) != 0) {
H A Darchive_read_support_format_xar.c359 struct archive_string_conv *sconv; member in struct:xar
678 if (xar->sconv == NULL) {
679 xar->sconv = archive_string_conversion_from_charset(
681 if (xar->sconv == NULL)
719 archive_strlen(&(file->gname)), xar->sconv) != 0) {
728 archive_string_conversion_charset_name(xar->sconv));
734 archive_strlen(&(file->uname)), xar->sconv) != 0) {
743 archive_string_conversion_charset_name(xar->sconv));
748 archive_strlen(&(file->pathname)), xar->sconv) != 0) {
757 archive_string_conversion_charset_name(xar->sconv));
[all...]
H A Darchive_write_set_format_zip.c520 struct archive_string_conv *sconv = get_sconv(a, zip); local
608 if (sconv != NULL) {
612 if (archive_entry_pathname_l(entry, &p, &len, sconv) != 0) {
622 archive_string_conversion_charset_name(sconv));
634 if (archive_entry_symlink_l(entry, &p, &len, sconv)) {
H A Darchive_read_support_format_rar.c1373 struct archive_string_conv *sconv, *fn_sconv; local
1380 sconv = rar->opt_sconv;
1381 if (sconv == NULL) {
1388 sconv = rar->sconv_default;
1640 fn_sconv = sconv;
1799 if ((ret2 = read_symlink_stored(a, entry, sconv)) < (ARCHIVE_WARN))
1907 struct archive_string_conv *sconv)
1920 p, (size_t)rar->packed_size, sconv))
1930 archive_string_conversion_charset_name(sconv));
1906 read_symlink_stored(struct archive_read *a, struct archive_entry *entry, struct archive_string_conv *sconv) argument
H A Darchive_write_set_format_7zip.c217 struct archive_string_conv *sconv; member in struct:_7zip
453 if (zip->sconv == NULL) {
454 zip->sconv = archive_string_conversion_to_charset(
456 if (zip->sconv == NULL)
1536 if (0 > archive_entry_pathname_l(entry, &u16, &u16len, zip->sconv)) {
H A Darchive_read_support_format_7zip.c362 struct archive_string_conv *sconv; member in struct:_7zip
696 if (zip->sconv == NULL) {
697 zip->sconv = archive_string_conversion_from_charset(
699 if (zip->sconv == NULL)
731 zip_entry->name_len, zip->sconv) != 0) {
741 archive_string_conversion_charset_name(zip->sconv));
H A Darchive_string.c875 for (sc = a->sconv; sc != NULL; sc = sc->next) {
891 /* Add a new sconv to sconv list. */
892 psc = &(a->sconv);
1651 /* Check if we have made the sconv object. */
1687 /* Failed; free a sconv object. */
1824 for (sc = a->sconv; sc != NULL; sc = sc_next) {
1828 a->sconv = NULL;

Completed in 278 milliseconds