libarchive-static 1.0.5 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (296) hide show
  1. checksums.yaml +5 -5
  2. data/ext/extconf.rb +2 -9
  3. data/ext/libarchive-0.1.1/ext/archive_read_support_compression.c +6 -6
  4. data/ext/libarchive-0.1.1/ext/archive_read_support_compression.o +0 -0
  5. data/ext/libarchive-0.1.1/ext/archive_read_support_format.o +0 -0
  6. data/ext/libarchive-0.1.1/ext/archive_write_open_rb_str.c +1 -1
  7. data/ext/libarchive-0.1.1/ext/archive_write_open_rb_str.o +0 -0
  8. data/ext/libarchive-0.1.1/ext/archive_write_set_compression.c +5 -5
  9. data/ext/libarchive-0.1.1/ext/archive_write_set_compression.o +0 -0
  10. data/ext/libarchive-0.1.1/ext/config.h +23 -0
  11. data/ext/libarchive-0.1.1/ext/config.log +230 -0
  12. data/ext/libarchive-0.1.1/ext/config.status +671 -0
  13. data/ext/libarchive-0.1.1/ext/libarchive.c +1 -1
  14. data/ext/libarchive-0.1.1/ext/libarchive.o +0 -0
  15. data/ext/libarchive-0.1.1/ext/libarchive_archive.c +7 -7
  16. data/ext/libarchive-0.1.1/ext/libarchive_archive.o +0 -0
  17. data/ext/libarchive-0.1.1/ext/libarchive_entry.c +6 -0
  18. data/ext/libarchive-0.1.1/ext/libarchive_entry.o +0 -0
  19. data/ext/libarchive-0.1.1/ext/libarchive_internal.h +0 -1
  20. data/ext/libarchive-0.1.1/ext/libarchive_reader.c +6 -4
  21. data/ext/libarchive-0.1.1/ext/libarchive_reader.o +0 -0
  22. data/ext/libarchive-0.1.1/ext/libarchive_ruby.so +0 -0
  23. data/ext/libarchive-0.1.1/ext/libarchive_win32.h +1 -1
  24. data/ext/libarchive-0.1.1/ext/libarchive_writer.c +2 -2
  25. data/ext/libarchive-0.1.1/ext/libarchive_writer.o +0 -0
  26. data/ext/libarchive-3.6.2/Makefile.in +16892 -0
  27. data/ext/libarchive-3.6.2/build/autoconf/ax_append_compile_flags.m4 +67 -0
  28. data/ext/libarchive-3.6.2/build/autoconf/ax_append_flag.m4 +71 -0
  29. data/ext/libarchive-3.6.2/build/autoconf/ax_check_compile_flag.m4 +74 -0
  30. data/ext/libarchive-3.6.2/build/autoconf/ax_require_defined.m4 +37 -0
  31. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/build/autoconf/check_stdcall_func.m4 +0 -0
  32. data/ext/libarchive-3.6.2/build/autoconf/compile +348 -0
  33. data/ext/libarchive-3.6.2/build/autoconf/config.guess +1754 -0
  34. data/ext/libarchive-3.6.2/build/autoconf/config.rpath +696 -0
  35. data/ext/libarchive-3.6.2/build/autoconf/config.sub +1890 -0
  36. data/ext/libarchive-3.6.2/build/autoconf/depcomp +791 -0
  37. data/ext/libarchive-3.6.2/build/autoconf/iconv.m4 +271 -0
  38. data/ext/libarchive-3.6.2/build/autoconf/install-sh +541 -0
  39. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/build/autoconf/la_uid_t.m4 +0 -0
  40. data/ext/libarchive-3.6.2/build/autoconf/lib-ld.m4 +109 -0
  41. data/ext/libarchive-3.6.2/build/autoconf/lib-link.m4 +777 -0
  42. data/ext/libarchive-3.6.2/build/autoconf/lib-prefix.m4 +224 -0
  43. data/ext/libarchive-3.6.2/build/autoconf/ltmain.sh +11251 -0
  44. data/ext/libarchive-3.6.2/build/autoconf/m4_ax_compile_check_sizeof.m4 +115 -0
  45. data/ext/libarchive-3.6.2/build/autoconf/missing +215 -0
  46. data/ext/libarchive-3.6.2/build/autoconf/test-driver +153 -0
  47. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/build/pkgconfig/libarchive.pc.in +4 -1
  48. data/ext/libarchive-3.6.2/config.h.in +1504 -0
  49. data/ext/libarchive-3.6.2/configure +25558 -0
  50. data/ext/libarchive-3.6.2/libarchive/archive.h +1212 -0
  51. data/ext/libarchive-3.6.2/libarchive/archive_acl.c +2097 -0
  52. data/ext/libarchive-3.6.2/libarchive/archive_acl_private.h +83 -0
  53. data/ext/libarchive-3.6.2/libarchive/archive_blake2.h +197 -0
  54. data/ext/libarchive-3.6.2/libarchive/archive_blake2_impl.h +161 -0
  55. data/ext/libarchive-3.6.2/libarchive/archive_blake2s_ref.c +369 -0
  56. data/ext/libarchive-3.6.2/libarchive/archive_blake2sp_ref.c +361 -0
  57. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_check_magic.c +63 -22
  58. data/ext/libarchive-3.6.2/libarchive/archive_cmdline.c +227 -0
  59. data/ext/libarchive-3.6.2/libarchive/archive_cmdline_private.h +47 -0
  60. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_crc32.h +17 -0
  61. data/ext/libarchive-3.6.2/libarchive/archive_cryptor.c +534 -0
  62. data/ext/libarchive-3.6.2/libarchive/archive_cryptor_private.h +188 -0
  63. data/ext/libarchive-3.6.2/libarchive/archive_digest.c +1505 -0
  64. data/ext/libarchive-3.6.2/libarchive/archive_digest_private.h +416 -0
  65. data/ext/libarchive-3.6.2/libarchive/archive_disk_acl_darwin.c +559 -0
  66. data/ext/libarchive-3.6.2/libarchive/archive_disk_acl_freebsd.c +712 -0
  67. data/ext/libarchive-3.6.2/libarchive/archive_disk_acl_linux.c +760 -0
  68. data/ext/libarchive-3.6.2/libarchive/archive_disk_acl_sunos.c +824 -0
  69. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_endian.h +48 -15
  70. data/ext/libarchive-3.6.2/libarchive/archive_entry.c +2149 -0
  71. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry.h +305 -106
  72. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_copy_bhfi.c +5 -4
  73. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_copy_stat.c +9 -3
  74. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_link_resolver.c +104 -62
  75. data/ext/libarchive-3.6.2/libarchive/archive_entry_locale.h +92 -0
  76. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_private.h +65 -49
  77. data/ext/libarchive-3.6.2/libarchive/archive_entry_sparse.c +156 -0
  78. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_stat.c +6 -6
  79. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_strmode.c +1 -1
  80. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_xattr.c +4 -6
  81. data/ext/libarchive-3.6.2/libarchive/archive_getdate.c +1165 -0
  82. data/ext/libarchive-3.6.2/libarchive/archive_getdate.h +39 -0
  83. data/ext/libarchive-3.6.2/libarchive/archive_hmac.c +334 -0
  84. data/ext/libarchive-3.6.2/libarchive/archive_hmac_private.h +117 -0
  85. data/ext/libarchive-3.6.2/libarchive/archive_match.c +1875 -0
  86. data/ext/libarchive-3.6.2/libarchive/archive_openssl_evp_private.h +53 -0
  87. data/ext/libarchive-3.6.2/libarchive/archive_openssl_hmac_private.h +54 -0
  88. data/ext/libarchive-3.6.2/libarchive/archive_options.c +218 -0
  89. data/ext/libarchive-3.6.2/libarchive/archive_options_private.h +51 -0
  90. data/ext/libarchive-3.6.2/libarchive/archive_pack_dev.c +337 -0
  91. data/ext/libarchive-3.6.2/libarchive/archive_pack_dev.h +49 -0
  92. data/ext/libarchive-3.6.2/libarchive/archive_pathmatch.c +463 -0
  93. data/ext/libarchive-3.6.2/libarchive/archive_pathmatch.h +52 -0
  94. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_platform.h +77 -9
  95. data/ext/libarchive-3.6.2/libarchive/archive_platform_acl.h +55 -0
  96. data/ext/libarchive-3.6.2/libarchive/archive_platform_xattr.h +47 -0
  97. data/ext/libarchive-3.6.2/libarchive/archive_ppmd7.c +1168 -0
  98. data/ext/libarchive-3.6.2/libarchive/archive_ppmd7_private.h +119 -0
  99. data/ext/libarchive-3.6.2/libarchive/archive_ppmd8.c +1287 -0
  100. data/ext/libarchive-3.6.2/libarchive/archive_ppmd8_private.h +148 -0
  101. data/ext/libarchive-3.6.2/libarchive/archive_ppmd_private.h +151 -0
  102. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_private.h +74 -18
  103. data/ext/libarchive-3.6.2/libarchive/archive_random.c +272 -0
  104. data/ext/libarchive-3.6.2/libarchive/archive_random_private.h +36 -0
  105. data/ext/libarchive-3.6.2/libarchive/archive_rb.c +709 -0
  106. data/ext/libarchive-3.6.2/libarchive/archive_rb.h +113 -0
  107. data/ext/libarchive-3.6.2/libarchive/archive_read.c +1756 -0
  108. data/ext/libarchive-3.6.2/libarchive/archive_read_add_passphrase.c +190 -0
  109. data/ext/libarchive-3.6.2/libarchive/archive_read_append_filter.c +204 -0
  110. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_data_into_fd.c +64 -18
  111. data/ext/libarchive-3.6.2/libarchive/archive_read_disk_entry_from_file.c +1086 -0
  112. data/ext/libarchive-3.6.2/libarchive/archive_read_disk_posix.c +2732 -0
  113. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_disk_private.h +40 -4
  114. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_disk_set_standard_lookup.c +21 -11
  115. data/ext/libarchive-3.6.2/libarchive/archive_read_disk_windows.c +2479 -0
  116. data/ext/libarchive-3.6.2/libarchive/archive_read_extract.c +60 -0
  117. data/ext/{libarchive-2.8.4/libarchive/archive_read_extract.c → libarchive-3.6.2/libarchive/archive_read_extract2.c} +34 -61
  118. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_open_fd.c +70 -49
  119. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_open_file.c +38 -23
  120. data/ext/libarchive-3.6.2/libarchive/archive_read_open_filename.c +586 -0
  121. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_open_memory.c +58 -28
  122. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_private.h +127 -59
  123. data/ext/libarchive-3.6.2/libarchive/archive_read_set_format.c +117 -0
  124. data/ext/libarchive-3.6.2/libarchive/archive_read_set_options.c +133 -0
  125. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_all.c → libarchive-3.6.2/libarchive/archive_read_support_filter_all.c} +35 -10
  126. data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_by_code.c +83 -0
  127. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_bzip2.c → libarchive-3.6.2/libarchive/archive_read_support_filter_bzip2.c} +38 -26
  128. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_compress.c → libarchive-3.6.2/libarchive/archive_read_support_filter_compress.c} +52 -44
  129. data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_grzip.c +112 -0
  130. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_gzip.c → libarchive-3.6.2/libarchive/archive_read_support_filter_gzip.c} +108 -37
  131. data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_lrzip.c +122 -0
  132. data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_lz4.c +742 -0
  133. data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_lzop.c +499 -0
  134. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_none.c → libarchive-3.6.2/libarchive/archive_read_support_filter_none.c} +15 -3
  135. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_program.c → libarchive-3.6.2/libarchive/archive_read_support_filter_program.c} +114 -77
  136. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_rpm.c → libarchive-3.6.2/libarchive/archive_read_support_filter_rpm.c} +31 -31
  137. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_uu.c → libarchive-3.6.2/libarchive/archive_read_support_filter_uu.c} +141 -85
  138. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_xz.c → libarchive-3.6.2/libarchive/archive_read_support_filter_xz.c} +369 -284
  139. data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_zstd.c +297 -0
  140. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_7zip.c +3900 -0
  141. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_all.c +89 -0
  142. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_ar.c +126 -72
  143. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_by_code.c +92 -0
  144. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_cab.c +3228 -0
  145. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_cpio.c +1104 -0
  146. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_empty.c +14 -11
  147. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_iso9660.c +990 -541
  148. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_lha.c +2916 -0
  149. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_mtree.c +2150 -0
  150. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_rar.c +3797 -0
  151. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_rar5.c +4251 -0
  152. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_raw.c +38 -31
  153. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_tar.c +1157 -629
  154. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_warc.c +848 -0
  155. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_xar.c +439 -258
  156. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_zip.c +4270 -0
  157. data/ext/libarchive-3.6.2/libarchive/archive_string.c +4240 -0
  158. data/ext/libarchive-3.6.2/libarchive/archive_string.h +243 -0
  159. data/ext/libarchive-3.6.2/libarchive/archive_string_composition.h +2292 -0
  160. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_string_sprintf.c +44 -16
  161. data/ext/libarchive-3.6.2/libarchive/archive_util.c +655 -0
  162. data/ext/libarchive-3.6.2/libarchive/archive_version_details.c +151 -0
  163. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_virtual.c +85 -16
  164. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_windows.c +214 -541
  165. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_windows.h +74 -106
  166. data/ext/libarchive-3.6.2/libarchive/archive_write.c +828 -0
  167. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter.c +72 -0
  168. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_b64encode.c +304 -0
  169. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_by_name.c +77 -0
  170. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_bzip2.c +401 -0
  171. data/ext/{libarchive-2.8.4/libarchive/archive_write_set_compression_compress.c → libarchive-3.6.2/libarchive/archive_write_add_filter_compress.c} +86 -131
  172. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_grzip.c +135 -0
  173. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_gzip.c +442 -0
  174. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_lrzip.c +197 -0
  175. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_lz4.c +700 -0
  176. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_lzop.c +478 -0
  177. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_format_all.c → libarchive-3.6.2/libarchive/archive_write_add_filter_none.c} +11 -11
  178. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_program.c +391 -0
  179. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_uuencode.c +295 -0
  180. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_xz.c +545 -0
  181. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_zstd.c +418 -0
  182. data/ext/libarchive-3.6.2/libarchive/archive_write_disk_posix.c +4711 -0
  183. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_disk_private.h +9 -2
  184. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_disk_set_standard_lookup.c +30 -29
  185. data/ext/libarchive-3.6.2/libarchive/archive_write_disk_windows.c +2842 -0
  186. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_open_fd.c +15 -10
  187. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_open_file.c +15 -9
  188. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_open_filename.c +128 -20
  189. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_open_memory.c +7 -18
  190. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_private.h +72 -29
  191. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format.c +56 -3
  192. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_7zip.c +2322 -0
  193. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_ar.c +54 -34
  194. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_by_name.c +20 -2
  195. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_cpio.c +11 -0
  196. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_cpio_binary.c +610 -0
  197. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_cpio_newc.c +457 -0
  198. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_cpio_odc.c +500 -0
  199. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_filter_by_ext.c +142 -0
  200. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_gnutar.c +755 -0
  201. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_iso9660.c +8165 -0
  202. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_mtree.c +2217 -0
  203. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_pax.c +1049 -387
  204. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_private.h +42 -0
  205. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_raw.c +125 -0
  206. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_shar.c +62 -47
  207. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_ustar.c +279 -108
  208. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_v7tar.c +638 -0
  209. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_warc.c +453 -0
  210. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_xar.c +3259 -0
  211. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_zip.c +1704 -0
  212. data/ext/libarchive-3.6.2/libarchive/archive_write_set_options.c +130 -0
  213. data/ext/libarchive-3.6.2/libarchive/archive_write_set_passphrase.c +95 -0
  214. data/ext/libarchive-3.6.2/libarchive/archive_xxhash.h +48 -0
  215. data/ext/libarchive-3.6.2/libarchive/config_freebsd.h +271 -0
  216. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/filter_fork.h +10 -5
  217. data/ext/{libarchive-2.8.4/libarchive/filter_fork.c → libarchive-3.6.2/libarchive/filter_fork_posix.c} +98 -19
  218. data/ext/libarchive-3.6.2/libarchive/filter_fork_windows.c +236 -0
  219. data/ext/libarchive-3.6.2/libarchive/xxhash.c +525 -0
  220. data/ext/libarchive-static-makefile +144 -80
  221. data/ext/libarchive-static-wrapper-makefile +1 -1
  222. data/ext/zlib-1.2.13/Makefile.in +404 -0
  223. data/ext/{zlib-1.2.5 → zlib-1.2.13}/adler32.c +51 -34
  224. data/ext/{zlib-1.2.5 → zlib-1.2.13}/compress.c +27 -21
  225. data/ext/zlib-1.2.13/configure +922 -0
  226. data/ext/zlib-1.2.13/crc32.c +1125 -0
  227. data/ext/zlib-1.2.13/crc32.h +9446 -0
  228. data/ext/{zlib-1.2.5 → zlib-1.2.13}/deflate.c +842 -459
  229. data/ext/{zlib-1.2.5 → zlib-1.2.13}/deflate.h +37 -33
  230. data/ext/{zlib-1.2.5 → zlib-1.2.13}/gzclose.c +0 -0
  231. data/ext/{zlib-1.2.5 → zlib-1.2.13}/gzguts.h +103 -16
  232. data/ext/{zlib-1.2.5 → zlib-1.2.13}/gzlib.c +155 -53
  233. data/ext/zlib-1.2.13/gzread.c +650 -0
  234. data/ext/zlib-1.2.13/gzwrite.c +677 -0
  235. data/ext/{zlib-1.2.5 → zlib-1.2.13}/infback.c +24 -12
  236. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inffast.c +49 -66
  237. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inffast.h +0 -0
  238. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inffixed.h +3 -3
  239. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inflate.c +209 -94
  240. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inflate.h +9 -5
  241. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inftrees.c +24 -50
  242. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inftrees.h +1 -1
  243. data/ext/{zlib-1.2.5 → zlib-1.2.13}/trees.c +135 -198
  244. data/ext/{zlib-1.2.5 → zlib-1.2.13}/trees.h +0 -0
  245. data/ext/zlib-1.2.13/uncompr.c +93 -0
  246. data/ext/{zlib-1.2.5 → zlib-1.2.13}/zconf.h +182 -63
  247. data/ext/{zlib-1.2.5 → zlib-1.2.13}/zlib.h +617 -295
  248. data/ext/{zlib-1.2.5 → zlib-1.2.13}/zutil.c +50 -41
  249. data/ext/{zlib-1.2.5 → zlib-1.2.13}/zutil.h +83 -82
  250. metadata +244 -137
  251. data/ext/libarchive-0.1.1/libarchive.c +0 -1762
  252. data/ext/libarchive-2.8.4/Makefile.in +0 -7076
  253. data/ext/libarchive-2.8.4/build/autoconf/compile +0 -143
  254. data/ext/libarchive-2.8.4/build/autoconf/config.guess +0 -1502
  255. data/ext/libarchive-2.8.4/build/autoconf/config.sub +0 -1708
  256. data/ext/libarchive-2.8.4/build/autoconf/depcomp +0 -630
  257. data/ext/libarchive-2.8.4/build/autoconf/install-sh +0 -291
  258. data/ext/libarchive-2.8.4/build/autoconf/ltmain.sh +0 -8406
  259. data/ext/libarchive-2.8.4/build/autoconf/missing +0 -376
  260. data/ext/libarchive-2.8.4/config.h.in +0 -772
  261. data/ext/libarchive-2.8.4/configure +0 -17916
  262. data/ext/libarchive-2.8.4/libarchive/archive.h +0 -741
  263. data/ext/libarchive-2.8.4/libarchive/archive_entry.c +0 -2202
  264. data/ext/libarchive-2.8.4/libarchive/archive_hash.h +0 -281
  265. data/ext/libarchive-2.8.4/libarchive/archive_read.c +0 -1249
  266. data/ext/libarchive-2.8.4/libarchive/archive_read_disk.c +0 -198
  267. data/ext/libarchive-2.8.4/libarchive/archive_read_disk_entry_from_file.c +0 -570
  268. data/ext/libarchive-2.8.4/libarchive/archive_read_open_filename.c +0 -272
  269. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_cpio.c +0 -777
  270. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_mtree.c +0 -1304
  271. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_zip.c +0 -903
  272. data/ext/libarchive-2.8.4/libarchive/archive_string.c +0 -453
  273. data/ext/libarchive-2.8.4/libarchive/archive_string.h +0 -148
  274. data/ext/libarchive-2.8.4/libarchive/archive_util.c +0 -391
  275. data/ext/libarchive-2.8.4/libarchive/archive_write.c +0 -466
  276. data/ext/libarchive-2.8.4/libarchive/archive_write_disk.c +0 -2628
  277. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_bzip2.c +0 -408
  278. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_gzip.c +0 -477
  279. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_none.c +0 -257
  280. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_program.c +0 -347
  281. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_xz.c +0 -438
  282. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_cpio.c +0 -344
  283. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_cpio_newc.c +0 -295
  284. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_mtree.c +0 -1050
  285. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_zip.c +0 -667
  286. data/ext/libarchive-2.8.4/libarchive/config_freebsd.h +0 -154
  287. data/ext/libarchive-2.8.4/libarchive/filter_fork_windows.c +0 -113
  288. data/ext/zlib-1.2.5/Makefile.in +0 -257
  289. data/ext/zlib-1.2.5/configure +0 -596
  290. data/ext/zlib-1.2.5/crc32.c +0 -442
  291. data/ext/zlib-1.2.5/crc32.h +0 -441
  292. data/ext/zlib-1.2.5/example.c +0 -565
  293. data/ext/zlib-1.2.5/gzread.c +0 -653
  294. data/ext/zlib-1.2.5/gzwrite.c +0 -531
  295. data/ext/zlib-1.2.5/minigzip.c +0 -440
  296. data/ext/zlib-1.2.5/uncompr.c +0 -59
