node-liblzma 1.0.4 → 1.1.4

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 (880) hide show
  1. package/History.md +5 -0
  2. package/README.md +65 -37
  3. package/binding.gyp +671 -43
  4. package/package.json +39 -24
  5. package/prebuilds/linux-x64/node_lzma.node +0 -0
  6. package/prebuilds/mac-x64/node_lzma.node +0 -0
  7. package/prebuilds/win-x64/node_lzma.node +0 -0
  8. package/scripts/download_extract_deps.py +29 -0
  9. package/scripts/prebuildify.py +13 -0
  10. package/scripts/walk_sources.py +7 -0
  11. package/src/bindings/module.cpp +86 -86
  12. package/src/bindings/node-liblzma.cpp +292 -273
  13. package/src/bindings/node-liblzma.hpp +62 -90
  14. package/src/lzma.coffee +25 -18
  15. package/.npmignore +0 -1
  16. package/.travis.yml +0 -35
  17. package/build/Makefile +0 -329
  18. package/build/Release/.deps/Release/node-liblzma.node.d +0 -1
  19. package/build/Release/.deps/Release/obj.target/action_after_build.stamp.d +0 -1
  20. package/build/Release/.deps/Release/obj.target/node-liblzma/src/bindings/module.o.d +0 -89
  21. package/build/Release/.deps/Release/obj.target/node-liblzma/src/bindings/node-liblzma.o.d +0 -89
  22. package/build/Release/.deps/Release/obj.target/node-liblzma.node.d +0 -1
  23. package/build/Release/.deps/home/o2/dev/node-liblzma/build/node-liblzma.node.d +0 -1
  24. package/build/Release/node-liblzma.node +0 -0
  25. package/build/Release/obj.target/action_after_build.stamp +0 -0
  26. package/build/Release/obj.target/node-liblzma/src/bindings/module.o +0 -0
  27. package/build/Release/obj.target/node-liblzma/src/bindings/node-liblzma.o +0 -0
  28. package/build/Release/obj.target/node-liblzma.node +0 -0
  29. package/build/action_after_build.target.mk +0 -32
  30. package/build/binding.Makefile +0 -6
  31. package/build/config.gypi +0 -143
  32. package/build/node-liblzma.node +0 -0
  33. package/build/node-liblzma.target.mk +0 -144
  34. package/build.yml +0 -65
  35. package/deps/xz/ABOUT-NLS +0 -1327
  36. package/deps/xz/AUTHORS +0 -27
  37. package/deps/xz/COPYING +0 -65
  38. package/deps/xz/COPYING.GPLv2 +0 -339
  39. package/deps/xz/COPYING.GPLv3 +0 -674
  40. package/deps/xz/COPYING.LGPLv2.1 +0 -502
  41. package/deps/xz/ChangeLog +0 -14953
  42. package/deps/xz/Doxyfile +0 -1234
  43. package/deps/xz/Doxyfile.in +0 -1234
  44. package/deps/xz/INSTALL +0 -554
  45. package/deps/xz/INSTALL.generic +0 -365
  46. package/deps/xz/Makefile +0 -1067
  47. package/deps/xz/Makefile.am +0 -109
  48. package/deps/xz/Makefile.in +0 -1067
  49. package/deps/xz/NEWS +0 -505
  50. package/deps/xz/PACKAGERS +0 -231
  51. package/deps/xz/README +0 -308
  52. package/deps/xz/THANKS +0 -116
  53. package/deps/xz/TODO +0 -111
  54. package/deps/xz/aclocal.m4 +0 -1225
  55. package/deps/xz/autogen.sh +0 -22
  56. package/deps/xz/autom4te.cache/output.0 +0 -21751
  57. package/deps/xz/autom4te.cache/output.1 +0 -21751
  58. package/deps/xz/autom4te.cache/requests +0 -415
  59. package/deps/xz/autom4te.cache/traces.0 +0 -6996
  60. package/deps/xz/autom4te.cache/traces.1 +0 -1783
  61. package/deps/xz/build-aux/compile +0 -347
  62. package/deps/xz/build-aux/config.guess +0 -1558
  63. package/deps/xz/build-aux/config.rpath +0 -672
  64. package/deps/xz/build-aux/config.sub +0 -1791
  65. package/deps/xz/build-aux/depcomp +0 -791
  66. package/deps/xz/build-aux/install-sh +0 -527
  67. package/deps/xz/build-aux/ltmain.sh +0 -9661
  68. package/deps/xz/build-aux/manconv.sh +0 -58
  69. package/deps/xz/build-aux/missing +0 -215
  70. package/deps/xz/build-aux/version.sh +0 -24
  71. package/deps/xz/config.h +0 -487
  72. package/deps/xz/config.h.in +0 -486
  73. package/deps/xz/config.h.in~ +0 -485
  74. package/deps/xz/config.log +0 -5446
  75. package/deps/xz/config.status +0 -2587
  76. package/deps/xz/configure +0 -21751
  77. package/deps/xz/configure.ac +0 -842
  78. package/deps/xz/debug/.deps/crc32.Po +0 -1
  79. package/deps/xz/debug/.deps/full_flush.Po +0 -1
  80. package/deps/xz/debug/.deps/hex2bin.Po +0 -1
  81. package/deps/xz/debug/.deps/known_sizes.Po +0 -1
  82. package/deps/xz/debug/.deps/memusage.Po +0 -1
  83. package/deps/xz/debug/.deps/repeat.Po +0 -1
  84. package/deps/xz/debug/.deps/sync_flush.Po +0 -1
  85. package/deps/xz/debug/Makefile +0 -691
  86. package/deps/xz/debug/Makefile.am +0 -30
  87. package/deps/xz/debug/Makefile.in +0 -691
  88. package/deps/xz/debug/README +0 -17
  89. package/deps/xz/debug/crc32.c +0 -39
  90. package/deps/xz/debug/full_flush.c +0 -103
  91. package/deps/xz/debug/hex2bin.c +0 -53
  92. package/deps/xz/debug/known_sizes.c +0 -129
  93. package/deps/xz/debug/memusage.c +0 -51
  94. package/deps/xz/debug/repeat.c +0 -36
  95. package/deps/xz/debug/sync_flush.c +0 -125
  96. package/deps/xz/debug/translation.bash +0 -100
  97. package/deps/xz/doc/examples/00_README.txt +0 -31
  98. package/deps/xz/doc/examples/01_compress_easy.c +0 -297
  99. package/deps/xz/doc/examples/02_decompress.c +0 -287
  100. package/deps/xz/doc/examples/03_compress_custom.c +0 -193
  101. package/deps/xz/doc/examples/04_compress_easy_mt.c +0 -206
  102. package/deps/xz/doc/examples/Makefile +0 -24
  103. package/deps/xz/doc/examples_old/xz_pipe_comp.c +0 -127
  104. package/deps/xz/doc/examples_old/xz_pipe_decomp.c +0 -123
  105. package/deps/xz/doc/faq.txt +0 -224
  106. package/deps/xz/doc/history.txt +0 -150
  107. package/deps/xz/doc/lzma-file-format.txt +0 -166
  108. package/deps/xz/doc/man/pdf-a4/lzmainfo-a4.pdf +0 -0
  109. package/deps/xz/doc/man/pdf-a4/xz-a4.pdf +0 -0
  110. package/deps/xz/doc/man/pdf-a4/xzdec-a4.pdf +0 -0
  111. package/deps/xz/doc/man/pdf-a4/xzdiff-a4.pdf +0 -0
  112. package/deps/xz/doc/man/pdf-a4/xzgrep-a4.pdf +0 -0
  113. package/deps/xz/doc/man/pdf-a4/xzless-a4.pdf +0 -0
  114. package/deps/xz/doc/man/pdf-a4/xzmore-a4.pdf +0 -0
  115. package/deps/xz/doc/man/pdf-letter/lzmainfo-letter.pdf +0 -0
  116. package/deps/xz/doc/man/pdf-letter/xz-letter.pdf +0 -0
  117. package/deps/xz/doc/man/pdf-letter/xzdec-letter.pdf +0 -0
  118. package/deps/xz/doc/man/pdf-letter/xzdiff-letter.pdf +0 -0
  119. package/deps/xz/doc/man/pdf-letter/xzgrep-letter.pdf +0 -0
  120. package/deps/xz/doc/man/pdf-letter/xzless-letter.pdf +0 -0
  121. package/deps/xz/doc/man/pdf-letter/xzmore-letter.pdf +0 -0
  122. package/deps/xz/doc/man/txt/lzmainfo.txt +0 -40
  123. package/deps/xz/doc/man/txt/xz.txt +0 -1483
  124. package/deps/xz/doc/man/txt/xzdec.txt +0 -80
  125. package/deps/xz/doc/man/txt/xzdiff.txt +0 -36
  126. package/deps/xz/doc/man/txt/xzgrep.txt +0 -39
  127. package/deps/xz/doc/man/txt/xzless.txt +0 -39
  128. package/deps/xz/doc/man/txt/xzmore.txt +0 -34
  129. package/deps/xz/doc/xz-file-format.txt +0 -1150
  130. package/deps/xz/dos/INSTALL.txt +0 -79
  131. package/deps/xz/dos/Makefile +0 -147
  132. package/deps/xz/dos/README.txt +0 -123
  133. package/deps/xz/dos/config.h +0 -130
  134. package/deps/xz/extra/7z2lzma/7z2lzma.bash +0 -115
  135. package/deps/xz/extra/scanlzma/scanlzma.c +0 -84
  136. package/deps/xz/include/lzma/base.h +0 -654
  137. package/deps/xz/include/lzma/bcj.h +0 -90
  138. package/deps/xz/include/lzma/block.h +0 -581
  139. package/deps/xz/include/lzma/check.h +0 -150
  140. package/deps/xz/include/lzma/container.h +0 -619
  141. package/deps/xz/include/lzma/delta.h +0 -77
  142. package/deps/xz/include/lzma/filter.h +0 -425
  143. package/deps/xz/include/lzma/hardware.h +0 -64
  144. package/deps/xz/include/lzma/index.h +0 -682
  145. package/deps/xz/include/lzma/index_hash.h +0 -107
  146. package/deps/xz/include/lzma/lzma12.h +0 -420
  147. package/deps/xz/include/lzma/stream_flags.h +0 -223
  148. package/deps/xz/include/lzma/version.h +0 -121
  149. package/deps/xz/include/lzma/vli.h +0 -166
  150. package/deps/xz/include/lzma.h +0 -321
  151. package/deps/xz/lib/.deps/getopt.Po +0 -1
  152. package/deps/xz/lib/.deps/getopt1.Po +0 -1
  153. package/deps/xz/lib/Makefile +0 -566
  154. package/deps/xz/lib/Makefile.am +0 -32
  155. package/deps/xz/lib/Makefile.in +0 -566
  156. package/deps/xz/lib/getopt.c +0 -1197
  157. package/deps/xz/lib/getopt.in.h +0 -226
  158. package/deps/xz/lib/getopt1.c +0 -171
  159. package/deps/xz/lib/getopt_int.h +0 -131
  160. package/deps/xz/lib/liblzma.a +0 -0
  161. package/deps/xz/lib/liblzma.la +0 -41
  162. package/deps/xz/lib/pkgconfig/liblzma.pc +0 -19
  163. package/deps/xz/libtool +0 -10221
  164. package/deps/xz/m4/ax_pthread.m4 +0 -332
  165. package/deps/xz/m4/codeset.m4 +0 -21
  166. package/deps/xz/m4/fcntl-o.m4 +0 -81
  167. package/deps/xz/m4/getopt.m4 +0 -71
  168. package/deps/xz/m4/gettext.m4 +0 -383
  169. package/deps/xz/m4/glibc2.m4 +0 -30
  170. package/deps/xz/m4/glibc21.m4 +0 -30
  171. package/deps/xz/m4/iconv.m4 +0 -199
  172. package/deps/xz/m4/intdiv0.m4 +0 -84
  173. package/deps/xz/m4/intl.m4 +0 -294
  174. package/deps/xz/m4/intldir.m4 +0 -19
  175. package/deps/xz/m4/intlmacosx.m4 +0 -51
  176. package/deps/xz/m4/intmax.m4 +0 -33
  177. package/deps/xz/m4/inttypes-pri.m4 +0 -36
  178. package/deps/xz/m4/inttypes_h.m4 +0 -26
  179. package/deps/xz/m4/lcmessage.m4 +0 -31
  180. package/deps/xz/m4/lib-ld.m4 +0 -110
  181. package/deps/xz/m4/lib-link.m4 +0 -774
  182. package/deps/xz/m4/lib-prefix.m4 +0 -224
  183. package/deps/xz/m4/libtool.m4 +0 -7997
  184. package/deps/xz/m4/lock.m4 +0 -37
  185. package/deps/xz/m4/longlong.m4 +0 -106
  186. package/deps/xz/m4/ltoptions.m4 +0 -384
  187. package/deps/xz/m4/ltsugar.m4 +0 -123
  188. package/deps/xz/m4/ltversion.m4 +0 -23
  189. package/deps/xz/m4/lt~obsolete.m4 +0 -98
  190. package/deps/xz/m4/nls.m4 +0 -32
  191. package/deps/xz/m4/po.m4 +0 -449
  192. package/deps/xz/m4/posix-shell.m4 +0 -63
  193. package/deps/xz/m4/printf-posix.m4 +0 -45
  194. package/deps/xz/m4/progtest.m4 +0 -92
  195. package/deps/xz/m4/size_max.m4 +0 -75
  196. package/deps/xz/m4/stdint_h.m4 +0 -26
  197. package/deps/xz/m4/threadlib.m4 +0 -347
  198. package/deps/xz/m4/tuklib_common.m4 +0 -22
  199. package/deps/xz/m4/tuklib_cpucores.m4 +0 -148
  200. package/deps/xz/m4/tuklib_integer.m4 +0 -74
  201. package/deps/xz/m4/tuklib_mbstr.m4 +0 -30
  202. package/deps/xz/m4/tuklib_physmem.m4 +0 -212
  203. package/deps/xz/m4/tuklib_progname.m4 +0 -25
  204. package/deps/xz/m4/uintmax_t.m4 +0 -30
  205. package/deps/xz/m4/visibility.m4 +0 -74
  206. package/deps/xz/m4/wchar_t.m4 +0 -20
  207. package/deps/xz/m4/wint_t.m4 +0 -28
  208. package/deps/xz/m4/xsize.m4 +0 -13
  209. package/deps/xz/macosx/build.sh +0 -113
  210. package/deps/xz/po/LINGUAS +0 -6
  211. package/deps/xz/po/Makefile +0 -549
  212. package/deps/xz/po/Makefile.in +0 -444
  213. package/deps/xz/po/Makefile.in.in +0 -444
  214. package/deps/xz/po/Makevars +0 -46
  215. package/deps/xz/po/Makevars.template +0 -41
  216. package/deps/xz/po/POTFILES +0 -12
  217. package/deps/xz/po/POTFILES.in +0 -13
  218. package/deps/xz/po/Rules-quot +0 -47
  219. package/deps/xz/po/boldquot.sed +0 -10
  220. package/deps/xz/po/cs.gmo +0 -0
  221. package/deps/xz/po/cs.po +0 -989
  222. package/deps/xz/po/de.gmo +0 -0
  223. package/deps/xz/po/de.po +0 -990
  224. package/deps/xz/po/en@boldquot.header +0 -25
  225. package/deps/xz/po/en@quot.header +0 -22
  226. package/deps/xz/po/fr.gmo +0 -0
  227. package/deps/xz/po/fr.po +0 -974
  228. package/deps/xz/po/insert-header.sin +0 -23
  229. package/deps/xz/po/it.gmo +0 -0
  230. package/deps/xz/po/it.po +0 -975
  231. package/deps/xz/po/pl.gmo +0 -0
  232. package/deps/xz/po/pl.po +0 -964
  233. package/deps/xz/po/quot.sed +0 -6
  234. package/deps/xz/po/remove-potcdate.sin +0 -19
  235. package/deps/xz/po/stamp-po +0 -1
  236. package/deps/xz/po/vi.gmo +0 -0
  237. package/deps/xz/po/vi.po +0 -970
  238. package/deps/xz/po/xz.pot +0 -854
  239. package/deps/xz/share/doc/xz/AUTHORS +0 -27
  240. package/deps/xz/share/doc/xz/COPYING +0 -65
  241. package/deps/xz/share/doc/xz/COPYING.GPLv2 +0 -339
  242. package/deps/xz/share/doc/xz/NEWS +0 -505
  243. package/deps/xz/share/doc/xz/README +0 -308
  244. package/deps/xz/share/doc/xz/THANKS +0 -116
  245. package/deps/xz/share/doc/xz/TODO +0 -111
  246. package/deps/xz/share/doc/xz/examples/00_README.txt +0 -31
  247. package/deps/xz/share/doc/xz/examples/01_compress_easy.c +0 -297
  248. package/deps/xz/share/doc/xz/examples/02_decompress.c +0 -287
  249. package/deps/xz/share/doc/xz/examples/03_compress_custom.c +0 -193
  250. package/deps/xz/share/doc/xz/examples/04_compress_easy_mt.c +0 -206
  251. package/deps/xz/share/doc/xz/examples/Makefile +0 -24
  252. package/deps/xz/share/doc/xz/examples_old/xz_pipe_comp.c +0 -127
  253. package/deps/xz/share/doc/xz/examples_old/xz_pipe_decomp.c +0 -123
  254. package/deps/xz/share/doc/xz/faq.txt +0 -224
  255. package/deps/xz/share/doc/xz/history.txt +0 -150
  256. package/deps/xz/share/doc/xz/lzma-file-format.txt +0 -166
  257. package/deps/xz/share/doc/xz/xz-file-format.txt +0 -1150
  258. package/deps/xz/share/locale/cs/LC_MESSAGES/xz.mo +0 -0
  259. package/deps/xz/share/locale/de/LC_MESSAGES/xz.mo +0 -0
  260. package/deps/xz/share/locale/fr/LC_MESSAGES/xz.mo +0 -0
  261. package/deps/xz/share/locale/it/LC_MESSAGES/xz.mo +0 -0
  262. package/deps/xz/share/locale/pl/LC_MESSAGES/xz.mo +0 -0
  263. package/deps/xz/share/locale/vi/LC_MESSAGES/xz.mo +0 -0
  264. package/deps/xz/src/Makefile +0 -674
  265. package/deps/xz/src/Makefile.am +0 -42
  266. package/deps/xz/src/Makefile.in +0 -674
  267. package/deps/xz/src/common/common_w32res.rc +0 -50
  268. package/deps/xz/src/common/mythread.h +0 -521
  269. package/deps/xz/src/common/sysdefs.h +0 -202
  270. package/deps/xz/src/common/tuklib_common.h +0 -71
  271. package/deps/xz/src/common/tuklib_config.h +0 -7
  272. package/deps/xz/src/common/tuklib_cpucores.c +0 -91
  273. package/deps/xz/src/common/tuklib_cpucores.h +0 -23
  274. package/deps/xz/src/common/tuklib_exit.c +0 -57
  275. package/deps/xz/src/common/tuklib_exit.h +0 -25
  276. package/deps/xz/src/common/tuklib_gettext.h +0 -44
  277. package/deps/xz/src/common/tuklib_integer.h +0 -523
  278. package/deps/xz/src/common/tuklib_mbstr.h +0 -66
  279. package/deps/xz/src/common/tuklib_mbstr_fw.c +0 -31
  280. package/deps/xz/src/common/tuklib_mbstr_width.c +0 -64
  281. package/deps/xz/src/common/tuklib_open_stdxxx.c +0 -57
  282. package/deps/xz/src/common/tuklib_open_stdxxx.h +0 -23
  283. package/deps/xz/src/common/tuklib_physmem.c +0 -215
  284. package/deps/xz/src/common/tuklib_physmem.h +0 -28
  285. package/deps/xz/src/common/tuklib_progname.c +0 -50
  286. package/deps/xz/src/common/tuklib_progname.h +0 -32
  287. package/deps/xz/src/liblzma/.deps/liblzma_la-alone_decoder.Plo +0 -269
  288. package/deps/xz/src/liblzma/.deps/liblzma_la-alone_encoder.Plo +0 -263
  289. package/deps/xz/src/liblzma/.deps/liblzma_la-arm.Plo +0 -263
  290. package/deps/xz/src/liblzma/.deps/liblzma_la-armthumb.Plo +0 -263
  291. package/deps/xz/src/liblzma/.deps/liblzma_la-auto_decoder.Plo +0 -263
  292. package/deps/xz/src/liblzma/.deps/liblzma_la-block_buffer_decoder.Plo +0 -261
  293. package/deps/xz/src/liblzma/.deps/liblzma_la-block_buffer_encoder.Plo +0 -273
  294. package/deps/xz/src/liblzma/.deps/liblzma_la-block_decoder.Plo +0 -268
  295. package/deps/xz/src/liblzma/.deps/liblzma_la-block_encoder.Plo +0 -268
  296. package/deps/xz/src/liblzma/.deps/liblzma_la-block_header_decoder.Plo +0 -263
  297. package/deps/xz/src/liblzma/.deps/liblzma_la-block_header_encoder.Plo +0 -263
  298. package/deps/xz/src/liblzma/.deps/liblzma_la-block_util.Plo +0 -260
  299. package/deps/xz/src/liblzma/.deps/liblzma_la-check.Plo +0 -261
  300. package/deps/xz/src/liblzma/.deps/liblzma_la-common.Plo +0 -258
  301. package/deps/xz/src/liblzma/.deps/liblzma_la-crc32_fast.Plo +0 -263
  302. package/deps/xz/src/liblzma/.deps/liblzma_la-crc32_small.Plo +0 -1
  303. package/deps/xz/src/liblzma/.deps/liblzma_la-crc32_table.Plo +0 -260
  304. package/deps/xz/src/liblzma/.deps/liblzma_la-crc32_x86.Plo +0 -1
  305. package/deps/xz/src/liblzma/.deps/liblzma_la-crc64_fast.Plo +0 -263
  306. package/deps/xz/src/liblzma/.deps/liblzma_la-crc64_small.Plo +0 -1
  307. package/deps/xz/src/liblzma/.deps/liblzma_la-crc64_table.Plo +0 -260
  308. package/deps/xz/src/liblzma/.deps/liblzma_la-crc64_x86.Plo +0 -1
  309. package/deps/xz/src/liblzma/.deps/liblzma_la-delta_common.Plo +0 -263
  310. package/deps/xz/src/liblzma/.deps/liblzma_la-delta_decoder.Plo +0 -265
  311. package/deps/xz/src/liblzma/.deps/liblzma_la-delta_encoder.Plo +0 -265
  312. package/deps/xz/src/liblzma/.deps/liblzma_la-easy_buffer_encoder.Plo +0 -261
  313. package/deps/xz/src/liblzma/.deps/liblzma_la-easy_decoder_memusage.Plo +0 -261
  314. package/deps/xz/src/liblzma/.deps/liblzma_la-easy_encoder.Plo +0 -261
  315. package/deps/xz/src/liblzma/.deps/liblzma_la-easy_encoder_memusage.Plo +0 -261
  316. package/deps/xz/src/liblzma/.deps/liblzma_la-easy_preset.Plo +0 -261
  317. package/deps/xz/src/liblzma/.deps/liblzma_la-fastpos_table.Plo +0 -261
  318. package/deps/xz/src/liblzma/.deps/liblzma_la-filter_buffer_decoder.Plo +0 -261
  319. package/deps/xz/src/liblzma/.deps/liblzma_la-filter_buffer_encoder.Plo +0 -261
  320. package/deps/xz/src/liblzma/.deps/liblzma_la-filter_common.Plo +0 -261
  321. package/deps/xz/src/liblzma/.deps/liblzma_la-filter_decoder.Plo +0 -283
  322. package/deps/xz/src/liblzma/.deps/liblzma_la-filter_encoder.Plo +0 -283
  323. package/deps/xz/src/liblzma/.deps/liblzma_la-filter_flags_decoder.Plo +0 -261
  324. package/deps/xz/src/liblzma/.deps/liblzma_la-filter_flags_encoder.Plo +0 -261
  325. package/deps/xz/src/liblzma/.deps/liblzma_la-hardware_cputhreads.Plo +0 -260
  326. package/deps/xz/src/liblzma/.deps/liblzma_la-hardware_physmem.Plo +0 -260
  327. package/deps/xz/src/liblzma/.deps/liblzma_la-ia64.Plo +0 -263
  328. package/deps/xz/src/liblzma/.deps/liblzma_la-index.Plo +0 -262
  329. package/deps/xz/src/liblzma/.deps/liblzma_la-index_decoder.Plo +0 -266
  330. package/deps/xz/src/liblzma/.deps/liblzma_la-index_encoder.Plo +0 -268
  331. package/deps/xz/src/liblzma/.deps/liblzma_la-index_hash.Plo +0 -265
  332. package/deps/xz/src/liblzma/.deps/liblzma_la-lz_decoder.Plo +0 -261
  333. package/deps/xz/src/liblzma/.deps/liblzma_la-lz_encoder.Plo +0 -286
  334. package/deps/xz/src/liblzma/.deps/liblzma_la-lz_encoder_mf.Plo +0 -286
  335. package/deps/xz/src/liblzma/.deps/liblzma_la-lzma2_decoder.Plo +0 -266
  336. package/deps/xz/src/liblzma/.deps/liblzma_la-lzma2_encoder.Plo +0 -268
  337. package/deps/xz/src/liblzma/.deps/liblzma_la-lzma_decoder.Plo +0 -274
  338. package/deps/xz/src/liblzma/.deps/liblzma_la-lzma_encoder.Plo +0 -285
  339. package/deps/xz/src/liblzma/.deps/liblzma_la-lzma_encoder_optimum_fast.Plo +0 -300
  340. package/deps/xz/src/liblzma/.deps/liblzma_la-lzma_encoder_optimum_normal.Plo +0 -303
  341. package/deps/xz/src/liblzma/.deps/liblzma_la-lzma_encoder_presets.Plo +0 -259
  342. package/deps/xz/src/liblzma/.deps/liblzma_la-outqueue.Plo +0 -260
  343. package/deps/xz/src/liblzma/.deps/liblzma_la-powerpc.Plo +0 -263
  344. package/deps/xz/src/liblzma/.deps/liblzma_la-price_table.Plo +0 -266
  345. package/deps/xz/src/liblzma/.deps/liblzma_la-sha256.Plo +0 -261
  346. package/deps/xz/src/liblzma/.deps/liblzma_la-simple_coder.Plo +0 -263
  347. package/deps/xz/src/liblzma/.deps/liblzma_la-simple_decoder.Plo +0 -263
  348. package/deps/xz/src/liblzma/.deps/liblzma_la-simple_encoder.Plo +0 -263
  349. package/deps/xz/src/liblzma/.deps/liblzma_la-sparc.Plo +0 -263
  350. package/deps/xz/src/liblzma/.deps/liblzma_la-stream_buffer_decoder.Plo +0 -261
  351. package/deps/xz/src/liblzma/.deps/liblzma_la-stream_buffer_encoder.Plo +0 -261
  352. package/deps/xz/src/liblzma/.deps/liblzma_la-stream_decoder.Plo +0 -263
  353. package/deps/xz/src/liblzma/.deps/liblzma_la-stream_encoder.Plo +0 -263
  354. package/deps/xz/src/liblzma/.deps/liblzma_la-stream_encoder_mt.Plo +0 -273
  355. package/deps/xz/src/liblzma/.deps/liblzma_la-stream_flags_common.Plo +0 -261
  356. package/deps/xz/src/liblzma/.deps/liblzma_la-stream_flags_decoder.Plo +0 -261
  357. package/deps/xz/src/liblzma/.deps/liblzma_la-stream_flags_encoder.Plo +0 -261
  358. package/deps/xz/src/liblzma/.deps/liblzma_la-tuklib_cpucores.Plo +0 -170
  359. package/deps/xz/src/liblzma/.deps/liblzma_la-tuklib_physmem.Plo +0 -170
  360. package/deps/xz/src/liblzma/.deps/liblzma_la-vli_decoder.Plo +0 -258
  361. package/deps/xz/src/liblzma/.deps/liblzma_la-vli_encoder.Plo +0 -258
  362. package/deps/xz/src/liblzma/.deps/liblzma_la-vli_size.Plo +0 -258
  363. package/deps/xz/src/liblzma/.deps/liblzma_la-x86.Plo +0 -263
  364. package/deps/xz/src/liblzma/.libs/liblzma.a +0 -0
  365. package/deps/xz/src/liblzma/.libs/liblzma.lai +0 -41
  366. package/deps/xz/src/liblzma/Makefile +0 -1858
  367. package/deps/xz/src/liblzma/Makefile.am +0 -122
  368. package/deps/xz/src/liblzma/Makefile.in +0 -1858
  369. package/deps/xz/src/liblzma/api/Makefile +0 -608
  370. package/deps/xz/src/liblzma/api/Makefile.am +0 -23
  371. package/deps/xz/src/liblzma/api/Makefile.in +0 -608
  372. package/deps/xz/src/liblzma/api/lzma/base.h +0 -654
  373. package/deps/xz/src/liblzma/api/lzma/bcj.h +0 -90
  374. package/deps/xz/src/liblzma/api/lzma/block.h +0 -581
  375. package/deps/xz/src/liblzma/api/lzma/check.h +0 -150
  376. package/deps/xz/src/liblzma/api/lzma/container.h +0 -619
  377. package/deps/xz/src/liblzma/api/lzma/delta.h +0 -77
  378. package/deps/xz/src/liblzma/api/lzma/filter.h +0 -425
  379. package/deps/xz/src/liblzma/api/lzma/hardware.h +0 -64
  380. package/deps/xz/src/liblzma/api/lzma/index.h +0 -682
  381. package/deps/xz/src/liblzma/api/lzma/index_hash.h +0 -107
  382. package/deps/xz/src/liblzma/api/lzma/lzma12.h +0 -420
  383. package/deps/xz/src/liblzma/api/lzma/stream_flags.h +0 -223
  384. package/deps/xz/src/liblzma/api/lzma/version.h +0 -121
  385. package/deps/xz/src/liblzma/api/lzma/vli.h +0 -166
  386. package/deps/xz/src/liblzma/api/lzma.h +0 -321
  387. package/deps/xz/src/liblzma/check/Makefile.inc +0 -53
  388. package/deps/xz/src/liblzma/check/check.c +0 -174
  389. package/deps/xz/src/liblzma/check/check.h +0 -162
  390. package/deps/xz/src/liblzma/check/crc32_fast.c +0 -82
  391. package/deps/xz/src/liblzma/check/crc32_small.c +0 -61
  392. package/deps/xz/src/liblzma/check/crc32_table.c +0 -19
  393. package/deps/xz/src/liblzma/check/crc32_table_be.h +0 -525
  394. package/deps/xz/src/liblzma/check/crc32_table_le.h +0 -525
  395. package/deps/xz/src/liblzma/check/crc32_tablegen.c +0 -117
  396. package/deps/xz/src/liblzma/check/crc32_x86.S +0 -304
  397. package/deps/xz/src/liblzma/check/crc64_fast.c +0 -72
  398. package/deps/xz/src/liblzma/check/crc64_small.c +0 -53
  399. package/deps/xz/src/liblzma/check/crc64_table.c +0 -19
  400. package/deps/xz/src/liblzma/check/crc64_table_be.h +0 -521
  401. package/deps/xz/src/liblzma/check/crc64_table_le.h +0 -521
  402. package/deps/xz/src/liblzma/check/crc64_tablegen.c +0 -88
  403. package/deps/xz/src/liblzma/check/crc64_x86.S +0 -287
  404. package/deps/xz/src/liblzma/check/crc_macros.h +0 -30
  405. package/deps/xz/src/liblzma/check/sha256.c +0 -196
  406. package/deps/xz/src/liblzma/common/Makefile.inc +0 -76
  407. package/deps/xz/src/liblzma/common/alone_decoder.c +0 -238
  408. package/deps/xz/src/liblzma/common/alone_decoder.h +0 -23
  409. package/deps/xz/src/liblzma/common/alone_encoder.c +0 -157
  410. package/deps/xz/src/liblzma/common/auto_decoder.c +0 -186
  411. package/deps/xz/src/liblzma/common/block_buffer_decoder.c +0 -80
  412. package/deps/xz/src/liblzma/common/block_buffer_encoder.c +0 -337
  413. package/deps/xz/src/liblzma/common/block_buffer_encoder.h +0 -24
  414. package/deps/xz/src/liblzma/common/block_decoder.c +0 -252
  415. package/deps/xz/src/liblzma/common/block_decoder.h +0 -22
  416. package/deps/xz/src/liblzma/common/block_encoder.c +0 -217
  417. package/deps/xz/src/liblzma/common/block_encoder.h +0 -47
  418. package/deps/xz/src/liblzma/common/block_header_decoder.c +0 -124
  419. package/deps/xz/src/liblzma/common/block_header_encoder.c +0 -132
  420. package/deps/xz/src/liblzma/common/block_util.c +0 -90
  421. package/deps/xz/src/liblzma/common/common.c +0 -443
  422. package/deps/xz/src/liblzma/common/common.h +0 -318
  423. package/deps/xz/src/liblzma/common/easy_buffer_encoder.c +0 -27
  424. package/deps/xz/src/liblzma/common/easy_decoder_memusage.c +0 -24
  425. package/deps/xz/src/liblzma/common/easy_encoder.c +0 -24
  426. package/deps/xz/src/liblzma/common/easy_encoder_memusage.c +0 -24
  427. package/deps/xz/src/liblzma/common/easy_preset.c +0 -27
  428. package/deps/xz/src/liblzma/common/easy_preset.h +0 -32
  429. package/deps/xz/src/liblzma/common/filter_buffer_decoder.c +0 -88
  430. package/deps/xz/src/liblzma/common/filter_buffer_encoder.c +0 -55
  431. package/deps/xz/src/liblzma/common/filter_common.c +0 -337
  432. package/deps/xz/src/liblzma/common/filter_common.h +0 -48
  433. package/deps/xz/src/liblzma/common/filter_decoder.c +0 -184
  434. package/deps/xz/src/liblzma/common/filter_decoder.h +0 -23
  435. package/deps/xz/src/liblzma/common/filter_encoder.c +0 -286
  436. package/deps/xz/src/liblzma/common/filter_encoder.h +0 -27
  437. package/deps/xz/src/liblzma/common/filter_flags_decoder.c +0 -46
  438. package/deps/xz/src/liblzma/common/filter_flags_encoder.c +0 -56
  439. package/deps/xz/src/liblzma/common/hardware_cputhreads.c +0 -22
  440. package/deps/xz/src/liblzma/common/hardware_physmem.c +0 -25
  441. package/deps/xz/src/liblzma/common/index.c +0 -1246
  442. package/deps/xz/src/liblzma/common/index.h +0 -73
  443. package/deps/xz/src/liblzma/common/index_decoder.c +0 -345
  444. package/deps/xz/src/liblzma/common/index_encoder.c +0 -254
  445. package/deps/xz/src/liblzma/common/index_encoder.h +0 -23
  446. package/deps/xz/src/liblzma/common/index_hash.c +0 -334
  447. package/deps/xz/src/liblzma/common/memcmplen.h +0 -175
  448. package/deps/xz/src/liblzma/common/outqueue.c +0 -184
  449. package/deps/xz/src/liblzma/common/outqueue.h +0 -156
  450. package/deps/xz/src/liblzma/common/stream_buffer_decoder.c +0 -91
  451. package/deps/xz/src/liblzma/common/stream_buffer_encoder.c +0 -141
  452. package/deps/xz/src/liblzma/common/stream_decoder.c +0 -462
  453. package/deps/xz/src/liblzma/common/stream_decoder.h +0 -22
  454. package/deps/xz/src/liblzma/common/stream_encoder.c +0 -332
  455. package/deps/xz/src/liblzma/common/stream_encoder_mt.c +0 -1131
  456. package/deps/xz/src/liblzma/common/stream_flags_common.c +0 -47
  457. package/deps/xz/src/liblzma/common/stream_flags_common.h +0 -33
  458. package/deps/xz/src/liblzma/common/stream_flags_decoder.c +0 -82
  459. package/deps/xz/src/liblzma/common/stream_flags_encoder.c +0 -86
  460. package/deps/xz/src/liblzma/common/vli_decoder.c +0 -86
  461. package/deps/xz/src/liblzma/common/vli_encoder.c +0 -69
  462. package/deps/xz/src/liblzma/common/vli_size.c +0 -30
  463. package/deps/xz/src/liblzma/delta/Makefile.inc +0 -23
  464. package/deps/xz/src/liblzma/delta/delta_common.c +0 -70
  465. package/deps/xz/src/liblzma/delta/delta_common.h +0 -20
  466. package/deps/xz/src/liblzma/delta/delta_decoder.c +0 -76
  467. package/deps/xz/src/liblzma/delta/delta_decoder.h +0 -26
  468. package/deps/xz/src/liblzma/delta/delta_encoder.c +0 -121
  469. package/deps/xz/src/liblzma/delta/delta_encoder.h +0 -24
  470. package/deps/xz/src/liblzma/delta/delta_private.h +0 -37
  471. package/deps/xz/src/liblzma/liblzma.la +0 -41
  472. package/deps/xz/src/liblzma/liblzma.map +0 -108
  473. package/deps/xz/src/liblzma/liblzma.pc +0 -19
  474. package/deps/xz/src/liblzma/liblzma.pc.in +0 -19
  475. package/deps/xz/src/liblzma/liblzma_la-alone_decoder.lo +0 -12
  476. package/deps/xz/src/liblzma/liblzma_la-alone_decoder.o +0 -0
  477. package/deps/xz/src/liblzma/liblzma_la-alone_encoder.lo +0 -12
  478. package/deps/xz/src/liblzma/liblzma_la-alone_encoder.o +0 -0
  479. package/deps/xz/src/liblzma/liblzma_la-arm.lo +0 -12
  480. package/deps/xz/src/liblzma/liblzma_la-arm.o +0 -0
  481. package/deps/xz/src/liblzma/liblzma_la-armthumb.lo +0 -12
  482. package/deps/xz/src/liblzma/liblzma_la-armthumb.o +0 -0
  483. package/deps/xz/src/liblzma/liblzma_la-auto_decoder.lo +0 -12
  484. package/deps/xz/src/liblzma/liblzma_la-auto_decoder.o +0 -0
  485. package/deps/xz/src/liblzma/liblzma_la-block_buffer_decoder.lo +0 -12
  486. package/deps/xz/src/liblzma/liblzma_la-block_buffer_decoder.o +0 -0
  487. package/deps/xz/src/liblzma/liblzma_la-block_buffer_encoder.lo +0 -12
  488. package/deps/xz/src/liblzma/liblzma_la-block_buffer_encoder.o +0 -0
  489. package/deps/xz/src/liblzma/liblzma_la-block_decoder.lo +0 -12
  490. package/deps/xz/src/liblzma/liblzma_la-block_decoder.o +0 -0
  491. package/deps/xz/src/liblzma/liblzma_la-block_encoder.lo +0 -12
  492. package/deps/xz/src/liblzma/liblzma_la-block_encoder.o +0 -0
  493. package/deps/xz/src/liblzma/liblzma_la-block_header_decoder.lo +0 -12
  494. package/deps/xz/src/liblzma/liblzma_la-block_header_decoder.o +0 -0
  495. package/deps/xz/src/liblzma/liblzma_la-block_header_encoder.lo +0 -12
  496. package/deps/xz/src/liblzma/liblzma_la-block_header_encoder.o +0 -0
  497. package/deps/xz/src/liblzma/liblzma_la-block_util.lo +0 -12
  498. package/deps/xz/src/liblzma/liblzma_la-block_util.o +0 -0
  499. package/deps/xz/src/liblzma/liblzma_la-check.lo +0 -12
  500. package/deps/xz/src/liblzma/liblzma_la-check.o +0 -0
  501. package/deps/xz/src/liblzma/liblzma_la-common.lo +0 -12
  502. package/deps/xz/src/liblzma/liblzma_la-common.o +0 -0
  503. package/deps/xz/src/liblzma/liblzma_la-crc32_fast.lo +0 -12
  504. package/deps/xz/src/liblzma/liblzma_la-crc32_fast.o +0 -0
  505. package/deps/xz/src/liblzma/liblzma_la-crc32_table.lo +0 -12
  506. package/deps/xz/src/liblzma/liblzma_la-crc32_table.o +0 -0
  507. package/deps/xz/src/liblzma/liblzma_la-crc64_fast.lo +0 -12
  508. package/deps/xz/src/liblzma/liblzma_la-crc64_fast.o +0 -0
  509. package/deps/xz/src/liblzma/liblzma_la-crc64_table.lo +0 -12
  510. package/deps/xz/src/liblzma/liblzma_la-crc64_table.o +0 -0
  511. package/deps/xz/src/liblzma/liblzma_la-delta_common.lo +0 -12
  512. package/deps/xz/src/liblzma/liblzma_la-delta_common.o +0 -0
  513. package/deps/xz/src/liblzma/liblzma_la-delta_decoder.lo +0 -12
  514. package/deps/xz/src/liblzma/liblzma_la-delta_decoder.o +0 -0
  515. package/deps/xz/src/liblzma/liblzma_la-delta_encoder.lo +0 -12
  516. package/deps/xz/src/liblzma/liblzma_la-delta_encoder.o +0 -0
  517. package/deps/xz/src/liblzma/liblzma_la-easy_buffer_encoder.lo +0 -12
  518. package/deps/xz/src/liblzma/liblzma_la-easy_buffer_encoder.o +0 -0
  519. package/deps/xz/src/liblzma/liblzma_la-easy_decoder_memusage.lo +0 -12
  520. package/deps/xz/src/liblzma/liblzma_la-easy_decoder_memusage.o +0 -0
  521. package/deps/xz/src/liblzma/liblzma_la-easy_encoder.lo +0 -12
  522. package/deps/xz/src/liblzma/liblzma_la-easy_encoder.o +0 -0
  523. package/deps/xz/src/liblzma/liblzma_la-easy_encoder_memusage.lo +0 -12
  524. package/deps/xz/src/liblzma/liblzma_la-easy_encoder_memusage.o +0 -0
  525. package/deps/xz/src/liblzma/liblzma_la-easy_preset.lo +0 -12
  526. package/deps/xz/src/liblzma/liblzma_la-easy_preset.o +0 -0
  527. package/deps/xz/src/liblzma/liblzma_la-fastpos_table.lo +0 -12
  528. package/deps/xz/src/liblzma/liblzma_la-fastpos_table.o +0 -0
  529. package/deps/xz/src/liblzma/liblzma_la-filter_buffer_decoder.lo +0 -12
  530. package/deps/xz/src/liblzma/liblzma_la-filter_buffer_decoder.o +0 -0
  531. package/deps/xz/src/liblzma/liblzma_la-filter_buffer_encoder.lo +0 -12
  532. package/deps/xz/src/liblzma/liblzma_la-filter_buffer_encoder.o +0 -0
  533. package/deps/xz/src/liblzma/liblzma_la-filter_common.lo +0 -12
  534. package/deps/xz/src/liblzma/liblzma_la-filter_common.o +0 -0
  535. package/deps/xz/src/liblzma/liblzma_la-filter_decoder.lo +0 -12
  536. package/deps/xz/src/liblzma/liblzma_la-filter_decoder.o +0 -0
  537. package/deps/xz/src/liblzma/liblzma_la-filter_encoder.lo +0 -12
  538. package/deps/xz/src/liblzma/liblzma_la-filter_encoder.o +0 -0
  539. package/deps/xz/src/liblzma/liblzma_la-filter_flags_decoder.lo +0 -12
  540. package/deps/xz/src/liblzma/liblzma_la-filter_flags_decoder.o +0 -0
  541. package/deps/xz/src/liblzma/liblzma_la-filter_flags_encoder.lo +0 -12
  542. package/deps/xz/src/liblzma/liblzma_la-filter_flags_encoder.o +0 -0
  543. package/deps/xz/src/liblzma/liblzma_la-hardware_cputhreads.lo +0 -12
  544. package/deps/xz/src/liblzma/liblzma_la-hardware_cputhreads.o +0 -0
  545. package/deps/xz/src/liblzma/liblzma_la-hardware_physmem.lo +0 -12
  546. package/deps/xz/src/liblzma/liblzma_la-hardware_physmem.o +0 -0
  547. package/deps/xz/src/liblzma/liblzma_la-ia64.lo +0 -12
  548. package/deps/xz/src/liblzma/liblzma_la-ia64.o +0 -0
  549. package/deps/xz/src/liblzma/liblzma_la-index.lo +0 -12
  550. package/deps/xz/src/liblzma/liblzma_la-index.o +0 -0
  551. package/deps/xz/src/liblzma/liblzma_la-index_decoder.lo +0 -12
  552. package/deps/xz/src/liblzma/liblzma_la-index_decoder.o +0 -0
  553. package/deps/xz/src/liblzma/liblzma_la-index_encoder.lo +0 -12
  554. package/deps/xz/src/liblzma/liblzma_la-index_encoder.o +0 -0
  555. package/deps/xz/src/liblzma/liblzma_la-index_hash.lo +0 -12
  556. package/deps/xz/src/liblzma/liblzma_la-index_hash.o +0 -0
  557. package/deps/xz/src/liblzma/liblzma_la-lz_decoder.lo +0 -12
  558. package/deps/xz/src/liblzma/liblzma_la-lz_decoder.o +0 -0
  559. package/deps/xz/src/liblzma/liblzma_la-lz_encoder.lo +0 -12
  560. package/deps/xz/src/liblzma/liblzma_la-lz_encoder.o +0 -0
  561. package/deps/xz/src/liblzma/liblzma_la-lz_encoder_mf.lo +0 -12
  562. package/deps/xz/src/liblzma/liblzma_la-lz_encoder_mf.o +0 -0
  563. package/deps/xz/src/liblzma/liblzma_la-lzma2_decoder.lo +0 -12
  564. package/deps/xz/src/liblzma/liblzma_la-lzma2_decoder.o +0 -0
  565. package/deps/xz/src/liblzma/liblzma_la-lzma2_encoder.lo +0 -12
  566. package/deps/xz/src/liblzma/liblzma_la-lzma2_encoder.o +0 -0
  567. package/deps/xz/src/liblzma/liblzma_la-lzma_decoder.lo +0 -12
  568. package/deps/xz/src/liblzma/liblzma_la-lzma_decoder.o +0 -0
  569. package/deps/xz/src/liblzma/liblzma_la-lzma_encoder.lo +0 -12
  570. package/deps/xz/src/liblzma/liblzma_la-lzma_encoder.o +0 -0
  571. package/deps/xz/src/liblzma/liblzma_la-lzma_encoder_optimum_fast.lo +0 -12
  572. package/deps/xz/src/liblzma/liblzma_la-lzma_encoder_optimum_fast.o +0 -0
  573. package/deps/xz/src/liblzma/liblzma_la-lzma_encoder_optimum_normal.lo +0 -12
  574. package/deps/xz/src/liblzma/liblzma_la-lzma_encoder_optimum_normal.o +0 -0
  575. package/deps/xz/src/liblzma/liblzma_la-lzma_encoder_presets.lo +0 -12
  576. package/deps/xz/src/liblzma/liblzma_la-lzma_encoder_presets.o +0 -0
  577. package/deps/xz/src/liblzma/liblzma_la-outqueue.lo +0 -12
  578. package/deps/xz/src/liblzma/liblzma_la-outqueue.o +0 -0
  579. package/deps/xz/src/liblzma/liblzma_la-powerpc.lo +0 -12
  580. package/deps/xz/src/liblzma/liblzma_la-powerpc.o +0 -0
  581. package/deps/xz/src/liblzma/liblzma_la-price_table.lo +0 -12
  582. package/deps/xz/src/liblzma/liblzma_la-price_table.o +0 -0
  583. package/deps/xz/src/liblzma/liblzma_la-sha256.lo +0 -12
  584. package/deps/xz/src/liblzma/liblzma_la-sha256.o +0 -0
  585. package/deps/xz/src/liblzma/liblzma_la-simple_coder.lo +0 -12
  586. package/deps/xz/src/liblzma/liblzma_la-simple_coder.o +0 -0
  587. package/deps/xz/src/liblzma/liblzma_la-simple_decoder.lo +0 -12
  588. package/deps/xz/src/liblzma/liblzma_la-simple_decoder.o +0 -0
  589. package/deps/xz/src/liblzma/liblzma_la-simple_encoder.lo +0 -12
  590. package/deps/xz/src/liblzma/liblzma_la-simple_encoder.o +0 -0
  591. package/deps/xz/src/liblzma/liblzma_la-sparc.lo +0 -12
  592. package/deps/xz/src/liblzma/liblzma_la-sparc.o +0 -0
  593. package/deps/xz/src/liblzma/liblzma_la-stream_buffer_decoder.lo +0 -12
  594. package/deps/xz/src/liblzma/liblzma_la-stream_buffer_decoder.o +0 -0
  595. package/deps/xz/src/liblzma/liblzma_la-stream_buffer_encoder.lo +0 -12
  596. package/deps/xz/src/liblzma/liblzma_la-stream_buffer_encoder.o +0 -0
  597. package/deps/xz/src/liblzma/liblzma_la-stream_decoder.lo +0 -12
  598. package/deps/xz/src/liblzma/liblzma_la-stream_decoder.o +0 -0
  599. package/deps/xz/src/liblzma/liblzma_la-stream_encoder.lo +0 -12
  600. package/deps/xz/src/liblzma/liblzma_la-stream_encoder.o +0 -0
  601. package/deps/xz/src/liblzma/liblzma_la-stream_encoder_mt.lo +0 -12
  602. package/deps/xz/src/liblzma/liblzma_la-stream_encoder_mt.o +0 -0
  603. package/deps/xz/src/liblzma/liblzma_la-stream_flags_common.lo +0 -12
  604. package/deps/xz/src/liblzma/liblzma_la-stream_flags_common.o +0 -0
  605. package/deps/xz/src/liblzma/liblzma_la-stream_flags_decoder.lo +0 -12
  606. package/deps/xz/src/liblzma/liblzma_la-stream_flags_decoder.o +0 -0
  607. package/deps/xz/src/liblzma/liblzma_la-stream_flags_encoder.lo +0 -12
  608. package/deps/xz/src/liblzma/liblzma_la-stream_flags_encoder.o +0 -0
  609. package/deps/xz/src/liblzma/liblzma_la-tuklib_cpucores.lo +0 -12
  610. package/deps/xz/src/liblzma/liblzma_la-tuklib_cpucores.o +0 -0
  611. package/deps/xz/src/liblzma/liblzma_la-tuklib_physmem.lo +0 -12
  612. package/deps/xz/src/liblzma/liblzma_la-tuklib_physmem.o +0 -0
  613. package/deps/xz/src/liblzma/liblzma_la-vli_decoder.lo +0 -12
  614. package/deps/xz/src/liblzma/liblzma_la-vli_decoder.o +0 -0
  615. package/deps/xz/src/liblzma/liblzma_la-vli_encoder.lo +0 -12
  616. package/deps/xz/src/liblzma/liblzma_la-vli_encoder.o +0 -0
  617. package/deps/xz/src/liblzma/liblzma_la-vli_size.lo +0 -12
  618. package/deps/xz/src/liblzma/liblzma_la-vli_size.o +0 -0
  619. package/deps/xz/src/liblzma/liblzma_la-x86.lo +0 -12
  620. package/deps/xz/src/liblzma/liblzma_la-x86.o +0 -0
  621. package/deps/xz/src/liblzma/liblzma_w32res.rc +0 -12
  622. package/deps/xz/src/liblzma/lz/Makefile.inc +0 -22
  623. package/deps/xz/src/liblzma/lz/lz_decoder.c +0 -300
  624. package/deps/xz/src/liblzma/lz/lz_decoder.h +0 -235
  625. package/deps/xz/src/liblzma/lz/lz_encoder.c +0 -605
  626. package/deps/xz/src/liblzma/lz/lz_encoder.h +0 -328
  627. package/deps/xz/src/liblzma/lz/lz_encoder_hash.h +0 -108
  628. package/deps/xz/src/liblzma/lz/lz_encoder_hash_table.h +0 -68
  629. package/deps/xz/src/liblzma/lz/lz_encoder_mf.c +0 -744
  630. package/deps/xz/src/liblzma/lzma/Makefile.inc +0 -43
  631. package/deps/xz/src/liblzma/lzma/fastpos.h +0 -141
  632. package/deps/xz/src/liblzma/lzma/fastpos_table.c +0 -519
  633. package/deps/xz/src/liblzma/lzma/fastpos_tablegen.c +0 -56
  634. package/deps/xz/src/liblzma/lzma/lzma2_decoder.c +0 -304
  635. package/deps/xz/src/liblzma/lzma/lzma2_decoder.h +0 -29
  636. package/deps/xz/src/liblzma/lzma/lzma2_encoder.c +0 -403
  637. package/deps/xz/src/liblzma/lzma/lzma2_encoder.h +0 -43
  638. package/deps/xz/src/liblzma/lzma/lzma_common.h +0 -224
  639. package/deps/xz/src/liblzma/lzma/lzma_decoder.c +0 -1061
  640. package/deps/xz/src/liblzma/lzma/lzma_decoder.h +0 -53
  641. package/deps/xz/src/liblzma/lzma/lzma_encoder.c +0 -676
  642. package/deps/xz/src/liblzma/lzma/lzma_encoder.h +0 -55
  643. package/deps/xz/src/liblzma/lzma/lzma_encoder_optimum_fast.c +0 -169
  644. package/deps/xz/src/liblzma/lzma/lzma_encoder_optimum_normal.c +0 -854
  645. package/deps/xz/src/liblzma/lzma/lzma_encoder_presets.c +0 -63
  646. package/deps/xz/src/liblzma/lzma/lzma_encoder_private.h +0 -148
  647. package/deps/xz/src/liblzma/rangecoder/Makefile.inc +0 -21
  648. package/deps/xz/src/liblzma/rangecoder/price.h +0 -92
  649. package/deps/xz/src/liblzma/rangecoder/price_table.c +0 -22
  650. package/deps/xz/src/liblzma/rangecoder/price_tablegen.c +0 -87
  651. package/deps/xz/src/liblzma/rangecoder/range_common.h +0 -73
  652. package/deps/xz/src/liblzma/rangecoder/range_decoder.h +0 -185
  653. package/deps/xz/src/liblzma/rangecoder/range_encoder.h +0 -231
  654. package/deps/xz/src/liblzma/simple/Makefile.inc +0 -47
  655. package/deps/xz/src/liblzma/simple/arm.c +0 -71
  656. package/deps/xz/src/liblzma/simple/armthumb.c +0 -76
  657. package/deps/xz/src/liblzma/simple/ia64.c +0 -112
  658. package/deps/xz/src/liblzma/simple/powerpc.c +0 -75
  659. package/deps/xz/src/liblzma/simple/simple_coder.c +0 -277
  660. package/deps/xz/src/liblzma/simple/simple_coder.h +0 -72
  661. package/deps/xz/src/liblzma/simple/simple_decoder.c +0 -40
  662. package/deps/xz/src/liblzma/simple/simple_decoder.h +0 -22
  663. package/deps/xz/src/liblzma/simple/simple_encoder.c +0 -38
  664. package/deps/xz/src/liblzma/simple/simple_encoder.h +0 -23
  665. package/deps/xz/src/liblzma/simple/simple_private.h +0 -76
  666. package/deps/xz/src/liblzma/simple/sparc.c +0 -83
  667. package/deps/xz/src/liblzma/simple/x86.c +0 -156
  668. package/deps/xz/src/liblzma/validate_map.sh +0 -68
  669. package/deps/xz/src/lzmainfo/.deps/lzmainfo-lzmainfo.Po +0 -1
  670. package/deps/xz/src/lzmainfo/.deps/lzmainfo-tuklib_exit.Po +0 -1
  671. package/deps/xz/src/lzmainfo/.deps/lzmainfo-tuklib_progname.Po +0 -1
  672. package/deps/xz/src/lzmainfo/Makefile +0 -802
  673. package/deps/xz/src/lzmainfo/Makefile.am +0 -39
  674. package/deps/xz/src/lzmainfo/Makefile.in +0 -802
  675. package/deps/xz/src/lzmainfo/lzmainfo.1 +0 -60
  676. package/deps/xz/src/lzmainfo/lzmainfo.c +0 -219
  677. package/deps/xz/src/lzmainfo/lzmainfo_w32res.rc +0 -12
  678. package/deps/xz/src/scripts/Makefile +0 -642
  679. package/deps/xz/src/scripts/Makefile.am +0 -55
  680. package/deps/xz/src/scripts/Makefile.in +0 -642
  681. package/deps/xz/src/scripts/xzdiff +0 -200
  682. package/deps/xz/src/scripts/xzdiff.1 +0 -77
  683. package/deps/xz/src/scripts/xzdiff.in +0 -200
  684. package/deps/xz/src/scripts/xzgrep +0 -215
  685. package/deps/xz/src/scripts/xzgrep.1 +0 -98
  686. package/deps/xz/src/scripts/xzgrep.in +0 -215
  687. package/deps/xz/src/scripts/xzless +0 -58
  688. package/deps/xz/src/scripts/xzless.1 +0 -69
  689. package/deps/xz/src/scripts/xzless.in +0 -58
  690. package/deps/xz/src/scripts/xzmore +0 -78
  691. package/deps/xz/src/scripts/xzmore.1 +0 -55
  692. package/deps/xz/src/scripts/xzmore.in +0 -78
  693. package/deps/xz/src/xz/.deps/xz-args.Po +0 -1
  694. package/deps/xz/src/xz/.deps/xz-coder.Po +0 -1
  695. package/deps/xz/src/xz/.deps/xz-file_io.Po +0 -1
  696. package/deps/xz/src/xz/.deps/xz-hardware.Po +0 -1
  697. package/deps/xz/src/xz/.deps/xz-list.Po +0 -1
  698. package/deps/xz/src/xz/.deps/xz-main.Po +0 -1
  699. package/deps/xz/src/xz/.deps/xz-message.Po +0 -1
  700. package/deps/xz/src/xz/.deps/xz-mytime.Po +0 -1
  701. package/deps/xz/src/xz/.deps/xz-options.Po +0 -1
  702. package/deps/xz/src/xz/.deps/xz-signals.Po +0 -1
  703. package/deps/xz/src/xz/.deps/xz-suffix.Po +0 -1
  704. package/deps/xz/src/xz/.deps/xz-tuklib_exit.Po +0 -1
  705. package/deps/xz/src/xz/.deps/xz-tuklib_mbstr_fw.Po +0 -1
  706. package/deps/xz/src/xz/.deps/xz-tuklib_mbstr_width.Po +0 -1
  707. package/deps/xz/src/xz/.deps/xz-tuklib_open_stdxxx.Po +0 -1
  708. package/deps/xz/src/xz/.deps/xz-tuklib_progname.Po +0 -1
  709. package/deps/xz/src/xz/.deps/xz-util.Po +0 -1
  710. package/deps/xz/src/xz/Makefile +0 -1066
  711. package/deps/xz/src/xz/Makefile.am +0 -107
  712. package/deps/xz/src/xz/Makefile.in +0 -1066
  713. package/deps/xz/src/xz/args.c +0 -684
  714. package/deps/xz/src/xz/args.h +0 -44
  715. package/deps/xz/src/xz/coder.c +0 -919
  716. package/deps/xz/src/xz/coder.h +0 -76
  717. package/deps/xz/src/xz/file_io.c +0 -1184
  718. package/deps/xz/src/xz/file_io.h +0 -150
  719. package/deps/xz/src/xz/hardware.c +0 -150
  720. package/deps/xz/src/xz/hardware.h +0 -37
  721. package/deps/xz/src/xz/list.c +0 -1186
  722. package/deps/xz/src/xz/list.h +0 -18
  723. package/deps/xz/src/xz/main.c +0 -307
  724. package/deps/xz/src/xz/main.h +0 -30
  725. package/deps/xz/src/xz/message.c +0 -1258
  726. package/deps/xz/src/xz/message.h +0 -167
  727. package/deps/xz/src/xz/mytime.c +0 -89
  728. package/deps/xz/src/xz/mytime.h +0 -47
  729. package/deps/xz/src/xz/options.c +0 -363
  730. package/deps/xz/src/xz/options.h +0 -31
  731. package/deps/xz/src/xz/private.h +0 -59
  732. package/deps/xz/src/xz/signals.c +0 -209
  733. package/deps/xz/src/xz/signals.h +0 -43
  734. package/deps/xz/src/xz/suffix.c +0 -399
  735. package/deps/xz/src/xz/suffix.h +0 -28
  736. package/deps/xz/src/xz/util.c +0 -288
  737. package/deps/xz/src/xz/util.h +0 -123
  738. package/deps/xz/src/xz/xz.1 +0 -2786
  739. package/deps/xz/src/xz/xz_w32res.rc +0 -12
  740. package/deps/xz/src/xzdec/.deps/lzmadec-tuklib_exit.Po +0 -1
  741. package/deps/xz/src/xzdec/.deps/lzmadec-tuklib_progname.Po +0 -1
  742. package/deps/xz/src/xzdec/.deps/lzmadec-xzdec.Po +0 -1
  743. package/deps/xz/src/xzdec/.deps/xzdec-tuklib_exit.Po +0 -1
  744. package/deps/xz/src/xzdec/.deps/xzdec-tuklib_progname.Po +0 -1
  745. package/deps/xz/src/xzdec/.deps/xzdec-xzdec.Po +0 -1
  746. package/deps/xz/src/xzdec/Makefile +0 -901
  747. package/deps/xz/src/xzdec/Makefile.am +0 -82
  748. package/deps/xz/src/xzdec/Makefile.in +0 -901
  749. package/deps/xz/src/xzdec/lzmadec_w32res.rc +0 -12
  750. package/deps/xz/src/xzdec/xzdec.1 +0 -146
  751. package/deps/xz/src/xzdec/xzdec.c +0 -323
  752. package/deps/xz/src/xzdec/xzdec_w32res.rc +0 -12
  753. package/deps/xz/stamp-h1 +0 -1
  754. package/deps/xz/tests/.deps/create_compress_files.Po +0 -1
  755. package/deps/xz/tests/.deps/test_bcj_exact_size.Po +0 -1
  756. package/deps/xz/tests/.deps/test_block_header.Po +0 -1
  757. package/deps/xz/tests/.deps/test_check.Po +0 -1
  758. package/deps/xz/tests/.deps/test_filter_flags.Po +0 -1
  759. package/deps/xz/tests/.deps/test_index.Po +0 -1
  760. package/deps/xz/tests/.deps/test_stream_flags.Po +0 -1
  761. package/deps/xz/tests/Makefile +0 -832
  762. package/deps/xz/tests/Makefile.am +0 -57
  763. package/deps/xz/tests/Makefile.in +0 -832
  764. package/deps/xz/tests/bcj_test.c +0 -65
  765. package/deps/xz/tests/compress_prepared_bcj_sparc +0 -0
  766. package/deps/xz/tests/compress_prepared_bcj_x86 +0 -0
  767. package/deps/xz/tests/create_compress_files.c +0 -158
  768. package/deps/xz/tests/files/README +0 -240
  769. package/deps/xz/tests/files/bad-0-backward_size.xz +0 -0
  770. package/deps/xz/tests/files/bad-0-empty-truncated.xz +0 -0
  771. package/deps/xz/tests/files/bad-0-footer_magic.xz +0 -0
  772. package/deps/xz/tests/files/bad-0-header_magic.xz +0 -0
  773. package/deps/xz/tests/files/bad-0-nonempty_index.xz +0 -0
  774. package/deps/xz/tests/files/bad-0cat-alone.xz +0 -0
  775. package/deps/xz/tests/files/bad-0cat-header_magic.xz +0 -0
  776. package/deps/xz/tests/files/bad-0catpad-empty.xz +0 -0
  777. package/deps/xz/tests/files/bad-0pad-empty.xz +0 -0
  778. package/deps/xz/tests/files/bad-1-block_header-1.xz +0 -0
  779. package/deps/xz/tests/files/bad-1-block_header-2.xz +0 -0
  780. package/deps/xz/tests/files/bad-1-block_header-3.xz +0 -0
  781. package/deps/xz/tests/files/bad-1-block_header-4.xz +0 -0
  782. package/deps/xz/tests/files/bad-1-block_header-5.xz +0 -0
  783. package/deps/xz/tests/files/bad-1-block_header-6.xz +0 -0
  784. package/deps/xz/tests/files/bad-1-check-crc32.xz +0 -0
  785. package/deps/xz/tests/files/bad-1-check-crc64.xz +0 -0
  786. package/deps/xz/tests/files/bad-1-check-sha256.xz +0 -0
  787. package/deps/xz/tests/files/bad-1-lzma2-1.xz +0 -0
  788. package/deps/xz/tests/files/bad-1-lzma2-2.xz +0 -0
  789. package/deps/xz/tests/files/bad-1-lzma2-3.xz +0 -0
  790. package/deps/xz/tests/files/bad-1-lzma2-4.xz +0 -0
  791. package/deps/xz/tests/files/bad-1-lzma2-5.xz +0 -0
  792. package/deps/xz/tests/files/bad-1-lzma2-6.xz +0 -0
  793. package/deps/xz/tests/files/bad-1-lzma2-7.xz +0 -0
  794. package/deps/xz/tests/files/bad-1-lzma2-8.xz +0 -0
  795. package/deps/xz/tests/files/bad-1-stream_flags-1.xz +0 -0
  796. package/deps/xz/tests/files/bad-1-stream_flags-2.xz +0 -0
  797. package/deps/xz/tests/files/bad-1-stream_flags-3.xz +0 -0
  798. package/deps/xz/tests/files/bad-1-vli-1.xz +0 -0
  799. package/deps/xz/tests/files/bad-1-vli-2.xz +0 -0
  800. package/deps/xz/tests/files/bad-2-compressed_data_padding.xz +0 -0
  801. package/deps/xz/tests/files/bad-2-index-1.xz +0 -0
  802. package/deps/xz/tests/files/bad-2-index-2.xz +0 -0
  803. package/deps/xz/tests/files/bad-2-index-3.xz +0 -0
  804. package/deps/xz/tests/files/bad-2-index-4.xz +0 -0
  805. package/deps/xz/tests/files/bad-2-index-5.xz +0 -0
  806. package/deps/xz/tests/files/good-0-empty.xz +0 -0
  807. package/deps/xz/tests/files/good-0cat-empty.xz +0 -0
  808. package/deps/xz/tests/files/good-0catpad-empty.xz +0 -0
  809. package/deps/xz/tests/files/good-0pad-empty.xz +0 -0
  810. package/deps/xz/tests/files/good-1-3delta-lzma2.xz +0 -0
  811. package/deps/xz/tests/files/good-1-block_header-1.xz +0 -0
  812. package/deps/xz/tests/files/good-1-block_header-2.xz +0 -0
  813. package/deps/xz/tests/files/good-1-block_header-3.xz +0 -0
  814. package/deps/xz/tests/files/good-1-check-crc32.xz +0 -0
  815. package/deps/xz/tests/files/good-1-check-crc64.xz +0 -0
  816. package/deps/xz/tests/files/good-1-check-none.xz +0 -0
  817. package/deps/xz/tests/files/good-1-check-sha256.xz +0 -0
  818. package/deps/xz/tests/files/good-1-delta-lzma2.tiff.xz +0 -0
  819. package/deps/xz/tests/files/good-1-lzma2-1.xz +0 -0
  820. package/deps/xz/tests/files/good-1-lzma2-2.xz +0 -0
  821. package/deps/xz/tests/files/good-1-lzma2-3.xz +0 -0
  822. package/deps/xz/tests/files/good-1-lzma2-4.xz +0 -0
  823. package/deps/xz/tests/files/good-1-lzma2-5.xz +0 -0
  824. package/deps/xz/tests/files/good-1-sparc-lzma2.xz +0 -0
  825. package/deps/xz/tests/files/good-1-x86-lzma2.xz +0 -0
  826. package/deps/xz/tests/files/good-2-lzma2.xz +0 -0
  827. package/deps/xz/tests/files/unsupported-block_header.xz +0 -0
  828. package/deps/xz/tests/files/unsupported-check.xz +0 -0
  829. package/deps/xz/tests/files/unsupported-filter_flags-1.xz +0 -0
  830. package/deps/xz/tests/files/unsupported-filter_flags-2.xz +0 -0
  831. package/deps/xz/tests/files/unsupported-filter_flags-3.xz +0 -0
  832. package/deps/xz/tests/test_bcj_exact_size.c +0 -113
  833. package/deps/xz/tests/test_block_header.c +0 -240
  834. package/deps/xz/tests/test_check.c +0 -83
  835. package/deps/xz/tests/test_compress.sh +0 -142
  836. package/deps/xz/tests/test_files.sh +0 -57
  837. package/deps/xz/tests/test_filter_flags.c +0 -258
  838. package/deps/xz/tests/test_index.c +0 -659
  839. package/deps/xz/tests/test_scripts.sh +0 -76
  840. package/deps/xz/tests/test_stream_flags.c +0 -180
  841. package/deps/xz/tests/tests.h +0 -124
  842. package/deps/xz/tests/xzgrep_expected_output +0 -39
  843. package/deps/xz/windows/INSTALL-MSVC.txt +0 -47
  844. package/deps/xz/windows/INSTALL-MinGW.txt +0 -138
  845. package/deps/xz/windows/README-Windows.txt +0 -122
  846. package/deps/xz/windows/build.bash +0 -203
  847. package/deps/xz/windows/config.h +0 -142
  848. package/deps/xz/windows/liblzma.vcxproj +0 -354
  849. package/deps/xz/windows/liblzma_dll.vcxproj +0 -383
  850. package/deps/xz/windows/xz_win.sln +0 -48
  851. package/lib/lzma.js +0 -377
  852. package/node_modules/node-pre-gyp/CHANGELOG.md +0 -319
  853. package/node_modules/node-pre-gyp/LICENSE +0 -27
  854. package/node_modules/node-pre-gyp/README.md +0 -570
  855. package/node_modules/node-pre-gyp/appveyor.yml +0 -30
  856. package/node_modules/node-pre-gyp/bin/node-pre-gyp +0 -131
  857. package/node_modules/node-pre-gyp/bin/node-pre-gyp.cmd +0 -2
  858. package/node_modules/node-pre-gyp/lib/build.js +0 -43
  859. package/node_modules/node-pre-gyp/lib/clean.js +0 -23
  860. package/node_modules/node-pre-gyp/lib/configure.js +0 -48
  861. package/node_modules/node-pre-gyp/lib/info.js +0 -40
  862. package/node_modules/node-pre-gyp/lib/install.js +0 -215
  863. package/node_modules/node-pre-gyp/lib/node-pre-gyp.js +0 -192
  864. package/node_modules/node-pre-gyp/lib/package.js +0 -46
  865. package/node_modules/node-pre-gyp/lib/pre-binding.js +0 -25
  866. package/node_modules/node-pre-gyp/lib/publish.js +0 -77
  867. package/node_modules/node-pre-gyp/lib/rebuild.js +0 -13
  868. package/node_modules/node-pre-gyp/lib/reinstall.js +0 -13
  869. package/node_modules/node-pre-gyp/lib/reveal.js +0 -31
  870. package/node_modules/node-pre-gyp/lib/testbinary.js +0 -73
  871. package/node_modules/node-pre-gyp/lib/testpackage.js +0 -49
  872. package/node_modules/node-pre-gyp/lib/unpublish.js +0 -41
  873. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +0 -1222
  874. package/node_modules/node-pre-gyp/lib/util/compile.js +0 -87
  875. package/node_modules/node-pre-gyp/lib/util/handle_gyp_opts.js +0 -94
  876. package/node_modules/node-pre-gyp/lib/util/nw-pre-gyp/index.html +0 -26
  877. package/node_modules/node-pre-gyp/lib/util/nw-pre-gyp/package.json +0 -9
  878. package/node_modules/node-pre-gyp/lib/util/s3_setup.js +0 -27
  879. package/node_modules/node-pre-gyp/lib/util/versioning.js +0 -308
  880. package/node_modules/node-pre-gyp/package.json +0 -136
