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

/freebsd-11-stable/contrib/libarchive/libarchive/test/
H A Dtest_archive_string_conversion.c716 struct archive_string_conv *sconv; local
722 assertA(NULL != (sconv =
726 archive_string_conversion_charset_name(sconv));
728 assertA(NULL != (sconv =
732 archive_string_conversion_charset_name(sconv));
734 assertA(NULL != (sconv =
738 archive_string_conversion_charset_name(sconv));
740 assertA(NULL != (sconv =
744 archive_string_conversion_charset_name(sconv));
746 assertA(NULL != (sconv
[all...]
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_write_set_format_v7tar.c220 struct archive_string_conv *sconv; local
232 sconv = v7tar->sconv_default;
234 sconv = v7tar->opt_sconv;
332 ret = format_header_v7tar(a, buff, entry, 1, sconv);
363 struct archive_string_conv *sconv)
385 r = archive_entry_pathname_l(entry, &pp, &copy_length, sconv);
394 pp, archive_string_conversion_charset_name(sconv));
408 r = archive_entry_hardlink_l(entry, &p, &copy_length, sconv);
418 p, archive_string_conversion_charset_name(sconv));
424 r = archive_entry_symlink_l(entry, &p, &copy_length, sconv);
361 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.c171 struct archive_string_conv *sconv; local
174 sconv = cpio->opt_sconv;
175 if (sconv == NULL) {
182 sconv = cpio->sconv_default;
184 return (sconv);
225 struct archive_string_conv *sconv; local
232 sconv = get_sconv(a);
251 ret = archive_entry_pathname_l(entry, &path, &len, sconv);
262 archive_string_conversion_charset_name(sconv));
304 ret = archive_entry_symlink_l(entry, &p, &len, sconv);
[all...]
H A Darchive_write_set_format_cpio_binary.c334 struct archive_string_conv *sconv; local
337 sconv = cpio->opt_sconv;
338 if (sconv == NULL) {
345 sconv = cpio->sconv_default;
347 return (sconv);
387 struct archive_string_conv *sconv; local
393 sconv = get_sconv(a);
412 ret = archive_entry_pathname_l(entry, &path, &len, sconv);
423 archive_string_conversion_charset_name(sconv));
483 ret = archive_entry_symlink_l(entry, &p, &len, sconv);
[all...]
H A Darchive_write_set_format_cpio_odc.c231 struct archive_string_conv *sconv; local
234 sconv = cpio->opt_sconv;
235 if (sconv == NULL) {
242 sconv = cpio->sconv_default;
244 return (sconv);
284 struct archive_string_conv *sconv; local
290 sconv = get_sconv(a);
309 ret = archive_entry_pathname_l(entry, &path, &len, sconv);
320 archive_string_conversion_charset_name(sconv));
362 ret = archive_entry_symlink_l(entry, &p, &len, sconv);
[all...]
H A Darchive_write_set_format_ustar.c243 struct archive_string_conv *sconv; local
254 sconv = ustar->sconv_default;
256 sconv = ustar->opt_sconv;
354 ret = __archive_write_format_header_ustar(a, buff, entry, -1, 1, sconv);
386 struct archive_string_conv *sconv)
408 r = archive_entry_pathname_l(entry, &pp, &copy_length, sconv);
417 pp, archive_string_conversion_charset_name(sconv));
461 r = archive_entry_hardlink_l(entry, &p, &copy_length, sconv);
471 p, archive_string_conversion_charset_name(sconv));
477 r = archive_entry_symlink_l(entry, &p, &copy_length, sconv);
384 __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.c281 struct archive_string_conv *sconv; local
294 sconv = gnutar->sconv_default;
296 sconv = gnutar->opt_sconv;
388 &(gnutar->pathname_length), sconv);
399 archive_string_conversion_charset_name(sconv));
403 &(gnutar->uname_length), sconv);
415 archive_string_conversion_charset_name(sconv));
419 &(gnutar->gname_length), sconv);
431 archive_string_conversion_charset_name(sconv));
437 &(gnutar->linkname_length), sconv);
[all...]
H A Darchive_write_set_format_pax.c583 struct archive_string_conv *sconv; local
609 sconv = NULL;/* Binary mode. */
621 sconv = pax->sconv_utf8;
625 &hardlink_length, sconv);
635 archive_string_conversion_charset_name(sconv));
637 sconv = NULL;/* The header charset switches to binary mode. */
854 r = get_entry_pathname(a, entry_main, &path, &path_length, sconv);
867 archive_string_conversion_charset_name(sconv));
869 sconv = NULL;/* The header charset switches to binary mode. */
871 r = get_entry_uname(a, entry_main, &uname, &uname_length, sconv);
[all...]
H A Darchive_read_support_format_tar.c151 struct archive_string_conv *sconv; member in struct:tar
534 tar->sconv = tar->opt_sconv;
535 if (tar->sconv == NULL) {
541 tar->sconv = tar->sconv_default;
1075 struct archive_string_conv *sconv, const char *name)
1084 name, archive_string_conversion_charset_name(sconv));
1105 archive_strlen(&(tar->longname)), tar->sconv) != 0)
1106 err = set_conversion_failed_error(a, tar->sconv, "Pathname");
1220 archive_strlen(&(tar->entry_linkpath)), tar->sconv) != 0) {
1221 err = set_conversion_failed_error(a, tar->sconv,
1074 set_conversion_failed_error(struct archive_read *a, struct archive_string_conv *sconv, const char *name) argument
1589 struct archive_string_conv *sconv; local
[all...]
H A Darchive_private.h128 struct archive_string_conv *sconv; member in struct:archive
H A Darchive_read_support_format_cpio.c366 struct archive_string_conv *sconv; local
372 sconv = cpio->opt_sconv;
373 if (sconv == NULL) {
380 sconv = cpio->sconv_default;
393 (const char *)h, namelength, sconv) != 0) {
401 archive_string_conversion_charset_name(sconv));
420 (size_t)cpio->entry_bytes_remaining, sconv) != 0) {
430 archive_string_conversion_charset_name(sconv));
H A Darchive_read_support_format_zip.c200 struct archive_string_conv *sconv; member in struct:zip
926 struct archive_string_conv *sconv; local
942 if (zip->sconv == NULL && !zip->init_default_conversion) {
1001 sconv = zip->sconv_utf8;
1002 } else if (zip->sconv != NULL)
1003 sconv = zip->sconv;
1005 sconv = zip->sconv_default;
1008 h, filename_length, sconv) != 0) {
1018 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_read_support_format_rar.c1274 struct archive_string_conv *sconv, *fn_sconv; local
1281 sconv = rar->opt_sconv;
1282 if (sconv == NULL) {
1289 sconv = rar->sconv_default;
1539 fn_sconv = sconv;
1697 if ((ret2 = read_symlink_stored(a, entry, sconv)) < (ARCHIVE_WARN))
1814 struct archive_string_conv *sconv)
1827 p, (size_t)rar->packed_size, sconv))
1837 archive_string_conversion_charset_name(sconv));
1813 read_symlink_stored(struct archive_read *a, struct archive_entry *entry, struct archive_string_conv *sconv) argument
H A Darchive_write_set_format_xar.c250 struct archive_string_conv *sconv; member in struct:xar
546 if (xar->sconv == NULL) {
547 xar->sconv = archive_string_conversion_to_charset(
549 if (xar->sconv == NULL)
1345 r = archive_entry_uname_l(file->entry, &p, &len, xar->sconv);
1371 r = archive_entry_gname_l(file->entry, &p, &len, xar->sconv);
2086 if (archive_entry_pathname_l(file->entry, &pp, &len, xar->sconv)
2191 xar->sconv) != 0) {
H A Darchive_read_support_format_xar.c360 struct archive_string_conv *sconv; member in struct:xar
677 if (xar->sconv == NULL) {
678 xar->sconv = archive_string_conversion_from_charset(
680 if (xar->sconv == NULL)
718 archive_strlen(&(file->gname)), xar->sconv) != 0) {
727 archive_string_conversion_charset_name(xar->sconv));
733 archive_strlen(&(file->uname)), xar->sconv) != 0) {
742 archive_string_conversion_charset_name(xar->sconv));
747 archive_strlen(&(file->pathname)), xar->sconv) != 0) {
756 archive_string_conversion_charset_name(xar->sconv));
[all...]
H A Darchive_write_set_format_zip.c522 struct archive_string_conv *sconv = get_sconv(a, zip); local
609 if (sconv != NULL) {
613 if (archive_entry_pathname_l(entry, &p, &len, sconv) != 0) {
623 archive_string_conversion_charset_name(sconv));
635 if (archive_entry_symlink_l(entry, &p, &len, sconv)) {
H A Darchive_write_set_format_7zip.c198 struct archive_string_conv *sconv; member in struct:_7zip
434 if (zip->sconv == NULL) {
435 zip->sconv = archive_string_conversion_to_charset(
437 if (zip->sconv == NULL)
1512 if (0 > archive_entry_pathname_l(entry, &u16, &u16len, zip->sconv)) {
H A Darchive_read_support_format_7zip.c327 struct archive_string_conv *sconv; member in struct:_7zip
658 if (zip->sconv == NULL) {
659 zip->sconv = archive_string_conversion_from_charset(
661 if (zip->sconv == NULL)
693 zip_entry->name_len, zip->sconv) != 0) {
703 archive_string_conversion_charset_name(zip->sconv));
H A Darchive_string.c874 for (sc = a->sconv; sc != NULL; sc = sc->next) {
890 /* Add a new sconv to sconv list. */
891 psc = &(a->sconv);
1646 /* Check if we have made the sconv object. */
1682 /* Failed; free a sconv object. */
1819 for (sc = a->sconv; sc != NULL; sc = sc_next) {
1823 a->sconv = NULL;

Completed in 260 milliseconds