libarchive-static 1.0.0

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 (157) hide show
  1. data/ext/Makefile +6 -0
  2. data/ext/extconf.rb +61 -0
  3. data/ext/libarchive-0.1.1/COPYING.libarchive +60 -0
  4. data/ext/libarchive-0.1.1/LICENSE.libbzip2 +42 -0
  5. data/ext/libarchive-0.1.1/README.txt +143 -0
  6. data/ext/libarchive-0.1.1/ext/Makefile.in +0 -0
  7. data/ext/libarchive-0.1.1/ext/archive_read_support_compression.c +31 -0
  8. data/ext/libarchive-0.1.1/ext/archive_read_support_compression.h +6 -0
  9. data/ext/libarchive-0.1.1/ext/archive_read_support_format.c +32 -0
  10. data/ext/libarchive-0.1.1/ext/archive_read_support_format.h +6 -0
  11. data/ext/libarchive-0.1.1/ext/archive_write_open_rb_str.c +29 -0
  12. data/ext/libarchive-0.1.1/ext/archive_write_open_rb_str.h +6 -0
  13. data/ext/libarchive-0.1.1/ext/archive_write_set_compression.c +32 -0
  14. data/ext/libarchive-0.1.1/ext/archive_write_set_compression.h +6 -0
  15. data/ext/libarchive-0.1.1/ext/config.h.in +22 -0
  16. data/ext/libarchive-0.1.1/ext/configure +3904 -0
  17. data/ext/libarchive-0.1.1/ext/configure.in +11 -0
  18. data/ext/libarchive-0.1.1/ext/depend +19 -0
  19. data/ext/libarchive-0.1.1/ext/extconf.rb +6 -0
  20. data/ext/libarchive-0.1.1/ext/install-sh +250 -0
  21. data/ext/libarchive-0.1.1/ext/libarchive.c +89 -0
  22. data/ext/libarchive-0.1.1/ext/libarchive_archive.c +84 -0
  23. data/ext/libarchive-0.1.1/ext/libarchive_entry.c +1015 -0
  24. data/ext/libarchive-0.1.1/ext/libarchive_internal.h +155 -0
  25. data/ext/libarchive-0.1.1/ext/libarchive_reader.c +328 -0
  26. data/ext/libarchive-0.1.1/ext/libarchive_win32.h +52 -0
  27. data/ext/libarchive-0.1.1/ext/libarchive_writer.c +246 -0
  28. data/ext/libarchive-0.1.1/libarchive.c +1762 -0
  29. data/ext/libarchive-2.8.4/Makefile.in +7076 -0
  30. data/ext/libarchive-2.8.4/build/autoconf/check_stdcall_func.m4 +51 -0
  31. data/ext/libarchive-2.8.4/build/autoconf/compile +143 -0
  32. data/ext/libarchive-2.8.4/build/autoconf/config.guess +1502 -0
  33. data/ext/libarchive-2.8.4/build/autoconf/config.sub +1708 -0
  34. data/ext/libarchive-2.8.4/build/autoconf/depcomp +630 -0
  35. data/ext/libarchive-2.8.4/build/autoconf/install-sh +291 -0
  36. data/ext/libarchive-2.8.4/build/autoconf/la_uid_t.m4 +20 -0
  37. data/ext/libarchive-2.8.4/build/autoconf/ltmain.sh +8406 -0
  38. data/ext/libarchive-2.8.4/build/autoconf/missing +376 -0
  39. data/ext/libarchive-2.8.4/build/pkgconfig/libarchive.pc.in +10 -0
  40. data/ext/libarchive-2.8.4/config.h.in +772 -0
  41. data/ext/libarchive-2.8.4/configure +17916 -0
  42. data/ext/libarchive-2.8.4/libarchive/archive.h +741 -0
  43. data/ext/libarchive-2.8.4/libarchive/archive_check_magic.c +134 -0
  44. data/ext/libarchive-2.8.4/libarchive/archive_crc32.h +66 -0
  45. data/ext/libarchive-2.8.4/libarchive/archive_endian.h +162 -0
  46. data/ext/libarchive-2.8.4/libarchive/archive_entry.c +2202 -0
  47. data/ext/libarchive-2.8.4/libarchive/archive_entry.h +524 -0
  48. data/ext/libarchive-2.8.4/libarchive/archive_entry_copy_bhfi.c +74 -0
  49. data/ext/libarchive-2.8.4/libarchive/archive_entry_copy_stat.c +77 -0
  50. data/ext/libarchive-2.8.4/libarchive/archive_entry_link_resolver.c +405 -0
  51. data/ext/libarchive-2.8.4/libarchive/archive_entry_private.h +184 -0
  52. data/ext/libarchive-2.8.4/libarchive/archive_entry_stat.c +118 -0
  53. data/ext/libarchive-2.8.4/libarchive/archive_entry_strmode.c +87 -0
  54. data/ext/libarchive-2.8.4/libarchive/archive_entry_xattr.c +158 -0
  55. data/ext/libarchive-2.8.4/libarchive/archive_hash.h +281 -0
  56. data/ext/libarchive-2.8.4/libarchive/archive_platform.h +165 -0
  57. data/ext/libarchive-2.8.4/libarchive/archive_private.h +124 -0
  58. data/ext/libarchive-2.8.4/libarchive/archive_read.c +1249 -0
  59. data/ext/libarchive-2.8.4/libarchive/archive_read_data_into_fd.c +93 -0
  60. data/ext/libarchive-2.8.4/libarchive/archive_read_disk.c +198 -0
  61. data/ext/libarchive-2.8.4/libarchive/archive_read_disk_entry_from_file.c +570 -0
  62. data/ext/libarchive-2.8.4/libarchive/archive_read_disk_private.h +62 -0
  63. data/ext/libarchive-2.8.4/libarchive/archive_read_disk_set_standard_lookup.c +303 -0
  64. data/ext/libarchive-2.8.4/libarchive/archive_read_extract.c +182 -0
  65. data/ext/libarchive-2.8.4/libarchive/archive_read_open_fd.c +190 -0
  66. data/ext/libarchive-2.8.4/libarchive/archive_read_open_file.c +165 -0
  67. data/ext/libarchive-2.8.4/libarchive/archive_read_open_filename.c +272 -0
  68. data/ext/libarchive-2.8.4/libarchive/archive_read_open_memory.c +156 -0
  69. data/ext/libarchive-2.8.4/libarchive/archive_read_private.h +199 -0
  70. data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_all.c +60 -0
  71. data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_bzip2.c +353 -0
  72. data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_compress.c +444 -0
  73. data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_gzip.c +465 -0
  74. data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_none.c +40 -0
  75. data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_program.c +459 -0
  76. data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_rpm.c +287 -0
  77. data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_uu.c +627 -0
  78. data/ext/libarchive-2.8.4/libarchive/archive_read_support_compression_xz.c +708 -0
  79. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_all.c +43 -0
  80. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_ar.c +584 -0
  81. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_cpio.c +777 -0
  82. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_empty.c +93 -0
  83. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_iso9660.c +2830 -0
  84. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_mtree.c +1304 -0
  85. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_raw.c +185 -0
  86. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_tar.c +2418 -0
  87. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_xar.c +3151 -0
  88. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_zip.c +903 -0
  89. data/ext/libarchive-2.8.4/libarchive/archive_string.c +453 -0
  90. data/ext/libarchive-2.8.4/libarchive/archive_string.h +148 -0
  91. data/ext/libarchive-2.8.4/libarchive/archive_string_sprintf.c +164 -0
  92. data/ext/libarchive-2.8.4/libarchive/archive_util.c +391 -0
  93. data/ext/libarchive-2.8.4/libarchive/archive_virtual.c +94 -0
  94. data/ext/libarchive-2.8.4/libarchive/archive_windows.c +1236 -0
  95. data/ext/libarchive-2.8.4/libarchive/archive_windows.h +347 -0
  96. data/ext/libarchive-2.8.4/libarchive/archive_write.c +466 -0
  97. data/ext/libarchive-2.8.4/libarchive/archive_write_disk.c +2628 -0
  98. data/ext/libarchive-2.8.4/libarchive/archive_write_disk_private.h +38 -0
  99. data/ext/libarchive-2.8.4/libarchive/archive_write_disk_set_standard_lookup.c +262 -0
  100. data/ext/libarchive-2.8.4/libarchive/archive_write_open_fd.c +141 -0
  101. data/ext/libarchive-2.8.4/libarchive/archive_write_open_file.c +105 -0
  102. data/ext/libarchive-2.8.4/libarchive/archive_write_open_filename.c +162 -0
  103. data/ext/libarchive-2.8.4/libarchive/archive_write_open_memory.c +126 -0
  104. data/ext/libarchive-2.8.4/libarchive/archive_write_private.h +122 -0
  105. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_bzip2.c +408 -0
  106. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_compress.c +492 -0
  107. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_gzip.c +477 -0
  108. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_none.c +257 -0
  109. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_program.c +347 -0
  110. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_xz.c +438 -0
  111. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format.c +72 -0
  112. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_ar.c +550 -0
  113. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_by_name.c +76 -0
  114. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_cpio.c +344 -0
  115. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_cpio_newc.c +295 -0
  116. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_mtree.c +1050 -0
  117. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_pax.c +1386 -0
  118. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_shar.c +626 -0
  119. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_ustar.c +587 -0
  120. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_zip.c +667 -0
  121. data/ext/libarchive-2.8.4/libarchive/config_freebsd.h +154 -0
  122. data/ext/libarchive-2.8.4/libarchive/filter_fork.c +161 -0
  123. data/ext/libarchive-2.8.4/libarchive/filter_fork.h +41 -0
  124. data/ext/libarchive-2.8.4/libarchive/filter_fork_windows.c +113 -0
  125. data/ext/libarchive-static-makefile +80 -0
  126. data/ext/libarchive-static-wrapper-makefile +22 -0
  127. data/ext/zlib-1.2.5/Makefile.in +257 -0
  128. data/ext/zlib-1.2.5/adler32.c +169 -0
  129. data/ext/zlib-1.2.5/compress.c +80 -0
  130. data/ext/zlib-1.2.5/configure +596 -0
  131. data/ext/zlib-1.2.5/crc32.c +442 -0
  132. data/ext/zlib-1.2.5/crc32.h +441 -0
  133. data/ext/zlib-1.2.5/deflate.c +1834 -0
  134. data/ext/zlib-1.2.5/deflate.h +342 -0
  135. data/ext/zlib-1.2.5/example.c +565 -0
  136. data/ext/zlib-1.2.5/gzclose.c +25 -0
  137. data/ext/zlib-1.2.5/gzguts.h +132 -0
  138. data/ext/zlib-1.2.5/gzlib.c +537 -0
  139. data/ext/zlib-1.2.5/gzread.c +653 -0
  140. data/ext/zlib-1.2.5/gzwrite.c +531 -0
  141. data/ext/zlib-1.2.5/infback.c +632 -0
  142. data/ext/zlib-1.2.5/inffast.c +340 -0
  143. data/ext/zlib-1.2.5/inffast.h +11 -0
  144. data/ext/zlib-1.2.5/inffixed.h +94 -0
  145. data/ext/zlib-1.2.5/inflate.c +1480 -0
  146. data/ext/zlib-1.2.5/inflate.h +122 -0
  147. data/ext/zlib-1.2.5/inftrees.c +330 -0
  148. data/ext/zlib-1.2.5/inftrees.h +62 -0
  149. data/ext/zlib-1.2.5/minigzip.c +440 -0
  150. data/ext/zlib-1.2.5/trees.c +1244 -0
  151. data/ext/zlib-1.2.5/trees.h +128 -0
  152. data/ext/zlib-1.2.5/uncompr.c +59 -0
  153. data/ext/zlib-1.2.5/zconf.h +428 -0
  154. data/ext/zlib-1.2.5/zlib.h +1613 -0
  155. data/ext/zlib-1.2.5/zutil.c +318 -0
  156. data/ext/zlib-1.2.5/zutil.h +274 -0
  157. metadata +211 -0