File without changes
@@ -0,0 +1,93 @@
1
+ /* uncompr.c -- decompress a memory buffer
2
+ * Copyright (C) 1995-2003, 2010, 2014, 2016 Jean-loup Gailly, Mark Adler
3
+ * For conditions of distribution and use, see copyright notice in zlib.h
4
+ */
5
+
6
+ /* @(#) $Id$ */
7
+
8
+ #define ZLIB_INTERNAL
9
+ #include "zlib.h"
10
+
11
+ /* ===========================================================================
12
+ Decompresses the source buffer into the destination buffer. *sourceLen is
13
+ the byte length of the source buffer. Upon entry, *destLen is the total size
14
+ of the destination buffer, which must be large enough to hold the entire
15
+ uncompressed data. (The size of the uncompressed data must have been saved
16
+ previously by the compressor and transmitted to the decompressor by some
17
+ mechanism outside the scope of this compression library.) Upon exit,
18
+ *destLen is the size of the decompressed data and *sourceLen is the number
19
+ of source bytes consumed. Upon return, source + *sourceLen points to the
20
+ first unused input byte.
21
+
22
+ uncompress returns Z_OK if success, Z_MEM_ERROR if there was not enough
23
+ memory, Z_BUF_ERROR if there was not enough room in the output buffer, or
24
+ Z_DATA_ERROR if the input data was corrupted, including if the input data is
25
+ an incomplete zlib stream.
26
+ */
27
+ int ZEXPORT uncompress2(dest, destLen, source, sourceLen)
28
+ Bytef *dest;
29
+ uLongf *destLen;
30
+ const Bytef *source;
31
+ uLong *sourceLen;
32
+ {
33
+ z_stream stream;
34
+ int err;
35
+ const uInt max = (uInt)-1;
36
+ uLong len, left;
37
+ Byte buf[1]; /* for detection of incomplete stream when *destLen == 0 */
38
+
39
+ len = *sourceLen;
40
+ if (*destLen) {
41
+ left = *destLen;
42
+ *destLen = 0;
43
+ }
44
+ else {
45
+ left = 1;
46
+ dest = buf;
47
+ }
48
+
49
+ stream.next_in = (z_const Bytef *)source;
50
+ stream.avail_in = 0;
51
+ stream.zalloc = (alloc_func)0;
52
+ stream.zfree = (free_func)0;
53
+ stream.opaque = (voidpf)0;
54
+
55
+ err = inflateInit(&stream);
56
+ if (err != Z_OK) return err;
57
+
58
+ stream.next_out = dest;
59
+ stream.avail_out = 0;
60
+
61
+ do {
62
+ if (stream.avail_out == 0) {
63
+ stream.avail_out = left > (uLong)max ? max : (uInt)left;
64
+ left -= stream.avail_out;
65
+ }
66
+ if (stream.avail_in == 0) {
67
+ stream.avail_in = len > (uLong)max ? max : (uInt)len;
68
+ len -= stream.avail_in;
69
+ }
70
+ err = inflate(&stream, Z_NO_FLUSH);
71
+ } while (err == Z_OK);
72
+
73
+ *sourceLen -= len + stream.avail_in;
74
+ if (dest != buf)
75
+ *destLen = stream.total_out;
76
+ else if (stream.total_out && err == Z_BUF_ERROR)
77
+ left = 1;
78
+
79
+ inflateEnd(&stream);
80
+ return err == Z_STREAM_END ? Z_OK :
81
+ err == Z_NEED_DICT ? Z_DATA_ERROR :
82
+ err == Z_BUF_ERROR && left + stream.avail_out ? Z_DATA_ERROR :
83
+ err;
84
+ }
85
+
86
+ int ZEXPORT uncompress(dest, destLen, source, sourceLen)
87
+ Bytef *dest;
88
+ uLongf *destLen;
89
+ const Bytef *source;
90
+ uLong sourceLen;
91
+ {
92
+ return uncompress2(dest, destLen, source, &sourceLen);
93
+ }
@@ -1,5 +1,5 @@
1
1
  /* zconf.h -- configuration of the zlib compression library
2
- * Copyright (C) 1995-2010 Jean-loup Gailly.
2
+ * Copyright (C) 1995-2016 Jean-loup Gailly, Mark Adler
3
3
  * For conditions of distribution and use, see copyright notice in zlib.h
4
4
  */
