@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.
Files changed (276) hide show
  1. package/android/build.gradle +0 -1
  2. package/android/src/main/cpp/CMakeLists.txt +0 -137
  3. package/android/src/main/java/com/papyrus/engine/PapyrusNativeEngineModule.java +35 -305
  4. package/android/src/main/java/com/papyrus/engine/PapyrusPackage.java +1 -3
  5. package/android/src/main/java/com/papyrus/engine/PapyrusPdfViewerView.java +5 -195
  6. package/android/src/main/java/com/papyrus/engine/PapyrusPdfViewerViewManager.java +1 -20
  7. package/dist/index.d.mts +4 -614
  8. package/dist/index.d.ts +4 -614
  9. package/dist/index.js +8 -484
  10. package/dist/index.js.map +1 -1
  11. package/dist/index.mjs +7 -477
  12. package/dist/index.mjs.map +1 -1
  13. package/ios/PapyrusEngineStore.h +0 -3
  14. package/ios/PapyrusEngineStore.m +6 -32
  15. package/ios/PapyrusNativeEngine.m +5 -684
  16. package/ios/PapyrusNativeEngine.podspec +15 -0
  17. package/ios/PapyrusPageView.m +11 -38
  18. package/package.json +8 -10
  19. package/react-native.config.js +1 -1
  20. package/PapyrusNativeEngine.podspec +0 -45
  21. package/android/src/main/cpp/PapyrusComicArchiveJni.cpp +0 -68
  22. package/android/src/main/cpp/PapyrusComicArchiveTest.cpp +0 -55
  23. package/android/src/main/cpp/papyrus_outline_loader_test.cpp +0 -240
  24. package/android/src/main/cpp/papyrus_text_word_test.cpp +0 -72
  25. package/android/src/main/java/com/papyrus/engine/PapyrusComicArchiveNative.java +0 -14
  26. package/android/src/main/java/com/papyrus/engine/PapyrusComicDocumentView.java +0 -491
  27. package/android/src/main/java/com/papyrus/engine/PapyrusComicDocumentViewManager.java +0 -32
  28. package/android/src/main/java/com/papyrus/engine/PapyrusComicPageLayout.java +0 -38
  29. package/android/src/main/java/com/papyrus/engine/PapyrusNativeTextModel.java +0 -195
  30. package/android/src/main/java/com/papyrus/engine/PapyrusSelectionMenuIcon.java +0 -48
  31. package/android/src/main/java/com/papyrus/engine/PapyrusTextAnnotationModel.java +0 -22
  32. package/android/src/main/java/com/papyrus/engine/PapyrusTextDocumentView.java +0 -661
  33. package/android/src/main/java/com/papyrus/engine/PapyrusTextDocumentViewManager.java +0 -49
  34. package/android/src/main/java/com/papyrus/engine/PapyrusTextStore.java +0 -43
  35. package/ios/PapyrusComicDocumentView.h +0 -21
  36. package/ios/PapyrusComicDocumentView.m +0 -554
  37. package/ios/PapyrusComicDocumentViewManager.m +0 -23
  38. package/ios/PapyrusPageRotationRegistry.h +0 -29
  39. package/ios/PapyrusPageRotationRegistry.m +0 -179
  40. package/ios/PapyrusPdfDocumentView.h +0 -55
  41. package/ios/PapyrusPdfDocumentView.m +0 -2339
  42. package/ios/PapyrusPdfDocumentViewManager.m +0 -61
  43. package/ios/PapyrusPdfPageTheme.h +0 -15
  44. package/ios/PapyrusPdfPageTheme.m +0 -218
  45. package/ios/PapyrusSelectionMenu.h +0 -27
  46. package/ios/PapyrusTextAnnotationRange.h +0 -2
  47. package/ios/PapyrusTextAnnotationRange.m +0 -29
  48. package/ios/PapyrusTextDocumentView.h +0 -32
  49. package/ios/PapyrusTextDocumentView.m +0 -518
  50. package/ios/PapyrusTextDocumentViewManager.m +0 -34
  51. package/ios/PapyrusTextStore.h +0 -13
  52. package/ios/PapyrusTextStore.m +0 -73
  53. package/third_party_licenses/BLAKE2-NOTICE.txt +0 -11
  54. package/third_party_licenses/libarchive-COPYING +0 -65
  55. package/vendor/libarchive/PapyrusComicArchive.cpp +0 -376
  56. package/vendor/libarchive/PapyrusComicArchive.h +0 -30
  57. package/vendor/libarchive/README.papyrus.md +0 -15
  58. package/vendor/libarchive/android.h +0 -192
  59. package/vendor/libarchive/config/PapyrusArchiveConfig.h +0 -71
  60. package/vendor/libarchive/libarchive/CMakeLists.txt +0 -293
  61. package/vendor/libarchive/libarchive/android_lf.h +0 -36
  62. package/vendor/libarchive/libarchive/archive.h +0 -1266
  63. package/vendor/libarchive/libarchive/archive_acl.c +0 -2025
  64. package/vendor/libarchive/libarchive/archive_acl_private.h +0 -85
  65. package/vendor/libarchive/libarchive/archive_blake2.h +0 -197
  66. package/vendor/libarchive/libarchive/archive_blake2_impl.h +0 -161
  67. package/vendor/libarchive/libarchive/archive_blake2s_ref.c +0 -369
  68. package/vendor/libarchive/libarchive/archive_blake2sp_ref.c +0 -361
  69. package/vendor/libarchive/libarchive/archive_check_magic.c +0 -183
  70. package/vendor/libarchive/libarchive/archive_cmdline.c +0 -211
  71. package/vendor/libarchive/libarchive/archive_cmdline_private.h +0 -45
  72. package/vendor/libarchive/libarchive/archive_crc32.h +0 -123
  73. package/vendor/libarchive/libarchive/archive_cryptor.c +0 -534
  74. package/vendor/libarchive/libarchive/archive_cryptor_private.h +0 -199
  75. package/vendor/libarchive/libarchive/archive_digest.c +0 -1584
  76. package/vendor/libarchive/libarchive/archive_digest_private.h +0 -431
  77. package/vendor/libarchive/libarchive/archive_disk_acl_darwin.c +0 -558
  78. package/vendor/libarchive/libarchive/archive_disk_acl_freebsd.c +0 -712
  79. package/vendor/libarchive/libarchive/archive_disk_acl_linux.c +0 -760
  80. package/vendor/libarchive/libarchive/archive_disk_acl_sunos.c +0 -824
  81. package/vendor/libarchive/libarchive/archive_endian.h +0 -234
  82. package/vendor/libarchive/libarchive/archive_entry.3 +0 -147
  83. package/vendor/libarchive/libarchive/archive_entry.c +0 -2297
  84. package/vendor/libarchive/libarchive/archive_entry.h +0 -763
  85. package/vendor/libarchive/libarchive/archive_entry_acl.3 +0 -458
  86. package/vendor/libarchive/libarchive/archive_entry_copy_bhfi.c +0 -55
  87. package/vendor/libarchive/libarchive/archive_entry_copy_stat.c +0 -82
  88. package/vendor/libarchive/libarchive/archive_entry_link_resolver.c +0 -472
  89. package/vendor/libarchive/libarchive/archive_entry_linkify.3 +0 -224
  90. package/vendor/libarchive/libarchive/archive_entry_locale.h +0 -90
  91. package/vendor/libarchive/libarchive/archive_entry_misc.3 +0 -63
  92. package/vendor/libarchive/libarchive/archive_entry_paths.3 +0 -153
  93. package/vendor/libarchive/libarchive/archive_entry_perms.3 +0 -210
  94. package/vendor/libarchive/libarchive/archive_entry_private.h +0 -205
  95. package/vendor/libarchive/libarchive/archive_entry_sparse.c +0 -156
  96. package/vendor/libarchive/libarchive/archive_entry_stat.3 +0 -274
  97. package/vendor/libarchive/libarchive/archive_entry_stat.c +0 -121
  98. package/vendor/libarchive/libarchive/archive_entry_strmode.c +0 -69
  99. package/vendor/libarchive/libarchive/archive_entry_time.3 +0 -127
  100. package/vendor/libarchive/libarchive/archive_entry_xattr.c +0 -155
  101. package/vendor/libarchive/libarchive/archive_hmac.c +0 -345
  102. package/vendor/libarchive/libarchive/archive_hmac_private.h +0 -119
  103. package/vendor/libarchive/libarchive/archive_integer.h +0 -267
  104. package/vendor/libarchive/libarchive/archive_match.c +0 -1869
  105. package/vendor/libarchive/libarchive/archive_openssl_evp_private.h +0 -54
  106. package/vendor/libarchive/libarchive/archive_openssl_hmac_private.h +0 -54
  107. package/vendor/libarchive/libarchive/archive_options.c +0 -219
  108. package/vendor/libarchive/libarchive/archive_options_private.h +0 -49
  109. package/vendor/libarchive/libarchive/archive_pack_dev.c +0 -330
  110. package/vendor/libarchive/libarchive/archive_pack_dev.h +0 -49
  111. package/vendor/libarchive/libarchive/archive_parse_date.c +0 -1173
  112. package/vendor/libarchive/libarchive/archive_pathmatch.c +0 -480
  113. package/vendor/libarchive/libarchive/archive_pathmatch.h +0 -50
  114. package/vendor/libarchive/libarchive/archive_platform.h +0 -213
  115. package/vendor/libarchive/libarchive/archive_platform_acl.h +0 -53
  116. package/vendor/libarchive/libarchive/archive_platform_stat.h +0 -45
  117. package/vendor/libarchive/libarchive/archive_platform_xattr.h +0 -45
  118. package/vendor/libarchive/libarchive/archive_ppmd7.c +0 -1173
  119. package/vendor/libarchive/libarchive/archive_ppmd7_private.h +0 -119
  120. package/vendor/libarchive/libarchive/archive_ppmd8.c +0 -1293
  121. package/vendor/libarchive/libarchive/archive_ppmd8_private.h +0 -123
  122. package/vendor/libarchive/libarchive/archive_ppmd_private.h +0 -159
  123. package/vendor/libarchive/libarchive/archive_private.h +0 -209
  124. package/vendor/libarchive/libarchive/archive_random.c +0 -274
  125. package/vendor/libarchive/libarchive/archive_random_private.h +0 -36
  126. package/vendor/libarchive/libarchive/archive_rb.c +0 -709
  127. package/vendor/libarchive/libarchive/archive_rb.h +0 -113
  128. package/vendor/libarchive/libarchive/archive_read.3 +0 -250
  129. package/vendor/libarchive/libarchive/archive_read.c +0 -1814
  130. package/vendor/libarchive/libarchive/archive_read_add_passphrase.3 +0 -72
  131. package/vendor/libarchive/libarchive/archive_read_add_passphrase.c +0 -189
  132. package/vendor/libarchive/libarchive/archive_read_append_filter.c +0 -209
  133. package/vendor/libarchive/libarchive/archive_read_data.3 +0 -128
  134. package/vendor/libarchive/libarchive/archive_read_data_into_fd.c +0 -207
  135. package/vendor/libarchive/libarchive/archive_read_disk.3 +0 -422
  136. package/vendor/libarchive/libarchive/archive_read_disk_entry_from_file.c +0 -1086
  137. package/vendor/libarchive/libarchive/archive_read_disk_posix.c +0 -2639
  138. package/vendor/libarchive/libarchive/archive_read_disk_private.h +0 -97
  139. package/vendor/libarchive/libarchive/archive_read_disk_set_standard_lookup.c +0 -315
  140. package/vendor/libarchive/libarchive/archive_read_disk_windows.c +0 -2603
  141. package/vendor/libarchive/libarchive/archive_read_extract.3 +0 -135
  142. package/vendor/libarchive/libarchive/archive_read_extract.c +0 -59
  143. package/vendor/libarchive/libarchive/archive_read_extract2.c +0 -154
  144. package/vendor/libarchive/libarchive/archive_read_filter.3 +0 -163
  145. package/vendor/libarchive/libarchive/archive_read_format.3 +0 -190
  146. package/vendor/libarchive/libarchive/archive_read_free.3 +0 -91
  147. package/vendor/libarchive/libarchive/archive_read_header.3 +0 -89
  148. package/vendor/libarchive/libarchive/archive_read_new.3 +0 -57
  149. package/vendor/libarchive/libarchive/archive_read_open.3 +0 -247
  150. package/vendor/libarchive/libarchive/archive_read_open_fd.c +0 -236
  151. package/vendor/libarchive/libarchive/archive_read_open_file.c +0 -257
  152. package/vendor/libarchive/libarchive/archive_read_open_filename.c +0 -652
  153. package/vendor/libarchive/libarchive/archive_read_open_memory.c +0 -188
  154. package/vendor/libarchive/libarchive/archive_read_private.h +0 -274
  155. package/vendor/libarchive/libarchive/archive_read_set_format.c +0 -116
  156. package/vendor/libarchive/libarchive/archive_read_set_options.3 +0 -290
  157. package/vendor/libarchive/libarchive/archive_read_set_options.c +0 -132
  158. package/vendor/libarchive/libarchive/archive_read_support_filter_all.c +0 -84
  159. package/vendor/libarchive/libarchive/archive_read_support_filter_by_code.c +0 -68
  160. package/vendor/libarchive/libarchive/archive_read_support_filter_bzip2.c +0 -360
  161. package/vendor/libarchive/libarchive/archive_read_support_filter_compress.c +0 -457
  162. package/vendor/libarchive/libarchive/archive_read_support_filter_grzip.c +0 -108
  163. package/vendor/libarchive/libarchive/archive_read_support_filter_gzip.c +0 -538
  164. package/vendor/libarchive/libarchive/archive_read_support_filter_lrzip.c +0 -119
  165. package/vendor/libarchive/libarchive/archive_read_support_filter_lz4.c +0 -829
  166. package/vendor/libarchive/libarchive/archive_read_support_filter_lzop.c +0 -493
  167. package/vendor/libarchive/libarchive/archive_read_support_filter_none.c +0 -51
  168. package/vendor/libarchive/libarchive/archive_read_support_filter_program.c +0 -497
  169. package/vendor/libarchive/libarchive/archive_read_support_filter_rpm.c +0 -249
  170. package/vendor/libarchive/libarchive/archive_read_support_filter_uu.c +0 -739
  171. package/vendor/libarchive/libarchive/archive_read_support_filter_xz.c +0 -792
  172. package/vendor/libarchive/libarchive/archive_read_support_filter_zstd.c +0 -356
  173. package/vendor/libarchive/libarchive/archive_read_support_format_7zip.c +0 -4650
  174. package/vendor/libarchive/libarchive/archive_read_support_format_all.c +0 -88
  175. package/vendor/libarchive/libarchive/archive_read_support_format_ar.c +0 -597
  176. package/vendor/libarchive/libarchive/archive_read_support_format_by_code.c +0 -76
  177. package/vendor/libarchive/libarchive/archive_read_support_format_cab.c +0 -3410
  178. package/vendor/libarchive/libarchive/archive_read_support_format_cpio.c +0 -1152
  179. package/vendor/libarchive/libarchive/archive_read_support_format_empty.c +0 -95
  180. package/vendor/libarchive/libarchive/archive_read_support_format_iso9660.c +0 -3516
  181. package/vendor/libarchive/libarchive/archive_read_support_format_lha.c +0 -2931
  182. package/vendor/libarchive/libarchive/archive_read_support_format_mtree.c +0 -2113
  183. package/vendor/libarchive/libarchive/archive_read_support_format_rar.c +0 -3932
  184. package/vendor/libarchive/libarchive/archive_read_support_format_rar5.c +0 -4501
  185. package/vendor/libarchive/libarchive/archive_read_support_format_raw.c +0 -194
  186. package/vendor/libarchive/libarchive/archive_read_support_format_tar.c +0 -3785
  187. package/vendor/libarchive/libarchive/archive_read_support_format_warc.c +0 -875
  188. package/vendor/libarchive/libarchive/archive_read_support_format_xar.c +0 -3770
  189. package/vendor/libarchive/libarchive/archive_read_support_format_zip.c +0 -4710
  190. package/vendor/libarchive/libarchive/archive_string.c +0 -4391
  191. package/vendor/libarchive/libarchive/archive_string.h +0 -244
  192. package/vendor/libarchive/libarchive/archive_string_composition.h +0 -2289
  193. package/vendor/libarchive/libarchive/archive_string_sprintf.c +0 -200
  194. package/vendor/libarchive/libarchive/archive_time.c +0 -168
  195. package/vendor/libarchive/libarchive/archive_time_private.h +0 -47
  196. package/vendor/libarchive/libarchive/archive_util.3 +0 -239
  197. package/vendor/libarchive/libarchive/archive_util.c +0 -668
  198. package/vendor/libarchive/libarchive/archive_version_details.c +0 -516
  199. package/vendor/libarchive/libarchive/archive_virtual.c +0 -162
  200. package/vendor/libarchive/libarchive/archive_windows.c +0 -1035
  201. package/vendor/libarchive/libarchive/archive_windows.h +0 -332
  202. package/vendor/libarchive/libarchive/archive_write.3 +0 -266
  203. package/vendor/libarchive/libarchive/archive_write.c +0 -896
  204. package/vendor/libarchive/libarchive/archive_write_add_filter.c +0 -71
  205. package/vendor/libarchive/libarchive/archive_write_add_filter_b64encode.c +0 -329
  206. package/vendor/libarchive/libarchive/archive_write_add_filter_by_name.c +0 -76
  207. package/vendor/libarchive/libarchive/archive_write_add_filter_bzip2.c +0 -411
  208. package/vendor/libarchive/libarchive/archive_write_add_filter_compress.c +0 -459
  209. package/vendor/libarchive/libarchive/archive_write_add_filter_grzip.c +0 -143
  210. package/vendor/libarchive/libarchive/archive_write_add_filter_gzip.c +0 -493
  211. package/vendor/libarchive/libarchive/archive_write_add_filter_lrzip.c +0 -214
  212. package/vendor/libarchive/libarchive/archive_write_add_filter_lz4.c +0 -710
  213. package/vendor/libarchive/libarchive/archive_write_add_filter_lzop.c +0 -500
  214. package/vendor/libarchive/libarchive/archive_write_add_filter_none.c +0 -42
  215. package/vendor/libarchive/libarchive/archive_write_add_filter_program.c +0 -398
  216. package/vendor/libarchive/libarchive/archive_write_add_filter_uuencode.c +0 -320
  217. package/vendor/libarchive/libarchive/archive_write_add_filter_xz.c +0 -547
  218. package/vendor/libarchive/libarchive/archive_write_add_filter_zstd.c +0 -608
  219. package/vendor/libarchive/libarchive/archive_write_blocksize.3 +0 -112
  220. package/vendor/libarchive/libarchive/archive_write_data.3 +0 -88
  221. package/vendor/libarchive/libarchive/archive_write_disk.3 +0 -360
  222. package/vendor/libarchive/libarchive/archive_write_disk_posix.c +0 -4789
  223. package/vendor/libarchive/libarchive/archive_write_disk_private.h +0 -43
  224. package/vendor/libarchive/libarchive/archive_write_disk_set_standard_lookup.c +0 -265
  225. package/vendor/libarchive/libarchive/archive_write_disk_windows.c +0 -2952
  226. package/vendor/libarchive/libarchive/archive_write_filter.3 +0 -140
  227. package/vendor/libarchive/libarchive/archive_write_finish_entry.3 +0 -77
  228. package/vendor/libarchive/libarchive/archive_write_format.3 +0 -187
  229. package/vendor/libarchive/libarchive/archive_write_free.3 +0 -94
  230. package/vendor/libarchive/libarchive/archive_write_header.3 +0 -71
  231. package/vendor/libarchive/libarchive/archive_write_new.3 +0 -56
  232. package/vendor/libarchive/libarchive/archive_write_open.3 +0 -270
  233. package/vendor/libarchive/libarchive/archive_write_open_fd.c +0 -141
  234. package/vendor/libarchive/libarchive/archive_write_open_file.c +0 -102
  235. package/vendor/libarchive/libarchive/archive_write_open_filename.c +0 -272
  236. package/vendor/libarchive/libarchive/archive_write_open_memory.c +0 -110
  237. package/vendor/libarchive/libarchive/archive_write_private.h +0 -166
  238. package/vendor/libarchive/libarchive/archive_write_set_format.c +0 -124
  239. package/vendor/libarchive/libarchive/archive_write_set_format_7zip.c +0 -2571
  240. package/vendor/libarchive/libarchive/archive_write_set_format_ar.c +0 -540
  241. package/vendor/libarchive/libarchive/archive_write_set_format_by_name.c +0 -93
  242. package/vendor/libarchive/libarchive/archive_write_set_format_cpio.c +0 -11
  243. package/vendor/libarchive/libarchive/archive_write_set_format_cpio_binary.c +0 -618
  244. package/vendor/libarchive/libarchive/archive_write_set_format_cpio_newc.c +0 -457
  245. package/vendor/libarchive/libarchive/archive_write_set_format_cpio_odc.c +0 -508
  246. package/vendor/libarchive/libarchive/archive_write_set_format_filter_by_ext.c +0 -141
  247. package/vendor/libarchive/libarchive/archive_write_set_format_gnutar.c +0 -790
  248. package/vendor/libarchive/libarchive/archive_write_set_format_iso9660.c +0 -8216
  249. package/vendor/libarchive/libarchive/archive_write_set_format_mtree.c +0 -2307
  250. package/vendor/libarchive/libarchive/archive_write_set_format_pax.c +0 -2249
  251. package/vendor/libarchive/libarchive/archive_write_set_format_private.h +0 -40
  252. package/vendor/libarchive/libarchive/archive_write_set_format_raw.c +0 -123
  253. package/vendor/libarchive/libarchive/archive_write_set_format_shar.c +0 -650
  254. package/vendor/libarchive/libarchive/archive_write_set_format_ustar.c +0 -768
  255. package/vendor/libarchive/libarchive/archive_write_set_format_v7tar.c +0 -648
  256. package/vendor/libarchive/libarchive/archive_write_set_format_warc.c +0 -491
  257. package/vendor/libarchive/libarchive/archive_write_set_format_xar.c +0 -3799
  258. package/vendor/libarchive/libarchive/archive_write_set_format_zip.c +0 -2548
  259. package/vendor/libarchive/libarchive/archive_write_set_options.3 +0 -779
  260. package/vendor/libarchive/libarchive/archive_write_set_options.c +0 -129
  261. package/vendor/libarchive/libarchive/archive_write_set_passphrase.3 +0 -72
  262. package/vendor/libarchive/libarchive/archive_write_set_passphrase.c +0 -95
  263. package/vendor/libarchive/libarchive/archive_xxhash.h +0 -48
  264. package/vendor/libarchive/libarchive/config_freebsd.h +0 -275
  265. package/vendor/libarchive/libarchive/cpio.5 +0 -389
  266. package/vendor/libarchive/libarchive/filter_fork.h +0 -44
  267. package/vendor/libarchive/libarchive/filter_fork_posix.c +0 -269
  268. package/vendor/libarchive/libarchive/filter_fork_windows.c +0 -270
  269. package/vendor/libarchive/libarchive/libarchive-formats.5 +0 -478
  270. package/vendor/libarchive/libarchive/libarchive.3 +0 -297
  271. package/vendor/libarchive/libarchive/libarchive_changes.3 +0 -339
  272. package/vendor/libarchive/libarchive/libarchive_internals.3 +0 -363
  273. package/vendor/libarchive/libarchive/module.modulemap +0 -34
  274. package/vendor/libarchive/libarchive/mtree.5 +0 -323
  275. package/vendor/libarchive/libarchive/tar.5 +0 -947
  276. package/vendor/libarchive/libarchive/xxhash.c +0 -531
