@papyrus-sdk/engine-native 0.2.22-beta.9.epub.1 → 0.2.22-beta.9.epub.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +0 -1
- package/android/src/main/cpp/CMakeLists.txt +0 -137
- package/android/src/main/java/com/papyrus/engine/PapyrusNativeEngineModule.java +35 -305
- package/android/src/main/java/com/papyrus/engine/PapyrusPackage.java +1 -3
- package/android/src/main/java/com/papyrus/engine/PapyrusPdfViewerView.java +5 -195
- package/android/src/main/java/com/papyrus/engine/PapyrusPdfViewerViewManager.java +1 -20
- package/dist/index.d.mts +4 -614
- package/dist/index.d.ts +4 -614
- package/dist/index.js +8 -484
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -477
- package/dist/index.mjs.map +1 -1
- package/ios/PapyrusEngineStore.h +0 -3
- package/ios/PapyrusEngineStore.m +6 -32
- package/ios/PapyrusNativeEngine.m +5 -684
- package/ios/PapyrusNativeEngine.podspec +15 -0
- package/ios/PapyrusPageView.m +11 -38
- package/package.json +8 -10
- package/react-native.config.js +1 -1
- package/PapyrusNativeEngine.podspec +0 -45
- package/android/src/main/cpp/PapyrusComicArchiveJni.cpp +0 -68
- package/android/src/main/cpp/PapyrusComicArchiveTest.cpp +0 -55
- package/android/src/main/cpp/papyrus_outline_loader_test.cpp +0 -240
- package/android/src/main/cpp/papyrus_text_word_test.cpp +0 -72
- package/android/src/main/java/com/papyrus/engine/PapyrusComicArchiveNative.java +0 -14
- package/android/src/main/java/com/papyrus/engine/PapyrusComicDocumentView.java +0 -491
- package/android/src/main/java/com/papyrus/engine/PapyrusComicDocumentViewManager.java +0 -32
- package/android/src/main/java/com/papyrus/engine/PapyrusComicPageLayout.java +0 -38
- package/android/src/main/java/com/papyrus/engine/PapyrusNativeTextModel.java +0 -195
- package/android/src/main/java/com/papyrus/engine/PapyrusSelectionMenuIcon.java +0 -48
- package/android/src/main/java/com/papyrus/engine/PapyrusTextAnnotationModel.java +0 -22
- package/android/src/main/java/com/papyrus/engine/PapyrusTextDocumentView.java +0 -661
- package/android/src/main/java/com/papyrus/engine/PapyrusTextDocumentViewManager.java +0 -49
- package/android/src/main/java/com/papyrus/engine/PapyrusTextStore.java +0 -43
- package/ios/PapyrusComicDocumentView.h +0 -21
- package/ios/PapyrusComicDocumentView.m +0 -554
- package/ios/PapyrusComicDocumentViewManager.m +0 -23
- package/ios/PapyrusPageRotationRegistry.h +0 -29
- package/ios/PapyrusPageRotationRegistry.m +0 -179
- package/ios/PapyrusPdfDocumentView.h +0 -55
- package/ios/PapyrusPdfDocumentView.m +0 -2339
- package/ios/PapyrusPdfDocumentViewManager.m +0 -61
- package/ios/PapyrusPdfPageTheme.h +0 -15
- package/ios/PapyrusPdfPageTheme.m +0 -218
- package/ios/PapyrusSelectionMenu.h +0 -27
- package/ios/PapyrusTextAnnotationRange.h +0 -2
- package/ios/PapyrusTextAnnotationRange.m +0 -29
- package/ios/PapyrusTextDocumentView.h +0 -32
- package/ios/PapyrusTextDocumentView.m +0 -518
- package/ios/PapyrusTextDocumentViewManager.m +0 -34
- package/ios/PapyrusTextStore.h +0 -13
- package/ios/PapyrusTextStore.m +0 -73
- package/third_party_licenses/BLAKE2-NOTICE.txt +0 -11
- package/third_party_licenses/libarchive-COPYING +0 -65
- package/vendor/libarchive/PapyrusComicArchive.cpp +0 -376
- package/vendor/libarchive/PapyrusComicArchive.h +0 -30
- package/vendor/libarchive/README.papyrus.md +0 -15
- package/vendor/libarchive/android.h +0 -192
- package/vendor/libarchive/config/PapyrusArchiveConfig.h +0 -71
- package/vendor/libarchive/libarchive/CMakeLists.txt +0 -293
- package/vendor/libarchive/libarchive/android_lf.h +0 -36
- package/vendor/libarchive/libarchive/archive.h +0 -1266
- package/vendor/libarchive/libarchive/archive_acl.c +0 -2025
- package/vendor/libarchive/libarchive/archive_acl_private.h +0 -85
- package/vendor/libarchive/libarchive/archive_blake2.h +0 -197
- package/vendor/libarchive/libarchive/archive_blake2_impl.h +0 -161
- package/vendor/libarchive/libarchive/archive_blake2s_ref.c +0 -369
- package/vendor/libarchive/libarchive/archive_blake2sp_ref.c +0 -361
- package/vendor/libarchive/libarchive/archive_check_magic.c +0 -183
- package/vendor/libarchive/libarchive/archive_cmdline.c +0 -211
- package/vendor/libarchive/libarchive/archive_cmdline_private.h +0 -45
- package/vendor/libarchive/libarchive/archive_crc32.h +0 -123
- package/vendor/libarchive/libarchive/archive_cryptor.c +0 -534
- package/vendor/libarchive/libarchive/archive_cryptor_private.h +0 -199
- package/vendor/libarchive/libarchive/archive_digest.c +0 -1584
- package/vendor/libarchive/libarchive/archive_digest_private.h +0 -431
- package/vendor/libarchive/libarchive/archive_disk_acl_darwin.c +0 -558
- package/vendor/libarchive/libarchive/archive_disk_acl_freebsd.c +0 -712
- package/vendor/libarchive/libarchive/archive_disk_acl_linux.c +0 -760
- package/vendor/libarchive/libarchive/archive_disk_acl_sunos.c +0 -824
- package/vendor/libarchive/libarchive/archive_endian.h +0 -234
- package/vendor/libarchive/libarchive/archive_entry.3 +0 -147
- package/vendor/libarchive/libarchive/archive_entry.c +0 -2297
- package/vendor/libarchive/libarchive/archive_entry.h +0 -763
- package/vendor/libarchive/libarchive/archive_entry_acl.3 +0 -458
- package/vendor/libarchive/libarchive/archive_entry_copy_bhfi.c +0 -55
- package/vendor/libarchive/libarchive/archive_entry_copy_stat.c +0 -82
- package/vendor/libarchive/libarchive/archive_entry_link_resolver.c +0 -472
- package/vendor/libarchive/libarchive/archive_entry_linkify.3 +0 -224
- package/vendor/libarchive/libarchive/archive_entry_locale.h +0 -90
- package/vendor/libarchive/libarchive/archive_entry_misc.3 +0 -63
- package/vendor/libarchive/libarchive/archive_entry_paths.3 +0 -153
- package/vendor/libarchive/libarchive/archive_entry_perms.3 +0 -210
- package/vendor/libarchive/libarchive/archive_entry_private.h +0 -205
- package/vendor/libarchive/libarchive/archive_entry_sparse.c +0 -156
- package/vendor/libarchive/libarchive/archive_entry_stat.3 +0 -274
- package/vendor/libarchive/libarchive/archive_entry_stat.c +0 -121
- package/vendor/libarchive/libarchive/archive_entry_strmode.c +0 -69
- package/vendor/libarchive/libarchive/archive_entry_time.3 +0 -127
- package/vendor/libarchive/libarchive/archive_entry_xattr.c +0 -155
- package/vendor/libarchive/libarchive/archive_hmac.c +0 -345
- package/vendor/libarchive/libarchive/archive_hmac_private.h +0 -119
- package/vendor/libarchive/libarchive/archive_integer.h +0 -267
- package/vendor/libarchive/libarchive/archive_match.c +0 -1869
- package/vendor/libarchive/libarchive/archive_openssl_evp_private.h +0 -54
- package/vendor/libarchive/libarchive/archive_openssl_hmac_private.h +0 -54
- package/vendor/libarchive/libarchive/archive_options.c +0 -219
- package/vendor/libarchive/libarchive/archive_options_private.h +0 -49
- package/vendor/libarchive/libarchive/archive_pack_dev.c +0 -330
- package/vendor/libarchive/libarchive/archive_pack_dev.h +0 -49
- package/vendor/libarchive/libarchive/archive_parse_date.c +0 -1173
- package/vendor/libarchive/libarchive/archive_pathmatch.c +0 -480
- package/vendor/libarchive/libarchive/archive_pathmatch.h +0 -50
- package/vendor/libarchive/libarchive/archive_platform.h +0 -213
- package/vendor/libarchive/libarchive/archive_platform_acl.h +0 -53
- package/vendor/libarchive/libarchive/archive_platform_stat.h +0 -45
- package/vendor/libarchive/libarchive/archive_platform_xattr.h +0 -45
- package/vendor/libarchive/libarchive/archive_ppmd7.c +0 -1173
- package/vendor/libarchive/libarchive/archive_ppmd7_private.h +0 -119
- package/vendor/libarchive/libarchive/archive_ppmd8.c +0 -1293
- package/vendor/libarchive/libarchive/archive_ppmd8_private.h +0 -123
- package/vendor/libarchive/libarchive/archive_ppmd_private.h +0 -159
- package/vendor/libarchive/libarchive/archive_private.h +0 -209
- package/vendor/libarchive/libarchive/archive_random.c +0 -274
- package/vendor/libarchive/libarchive/archive_random_private.h +0 -36
- package/vendor/libarchive/libarchive/archive_rb.c +0 -709
- package/vendor/libarchive/libarchive/archive_rb.h +0 -113
- package/vendor/libarchive/libarchive/archive_read.3 +0 -250
- package/vendor/libarchive/libarchive/archive_read.c +0 -1814
- package/vendor/libarchive/libarchive/archive_read_add_passphrase.3 +0 -72
- package/vendor/libarchive/libarchive/archive_read_add_passphrase.c +0 -189
- package/vendor/libarchive/libarchive/archive_read_append_filter.c +0 -209
- package/vendor/libarchive/libarchive/archive_read_data.3 +0 -128
- package/vendor/libarchive/libarchive/archive_read_data_into_fd.c +0 -207
- package/vendor/libarchive/libarchive/archive_read_disk.3 +0 -422
- package/vendor/libarchive/libarchive/archive_read_disk_entry_from_file.c +0 -1086
- package/vendor/libarchive/libarchive/archive_read_disk_posix.c +0 -2639
- package/vendor/libarchive/libarchive/archive_read_disk_private.h +0 -97
- package/vendor/libarchive/libarchive/archive_read_disk_set_standard_lookup.c +0 -315
- package/vendor/libarchive/libarchive/archive_read_disk_windows.c +0 -2603
- package/vendor/libarchive/libarchive/archive_read_extract.3 +0 -135
- package/vendor/libarchive/libarchive/archive_read_extract.c +0 -59
- package/vendor/libarchive/libarchive/archive_read_extract2.c +0 -154
- package/vendor/libarchive/libarchive/archive_read_filter.3 +0 -163
- package/vendor/libarchive/libarchive/archive_read_format.3 +0 -190
- package/vendor/libarchive/libarchive/archive_read_free.3 +0 -91
- package/vendor/libarchive/libarchive/archive_read_header.3 +0 -89
- package/vendor/libarchive/libarchive/archive_read_new.3 +0 -57
- package/vendor/libarchive/libarchive/archive_read_open.3 +0 -247
- package/vendor/libarchive/libarchive/archive_read_open_fd.c +0 -236
- package/vendor/libarchive/libarchive/archive_read_open_file.c +0 -257
- package/vendor/libarchive/libarchive/archive_read_open_filename.c +0 -652
- package/vendor/libarchive/libarchive/archive_read_open_memory.c +0 -188
- package/vendor/libarchive/libarchive/archive_read_private.h +0 -274
- package/vendor/libarchive/libarchive/archive_read_set_format.c +0 -116
- package/vendor/libarchive/libarchive/archive_read_set_options.3 +0 -290
- package/vendor/libarchive/libarchive/archive_read_set_options.c +0 -132
- package/vendor/libarchive/libarchive/archive_read_support_filter_all.c +0 -84
- package/vendor/libarchive/libarchive/archive_read_support_filter_by_code.c +0 -68
- package/vendor/libarchive/libarchive/archive_read_support_filter_bzip2.c +0 -360
- package/vendor/libarchive/libarchive/archive_read_support_filter_compress.c +0 -457
- package/vendor/libarchive/libarchive/archive_read_support_filter_grzip.c +0 -108
- package/vendor/libarchive/libarchive/archive_read_support_filter_gzip.c +0 -538
- package/vendor/libarchive/libarchive/archive_read_support_filter_lrzip.c +0 -119
- package/vendor/libarchive/libarchive/archive_read_support_filter_lz4.c +0 -829
- package/vendor/libarchive/libarchive/archive_read_support_filter_lzop.c +0 -493
- package/vendor/libarchive/libarchive/archive_read_support_filter_none.c +0 -51
- package/vendor/libarchive/libarchive/archive_read_support_filter_program.c +0 -497
- package/vendor/libarchive/libarchive/archive_read_support_filter_rpm.c +0 -249
- package/vendor/libarchive/libarchive/archive_read_support_filter_uu.c +0 -739
- package/vendor/libarchive/libarchive/archive_read_support_filter_xz.c +0 -792
- package/vendor/libarchive/libarchive/archive_read_support_filter_zstd.c +0 -356
- package/vendor/libarchive/libarchive/archive_read_support_format_7zip.c +0 -4650
- package/vendor/libarchive/libarchive/archive_read_support_format_all.c +0 -88
- package/vendor/libarchive/libarchive/archive_read_support_format_ar.c +0 -597
- package/vendor/libarchive/libarchive/archive_read_support_format_by_code.c +0 -76
- package/vendor/libarchive/libarchive/archive_read_support_format_cab.c +0 -3410
- package/vendor/libarchive/libarchive/archive_read_support_format_cpio.c +0 -1152
- package/vendor/libarchive/libarchive/archive_read_support_format_empty.c +0 -95
- package/vendor/libarchive/libarchive/archive_read_support_format_iso9660.c +0 -3516
- package/vendor/libarchive/libarchive/archive_read_support_format_lha.c +0 -2931
- package/vendor/libarchive/libarchive/archive_read_support_format_mtree.c +0 -2113
- package/vendor/libarchive/libarchive/archive_read_support_format_rar.c +0 -3932
- package/vendor/libarchive/libarchive/archive_read_support_format_rar5.c +0 -4501
- package/vendor/libarchive/libarchive/archive_read_support_format_raw.c +0 -194
- package/vendor/libarchive/libarchive/archive_read_support_format_tar.c +0 -3785
- package/vendor/libarchive/libarchive/archive_read_support_format_warc.c +0 -875
- package/vendor/libarchive/libarchive/archive_read_support_format_xar.c +0 -3770
- package/vendor/libarchive/libarchive/archive_read_support_format_zip.c +0 -4710
- package/vendor/libarchive/libarchive/archive_string.c +0 -4391
- package/vendor/libarchive/libarchive/archive_string.h +0 -244
- package/vendor/libarchive/libarchive/archive_string_composition.h +0 -2289
- package/vendor/libarchive/libarchive/archive_string_sprintf.c +0 -200
- package/vendor/libarchive/libarchive/archive_time.c +0 -168
- package/vendor/libarchive/libarchive/archive_time_private.h +0 -47
- package/vendor/libarchive/libarchive/archive_util.3 +0 -239
- package/vendor/libarchive/libarchive/archive_util.c +0 -668
- package/vendor/libarchive/libarchive/archive_version_details.c +0 -516
- package/vendor/libarchive/libarchive/archive_virtual.c +0 -162
- package/vendor/libarchive/libarchive/archive_windows.c +0 -1035
- package/vendor/libarchive/libarchive/archive_windows.h +0 -332
- package/vendor/libarchive/libarchive/archive_write.3 +0 -266
- package/vendor/libarchive/libarchive/archive_write.c +0 -896
- package/vendor/libarchive/libarchive/archive_write_add_filter.c +0 -71
- package/vendor/libarchive/libarchive/archive_write_add_filter_b64encode.c +0 -329
- package/vendor/libarchive/libarchive/archive_write_add_filter_by_name.c +0 -76
- package/vendor/libarchive/libarchive/archive_write_add_filter_bzip2.c +0 -411
- package/vendor/libarchive/libarchive/archive_write_add_filter_compress.c +0 -459
- package/vendor/libarchive/libarchive/archive_write_add_filter_grzip.c +0 -143
- package/vendor/libarchive/libarchive/archive_write_add_filter_gzip.c +0 -493
- package/vendor/libarchive/libarchive/archive_write_add_filter_lrzip.c +0 -214
- package/vendor/libarchive/libarchive/archive_write_add_filter_lz4.c +0 -710
- package/vendor/libarchive/libarchive/archive_write_add_filter_lzop.c +0 -500
- package/vendor/libarchive/libarchive/archive_write_add_filter_none.c +0 -42
- package/vendor/libarchive/libarchive/archive_write_add_filter_program.c +0 -398
- package/vendor/libarchive/libarchive/archive_write_add_filter_uuencode.c +0 -320
- package/vendor/libarchive/libarchive/archive_write_add_filter_xz.c +0 -547
- package/vendor/libarchive/libarchive/archive_write_add_filter_zstd.c +0 -608
- package/vendor/libarchive/libarchive/archive_write_blocksize.3 +0 -112
- package/vendor/libarchive/libarchive/archive_write_data.3 +0 -88
- package/vendor/libarchive/libarchive/archive_write_disk.3 +0 -360
- package/vendor/libarchive/libarchive/archive_write_disk_posix.c +0 -4789
- package/vendor/libarchive/libarchive/archive_write_disk_private.h +0 -43
- package/vendor/libarchive/libarchive/archive_write_disk_set_standard_lookup.c +0 -265
- package/vendor/libarchive/libarchive/archive_write_disk_windows.c +0 -2952
- package/vendor/libarchive/libarchive/archive_write_filter.3 +0 -140
- package/vendor/libarchive/libarchive/archive_write_finish_entry.3 +0 -77
- package/vendor/libarchive/libarchive/archive_write_format.3 +0 -187
- package/vendor/libarchive/libarchive/archive_write_free.3 +0 -94
- package/vendor/libarchive/libarchive/archive_write_header.3 +0 -71
- package/vendor/libarchive/libarchive/archive_write_new.3 +0 -56
- package/vendor/libarchive/libarchive/archive_write_open.3 +0 -270
- package/vendor/libarchive/libarchive/archive_write_open_fd.c +0 -141
- package/vendor/libarchive/libarchive/archive_write_open_file.c +0 -102
- package/vendor/libarchive/libarchive/archive_write_open_filename.c +0 -272
- package/vendor/libarchive/libarchive/archive_write_open_memory.c +0 -110
- package/vendor/libarchive/libarchive/archive_write_private.h +0 -166
- package/vendor/libarchive/libarchive/archive_write_set_format.c +0 -124
- package/vendor/libarchive/libarchive/archive_write_set_format_7zip.c +0 -2571
- package/vendor/libarchive/libarchive/archive_write_set_format_ar.c +0 -540
- package/vendor/libarchive/libarchive/archive_write_set_format_by_name.c +0 -93
- package/vendor/libarchive/libarchive/archive_write_set_format_cpio.c +0 -11
- package/vendor/libarchive/libarchive/archive_write_set_format_cpio_binary.c +0 -618
- package/vendor/libarchive/libarchive/archive_write_set_format_cpio_newc.c +0 -457
- package/vendor/libarchive/libarchive/archive_write_set_format_cpio_odc.c +0 -508
- package/vendor/libarchive/libarchive/archive_write_set_format_filter_by_ext.c +0 -141
- package/vendor/libarchive/libarchive/archive_write_set_format_gnutar.c +0 -790
- package/vendor/libarchive/libarchive/archive_write_set_format_iso9660.c +0 -8216
- package/vendor/libarchive/libarchive/archive_write_set_format_mtree.c +0 -2307
- package/vendor/libarchive/libarchive/archive_write_set_format_pax.c +0 -2249
- package/vendor/libarchive/libarchive/archive_write_set_format_private.h +0 -40
- package/vendor/libarchive/libarchive/archive_write_set_format_raw.c +0 -123
- package/vendor/libarchive/libarchive/archive_write_set_format_shar.c +0 -650
- package/vendor/libarchive/libarchive/archive_write_set_format_ustar.c +0 -768
- package/vendor/libarchive/libarchive/archive_write_set_format_v7tar.c +0 -648
- package/vendor/libarchive/libarchive/archive_write_set_format_warc.c +0 -491
- package/vendor/libarchive/libarchive/archive_write_set_format_xar.c +0 -3799
- package/vendor/libarchive/libarchive/archive_write_set_format_zip.c +0 -2548
- package/vendor/libarchive/libarchive/archive_write_set_options.3 +0 -779
- package/vendor/libarchive/libarchive/archive_write_set_options.c +0 -129
- package/vendor/libarchive/libarchive/archive_write_set_passphrase.3 +0 -72
- package/vendor/libarchive/libarchive/archive_write_set_passphrase.c +0 -95
- package/vendor/libarchive/libarchive/archive_xxhash.h +0 -48
- package/vendor/libarchive/libarchive/config_freebsd.h +0 -275
- package/vendor/libarchive/libarchive/cpio.5 +0 -389
- package/vendor/libarchive/libarchive/filter_fork.h +0 -44
- package/vendor/libarchive/libarchive/filter_fork_posix.c +0 -269
- package/vendor/libarchive/libarchive/filter_fork_windows.c +0 -270
- package/vendor/libarchive/libarchive/libarchive-formats.5 +0 -478
- package/vendor/libarchive/libarchive/libarchive.3 +0 -297
- package/vendor/libarchive/libarchive/libarchive_changes.3 +0 -339
- package/vendor/libarchive/libarchive/libarchive_internals.3 +0 -363
- package/vendor/libarchive/libarchive/module.modulemap +0 -34
- package/vendor/libarchive/libarchive/mtree.5 +0 -323
- package/vendor/libarchive/libarchive/tar.5 +0 -947
- package/vendor/libarchive/libarchive/xxhash.c +0 -531
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/*-
|
|
2
|
-
* Copyright (c) 2011 Michihiro NAKAJIMA
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
* Redistribution and use in source and binary forms, with or without
|
|
6
|
-
* modification, are permitted provided that the following conditions
|
|
7
|
-
* are met:
|
|
8
|
-
* 1. Redistributions of source code must retain the above copyright
|
|
9
|
-
* notice, this list of conditions and the following disclaimer.
|
|
10
|
-
* 2. Redistributions in binary form must reproduce the above copyright
|
|
11
|
-
* notice, this list of conditions and the following disclaimer in the
|
|
12
|
-
* documentation and/or other materials provided with the distribution.
|
|
13
|
-
*
|
|
14
|
-
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
|
|
15
|
-
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
16
|
-
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
17
|
-
* IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
18
|
-
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
19
|
-
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
20
|
-
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
21
|
-
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
22
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
23
|
-
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
#ifndef ARCHIVE_ENTRY_LOCALE_H_INCLUDED
|
|
27
|
-
#define ARCHIVE_ENTRY_LOCALE_H_INCLUDED
|
|
28
|
-
|
|
29
|
-
#ifndef __LIBARCHIVE_BUILD
|
|
30
|
-
#error This header is only to be used internally to libarchive.
|
|
31
|
-
#endif
|
|
32
|
-
|
|
33
|
-
struct archive_entry;
|
|
34
|
-
struct archive_string_conv;
|
|
35
|
-
|
|
36
|
-
/*
|
|
37
|
-
* Utility functions to set and get entry attributes by translating
|
|
38
|
-
* character-set. These are designed for use in format readers and writers.
|
|
39
|
-
*
|
|
40
|
-
* The return code and interface of these are quite different from other
|
|
41
|
-
* functions for archive_entry defined in archive_entry.h.
|
|
42
|
-
* Common return code are:
|
|
43
|
-
* Return 0 if the string conversion succeeded.
|
|
44
|
-
* Return -1 if the string conversion failed.
|
|
45
|
-
*/
|
|
46
|
-
|
|
47
|
-
#define archive_entry_gname_l _archive_entry_gname_l
|
|
48
|
-
int _archive_entry_gname_l(struct archive_entry *,
|
|
49
|
-
const char **, size_t *, struct archive_string_conv *);
|
|
50
|
-
#define archive_entry_hardlink_l _archive_entry_hardlink_l
|
|
51
|
-
int _archive_entry_hardlink_l(struct archive_entry *,
|
|
52
|
-
const char **, size_t *, struct archive_string_conv *);
|
|
53
|
-
#define archive_entry_pathname_l _archive_entry_pathname_l
|
|
54
|
-
int _archive_entry_pathname_l(struct archive_entry *,
|
|
55
|
-
const char **, size_t *, struct archive_string_conv *);
|
|
56
|
-
#define archive_entry_symlink_l _archive_entry_symlink_l
|
|
57
|
-
int _archive_entry_symlink_l(struct archive_entry *,
|
|
58
|
-
const char **, size_t *, struct archive_string_conv *);
|
|
59
|
-
#define archive_entry_uname_l _archive_entry_uname_l
|
|
60
|
-
int _archive_entry_uname_l(struct archive_entry *,
|
|
61
|
-
const char **, size_t *, struct archive_string_conv *);
|
|
62
|
-
#define archive_entry_acl_text_l _archive_entry_acl_text_l
|
|
63
|
-
int _archive_entry_acl_text_l(struct archive_entry *, int,
|
|
64
|
-
const char **, size_t *, struct archive_string_conv *) __LA_DEPRECATED;
|
|
65
|
-
#define archive_entry_acl_to_text_l _archive_entry_acl_to_text_l
|
|
66
|
-
char *_archive_entry_acl_to_text_l(struct archive_entry *, ssize_t *, int,
|
|
67
|
-
struct archive_string_conv *);
|
|
68
|
-
#define archive_entry_acl_from_text_l _archive_entry_acl_from_text_l
|
|
69
|
-
int _archive_entry_acl_from_text_l(struct archive_entry *, const char* text,
|
|
70
|
-
int type, struct archive_string_conv *);
|
|
71
|
-
#define archive_entry_copy_gname_l _archive_entry_copy_gname_l
|
|
72
|
-
int _archive_entry_copy_gname_l(struct archive_entry *,
|
|
73
|
-
const char *, size_t, struct archive_string_conv *);
|
|
74
|
-
#define archive_entry_copy_hardlink_l _archive_entry_copy_hardlink_l
|
|
75
|
-
int _archive_entry_copy_hardlink_l(struct archive_entry *,
|
|
76
|
-
const char *, size_t, struct archive_string_conv *);
|
|
77
|
-
#define archive_entry_copy_link_l _archive_entry_copy_link_l
|
|
78
|
-
int _archive_entry_copy_link_l(struct archive_entry *,
|
|
79
|
-
const char *, size_t, struct archive_string_conv *);
|
|
80
|
-
#define archive_entry_copy_pathname_l _archive_entry_copy_pathname_l
|
|
81
|
-
int _archive_entry_copy_pathname_l(struct archive_entry *,
|
|
82
|
-
const char *, size_t, struct archive_string_conv *);
|
|
83
|
-
#define archive_entry_copy_symlink_l _archive_entry_copy_symlink_l
|
|
84
|
-
int _archive_entry_copy_symlink_l(struct archive_entry *,
|
|
85
|
-
const char *, size_t, struct archive_string_conv *);
|
|
86
|
-
#define archive_entry_copy_uname_l _archive_entry_copy_uname_l
|
|
87
|
-
int _archive_entry_copy_uname_l(struct archive_entry *,
|
|
88
|
-
const char *, size_t, struct archive_string_conv *);
|
|
89
|
-
|
|
90
|
-
#endif /* !ARCHIVE_ENTRY_LOCALE_H_INCLUDED */
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
.\" Copyright (c) 2019 Martin Matuska
|
|
2
|
-
.\" All rights reserved.
|
|
3
|
-
.\"
|
|
4
|
-
.\" Redistribution and use in source and binary forms, with or without
|
|
5
|
-
.\" modification, are permitted provided that the following conditions
|
|
6
|
-
.\" are met:
|
|
7
|
-
.\" 1. Redistributions of source code must retain the above copyright
|
|
8
|
-
.\" notice, this list of conditions and the following disclaimer.
|
|
9
|
-
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
10
|
-
.\" notice, this list of conditions and the following disclaimer in the
|
|
11
|
-
.\" documentation and/or other materials provided with the distribution.
|
|
12
|
-
.\"
|
|
13
|
-
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
14
|
-
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
15
|
-
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
16
|
-
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
17
|
-
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
18
|
-
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
19
|
-
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
20
|
-
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
21
|
-
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
22
|
-
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
23
|
-
.\" SUCH DAMAGE.
|
|
24
|
-
.\"
|
|
25
|
-
.Dd April 15, 2019
|
|
26
|
-
.Dt ARCHIVE_ENTRY_MISC 3
|
|
27
|
-
.Os
|
|
28
|
-
.Sh NAME
|
|
29
|
-
.Nm archive_entry_symlink_type ,
|
|
30
|
-
.Nm archive_entry_set_symlink_type
|
|
31
|
-
.Nd miscellaneous functions for manipulating properties of archive_entry
|
|
32
|
-
.Sh LIBRARY
|
|
33
|
-
Streaming Archive Library (libarchive, -larchive)
|
|
34
|
-
.Sh SYNOPSIS
|
|
35
|
-
.In archive_entry.h
|
|
36
|
-
.Ft int
|
|
37
|
-
.Fn archive_entry_symlink_type "struct archive_entry *a"
|
|
38
|
-
.Ft void
|
|
39
|
-
.Fn archive_entry_set_symlink_type "struct archive_entry *a" "int"
|
|
40
|
-
.Sh DESCRIPTION
|
|
41
|
-
The function
|
|
42
|
-
.Fn archive_entry_symlink_type
|
|
43
|
-
returns and the function
|
|
44
|
-
.Fn archive_entry_set_symlink_type
|
|
45
|
-
sets the type of the symbolic link stored in an archive entry.
|
|
46
|
-
These functions
|
|
47
|
-
have special meaning on operating systems that support multiple symbolic link
|
|
48
|
-
types (e.g. Microsoft Windows).
|
|
49
|
-
.Pp
|
|
50
|
-
Supported values are:
|
|
51
|
-
.Bl -tag -width "AE_SYMLINK_TYPE_DIRECTORY" -compact
|
|
52
|
-
.It AE_SYMLINK_TYPE_UNDEFINED
|
|
53
|
-
Symbolic link target type is not defined (default on unix systems)
|
|
54
|
-
.It AE_SYMLINK_TYPE_FILE
|
|
55
|
-
Symbolic link points to a file
|
|
56
|
-
.It AE_SYMLINK_TYPE_DIRECTORY
|
|
57
|
-
Symbolic link points to a directory
|
|
58
|
-
.El
|
|
59
|
-
.Sh SEE ALSO
|
|
60
|
-
.Xr archive_entry 3 ,
|
|
61
|
-
.Xr archive_entry_paths 3 ,
|
|
62
|
-
.Xr archive_entry_stat 3 ,
|
|
63
|
-
.Xr libarchive 3
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
.\" Copyright (c) 2010 Joerg Sonnenberger
|
|
2
|
-
.\" All rights reserved.
|
|
3
|
-
.\"
|
|
4
|
-
.\" Redistribution and use in source and binary forms, with or without
|
|
5
|
-
.\" modification, are permitted provided that the following conditions
|
|
6
|
-
.\" are met:
|
|
7
|
-
.\" 1. Redistributions of source code must retain the above copyright
|
|
8
|
-
.\" notice, this list of conditions and the following disclaimer.
|
|
9
|
-
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
10
|
-
.\" notice, this list of conditions and the following disclaimer in the
|
|
11
|
-
.\" documentation and/or other materials provided with the distribution.
|
|
12
|
-
.\"
|
|
13
|
-
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
14
|
-
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
15
|
-
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
16
|
-
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
17
|
-
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
18
|
-
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
19
|
-
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
20
|
-
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
21
|
-
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
22
|
-
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
23
|
-
.\" SUCH DAMAGE.
|
|
24
|
-
.\"
|
|
25
|
-
.Dd February 2, 2012
|
|
26
|
-
.Dt ARCHIVE_ENTRY_PATHS 3
|
|
27
|
-
.Os
|
|
28
|
-
.Sh NAME
|
|
29
|
-
.Nm archive_entry_hardlink ,
|
|
30
|
-
.Nm archive_entry_hardlink_w ,
|
|
31
|
-
.Nm archive_entry_set_hardlink ,
|
|
32
|
-
.Nm archive_entry_copy_hardlink ,
|
|
33
|
-
.Nm archive_entry_copy_hardlink_w ,
|
|
34
|
-
.Nm archive_entry_update_hardlink_utf8 ,
|
|
35
|
-
.Nm archive_entry_set_link ,
|
|
36
|
-
.Nm archive_entry_copy_link ,
|
|
37
|
-
.Nm archive_entry_copy_link_w ,
|
|
38
|
-
.Nm archive_entry_update_link_utf8 ,
|
|
39
|
-
.Nm archive_entry_pathname ,
|
|
40
|
-
.Nm archive_entry_pathname_w ,
|
|
41
|
-
.Nm archive_entry_set_pathname ,
|
|
42
|
-
.Nm archive_entry_copy_pathname ,
|
|
43
|
-
.Nm archive_entry_copy_pathname_w ,
|
|
44
|
-
.Nm archive_entry_update_pathname_utf8 ,
|
|
45
|
-
.Nm archive_entry_sourcepath ,
|
|
46
|
-
.Nm archive_entry_copy_sourcepath ,
|
|
47
|
-
.Nm archive_entry_symlink ,
|
|
48
|
-
.Nm archive_entry_symlink_w ,
|
|
49
|
-
.Nm archive_entry_set_symlink ,
|
|
50
|
-
.Nm archive_entry_copy_symlink ,
|
|
51
|
-
.Nm archive_entry_copy_symlink_w ,
|
|
52
|
-
.Nm archive_entry_update_symlink_utf8
|
|
53
|
-
.Nd functions for manipulating path names in archive entry descriptions
|
|
54
|
-
.Sh LIBRARY
|
|
55
|
-
Streaming Archive Library (libarchive, -larchive)
|
|
56
|
-
.Sh SYNOPSIS
|
|
57
|
-
.In archive_entry.h
|
|
58
|
-
.Ft const char *
|
|
59
|
-
.Fn archive_entry_hardlink "struct archive_entry *a"
|
|
60
|
-
.Ft const wchar_t *
|
|
61
|
-
.Fn archive_entry_hardlink_w "struct archive_entry *a"
|
|
62
|
-
.Ft void
|
|
63
|
-
.Fn archive_entry_set_hardlink "struct archive_entry *a" "const char *path"
|
|
64
|
-
.Ft void
|
|
65
|
-
.Fn archive_entry_copy_hardlink "struct archive_entry *a" "const char *path"
|
|
66
|
-
.Ft void
|
|
67
|
-
.Fn archive_entry_copy_hardlink_w "struct archive_entry *a" "const wchar_t *path"
|
|
68
|
-
.Ft int
|
|
69
|
-
.Fn archive_entry_update_hardlink_utf8 "struct archive_entry *a" "const char *path"
|
|
70
|
-
.Ft void
|
|
71
|
-
.Fn archive_entry_set_link "struct archive_entry *a" "const char *path"
|
|
72
|
-
.Ft void
|
|
73
|
-
.Fn archive_entry_copy_link "struct archive_entry *a" " const char *path"
|
|
74
|
-
.Ft void
|
|
75
|
-
.Fn archive_entry_copy_link_w "struct archive_entry *a" " const wchar_t *path"
|
|
76
|
-
.Ft int
|
|
77
|
-
.Fn archive_entry_update_link_utf8 "struct archive_entry *a" " const char *path"
|
|
78
|
-
.Ft const char *
|
|
79
|
-
.Fn archive_entry_pathname "struct archive_entry *a"
|
|
80
|
-
.Ft const wchar_t *
|
|
81
|
-
.Fn archive_entry_pathname_w "struct archive_entry *a"
|
|
82
|
-
.Ft void
|
|
83
|
-
.Fn archive_entry_set_pathname "struct archive_entry *a" "const char *path"
|
|
84
|
-
.Ft void
|
|
85
|
-
.Fn archive_entry_copy_pathname "struct archive_entry *a" "const char *path"
|
|
86
|
-
.Ft void
|
|
87
|
-
.Fn archive_entry_copy_pathname_w "struct archive_entry *a" "const wchar_t *path"
|
|
88
|
-
.Ft int
|
|
89
|
-
.Fn archive_entry_update_pathname_utf8 "struct archive_entry *a" "const char *path"
|
|
90
|
-
.Ft const char *
|
|
91
|
-
.Fn archive_entry_sourcepath "struct archive_entry *a"
|
|
92
|
-
.Ft void
|
|
93
|
-
.Fn archive_entry_copy_sourcepath "struct archive_entry *a" "const char *path"
|
|
94
|
-
.Ft const char *
|
|
95
|
-
.Fn archive_entry_symlink "struct archive_entry *a"
|
|
96
|
-
.Ft const wchar_t *
|
|
97
|
-
.Fn archive_entry_symlink_w "struct archive_entry *a"
|
|
98
|
-
.Ft void
|
|
99
|
-
.Fn archive_entry_set_symlink "struct archive_entry *a" "const char *path"
|
|
100
|
-
.Ft void
|
|
101
|
-
.Fn archive_entry_copy_symlink "struct archive_entry *a" "const char *path"
|
|
102
|
-
.Ft void
|
|
103
|
-
.Fn archive_entry_copy_symlink_w "struct archive_entry *a" "const wchar_t *path"
|
|
104
|
-
.Ft int
|
|
105
|
-
.Fn archive_entry_update_symlink_utf8 "struct archive_entry *a" "const char *path"
|
|
106
|
-
.Sh DESCRIPTION
|
|
107
|
-
Path names supported by
|
|
108
|
-
.Xr archive_entry 3 :
|
|
109
|
-
.Bl -tag -width "sourcepath" -compact
|
|
110
|
-
.It hardlink
|
|
111
|
-
Destination of the hardlink.
|
|
112
|
-
.It link
|
|
113
|
-
Update only.
|
|
114
|
-
For a symlink, update the destination.
|
|
115
|
-
Otherwise, make the entry a hardlink and alter
|
|
116
|
-
the destination for that.
|
|
117
|
-
.It pathname
|
|
118
|
-
Path in the archive
|
|
119
|
-
.It sourcepath
|
|
120
|
-
Path on the disk for use by
|
|
121
|
-
.Xr archive_read_disk 3 .
|
|
122
|
-
.It symlink
|
|
123
|
-
Destination of the symbolic link.
|
|
124
|
-
.El
|
|
125
|
-
.Pp
|
|
126
|
-
Path names can be provided in one of three different ways:
|
|
127
|
-
.Bl -tag -width "wchar_t *"
|
|
128
|
-
.It char *
|
|
129
|
-
Multibyte strings in the current locale.
|
|
130
|
-
.It wchar_t *
|
|
131
|
-
Wide character strings in the current locale.
|
|
132
|
-
The accessor functions are named
|
|
133
|
-
.Fn XXX_w .
|
|
134
|
-
.It UTF-8
|
|
135
|
-
Unicode strings encoded as UTF-8.
|
|
136
|
-
These are convenience functions to update both the multibyte and wide
|
|
137
|
-
character strings at the same time.
|
|
138
|
-
.El
|
|
139
|
-
.Pp
|
|
140
|
-
The sourcepath is a pure filesystem concept and never stored in an
|
|
141
|
-
archive directly.
|
|
142
|
-
.Pp
|
|
143
|
-
For that reason, it is only available as multibyte string.
|
|
144
|
-
The link path is a convenience function for conditionally setting
|
|
145
|
-
hardlink or symlink destination.
|
|
146
|
-
It doesn't have a corresponding get accessor function.
|
|
147
|
-
.Pp
|
|
148
|
-
.Fn archive_entry_set_XXX
|
|
149
|
-
is an alias for
|
|
150
|
-
.Fn archive_entry_copy_XXX .
|
|
151
|
-
.Sh SEE ALSO
|
|
152
|
-
.Xr archive_entry 3 ,
|
|
153
|
-
.Xr libarchive 3
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
.\" Copyright (c) 2003-2007 Tim Kientzle
|
|
2
|
-
.\" Copyright (c) 2010 Joerg Sonnenberger
|
|
3
|
-
.\" All rights reserved.
|
|
4
|
-
.\"
|
|
5
|
-
.\" Redistribution and use in source and binary forms, with or without
|
|
6
|
-
.\" modification, are permitted provided that the following conditions
|
|
7
|
-
.\" are met:
|
|
8
|
-
.\" 1. Redistributions of source code must retain the above copyright
|
|
9
|
-
.\" notice, this list of conditions and the following disclaimer.
|
|
10
|
-
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
11
|
-
.\" notice, this list of conditions and the following disclaimer in the
|
|
12
|
-
.\" documentation and/or other materials provided with the distribution.
|
|
13
|
-
.\"
|
|
14
|
-
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
15
|
-
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
16
|
-
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
17
|
-
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
18
|
-
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
19
|
-
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
20
|
-
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
21
|
-
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
22
|
-
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
23
|
-
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
24
|
-
.\" SUCH DAMAGE.
|
|
25
|
-
.\"
|
|
26
|
-
.Dd February 2, 2012
|
|
27
|
-
.Dt ARCHIVE_ENTRY_PERMS 3
|
|
28
|
-
.Os
|
|
29
|
-
.Sh NAME
|
|
30
|
-
.Nm archive_entry_gid ,
|
|
31
|
-
.Nm archive_entry_set_gid ,
|
|
32
|
-
.Nm archive_entry_uid ,
|
|
33
|
-
.Nm archive_entry_set_uid ,
|
|
34
|
-
.Nm archive_entry_perm ,
|
|
35
|
-
.Nm archive_entry_set_perm ,
|
|
36
|
-
.Nm archive_entry_strmode ,
|
|
37
|
-
.Nm archive_entry_uname ,
|
|
38
|
-
.Nm archive_entry_uname_w ,
|
|
39
|
-
.Nm archive_entry_set_uname ,
|
|
40
|
-
.Nm archive_entry_copy_uname ,
|
|
41
|
-
.Nm archive_entry_copy_uname_w ,
|
|
42
|
-
.Nm archive_entry_update_uname_utf8 ,
|
|
43
|
-
.Nm archive_entry_gname ,
|
|
44
|
-
.Nm archive_entry_gname_w ,
|
|
45
|
-
.Nm archive_entry_set_gname ,
|
|
46
|
-
.Nm archive_entry_copy_gname ,
|
|
47
|
-
.Nm archive_entry_copy_gname_w ,
|
|
48
|
-
.Nm archive_entry_update_gname_utf8 ,
|
|
49
|
-
.Nm archive_entry_fflags ,
|
|
50
|
-
.Nm archive_entry_fflags_text ,
|
|
51
|
-
.Nm archive_entry_set_fflags ,
|
|
52
|
-
.Nm archive_entry_copy_fflags_text ,
|
|
53
|
-
.Nm archive_entry_copy_fflags_text_w
|
|
54
|
-
.Nd functions for manipulating ownership and permissions in archive entry descriptions
|
|
55
|
-
.Sh LIBRARY
|
|
56
|
-
Streaming Archive Library (libarchive, -larchive)
|
|
57
|
-
.Sh SYNOPSIS
|
|
58
|
-
.In archive_entry.h
|
|
59
|
-
.Ft gid_t
|
|
60
|
-
.Fn archive_entry_gid "struct archive_entry *a"
|
|
61
|
-
.Ft void
|
|
62
|
-
.Fn archive_entry_set_gid "struct archive_entry *a" "gid_t gid"
|
|
63
|
-
.Ft uid_t
|
|
64
|
-
.Fn archive_entry_uid "struct archive_entry *a"
|
|
65
|
-
.Ft void
|
|
66
|
-
.Fn archive_entry_set_uid "struct archive_entry *a" "uid_t uid"
|
|
67
|
-
.Ft mode_t
|
|
68
|
-
.Fn archive_entry_perm "struct archive_entry *a"
|
|
69
|
-
.Ft void
|
|
70
|
-
.Fn archive_entry_set_perm "struct archive_entry *a" "mode_t mode"
|
|
71
|
-
.Ft const char *
|
|
72
|
-
.Fn archive_entry_strmode "struct archive_entry *a"
|
|
73
|
-
.Ft const char *
|
|
74
|
-
.Fn archive_entry_gname "struct archive_entry *a"
|
|
75
|
-
.Ft const wchar_t *
|
|
76
|
-
.Fn archive_entry_gname_w "struct archive_entry *a"
|
|
77
|
-
.Ft void
|
|
78
|
-
.Fn archive_entry_set_gname "struct archive_entry *a" "const char *a"
|
|
79
|
-
.Ft void
|
|
80
|
-
.Fn archive_entry_copy_gname "struct archive_entry *a" "const char *name"
|
|
81
|
-
.Ft void
|
|
82
|
-
.Fn archive_entry_copy_gname_w "struct archive_entry *a" "const wchar_t *name"
|
|
83
|
-
.Ft int
|
|
84
|
-
.Fn archive_entry_update_gname_utf8 "struct archive_entry *a" "const char *name"
|
|
85
|
-
.Ft const char *
|
|
86
|
-
.Fn archive_entry_uname "struct archive_entry *a"
|
|
87
|
-
.Ft const wchar_t *
|
|
88
|
-
.Fn archive_entry_uname_w "struct archive_entry *a"
|
|
89
|
-
.Ft void
|
|
90
|
-
.Fn archive_entry_set_uname "struct archive_entry *a" "const char *name"
|
|
91
|
-
.Ft void
|
|
92
|
-
.Fn archive_entry_copy_uname "struct archive_entry *a" "const char *name"
|
|
93
|
-
.Ft void
|
|
94
|
-
.Fn archive_entry_copy_uname_w "struct archive_entry *a" "const wchar_t *name"
|
|
95
|
-
.Ft int
|
|
96
|
-
.Fn archive_entry_update_uname_utf8 "struct archive_entry *a" "const char *name"
|
|
97
|
-
.Ft void
|
|
98
|
-
.Fo archive_entry_fflags
|
|
99
|
-
.Fa "struct archive_entry *a"
|
|
100
|
-
.Fa "unsigned long *set_bits"
|
|
101
|
-
.Fa "unsigned long *clear_bits"
|
|
102
|
-
.Fc
|
|
103
|
-
.Ft const char *
|
|
104
|
-
.Fn archive_entry_fflags_text "struct archive_entry *a"
|
|
105
|
-
.Ft void
|
|
106
|
-
.Fo archive_entry_set_fflags
|
|
107
|
-
.Fa "struct archive_entry *a"
|
|
108
|
-
.Fa "unsigned long set_bits"
|
|
109
|
-
.Fa "unsigned long clear_bits"
|
|
110
|
-
.Fc
|
|
111
|
-
.Ft const char *
|
|
112
|
-
.Fn archive_entry_copy_fflags_text "struct archive_entry *a" "const char *text"
|
|
113
|
-
.Ft const wchar_t *
|
|
114
|
-
.Fn archive_entry_copy_fflags_text_w "struct archive_entry *a" "const wchar_t *text"
|
|
115
|
-
.Sh DESCRIPTION
|
|
116
|
-
.Ss User id, group id and mode
|
|
117
|
-
The functions
|
|
118
|
-
.Fn archive_entry_uid ,
|
|
119
|
-
.Fn archive_entry_gid ,
|
|
120
|
-
and
|
|
121
|
-
.Fn archive_entry_perm
|
|
122
|
-
can be used to extract the user id, group id and permission from the given entry.
|
|
123
|
-
The corresponding functions
|
|
124
|
-
.Fn archive_entry_set_uid ,
|
|
125
|
-
.Fn archive_entry_set_gid ,
|
|
126
|
-
and
|
|
127
|
-
.Fn archive_entry_set_perm
|
|
128
|
-
store the given user id, group id and permission in the entry.
|
|
129
|
-
The permission is also set as a side effect of calling
|
|
130
|
-
.Fn archive_entry_set_mode .
|
|
131
|
-
.Pp
|
|
132
|
-
.Fn archive_entry_strmode
|
|
133
|
-
returns a string representation of the permission as used by the long mode of
|
|
134
|
-
.Xr ls 1 .
|
|
135
|
-
.Ss User and group name
|
|
136
|
-
User and group names can be provided in one of three different ways:
|
|
137
|
-
.Bl -tag -width "wchar_t *"
|
|
138
|
-
.It char *
|
|
139
|
-
Multibyte strings in the current locale.
|
|
140
|
-
.It wchar_t *
|
|
141
|
-
Wide character strings in the current locale.
|
|
142
|
-
The accessor functions are named
|
|
143
|
-
.Fn XXX_w .
|
|
144
|
-
.It UTF-8
|
|
145
|
-
Unicode strings encoded as UTF-8.
|
|
146
|
-
These are convenience functions to update both the multibyte and wide
|
|
147
|
-
character strings at the same time.
|
|
148
|
-
.El
|
|
149
|
-
.Pp
|
|
150
|
-
.Fn archive_entry_set_XXX
|
|
151
|
-
is an alias for
|
|
152
|
-
.Fn archive_entry_copy_XXX .
|
|
153
|
-
The strings are copied, and don't need to outlive the call.
|
|
154
|
-
.Ss File Flags
|
|
155
|
-
File flags are transparently converted between a bitmap
|
|
156
|
-
representation and a textual format.
|
|
157
|
-
For example, if you set the bitmap and ask for text, the library
|
|
158
|
-
will build a canonical text format.
|
|
159
|
-
However, if you set a text format and request a text format,
|
|
160
|
-
you will get back the same text, even if it is ill-formed.
|
|
161
|
-
If you need to canonicalize a textual flags string, you should first set the
|
|
162
|
-
text form, then request the bitmap form, then use that to set the bitmap form.
|
|
163
|
-
Setting the bitmap format will clear the internal text representation
|
|
164
|
-
and force it to be reconstructed when you next request the text form.
|
|
165
|
-
.Pp
|
|
166
|
-
The bitmap format consists of two integers, one containing bits
|
|
167
|
-
that should be set, the other specifying bits that should be
|
|
168
|
-
cleared.
|
|
169
|
-
Bits not mentioned in either bitmap will be ignored.
|
|
170
|
-
Usually, the bitmap of bits to be cleared will be set to zero.
|
|
171
|
-
In unusual circumstances, you can force a fully-specified set
|
|
172
|
-
of file flags by setting the bitmap of flags to clear to the complement
|
|
173
|
-
of the bitmap of flags to set.
|
|
174
|
-
(This differs from
|
|
175
|
-
.Xr fflagstostr 3 ,
|
|
176
|
-
which only includes names for set bits.)
|
|
177
|
-
Converting a bitmap to a textual string is a platform-specific
|
|
178
|
-
operation; bits that are not meaningful on the current platform
|
|
179
|
-
will be ignored.
|
|
180
|
-
.Pp
|
|
181
|
-
The canonical text format is a comma-separated list of flag names.
|
|
182
|
-
The
|
|
183
|
-
.Fn archive_entry_copy_fflags_text
|
|
184
|
-
and
|
|
185
|
-
.Fn archive_entry_copy_fflags_text_w
|
|
186
|
-
functions parse the provided text and set the internal bitmap values.
|
|
187
|
-
This is a platform-specific operation; names that are not meaningful
|
|
188
|
-
on the current platform will be ignored.
|
|
189
|
-
The function returns a pointer to the start of the first name that was not
|
|
190
|
-
recognized, or NULL if every name was recognized.
|
|
191
|
-
Note that every name \(em including names that follow an unrecognized
|
|
192
|
-
name \(em will be evaluated, and the bitmaps will be set to reflect
|
|
193
|
-
every name that is recognized.
|
|
194
|
-
(In particular, this differs from
|
|
195
|
-
.Xr strtofflags 3 ,
|
|
196
|
-
which stops parsing at the first unrecognized name.)
|
|
197
|
-
.Sh SEE ALSO
|
|
198
|
-
.Xr archive_entry 3 ,
|
|
199
|
-
.Xr archive_entry_acl 3 ,
|
|
200
|
-
.Xr archive_read_disk 3 ,
|
|
201
|
-
.Xr archive_write_disk 3 ,
|
|
202
|
-
.Xr libarchive 3
|
|
203
|
-
.Sh BUGS
|
|
204
|
-
The platform types
|
|
205
|
-
.Vt uid_t
|
|
206
|
-
and
|
|
207
|
-
.Vt gid_t
|
|
208
|
-
are often 16 or 32 bit wide.
|
|
209
|
-
In this case it is possible that the ids can not be correctly restored
|
|
210
|
-
from archives and get truncated.
|