5
5
 
@@ -15,11 +15,13 @@
15
15
  * this permanently in zconf.h using "./configure --zprefix".
16
16
  */
17
17
  #ifdef Z_PREFIX /* may be set to #if 1 by ./configure */
18
+ # define Z_PREFIX_SET
18
19
 
19
- /* all linked symbols */
20
+ /* all linked symbols and init macros */
20
21
  # define _dist_code z__dist_code
21
22
  # define _length_code z__length_code
22
23
  # define _tr_align z__tr_align
24
+ # define _tr_flush_bits z__tr_flush_bits
23
25
  # define _tr_flush_block z__tr_flush_block
24
26
  # define _tr_init z__tr_init
25
27
  # define _tr_stored_block z__tr_stored_block
@@ -27,81 +29,114 @@
27
29
  # define adler32 z_adler32
28
30
  # define adler32_combine z_adler32_combine
29
31
  # define adler32_combine64 z_adler32_combine64
30
- # define compress z_compress
31
- # define compress2 z_compress2
32
- # define compressBound z_compressBound
32
+ # define adler32_z z_adler32_z
33
+ # ifndef Z_SOLO
34
+ # define compress z_compress
35
+ # define compress2 z_compress2
36
+ # define compressBound z_compressBound
37
+ # endif
33
38
  # define crc32 z_crc32