@@ -1,1258 +0,0 @@
1
- ///////////////////////////////////////////////////////////////////////////////
2
- //
3
- /// \file message.c
4
- /// \brief Printing messages
5
- //
6
- // Author: Lasse Collin
7
- //
8
- // This file has been put into the public domain.
9
- // You can do whatever you want with this file.
10
- //
11
- ///////////////////////////////////////////////////////////////////////////////
12
-
13
- #include "private.h"
14
-
15
- #include <stdarg.h>
16
-
17
-
18
- /// Number of the current file
19
- static unsigned int files_pos = 0;
20
-
21
- /// Total number of input files; zero if unknown.
22
- static unsigned int files_total;
23
-
24
- /// Verbosity level
25
- static enum message_verbosity verbosity = V_WARNING;
26
-
27
- /// Filename which we will print with the verbose messages
28
- static const char *filename;
29
-
30
- /// True once the a filename has been printed to stderr as part of progress
31
- /// message. If automatic progress updating isn't enabled, this becomes true
32
- /// after the first progress message has been printed due to user sending
33
- /// SIGINFO, SIGUSR1, or SIGALRM. Once this variable is true, we will print
34
- /// an empty line before the next filename to make the output more readable.
35
- static bool first_filename_printed = false;
36
-
37
- /// This is set to true when we have printed the current filename to stderr
38
- /// as part of a progress message. This variable is useful only if not
39
- /// updating progress automatically: if user sends many SIGINFO, SIGUSR1, or
40
- /// SIGALRM signals, we won't print the name of the same file multiple times.
41
- static bool current_filename_printed = false;
42
-
43
- /// True if we should print progress indicator and update it automatically
44
- /// if also verbose >= V_VERBOSE.
45
- static bool progress_automatic;
46
-
47
- /// True if message_progress_start() has been called but
48
- /// message_progress_end() hasn't been called yet.
49
- static bool progress_started = false;
50
-
51
- /// This is true when a progress message was printed and the cursor is still
52
- /// on the same line with the progress message. In that case, a newline has
53
- /// to be printed before any error messages.
54
- static bool progress_active = false;
55
-
56
- /// Pointer to lzma_stream used to do the encoding or decoding.
57
- static lzma_stream *progress_strm;
58
-
59
- /// Expected size of the input stream is needed to show completion percentage
60
- /// and estimate remaining time.
61
- static uint64_t expected_in_size;
62
-
63
-
64
- // Use alarm() and SIGALRM when they are supported. This has two minor
65
- // advantages over the alternative of polling gettimeofday():
66
- // - It is possible for the user to send SIGINFO, SIGUSR1, or SIGALRM to
67
- // get intermediate progress information even when --verbose wasn't used
68
- // or stderr is not a terminal.
69
- // - alarm() + SIGALRM seems to have slightly less overhead than polling
70
- // gettimeofday().
71
- #ifdef SIGALRM
72
-
73
- const int message_progress_sigs[] = {
74
- SIGALRM,
75
- #ifdef SIGINFO
76
- SIGINFO,
77
- #endif
78
- #ifdef SIGUSR1
79
- SIGUSR1,
80
- #endif
81
- 0
82
- };
83
-
84
- /// The signal handler for SIGALRM sets this to true. It is set back to false
85
- /// once the progress message has been updated.
86
- static volatile sig_atomic_t progress_needs_updating = false;
87
-
88
- /// Signal handler for SIGALRM
89
- static void
90
- progress_signal_handler(int sig lzma_attribute((__unused__)))
91
- {
92
- progress_needs_updating = true;
93
- return;
94
- }
95
-
96
- #else
97
-
98
- /// This is true when progress message printing is wanted. Using the same
99
- /// variable name as above to avoid some ifdefs.
100
- static bool progress_needs_updating = false;
101
-
102
- /// Elapsed time when the next progress message update should be done.
103
- static uint64_t progress_next_update;
104
-
105
- #endif
106
-
107
-
108
- extern void
109
- message_init(void)
110
- {
111
- // If --verbose is used, we use a progress indicator if and only
112
- // if stderr is a terminal. If stderr is not a terminal, we print
113
- // verbose information only after finishing the file. As a special
114
- // exception, even if --verbose was not used, user can send SIGALRM
115
- // to make us print progress information once without automatic
116
- // updating.
117
- progress_automatic = isatty(STDERR_FILENO);
118
-
119
- // Commented out because COLUMNS is rarely exported to environment.
120
- // Most users have at least 80 columns anyway, let's think something
121
- // fancy here if enough people complain.
122
- /*
123
- if (progress_automatic) {
124
- // stderr is a terminal. Check the COLUMNS environment
125
- // variable to see if the terminal is wide enough. If COLUMNS
126
- // doesn't exist or it has some unparsable value, we assume
127
- // that the terminal is wide enough.
128
- const char *columns_str = getenv("COLUMNS");
129
- if (columns_str != NULL) {
130
- char *endptr;
131
- const long columns = strtol(columns_str, &endptr, 10);
132
- if (*endptr != '\0' || columns < 80)
133
- progress_automatic = false;
134
- }
135
- }
136
- */
137
-
138
- #ifdef SIGALRM
139
- // Establish the signal handlers which set a flag to tell us that
140
- // progress info should be updated.
141
- struct sigaction sa;
142
- sigemptyset(&sa.sa_mask);
143
- sa.sa_flags = 0;
144
- sa.sa_handler = &progress_signal_handler;
145
-
146
- for (size_t i = 0; message_progress_sigs[i] != 0; ++i)
147
- if (sigaction(message_progress_sigs[i], &sa, NULL))
148
- message_signal_handler();
149
- #endif
150
-
151
- return;
152
- }
153
-
154
-
155
- extern void
156
- message_verbosity_increase(void)
157
- {
158
- if (verbosity < V_DEBUG)
159
- ++verbosity;
160
-
161
- return;
162
- }
163
-
164
-
165
- extern void
166
- message_verbosity_decrease(void)
167
- {
168
- if (verbosity > V_SILENT)
169
- --verbosity;
170
-
171
- return;
172
- }
173
-
174
-
175
- extern enum message_verbosity
176
- message_verbosity_get(void)
177
- {
178
- return verbosity;
179
- }
180
-
181
-
182
- extern void
183
- message_set_files(unsigned int files)
184
- {
185
- files_total = files;
186
- return;
187
- }
188
-
189
-
190
- /// Prints the name of the current file if it hasn't been printed already,
191
- /// except if we are processing exactly one stream from stdin to stdout.
192
- /// I think it looks nicer to not print "(stdin)" when --verbose is used
193
- /// in a pipe and no other files are processed.
194
- static void
195
- print_filename(void)
196
- {
197
- if (!opt_robot && (files_total != 1 || filename != stdin_filename)) {
198
- signals_block();
199
-
200
- FILE *file = opt_mode == MODE_LIST ? stdout : stderr;
201
-
202
- // If a file was already processed, put an empty line
203
- // before the next filename to improve readability.
204
- if (first_filename_printed)
205
- fputc('\n', file);
206
-
207
- first_filename_printed = true;
208
- current_filename_printed = true;
209
-
210
- // If we don't know how many files there will be due
211
- // to usage of --files or --files0.
212
- if (files_total == 0)
213
- fprintf(file, "%s (%u)\n", filename,
214
- files_pos);
215
- else
216
- fprintf(file, "%s (%u/%u)\n", filename,
217
- files_pos, files_total);
218
-
219
- signals_unblock();
220
- }
221
-
222
- return;
223
- }
224
-
225
-
226
- extern void
227
- message_filename(const char *src_name)
228
- {
229
- // Start numbering the files starting from one.
230
- ++files_pos;
231
- filename = src_name;
232
-
233
- if (verbosity >= V_VERBOSE
234
- && (progress_automatic || opt_mode == MODE_LIST))
235
- print_filename();
236
- else
237
- current_filename_printed = false;
238
-
239
- return;
240
- }
241
-
242
-
243
- extern void
244
- message_progress_start(lzma_stream *strm, uint64_t in_size)
245
- {
246
- // Store the pointer to the lzma_stream used to do the coding.
247
- // It is needed to find out the position in the stream.
248
- progress_strm = strm;
249
-
250
- // Store the expected size of the file. If we aren't printing any
251
- // statistics, then is will be unused. But since it is possible
252
- // that the user sends us a signal to show statistics, we need
253
- // to have it available anyway.
254
- expected_in_size = in_size;
255
-
256
- // Indicate that progress info may need to be printed before
257
- // printing error messages.
258
- progress_started = true;
259
-
260
- // If progress indicator is wanted, print the filename and possibly
261
- // the file count now.
262
- if (verbosity >= V_VERBOSE && progress_automatic) {
263
- // Start the timer to display the first progress message
264
- // after one second. An alternative would be to show the
265
- // first message almost immediately, but delaying by one
266
- // second looks better to me, since extremely early
267
- // progress info is pretty much useless.
268
- #ifdef SIGALRM
269
- // First disable a possibly existing alarm.
270
- alarm(0);
271
- progress_needs_updating = false;
272
- alarm(1);
273
- #else
274
- progress_needs_updating = true;
275
- progress_next_update = 1000;
276
- #endif
277
- }
278
-
279
- return;
280
- }
281
-
282
-
283
- /// Make the string indicating completion percentage.
284
- static const char *
285
- progress_percentage(uint64_t in_pos)
286
- {
287
- // If the size of the input file is unknown or the size told us is
288
- // clearly wrong since we have processed more data than the alleged
289
- // size of the file, show a static string indicating that we have
290
- // no idea of the completion percentage.
291
- if (expected_in_size == 0 || in_pos > expected_in_size)
292
- return "--- %";
293
-
294
- // Never show 100.0 % before we actually are finished.
295
- double percentage = (double)(in_pos) / (double)(expected_in_size)
296
- * 99.9;
297
-
298
- // Use big enough buffer to hold e.g. a multibyte decimal point.
299
- static char buf[16];
300
- snprintf(buf, sizeof(buf), "%.1f %%", percentage);
301
-
302
- return buf;
303
- }
304
-
305
-
306
- /// Make the string containing the amount of input processed, amount of
307
- /// output produced, and the compression ratio.
308
- static const char *
309
- progress_sizes(uint64_t compressed_pos, uint64_t uncompressed_pos, bool final)
310
- {
311
- // Use big enough buffer to hold e.g. a multibyte thousand separators.
312
- static char buf[128];
313
- char *pos = buf;
314
- size_t left = sizeof(buf);
315
-
316
- // Print the sizes. If this the final message, use more reasonable
317
- // units than MiB if the file was small.
318
- const enum nicestr_unit unit_min = final ? NICESTR_B : NICESTR_MIB;
319
- my_snprintf(&pos, &left, "%s / %s",
320
- uint64_to_nicestr(compressed_pos,
321
- unit_min, NICESTR_TIB, false, 0),
322
- uint64_to_nicestr(uncompressed_pos,
323
- unit_min, NICESTR_TIB, false, 1));
324
-
325
- // Avoid division by zero. If we cannot calculate the ratio, set
326
- // it to some nice number greater than 10.0 so that it gets caught
327
- // in the next if-clause.
328
- const double ratio = uncompressed_pos > 0
329
- ? (double)(compressed_pos) / (double)(uncompressed_pos)
330
- : 16.0;
331
-
332
- // If the ratio is very bad, just indicate that it is greater than
333
- // 9.999. This way the length of the ratio field stays fixed.
334
- if (ratio > 9.999)
335
- snprintf(pos, left, " > %.3f", 9.999);
336
- else
337
- snprintf(pos, left, " = %.3f", ratio);
338
-
339
- return buf;
340
- }
341
-
342
-
343
- /// Make the string containing the processing speed of uncompressed data.
344
- static const char *
345
- progress_speed(uint64_t uncompressed_pos, uint64_t elapsed)
346
- {
347
- // Don't print the speed immediately, since the early values look
348
- // somewhat random.
349
- if (elapsed < 3000)
350
- return "";
351
-
352
- static const char unit[][8] = {
353
- "KiB/s",
354
- "MiB/s",
355
- "GiB/s",
356
- };
357
-
358
- size_t unit_index = 0;
359
-
360
- // Calculate the speed as KiB/s.
361
- double speed = (double)(uncompressed_pos)
362
- / ((double)(elapsed) * (1024.0 / 1000.0));
363
-
364
- // Adjust the unit of the speed if needed.
365
- while (speed > 999.0) {
366
- speed /= 1024.0;
367
- if (++unit_index == ARRAY_SIZE(unit))
368
- return ""; // Way too fast ;-)
369
- }
370
-
371
- // Use decimal point only if the number is small. Examples:
372
- // - 0.1 KiB/s
373
- // - 9.9 KiB/s
374
- // - 99 KiB/s
375
- // - 999 KiB/s
376
- // Use big enough buffer to hold e.g. a multibyte decimal point.
377
- static char buf[16];
378
- snprintf(buf, sizeof(buf), "%.*f %s",
379
- speed > 9.9 ? 0 : 1, speed, unit[unit_index]);
380
- return buf;
381
- }
382
-
383
-
384
- /// Make a string indicating elapsed time. The format is either
385
- /// M:SS or H:MM:SS depending on if the time is an hour or more.
386
- static const char *
387
- progress_time(uint64_t mseconds)
388
- {
389
- // 9999 hours = 416 days
390
- static char buf[sizeof("9999:59:59")];
391
-
392
- // 32-bit variable is enough for elapsed time (136 years).
393
- uint32_t seconds = (uint32_t)(mseconds / 1000);
394
-
395
- // Don't show anything if the time is zero or ridiculously big.
396
- if (seconds == 0 || seconds > ((9999 * 60) + 59) * 60 + 59)
397
- return "";
398
-
399
- uint32_t minutes = seconds / 60;
400
- seconds %= 60;
401
-
402
- if (minutes >= 60) {
403
- const uint32_t hours = minutes / 60;
404
- minutes %= 60;
405
- snprintf(buf, sizeof(buf),
406
- "%" PRIu32 ":%02" PRIu32 ":%02" PRIu32,
407
- hours, minutes, seconds);
408
- } else {
409
- snprintf(buf, sizeof(buf), "%" PRIu32 ":%02" PRIu32,
410
- minutes, seconds);
411
- }
412
-
413
- return buf;
414
- }
415
-
416
-
417
- /// Return a string containing estimated remaining time when
418
- /// reasonably possible.
419
- static const char *
420
- progress_remaining(uint64_t in_pos, uint64_t elapsed)
421
- {
422
- // Don't show the estimated remaining time when it wouldn't
423
- // make sense:
424
- // - Input size is unknown.
425
- // - Input has grown bigger since we started (de)compressing.
426
- // - We haven't processed much data yet, so estimate would be
427
- // too inaccurate.
428
- // - Only a few seconds has passed since we started (de)compressing,
429
- // so estimate would be too inaccurate.
430
- if (expected_in_size == 0 || in_pos > expected_in_size
431
- || in_pos < (UINT64_C(1) << 19) || elapsed < 8000)
432
- return "";
433
-
434
- // Calculate the estimate. Don't give an estimate of zero seconds,
435
- // since it is possible that all the input has been already passed
436
- // to the library, but there is still quite a bit of output pending.
437
- uint32_t remaining = (double)(expected_in_size - in_pos)
438
- * ((double)(elapsed) / 1000.0) / (double)(in_pos);
439
- if (remaining < 1)
440
- remaining = 1;
441
-
442
- static char buf[sizeof("9 h 55 min")];
443
-
444
- // Select appropriate precision for the estimated remaining time.
445
- if (remaining <= 10) {
446
- // A maximum of 10 seconds remaining.
447
- // Show the number of seconds as is.
448
- snprintf(buf, sizeof(buf), "%" PRIu32 " s", remaining);
449
-
450
- } else if (remaining <= 50) {
451
- // A maximum of 50 seconds remaining.
452
- // Round up to the next multiple of five seconds.
453
- remaining = (remaining + 4) / 5 * 5;
454
- snprintf(buf, sizeof(buf), "%" PRIu32 " s", remaining);
455
-
456
- } else if (remaining <= 590) {
457
- // A maximum of 9 minutes and 50 seconds remaining.
458
- // Round up to the next multiple of ten seconds.
459
- remaining = (remaining + 9) / 10 * 10;
460
- snprintf(buf, sizeof(buf), "%" PRIu32 " min %" PRIu32 " s",
461
- remaining / 60, remaining % 60);
462
-
463
- } else if (remaining <= 59 * 60) {
464
- // A maximum of 59 minutes remaining.
465
- // Round up to the next multiple of a minute.
466
- remaining = (remaining + 59) / 60;
467
- snprintf(buf, sizeof(buf), "%" PRIu32 " min", remaining);
468
-
469
- } else if (remaining <= 9 * 3600 + 50 * 60) {
470
- // A maximum of 9 hours and 50 minutes left.
471
- // Round up to the next multiple of ten minutes.
472
- remaining = (remaining + 599) / 600 * 10;
473
- snprintf(buf, sizeof(buf), "%" PRIu32 " h %" PRIu32 " min",
474
- remaining / 60, remaining % 60);
475
-
476
- } else if (remaining <= 23 * 3600) {
477
- // A maximum of 23 hours remaining.
478
- // Round up to the next multiple of an hour.
479
- remaining = (remaining + 3599) / 3600;
480
- snprintf(buf, sizeof(buf), "%" PRIu32 " h", remaining);
481
-
482
- } else if (remaining <= 9 * 24 * 3600 + 23 * 3600) {
483
- // A maximum of 9 days and 23 hours remaining.
484
- // Round up to the next multiple of an hour.
485
- remaining = (remaining + 3599) / 3600;
486
- snprintf(buf, sizeof(buf), "%" PRIu32 " d %" PRIu32 " h",
487
- remaining / 24, remaining % 24);
488
-
489
- } else if (remaining <= 999 * 24 * 3600) {
490
- // A maximum of 999 days remaining. ;-)
491
- // Round up to the next multiple of a day.
492
- remaining = (remaining + 24 * 3600 - 1) / (24 * 3600);
493
- snprintf(buf, sizeof(buf), "%" PRIu32 " d", remaining);
494
-
495
- } else {
496
- // The estimated remaining time is too big. Don't show it.
497
- return "";
498
- }
499
-
500
- return buf;
501
- }
502
-
503
-
504
- /// Get how much uncompressed and compressed data has been processed.
505
- static void
506
- progress_pos(uint64_t *in_pos,
507
- uint64_t *compressed_pos, uint64_t *uncompressed_pos)
508
- {
509
- uint64_t out_pos;
510
- lzma_get_progress(progress_strm, in_pos, &out_pos);
511
-
512
- // It cannot have processed more input than it has been given.
513
- assert(*in_pos <= progress_strm->total_in);
514
-
515
- // It cannot have produced more output than it claims to have ready.
516
- assert(out_pos >= progress_strm->total_out);
517
-
518
- if (opt_mode == MODE_COMPRESS) {
519
- *compressed_pos = out_pos;
520
- *uncompressed_pos = *in_pos;
521
- } else {
522
- *compressed_pos = *in_pos;
523
- *uncompressed_pos = out_pos;
524
- }
525
-
526
- return;
527
- }
528
-
529
-
530
- extern void
531
- message_progress_update(void)
532
- {
533
- if (!progress_needs_updating)
534
- return;
535
-
536
- // Calculate how long we have been processing this file.
537
- const uint64_t elapsed = mytime_get_elapsed();
538
-
539
- #ifndef SIGALRM
540
- if (progress_next_update > elapsed)
541
- return;
542
-
543
- progress_next_update = elapsed + 1000;
544
- #endif
545
-
546
- // Get our current position in the stream.
547
- uint64_t in_pos;
548
- uint64_t compressed_pos;
549
- uint64_t uncompressed_pos;
550
- progress_pos(&in_pos, &compressed_pos, &uncompressed_pos);
551
-
552
- // Block signals so that fprintf() doesn't get interrupted.
553
- signals_block();
554
-
555
- // Print the filename if it hasn't been printed yet.
556
- if (!current_filename_printed)
557
- print_filename();
558
-
559
- // Print the actual progress message. The idea is that there is at
560
- // least three spaces between the fields in typical situations, but
561
- // even in rare situations there is at least one space.
562
- const char *cols[5] = {
563
- progress_percentage(in_pos),
564
- progress_sizes(compressed_pos, uncompressed_pos, false),
565
- progress_speed(uncompressed_pos, elapsed),
566
- progress_time(elapsed),
567
- progress_remaining(in_pos, elapsed),
568
- };
569
- fprintf(stderr, "\r %*s %*s %*s %10s %10s\r",
570
- tuklib_mbstr_fw(cols[0], 6), cols[0],
571
- tuklib_mbstr_fw(cols[1], 35), cols[1],
572
- tuklib_mbstr_fw(cols[2], 9), cols[2],
573
- cols[3],
574
- cols[4]);
575
-
576
- #ifdef SIGALRM
577
- // Updating the progress info was finished. Reset
578
- // progress_needs_updating to wait for the next SIGALRM.
579
- //
580
- // NOTE: This has to be done before alarm(1) or with (very) bad
581
- // luck we could be setting this to false after the alarm has already
582
- // been triggered.
583
- progress_needs_updating = false;
584
-
585
- if (verbosity >= V_VERBOSE && progress_automatic) {
586
- // Mark that the progress indicator is active, so if an error
587
- // occurs, the error message gets printed cleanly.
588
- progress_active = true;
589
-
590
- // Restart the timer so that progress_needs_updating gets
591
- // set to true after about one second.
592
- alarm(1);
593
- } else {
594
- // The progress message was printed because user had sent us
595
- // SIGALRM. In this case, each progress message is printed
596
- // on its own line.
597
- fputc('\n', stderr);
598
- }
599
- #else
600
- // When SIGALRM isn't supported and we get here, it's always due to
601
- // automatic progress update. We set progress_active here too like
602
- // described above.
603
- assert(verbosity >= V_VERBOSE);
604
- assert(progress_automatic);
605
- progress_active = true;
606
- #endif
607
-
608
- signals_unblock();
609
-
610
- return;
611
- }
612
-
613
-
614
- static void
615
- progress_flush(bool finished)
616
- {
617
- if (!progress_started || verbosity < V_VERBOSE)
618
- return;
619
-
620
- uint64_t in_pos;
621
- uint64_t compressed_pos;
622
- uint64_t uncompressed_pos;
623
- progress_pos(&in_pos, &compressed_pos, &uncompressed_pos);
624
-
625
- // Avoid printing intermediate progress info if some error occurs
626
- // in the beginning of the stream. (If something goes wrong later in
627
- // the stream, it is sometimes useful to tell the user where the
628
- // error approximately occurred, especially if the error occurs
629
- // after a time-consuming operation.)
630
- if (!finished && !progress_active
631
- && (compressed_pos == 0 || uncompressed_pos == 0))
632
- return;
633
-
634
- progress_active = false;
635
-
636
- const uint64_t elapsed = mytime_get_elapsed();
637
-
638
- signals_block();
639
-
640
- // When using the auto-updating progress indicator, the final
641
- // statistics are printed in the same format as the progress
642
- // indicator itself.
643
- if (progress_automatic) {
644
- const char *cols[5] = {
645
- finished ? "100 %" : progress_percentage(in_pos),
646
- progress_sizes(compressed_pos, uncompressed_pos, true),
647
- progress_speed(uncompressed_pos, elapsed),
648
- progress_time(elapsed),
649
- finished ? "" : progress_remaining(in_pos, elapsed),
650
- };
651
- fprintf(stderr, "\r %*s %*s %*s %10s %10s\n",
652
- tuklib_mbstr_fw(cols[0], 6), cols[0],
653
- tuklib_mbstr_fw(cols[1], 35), cols[1],
654
- tuklib_mbstr_fw(cols[2], 9), cols[2],
655
- cols[3],
656
- cols[4]);
657
- } else {
658
- // The filename is always printed.
659
- fprintf(stderr, "%s: ", filename);
660
-
661
- // Percentage is printed only if we didn't finish yet.
662
- if (!finished) {
663
- // Don't print the percentage when it isn't known
664
- // (starts with a dash).
665
- const char *percentage = progress_percentage(in_pos);
666
- if (percentage[0] != '-')
667
- fprintf(stderr, "%s, ", percentage);
668
- }
669
-
670
- // Size information is always printed.
671
- fprintf(stderr, "%s", progress_sizes(
672
- compressed_pos, uncompressed_pos, true));
673
-
674
- // The speed and elapsed time aren't always shown.
675
- const char *speed = progress_speed(uncompressed_pos, elapsed);
676
- if (speed[0] != '\0')
677
- fprintf(stderr, ", %s", speed);
678
-
679
- const char *elapsed_str = progress_time(elapsed);
680
- if (elapsed_str[0] != '\0')
681
- fprintf(stderr, ", %s", elapsed_str);
682
-
683
- fputc('\n', stderr);
684
- }
685
-
686
- signals_unblock();
687
-
688
- return;
689
- }
690
-
691
-
692
- extern void
693
- message_progress_end(bool success)
694
- {
695
- assert(progress_started);
696
- progress_flush(success);
697
- progress_started = false;
698
- return;
699
- }
700
-
701
-
702
- static void
703
- vmessage(enum message_verbosity v, const char *fmt, va_list ap)
704
- {
705
- if (v <= verbosity) {
706
- signals_block();
707
-
708
- progress_flush(false);
709
-
710
- // TRANSLATORS: This is the program name in the beginning
711
- // of the line in messages. Usually it becomes "xz: ".
712
- // This is a translatable string because French needs
713
- // a space before a colon.
714
- fprintf(stderr, _("%s: "), progname);
715
- vfprintf(stderr, fmt, ap);
716
- fputc('\n', stderr);
717
-
718
- signals_unblock();
719
- }
720
-
721
- return;
722
- }
723
-
724
-
725
- extern void
726
- message(enum message_verbosity v, const char *fmt, ...)
727
- {
728
- va_list ap;
729
- va_start(ap, fmt);
730
- vmessage(v, fmt, ap);
731
- va_end(ap);
732
- return;
733
- }
734
-
735
-
736
- extern void
737
- message_warning(const char *fmt, ...)
738
- {
739
- va_list ap;
740
- va_start(ap, fmt);
741
- vmessage(V_WARNING, fmt, ap);
742
- va_end(ap);
743
-
744
- set_exit_status(E_WARNING);
745
- return;
746
- }
747
-
748
-
749
- extern void
750
- message_error(const char *fmt, ...)
751
- {
752
- va_list ap;
753
- va_start(ap, fmt);
754
- vmessage(V_ERROR, fmt, ap);
755
- va_end(ap);
756
-
757
- set_exit_status(E_ERROR);
758
- return;
759
- }
760
-
761
-
762
- extern void
763
- message_fatal(const char *fmt, ...)
764
- {
765
- va_list ap;
766
- va_start(ap, fmt);
767
- vmessage(V_ERROR, fmt, ap);
768
- va_end(ap);
769
-
770
- tuklib_exit(E_ERROR, E_ERROR, false);
771
- }
772
-
773
-
774
- extern void
775
- message_bug(void)
776
- {
777
- message_fatal(_("Internal error (bug)"));
778
- }
779
-
780
-
781
- extern void
782
- message_signal_handler(void)
783
- {
784
- message_fatal(_("Cannot establish signal handlers"));
785
- }
786
-
787
-
788
- extern const char *
789
- message_strm(lzma_ret code)
790
- {
791
- switch (code) {
792
- case LZMA_NO_CHECK:
793
- return _("No integrity check; not verifying file integrity");
794
-
795
- case LZMA_UNSUPPORTED_CHECK:
796
- return _("Unsupported type of integrity check; "
797
- "not verifying file integrity");
798
-
799
- case LZMA_MEM_ERROR:
800
- return strerror(ENOMEM);
801
-
802
- case LZMA_MEMLIMIT_ERROR:
803
- return _("Memory usage limit reached");
804
-
805
- case LZMA_FORMAT_ERROR:
806
- return _("File format not recognized");
807
-
808
- case LZMA_OPTIONS_ERROR:
809
- return _("Unsupported options");
810
-
811
- case LZMA_DATA_ERROR:
812
- return _("Compressed data is corrupt");
813
-
814
- case LZMA_BUF_ERROR:
815
- return _("Unexpected end of input");
816
-
817
- case LZMA_OK:
818
- case LZMA_STREAM_END:
819
- case LZMA_GET_CHECK:
820
- case LZMA_PROG_ERROR:
821
- // Without "default", compiler will warn if new constants
822
- // are added to lzma_ret, it is not too easy to forget to
823
- // add the new constants to this function.
824
- break;
825
- }
826
-
827
- return _("Internal error (bug)");
828
- }
829
-
830
-
831
- extern void
832
- message_mem_needed(enum message_verbosity v, uint64_t memusage)
833
- {
834
- if (v > verbosity)
835
- return;
836
-
837
- // Convert memusage to MiB, rounding up to the next full MiB.
838
- // This way the user can always use the displayed usage as
839
- // the new memory usage limit. (If we rounded to the nearest,
840
- // the user might need to +1 MiB to get high enough limit.)
841
- memusage = round_up_to_mib(memusage);
842
-
843
- uint64_t memlimit = hardware_memlimit_get(opt_mode);
844
-
845
- // Handle the case when there is no memory usage limit.
846
- // This way we don't print a weird message with a huge number.
847
- if (memlimit == UINT64_MAX) {
848
- message(v, _("%s MiB of memory is required. "
849
- "The limiter is disabled."),
850
- uint64_to_str(memusage, 0));
851
- return;
852
- }
853
-
854
- // With US-ASCII:
855
- // 2^64 with thousand separators + " MiB" suffix + '\0' = 26 + 4 + 1
856
- // But there may be multibyte chars so reserve enough space.
857
- char memlimitstr[128];
858
-
859
- // Show the memory usage limit as MiB unless it is less than 1 MiB.
860
- // This way it's easy to notice errors where one has typed
861
- // --memory=123 instead of --memory=123MiB.
862
- if (memlimit < (UINT32_C(1) << 20)) {
863
- snprintf(memlimitstr, sizeof(memlimitstr), "%s B",
864
- uint64_to_str(memlimit, 1));
865
- } else {
866
- // Round up just like with memusage. If this function is
867
- // called for informational purposes (to just show the
868
- // current usage and limit), we should never show that
869
- // the usage is higher than the limit, which would give
870
- // a false impression that the memory usage limit isn't
871
- // properly enforced.
872
- snprintf(memlimitstr, sizeof(memlimitstr), "%s MiB",
873
- uint64_to_str(round_up_to_mib(memlimit), 1));
874
- }
875
-
876
- message(v, _("%s MiB of memory is required. The limit is %s."),
877
- uint64_to_str(memusage, 0), memlimitstr);
878
-
879
- return;
880
- }
881
-
882
-
883
- /// \brief Convert uint32_t to a nice string for --lzma[12]=dict=SIZE
884
- ///
885
- /// The idea is to use KiB or MiB suffix when possible.
886
- static const char *
887
- uint32_to_optstr(uint32_t num)
888
- {
889
- static char buf[16];
890
-
891
- if ((num & ((UINT32_C(1) << 20) - 1)) == 0)
892
- snprintf(buf, sizeof(buf), "%" PRIu32 "MiB", num >> 20);
893
- else if ((num & ((UINT32_C(1) << 10) - 1)) == 0)
894
- snprintf(buf, sizeof(buf), "%" PRIu32 "KiB", num >> 10);
895
- else
896
- snprintf(buf, sizeof(buf), "%" PRIu32, num);
897
-
898
- return buf;
899
- }
900
-
901
-
902
- extern void
903
- message_filters_to_str(char buf[FILTERS_STR_SIZE],
904
- const lzma_filter *filters, bool all_known)
905
- {
906
- char *pos = buf;
907
- size_t left = FILTERS_STR_SIZE;
908
-
909
- for (size_t i = 0; filters[i].id != LZMA_VLI_UNKNOWN; ++i) {
910
- // Add the dashes for the filter option. A space is
911
- // needed after the first and later filters.
912
- my_snprintf(&pos, &left, "%s", i == 0 ? "--" : " --");
913
-
914
- switch (filters[i].id) {
915
- case LZMA_FILTER_LZMA1:
916
- case LZMA_FILTER_LZMA2: {
917
- const lzma_options_lzma *opt = filters[i].options;
918
- const char *mode = NULL;
919
- const char *mf = NULL;
920
-
921
- if (all_known) {
922
- switch (opt->mode) {
923
- case LZMA_MODE_FAST:
924
- mode = "fast";
925
- break;
926
-
927
- case LZMA_MODE_NORMAL:
928
- mode = "normal";
929
- break;
930
-
931
- default:
932
- mode = "UNKNOWN";
933
- break;
934
- }
935
-
936
- switch (opt->mf) {
937
- case LZMA_MF_HC3:
938
- mf = "hc3";
939
- break;
940
-
941
- case LZMA_MF_HC4:
942
- mf = "hc4";
943
- break;
944
-
945
- case LZMA_MF_BT2:
946
- mf = "bt2";
947
- break;
948
-
949
- case LZMA_MF_BT3:
950
- mf = "bt3";
951
- break;
952
-
953
- case LZMA_MF_BT4:
954
- mf = "bt4";
955
- break;
956
-
957
- default:
958
- mf = "UNKNOWN";
959
- break;
960
- }
961
- }
962
-
963
- // Add the filter name and dictionary size, which
964
- // is always known.
965
- my_snprintf(&pos, &left, "lzma%c=dict=%s",
966
- filters[i].id == LZMA_FILTER_LZMA2
967
- ? '2' : '1',
968
- uint32_to_optstr(opt->dict_size));
969
-
970
- // With LZMA1 also lc/lp/pb are known when
971
- // decompressing, but this function is never
972
- // used to print information about .lzma headers.
973
- assert(filters[i].id == LZMA_FILTER_LZMA2
974
- || all_known);
975
-
976
- // Print the rest of the options, which are known
977
- // only when compressing.
978
- if (all_known)
979
- my_snprintf(&pos, &left,
980
- ",lc=%" PRIu32 ",lp=%" PRIu32
981
- ",pb=%" PRIu32
982
- ",mode=%s,nice=%" PRIu32 ",mf=%s"
983
- ",depth=%" PRIu32,
984
- opt->lc, opt->lp, opt->pb,
985
- mode, opt->nice_len, mf, opt->depth);
986
- break;
987
- }
988
-
989
- case LZMA_FILTER_X86:
990
- case LZMA_FILTER_POWERPC:
991
- case LZMA_FILTER_IA64:
992
- case LZMA_FILTER_ARM:
993
- case LZMA_FILTER_ARMTHUMB:
994
- case LZMA_FILTER_SPARC: {
995
- static const char bcj_names[][9] = {
996
- "x86",
997
- "powerpc",
998
- "ia64",
999
- "arm",
1000
- "armthumb",
1001
- "sparc",
1002
- };
1003
-
1004
- const lzma_options_bcj *opt = filters[i].options;
1005
- my_snprintf(&pos, &left, "%s", bcj_names[filters[i].id
1006
- - LZMA_FILTER_X86]);
1007
-
1008
- // Show the start offset only when really needed.
1009
- if (opt != NULL && opt->start_offset != 0)
1010
- my_snprintf(&pos, &left, "=start=%" PRIu32,
1011
- opt->start_offset);
1012
-
1013
- break;
1014
- }
1015
-
1016
- case LZMA_FILTER_DELTA: {
1017
- const lzma_options_delta *opt = filters[i].options;
1018
- my_snprintf(&pos, &left, "delta=dist=%" PRIu32,
1019
- opt->dist);
1020
- break;
1021
- }
1022
-
1023
- default:
1024
- // This should be possible only if liblzma is
1025
- // newer than the xz tool.
1026
- my_snprintf(&pos, &left, "UNKNOWN");
1027
- break;
1028
- }
1029
- }
1030
-
1031
- return;
1032
- }
1033
-
1034
-
1035
- extern void
1036
- message_filters_show(enum message_verbosity v, const lzma_filter *filters)
1037
- {
1038
- if (v > verbosity)
1039
- return;
1040
-
1041
- char buf[FILTERS_STR_SIZE];
1042
- message_filters_to_str(buf, filters, true);
1043
- fprintf(stderr, _("%s: Filter chain: %s\n"), progname, buf);
1044
- return;
1045
- }
1046
-
1047
-
1048
- extern void
1049
- message_try_help(void)
1050
- {
1051
- // Print this with V_WARNING instead of V_ERROR to prevent it from
1052
- // showing up when --quiet has been specified.
1053
- message(V_WARNING, _("Try `%s --help' for more information."),
1054
- progname);
1055
- return;
1056
- }
1057
-
1058
-
1059
- extern void
1060
- message_version(void)
1061
- {
1062
- // It is possible that liblzma version is different than the command
1063
- // line tool version, so print both.
1064
- if (opt_robot) {
1065
- printf("XZ_VERSION=%" PRIu32 "\nLIBLZMA_VERSION=%" PRIu32 "\n",
1066
- LZMA_VERSION, lzma_version_number());
1067
- } else {
1068
- printf("xz (" PACKAGE_NAME ") " LZMA_VERSION_STRING "\n");
1069
- printf("liblzma %s\n", lzma_version_string());
1070
- }
1071
-
1072
- tuklib_exit(E_SUCCESS, E_ERROR, verbosity != V_SILENT);
1073
- }
1074
-
1075
-
1076
- extern void
1077
- message_help(bool long_help)
1078
- {
1079
- printf(_("Usage: %s [OPTION]... [FILE]...\n"
1080
- "Compress or decompress FILEs in the .xz format.\n\n"),
1081
- progname);
1082
-
1083
- // NOTE: The short help doesn't currently have options that
1084
- // take arguments.
1085
- if (long_help)
1086
- puts(_("Mandatory arguments to long options are mandatory "
1087
- "for short options too.\n"));
1088
-
1089
- if (long_help)
1090
- puts(_(" Operation mode:\n"));
1091
-
1092
- puts(_(
1093
- " -z, --compress force compression\n"
1094
- " -d, --decompress force decompression\n"
1095
- " -t, --test test compressed file integrity\n"
1096
- " -l, --list list information about .xz files"));
1097
-
1098
- if (long_help)
1099
- puts(_("\n Operation modifiers:\n"));
1100
-
1101
- puts(_(
1102
- " -k, --keep keep (don't delete) input files\n"
1103
- " -f, --force force overwrite of output file and (de)compress links\n"
1104
- " -c, --stdout write to standard output and don't delete input files"));
1105
-
1106
- if (long_help) {
1107
- puts(_(
1108
- " --single-stream decompress only the first stream, and silently\n"
1109
- " ignore possible remaining input data"));
1110
- puts(_(
1111
- " --no-sparse do not create sparse files when decompressing\n"
1112
- " -S, --suffix=.SUF use the suffix `.SUF' on compressed files\n"
1113
- " --files[=FILE] read filenames to process from FILE; if FILE is\n"
1114
- " omitted, filenames are read from the standard input;\n"
1115
- " filenames must be terminated with the newline character\n"
1116
- " --files0[=FILE] like --files but use the null character as terminator"));
1117
- }
1118
-
1119
- if (long_help) {
1120
- puts(_("\n Basic file format and compression options:\n"));
1121
- puts(_(
1122
- " -F, --format=FMT file format to encode or decode; possible values are\n"
1123
- " `auto' (default), `xz', `lzma', and `raw'\n"
1124
- " -C, --check=CHECK integrity check type: `none' (use with caution),\n"
1125
- " `crc32', `crc64' (default), or `sha256'"));
1126
- puts(_(
1127
- " --ignore-check don't verify the integrity check when decompressing"));
1128
- }
1129
-
1130
- puts(_(
1131
- " -0 ... -9 compression preset; default is 6; take compressor *and*\n"
1132
- " decompressor memory usage into account before using 7-9!"));
1133
-
1134
- puts(_(
1135
- " -e, --extreme try to improve compression ratio by using more CPU time;\n"
1136
- " does not affect decompressor memory requirements"));
1137
-
1138
- puts(_(
1139
- " -T, --threads=NUM use at most NUM threads; the default is 1; set to 0\n"
1140
- " to use as many threads as there are processor cores"));
1141
-
1142
- if (long_help) {
1143
- puts(_(
1144
- " --block-size=SIZE\n"
1145
- " start a new .xz block after every SIZE bytes of input;\n"
1146
- " use this to set the block size for threaded compression"));
1147
- puts(_(
1148
- " --block-list=SIZES\n"
1149
- " start a new .xz block after the given comma-separated\n"
1150
- " intervals of uncompressed data"));
1151
- puts(_(
1152
- " --flush-timeout=TIMEOUT\n"
1153
- " when compressing, if more than TIMEOUT milliseconds has\n"
1154
- " passed since the previous flush and reading more input\n"
1155
- " would block, all pending data is flushed out"
1156
- ));
1157
- puts(_( // xgettext:no-c-format
1158
- " --memlimit-compress=LIMIT\n"
1159
- " --memlimit-decompress=LIMIT\n"
1160
- " -M, --memlimit=LIMIT\n"
1161
- " set memory usage limit for compression, decompression,\n"
1162
- " or both; LIMIT is in bytes, % of RAM, or 0 for defaults"));
1163
-
1164
- puts(_(
1165
- " --no-adjust if compression settings exceed the memory usage limit,\n"
1166
- " give an error instead of adjusting the settings downwards"));
1167
- }
1168
-
1169
- if (long_help) {
1170
- puts(_(
1171
- "\n Custom filter chain for compression (alternative for using presets):"));
1172
-
1173
- #if defined(HAVE_ENCODER_LZMA1) || defined(HAVE_DECODER_LZMA1) \
1174
- || defined(HAVE_ENCODER_LZMA2) || defined(HAVE_DECODER_LZMA2)
1175
- // TRANSLATORS: The word "literal" in "literal context bits"
1176
- // means how many "context bits" to use when encoding
1177
- // literals. A literal is a single 8-bit byte. It doesn't
1178
- // mean "literally" here.
1179
- puts(_(
1180
- "\n"
1181
- " --lzma1[=OPTS] LZMA1 or LZMA2; OPTS is a comma-separated list of zero or\n"
1182
- " --lzma2[=OPTS] more of the following options (valid values; default):\n"
1183
- " preset=PRE reset options to a preset (0-9[e])\n"
1184
- " dict=NUM dictionary size (4KiB - 1536MiB; 8MiB)\n"
1185
- " lc=NUM number of literal context bits (0-4; 3)\n"
1186
- " lp=NUM number of literal position bits (0-4; 0)\n"
1187
- " pb=NUM number of position bits (0-4; 2)\n"
1188
- " mode=MODE compression mode (fast, normal; normal)\n"
1189
- " nice=NUM nice length of a match (2-273; 64)\n"
1190
- " mf=NAME match finder (hc3, hc4, bt2, bt3, bt4; bt4)\n"
1191
- " depth=NUM maximum search depth; 0=automatic (default)"));
1192
- #endif
1193
-
1194
- puts(_(
1195
- "\n"
1196
- " --x86[=OPTS] x86 BCJ filter (32-bit and 64-bit)\n"
1197
- " --powerpc[=OPTS] PowerPC BCJ filter (big endian only)\n"
1198
- " --ia64[=OPTS] IA-64 (Itanium) BCJ filter\n"
1199
- " --arm[=OPTS] ARM BCJ filter (little endian only)\n"
1200
- " --armthumb[=OPTS] ARM-Thumb BCJ filter (little endian only)\n"
1201
- " --sparc[=OPTS] SPARC BCJ filter\n"
1202
- " Valid OPTS for all BCJ filters:\n"
1203
- " start=NUM start offset for conversions (default=0)"));
1204
-
1205
- #if defined(HAVE_ENCODER_DELTA) || defined(HAVE_DECODER_DELTA)
1206
- puts(_(
1207
- "\n"
1208
- " --delta[=OPTS] Delta filter; valid OPTS (valid values; default):\n"
1209
- " dist=NUM distance between bytes being subtracted\n"
1210
- " from each other (1-256; 1)"));
1211
- #endif
1212
- }
1213
-
1214
- if (long_help)
1215
- puts(_("\n Other options:\n"));
1216
-
1217
- puts(_(
1218
- " -q, --quiet suppress warnings; specify twice to suppress errors too\n"
1219
- " -v, --verbose be verbose; specify twice for even more verbose"));
1220
-
1221
- if (long_help) {
1222
- puts(_(
1223
- " -Q, --no-warn make warnings not affect the exit status"));
1224
- puts(_(
1225
- " --robot use machine-parsable messages (useful for scripts)"));
1226
- puts("");
1227
- puts(_(
1228
- " --info-memory display the total amount of RAM and the currently active\n"
1229
- " memory usage limits, and exit"));
1230
- puts(_(
1231
- " -h, --help display the short help (lists only the basic options)\n"
1232
- " -H, --long-help display this long help and exit"));
1233
- } else {
1234
- puts(_(
1235
- " -h, --help display this short help and exit\n"
1236
- " -H, --long-help display the long help (lists also the advanced options)"));
1237
- }
1238
-
1239
- puts(_(
1240
- " -V, --version display the version number and exit"));
1241
-
1242
- puts(_("\nWith no FILE, or when FILE is -, read standard input.\n"));
1243
-
1244
- // TRANSLATORS: This message indicates the bug reporting address
1245
- // for this package. Please add _another line_ saying
1246
- // "Report translation bugs to <...>\n" with the email or WWW
1247
- // address for translation bugs. Thanks.
1248
- printf(_("Report bugs to <%s> (in English or Finnish).\n"),
1249
- PACKAGE_BUGREPORT);
1250
- printf(_("%s home page: <%s>\n"), PACKAGE_NAME, PACKAGE_URL);
1251
-
1252
- #if LZMA_VERSION_STABILITY != LZMA_VERSION_STABILITY_STABLE
1253
- puts(_(
1254
- "THIS IS A DEVELOPMENT VERSION NOT INTENDED FOR PRODUCTION USE."));
1255
- #endif
1256
-
1257
- tuklib_exit(E_SUCCESS, E_ERROR, verbosity != V_SILENT);
1258
- }