node-liblzma 1.0.4 → 1.1.6

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 +655 -49
  4. package/lib/lzma.js +326 -319
  5. package/package.json +36 -24
  6. package/prebuilds/darwin-x64/node.napi.node +0 -0
  7. package/prebuilds/linux-x64/node.napi.node +0 -0
  8. package/prebuilds/win32-x64/node.napi.node +0 -0
  9. package/scripts/download_extract_deps.py +29 -0
  10. package/scripts/prebuildify.py +13 -0
  11. package/scripts/walk_sources.py +7 -0
  12. package/.npmignore +0 -1
  13. package/.travis.yml +0 -35
  14. package/build/Makefile +0 -329
  15. package/build/Release/.deps/Release/node-liblzma.node.d +0 -1
  16. package/build/Release/.deps/Release/obj.target/action_after_build.stamp.d +0 -1
  17. package/build/Release/.deps/Release/obj.target/node-liblzma/src/bindings/module.o.d +0 -89
  18. package/build/Release/.deps/Release/obj.target/node-liblzma/src/bindings/node-liblzma.o.d +0 -89
  19. package/build/Release/.deps/Release/obj.target/node-liblzma.node.d +0 -1
  20. package/build/Release/.deps/home/o2/dev/node-liblzma/build/node-liblzma.node.d +0 -1
  21. package/build/Release/node-liblzma.node +0 -0
  22. package/build/Release/obj.target/action_after_build.stamp +0 -0
  23. package/build/Release/obj.target/node-liblzma/src/bindings/module.o +0 -0
  24. package/build/Release/obj.target/node-liblzma/src/bindings/node-liblzma.o +0 -0
  25. package/build/Release/obj.target/node-liblzma.node +0 -0
  26. package/build/action_after_build.target.mk +0 -32
  27. package/build/binding.Makefile +0 -6
  28. package/build/config.gypi +0 -143
  29. package/build/node-liblzma.node +0 -0
  30. package/build/node-liblzma.target.mk +0 -144
  31. package/build.yml +0 -65
  32. package/deps/xz/ABOUT-NLS +0 -1327
  33. package/deps/xz/AUTHORS +0 -27
  34. package/deps/xz/COPYING +0 -65
  35. package/deps/xz/COPYING.GPLv2 +0 -339
  36. package/deps/xz/COPYING.GPLv3 +0 -674
  37. package/deps/xz/COPYING.LGPLv2.1 +0 -502
  38. package/deps/xz/ChangeLog +0 -14953
  39. package/deps/xz/Doxyfile +0 -1234
  40. package/deps/xz/Doxyfile.in +0 -1234
  41. package/deps/xz/INSTALL +0 -554
  42. package/deps/xz/INSTALL.generic +0 -365
  43. package/deps/xz/Makefile +0 -1067
  44. package/deps/xz/Makefile.am +0 -109
  45. package/deps/xz/Makefile.in +0 -1067
  46. package/deps/xz/NEWS +0 -505
  47. package/deps/xz/PACKAGERS +0 -231
  48. package/deps/xz/README +0 -308
  49. package/deps/xz/THANKS +0 -116
  50. package/deps/xz/TODO +0 -111
  51. package/deps/xz/aclocal.m4 +0 -1225
  52. package/deps/xz/autogen.sh +0 -22
  53. package/deps/xz/autom4te.cache/output.0 +0 -21751
  54. package/deps/xz/autom4te.cache/output.1 +0 -21751
  55. package/deps/xz/autom4te.cache/requests +0 -415
  56. package/deps/xz/autom4te.cache/traces.0 +0 -6996
  57. package/deps/xz/autom4te.cache/traces.1 +0 -1783
  58. package/deps/xz/build-aux/compile +0 -347
  59. package/deps/xz/build-aux/config.guess +0 -1558
  60. package/deps/xz/build-aux/config.rpath +0 -672
  61. package/deps/xz/build-aux/config.sub +0 -1791
  62. package/deps/xz/build-aux/depcomp +0 -791
  63. package/deps/xz/build-aux/install-sh +0 -527
  64. package/deps/xz/build-aux/ltmain.sh +0 -9661
  65. package/deps/xz/build-aux/manconv.sh +0 -58
  66. package/deps/xz/build-aux/missing +0 -215
  67. package/deps/xz/build-aux/version.sh +0 -24
  68. package/deps/xz/config.h +0 -487
  69. package/deps/xz/config.h.in +0 -486
  70. package/deps/xz/config.h.in~ +0 -485
  71. package/deps/xz/config.log +0 -5446
  72. package/deps/xz/config.status +0 -2587
  73. package/deps/xz/configure +0 -21751
  74. package/deps/xz/configure.ac +0 -842
  75. package/deps/xz/debug/.deps/crc32.Po +0 -1
  76. package/deps/xz/debug/.deps/full_flush.Po +0 -1
  77. package/deps/xz/debug/.deps/hex2bin.Po +0 -1
  78. package/deps/xz/debug/.deps/known_sizes.Po +0 -1
  79. package/deps/xz/debug/.deps/memusage.Po +0 -1
  80. package/deps/xz/debug/.deps/repeat.Po +0 -1
  81. package/deps/xz/debug/.deps/sync_flush.Po +0 -1
  82. package/deps/xz/debug/Makefile +0 -691
  83. package/deps/xz/debug/Makefile.am +0 -30
  84. package/deps/xz/debug/Makefile.in +0 -691
  85. package/deps/xz/debug/README +0 -17
  86. package/deps/xz/debug/crc32.c +0 -39
  87. package/deps/xz/debug/full_flush.c +0 -103
  88. package/deps/xz/debug/hex2bin.c +0 -53
  89. package/deps/xz/debug/known_sizes.c +0 -129
  90. package/deps/xz/debug/memusage.c +0 -51
  91. package/deps/xz/debug/repeat.c +0 -36
  92. package/deps/xz/debug/sync_flush.c +0 -125
  93. package/deps/xz/debug/translation.bash +0 -100
  94. package/deps/xz/doc/examples/00_README.txt +0 -31
  95. package/deps/xz/doc/examples/01_compress_easy.c +0 -297
  96. package/deps/xz/doc/examples/02_decompress.c +0 -287
  97. package/deps/xz/doc/examples/03_compress_custom.c +0 -193
  98. package/deps/xz/doc/examples/04_compress_easy_mt.c +0 -206
  99. package/deps/xz/doc/examples/Makefile +0 -24
  100. package/deps/xz/doc/examples_old/xz_pipe_comp.c +0 -127
  101. package/deps/xz/doc/examples_old/xz_pipe_decomp.c +0 -123
  102. package/deps/xz/doc/faq.txt +0 -224
  103. package/deps/xz/doc/history.txt +0 -150
  104. package/deps/xz/doc/lzma-file-format.txt +0 -166
  105. package/deps/xz/doc/man/pdf-a4/lzmainfo-a4.pdf +0 -0
  106. package/deps/xz/doc/man/pdf-a4/xz-a4.pdf +0 -0
  107. package/deps/xz/doc/man/pdf-a4/xzdec-a4.pdf +0 -0
  108. package/deps/xz/doc/man/pdf-a4/xzdiff-a4.pdf +0 -0
  109. package/deps/xz/doc/man/pdf-a4/xzgrep-a4.pdf +0 -0
  110. package/deps/xz/doc/man/pdf-a4/xzless-a4.pdf +0 -0
  111. package/deps/xz/doc/man/pdf-a4/xzmore-a4.pdf +0 -0
  112. package/deps/xz/doc/man/pdf-letter/lzmainfo-letter.pdf +0 -0
  113. package/deps/xz/doc/man/pdf-letter/xz-letter.pdf +0 -0
  114. package/deps/xz/doc/man/pdf-letter/xzdec-letter.pdf +0 -0
  115. package/deps/xz/doc/man/pdf-letter/xzdiff-letter.pdf +0 -0
  116. package/deps/xz/doc/man/pdf-letter/xzgrep-letter.pdf +0 -0
  117. package/deps/xz/doc/man/pdf-letter/xzless-letter.pdf +0 -0
  118. package/deps/xz/doc/man/pdf-letter/xzmore-letter.pdf +0 -0
  119. package/deps/xz/doc/man/txt/lzmainfo.txt +0 -40
  120. package/deps/xz/doc/man/txt/xz.txt +0 -1483
  121. package/deps/xz/doc/man/txt/xzdec.txt +0 -80
  122. package/deps/xz/doc/man/txt/xzdiff.txt +0 -36
  123. package/deps/xz/doc/man/txt/xzgrep.txt +0 -39
  124. package/deps/xz/doc/man/txt/xzless.txt +0 -39
  125. package/deps/xz/doc/man/txt/xzmore.txt +0 -34
  126. package/deps/xz/doc/xz-file-format.txt +0 -1150
  127. package/deps/xz/dos/INSTALL.txt +0 -79
  128. package/deps/xz/dos/Makefile +0 -147
  129. package/deps/xz/dos/README.txt +0 -123
  130. package/deps/xz/dos/config.h +0 -130
  131. package/deps/xz/extra/7z2lzma/7z2lzma.bash +0 -115
  132. package/deps/xz/extra/scanlzma/scanlzma.c +0 -84
  133. package/deps/xz/include/lzma/base.h +0 -654
  134. package/deps/xz/include/lzma/bcj.h +0 -90
  135. package/deps/xz/include/lzma/block.h +0 -581
  136. package/deps/xz/include/lzma/check.h +0 -150
  137. package/deps/xz/include/lzma/container.h +0 -619
  138. package/deps/xz/include/lzma/delta.h +0 -77
  139. package/deps/xz/include/lzma/filter.h +0 -425
  140. package/deps/xz/include/lzma/hardware.h +0 -64
  141. package/deps/xz/include/lzma/index.h +0 -682
  142. package/deps/xz/include/lzma/index_hash.h +0 -107
  143. package/deps/xz/include/lzma/lzma12.h +0 -420
  144. package/deps/xz/include/lzma/stream_flags.h +0 -223
  145. package/deps/xz/include/lzma/version.h +0 -121
  146. package/deps/xz/include/lzma/vli.h +0 -166
  147. package/deps/xz/include/lzma.h +0 -321
  148. package/deps/xz/lib/.deps/getopt.Po +0 -1
  149. package/deps/xz/lib/.deps/getopt1.Po +0 -1
  150. package/deps/xz/lib/Makefile +0 -566
  151. package/deps/xz/lib/Makefile.am +0 -32
  152. package/deps/xz/lib/Makefile.in +0 -566
  153. package/deps/xz/lib/getopt.c +0 -1197
  154. package/deps/xz/lib/getopt.in.h +0 -226
  155. package/deps/xz/lib/getopt1.c +0 -171
  156. package/deps/xz/lib/getopt_int.h +0 -131
  157. package/deps/xz/lib/liblzma.a +0 -0
  158. package/deps/xz/lib/liblzma.la +0 -41
  159. package/deps/xz/lib/pkgconfig/liblzma.pc +0 -19
  160. package/deps/xz/libtool +0 -10221
  161. package/deps/xz/m4/ax_pthread.m4 +0 -332
  162. package/deps/xz/m4/codeset.m4 +0 -21
  163. package/deps/xz/m4/fcntl-o.m4 +0 -81
  164. package/deps/xz/m4/getopt.m4 +0 -71
  165. package/deps/xz/m4/gettext.m4 +0 -383
  166. package/deps/xz/m4/glibc2.m4 +0 -30
  167. package/deps/xz/m4/glibc21.m4 +0 -30
  168. package/deps/xz/m4/iconv.m4 +0 -199
  169. package/deps/xz/m4/intdiv0.m4 +0 -84
  170. package/deps/xz/m4/intl.m4 +0 -294
  171. package/deps/xz/m4/intldir.m4 +0 -19
  172. package/deps/xz/m4/intlmacosx.m4 +0 -51
  173. package/deps/xz/m4/intmax.m4 +0 -33
  174. package/deps/xz/m4/inttypes-pri.m4 +0 -36
  175. package/deps/xz/m4/inttypes_h.m4 +0 -26
  176. package/deps/xz/m4/lcmessage.m4 +0 -31
  177. package/deps/xz/m4/lib-ld.m4 +0 -110
  178. package/deps/xz/m4/lib-link.m4 +0 -774
  179. package/deps/xz/m4/lib-prefix.m4 +0 -224
  180. package/deps/xz/m4/libtool.m4 +0 -7997
  181. package/deps/xz/m4/lock.m4 +0 -37
  182. package/deps/xz/m4/longlong.m4 +0 -106
  183. package/deps/xz/m4/ltoptions.m4 +0 -384
  184. package/deps/xz/m4/ltsugar.m4 +0 -123
  185. package/deps/xz/m4/ltversion.m4 +0 -23
  186. package/deps/xz/m4/lt~obsolete.m4 +0 -98
  187. package/deps/xz/m4/nls.m4 +0 -32
  188. package/deps/xz/m4/po.m4 +0 -449
  189. package/deps/xz/m4/posix-shell.m4 +0 -63
  190. package/deps/xz/m4/printf-posix.m4 +0 -45
  191. package/deps/xz/m4/progtest.m4 +0 -92
  192. package/deps/xz/m4/size_max.m4 +0 -75
  193. package/deps/xz/m4/stdint_h.m4 +0 -26
  194. package/deps/xz/m4/threadlib.m4 +0 -347
  195. package/deps/xz/m4/tuklib_common.m4 +0 -22
  196. package/deps/xz/m4/tuklib_cpucores.m4 +0 -148
  197. package/deps/xz/m4/tuklib_integer.m4 +0 -74
  198. package/deps/xz/m4/tuklib_mbstr.m4 +0 -30
  199. package/deps/xz/m4/tuklib_physmem.m4 +0 -212
  200. package/deps/xz/m4/tuklib_progname.m4 +0 -25
  201. package/deps/xz/m4/uintmax_t.m4 +0 -30
  202. package/deps/xz/m4/visibility.m4 +0 -74
  203. package/deps/xz/m4/wchar_t.m4 +0 -20
  204. package/deps/xz/m4/wint_t.m4 +0 -28
  205. package/deps/xz/m4/xsize.m4 +0 -13
  206. package/deps/xz/macosx/build.sh +0 -113
  207. package/deps/xz/po/LINGUAS +0 -6
  208. package/deps/xz/po/Makefile +0 -549
  209. package/deps/xz/po/Makefile.in +0 -444
  210. package/deps/xz/po/Makefile.in.in +0 -444
  211. package/deps/xz/po/Makevars +0 -46
  212. package/deps/xz/po/Makevars.template +0 -41
  213. package/deps/xz/po/POTFILES +0 -12
  214. package/deps/xz/po/POTFILES.in +0 -13
  215. package/deps/xz/po/Rules-quot +0 -47
  216. package/deps/xz/po/boldquot.sed +0 -10
  217. package/deps/xz/po/cs.gmo +0 -0
  218. package/deps/xz/po/cs.po +0 -989
  219. package/deps/xz/po/de.gmo +0 -0
  220. package/deps/xz/po/de.po +0 -990
  221. package/deps/xz/po/en@boldquot.header +0 -25
  222. package/deps/xz/po/en@quot.header +0 -22
  223. package/deps/xz/po/fr.gmo +0 -0
  224. package/deps/xz/po/fr.po +0 -974
  225. package/deps/xz/po/insert-header.sin +0 -23
  226. package/deps/xz/po/it.gmo +0 -0
  227. package/deps/xz/po/it.po +0 -975
  228. package/deps/xz/po/pl.gmo +0 -0
  229. package/deps/xz/po/pl.po +0 -964
  230. package/deps/xz/po/quot.sed +0 -6
  231. package/deps/xz/po/remove-potcdate.sin +0 -19
  232. package/deps/xz/po/stamp-po +0 -1
  233. package/deps/xz/po/vi.gmo +0 -0
  234. package/deps/xz/po/vi.po +0 -970
  235. package/deps/xz/po/xz.pot +0 -854
  236. package/deps/xz/share/doc/xz/AUTHORS +0 -27
  237. package/deps/xz/share/doc/xz/COPYING +0 -65
  238. package/deps/xz/share/doc/xz/COPYING.GPLv2 +0 -339
  239. package/deps/xz/share/doc/xz/NEWS +0 -505
  240. package/deps/xz/share/doc/xz/README +0 -308
  241. package/deps/xz/share/doc/xz/THANKS +0 -116
  242. package/deps/xz/share/doc/xz/TODO +0 -111
  243. package/deps/xz/share/doc/xz/examples/00_README.txt +0 -31
  244. package/deps/xz/share/doc/xz/examples/01_compress_easy.c +0 -297
  245. package/deps/xz/share/doc/xz/examples/02_decompress.c +0 -287
  246. package/deps/xz/share/doc/xz/examples/03_compress_custom.c +0 -193
  247. package/deps/xz/share/doc/xz/examples/04_compress_easy_mt.c +0 -206
  248. package/deps/xz/share/doc/xz/examples/Makefile +0 -24
  249. package/deps/xz/share/doc/xz/examples_old/xz_pipe_comp.c +0 -127
  250. package/deps/xz/share/doc/xz/examples_old/xz_pipe_decomp.c +0 -123
  251. package/deps/xz/share/doc/xz/faq.txt +0 -224
  252. package/deps/xz/share/doc/xz/history.txt +0 -150
  253. package/deps/xz/share/doc/xz/lzma-file-format.txt +0 -166
  254. package/deps/xz/share/doc/xz/xz-file-format.txt +0 -1150
  255. package/deps/xz/share/locale/cs/LC_MESSAGES/xz.mo +0 -0
  256. package/deps/xz/share/locale/de/LC_MESSAGES/xz.mo +0 -0
  257. package/deps/xz/share/locale/fr/LC_MESSAGES/xz.mo +0 -0
  258. package/deps/xz/share/locale/it/LC_MESSAGES/xz.mo +0 -0
  259. package/deps/xz/share/locale/pl/LC_MESSAGES/xz.mo +0 -0
  260. package/deps/xz/share/locale/vi/LC_MESSAGES/xz.mo +0 -0
  261. package/deps/xz/src/Makefile +0 -674
  262. package/deps/xz/src/Makefile.am +0 -42
  263. package/deps/xz/src/Makefile.in +0 -674
  264. package/deps/xz/src/common/common_w32res.rc +0 -50
  265. package/deps/xz/src/common/mythread.h +0 -521
  266. package/deps/xz/src/common/sysdefs.h +0 -202
  267. package/deps/xz/src/common/tuklib_common.h +0 -71
  268. package/deps/xz/src/common/tuklib_config.h +0 -7
  269. package/deps/xz/src/common/tuklib_cpucores.c +0 -91
  270. package/deps/xz/src/common/tuklib_cpucores.h +0 -23
  271. package/deps/xz/src/common/tuklib_exit.c +0 -57
  272. package/deps/xz/src/common/tuklib_exit.h +0 -25
  273. package/deps/xz/src/common/tuklib_gettext.h +0 -44
  274. package/deps/xz/src/common/tuklib_integer.h +0 -523
  275. package/deps/xz/src/common/tuklib_mbstr.h +0 -66
  276. package/deps/xz/src/common/tuklib_mbstr_fw.c +0 -31
  277. package/deps/xz/src/common/tuklib_mbstr_width.c +0 -64
  278. package/deps/xz/src/common/tuklib_open_stdxxx.c +0 -57
  279. package/deps/xz/src/common/tuklib_open_stdxxx.h +0 -23
  280. package/deps/xz/src/common/tuklib_physmem.c +0 -215
  281. package/deps/xz/src/common/tuklib_physmem.h +0 -28
  282. package/deps/xz/src/common/tuklib_progname.c +0 -50
  283. package/deps/xz/src/common/tuklib_progname.h +0 -32
  284. package/deps/xz/src/liblzma/.deps/liblzma_la-alone_decoder.Plo +0 -269
  285. package/deps/xz/src/liblzma/.deps/liblzma_la-alone_encoder.Plo +0 -263
  286. package/deps/xz/src/liblzma/.deps/liblzma_la-arm.Plo +0 -263
  287. package/deps/xz/src/liblzma/.deps/liblzma_la-armthumb.Plo +0 -263
  288. package/deps/xz/src/liblzma/.deps/liblzma_la-auto_decoder.Plo +0 -263
  289. package/deps/xz/src/liblzma/.deps/liblzma_la-block_buffer_decoder.Plo +0 -261
  290. package/deps/xz/src/liblzma/.deps/liblzma_la-block_buffer_encoder.Plo +0 -273
  291. package/deps/xz/src/liblzma/.deps/liblzma_la-block_decoder.Plo +0 -268
  292. package/deps/xz/src/liblzma/.deps/liblzma_la-block_encoder.Plo +0 -268
  293. package/deps/xz/src/liblzma/.deps/liblzma_la-block_header_decoder.Plo +0 -263
  294. package/deps/xz/src/liblzma/.deps/liblzma_la-block_header_encoder.Plo +0 -263
  295. package/deps/xz/src/liblzma/.deps/liblzma_la-block_util.Plo +0 -260
  296. package/deps/xz/src/liblzma/.deps/liblzma_la-check.Plo +0 -261
  297. package/deps/xz/src/liblzma/.deps/liblzma_la-common.Plo +0 -258
  298. package/deps/xz/src/liblzma/.deps/liblzma_la-crc32_fast.Plo +0 -263
  299. package/deps/xz/src/liblzma/.deps/liblzma_la-crc32_small.Plo +0 -1
  300. package/deps/xz/src/liblzma/.deps/liblzma_la-crc32_table.Plo +0 -260
  301. package/deps/xz/src/liblzma/.deps/liblzma_la-crc32_x86.Plo +0 -1
  302. package/deps/xz/src/liblzma/.deps/liblzma_la-crc64_fast.Plo +0 -263
  303. package/deps/xz/src/liblzma/.deps/liblzma_la-crc64_small.Plo +0 -1
  304. package/deps/xz/src/liblzma/.deps/liblzma_la-crc64_table.Plo +0 -260
  305. package/deps/xz/src/liblzma/.deps/liblzma_la-crc64_x86.Plo +0 -1
  306. package/deps/xz/src/liblzma/.deps/liblzma_la-delta_common.Plo +0 -263
  307. package/deps/xz/src/liblzma/.deps/liblzma_la-delta_decoder.Plo +0 -265
  308. package/deps/xz/src/liblzma/.deps/liblzma_la-delta_encoder.Plo +0 -265
  309. package/deps/xz/src/liblzma/.deps/liblzma_la-easy_buffer_encoder.Plo +0 -261
  310. package/deps/xz/src/liblzma/.deps/liblzma_la-easy_decoder_memusage.Plo +0 -261
  311. package/deps/xz/src/liblzma/.deps/liblzma_la-easy_encoder.Plo +0 -261
  312. package/deps/xz/src/liblzma/.deps/liblzma_la-easy_encoder_memusage.Plo +0 -261
  313. package/deps/xz/src/liblzma/.deps/liblzma_la-easy_preset.Plo +0 -261
  314. package/deps/xz/src/liblzma/.deps/liblzma_la-fastpos_table.Plo +0 -261
  315. package/deps/xz/src/liblzma/.deps/liblzma_la-filter_buffer_decoder.Plo +0 -261
  316. package/deps/xz/src/liblzma/.deps/liblzma_la-filter_buffer_encoder.Plo +0 -261
  317. package/deps/xz/src/liblzma/.deps/liblzma_la-filter_common.Plo +0 -261
  318. package/deps/xz/src/liblzma/.deps/liblzma_la-filter_decoder.Plo +0 -283
  319. package/deps/xz/src/liblzma/.deps/liblzma_la-filter_encoder.Plo +0 -283
  320. package/deps/xz/src/liblzma/.deps/liblzma_la-filter_flags_decoder.Plo +0 -261
  321. package/deps/xz/src/liblzma/.deps/liblzma_la-filter_flags_encoder.Plo +0 -261
  322. package/deps/xz/src/liblzma/.deps/liblzma_la-hardware_cputhreads.Plo +0 -260
  323. package/deps/xz/src/liblzma/.deps/liblzma_la-hardware_physmem.Plo +0 -260
  324. package/deps/xz/src/liblzma/.deps/liblzma_la-ia64.Plo +0 -263
  325. package/deps/xz/src/liblzma/.deps/liblzma_la-index.Plo +0 -262
  326. package/deps/xz/src/liblzma/.deps/liblzma_la-index_decoder.Plo +0 -266
  327. package/deps/xz/src/liblzma/.deps/liblzma_la-index_encoder.Plo +0 -268
  328. package/deps/xz/src/liblzma/.deps/liblzma_la-index_hash.Plo +0 -265
  329. package/deps/xz/src/liblzma/.deps/liblzma_la-lz_decoder.Plo +0 -261
  330. package/deps/xz/src/liblzma/.deps/liblzma_la-lz_encoder.Plo +0 -286
  331. package/deps/xz/src/liblzma/.deps/liblzma_la-lz_encoder_mf.Plo +0 -286
  332. package/deps/xz/src/liblzma/.deps/liblzma_la-lzma2_decoder.Plo +0 -266
  333. package/deps/xz/src/liblzma/.deps/liblzma_la-lzma2_encoder.Plo +0 -268
  334. package/deps/xz/src/liblzma/.deps/liblzma_la-lzma_decoder.Plo +0 -274
  335. package/deps/xz/src/liblzma/.deps/liblzma_la-lzma_encoder.Plo +0 -285
  336. package/deps/xz/src/liblzma/.deps/liblzma_la-lzma_encoder_optimum_fast.Plo +0 -300
  337. package/deps/xz/src/liblzma/.deps/liblzma_la-lzma_encoder_optimum_normal.Plo +0 -303
  338. package/deps/xz/src/liblzma/.deps/liblzma_la-lzma_encoder_presets.Plo +0 -259
  339. package/deps/xz/src/liblzma/.deps/liblzma_la-outqueue.Plo +0 -260
  340. package/deps/xz/src/liblzma/.deps/liblzma_la-powerpc.Plo +0 -263
  341. package/deps/xz/src/liblzma/.deps/liblzma_la-price_table.Plo +0 -266
  342. package/deps/xz/src/liblzma/.deps/liblzma_la-sha256.Plo +0 -261
  343. package/deps/xz/src/liblzma/.deps/liblzma_la-simple_coder.Plo +0 -263
  344. package/deps/xz/src/liblzma/.deps/liblzma_la-simple_decoder.Plo +0 -263
  345. package/deps/xz/src/liblzma/.deps/liblzma_la-simple_encoder.Plo +0 -263
  346. package/deps/xz/src/liblzma/.deps/liblzma_la-sparc.Plo +0 -263
  347. package/deps/xz/src/liblzma/.deps/liblzma_la-stream_buffer_decoder.Plo +0 -261
  348. package/deps/xz/src/liblzma/.deps/liblzma_la-stream_buffer_encoder.Plo +0 -261
  349. package/deps/xz/src/liblzma/.deps/liblzma_la-stream_decoder.Plo +0 -263
  350. package/deps/xz/src/liblzma/.deps/liblzma_la-stream_encoder.Plo +0 -263
  351. package/deps/xz/src/liblzma/.deps/liblzma_la-stream_encoder_mt.Plo +0 -273
  352. package/deps/xz/src/liblzma/.deps/liblzma_la-stream_flags_common.Plo +0 -261
  353. package/deps/xz/src/liblzma/.deps/liblzma_la-stream_flags_decoder.Plo +0 -261
  354. package/deps/xz/src/liblzma/.deps/liblzma_la-stream_flags_encoder.Plo +0 -261
  355. package/deps/xz/src/liblzma/.deps/liblzma_la-tuklib_cpucores.Plo +0 -170
  356. package/deps/xz/src/liblzma/.deps/liblzma_la-tuklib_physmem.Plo +0 -170
  357. package/deps/xz/src/liblzma/.deps/liblzma_la-vli_decoder.Plo +0 -258
  358. package/deps/xz/src/liblzma/.deps/liblzma_la-vli_encoder.Plo +0 -258
  359. package/deps/xz/src/liblzma/.deps/liblzma_la-vli_size.Plo +0 -258
  360. package/deps/xz/src/liblzma/.deps/liblzma_la-x86.Plo +0 -263
  361. package/deps/xz/src/liblzma/.libs/liblzma.a +0 -0
  362. package/deps/xz/src/liblzma/.libs/liblzma.lai +0 -41
  363. package/deps/xz/src/liblzma/Makefile +0 -1858
  364. package/deps/xz/src/liblzma/Makefile.am +0 -122
  365. package/deps/xz/src/liblzma/Makefile.in +0 -1858
  366. package/deps/xz/src/liblzma/api/Makefile +0 -608
  367. package/deps/xz/src/liblzma/api/Makefile.am +0 -23
  368. package/deps/xz/src/liblzma/api/Makefile.in +0 -608
  369. package/deps/xz/src/liblzma/api/lzma/base.h +0 -654
  370. package/deps/xz/src/liblzma/api/lzma/bcj.h +0 -90
  371. package/deps/xz/src/liblzma/api/lzma/block.h +0 -581
  372. package/deps/xz/src/liblzma/api/lzma/check.h +0 -150
  373. package/deps/xz/src/liblzma/api/lzma/container.h +0 -619
  374. package/deps/xz/src/liblzma/api/lzma/delta.h +0 -77
  375. package/deps/xz/src/liblzma/api/lzma/filter.h +0 -425
  376. package/deps/xz/src/liblzma/api/lzma/hardware.h +0 -64
  377. package/deps/xz/src/liblzma/api/lzma/index.h +0 -682
  378. package/deps/xz/src/liblzma/api/lzma/index_hash.h +0 -107
  379. package/deps/xz/src/liblzma/api/lzma/lzma12.h +0 -420
  380. package/deps/xz/src/liblzma/api/lzma/stream_flags.h +0 -223
  381. package/deps/xz/src/liblzma/api/lzma/version.h +0 -121
  382. package/deps/xz/src/liblzma/api/lzma/vli.h +0 -166
  383. package/deps/xz/src/liblzma/api/lzma.h +0 -321
  384. package/deps/xz/src/liblzma/check/Makefile.inc +0 -53
  385. package/deps/xz/src/liblzma/check/check.c +0 -174
  386. package/deps/xz/src/liblzma/check/check.h +0 -162
  387. package/deps/xz/src/liblzma/check/crc32_fast.c +0 -82
  388. package/deps/xz/src/liblzma/check/crc32_small.c +0 -61
  389. package/deps/xz/src/liblzma/check/crc32_table.c +0 -19
  390. package/deps/xz/src/liblzma/check/crc32_table_be.h +0 -525
  391. package/deps/xz/src/liblzma/check/crc32_table_le.h +0 -525
  392. package/deps/xz/src/liblzma/check/crc32_tablegen.c +0 -117
  393. package/deps/xz/src/liblzma/check/crc32_x86.S +0 -304
  394. package/deps/xz/src/liblzma/check/crc64_fast.c +0 -72
  395. package/deps/xz/src/liblzma/check/crc64_small.c +0 -53
  396. package/deps/xz/src/liblzma/check/crc64_table.c +0 -19
  397. package/deps/xz/src/liblzma/check/crc64_table_be.h +0 -521
  398. package/deps/xz/src/liblzma/check/crc64_table_le.h +0 -521
  399. package/deps/xz/src/liblzma/check/crc64_tablegen.c +0 -88
  400. package/deps/xz/src/liblzma/check/crc64_x86.S +0 -287
  401. package/deps/xz/src/liblzma/check/crc_macros.h +0 -30
  402. package/deps/xz/src/liblzma/check/sha256.c +0 -196
  403. package/deps/xz/src/liblzma/common/Makefile.inc +0 -76
  404. package/deps/xz/src/liblzma/common/alone_decoder.c +0 -238
  405. package/deps/xz/src/liblzma/common/alone_decoder.h +0 -23
  406. package/deps/xz/src/liblzma/common/alone_encoder.c +0 -157
  407. package/deps/xz/src/liblzma/common/auto_decoder.c +0 -186
  408. package/deps/xz/src/liblzma/common/block_buffer_decoder.c +0 -80
  409. package/deps/xz/src/liblzma/common/block_buffer_encoder.c +0 -337
  410. package/deps/xz/src/liblzma/common/block_buffer_encoder.h +0 -24
  411. package/deps/xz/src/liblzma/common/block_decoder.c +0 -252
  412. package/deps/xz/src/liblzma/common/block_decoder.h +0 -22
  413. package/deps/xz/src/liblzma/common/block_encoder.c +0 -217
  414. package/deps/xz/src/liblzma/common/block_encoder.h +0 -47
  415. package/deps/xz/src/liblzma/common/block_header_decoder.c +0 -124
  416. package/deps/xz/src/liblzma/common/block_header_encoder.c +0 -132
  417. package/deps/xz/src/liblzma/common/block_util.c +0 -90
  418. package/deps/xz/src/liblzma/common/common.c +0 -443
  419. package/deps/xz/src/liblzma/common/common.h +0 -318
  420. package/deps/xz/src/liblzma/common/easy_buffer_encoder.c +0 -27
  421. package/deps/xz/src/liblzma/common/easy_decoder_memusage.c +0 -24
  422. package/deps/xz/src/liblzma/common/easy_encoder.c +0 -24
  423. package/deps/xz/src/liblzma/common/easy_encoder_memusage.c +0 -24
  424. package/deps/xz/src/liblzma/common/easy_preset.c +0 -27
  425. package/deps/xz/src/liblzma/common/easy_preset.h +0 -32
  426. package/deps/xz/src/liblzma/common/filter_buffer_decoder.c +0 -88
  427. package/deps/xz/src/liblzma/common/filter_buffer_encoder.c +0 -55
  428. package/deps/xz/src/liblzma/common/filter_common.c +0 -337
  429. package/deps/xz/src/liblzma/common/filter_common.h +0 -48
  430. package/deps/xz/src/liblzma/common/filter_decoder.c +0 -184
  431. package/deps/xz/src/liblzma/common/filter_decoder.h +0 -23
  432. package/deps/xz/src/liblzma/common/filter_encoder.c +0 -286
  433. package/deps/xz/src/liblzma/common/filter_encoder.h +0 -27
  434. package/deps/xz/src/liblzma/common/filter_flags_decoder.c +0 -46
  435. package/deps/xz/src/liblzma/common/filter_flags_encoder.c +0 -56
  436. package/deps/xz/src/liblzma/common/hardware_cputhreads.c +0 -22
  437. package/deps/xz/src/liblzma/common/hardware_physmem.c +0 -25
  438. package/deps/xz/src/liblzma/common/index.c +0 -1246
  439. package/deps/xz/src/liblzma/common/index.h +0 -73
  440. package/deps/xz/src/liblzma/common/index_decoder.c +0 -345
  441. package/deps/xz/src/liblzma/common/index_encoder.c +0 -254
  442. package/deps/xz/src/liblzma/common/index_encoder.h +0 -23
  443. package/deps/xz/src/liblzma/common/index_hash.c +0 -334
  444. package/deps/xz/src/liblzma/common/memcmplen.h +0 -175
  445. package/deps/xz/src/liblzma/common/outqueue.c +0 -184
  446. package/deps/xz/src/liblzma/common/outqueue.h +0 -156
  447. package/deps/xz/src/liblzma/common/stream_buffer_decoder.c +0 -91
  448. package/deps/xz/src/liblzma/common/stream_buffer_encoder.c +0 -141
  449. package/deps/xz/src/liblzma/common/stream_decoder.c +0 -462
  450. package/deps/xz/src/liblzma/common/stream_decoder.h +0 -22
  451. package/deps/xz/src/liblzma/common/stream_encoder.c +0 -332
  452. package/deps/xz/src/liblzma/common/stream_encoder_mt.c +0 -1131
  453. package/deps/xz/src/liblzma/common/stream_flags_common.c +0 -47
  454. package/deps/xz/src/liblzma/common/stream_flags_common.h +0 -33
  455. package/deps/xz/src/liblzma/common/stream_flags_decoder.c +0 -82
  456. package/deps/xz/src/liblzma/common/stream_flags_encoder.c +0 -86
  457. package/deps/xz/src/liblzma/common/vli_decoder.c +0 -86
  458. package/deps/xz/src/liblzma/common/vli_encoder.c +0 -69
  459. package/deps/xz/src/liblzma/common/vli_size.c +0 -30
  460. package/deps/xz/src/liblzma/delta/Makefile.inc +0 -23
  461. package/deps/xz/src/liblzma/delta/delta_common.c +0 -70
  462. package/deps/xz/src/liblzma/delta/delta_common.h +0 -20
  463. package/deps/xz/src/liblzma/delta/delta_decoder.c +0 -76
  464. package/deps/xz/src/liblzma/delta/delta_decoder.h +0 -26
  465. package/deps/xz/src/liblzma/delta/delta_encoder.c +0 -121
  466. package/deps/xz/src/liblzma/delta/delta_encoder.h +0 -24
  467. package/deps/xz/src/liblzma/delta/delta_private.h +0 -37
  468. package/deps/xz/src/liblzma/liblzma.la +0 -41
  469. package/deps/xz/src/liblzma/liblzma.map +0 -108
  470. package/deps/xz/src/liblzma/liblzma.pc +0 -19
  471. package/deps/xz/src/liblzma/liblzma.pc.in +0 -19
  472. package/deps/xz/src/liblzma/liblzma_la-alone_decoder.lo +0 -12
  473. package/deps/xz/src/liblzma/liblzma_la-alone_decoder.o +0 -0
  474. package/deps/xz/src/liblzma/liblzma_la-alone_encoder.lo +0 -12
  475. package/deps/xz/src/liblzma/liblzma_la-alone_encoder.o +0 -0
  476. package/deps/xz/src/liblzma/liblzma_la-arm.lo +0 -12
  477. package/deps/xz/src/liblzma/liblzma_la-arm.o +0 -0
  478. package/deps/xz/src/liblzma/liblzma_la-armthumb.lo +0 -12
  479. package/deps/xz/src/liblzma/liblzma_la-armthumb.o +0 -0
  480. package/deps/xz/src/liblzma/liblzma_la-auto_decoder.lo +0 -12
  481. package/deps/xz/src/liblzma/liblzma_la-auto_decoder.o +0 -0
  482. package/deps/xz/src/liblzma/liblzma_la-block_buffer_decoder.lo +0 -12
  483. package/deps/xz/src/liblzma/liblzma_la-block_buffer_decoder.o +0 -0
  484. package/deps/xz/src/liblzma/liblzma_la-block_buffer_encoder.lo +0 -12
  485. package/deps/xz/src/liblzma/liblzma_la-block_buffer_encoder.o +0 -0
  486. package/deps/xz/src/liblzma/liblzma_la-block_decoder.lo +0 -12
  487. package/deps/xz/src/liblzma/liblzma_la-block_decoder.o +0 -0
  488. package/deps/xz/src/liblzma/liblzma_la-block_encoder.lo +0 -12
  489. package/deps/xz/src/liblzma/liblzma_la-block_encoder.o +0 -0
  490. package/deps/xz/src/liblzma/liblzma_la-block_header_decoder.lo +0 -12
  491. package/deps/xz/src/liblzma/liblzma_la-block_header_decoder.o +0 -0
  492. package/deps/xz/src/liblzma/liblzma_la-block_header_encoder.lo +0 -12
  493. package/deps/xz/src/liblzma/liblzma_la-block_header_encoder.o +0 -0
  494. package/deps/xz/src/liblzma/liblzma_la-block_util.lo +0 -12
  495. package/deps/xz/src/liblzma/liblzma_la-block_util.o +0 -0
  496. package/deps/xz/src/liblzma/liblzma_la-check.lo +0 -12
  497. package/deps/xz/src/liblzma/liblzma_la-check.o +0 -0
  498. package/deps/xz/src/liblzma/liblzma_la-common.lo +0 -12
  499. package/deps/xz/src/liblzma/liblzma_la-common.o +0 -0
  500. package/deps/xz/src/liblzma/liblzma_la-crc32_fast.lo +0 -12
  501. package/deps/xz/src/liblzma/liblzma_la-crc32_fast.o +0 -0
  502. package/deps/xz/src/liblzma/liblzma_la-crc32_table.lo +0 -12
  503. package/deps/xz/src/liblzma/liblzma_la-crc32_table.o +0 -0
  504. package/deps/xz/src/liblzma/liblzma_la-crc64_fast.lo +0 -12
  505. package/deps/xz/src/liblzma/liblzma_la-crc64_fast.o +0 -0
  506. package/deps/xz/src/liblzma/liblzma_la-crc64_table.lo +0 -12
  507. package/deps/xz/src/liblzma/liblzma_la-crc64_table.o +0 -0
  508. package/deps/xz/src/liblzma/liblzma_la-delta_common.lo +0 -12
  509. package/deps/xz/src/liblzma/liblzma_la-delta_common.o +0 -0
  510. package/deps/xz/src/liblzma/liblzma_la-delta_decoder.lo +0 -12
  511. package/deps/xz/src/liblzma/liblzma_la-delta_decoder.o +0 -0
  512. package/deps/xz/src/liblzma/liblzma_la-delta_encoder.lo +0 -12
  513. package/deps/xz/src/liblzma/liblzma_la-delta_encoder.o +0 -0
  514. package/deps/xz/src/liblzma/liblzma_la-easy_buffer_encoder.lo +0 -12
  515. package/deps/xz/src/liblzma/liblzma_la-easy_buffer_encoder.o +0 -0
  516. package/deps/xz/src/liblzma/liblzma_la-easy_decoder_memusage.lo +0 -12
  517. package/deps/xz/src/liblzma/liblzma_la-easy_decoder_memusage.o +0 -0
  518. package/deps/xz/src/liblzma/liblzma_la-easy_encoder.lo +0 -12
  519. package/deps/xz/src/liblzma/liblzma_la-easy_encoder.o +0 -0
  520. package/deps/xz/src/liblzma/liblzma_la-easy_encoder_memusage.lo +0 -12
  521. package/deps/xz/src/liblzma/liblzma_la-easy_encoder_memusage.o +0 -0
  522. package/deps/xz/src/liblzma/liblzma_la-easy_preset.lo +0 -12
  523. package/deps/xz/src/liblzma/liblzma_la-easy_preset.o +0 -0
  524. package/deps/xz/src/liblzma/liblzma_la-fastpos_table.lo +0 -12
  525. package/deps/xz/src/liblzma/liblzma_la-fastpos_table.o +0 -0
  526. package/deps/xz/src/liblzma/liblzma_la-filter_buffer_decoder.lo +0 -12
  527. package/deps/xz/src/liblzma/liblzma_la-filter_buffer_decoder.o +0 -0
  528. package/deps/xz/src/liblzma/liblzma_la-filter_buffer_encoder.lo +0 -12
  529. package/deps/xz/src/liblzma/liblzma_la-filter_buffer_encoder.o +0 -0
  530. package/deps/xz/src/liblzma/liblzma_la-filter_common.lo +0 -12
  531. package/deps/xz/src/liblzma/liblzma_la-filter_common.o +0 -0
  532. package/deps/xz/src/liblzma/liblzma_la-filter_decoder.lo +0 -12
  533. package/deps/xz/src/liblzma/liblzma_la-filter_decoder.o +0 -0
  534. package/deps/xz/src/liblzma/liblzma_la-filter_encoder.lo +0 -12
  535. package/deps/xz/src/liblzma/liblzma_la-filter_encoder.o +0 -0
  536. package/deps/xz/src/liblzma/liblzma_la-filter_flags_decoder.lo +0 -12
  537. package/deps/xz/src/liblzma/liblzma_la-filter_flags_decoder.o +0 -0
  538. package/deps/xz/src/liblzma/liblzma_la-filter_flags_encoder.lo +0 -12
  539. package/deps/xz/src/liblzma/liblzma_la-filter_flags_encoder.o +0 -0
  540. package/deps/xz/src/liblzma/liblzma_la-hardware_cputhreads.lo +0 -12
  541. package/deps/xz/src/liblzma/liblzma_la-hardware_cputhreads.o +0 -0
  542. package/deps/xz/src/liblzma/liblzma_la-hardware_physmem.lo +0 -12
  543. package/deps/xz/src/liblzma/liblzma_la-hardware_physmem.o +0 -0
  544. package/deps/xz/src/liblzma/liblzma_la-ia64.lo +0 -12
  545. package/deps/xz/src/liblzma/liblzma_la-ia64.o +0 -0
  546. package/deps/xz/src/liblzma/liblzma_la-index.lo +0 -12
  547. package/deps/xz/src/liblzma/liblzma_la-index.o +0 -0
  548. package/deps/xz/src/liblzma/liblzma_la-index_decoder.lo +0 -12
  549. package/deps/xz/src/liblzma/liblzma_la-index_decoder.o +0 -0
  550. package/deps/xz/src/liblzma/liblzma_la-index_encoder.lo +0 -12
  551. package/deps/xz/src/liblzma/liblzma_la-index_encoder.o +0 -0
  552. package/deps/xz/src/liblzma/liblzma_la-index_hash.lo +0 -12
  553. package/deps/xz/src/liblzma/liblzma_la-index_hash.o +0 -0
  554. package/deps/xz/src/liblzma/liblzma_la-lz_decoder.lo +0 -12
  555. package/deps/xz/src/liblzma/liblzma_la-lz_decoder.o +0 -0
  556. package/deps/xz/src/liblzma/liblzma_la-lz_encoder.lo +0 -12
  557. package/deps/xz/src/liblzma/liblzma_la-lz_encoder.o +0 -0
  558. package/deps/xz/src/liblzma/liblzma_la-lz_encoder_mf.lo +0 -12
  559. package/deps/xz/src/liblzma/liblzma_la-lz_encoder_mf.o +0 -0
  560. package/deps/xz/src/liblzma/liblzma_la-lzma2_decoder.lo +0 -12
  561. package/deps/xz/src/liblzma/liblzma_la-lzma2_decoder.o +0 -0
  562. package/deps/xz/src/liblzma/liblzma_la-lzma2_encoder.lo +0 -12
  563. package/deps/xz/src/liblzma/liblzma_la-lzma2_encoder.o +0 -0
  564. package/deps/xz/src/liblzma/liblzma_la-lzma_decoder.lo +0 -12
  565. package/deps/xz/src/liblzma/liblzma_la-lzma_decoder.o +0 -0
  566. package/deps/xz/src/liblzma/liblzma_la-lzma_encoder.lo +0 -12
  567. package/deps/xz/src/liblzma/liblzma_la-lzma_encoder.o +0 -0
  568. package/deps/xz/src/liblzma/liblzma_la-lzma_encoder_optimum_fast.lo +0 -12
  569. package/deps/xz/src/liblzma/liblzma_la-lzma_encoder_optimum_fast.o +0 -0
  570. package/deps/xz/src/liblzma/liblzma_la-lzma_encoder_optimum_normal.lo +0 -12
  571. package/deps/xz/src/liblzma/liblzma_la-lzma_encoder_optimum_normal.o +0 -0
  572. package/deps/xz/src/liblzma/liblzma_la-lzma_encoder_presets.lo +0 -12
  573. package/deps/xz/src/liblzma/liblzma_la-lzma_encoder_presets.o +0 -0
  574. package/deps/xz/src/liblzma/liblzma_la-outqueue.lo +0 -12
  575. package/deps/xz/src/liblzma/liblzma_la-outqueue.o +0 -0
  576. package/deps/xz/src/liblzma/liblzma_la-powerpc.lo +0 -12
  577. package/deps/xz/src/liblzma/liblzma_la-powerpc.o +0 -0
  578. package/deps/xz/src/liblzma/liblzma_la-price_table.lo +0 -12
  579. package/deps/xz/src/liblzma/liblzma_la-price_table.o +0 -0
  580. package/deps/xz/src/liblzma/liblzma_la-sha256.lo +0 -12
  581. package/deps/xz/src/liblzma/liblzma_la-sha256.o +0 -0
  582. package/deps/xz/src/liblzma/liblzma_la-simple_coder.lo +0 -12
  583. package/deps/xz/src/liblzma/liblzma_la-simple_coder.o +0 -0
  584. package/deps/xz/src/liblzma/liblzma_la-simple_decoder.lo +0 -12
  585. package/deps/xz/src/liblzma/liblzma_la-simple_decoder.o +0 -0
  586. package/deps/xz/src/liblzma/liblzma_la-simple_encoder.lo +0 -12
  587. package/deps/xz/src/liblzma/liblzma_la-simple_encoder.o +0 -0
  588. package/deps/xz/src/liblzma/liblzma_la-sparc.lo +0 -12
  589. package/deps/xz/src/liblzma/liblzma_la-sparc.o +0 -0
  590. package/deps/xz/src/liblzma/liblzma_la-stream_buffer_decoder.lo +0 -12
  591. package/deps/xz/src/liblzma/liblzma_la-stream_buffer_decoder.o +0 -0
  592. package/deps/xz/src/liblzma/liblzma_la-stream_buffer_encoder.lo +0 -12
  593. package/deps/xz/src/liblzma/liblzma_la-stream_buffer_encoder.o +0 -0
  594. package/deps/xz/src/liblzma/liblzma_la-stream_decoder.lo +0 -12
  595. package/deps/xz/src/liblzma/liblzma_la-stream_decoder.o +0 -0
  596. package/deps/xz/src/liblzma/liblzma_la-stream_encoder.lo +0 -12
  597. package/deps/xz/src/liblzma/liblzma_la-stream_encoder.o +0 -0
  598. package/deps/xz/src/liblzma/liblzma_la-stream_encoder_mt.lo +0 -12
  599. package/deps/xz/src/liblzma/liblzma_la-stream_encoder_mt.o +0 -0
  600. package/deps/xz/src/liblzma/liblzma_la-stream_flags_common.lo +0 -12
  601. package/deps/xz/src/liblzma/liblzma_la-stream_flags_common.o +0 -0
  602. package/deps/xz/src/liblzma/liblzma_la-stream_flags_decoder.lo +0 -12
  603. package/deps/xz/src/liblzma/liblzma_la-stream_flags_decoder.o +0 -0
  604. package/deps/xz/src/liblzma/liblzma_la-stream_flags_encoder.lo +0 -12
  605. package/deps/xz/src/liblzma/liblzma_la-stream_flags_encoder.o +0 -0
  606. package/deps/xz/src/liblzma/liblzma_la-tuklib_cpucores.lo +0 -12
  607. package/deps/xz/src/liblzma/liblzma_la-tuklib_cpucores.o +0 -0
  608. package/deps/xz/src/liblzma/liblzma_la-tuklib_physmem.lo +0 -12
  609. package/deps/xz/src/liblzma/liblzma_la-tuklib_physmem.o +0 -0
  610. package/deps/xz/src/liblzma/liblzma_la-vli_decoder.lo +0 -12
  611. package/deps/xz/src/liblzma/liblzma_la-vli_decoder.o +0 -0
  612. package/deps/xz/src/liblzma/liblzma_la-vli_encoder.lo +0 -12
  613. package/deps/xz/src/liblzma/liblzma_la-vli_encoder.o +0 -0
  614. package/deps/xz/src/liblzma/liblzma_la-vli_size.lo +0 -12
  615. package/deps/xz/src/liblzma/liblzma_la-vli_size.o +0 -0
  616. package/deps/xz/src/liblzma/liblzma_la-x86.lo +0 -12
  617. package/deps/xz/src/liblzma/liblzma_la-x86.o +0 -0
  618. package/deps/xz/src/liblzma/liblzma_w32res.rc +0 -12
  619. package/deps/xz/src/liblzma/lz/Makefile.inc +0 -22
  620. package/deps/xz/src/liblzma/lz/lz_decoder.c +0 -300
  621. package/deps/xz/src/liblzma/lz/lz_decoder.h +0 -235
  622. package/deps/xz/src/liblzma/lz/lz_encoder.c +0 -605
  623. package/deps/xz/src/liblzma/lz/lz_encoder.h +0 -328
  624. package/deps/xz/src/liblzma/lz/lz_encoder_hash.h +0 -108
  625. package/deps/xz/src/liblzma/lz/lz_encoder_hash_table.h +0 -68
  626. package/deps/xz/src/liblzma/lz/lz_encoder_mf.c +0 -744
  627. package/deps/xz/src/liblzma/lzma/Makefile.inc +0 -43
  628. package/deps/xz/src/liblzma/lzma/fastpos.h +0 -141
  629. package/deps/xz/src/liblzma/lzma/fastpos_table.c +0 -519
  630. package/deps/xz/src/liblzma/lzma/fastpos_tablegen.c +0 -56
  631. package/deps/xz/src/liblzma/lzma/lzma2_decoder.c +0 -304
  632. package/deps/xz/src/liblzma/lzma/lzma2_decoder.h +0 -29
  633. package/deps/xz/src/liblzma/lzma/lzma2_encoder.c +0 -403
  634. package/deps/xz/src/liblzma/lzma/lzma2_encoder.h +0 -43
  635. package/deps/xz/src/liblzma/lzma/lzma_common.h +0 -224
  636. package/deps/xz/src/liblzma/lzma/lzma_decoder.c +0 -1061
  637. package/deps/xz/src/liblzma/lzma/lzma_decoder.h +0 -53
  638. package/deps/xz/src/liblzma/lzma/lzma_encoder.c +0 -676
  639. package/deps/xz/src/liblzma/lzma/lzma_encoder.h +0 -55
  640. package/deps/xz/src/liblzma/lzma/lzma_encoder_optimum_fast.c +0 -169
  641. package/deps/xz/src/liblzma/lzma/lzma_encoder_optimum_normal.c +0 -854
  642. package/deps/xz/src/liblzma/lzma/lzma_encoder_presets.c +0 -63
  643. package/deps/xz/src/liblzma/lzma/lzma_encoder_private.h +0 -148
  644. package/deps/xz/src/liblzma/rangecoder/Makefile.inc +0 -21
  645. package/deps/xz/src/liblzma/rangecoder/price.h +0 -92
  646. package/deps/xz/src/liblzma/rangecoder/price_table.c +0 -22
  647. package/deps/xz/src/liblzma/rangecoder/price_tablegen.c +0 -87
  648. package/deps/xz/src/liblzma/rangecoder/range_common.h +0 -73
  649. package/deps/xz/src/liblzma/rangecoder/range_decoder.h +0 -185
  650. package/deps/xz/src/liblzma/rangecoder/range_encoder.h +0 -231
  651. package/deps/xz/src/liblzma/simple/Makefile.inc +0 -47
  652. package/deps/xz/src/liblzma/simple/arm.c +0 -71
  653. package/deps/xz/src/liblzma/simple/armthumb.c +0 -76
  654. package/deps/xz/src/liblzma/simple/ia64.c +0 -112
  655. package/deps/xz/src/liblzma/simple/powerpc.c +0 -75
  656. package/deps/xz/src/liblzma/simple/simple_coder.c +0 -277
  657. package/deps/xz/src/liblzma/simple/simple_coder.h +0 -72
  658. package/deps/xz/src/liblzma/simple/simple_decoder.c +0 -40
  659. package/deps/xz/src/liblzma/simple/simple_decoder.h +0 -22
  660. package/deps/xz/src/liblzma/simple/simple_encoder.c +0 -38
  661. package/deps/xz/src/liblzma/simple/simple_encoder.h +0 -23
  662. package/deps/xz/src/liblzma/simple/simple_private.h +0 -76
  663. package/deps/xz/src/liblzma/simple/sparc.c +0 -83
  664. package/deps/xz/src/liblzma/simple/x86.c +0 -156
  665. package/deps/xz/src/liblzma/validate_map.sh +0 -68
  666. package/deps/xz/src/lzmainfo/.deps/lzmainfo-lzmainfo.Po +0 -1
  667. package/deps/xz/src/lzmainfo/.deps/lzmainfo-tuklib_exit.Po +0 -1
  668. package/deps/xz/src/lzmainfo/.deps/lzmainfo-tuklib_progname.Po +0 -1
  669. package/deps/xz/src/lzmainfo/Makefile +0 -802
  670. package/deps/xz/src/lzmainfo/Makefile.am +0 -39
  671. package/deps/xz/src/lzmainfo/Makefile.in +0 -802
  672. package/deps/xz/src/lzmainfo/lzmainfo.1 +0 -60
  673. package/deps/xz/src/lzmainfo/lzmainfo.c +0 -219
  674. package/deps/xz/src/lzmainfo/lzmainfo_w32res.rc +0 -12
  675. package/deps/xz/src/scripts/Makefile +0 -642
  676. package/deps/xz/src/scripts/Makefile.am +0 -55
  677. package/deps/xz/src/scripts/Makefile.in +0 -642
  678. package/deps/xz/src/scripts/xzdiff +0 -200
  679. package/deps/xz/src/scripts/xzdiff.1 +0 -77
  680. package/deps/xz/src/scripts/xzdiff.in +0 -200
  681. package/deps/xz/src/scripts/xzgrep +0 -215
  682. package/deps/xz/src/scripts/xzgrep.1 +0 -98
  683. package/deps/xz/src/scripts/xzgrep.in +0 -215
  684. package/deps/xz/src/scripts/xzless +0 -58
  685. package/deps/xz/src/scripts/xzless.1 +0 -69
  686. package/deps/xz/src/scripts/xzless.in +0 -58
  687. package/deps/xz/src/scripts/xzmore +0 -78
  688. package/deps/xz/src/scripts/xzmore.1 +0 -55
  689. package/deps/xz/src/scripts/xzmore.in +0 -78
  690. package/deps/xz/src/xz/.deps/xz-args.Po +0 -1
  691. package/deps/xz/src/xz/.deps/xz-coder.Po +0 -1
  692. package/deps/xz/src/xz/.deps/xz-file_io.Po +0 -1
  693. package/deps/xz/src/xz/.deps/xz-hardware.Po +0 -1
  694. package/deps/xz/src/xz/.deps/xz-list.Po +0 -1
  695. package/deps/xz/src/xz/.deps/xz-main.Po +0 -1
  696. package/deps/xz/src/xz/.deps/xz-message.Po +0 -1
  697. package/deps/xz/src/xz/.deps/xz-mytime.Po +0 -1
  698. package/deps/xz/src/xz/.deps/xz-options.Po +0 -1
  699. package/deps/xz/src/xz/.deps/xz-signals.Po +0 -1
  700. package/deps/xz/src/xz/.deps/xz-suffix.Po +0 -1
  701. package/deps/xz/src/xz/.deps/xz-tuklib_exit.Po +0 -1
  702. package/deps/xz/src/xz/.deps/xz-tuklib_mbstr_fw.Po +0 -1
  703. package/deps/xz/src/xz/.deps/xz-tuklib_mbstr_width.Po +0 -1
  704. package/deps/xz/src/xz/.deps/xz-tuklib_open_stdxxx.Po +0 -1
  705. package/deps/xz/src/xz/.deps/xz-tuklib_progname.Po +0 -1
  706. package/deps/xz/src/xz/.deps/xz-util.Po +0 -1
  707. package/deps/xz/src/xz/Makefile +0 -1066
  708. package/deps/xz/src/xz/Makefile.am +0 -107
  709. package/deps/xz/src/xz/Makefile.in +0 -1066
  710. package/deps/xz/src/xz/args.c +0 -684
  711. package/deps/xz/src/xz/args.h +0 -44
  712. package/deps/xz/src/xz/coder.c +0 -919
  713. package/deps/xz/src/xz/coder.h +0 -76
  714. package/deps/xz/src/xz/file_io.c +0 -1184
  715. package/deps/xz/src/xz/file_io.h +0 -150
  716. package/deps/xz/src/xz/hardware.c +0 -150
  717. package/deps/xz/src/xz/hardware.h +0 -37
  718. package/deps/xz/src/xz/list.c +0 -1186
  719. package/deps/xz/src/xz/list.h +0 -18
  720. package/deps/xz/src/xz/main.c +0 -307
  721. package/deps/xz/src/xz/main.h +0 -30
  722. package/deps/xz/src/xz/message.c +0 -1258
  723. package/deps/xz/src/xz/message.h +0 -167
  724. package/deps/xz/src/xz/mytime.c +0 -89
  725. package/deps/xz/src/xz/mytime.h +0 -47
  726. package/deps/xz/src/xz/options.c +0 -363
  727. package/deps/xz/src/xz/options.h +0 -31
  728. package/deps/xz/src/xz/private.h +0 -59
  729. package/deps/xz/src/xz/signals.c +0 -209
  730. package/deps/xz/src/xz/signals.h +0 -43
  731. package/deps/xz/src/xz/suffix.c +0 -399
  732. package/deps/xz/src/xz/suffix.h +0 -28
  733. package/deps/xz/src/xz/util.c +0 -288
  734. package/deps/xz/src/xz/util.h +0 -123
  735. package/deps/xz/src/xz/xz.1 +0 -2786
  736. package/deps/xz/src/xz/xz_w32res.rc +0 -12
  737. package/deps/xz/src/xzdec/.deps/lzmadec-tuklib_exit.Po +0 -1
  738. package/deps/xz/src/xzdec/.deps/lzmadec-tuklib_progname.Po +0 -1
  739. package/deps/xz/src/xzdec/.deps/lzmadec-xzdec.Po +0 -1
  740. package/deps/xz/src/xzdec/.deps/xzdec-tuklib_exit.Po +0 -1
  741. package/deps/xz/src/xzdec/.deps/xzdec-tuklib_progname.Po +0 -1
  742. package/deps/xz/src/xzdec/.deps/xzdec-xzdec.Po +0 -1
  743. package/deps/xz/src/xzdec/Makefile +0 -901
  744. package/deps/xz/src/xzdec/Makefile.am +0 -82
  745. package/deps/xz/src/xzdec/Makefile.in +0 -901
  746. package/deps/xz/src/xzdec/lzmadec_w32res.rc +0 -12
  747. package/deps/xz/src/xzdec/xzdec.1 +0 -146
  748. package/deps/xz/src/xzdec/xzdec.c +0 -323
  749. package/deps/xz/src/xzdec/xzdec_w32res.rc +0 -12
  750. package/deps/xz/stamp-h1 +0 -1
  751. package/deps/xz/tests/.deps/create_compress_files.Po +0 -1
  752. package/deps/xz/tests/.deps/test_bcj_exact_size.Po +0 -1
  753. package/deps/xz/tests/.deps/test_block_header.Po +0 -1
  754. package/deps/xz/tests/.deps/test_check.Po +0 -1
  755. package/deps/xz/tests/.deps/test_filter_flags.Po +0 -1
  756. package/deps/xz/tests/.deps/test_index.Po +0 -1
  757. package/deps/xz/tests/.deps/test_stream_flags.Po +0 -1
  758. package/deps/xz/tests/Makefile +0 -832
  759. package/deps/xz/tests/Makefile.am +0 -57
  760. package/deps/xz/tests/Makefile.in +0 -832
  761. package/deps/xz/tests/bcj_test.c +0 -65
  762. package/deps/xz/tests/compress_prepared_bcj_sparc +0 -0
  763. package/deps/xz/tests/compress_prepared_bcj_x86 +0 -0
  764. package/deps/xz/tests/create_compress_files.c +0 -158
  765. package/deps/xz/tests/files/README +0 -240
  766. package/deps/xz/tests/files/bad-0-backward_size.xz +0 -0
  767. package/deps/xz/tests/files/bad-0-empty-truncated.xz +0 -0
  768. package/deps/xz/tests/files/bad-0-footer_magic.xz +0 -0
  769. package/deps/xz/tests/files/bad-0-header_magic.xz +0 -0
  770. package/deps/xz/tests/files/bad-0-nonempty_index.xz +0 -0
  771. package/deps/xz/tests/files/bad-0cat-alone.xz +0 -0
  772. package/deps/xz/tests/files/bad-0cat-header_magic.xz +0 -0
  773. package/deps/xz/tests/files/bad-0catpad-empty.xz +0 -0
  774. package/deps/xz/tests/files/bad-0pad-empty.xz +0 -0
  775. package/deps/xz/tests/files/bad-1-block_header-1.xz +0 -0
  776. package/deps/xz/tests/files/bad-1-block_header-2.xz +0 -0
  777. package/deps/xz/tests/files/bad-1-block_header-3.xz +0 -0
  778. package/deps/xz/tests/files/bad-1-block_header-4.xz +0 -0
  779. package/deps/xz/tests/files/bad-1-block_header-5.xz +0 -0
  780. package/deps/xz/tests/files/bad-1-block_header-6.xz +0 -0
  781. package/deps/xz/tests/files/bad-1-check-crc32.xz +0 -0
  782. package/deps/xz/tests/files/bad-1-check-crc64.xz +0 -0
  783. package/deps/xz/tests/files/bad-1-check-sha256.xz +0 -0
  784. package/deps/xz/tests/files/bad-1-lzma2-1.xz +0 -0
  785. package/deps/xz/tests/files/bad-1-lzma2-2.xz +0 -0
  786. package/deps/xz/tests/files/bad-1-lzma2-3.xz +0 -0
  787. package/deps/xz/tests/files/bad-1-lzma2-4.xz +0 -0
  788. package/deps/xz/tests/files/bad-1-lzma2-5.xz +0 -0
  789. package/deps/xz/tests/files/bad-1-lzma2-6.xz +0 -0
  790. package/deps/xz/tests/files/bad-1-lzma2-7.xz +0 -0
  791. package/deps/xz/tests/files/bad-1-lzma2-8.xz +0 -0
  792. package/deps/xz/tests/files/bad-1-stream_flags-1.xz +0 -0
  793. package/deps/xz/tests/files/bad-1-stream_flags-2.xz +0 -0
  794. package/deps/xz/tests/files/bad-1-stream_flags-3.xz +0 -0
  795. package/deps/xz/tests/files/bad-1-vli-1.xz +0 -0
  796. package/deps/xz/tests/files/bad-1-vli-2.xz +0 -0
  797. package/deps/xz/tests/files/bad-2-compressed_data_padding.xz +0 -0
  798. package/deps/xz/tests/files/bad-2-index-1.xz +0 -0
  799. package/deps/xz/tests/files/bad-2-index-2.xz +0 -0
  800. package/deps/xz/tests/files/bad-2-index-3.xz +0 -0
  801. package/deps/xz/tests/files/bad-2-index-4.xz +0 -0
  802. package/deps/xz/tests/files/bad-2-index-5.xz +0 -0
  803. package/deps/xz/tests/files/good-0-empty.xz +0 -0
  804. package/deps/xz/tests/files/good-0cat-empty.xz +0 -0
  805. package/deps/xz/tests/files/good-0catpad-empty.xz +0 -0
  806. package/deps/xz/tests/files/good-0pad-empty.xz +0 -0
  807. package/deps/xz/tests/files/good-1-3delta-lzma2.xz +0 -0
  808. package/deps/xz/tests/files/good-1-block_header-1.xz +0 -0
  809. package/deps/xz/tests/files/good-1-block_header-2.xz +0 -0
  810. package/deps/xz/tests/files/good-1-block_header-3.xz +0 -0
  811. package/deps/xz/tests/files/good-1-check-crc32.xz +0 -0
  812. package/deps/xz/tests/files/good-1-check-crc64.xz +0 -0
  813. package/deps/xz/tests/files/good-1-check-none.xz +0 -0
  814. package/deps/xz/tests/files/good-1-check-sha256.xz +0 -0
  815. package/deps/xz/tests/files/good-1-delta-lzma2.tiff.xz +0 -0
  816. package/deps/xz/tests/files/good-1-lzma2-1.xz +0 -0
  817. package/deps/xz/tests/files/good-1-lzma2-2.xz +0 -0
  818. package/deps/xz/tests/files/good-1-lzma2-3.xz +0 -0
  819. package/deps/xz/tests/files/good-1-lzma2-4.xz +0 -0
  820. package/deps/xz/tests/files/good-1-lzma2-5.xz +0 -0
  821. package/deps/xz/tests/files/good-1-sparc-lzma2.xz +0 -0
  822. package/deps/xz/tests/files/good-1-x86-lzma2.xz +0 -0
  823. package/deps/xz/tests/files/good-2-lzma2.xz +0 -0
  824. package/deps/xz/tests/files/unsupported-block_header.xz +0 -0
  825. package/deps/xz/tests/files/unsupported-check.xz +0 -0
  826. package/deps/xz/tests/files/unsupported-filter_flags-1.xz +0 -0
  827. package/deps/xz/tests/files/unsupported-filter_flags-2.xz +0 -0
  828. package/deps/xz/tests/files/unsupported-filter_flags-3.xz +0 -0
  829. package/deps/xz/tests/test_bcj_exact_size.c +0 -113
  830. package/deps/xz/tests/test_block_header.c +0 -240
  831. package/deps/xz/tests/test_check.c +0 -83
  832. package/deps/xz/tests/test_compress.sh +0 -142
  833. package/deps/xz/tests/test_files.sh +0 -57
  834. package/deps/xz/tests/test_filter_flags.c +0 -258
  835. package/deps/xz/tests/test_index.c +0 -659
  836. package/deps/xz/tests/test_scripts.sh +0 -76
  837. package/deps/xz/tests/test_stream_flags.c +0 -180
  838. package/deps/xz/tests/tests.h +0 -124
  839. package/deps/xz/tests/xzgrep_expected_output +0 -39
  840. package/deps/xz/windows/INSTALL-MSVC.txt +0 -47
  841. package/deps/xz/windows/INSTALL-MinGW.txt +0 -138
  842. package/deps/xz/windows/README-Windows.txt +0 -122
  843. package/deps/xz/windows/build.bash +0 -203
  844. package/deps/xz/windows/config.h +0 -142
  845. package/deps/xz/windows/liblzma.vcxproj +0 -354
  846. package/deps/xz/windows/liblzma_dll.vcxproj +0 -383
  847. package/deps/xz/windows/xz_win.sln +0 -48
  848. package/node_modules/node-pre-gyp/CHANGELOG.md +0 -319
  849. package/node_modules/node-pre-gyp/LICENSE +0 -27
  850. package/node_modules/node-pre-gyp/README.md +0 -570
  851. package/node_modules/node-pre-gyp/appveyor.yml +0 -30
  852. package/node_modules/node-pre-gyp/bin/node-pre-gyp +0 -131
  853. package/node_modules/node-pre-gyp/bin/node-pre-gyp.cmd +0 -2
  854. package/node_modules/node-pre-gyp/lib/build.js +0 -43
  855. package/node_modules/node-pre-gyp/lib/clean.js +0 -23
  856. package/node_modules/node-pre-gyp/lib/configure.js +0 -48
  857. package/node_modules/node-pre-gyp/lib/info.js +0 -40
  858. package/node_modules/node-pre-gyp/lib/install.js +0 -215
  859. package/node_modules/node-pre-gyp/lib/node-pre-gyp.js +0 -192
  860. package/node_modules/node-pre-gyp/lib/package.js +0 -46
  861. package/node_modules/node-pre-gyp/lib/pre-binding.js +0 -25
  862. package/node_modules/node-pre-gyp/lib/publish.js +0 -77
  863. package/node_modules/node-pre-gyp/lib/rebuild.js +0 -13
  864. package/node_modules/node-pre-gyp/lib/reinstall.js +0 -13
  865. package/node_modules/node-pre-gyp/lib/reveal.js +0 -31
  866. package/node_modules/node-pre-gyp/lib/testbinary.js +0 -73
  867. package/node_modules/node-pre-gyp/lib/testpackage.js +0 -49
  868. package/node_modules/node-pre-gyp/lib/unpublish.js +0 -41
  869. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +0 -1222
  870. package/node_modules/node-pre-gyp/lib/util/compile.js +0 -87
  871. package/node_modules/node-pre-gyp/lib/util/handle_gyp_opts.js +0 -94
  872. package/node_modules/node-pre-gyp/lib/util/nw-pre-gyp/index.html +0 -26
  873. package/node_modules/node-pre-gyp/lib/util/nw-pre-gyp/package.json +0 -9
  874. package/node_modules/node-pre-gyp/lib/util/s3_setup.js +0 -27
  875. package/node_modules/node-pre-gyp/lib/util/versioning.js +0 -308
  876. package/node_modules/node-pre-gyp/package.json +0 -136
  877. package/src/bindings/module.cpp +0 -107
  878. package/src/bindings/node-liblzma.cpp +0 -320
  879. package/src/bindings/node-liblzma.hpp +0 -115
  880. package/src/lzma.coffee +0 -339