34
39
  # define crc32_combine z_crc32_combine
35
40
  # define crc32_combine64 z_crc32_combine64
41
+ # define crc32_combine_gen z_crc32_combine_gen
42
+ # define crc32_combine_gen64 z_crc32_combine_gen64
43
+ # define crc32_combine_op z_crc32_combine_op
44
+ # define crc32_z z_crc32_z
36
45
  # define deflate z_deflate
37
46
  # define deflateBound z_deflateBound
38
47
  # define deflateCopy z_deflateCopy
39
48
  # define deflateEnd z_deflateEnd
49
+ # define deflateGetDictionary z_deflateGetDictionary
50
+ # define deflateInit z_deflateInit
51
+ # define deflateInit2 z_deflateInit2
40
52
  # define deflateInit2_ z_deflateInit2_
41
53
  # define deflateInit_ z_deflateInit_
42
54
  # define deflateParams z_deflateParams
55
+ # define deflatePending z_deflatePending
43
56
  # define deflatePrime z_deflatePrime
44
57
  # define deflateReset z_deflateReset
58
+ # define deflateResetKeep z_deflateResetKeep
45
59
  # define deflateSetDictionary z_deflateSetDictionary
46
60
  # define deflateSetHeader z_deflateSetHeader
47
61
  # define deflateTune z_deflateTune