@@ -0,0 +1,128 @@
1
+ /* header created automatically with -DGEN_TREES_H */
2
+
3
+ local const ct_data static_ltree[L_CODES+2] = {
4
+ {{ 12},{ 8}}, {{140},{ 8}}, {{ 76},{ 8}}, {{204},{ 8}}, {{ 44},{ 8}},
5
+ {{172},{ 8}}, {{108},{ 8}}, {{236},{ 8}}, {{ 28},{ 8}}, {{156},{ 8}},
6
+ {{ 92},{ 8}}, {{220},{ 8}}, {{ 60},{ 8}}, {{188},{ 8}}, {{124},{ 8}},
7
+ {{252},{ 8}}, {{ 2},{ 8}}, {{130},{ 8}}, {{ 66},{ 8}}, {{194},{ 8}},
8
+ {{ 34},{ 8}}, {{162},{ 8}}, {{ 98},{ 8}}, {{226},{ 8}}, {{ 18},{ 8}},
9
+ {{146},{ 8}}, {{ 82},{ 8}}, {{210},{ 8}}, {{ 50},{ 8}}, {{178},{ 8}},
10
+ {{114},{ 8}}, {{242},{ 8}}, {{ 10},{ 8}}, {{138},{ 8}}, {{ 74},{ 8}},
11
+ {{202},{ 8}}, {{ 42},{ 8}}, {{170},{ 8}}, {{106},{ 8}}, {{234},{ 8}},
12
+ {{ 26},{ 8}}, {{154},{ 8}}, {{ 90},{ 8}}, {{218},{ 8}}, {{ 58},{ 8}},
13
+ {{186},{ 8}}, {{122},{ 8}}, {{250},{ 8}}, {{ 6},{ 8}}, {{134},{ 8}},
14
+ {{ 70},{ 8}}, {{198},{ 8}}, {{ 38},{ 8}}, {{166},{ 8}}, {{102},{ 8}},
15
+ {{230},{ 8}}, {{ 22},{ 8}}, {{150},{ 8}}, {{ 86},{ 8}}, {{214},{ 8}},
16
+ {{ 54},{ 8}}, {{182},{ 8}}, {{118},{ 8}}, {{246},{ 8}}, {{ 14},{ 8}},
17
+ {{142},{ 8}}, {{ 78},{ 8}}, {{206},{ 8}}, {{ 46},{ 8}}, {{174},{ 8}},
18
+ {{110},{ 8}}, {{238},{ 8}}, {{ 30},{ 8}}, {{158},{ 8}}, {{ 94},{ 8}},
19
+ {{222},{ 8}}, {{ 62},{ 8}}, {{190},{ 8}}, {{126},{ 8}}, {{254},{ 8}},
20
+ {{ 1},{ 8}}, {{129},{ 8}}, {{ 65},{ 8}}, {{193},{ 8}}, {{ 33},{ 8}},
21
+ {{161},{ 8}}, {{ 97},{ 8}}, {{225},{ 8}}, {{ 17},{ 8}}, {{145},{ 8}},
22
+ {{ 81},{ 8}}, {{209},{ 8}}, {{ 49},{ 8}}, {{177},{ 8}}, {{113},{ 8}},
23
+ {{241},{ 8}}, {{ 9},{ 8}}, {{137},{ 8}}, {{ 73},{ 8}}, {{201},{ 8}},
24
+ {{ 41},{ 8}}, {{169},{ 8}}, {{105},{ 8}}, {{233},{ 8}}, {{ 25},{ 8}},
25
+ {{153},{ 8}}, {{ 89},{ 8}}, {{217},{ 8}}, {{ 57},{ 8}}, {{185},{ 8}},
26
+ {{121},{ 8}}, {{249},{ 8}}, {{ 5},{ 8}}, {{133},{ 8}}, {{ 69},{ 8}},
27
+ {{197},{ 8}}, {{ 37},{ 8}}, {{165},{ 8}}, {{101},{ 8}}, {{229},{ 8}},
28
+ {{ 21},{ 8}}, {{149},{ 8}}, {{ 85},{ 8}}, {{213},{ 8}}, {{ 53},{ 8}},
29
+ {{181},{ 8}}, {{117},{ 8}}, {{245},{ 8}}, {{ 13},{ 8}}, {{141},{ 8}},
30
+ {{ 77},{ 8}}, {{205},{ 8}}, {{ 45},{ 8}}, {{173},{ 8}}, {{109},{ 8}},
31
+ {{237},{ 8}}, {{ 29},{ 8}}, {{157},{ 8}}, {{ 93},{ 8}}, {{221},{ 8}},
32
+ {{ 61},{ 8}}, {{189},{ 8}}, {{125},{ 8}}, {{253},{ 8}}, {{ 19},{ 9}},
33
+ {{275},{ 9}}, {{147},{ 9}}, {{403},{ 9}}, {{ 83},{ 9}}, {{339},{ 9}},
34
+ {{211},{ 9}}, {{467},{ 9}}, {{ 51},{ 9}}, {{307},{ 9}}, {{179},{ 9}},
35
+ {{435},{ 9}}, {{115},{ 9}}, {{371},{ 9}}, {{243},{ 9}}, {{499},{ 9}},
36
+ {{ 11},{ 9}}, {{267},{ 9}}, {{139},{ 9}}, {{395},{ 9}}, {{ 75},{ 9}},
37
+ {{331},{ 9}}, {{203},{ 9}}, {{459},{ 9}}, {{ 43},{ 9}}, {{299},{ 9}},
38
+ {{171},{ 9}}, {{427},{ 9}}, {{107},{ 9}}, {{363},{ 9}}, {{235},{ 9}},
39
+ {{491},{ 9}}, {{ 27},{ 9}}, {{283},{ 9}}, {{155},{ 9}}, {{411},{ 9}},
40
+ {{ 91},{ 9}}, {{347},{ 9}}, {{219},{ 9}}, {{475},{ 9}}, {{ 59},{ 9}},
41
+ {{315},{ 9}}, {{187},{ 9}}, {{443},{ 9}}, {{123},{ 9}}, {{379},{ 9}},
42
+ {{251},{ 9}}, {{507},{ 9}}, {{ 7},{ 9}}, {{263},{ 9}}, {{135},{ 9}},
43
+ {{391},{ 9}}, {{ 71},{ 9}}, {{327},{ 9}}, {{199},{ 9}}, {{455},{ 9}},
44
+ {{ 39},{ 9}}, {{295},{ 9}}, {{167},{ 9}}, {{423},{ 9}}, {{103},{ 9}},
45
+ {{359},{ 9}}, {{231},{ 9}}, {{487},{ 9}}, {{ 23},{ 9}}, {{279},{ 9}},
46
+ {{151},{ 9}}, {{407},{ 9}}, {{ 87},{ 9}}, {{343},{ 9}}, {{215},{ 9}},
47
+ {{471},{ 9}}, {{ 55},{ 9}}, {{311},{ 9}}, {{183},{ 9}}, {{439},{ 9}},
48
+ {{119},{ 9}}, {{375},{ 9}}, {{247},{ 9}}, {{503},{ 9}}, {{ 15},{ 9}},
49
+ {{271},{ 9}}, {{143},{ 9}}, {{399},{ 9}}, {{ 79},{ 9}}, {{335},{ 9}},
50
+ {{207},{ 9}}, {{463},{ 9}}, {{ 47},{ 9}}, {{303},{ 9}}, {{175},{ 9}},
51
+ {{431},{ 9}}, {{111},{ 9}}, {{367},{ 9}}, {{239},{ 9}}, {{495},{ 9}},
52
+ {{ 31},{ 9}}, {{287},{ 9}}, {{159},{ 9}}, {{415},{ 9}}, {{ 95},{ 9}},
53
+ {{351},{ 9}}, {{223},{ 9}}, {{479},{ 9}}, {{ 63},{ 9}}, {{319},{ 9}},
54
+ {{191},{ 9}}, {{447},{ 9}}, {{127},{ 9}}, {{383},{ 9}}, {{255},{ 9}},
55
+ {{511},{ 9}}, {{ 0},{ 7}}, {{ 64},{ 7}}, {{ 32},{ 7}}, {{ 96},{ 7}},
56
+ {{ 16},{ 7}}, {{ 80},{ 7}}, {{ 48},{ 7}}, {{112},{ 7}}, {{ 8},{ 7}},
57
+ {{ 72},{ 7}}, {{ 40},{ 7}}, {{104},{ 7}}, {{ 24},{ 7}}, {{ 88},{ 7}},
58
+ {{ 56},{ 7}}, {{120},{ 7}}, {{ 4},{ 7}}, {{ 68},{ 7}}, {{ 36},{ 7}},
59
+ {{100},{ 7}}, {{ 20},{ 7}}, {{ 84},{ 7}}, {{ 52},{ 7}}, {{116},{ 7}},
60
+ {{ 3},{ 8}}, {{131},{ 8}}, {{ 67},{ 8}}, {{195},{ 8}}, {{ 35},{ 8}},
61
+ {{163},{ 8}}, {{ 99},{ 8}}, {{227},{ 8}}
62
+ };
63
+
64
+ local const ct_data static_dtree[D_CODES] = {
65
+ {{ 0},{ 5}}, {{16},{ 5}}, {{ 8},{ 5}}, {{24},{ 5}}, {{ 4},{ 5}},
66
+ {{20},{ 5}}, {{12},{ 5}}, {{28},{ 5}}, {{ 2},{ 5}}, {{18},{ 5}},
67
+ {{10},{ 5}}, {{26},{ 5}}, {{ 6},{ 5}}, {{22},{ 5}}, {{14},{ 5}},
68
+ {{30},{ 5}}, {{ 1},{ 5}}, {{17},{ 5}}, {{ 9},{ 5}}, {{25},{ 5}},
69
+ {{ 5},{ 5}}, {{21},{ 5}}, {{13},{ 5}}, {{29},{ 5}}, {{ 3},{ 5}},
70
+ {{19},{ 5}}, {{11},{ 5}}, {{27},{ 5}}, {{ 7},{ 5}}, {{23},{ 5}}
71
+ };
72
+
73
+ const uch ZLIB_INTERNAL _dist_code[DIST_CODE_LEN] = {
74
+ 0, 1, 2, 3, 4, 4, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8,
75
+ 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10,
76
+ 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
77
+ 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
78
+ 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13,
79
+ 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
80
+ 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14,
81
+ 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14,
82
+ 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14,
83
+ 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15,
84
+ 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
85
+ 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
86
+ 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 0, 0, 16, 17,
87
+ 18, 18, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22,
88
+ 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24,
89
+ 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
90
+ 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26,
91
+ 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27,
92
+ 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27,
93
+ 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
94
+ 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
95
+ 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
96
+ 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
97
+ 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
98
+ 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
99
+ 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29
100
+ };
101
+
102
+ const uch ZLIB_INTERNAL _length_code[MAX_MATCH-MIN_MATCH+1]= {
103
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12,
104
+ 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16,
105
+ 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19,
106
+ 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20,
107
+ 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22,
108
+ 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23,
109
+ 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24,
110
+ 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24,
111
+ 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
112
+ 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26,
113
+ 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26,
114
+ 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27,
115
+ 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28
116
+ };
117
+
118
+ local const int base_length[LENGTH_CODES] = {
119
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 20, 24, 28, 32, 40, 48, 56,
120
+ 64, 80, 96, 112, 128, 160, 192, 224, 0
121
+ };
122
+
123
+ local const int base_dist[D_CODES] = {
124
+ 0, 1, 2, 3, 4, 6, 8, 12, 16, 24,
125
+ 32, 48, 64, 96, 128, 192, 256, 384, 512, 768,
126
+ 1024, 1536, 2048, 3072, 4096, 6144, 8192, 12288, 16384, 24576
127
+ };
128
+
@@ -0,0 +1,59 @@
1
+ /* uncompr.c -- decompress a memory buffer
2
+ * Copyright (C) 1995-2003, 2010 Jean-loup Gailly.
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
14
+ size of the destination buffer, which must be large enough to hold the
15
+ entire uncompressed data. (The size of the uncompressed data must have
16
+ been saved previously by the compressor and transmitted to the decompressor
17
+ by some mechanism outside the scope of this compression library.)
18
+ Upon exit, destLen is the actual size of the compressed buffer.
19
+
20
+ uncompress returns Z_OK if success, Z_MEM_ERROR if there was not
21
+ enough memory, Z_BUF_ERROR if there was not enough room in the output
22
+ buffer, or Z_DATA_ERROR if the input data was corrupted.
23
+ */
24
+ int ZEXPORT uncompress (dest, destLen, source, sourceLen)
25
+ Bytef *dest;
26
+ uLongf *destLen;
27
+ const Bytef *source;
28
+ uLong sourceLen;
29
+ {
30
+ z_stream stream;
31
+ int err;
32
+
33
+ stream.next_in = (Bytef*)source;
34
+ stream.avail_in = (uInt)sourceLen;
35
+ /* Check for source > 64K on 16-bit machine: */
36
+ if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR;
37
+
38
+ stream.next_out = dest;
39
+ stream.avail_out = (uInt)*destLen;
40
+ if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR;
41
+
42
+ stream.zalloc = (alloc_func)0;
43
+ stream.zfree = (free_func)0;
44
+
45
+ err = inflateInit(&stream);
46
+ if (err != Z_OK) return err;
47
+
48
+ err = inflate(&stream, Z_FINISH);
49
+ if (err != Z_STREAM_END) {
50
+ inflateEnd(&stream);
51
+ if (err == Z_NEED_DICT || (err == Z_BUF_ERROR && stream.avail_in == 0))
52
+ return Z_DATA_ERROR;
53
+ return err;
54
+ }
55
+ *destLen = stream.total_out;
56
+
57
+ err = inflateEnd(&stream);
58
+ return err;
59
+ }
@@ -0,0 +1,428 @@
1
+ /* zconf.h -- configuration of the zlib compression library
2
+ * Copyright (C) 1995-2010 Jean-loup Gailly.
3
+ * For conditions of distribution and use, see copyright notice in zlib.h
4
+ */
5
+
6
+ /* @(#) $Id$ */
7
+
8
+ #ifndef ZCONF_H
9
+ #define ZCONF_H
10
+
11
+ /*
12
+ * If you *really* need a unique prefix for all types and library functions,
13
+ * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
14
+ * Even better than compiling with -DZ_PREFIX would be to use configure to set
15
+ * this permanently in zconf.h using "./configure --zprefix".
16
+ */
17
+ #ifdef Z_PREFIX /* may be set to #if 1 by ./configure */
18
+
19
+ /* all linked symbols */
20
+ # define _dist_code z__dist_code
21
+ # define _length_code z__length_code
22
+ # define _tr_align z__tr_align
23
+ # define _tr_flush_block z__tr_flush_block
24
+ # define _tr_init z__tr_init
25
+ # define _tr_stored_block z__tr_stored_block
26
+ # define _tr_tally z__tr_tally
27
+ # define adler32 z_adler32
28
+ # define adler32_combine z_adler32_combine
29
+ # define adler32_combine64 z_adler32_combine64
30
+ # define compress z_compress
31
+ # define compress2 z_compress2
32
+ # define compressBound z_compressBound
33
+ # define crc32 z_crc32
34
+ # define crc32_combine z_crc32_combine
35
+ # define crc32_combine64 z_crc32_combine64
36
+ # define deflate z_deflate
37
+ # define deflateBound z_deflateBound
38
+ # define deflateCopy z_deflateCopy
39
+ # define deflateEnd z_deflateEnd
40
+ # define deflateInit2_ z_deflateInit2_
41
+ # define deflateInit_ z_deflateInit_
42
+ # define deflateParams z_deflateParams
43
+ # define deflatePrime z_deflatePrime
44
+ # define deflateReset z_deflateReset
45
+ # define deflateSetDictionary z_deflateSetDictionary
46
+ # define deflateSetHeader z_deflateSetHeader
47
+ # define deflateTune z_deflateTune
48
+ # define deflate_copyright z_deflate_copyright
49
+ # 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
81
+ # define inflate z_inflate
82
+ # define inflateBack z_inflateBack
83
+ # define inflateBackEnd z_inflateBackEnd
84
+ # define inflateBackInit_ z_inflateBackInit_
85
+ # define inflateCopy z_inflateCopy
86
+ # define inflateEnd z_inflateEnd
87
+ # define inflateGetHeader z_inflateGetHeader
88
+ # define inflateInit2_ z_inflateInit2_
89
+ # define inflateInit_ z_inflateInit_
90
+ # define inflateMark z_inflateMark
91
+ # define inflatePrime z_inflatePrime
92
+ # define inflateReset z_inflateReset
93
+ # define inflateReset2 z_inflateReset2
94
+ # define inflateSetDictionary z_inflateSetDictionary
95
+ # define inflateSync z_inflateSync
96
+ # define inflateSyncPoint z_inflateSyncPoint
97
+ # define inflateUndermine z_inflateUndermine
98
+ # define inflate_copyright z_inflate_copyright
99
+ # define inflate_fast z_inflate_fast
100
+ # define inflate_table z_inflate_table
101
+ # define uncompress z_uncompress
102
+ # define zError z_zError
103
+ # define zcalloc z_zcalloc
104
+ # define zcfree z_zcfree
105
+ # define zlibCompileFlags z_zlibCompileFlags
106
+ # define zlibVersion z_zlibVersion
107
+
108
+ /* all zlib typedefs in zlib.h and zconf.h */
109
+ # define Byte z_Byte
110
+ # define Bytef z_Bytef
111
+ # define alloc_func z_alloc_func
112
+ # define charf z_charf
113
+ # define free_func z_free_func
114
+ # define gzFile z_gzFile
115
+ # define gz_header z_gz_header
116
+ # define gz_headerp z_gz_headerp
117
+ # define in_func z_in_func
118
+ # define intf z_intf
119
+ # define out_func z_out_func
120
+ # define uInt z_uInt
121
+ # define uIntf z_uIntf
122
+ # define uLong z_uLong
123
+ # define uLongf z_uLongf
124
+ # define voidp z_voidp
125
+ # define voidpc z_voidpc
126
+ # define voidpf z_voidpf
127
+
128
+ /* all zlib structs in zlib.h and zconf.h */
129
+ # define gz_header_s z_gz_header_s
130
+ # define internal_state z_internal_state
131
+
132
+ #endif
133
+
134
+ #if defined(__MSDOS__) && !defined(MSDOS)
135
+ # define MSDOS
136
+ #endif
137
+ #if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
138
+ # define OS2
139
+ #endif
140
+ #if defined(_WINDOWS) && !defined(WINDOWS)
141
+ # define WINDOWS
142
+ #endif
143
+ #if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
144
+ # ifndef WIN32
145
+ # define WIN32
146
+ # endif
147
+ #endif
148
+ #if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
149
+ # if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
150
+ # ifndef SYS16BIT
151
+ # define SYS16BIT
152
+ # endif
153
+ # endif
154
+ #endif
155
+
156
+ /*
157
+ * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
158
+ * than 64k bytes at a time (needed on systems with 16-bit int).
159
+ */
160
+ #ifdef SYS16BIT
161
+ # define MAXSEG_64K
162
+ #endif
163
+ #ifdef MSDOS
164
+ # define UNALIGNED_OK
165
+ #endif
166
+
167
+ #ifdef __STDC_VERSION__
168
+ # ifndef STDC
169
+ # define STDC
170
+ # endif
171
+ # if __STDC_VERSION__ >= 199901L
172
+ # ifndef STDC99
173
+ # define STDC99
174
+ # endif
175
+ # endif
176
+ #endif
177
+ #if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
178
+ # define STDC
179
+ #endif
180
+ #if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
181
+ # define STDC
182
+ #endif
183
+ #if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
184
+ # define STDC
185
+ #endif
186
+ #if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
187
+ # define STDC
188
+ #endif
189
+
190
+ #if defined(__OS400__) && !defined(STDC) /* iSeries (formerly AS/400). */
191
+ # define STDC
192
+ #endif
193
+
194
+ #ifndef STDC
195
+ # ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
196
+ # define const /* note: need a more gentle solution here */
197
+ # endif
198
+ #endif
199
+
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
203
+ #endif
204
+
205
+ /* Maximum value for memLevel in deflateInit2 */
206
+ #ifndef MAX_MEM_LEVEL
207
+ # ifdef MAXSEG_64K
208
+ # define MAX_MEM_LEVEL 8
209
+ # else
210
+ # define MAX_MEM_LEVEL 9
211
+ # endif
212
+ #endif
213
+
214
+ /* Maximum value for windowBits in deflateInit2 and inflateInit2.
215
+ * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
216
+ * created by gzip. (Files created by minigzip can still be extracted by
217
+ * gzip.)
218
+ */
219
+ #ifndef MAX_WBITS
220
+ # define MAX_WBITS 15 /* 32K LZ77 window */
221
+ #endif
222
+
223
+ /* The memory requirements for deflate are (in bytes):
224
+ (1 << (windowBits+2)) + (1 << (memLevel+9))
225
+ that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values)
226
+ plus a few kilobytes for small objects. For example, if you want to reduce
227
+ the default memory requirements from 256K to 128K, compile with
228
+ make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
229
+ Of course this will generally degrade compression (there's no free lunch).
230
+
231
+ The memory requirements for inflate are (in bytes) 1 << windowBits
232
+ that is, 32K for windowBits=15 (default value) plus a few kilobytes
233
+ for small objects.
234
+ */
235
+
236
+ /* Type declarations */
237
+
238
+ #ifndef OF /* function prototypes */
239
+ # ifdef STDC
240
+ # define OF(args) args
241
+ # else
242
+ # define OF(args) ()
243
+ # endif
244
+ #endif
245
+
246
+ /* The following definitions for FAR are needed only for MSDOS mixed
247
+ * model programming (small or medium model with some far allocations).
248
+ * This was tested only with MSC; for other MSDOS compilers you may have
249
+ * to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
250
+ * just define FAR to be empty.
251
+ */
252
+ #ifdef SYS16BIT
253
+ # if defined(M_I86SM) || defined(M_I86MM)
254
+ /* MSC small or medium model */
255
+ # define SMALL_MEDIUM
256
+ # ifdef _MSC_VER
257
+ # define FAR _far
258
+ # else
259
+ # define FAR far
260
+ # endif
261
+ # endif
262
+ # if (defined(__SMALL__) || defined(__MEDIUM__))
263
+ /* Turbo C small or medium model */
264
+ # define SMALL_MEDIUM
265
+ # ifdef __BORLANDC__
266
+ # define FAR _far
267
+ # else
268
+ # define FAR far
269
+ # endif
270
+ # endif
271
+ #endif
272
+
273
+ #if defined(WINDOWS) || defined(WIN32)
274
+ /* If building or using zlib as a DLL, define ZLIB_DLL.
275
+ * This is not mandatory, but it offers a little performance increase.
276
+ */
277
+ # ifdef ZLIB_DLL
278
+ # if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
279
+ # ifdef ZLIB_INTERNAL
280
+ # define ZEXTERN extern __declspec(dllexport)
281
+ # else
282
+ # define ZEXTERN extern __declspec(dllimport)
283
+ # endif
284
+ # endif
285
+ # endif /* ZLIB_DLL */
286
+ /* If building or using zlib with the WINAPI/WINAPIV calling convention,
287
+ * define ZLIB_WINAPI.
288
+ * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
289
+ */
290
+ # ifdef ZLIB_WINAPI
291
+ # ifdef FAR
292
+ # undef FAR
293
+ # endif
294
+ # include <windows.h>
295
+ /* No need for _export, use ZLIB.DEF instead. */
296
+ /* For complete Windows compatibility, use WINAPI, not __stdcall. */
297
+ # define ZEXPORT WINAPI
298
+ # ifdef WIN32
299
+ # define ZEXPORTVA WINAPIV
300
+ # else
301
+ # define ZEXPORTVA FAR CDECL
302
+ # endif
303
+ # endif
304
+ #endif
305
+
306
+ #if defined (__BEOS__)
307
+ # ifdef ZLIB_DLL
308
+ # ifdef ZLIB_INTERNAL
309
+ # define ZEXPORT __declspec(dllexport)
310
+ # define ZEXPORTVA __declspec(dllexport)
311
+ # else
312
+ # define ZEXPORT __declspec(dllimport)
313
+ # define ZEXPORTVA __declspec(dllimport)
314
+ # endif
315
+ # endif
316
+ #endif
317
+
318
+ #ifndef ZEXTERN
319
+ # define ZEXTERN extern
320
+ #endif
321
+ #ifndef ZEXPORT
322
+ # define ZEXPORT
323
+ #endif
324
+ #ifndef ZEXPORTVA
325
+ # define ZEXPORTVA
326
+ #endif
327
+
328
+ #ifndef FAR
329
+ # define FAR
330
+ #endif
331
+
332
+ #if !defined(__MACTYPES__)
333
+ typedef unsigned char Byte; /* 8 bits */
334
+ #endif
335
+ typedef unsigned int uInt; /* 16 bits or more */
336
+ typedef unsigned long uLong; /* 32 bits or more */
337
+
338
+ #ifdef SMALL_MEDIUM
339
+ /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
340
+ # define Bytef Byte FAR
341
+ #else
342
+ typedef Byte FAR Bytef;
343
+ #endif
344
+ typedef char FAR charf;
345
+ typedef int FAR intf;
346
+ typedef uInt FAR uIntf;
347
+ typedef uLong FAR uLongf;
348
+
349
+ #ifdef STDC
350
+ typedef void const *voidpc;
351
+ typedef void FAR *voidpf;
352
+ typedef void *voidp;
353
+ #else
354
+ typedef Byte const *voidpc;
355
+ typedef Byte FAR *voidpf;
356
+ typedef Byte *voidp;
357
+ #endif
358
+
359
+ #ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */
360
+ # define Z_HAVE_UNISTD_H
361
+ #endif
362
+
363
+ #ifdef STDC
364
+ # include <sys/types.h> /* for off_t */
365
+ #endif
366
+
367
+ /* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
368
+ * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
369
+ * though the former does not conform to the LFS document), but considering
370
+ * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
371
+ * equivalently requesting no 64-bit operations
372
+ */
373
+ #if -_LARGEFILE64_SOURCE - -1 == 1
374
+ # undef _LARGEFILE64_SOURCE
375
+ #endif
376
+
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 */
381
+ # endif
382
+ # ifndef z_off_t
383
+ # define z_off_t off_t
384
+ # endif
385
+ #endif
386
+
387
+ #ifndef SEEK_SET
388
+ # define SEEK_SET 0 /* Seek from beginning of file. */
389
+ # define SEEK_CUR 1 /* Seek from current position. */
390
+ # define SEEK_END 2 /* Set file pointer to EOF plus "offset" */
391
+ #endif
392
+
393
+ #ifndef z_off_t
394
+ # define z_off_t long
395
+ #endif
396
+
397
+ #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
398
+ # define z_off64_t off64_t
399
+ #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
409
+ #endif
410
+
411
+ /* MVS linker does not support external names larger than 8 bytes */
412
+ #if defined(__MVS__)
413
+ #pragma map(deflateInit_,"DEIN")
414
+ #pragma map(deflateInit2_,"DEIN2")
415
+ #pragma map(deflateEnd,"DEEND")
416
+ #pragma map(deflateBound,"DEBND")
417
+ #pragma map(inflateInit_,"ININ")
418
+ #pragma map(inflateInit2_,"ININ2")
419
+ #pragma map(inflateEnd,"INEND")
420
+ #pragma map(inflateSync,"INSY")
421
+ #pragma map(inflateSetDictionary,"INSEDI")
422
+ #pragma map(compressBound,"CMBND")
423
+ #pragma map(inflate_table,"INTABL")
424
+ #pragma map(inflate_fast,"INFA")
425
+ #pragma map(inflate_copyright,"INCOPY")
426
+ #endif
427
+
428
+ #endif /* ZCONF_H */