@@ -1,205 +0,0 @@
1
- /*-
2
- * Copyright (c) 2003-2007 Tim Kientzle
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_PRIVATE_H_INCLUDED
27
- #define ARCHIVE_ENTRY_PRIVATE_H_INCLUDED
28
-
29
- #ifndef __LIBARCHIVE_BUILD
30
- #error This header is only to be used internally to libarchive.
31
- #endif
32
-
33
- #include "archive_acl_private.h"
34
- #include "archive_string.h"
35
-
36
- struct ae_xattr {
37
- struct ae_xattr *next;
38
-
39
- char *name;
40
- void *value;
41
- size_t size;
42
- };
43
-
44
- struct ae_sparse {
45
- struct ae_sparse *next;
46
-
47
- int64_t offset;
48
- int64_t length;
49
- };
50
-
51
- struct ae_digest {
52
- unsigned char md5[16];
53
- unsigned char rmd160[20];
54
- unsigned char sha1[20];
55
- unsigned char sha256[32];
56
- unsigned char sha384[48];
57
- unsigned char sha512[64];
58
- };
59
-
60
- /*
61
- * Description of an archive entry.
62
- *
63
- * Basically, this is a "struct stat" with a few text fields added in.
64
- *
65
- * TODO: Add "comment", "charset", and possibly other entries
66
- * that are supported by "pax interchange" format. However, GNU, ustar,
67
- * cpio, and other variants don't support these features, so they're not an
68
- * excruciatingly high priority right now.
69
- *
70
- * TODO: "pax interchange" format allows essentially arbitrary
71
- * key/value attributes to be attached to any entry. Supporting
72
- * such extensions may make this library useful for special
73
- * applications (e.g., a package manager could attach special
74
- * package-management attributes to each entry). There are tricky
75
- * API issues involved, so this is not going to happen until
76
- * there's a real demand for it.
77
- *
78
- * TODO: Design a good API for handling sparse files.
79
- */
80
- struct archive_entry {
81
- struct archive *archive;
82
-
83
- /*
84
- * Note that ae_stat.st_mode & AE_IFMT can be 0!
85
- *
86
- * This occurs when the actual file type of the object is not
87
- * in the archive. For example, 'tar' archives store
88
- * hardlinks without marking the type of the underlying
89
- * object.
90
- */
91
-
92
- /*
93
- * We have a "struct aest" for holding file metadata rather than just
94
- * a "struct stat" because on some platforms the "struct stat" has
95
- * fields which are too narrow to hold the range of possible values;
96
- * we don't want to lose information if we read an archive and write
97
- * out another (e.g., in "tar -cf new.tar @old.tar").
98
- *
99
- * The "stat" pointer points to some form of platform-specific struct
100
- * stat; it is declared as a void * rather than a struct stat * as
101
- * some platforms have multiple varieties of stat structures.
102
- */
103
- void *stat;
104
- int stat_valid; /* Set to 0 whenever a field in aest changes. */
105
-
106
- struct aest {
107
- int64_t aest_atime;
108
- uint32_t aest_atime_nsec;
109
- int64_t aest_ctime;
110
- uint32_t aest_ctime_nsec;
111
- int64_t aest_mtime;
112
- uint32_t aest_mtime_nsec;
113
- int64_t aest_birthtime;
114
- uint32_t aest_birthtime_nsec;
115
- int64_t aest_gid;
116
- int64_t aest_ino;
117
- uint32_t aest_nlink;
118
- uint64_t aest_size;
119
- int64_t aest_uid;
120
- /*
121
- * Because converting between device codes and
122
- * major/minor values is platform-specific and
123
- * inherently a bit risky, we only do that conversion
124
- * lazily. That way, we will do a better job of
125
- * preserving information in those cases where no
126
- * conversion is actually required.
127
- */
128
- int aest_dev_is_broken_down;
129
- dev_t aest_dev;
130
- dev_t aest_devmajor;
131
- dev_t aest_devminor;
132
- int aest_rdev_is_broken_down;
133
- dev_t aest_rdev;
134
- dev_t aest_rdevmajor;
135
- dev_t aest_rdevminor;
136
- } ae_stat;
137
-
138
- int ae_set; /* bitmap of fields that are currently set */
139
- #define AE_SET_HARDLINK 1
140
- #define AE_SET_SYMLINK 2
141
- #define AE_SET_ATIME 4
142
- #define AE_SET_CTIME 8
143
- #define AE_SET_MTIME 16
144
- #define AE_SET_BIRTHTIME 32
145
- #define AE_SET_SIZE 64
146
- #define AE_SET_INO 128
147
- #define AE_SET_DEV 256
148
- #define AE_SET_PERM 512
149
- #define AE_SET_FILETYPE 1024
150
- #define AE_SET_UID 2048
151
- #define AE_SET_GID 4096
152
- #define AE_SET_RDEV 8192
153
-
154
- /*
155
- * Use aes here so that we get transparent mbs<->wcs conversions.
156
- */
157
- struct archive_mstring ae_fflags_text; /* Text fflags per fflagstostr(3) */
158
- unsigned long ae_fflags_set; /* Bitmap fflags */
159
- unsigned long ae_fflags_clear;
160
- struct archive_mstring ae_gname; /* Name of owning group */
161
- struct archive_mstring ae_linkname; /* Name of target for hardlink or symlink */
162
- struct archive_mstring ae_pathname; /* Name of entry */
163
- struct archive_mstring ae_uname; /* Name of owner */
164
-
165
- /* Not used within libarchive; useful for some clients. */
166
- struct archive_mstring ae_sourcepath; /* Path this entry is sourced from. */
167
-
168
- #define AE_ENCRYPTION_NONE 0
169
- #define AE_ENCRYPTION_DATA 1
170
- #define AE_ENCRYPTION_METADATA 2
171
- char encryption;
172
-
173
- void *mac_metadata;
174
- size_t mac_metadata_size;
175
-
176
- /* Digest support. */
177
- #define AE_MSET_DIGEST_MD5 1
178
- #define AE_MSET_DIGEST_RMD160 2
179
- #define AE_MSET_DIGEST_SHA1 4
180
- #define AE_MSET_DIGEST_SHA256 8
181
- #define AE_MSET_DIGEST_SHA384 16
182
- #define AE_MSET_DIGEST_SHA512 32
183
- uint_least32_t mset_digest;
184
- struct ae_digest digest;
185
-
186
- /* ACL support. */
187
- struct archive_acl acl;
188
-
189
- /* extattr support. */
190
- struct ae_xattr *xattr_head;
191
- struct ae_xattr *xattr_p;
192
-
193
- /* sparse support. */
194
- struct ae_sparse *sparse_head;
195
- struct ae_sparse *sparse_tail;
196
- struct ae_sparse *sparse_p;
197
-
198
- /* Miscellaneous. */
199
- char strmode[12];
200
-
201
- /* Symlink type support */
202
- int ae_symlink_type;
203
- };
204
-
205
- #endif /* !ARCHIVE_ENTRY_PRIVATE_H_INCLUDED */
@@ -1,156 +0,0 @@
1
- /*-
2
- * Copyright (c) 2003-2007 Tim Kientzle
3
- * Copyright (c) 2010-2011 Michihiro NAKAJIMA
4
- * All rights reserved.
5
- *
6
- * Redistribution and use in source and binary forms, with or without
7
- * modification, are permitted provided that the following conditions
8
- * are met:
9
- * 1. Redistributions of source code must retain the above copyright
10
- * notice, this list of conditions and the following disclaimer.
11
- * 2. Redistributions in binary form must reproduce the above copyright
12
- * notice, this list of conditions and the following disclaimer in the
13
- * documentation and/or other materials provided with the distribution.
14
- *
15
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
16
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18
- * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
19
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
- */
26
-
27
- #include "archive_platform.h"
28
-
29
- #include "archive.h"
30
- #include "archive_entry.h"
31
- #include "archive_private.h"
32
- #include "archive_entry_private.h"
33
-
34
- /*
35
- * sparse handling
36
- */
37
-
38
- void
39
- archive_entry_sparse_clear(struct archive_entry *entry)
40
- {
41
- struct ae_sparse *sp;
42
-
43
- while (entry->sparse_head != NULL) {
44
- sp = entry->sparse_head->next;
45
- free(entry->sparse_head);
46
- entry->sparse_head = sp;
47
- }
48
- entry->sparse_tail = NULL;
49
- }
50
-
51
- void
52
- archive_entry_sparse_add_entry(struct archive_entry *entry,
53
- la_int64_t offset, la_int64_t length)
54
- {
55
- struct ae_sparse *sp;
56
-
57
- if (offset < 0 || length < 0)
58
- /* Invalid value */
59
- return;
60
- if (offset > INT64_MAX - length ||
61
- offset + length > archive_entry_size(entry))
62
- /* A value of "length" parameter is too large. */
63
- return;
64
- if ((sp = entry->sparse_tail) != NULL) {
65
- if (sp->offset + sp->length > offset)
66
- /* Invalid value. */
67
- return;
68
- if (sp->offset + sp->length == offset) {
69
- if (sp->offset + sp->length + length < 0)
70
- /* A value of "length" parameter is
71
- * too large. */
72
- return;
73
- /* Expand existing sparse block size. */
74
- sp->length += length;
75
- return;
76
- }
77
- }
78
-
79
- if ((sp = malloc(sizeof(*sp))) == NULL)
80
- /* XXX Error XXX */
81
- return;
82
-
83
- sp->offset = offset;
84
- sp->length = length;
85
- sp->next = NULL;
86
-
87
- if (entry->sparse_head == NULL)
88
- entry->sparse_head = entry->sparse_tail = sp;
89
- else {
90
- /* Add a new sparse block to the tail of list. */
91
- if (entry->sparse_tail != NULL)
92
- entry->sparse_tail->next = sp;
93
- entry->sparse_tail = sp;
94
- }
95
- }
96
-
97
-
98
- /*
99
- * returns number of the sparse entries
100
- */
101
- int
102
- archive_entry_sparse_count(struct archive_entry *entry)
103
- {
104
- struct ae_sparse *sp;
105
- int count = 0;
106
-
107
- for (sp = entry->sparse_head; sp != NULL; sp = sp->next)
108
- count++;
109
-
110
- /*
111
- * Sanity check if this entry is exactly sparse.
112
- * If amount of sparse blocks is just one and it indicates the whole
113
- * file data, we should remove it and return zero.
114
- */
115
- if (count == 1) {
116
- sp = entry->sparse_head;
117
- if (sp->offset == 0 &&
118
- sp->length >= archive_entry_size(entry)) {
119
- count = 0;
120
- archive_entry_sparse_clear(entry);
121
- }
122
- }
123
-
124
- return (count);
125
- }
126
-
127
- int
128
- archive_entry_sparse_reset(struct archive_entry * entry)
129
- {
130
- /* Counting can change sparse_head, so do it first */
131
- int count = archive_entry_sparse_count(entry);
132
- entry->sparse_p = entry->sparse_head;
133
- return (count);
134
- }
135
-
136
- int
137
- archive_entry_sparse_next(struct archive_entry * entry,
138
- la_int64_t *offset, la_int64_t *length)
139
- {
140
- if (entry->sparse_p) {
141
- *offset = entry->sparse_p->offset;
142
- *length = entry->sparse_p->length;
143
-
144
- entry->sparse_p = entry->sparse_p->next;
145
-
146
- return (ARCHIVE_OK);
147
- } else {
148
- *offset = 0;
149
- *length = 0;
150
- return (ARCHIVE_WARN);
151
- }
152
- }
153
-
154
- /*
155
- * end of sparse handling
156
- */
@@ -1,274 +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_STAT 3
27
- .Os
28
- .Sh NAME
29
- .Nm archive_entry_stat ,
30
- .Nm archive_entry_copy_stat ,
31
- .Nm archive_entry_filetype ,
32
- .Nm archive_entry_set_filetype ,
33
- .Nm archive_entry_mode ,
34
- .Nm archive_entry_set_mode ,
35
- .Nm archive_entry_size ,
36
- .Nm archive_entry_size_is_set ,
37
- .Nm archive_entry_set_size ,
38
- .Nm archive_entry_unset_size ,
39
- .Nm archive_entry_dev ,
40
- .Nm archive_entry_set_dev ,
41
- .Nm archive_entry_dev_is_set ,
42
- .Nm archive_entry_devmajor ,
43
- .Nm archive_entry_set_devmajor ,
44
- .Nm archive_entry_devminor ,
45
- .Nm archive_entry_set_devminor ,
46
- .Nm archive_entry_ino ,
47
- .Nm archive_entry_set_ino ,
48
- .Nm archive_entry_ino_is_set ,
49
- .Nm archive_entry_ino64 ,
50
- .Nm archive_entry_set_ino64 ,
51
- .Nm archive_entry_nlink ,
52
- .Nm archive_entry_rdev ,
53
- .Nm archive_entry_set_rdev ,
54
- .Nm archive_entry_rdevmajor ,
55
- .Nm archive_entry_set_rdevmajor ,
56
- .Nm archive_entry_rdevminor ,
57
- .Nm archive_entry_set_rdevminor
58
- .Nd accessor functions for manipulating archive entry descriptions
59
- .Sh LIBRARY
60
- Streaming Archive Library (libarchive, -larchive)
61
- .Sh SYNOPSIS
62
- .In archive_entry.h
63
- .Ft const struct stat *
64
- .Fn archive_entry_stat "struct archive_entry *a"
65
- .Ft void
66
- .Fn archive_entry_copy_stat "struct archive_entry *a" "const struct stat *sb"
67
- .Ft mode_t
68
- .Fn archive_entry_filetype "struct archive_entry *a"
69
- .Ft void
70
- .Fn archive_entry_set_filetype "struct archive_entry *a" "unsigned int type"
71
- .Ft mode_t
72
- .Fn archive_entry_mode "struct archive_entry *a"
73
- .Ft void
74
- .Fn archive_entry_set_mode "struct archive_entry *a" "mode_t mode"
75
- .Ft int64_t
76
- .Fn archive_entry_size "struct archive_entry *a"
77
- .Ft int
78
- .Fn archive_entry_size_is_set "struct archive_entry *a"
79
- .Ft void
80
- .Fn archive_entry_set_size "struct archive_entry *a" "int64_t size"
81
- .Ft void
82
- .Fn archive_entry_unset_size "struct archive_entry *a"
83
- .Ft dev_t
84
- .Fn archive_entry_dev "struct archive_entry *a"
85
- .Ft void
86
- .Fn archive_entry_set_dev "struct archive_entry *a" "dev_t dev"
87
- .Ft int
88
- .Fn archive_entry_dev_is_set "struct archive_entry *a"
89
- .Ft dev_t
90
- .Fn archive_entry_devmajor "struct archive_entry *a"
91
- .Ft void
92
- .Fn archive_entry_set_devmajor "struct archive_entry *a" "dev_t major"
93
- .Ft dev_t
94
- .Fn archive_entry_devminor "struct archive_entry *a"
95
- .Ft void
96
- .Fn archive_entry_set_devminor "struct archive_entry *a" "dev_t minor"
97
- .Ft ino_t
98
- .Fn archive_entry_ino "struct archive_entry *a"
99
- .Ft void
100
- .Fn archive_entry_set_ino "struct archive_entry *a" "unsigned long ino"
101
- .Ft int
102
- .Fn archive_entry_ino_is_set "struct archive_entry *a"
103
- .Ft int64_t
104
- .Fn archive_entry_ino64 "struct archive_entry *a"
105
- .Ft void
106
- .Fn archive_entry_set_ino64 "struct archive_entry *a" "int64_t ino"
107
- .Ft unsigned int
108
- .Fn archive_entry_nlink "struct archive_entry *a"
109
- .Ft void
110
- .Fn archive_entry_set_nlink "struct archive_entry *a" "unsigned int count"
111
- .Ft dev_t
112
- .Fn archive_entry_rdev "struct archive_entry *a"
113
- .Ft dev_t
114
- .Fn archive_entry_rdevmajor "struct archive_entry *a"
115
- .Ft dev_t
116
- .Fn archive_entry_rdevminor "struct archive_entry *a"
117
- .Ft void
118
- .Fn archive_entry_set_rdev "struct archive_entry *a" "dev_t dev"
119
- .Ft void
120
- .Fn archive_entry_set_rdevmajor "struct archive_entry *a" "dev_t major"
121
- .Ft void
122
- .Fn archive_entry_set_rdevminor "struct archive_entry *a" "dev_t minor"
123
- .Sh DESCRIPTION
124
- .Ss Copying to and from Vt struct stat
125
- The function
126
- .Fn archive_entry_stat
127
- converts the various fields stored in the archive entry to the format
128
- used by
129
- .Xr stat 2 .
130
- The return value remains valid until either
131
- .Fn archive_entry_clear
132
- or
133
- .Fn archive_entry_free
134
- is called.
135
- It is not affected by calls to the set accessor functions.
136
- It currently sets the following values in
137
- .Vt struct stat :
138
- .Vt st_atime ,
139
- .Vt st_ctime ,
140
- .Vt st_dev ,
141
- .Vt st_gid ,
142
- .Vt st_ino ,
143
- .Vt st_mode ,
144
- .Vt st_mtime ,
145
- .Vt st_nlink ,
146
- .Vt st_rdev ,
147
- .Vt st_size ,
148
- .Vt st_uid .
149
- In addition,
150
- .Vt st_birthtime
151
- and high-precision information for time-related fields
152
- will be included on platforms that support it.
153
- .Pp
154
- The function
155
- .Fn archive_entry_copy_stat
156
- copies fields from the platform's
157
- .Vt struct stat .
158
- Fields not provided by
159
- .Vt struct stat
160
- are unchanged.
161
- .Ss General accessor functions
162
- The functions
163
- .Fn archive_entry_filetype
164
- and
165
- .Fn archive_entry_set_filetype
166
- get respectively set the filetype.
167
- The file type is one of the following constants:
168
- .Bl -tag -width "AE_IFSOCK" -compact -offset indent
169
- .It AE_IFREG
170
- Regular file
171
- .It AE_IFLNK
172
- Symbolic link
173
- .It AE_IFSOCK
174
- Socket
175
- .It AE_IFCHR
176
- Character device
177
- .It AE_IFBLK
178
- Block device
179
- .It AE_IFDIR
180
- Directory
181
- .It AE_IFIFO
182
- Named pipe (fifo)
183
- .El
184
- Not all file types are supported by all platforms.
185
- The constants used by
186
- .Xr stat 2
187
- may have different numeric values from the
188
- corresponding constants above.
189
- .Pp
190
- The functions
191
- .Fn archive_entry_mode
192
- and
193
- .Fn archive_entry_set_mode
194
- get/set a combination of file type and permissions and provide the
195
- equivalent of
196
- .Va st_mode .
197
- Use of
198
- .Fn archive_entry_filetype
199
- and
200
- .Fn archive_entry_perm
201
- for getting and
202
- .Fn archive_entry_set_filetype
203
- and
204
- .Fn archive_entry_set_perm
205
- for setting is recommended.
206
- .Pp
207
- The function
208
- .Fn archive_entry_size
209
- returns the file size, if it has been set, and 0 otherwise.
210
- .Fn archive_entry_size_is_set
211
- can be used to query that status.
212
- .Fn archive_entry_set_size
213
- and
214
- .Fn archive_entry_unset_size
215
- set and unset the size, respectively.
216
- .Pp
217
- The number of references (hardlinks) can be obtained by calling
218
- .Fn archive_entry_nlink
219
- and set with
220
- .Fn archive_entry_set_nlink .
221
- .Ss Identifying unique files
222
- The functions
223
- .Fn archive_entry_dev
224
- and
225
- .Fn archive_entry_ino64
226
- are used by
227
- .Xr archive_entry_linkify 3
228
- to find hardlinks.
229
- The pair of device and inode is supposed to identify hardlinked files.
230
- .Pp
231
- The device major and minor number can be obtained independently using
232
- .Fn archive_entry_devmajor
233
- and
234
- .Fn archive_entry_devminor .
235
- The device can be set either via
236
- .Fn archive_entry_set_dev
237
- or by the combination of major and minor number using
238
- .Fn archive_entry_set_devmajor
239
- and
240
- .Fn archive_entry_set_devminor .
241
- .Pp
242
- The inode number can be obtained using
243
- .Fn archive_entry_ino .
244
- This is a legacy interface that uses the platform
245
- .Vt ino_t ,
246
- which may be very small.
247
- To set the inode number,
248
- .Fn archive_entry_set_ino64
249
- is the preferred interface.
250
- .Ss Accessor functions for block and character devices
251
- Block and character devices are characterised either using a device number
252
- or a pair of major and minor number.
253
- The combined device number can be obtained with
254
- .Fn archive_device_rdev
255
- and set with
256
- .Fn archive_device_set_rdev .
257
- The major and minor numbers are accessed by
258
- .Fn archive_device_rdevmajor ,
259
- .Fn archive_device_rdevminor
260
- .Fn archive_device_set_rdevmajor
261
- and
262
- .Fn archive_device_set_rdevminor .
263
- .Pp
264
- The process of splitting the combined device number into major and
265
- minor number and the reverse process of combing them differs between
266
- platforms.
267
- Some archive formats use the combined form, while other formats use
268
- the split form.
269
- .Sh SEE ALSO
270
- .Xr stat 2 ,
271
- .Xr archive_entry_acl 3 ,
272
- .Xr archive_entry_perms 3 ,
273
- .Xr archive_entry_time 3 ,
274
- .Xr libarchive 3