48
62
  # define deflate_copyright z_deflate_copyright
49
63
  # define get_crc_table z_get_crc_table
50
- # define gz_error z_gz_error
51
- # define gz_intmax z_gz_intmax
52
- # define gz_strwinerror z_gz_strwinerror
53
- # define gzbuffer z_gzbuffer
54
- # define gzclearerr z_gzclearerr
55
- # define gzclose z_gzclose
56
- # define gzclose_r z_gzclose_r
57
- # define gzclose_w z_gzclose_w
58
- # define gzdirect z_gzdirect
59
- # define gzdopen z_gzdopen
60
- # define gzeof z_gzeof
61
- # define gzerror z_gzerror
62
- # define gzflush z_gzflush
63
- # define gzgetc z_gzgetc
64
- # define gzgets z_gzgets
65
- # define gzoffset z_gzoffset
66
- # define gzoffset64 z_gzoffset64
67
- # define gzopen z_gzopen
68
- # define gzopen64 z_gzopen64
69
- # define gzprintf z_gzprintf
70
- # define gzputc z_gzputc
71
- # define gzputs z_gzputs
72
- # define gzread z_gzread
73
- # define gzrewind z_gzrewind
74
- # define gzseek z_gzseek
75
- # define gzseek64 z_gzseek64
76
- # define gzsetparams z_gzsetparams
77
- # define gztell z_gztell
78
- # define gztell64 z_gztell64
79
- # define gzungetc z_gzungetc
80
- # define gzwrite z_gzwrite
64
+ # ifndef Z_SOLO
65
+ # define gz_error z_gz_error
66
+ # define gz_intmax z_gz_intmax
67
+ # define gz_strwinerror z_gz_strwinerror
68
+ # define gzbuffer z_gzbuffer
69
+ # define gzclearerr z_gzclearerr
70
+ # define gzclose z_gzclose
71
+ # define gzclose_r z_gzclose_r
72
+ # define gzclose_w z_gzclose_w
73
+ # define gzdirect z_gzdirect
74
+ # define gzdopen z_gzdopen
75
+ # define gzeof z_gzeof
76
+ # define gzerror z_gzerror
77
+ # define gzflush z_gzflush
78
+ # define gzfread z_gzfread
79
+ # define gzfwrite z_gzfwrite
80
+ # define gzgetc z_gzgetc
81
+ # define gzgetc_ z_gzgetc_
82
+ # define gzgets z_gzgets
83
+ # define gzoffset z_gzoffset
84
+ # define gzoffset64 z_gzoffset64
85
+ # define gzopen z_gzopen
86
+ # define gzopen64 z_gzopen64
87
+ # ifdef _WIN32
88
+ # define gzopen_w z_gzopen_w
89
+ # endif
90
+ # define gzprintf z_gzprintf
91
+ # define gzputc z_gzputc
92
+ # define gzputs z_gzputs
93
+ # define gzread z_gzread
94
+ # define gzrewind z_gzrewind
95
+ # define gzseek z_gzseek
96
+ # define gzseek64 z_gzseek64
97
+ # define gzsetparams z_gzsetparams
98
+ # define gztell z_gztell
99
+ # define gztell64 z_gztell64
100
+ # define gzungetc z_gzungetc
101
+ # define gzvprintf z_gzvprintf
102
+ # define gzwrite z_gzwrite
103
+ # endif
81
104
  # define inflate z_inflate