@@ -1,1197 +0,0 @@
1
- /* Getopt for GNU.
2
- NOTE: getopt is now part of the C library, so if you don't know what
3
- "Keep this file name-space clean" means, talk to drepper@gnu.org
4
- before changing it!
5
- Copyright (C) 1987,88,89,90,91,92,93,94,95,96,98,99,2000,2001,2002,2003,2004,2006
6
- Free Software Foundation, Inc.
7
- This file is part of the GNU C Library.
8
-
9
- This program is free software; you can redistribute it and/or modify
10
- it under the terms of the GNU Lesser General Public License as published by
11
- the Free Software Foundation; either version 2.1, or (at your option)
12
- any later version.
13
-
14
- This program is distributed in the hope that it will be useful,
15
- but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- GNU Lesser General Public License for more details.
18
-
19
- You should have received a copy of the GNU Lesser General Public License along
20
- with this program; if not, write to the Free Software Foundation,
21
- Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
22
-
23
- #ifndef _LIBC
24
- # include <config.h>
25
- #endif
26
-
27
- #include "getopt.h"
28
-
29
- #include <stdio.h>
30
- #include <stdlib.h>
31
- #include <string.h>
32
- #include <unistd.h>
33
-
34
- #ifdef __VMS
35
- # include <unixlib.h>
36
- #endif
37
-
38
- /* Completely disable NLS for getopt. We won't include translations for it
39
- anyway. If the system lacks getopt_long, missing translations probably
40
- aren't a problem. */
41
- /*
42
- #ifdef _LIBC
43
- # include <libintl.h>
44
- #else
45
- # include "gettext.h"
46
- # define _(msgid) gettext (msgid)
47
- #endif
48
- */
49
- #define _(msgid) (msgid)
50
-
51
- #if defined _LIBC && defined USE_IN_LIBIO
52
- # include <wchar.h>
53
- #endif
54
-
55
- #ifndef attribute_hidden
56
- # define attribute_hidden
57
- #endif
58
-
59
- /* Unlike standard Unix `getopt', functions like `getopt_long'
60
- let the user intersperse the options with the other arguments.
61
-
62
- As `getopt_long' works, it permutes the elements of ARGV so that,
63
- when it is done, all the options precede everything else. Thus
64
- all application programs are extended to handle flexible argument order.
65
-
66
- Using `getopt' or setting the environment variable POSIXLY_CORRECT
67
- disables permutation.
68
- Then the application's behavior is completely standard.
69
-
70
- GNU application programs can use a third alternative mode in which
71
- they can distinguish the relative order of options and other arguments. */
72
-
73
- #include "getopt_int.h"
74
-
75
- /* For communication from `getopt' to the caller.
76
- When `getopt' finds an option that takes an argument,
77
- the argument value is returned here.
78
- Also, when `ordering' is RETURN_IN_ORDER,
79
- each non-option ARGV-element is returned here. */
80
-
81
- char *optarg;
82
-
83
- /* Index in ARGV of the next element to be scanned.
84
- This is used for communication to and from the caller
85
- and for communication between successive calls to `getopt'.
86
-
87
- On entry to `getopt', zero means this is the first call; initialize.
88
-
89
- When `getopt' returns -1, this is the index of the first of the
90
- non-option elements that the caller should itself scan.
91
-
92
- Otherwise, `optind' communicates from one call to the next
93
- how much of ARGV has been scanned so far. */
94
-
95
- /* 1003.2 says this must be 1 before any call. */
96
- int optind = 1;
97
-
98
- /* Callers store zero here to inhibit the error message
99
- for unrecognized options. */
100
-
101
- int opterr = 1;
102
-
103
- /* Set to an option character which was unrecognized.
104
- This must be initialized on some systems to avoid linking in the
105
- system's own getopt implementation. */
106
-
107
- int optopt = '?';
108
-
109
- /* Keep a global copy of all internal members of getopt_data. */
110
-
111
- static struct _getopt_data getopt_data;
112
-
113
-
114
- #if defined HAVE_DECL_GETENV && !HAVE_DECL_GETENV
115
- extern char *getenv ();
116
- #endif
117
-
118
- #ifdef _LIBC
119
- /* Stored original parameters.
120
- XXX This is no good solution. We should rather copy the args so
121
- that we can compare them later. But we must not use malloc(3). */
122
- extern int __libc_argc;
123
- extern char **__libc_argv;
124
-
125
- /* Bash 2.0 gives us an environment variable containing flags
126
- indicating ARGV elements that should not be considered arguments. */
127
-
128
- # ifdef USE_NONOPTION_FLAGS
129
- /* Defined in getopt_init.c */
130
- extern char *__getopt_nonoption_flags;
131
- # endif
132
-
133
- # ifdef USE_NONOPTION_FLAGS
134
- # define SWAP_FLAGS(ch1, ch2) \
135
- if (d->__nonoption_flags_len > 0) \
136
- { \
137
- char __tmp = __getopt_nonoption_flags[ch1]; \
138
- __getopt_nonoption_flags[ch1] = __getopt_nonoption_flags[ch2]; \
139
- __getopt_nonoption_flags[ch2] = __tmp; \
140
- }
141
- # else
142
- # define SWAP_FLAGS(ch1, ch2)
143
- # endif
144
- #else /* !_LIBC */
145
- # define SWAP_FLAGS(ch1, ch2)
146
- #endif /* _LIBC */
147
-
148
- /* Exchange two adjacent subsequences of ARGV.
149
- One subsequence is elements [first_nonopt,last_nonopt)
150
- which contains all the non-options that have been skipped so far.
151
- The other is elements [last_nonopt,optind), which contains all
152
- the options processed since those non-options were skipped.
153
-
154
- `first_nonopt' and `last_nonopt' are relocated so that they describe
155
- the new indices of the non-options in ARGV after they are moved. */
156
-
157
- static void
158
- exchange (char **argv, struct _getopt_data *d)
159
- {
160
- int bottom = d->__first_nonopt;
161
- int middle = d->__last_nonopt;
162
- int top = d->optind;
163
- char *tem;
164
-
165
- /* Exchange the shorter segment with the far end of the longer segment.
166
- That puts the shorter segment into the right place.
167
- It leaves the longer segment in the right place overall,
168
- but it consists of two parts that need to be swapped next. */
169
-
170
- #if defined _LIBC && defined USE_NONOPTION_FLAGS
171
- /* First make sure the handling of the `__getopt_nonoption_flags'
172
- string can work normally. Our top argument must be in the range
173
- of the string. */
174
- if (d->__nonoption_flags_len > 0 && top >= d->__nonoption_flags_max_len)
175
- {
176
- /* We must extend the array. The user plays games with us and
177
- presents new arguments. */
178
- char *new_str = malloc (top + 1);
179
- if (new_str == NULL)
180
- d->__nonoption_flags_len = d->__nonoption_flags_max_len = 0;
181
- else
182
- {
183
- memset (__mempcpy (new_str, __getopt_nonoption_flags,
184
- d->__nonoption_flags_max_len),
185
- '\0', top + 1 - d->__nonoption_flags_max_len);
186
- d->__nonoption_flags_max_len = top + 1;
187
- __getopt_nonoption_flags = new_str;
188
- }
189
- }
190
- #endif
191
-
192
- while (top > middle && middle > bottom)
193
- {
194
- if (top - middle > middle - bottom)
195
- {
196
- /* Bottom segment is the short one. */
197
- int len = middle - bottom;
198
- register int i;
199
-
200
- /* Swap it with the top part of the top segment. */
201
- for (i = 0; i < len; i++)
202
- {
203
- tem = argv[bottom + i];
204
- argv[bottom + i] = argv[top - (middle - bottom) + i];
205
- argv[top - (middle - bottom) + i] = tem;
206
- SWAP_FLAGS (bottom + i, top - (middle - bottom) + i);
207
- }
208
- /* Exclude the moved bottom segment from further swapping. */
209
- top -= len;
210
- }
211
- else
212
- {
213
- /* Top segment is the short one. */
214
- int len = top - middle;
215
- register int i;
216
-
217
- /* Swap it with the bottom part of the bottom segment. */
218
- for (i = 0; i < len; i++)
219
- {
220
- tem = argv[bottom + i];
221
- argv[bottom + i] = argv[middle + i];
222
- argv[middle + i] = tem;
223
- SWAP_FLAGS (bottom + i, middle + i);
224
- }
225
- /* Exclude the moved top segment from further swapping. */
226
- bottom += len;
227
- }
228
- }
229
-
230
- /* Update records for the slots the non-options now occupy. */
231
-
232
- d->__first_nonopt += (d->optind - d->__last_nonopt);
233
- d->__last_nonopt = d->optind;
234
- }
235
-
236
- /* Initialize the internal data when the first call is made. */
237
-
238
- static const char *
239
- _getopt_initialize (int argc, char **argv, const char *optstring,
240
- int posixly_correct, struct _getopt_data *d)
241
- {
242
- /* Start processing options with ARGV-element 1 (since ARGV-element 0
243
- is the program name); the sequence of previously skipped
244
- non-option ARGV-elements is empty. */
245
-
246
- d->__first_nonopt = d->__last_nonopt = d->optind;
247
-
248
- d->__nextchar = NULL;
249
-
250
- d->__posixly_correct = posixly_correct || !!getenv ("POSIXLY_CORRECT");
251
-
252
- /* Determine how to handle the ordering of options and nonoptions. */
253
-
254
- if (optstring[0] == '-')
255
- {
256
- d->__ordering = RETURN_IN_ORDER;
257
- ++optstring;
258
- }
259
- else if (optstring[0] == '+')
260
- {
261
- d->__ordering = REQUIRE_ORDER;
262
- ++optstring;
263
- }
264
- else if (d->__posixly_correct)
265
- d->__ordering = REQUIRE_ORDER;
266
- else
267
- d->__ordering = PERMUTE;
268
-
269
- #if defined _LIBC && defined USE_NONOPTION_FLAGS
270
- if (!d->__posixly_correct
271
- && argc == __libc_argc && argv == __libc_argv)
272
- {
273
- if (d->__nonoption_flags_max_len == 0)
274
- {
275
- if (__getopt_nonoption_flags == NULL
276
- || __getopt_nonoption_flags[0] == '\0')
277
- d->__nonoption_flags_max_len = -1;
278
- else
279
- {
280
- const char *orig_str = __getopt_nonoption_flags;
281
- int len = d->__nonoption_flags_max_len = strlen (orig_str);
282
- if (d->__nonoption_flags_max_len < argc)
283
- d->__nonoption_flags_max_len = argc;
284
- __getopt_nonoption_flags =
285
- (char *) malloc (d->__nonoption_flags_max_len);
286
- if (__getopt_nonoption_flags == NULL)
287
- d->__nonoption_flags_max_len = -1;
288
- else
289
- memset (__mempcpy (__getopt_nonoption_flags, orig_str, len),
290
- '\0', d->__nonoption_flags_max_len - len);
291
- }
292
- }
293
- d->__nonoption_flags_len = d->__nonoption_flags_max_len;
294
- }
295
- else
296
- d->__nonoption_flags_len = 0;
297
- #endif
298
-
299
- return optstring;
300
- }
301
-
302
- /* Scan elements of ARGV (whose length is ARGC) for option characters
303
- given in OPTSTRING.
304
-
305
- If an element of ARGV starts with '-', and is not exactly "-" or "--",
306
- then it is an option element. The characters of this element
307
- (aside from the initial '-') are option characters. If `getopt'
308
- is called repeatedly, it returns successively each of the option characters
309
- from each of the option elements.
310
-
311
- If `getopt' finds another option character, it returns that character,
312
- updating `optind' and `nextchar' so that the next call to `getopt' can
313
- resume the scan with the following option character or ARGV-element.
314
-
315
- If there are no more option characters, `getopt' returns -1.
316
- Then `optind' is the index in ARGV of the first ARGV-element
317
- that is not an option. (The ARGV-elements have been permuted
318
- so that those that are not options now come last.)
319
-
320
- OPTSTRING is a string containing the legitimate option characters.
321
- If an option character is seen that is not listed in OPTSTRING,
322
- return '?' after printing an error message. If you set `opterr' to
323
- zero, the error message is suppressed but we still return '?'.
324
-
325
- If a char in OPTSTRING is followed by a colon, that means it wants an arg,
326
- so the following text in the same ARGV-element, or the text of the following
327
- ARGV-element, is returned in `optarg'. Two colons mean an option that
328
- wants an optional arg; if there is text in the current ARGV-element,
329
- it is returned in `optarg', otherwise `optarg' is set to zero.
330
-
331
- If OPTSTRING starts with `-' or `+', it requests different methods of
332
- handling the non-option ARGV-elements.
333
- See the comments about RETURN_IN_ORDER and REQUIRE_ORDER, above.
334
-
335
- Long-named options begin with `--' instead of `-'.
336
- Their names may be abbreviated as long as the abbreviation is unique
337
- or is an exact match for some defined option. If they have an
338
- argument, it follows the option name in the same ARGV-element, separated
339
- from the option name by a `=', or else the in next ARGV-element.
340
- When `getopt' finds a long-named option, it returns 0 if that option's
341
- `flag' field is nonzero, the value of the option's `val' field
342
- if the `flag' field is zero.
343
-
344
- LONGOPTS is a vector of `struct option' terminated by an
345
- element containing a name which is zero.
346
-
347
- LONGIND returns the index in LONGOPT of the long-named option found.
348
- It is only valid when a long-named option has been found by the most
349
- recent call.
350
-
351
- If LONG_ONLY is nonzero, '-' as well as '--' can introduce
352
- long-named options.
353
-
354
- If POSIXLY_CORRECT is nonzero, behave as if the POSIXLY_CORRECT
355
- environment variable were set. */
356
-
357
- int
358
- _getopt_internal_r (int argc, char **argv, const char *optstring,
359
- const struct option *longopts, int *longind,
360
- int long_only, int posixly_correct, struct _getopt_data *d)
361
- {
362
- int print_errors = d->opterr;
363
- if (optstring[0] == ':')
364
- print_errors = 0;
365
-
366
- if (argc < 1)
367
- return -1;
368
-
369
- d->optarg = NULL;
370
-
371
- if (d->optind == 0 || !d->__initialized)
372
- {
373
- if (d->optind == 0)
374
- d->optind = 1; /* Don't scan ARGV[0], the program name. */
375
- optstring = _getopt_initialize (argc, argv, optstring,
376
- posixly_correct, d);
377
- d->__initialized = 1;
378
- }
379
-
380
- /* Test whether ARGV[optind] points to a non-option argument.
381
- Either it does not have option syntax, or there is an environment flag
382
- from the shell indicating it is not an option. The later information
383
- is only used when the used in the GNU libc. */
384
- #if defined _LIBC && defined USE_NONOPTION_FLAGS
385
- # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0' \
386
- || (d->optind < d->__nonoption_flags_len \
387
- && __getopt_nonoption_flags[d->optind] == '1'))
388
- #else
389
- # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0')
390
- #endif
391
-
392
- if (d->__nextchar == NULL || *d->__nextchar == '\0')
393
- {
394
- /* Advance to the next ARGV-element. */
395
-
396
- /* Give FIRST_NONOPT & LAST_NONOPT rational values if OPTIND has been
397
- moved back by the user (who may also have changed the arguments). */
398
- if (d->__last_nonopt > d->optind)
399
- d->__last_nonopt = d->optind;
400
- if (d->__first_nonopt > d->optind)
401
- d->__first_nonopt = d->optind;
402
-
403
- if (d->__ordering == PERMUTE)
404
- {
405
- /* If we have just processed some options following some non-options,
406
- exchange them so that the options come first. */
407
-
408
- if (d->__first_nonopt != d->__last_nonopt
409
- && d->__last_nonopt != d->optind)
410
- exchange ((char **) argv, d);
411
- else if (d->__last_nonopt != d->optind)
412
- d->__first_nonopt = d->optind;
413
-
414
- /* Skip any additional non-options
415
- and extend the range of non-options previously skipped. */
416
-
417
- while (d->optind < argc && NONOPTION_P)
418
- d->optind++;
419
- d->__last_nonopt = d->optind;
420
- }
421
-
422
- /* The special ARGV-element `--' means premature end of options.
423
- Skip it like a null option,
424
- then exchange with previous non-options as if it were an option,
425
- then skip everything else like a non-option. */
426
-
427
- if (d->optind != argc && !strcmp (argv[d->optind], "--"))
428
- {
429
- d->optind++;
430
-
431
- if (d->__first_nonopt != d->__last_nonopt
432
- && d->__last_nonopt != d->optind)
433
- exchange ((char **) argv, d);
434
- else if (d->__first_nonopt == d->__last_nonopt)
435
- d->__first_nonopt = d->optind;
436
- d->__last_nonopt = argc;
437
-
438
- d->optind = argc;
439
- }
440
-
441
- /* If we have done all the ARGV-elements, stop the scan
442
- and back over any non-options that we skipped and permuted. */
443
-
444
- if (d->optind == argc)
445
- {
446
- /* Set the next-arg-index to point at the non-options
447
- that we previously skipped, so the caller will digest them. */
448
- if (d->__first_nonopt != d->__last_nonopt)
449
- d->optind = d->__first_nonopt;
450
- return -1;
451
- }
452
-
453
- /* If we have come to a non-option and did not permute it,
454
- either stop the scan or describe it to the caller and pass it by. */
455
-
456
- if (NONOPTION_P)
457
- {
458
- if (d->__ordering == REQUIRE_ORDER)
459
- return -1;
460
- d->optarg = argv[d->optind++];
461
- return 1;
462
- }
463
-
464
- /* We have found another option-ARGV-element.
465
- Skip the initial punctuation. */
466
-
467
- d->__nextchar = (argv[d->optind] + 1
468
- + (longopts != NULL && argv[d->optind][1] == '-'));
469
- }
470
-
471
- /* Decode the current option-ARGV-element. */
472
-
473
- /* Check whether the ARGV-element is a long option.
474
-
475
- If long_only and the ARGV-element has the form "-f", where f is
476
- a valid short option, don't consider it an abbreviated form of
477
- a long option that starts with f. Otherwise there would be no
478
- way to give the -f short option.
479
-
480
- On the other hand, if there's a long option "fubar" and
481
- the ARGV-element is "-fu", do consider that an abbreviation of
482
- the long option, just like "--fu", and not "-f" with arg "u".
483
-
484
- This distinction seems to be the most useful approach. */
485
-
486
- if (longopts != NULL
487
- && (argv[d->optind][1] == '-'
488
- || (long_only && (argv[d->optind][2]
489
- || !strchr (optstring, argv[d->optind][1])))))
490
- {
491
- char *nameend;
492
- const struct option *p;
493
- const struct option *pfound = NULL;
494
- int exact = 0;
495
- int ambig = 0;
496
- int indfound = -1;
497
- int option_index;
498
-
499
- for (nameend = d->__nextchar; *nameend && *nameend != '='; nameend++)
500
- /* Do nothing. */ ;
501
-
502
- /* Test all long options for either exact match
503
- or abbreviated matches. */
504
- for (p = longopts, option_index = 0; p->name; p++, option_index++)
505
- if (!strncmp (p->name, d->__nextchar, nameend - d->__nextchar))
506
- {
507
- if ((unsigned int) (nameend - d->__nextchar)
508
- == (unsigned int) strlen (p->name))
509
- {
510
- /* Exact match found. */
511
- pfound = p;
512
- indfound = option_index;
513
- exact = 1;
514
- break;
515
- }
516
- else if (pfound == NULL)
517
- {
518
- /* First nonexact match found. */
519
- pfound = p;
520
- indfound = option_index;
521
- }
522
- else if (long_only
523
- || pfound->has_arg != p->has_arg
524
- || pfound->flag != p->flag
525
- || pfound->val != p->val)
526
- /* Second or later nonexact match found. */
527
- ambig = 1;
528
- }
529
-
530
- if (ambig && !exact)
531
- {
532
- if (print_errors)
533
- {
534
- #if defined _LIBC && defined USE_IN_LIBIO
535
- char *buf;
536
-
537
- if (__asprintf (&buf, _("%s: option `%s' is ambiguous\n"),
538
- argv[0], argv[d->optind]) >= 0)
539
- {
540
- _IO_flockfile (stderr);
541
-
542
- int old_flags2 = ((_IO_FILE *) stderr)->_flags2;
543
- ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL;
544
-
545
- __fxprintf (NULL, "%s", buf);
546
-
547
- ((_IO_FILE *) stderr)->_flags2 = old_flags2;
548
- _IO_funlockfile (stderr);
549
-
550
- free (buf);
551
- }
552
- #else
553
- fprintf (stderr, _("%s: option `%s' is ambiguous\n"),
554
- argv[0], argv[d->optind]);
555
- #endif
556
- }
557
- d->__nextchar += strlen (d->__nextchar);
558
- d->optind++;
559
- d->optopt = 0;
560
- return '?';
561
- }
562
-
563
- if (pfound != NULL)
564
- {
565
- option_index = indfound;
566
- d->optind++;
567
- if (*nameend)
568
- {
569
- /* Don't test has_arg with >, because some C compilers don't
570
- allow it to be used on enums. */
571
- if (pfound->has_arg)
572
- d->optarg = nameend + 1;
573
- else
574
- {
575
- if (print_errors)
576
- {
577
- #if defined _LIBC && defined USE_IN_LIBIO
578
- char *buf;
579
- int n;
580
- #endif
581
-
582
- if (argv[d->optind - 1][1] == '-')
583
- {
584
- /* --option */
585
- #if defined _LIBC && defined USE_IN_LIBIO
586
- n = __asprintf (&buf, _("\
587
- %s: option `--%s' doesn't allow an argument\n"),
588
- argv[0], pfound->name);
589
- #else
590
- fprintf (stderr, _("\
591
- %s: option `--%s' doesn't allow an argument\n"),
592
- argv[0], pfound->name);
593
- #endif
594
- }
595
- else
596
- {
597
- /* +option or -option */
598
- #if defined _LIBC && defined USE_IN_LIBIO
599
- n = __asprintf (&buf, _("\
600
- %s: option `%c%s' doesn't allow an argument\n"),
601
- argv[0], argv[d->optind - 1][0],
602
- pfound->name);
603
- #else
604
- fprintf (stderr, _("\
605
- %s: option `%c%s' doesn't allow an argument\n"),
606
- argv[0], argv[d->optind - 1][0],
607
- pfound->name);
608
- #endif
609
- }
610
-
611
- #if defined _LIBC && defined USE_IN_LIBIO
612
- if (n >= 0)
613
- {
614
- _IO_flockfile (stderr);
615
-
616
- int old_flags2 = ((_IO_FILE *) stderr)->_flags2;
617
- ((_IO_FILE *) stderr)->_flags2
618
- |= _IO_FLAGS2_NOTCANCEL;
619
-
620
- __fxprintf (NULL, "%s", buf);
621
-
622
- ((_IO_FILE *) stderr)->_flags2 = old_flags2;
623
- _IO_funlockfile (stderr);
624
-
625
- free (buf);
626
- }
627
- #endif
628
- }
629
-
630
- d->__nextchar += strlen (d->__nextchar);
631
-
632
- d->optopt = pfound->val;
633
- return '?';
634
- }
635
- }
636
- else if (pfound->has_arg == 1)
637
- {
638
- if (d->optind < argc)
639
- d->optarg = argv[d->optind++];
640
- else
641
- {
642
- if (print_errors)
643
- {
644
- #if defined _LIBC && defined USE_IN_LIBIO
645
- char *buf;
646
-
647
- if (__asprintf (&buf, _("\
648
- %s: option `%s' requires an argument\n"),
649
- argv[0], argv[d->optind - 1]) >= 0)
650
- {
651
- _IO_flockfile (stderr);
652
-
653
- int old_flags2 = ((_IO_FILE *) stderr)->_flags2;
654
- ((_IO_FILE *) stderr)->_flags2
655
- |= _IO_FLAGS2_NOTCANCEL;
656
-
657
- __fxprintf (NULL, "%s", buf);
658
-
659
- ((_IO_FILE *) stderr)->_flags2 = old_flags2;
660
- _IO_funlockfile (stderr);
661
-
662
- free (buf);
663
- }
664
- #else
665
- fprintf (stderr,
666
- _("%s: option `%s' requires an argument\n"),
667
- argv[0], argv[d->optind - 1]);
668
- #endif
669
- }
670
- d->__nextchar += strlen (d->__nextchar);
671
- d->optopt = pfound->val;
672
- return optstring[0] == ':' ? ':' : '?';
673
- }
674
- }
675
- d->__nextchar += strlen (d->__nextchar);
676
- if (longind != NULL)
677
- *longind = option_index;
678
- if (pfound->flag)
679
- {
680
- *(pfound->flag) = pfound->val;
681
- return 0;
682
- }
683
- return pfound->val;
684
- }
685
-
686
- /* Can't find it as a long option. If this is not getopt_long_only,
687
- or the option starts with '--' or is not a valid short
688
- option, then it's an error.
689
- Otherwise interpret it as a short option. */
690
- if (!long_only || argv[d->optind][1] == '-'
691
- || strchr (optstring, *d->__nextchar) == NULL)
692
- {
693
- if (print_errors)
694
- {
695
- #if defined _LIBC && defined USE_IN_LIBIO
696
- char *buf;
697
- int n;
698
- #endif
699
-
700
- if (argv[d->optind][1] == '-')
701
- {
702
- /* --option */
703
- #if defined _LIBC && defined USE_IN_LIBIO
704
- n = __asprintf (&buf, _("%s: unrecognized option `--%s'\n"),
705
- argv[0], d->__nextchar);
706
- #else
707
- fprintf (stderr, _("%s: unrecognized option `--%s'\n"),
708
- argv[0], d->__nextchar);
709
- #endif
710
- }
711
- else
712
- {
713
- /* +option or -option */
714
- #if defined _LIBC && defined USE_IN_LIBIO
715
- n = __asprintf (&buf, _("%s: unrecognized option `%c%s'\n"),
716
- argv[0], argv[d->optind][0], d->__nextchar);
717
- #else
718
- fprintf (stderr, _("%s: unrecognized option `%c%s'\n"),
719
- argv[0], argv[d->optind][0], d->__nextchar);
720
- #endif
721
- }
722
-
723
- #if defined _LIBC && defined USE_IN_LIBIO
724
- if (n >= 0)
725
- {
726
- _IO_flockfile (stderr);
727
-
728
- int old_flags2 = ((_IO_FILE *) stderr)->_flags2;
729
- ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL;
730
-
731
- __fxprintf (NULL, "%s", buf);
732
-
733
- ((_IO_FILE *) stderr)->_flags2 = old_flags2;
734
- _IO_funlockfile (stderr);
735
-
736
- free (buf);
737
- }
738
- #endif
739
- }
740
- d->__nextchar = (char *) "";
741
- d->optind++;
742
- d->optopt = 0;
743
- return '?';
744
- }
745
- }
746
-
747
- /* Look at and handle the next short option-character. */
748
-
749
- {
750
- char c = *d->__nextchar++;
751
- char *temp = strchr (optstring, c);
752
-
753
- /* Increment `optind' when we start to process its last character. */
754
- if (*d->__nextchar == '\0')
755
- ++d->optind;
756
-
757
- if (temp == NULL || c == ':')
758
- {
759
- if (print_errors)
760
- {
761
- #if defined _LIBC && defined USE_IN_LIBIO
762
- char *buf;
763
- int n;
764
- #endif
765
-
766
- if (d->__posixly_correct)
767
- {
768
- /* 1003.2 specifies the format of this message. */
769
- #if defined _LIBC && defined USE_IN_LIBIO
770
- n = __asprintf (&buf, _("%s: illegal option -- %c\n"),
771
- argv[0], c);
772
- #else
773
- fprintf (stderr, _("%s: illegal option -- %c\n"), argv[0], c);
774
- #endif
775
- }
776
- else
777
- {
778
- #if defined _LIBC && defined USE_IN_LIBIO
779
- n = __asprintf (&buf, _("%s: invalid option -- %c\n"),
780
- argv[0], c);
781
- #else
782
- fprintf (stderr, _("%s: invalid option -- %c\n"), argv[0], c);
783
- #endif
784
- }
785
-
786
- #if defined _LIBC && defined USE_IN_LIBIO
787
- if (n >= 0)
788
- {
789
- _IO_flockfile (stderr);
790
-
791
- int old_flags2 = ((_IO_FILE *) stderr)->_flags2;
792
- ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL;
793
-
794
- __fxprintf (NULL, "%s", buf);
795
-
796
- ((_IO_FILE *) stderr)->_flags2 = old_flags2;
797
- _IO_funlockfile (stderr);
798
-
799
- free (buf);
800
- }
801
- #endif
802
- }
803
- d->optopt = c;
804
- return '?';
805
- }
806
- /* Convenience. Treat POSIX -W foo same as long option --foo */
807
- if (temp[0] == 'W' && temp[1] == ';')
808
- {
809
- char *nameend;
810
- const struct option *p;
811
- const struct option *pfound = NULL;
812
- int exact = 0;
813
- int ambig = 0;
814
- int indfound = 0;
815
- int option_index;
816
-
817
- /* This is an option that requires an argument. */
818
- if (*d->__nextchar != '\0')
819
- {
820
- d->optarg = d->__nextchar;
821
- /* If we end this ARGV-element by taking the rest as an arg,
822
- we must advance to the next element now. */
823
- d->optind++;
824
- }
825
- else if (d->optind == argc)
826
- {
827
- if (print_errors)
828
- {
829
- /* 1003.2 specifies the format of this message. */
830
- #if defined _LIBC && defined USE_IN_LIBIO
831
- char *buf;
832
-
833
- if (__asprintf (&buf,
834
- _("%s: option requires an argument -- %c\n"),
835
- argv[0], c) >= 0)
836
- {
837
- _IO_flockfile (stderr);
838
-
839
- int old_flags2 = ((_IO_FILE *) stderr)->_flags2;
840
- ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL;
841
-
842
- __fxprintf (NULL, "%s", buf);
843
-
844
- ((_IO_FILE *) stderr)->_flags2 = old_flags2;
845
- _IO_funlockfile (stderr);
846
-
847
- free (buf);
848
- }
849
- #else
850
- fprintf (stderr, _("%s: option requires an argument -- %c\n"),
851
- argv[0], c);
852
- #endif
853
- }
854
- d->optopt = c;
855
- if (optstring[0] == ':')
856
- c = ':';
857
- else
858
- c = '?';
859
- return c;
860
- }
861
- else
862
- /* We already incremented `d->optind' once;
863
- increment it again when taking next ARGV-elt as argument. */
864
- d->optarg = argv[d->optind++];
865
-
866
- /* optarg is now the argument, see if it's in the
867
- table of longopts. */
868
-
869
- for (d->__nextchar = nameend = d->optarg; *nameend && *nameend != '=';
870
- nameend++)
871
- /* Do nothing. */ ;
872
-
873
- /* Test all long options for either exact match
874
- or abbreviated matches. */
875
- for (p = longopts, option_index = 0; p->name; p++, option_index++)
876
- if (!strncmp (p->name, d->__nextchar, nameend - d->__nextchar))
877
- {
878
- if ((unsigned int) (nameend - d->__nextchar) == strlen (p->name))
879
- {
880
- /* Exact match found. */
881
- pfound = p;
882
- indfound = option_index;
883
- exact = 1;
884
- break;
885
- }
886
- else if (pfound == NULL)
887
- {
888
- /* First nonexact match found. */
889
- pfound = p;
890
- indfound = option_index;
891
- }
892
- else
893
- /* Second or later nonexact match found. */
894
- ambig = 1;
895
- }
896
- if (ambig && !exact)
897
- {
898
- if (print_errors)
899
- {
900
- #if defined _LIBC && defined USE_IN_LIBIO
901
- char *buf;
902
-
903
- if (__asprintf (&buf, _("%s: option `-W %s' is ambiguous\n"),
904
- argv[0], argv[d->optind]) >= 0)
905
- {
906
- _IO_flockfile (stderr);
907
-
908
- int old_flags2 = ((_IO_FILE *) stderr)->_flags2;
909
- ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL;
910
-
911
- __fxprintf (NULL, "%s", buf);
912
-
913
- ((_IO_FILE *) stderr)->_flags2 = old_flags2;
914
- _IO_funlockfile (stderr);
915
-
916
- free (buf);
917
- }
918
- #else
919
- fprintf (stderr, _("%s: option `-W %s' is ambiguous\n"),
920
- argv[0], argv[d->optind]);
921
- #endif
922
- }
923
- d->__nextchar += strlen (d->__nextchar);
924
- d->optind++;
925
- return '?';
926
- }
927
- if (pfound != NULL)
928
- {
929
- option_index = indfound;
930
- if (*nameend)
931
- {
932
- /* Don't test has_arg with >, because some C compilers don't
933
- allow it to be used on enums. */
934
- if (pfound->has_arg)
935
- d->optarg = nameend + 1;
936
- else
937
- {
938
- if (print_errors)
939
- {
940
- #if defined _LIBC && defined USE_IN_LIBIO
941
- char *buf;
942
-
943
- if (__asprintf (&buf, _("\
944
- %s: option `-W %s' doesn't allow an argument\n"),
945
- argv[0], pfound->name) >= 0)
946
- {
947
- _IO_flockfile (stderr);
948
-
949
- int old_flags2 = ((_IO_FILE *) stderr)->_flags2;
950
- ((_IO_FILE *) stderr)->_flags2
951
- |= _IO_FLAGS2_NOTCANCEL;
952
-
953
- __fxprintf (NULL, "%s", buf);
954
-
955
- ((_IO_FILE *) stderr)->_flags2 = old_flags2;
956
- _IO_funlockfile (stderr);
957
-
958
- free (buf);
959
- }
960
- #else
961
- fprintf (stderr, _("\
962
- %s: option `-W %s' doesn't allow an argument\n"),
963
- argv[0], pfound->name);
964
- #endif
965
- }
966
-
967
- d->__nextchar += strlen (d->__nextchar);
968
- return '?';
969
- }
970
- }
971
- else if (pfound->has_arg == 1)
972
- {
973
- if (d->optind < argc)
974
- d->optarg = argv[d->optind++];
975
- else
976
- {
977
- if (print_errors)
978
- {
979
- #if defined _LIBC && defined USE_IN_LIBIO
980
- char *buf;
981
-
982
- if (__asprintf (&buf, _("\
983
- %s: option `%s' requires an argument\n"),
984
- argv[0], argv[d->optind - 1]) >= 0)
985
- {
986
- _IO_flockfile (stderr);
987
-
988
- int old_flags2 = ((_IO_FILE *) stderr)->_flags2;
989
- ((_IO_FILE *) stderr)->_flags2
990
- |= _IO_FLAGS2_NOTCANCEL;
991
-
992
- __fxprintf (NULL, "%s", buf);
993
-
994
- ((_IO_FILE *) stderr)->_flags2 = old_flags2;
995
- _IO_funlockfile (stderr);
996
-
997
- free (buf);
998
- }
999
- #else
1000
- fprintf (stderr,
1001
- _("%s: option `%s' requires an argument\n"),
1002
- argv[0], argv[d->optind - 1]);
1003
- #endif
1004
- }
1005
- d->__nextchar += strlen (d->__nextchar);
1006
- return optstring[0] == ':' ? ':' : '?';
1007
- }
1008
- }
1009
- d->__nextchar += strlen (d->__nextchar);
1010
- if (longind != NULL)
1011
- *longind = option_index;
1012
- if (pfound->flag)
1013
- {
1014
- *(pfound->flag) = pfound->val;
1015
- return 0;
1016
- }
1017
- return pfound->val;
1018
- }
1019
- d->__nextchar = NULL;
1020
- return 'W'; /* Let the application handle it. */
1021
- }
1022
- if (temp[1] == ':')
1023
- {
1024
- if (temp[2] == ':')
1025
- {
1026
- /* This is an option that accepts an argument optionally. */
1027
- if (*d->__nextchar != '\0')
1028
- {
1029
- d->optarg = d->__nextchar;
1030
- d->optind++;
1031
- }
1032
- else
1033
- d->optarg = NULL;
1034
- d->__nextchar = NULL;
1035
- }
1036
- else
1037
- {
1038
- /* This is an option that requires an argument. */
1039
- if (*d->__nextchar != '\0')
1040
- {
1041
- d->optarg = d->__nextchar;
1042
- /* If we end this ARGV-element by taking the rest as an arg,
1043
- we must advance to the next element now. */
1044
- d->optind++;
1045
- }
1046
- else if (d->optind == argc)
1047
- {
1048
- if (print_errors)
1049
- {
1050
- /* 1003.2 specifies the format of this message. */
1051
- #if defined _LIBC && defined USE_IN_LIBIO
1052
- char *buf;
1053
-
1054
- if (__asprintf (&buf, _("\
1055
- %s: option requires an argument -- %c\n"),
1056
- argv[0], c) >= 0)
1057
- {
1058
- _IO_flockfile (stderr);
1059
-
1060
- int old_flags2 = ((_IO_FILE *) stderr)->_flags2;
1061
- ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL;
1062
-
1063
- __fxprintf (NULL, "%s", buf);
1064
-
1065
- ((_IO_FILE *) stderr)->_flags2 = old_flags2;
1066
- _IO_funlockfile (stderr);
1067
-
1068
- free (buf);
1069
- }
1070
- #else
1071
- fprintf (stderr,
1072
- _("%s: option requires an argument -- %c\n"),
1073
- argv[0], c);
1074
- #endif
1075
- }
1076
- d->optopt = c;
1077
- if (optstring[0] == ':')
1078
- c = ':';
1079
- else
1080
- c = '?';
1081
- }
1082
- else
1083
- /* We already incremented `optind' once;
1084
- increment it again when taking next ARGV-elt as argument. */
1085
- d->optarg = argv[d->optind++];
1086
- d->__nextchar = NULL;
1087
- }
1088
- }
1089
- return c;
1090
- }
1091
- }
1092
-
1093
- int
1094
- _getopt_internal (int argc, char **argv, const char *optstring,
1095
- const struct option *longopts, int *longind,
1096
- int long_only, int posixly_correct)
1097
- {
1098
- int result;
1099
-
1100
- getopt_data.optind = optind;
1101
- getopt_data.opterr = opterr;
1102
-
1103
- result = _getopt_internal_r (argc, argv, optstring, longopts, longind,
1104
- long_only, posixly_correct, &getopt_data);
1105
-
1106
- optind = getopt_data.optind;
1107
- optarg = getopt_data.optarg;
1108
- optopt = getopt_data.optopt;
1109
-
1110
- return result;
1111
- }
1112
-
1113
- /* glibc gets a LSB-compliant getopt.
1114
- Standalone applications get a POSIX-compliant getopt. */
1115
- #if _LIBC
1116
- enum { POSIXLY_CORRECT = 0 };
1117
- #else
1118
- enum { POSIXLY_CORRECT = 1 };
1119
- #endif
1120
-
1121
- int
1122
- getopt (int argc, char *const *argv, const char *optstring)
1123
- {
1124
- return _getopt_internal (argc, (char **) argv, optstring, NULL, NULL, 0,
1125
- POSIXLY_CORRECT);
1126
- }
1127
-
1128
-
1129
- #ifdef TEST
1130
-
1131
- /* Compile with -DTEST to make an executable for use in testing
1132
- the above definition of `getopt'. */
1133
-
1134
- int
1135
- main (int argc, char **argv)
1136
- {
1137
- int c;
1138
- int digit_optind = 0;
1139
-
1140
- while (1)
1141
- {
1142
- int this_option_optind = optind ? optind : 1;
1143
-
1144
- c = getopt (argc, argv, "abc:d:0123456789");
1145
- if (c == -1)
1146
- break;
1147
-
1148
- switch (c)
1149
- {
1150
- case '0':
1151
- case '1':
1152
- case '2':
1153
- case '3':
1154
- case '4':
1155
- case '5':
1156
- case '6':
1157
- case '7':
1158
- case '8':
1159
- case '9':
1160
- if (digit_optind != 0 && digit_optind != this_option_optind)
1161
- printf ("digits occur in two different argv-elements.\n");
1162
- digit_optind = this_option_optind;
1163
- printf ("option %c\n", c);
1164
- break;
1165
-
1166
- case 'a':
1167
- printf ("option a\n");
1168
- break;
1169
-
1170
- case 'b':
1171
- printf ("option b\n");
1172
- break;
1173
-
1174
- case 'c':
1175
- printf ("option c with value `%s'\n", optarg);
1176
- break;
1177
-
1178
- case '?':
1179
- break;
1180
-
1181
- default:
1182
- printf ("?? getopt returned character code 0%o ??\n", c);
1183
- }
1184
- }
1185
-
1186
- if (optind < argc)
1187
- {
1188
- printf ("non-option ARGV-elements: ");
1189
- while (optind < argc)
1190
- printf ("%s ", argv[optind++]);
1191
- printf ("\n");
1192
- }
1193
-
1194
- exit (0);
1195
- }
1196
-
1197
- #endif /* TEST */