82
105
  # define inflateBack z_inflateBack
83
106
  # define inflateBackEnd z_inflateBackEnd
107
+ # define inflateBackInit z_inflateBackInit
84
108
  # define inflateBackInit_ z_inflateBackInit_
109
+ # define inflateCodesUsed z_inflateCodesUsed
85
110
  # define inflateCopy z_inflateCopy
86
111
  # define inflateEnd z_inflateEnd
112
+ # define inflateGetDictionary z_inflateGetDictionary
87
113
  # define inflateGetHeader z_inflateGetHeader
114
+ # define inflateInit z_inflateInit
115
+ # define inflateInit2 z_inflateInit2
88
116
  # define inflateInit2_ z_inflateInit2_
89
117
  # define inflateInit_ z_inflateInit_
90
118
  # define inflateMark z_inflateMark
91
119
  # define inflatePrime z_inflatePrime
92
120
  # define inflateReset z_inflateReset
93
121
  # define inflateReset2 z_inflateReset2
122
+ # define inflateResetKeep z_inflateResetKeep
94
123
  # define inflateSetDictionary z_inflateSetDictionary
95
124
  # define inflateSync z_inflateSync
96
125
  # define inflateSyncPoint z_inflateSyncPoint
97
126
  # define inflateUndermine z_inflateUndermine
127
+ # define inflateValidate z_inflateValidate
98
128
  # define inflate_copyright z_inflate_copyright
99
129
  # define inflate_fast z_inflate_fast
100
130
  # define inflate_table z_inflate_table
101
- # define uncompress z_uncompress
131
+ # ifndef Z_SOLO
132
+ # define uncompress z_uncompress
133
+ # define uncompress2 z_uncompress2
134
+ # endif
102
135
  # define zError z_zError
103
- # define zcalloc z_zcalloc
104
- # define zcfree z_zcfree
136
+ # ifndef Z_SOLO
137
+ # define zcalloc z_zcalloc
138
+ # define zcfree z_zcfree
139
+ # endif
105
140
  # define zlibCompileFlags z_zlibCompileFlags
106
141
  # define zlibVersion z_zlibVersion
107
142
 
@@ -111,7 +146,9 @@
111
146
  # define alloc_func z_alloc_func
112
147
  # define charf z_charf
113
148
  # define free_func z_free_func
114
- # define gzFile z_gzFile
149
+ # ifndef Z_SOLO
150
+ # define gzFile z_gzFile
151
+ # endif
115
152
  # define gz_header z_gz_header
116
153
  # define gz_headerp z_gz_headerp
117
154
  # define in_func z_in_func
@@ -197,9 +234,25 @@
197
234
  # endif
198
235
  #endif
199
236
 
200
- /* Some Mac compilers merge all .h files incorrectly: */
201
- #if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__)
202
- # define NO_DUMMY_DECL
237
+ #if defined(ZLIB_CONST) && !defined(z_const)
238
+ # define z_const const
239
+ #else
240
+ # define z_const
241
+ #endif
242
+
243
+ #ifdef Z_SOLO
244
+ typedef unsigned long z_size_t;
245
+ #else
246
+ # define z_longlong long long
247
+ # if defined(NO_SIZE_T)
248
+ typedef unsigned NO_SIZE_T z_size_t;
249
+ # elif defined(STDC)
250
+ # include <stddef.h>
251
+ typedef size_t z_size_t;
252
+ # else
253
+ typedef unsigned long z_size_t;
254
+ # endif
255
+ # undef z_longlong
203
256
  #endif
204
257
 
205
258
  /* Maximum value for memLevel in deflateInit2 */
@@ -229,7 +282,7 @@
229
282
  Of course this will generally degrade compression (there's no free lunch).
230
283
 
231
284
  The memory requirements for inflate are (in bytes) 1 << windowBits
232
- that is, 32K for windowBits=15 (default value) plus a few kilobytes
285
+ that is, 32K for windowBits=15 (default value) plus about 7 kilobytes
233
286
  for small objects.
234
287
  */
235
288
 
@@ -243,6 +296,14 @@
243
296
  # endif
244
297
  #endif
245
298
 
299
+ #ifndef Z_ARG /* function prototypes for stdarg */
300
+ # if defined(STDC) || defined(Z_HAVE_STDARG_H)
301
+ # define Z_ARG(args) args
302
+ # else
303
+ # define Z_ARG(args) ()
304
+ # endif
305
+ #endif
306
+
246
307
  /* The following definitions for FAR are needed only for MSDOS mixed
247
308
  * model programming (small or medium model with some far allocations).
248
309
  * This was tested only with MSC; for other MSDOS compilers you may have
@@ -291,6 +352,9 @@
291
352
  # ifdef FAR
292
353
  # undef FAR
293
354
  # endif
355
+ # ifndef WIN32_LEAN_AND_MEAN
356
+ # define WIN32_LEAN_AND_MEAN
357
+ # endif
294
358
  # include <windows.h>
295
359
  /* No need for _export, use ZLIB.DEF instead. */
296
360
  /* For complete Windows compatibility, use WINAPI, not __stdcall. */
@@ -356,12 +420,47 @@ typedef uLong FAR uLongf;
356
420
  typedef Byte *voidp;
357
421
  #endif
358
422
 
423
+ #if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC)
424
+ # include <limits.h>
425
+ # if (UINT_MAX == 0xffffffffUL)
426
+ # define Z_U4 unsigned
427
+ # elif (ULONG_MAX == 0xffffffffUL)
428
+ # define Z_U4 unsigned long
429
+ # elif (USHRT_MAX == 0xffffffffUL)
430
+ # define Z_U4 unsigned short
431
+ # endif
432
+ #endif
433
+
434
+ #ifdef Z_U4
435
+ typedef Z_U4 z_crc_t;
436
+ #else
437
+ typedef unsigned long z_crc_t;
438
+ #endif
439
+
359
440
  #ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */
360
441
  # define Z_HAVE_UNISTD_H
361
442
  #endif
362
443
 
444
+ #ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */
445
+ # define Z_HAVE_STDARG_H
446
+ #endif
447
+
363
448
  #ifdef STDC
364
- # include <sys/types.h> /* for off_t */
449
+ # ifndef Z_SOLO
450
+ # include <sys/types.h> /* for off_t */
451
+ # endif
452
+ #endif
453
+
454
+ #if defined(STDC) || defined(Z_HAVE_STDARG_H)
455
+ # ifndef Z_SOLO
456
+ # include <stdarg.h> /* for va_list */
457
+ # endif
458
+ #endif
459
+
460
+ #ifdef _WIN32
461
+ # ifndef Z_SOLO
462
+ # include <stddef.h> /* for wchar_t */
463
+ # endif
365
464
  #endif
366
465
 
367
466
  /* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
@@ -370,21 +469,45 @@ typedef uLong FAR uLongf;
370
469
  * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
371
470
  * equivalently requesting no 64-bit operations
372
471
  */
373
- #if -_LARGEFILE64_SOURCE - -1 == 1
472
+ #if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1
374
473
  # undef _LARGEFILE64_SOURCE
375
474
  #endif
376
475
 
377
- #if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
378
- # include <unistd.h> /* for SEEK_* and off_t */
379
- # ifdef VMS
380
- # include <unixio.h> /* for off_t */
476
+ #ifndef Z_HAVE_UNISTD_H
477
+ # ifdef __WATCOMC__
478
+ # define Z_HAVE_UNISTD_H
381
479
  # endif
382
- # ifndef z_off_t
383
- # define z_off_t off_t
480
+ #endif
481
+ #ifndef Z_HAVE_UNISTD_H
482
+ # if defined(_LARGEFILE64_SOURCE) && !defined(_WIN32)
483
+ # define Z_HAVE_UNISTD_H
484
+ # endif
485
+ #endif
486
+ #ifndef Z_SOLO
487
+ # if defined(Z_HAVE_UNISTD_H)
488
+ # include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
489
+ # ifdef VMS
490
+ # include <unixio.h> /* for off_t */
491
+ # endif
492
+ # ifndef z_off_t
493
+ # define z_off_t off_t
494
+ # endif
384
495
  # endif
385
496
  #endif
386
497
 
387
- #ifndef SEEK_SET
498
+ #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0
499
+ # define Z_LFS64
500
+ #endif
501
+
502
+ #if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64)
503
+ # define Z_LARGE64
504
+ #endif
505
+
506
+ #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64)
507
+ # define Z_WANT64
508
+ #endif
509
+
510
+ #if !defined(SEEK_SET) && !defined(Z_SOLO)
388
511
  # define SEEK_SET 0 /* Seek from beginning of file. */
389
512
  # define SEEK_CUR 1 /* Seek from current position. */
390
513
  # define SEEK_END 2 /* Set file pointer to EOF plus "offset" */
@@ -394,18 +517,14 @@ typedef uLong FAR uLongf;
394
517
  # define z_off_t long
395
518
  #endif
396
519
 
397
- #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
520
+ #if !defined(_WIN32) && defined(Z_LARGE64)
398
521
  # define z_off64_t off64_t
399
522
  #else
400
- # define z_off64_t z_off_t
401
- #endif
402
-
403
- #if defined(__OS400__)
404
- # define NO_vsnprintf
405
- #endif
406
-
407
- #if defined(__MVS__)
408
- # define NO_vsnprintf
523
+ # if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO)
524
+ # define z_off64_t __int64
525
+ # else
526
+ # define z_off64_t z_off_t
527
+ # endif
409
528
  #endif
410
529
 
411
530
  /* MVS linker does not support external names larger than 8 bytes */