webruby 0.2.7 → 0.9.1
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.
- checksums.yaml +4 -4
- data/lib/webruby/environment.rb +24 -8
- data/lib/webruby/rake/files.rake +6 -22
- data/lib/webruby/rake/general.rake +1 -1
- data/lib/webruby/rake/mruby.rake +1 -0
- data/lib/webruby/utility.rb +14 -0
- data/modules/mruby/AUTHORS +14 -0
- data/modules/mruby/CONTRIBUTING.md +7 -4
- data/modules/mruby/INSTALL +28 -11
- data/modules/mruby/MITL +13 -13
- data/modules/mruby/Makefile +4 -5
- data/modules/mruby/README.md +54 -49
- data/modules/mruby/Rakefile +36 -6
- data/modules/mruby/benchmark/ao-render.rb +1 -2
- data/modules/mruby/benchmark/bm_app_lc_fizzbuzz.rb +52 -0
- data/modules/mruby/benchmark/fib39.rb +0 -0
- data/modules/mruby/bintest/mrbc.rb +12 -0
- data/modules/mruby/build_config.rb +32 -2
- data/modules/mruby/doc/api/README.md +30 -0
- data/modules/mruby/doc/api/mruby.h.md +69 -0
- data/modules/mruby/doc/compile/README.md +208 -99
- data/modules/mruby/doc/debugger/README.md +370 -0
- data/modules/mruby/doc/language/Core.md +1590 -0
- data/modules/mruby/doc/language/README.md +9 -0
- data/modules/mruby/doc/language/generator.rb +15 -0
- data/modules/mruby/doc/language/mrbdoc/lib/mrbdoc_analyze.rb +231 -0
- data/modules/mruby/doc/language/mrbdoc/lib/mrbdoc_docu.rb +118 -0
- data/modules/mruby/doc/language/mrbdoc/mrbdoc.rb +38 -0
- data/modules/mruby/doc/mrbconf/README.md +160 -0
- data/modules/mruby/doc/mrbgems/README.md +136 -66
- data/modules/mruby/examples/mrbgems/c_and_ruby_extension_example/mrbgem.rake +1 -1
- data/modules/mruby/examples/mrbgems/c_and_ruby_extension_example/src/example.c +1 -1
- data/modules/mruby/examples/mrbgems/c_extension_example/mrbgem.rake +1 -1
- data/modules/mruby/examples/mrbgems/c_extension_example/src/example.c +1 -1
- data/modules/mruby/examples/mrbgems/ruby_extension_example/mrbgem.rake +1 -1
- data/modules/mruby/examples/targets/{ArduinoDue.rb → build_config_ArduinoDue.rb} +32 -6
- data/modules/mruby/examples/targets/build_config_IntelGalileo.rb +106 -0
- data/modules/mruby/examples/targets/{chipKitMax32.rb → build_config_chipKITMax32.rb} +26 -7
- data/modules/mruby/include/mrbconf.h +25 -1
- data/modules/mruby/include/mruby/array.h +32 -22
- data/modules/mruby/include/mruby/boxing_nan.h +94 -0
- data/modules/mruby/include/mruby/boxing_no.h +49 -0
- data/modules/mruby/include/mruby/boxing_word.h +119 -0
- data/modules/mruby/include/mruby/class.h +15 -13
- data/modules/mruby/include/mruby/compile.h +43 -36
- data/modules/mruby/include/mruby/data.h +13 -5
- data/modules/mruby/include/mruby/debug.h +9 -9
- data/modules/mruby/include/mruby/dump.h +32 -23
- data/modules/mruby/include/mruby/error.h +36 -0
- data/modules/mruby/include/mruby/gc.h +11 -6
- data/modules/mruby/include/mruby/hash.h +12 -12
- data/modules/mruby/include/mruby/irep.h +9 -3
- data/modules/mruby/include/mruby/khash.h +58 -41
- data/modules/mruby/include/mruby/numeric.h +38 -4
- data/modules/mruby/include/mruby/object.h +55 -0
- data/modules/mruby/include/mruby/opcode.h +160 -0
- data/modules/mruby/include/mruby/proc.h +19 -5
- data/modules/mruby/include/mruby/range.h +4 -3
- data/modules/mruby/include/mruby/re.h +20 -0
- data/modules/mruby/include/mruby/string.h +86 -47
- data/modules/mruby/include/mruby/value.h +100 -374
- data/modules/mruby/include/mruby/variable.h +34 -32
- data/modules/mruby/include/mruby/version.h +40 -0
- data/modules/mruby/include/mruby.h +211 -139
- data/modules/mruby/minirake +16 -9
- data/modules/mruby/mrbgems/default.gembox +12 -0
- data/modules/mruby/mrbgems/full-core.gembox +3 -3
- data/modules/mruby/mrbgems/mruby-array-ext/mrbgem.rake +1 -0
- data/modules/mruby/mrbgems/mruby-array-ext/mrblib/array.rb +488 -8
- data/modules/mruby/mrbgems/mruby-array-ext/src/array.c +57 -31
- data/modules/mruby/mrbgems/mruby-array-ext/test/array.rb +231 -45
- data/modules/mruby/mrbgems/mruby-bin-debugger/bintest/mrdb.rb +286 -0
- data/modules/mruby/mrbgems/mruby-bin-debugger/bintest/print.rb +701 -0
- data/modules/mruby/mrbgems/mruby-bin-debugger/mrbgem.rake +9 -0
- data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c +516 -0
- data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.h +26 -0
- data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c +235 -0
- data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.h +14 -0
- data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c +78 -0
- data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.h +13 -0
- data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c +428 -0
- data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c +501 -0
- data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdprint.c +58 -0
- data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdrun.c +54 -0
- data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.c +746 -0
- data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.h +163 -0
- data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdbconf.h +16 -0
- data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdberror.h +20 -0
- data/modules/mruby/mrbgems/mruby-bin-mirb/bintest/mirb.rb +12 -0
- data/modules/mruby/mrbgems/mruby-bin-mirb/mrbgem.rake +14 -1
- data/modules/mruby/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c +154 -72
- data/modules/mruby/mrbgems/mruby-bin-mruby/bintest/mruby.rb +46 -0
- data/modules/mruby/mrbgems/mruby-bin-mruby/mrbgem.rake +1 -0
- data/modules/mruby/mrbgems/mruby-bin-mruby/tools/mruby/mruby.c +37 -28
- data/modules/mruby/mrbgems/mruby-bin-mruby-config/mrbgem.rake +30 -0
- data/modules/mruby/mrbgems/mruby-bin-mruby-config/mruby-config +16 -0
- data/modules/mruby/mrbgems/mruby-bin-mruby-config/mruby-config.bat +30 -0
- data/modules/mruby/mrbgems/mruby-bin-strip/bintest/mruby-strip.rb +73 -0
- data/modules/mruby/mrbgems/mruby-bin-strip/mrbgem.rake +6 -0
- data/modules/mruby/mrbgems/mruby-bin-strip/tools/mruby-strip/mruby-strip.c +155 -0
- data/modules/mruby/mrbgems/mruby-enum-ext/mrbgem.rake +1 -0
- data/modules/mruby/mrbgems/mruby-enum-ext/mrblib/enum.rb +555 -21
- data/modules/mruby/mrbgems/mruby-enum-ext/test/enum.rb +119 -0
- data/modules/mruby/mrbgems/mruby-enum-lazy/mrbgem.rake +7 -0
- data/modules/mruby/mrbgems/mruby-enum-lazy/mrblib/lazy.rb +150 -0
- data/modules/mruby/mrbgems/mruby-enum-lazy/test/lazy.rb +47 -0
- data/modules/mruby/mrbgems/mruby-enumerator/mrbgem.rake +7 -0
- data/modules/mruby/mrbgems/mruby-enumerator/mrblib/enumerator.rb +636 -0
- data/modules/mruby/mrbgems/mruby-enumerator/test/enumerator.rb +537 -0
- data/modules/mruby/mrbgems/mruby-eval/mrbgem.rake +1 -0
- data/modules/mruby/mrbgems/mruby-eval/src/eval.c +243 -4
- data/modules/mruby/mrbgems/mruby-eval/test/eval.rb +80 -0
- data/modules/mruby/mrbgems/mruby-exit/mrbgem.rake +1 -0
- data/modules/mruby/mrbgems/mruby-exit/src/mruby-exit.c +1 -1
- data/modules/mruby/mrbgems/mruby-fiber/mrbgem.rake +1 -0
- data/modules/mruby/mrbgems/mruby-fiber/src/fiber.c +157 -51
- data/modules/mruby/mrbgems/mruby-fiber/test/fiber.rb +179 -35
- data/modules/mruby/mrbgems/mruby-hash-ext/mrbgem.rake +3 -0
- data/modules/mruby/mrbgems/mruby-hash-ext/mrblib/hash.rb +241 -1
- data/modules/mruby/mrbgems/mruby-hash-ext/src/hash-ext.c +11 -19
- data/modules/mruby/mrbgems/mruby-hash-ext/test/hash.rb +138 -1
- data/modules/mruby/mrbgems/mruby-kernel-ext/mrbgem.rake +5 -0
- data/modules/mruby/mrbgems/mruby-kernel-ext/src/kernel.c +183 -0
- data/modules/mruby/mrbgems/mruby-kernel-ext/test/kernel.rb +53 -0
- data/modules/mruby/mrbgems/mruby-math/mrbgem.rake +1 -0
- data/modules/mruby/mrbgems/mruby-math/src/math.c +107 -14
- data/modules/mruby/mrbgems/mruby-math/test/math.rb +16 -0
- data/modules/mruby/mrbgems/mruby-numeric-ext/mrbgem.rake +1 -0
- data/modules/mruby/mrbgems/mruby-numeric-ext/mrblib/numeric_ext.rb +5 -0
- data/modules/mruby/mrbgems/mruby-numeric-ext/test/numeric.rb +9 -1
- data/modules/mruby/mrbgems/mruby-object-ext/mrbgem.rake +1 -0
- data/modules/mruby/mrbgems/mruby-object-ext/mrblib/object.rb +19 -0
- data/modules/mruby/mrbgems/mruby-object-ext/src/object.c +5 -8
- data/modules/mruby/mrbgems/mruby-object-ext/test/object.rb +16 -0
- data/modules/mruby/mrbgems/mruby-objectspace/mrbgem.rake +1 -0
- data/modules/mruby/mrbgems/mruby-objectspace/src/mruby_objectspace.c +121 -53
- data/modules/mruby/mrbgems/mruby-objectspace/test/objectspace.rb +27 -4
- data/modules/mruby/mrbgems/mruby-print/mrbgem.rake +1 -0
- data/modules/mruby/mrbgems/mruby-print/src/print.c +3 -5
- data/modules/mruby/mrbgems/mruby-proc-ext/mrbgem.rake +1 -0
- data/modules/mruby/mrbgems/mruby-proc-ext/src/proc.c +89 -19
- data/modules/mruby/mrbgems/mruby-proc-ext/test/proc.c +56 -0
- data/modules/mruby/mrbgems/mruby-proc-ext/test/proc.rb +47 -0
- data/modules/mruby/mrbgems/mruby-random/mrbgem.rake +1 -0
- data/modules/mruby/mrbgems/mruby-random/src/mt19937ar.c +30 -25
- data/modules/mruby/mrbgems/mruby-random/src/mt19937ar.h +6 -3
- data/modules/mruby/mrbgems/mruby-random/src/random.c +157 -137
- data/modules/mruby/mrbgems/mruby-random/src/random.h +3 -3
- data/modules/mruby/mrbgems/mruby-random/test/random.rb +9 -9
- data/modules/mruby/mrbgems/mruby-range-ext/mrbgem.rake +1 -0
- data/modules/mruby/mrbgems/mruby-range-ext/src/range.c +57 -3
- data/modules/mruby/mrbgems/mruby-range-ext/test/range.rb +9 -0
- data/modules/mruby/mrbgems/mruby-sprintf/mrbgem.rake +1 -0
- data/modules/mruby/mrbgems/mruby-sprintf/mrblib/string.rb +9 -0
- data/modules/mruby/mrbgems/mruby-sprintf/src/sprintf.c +29 -23
- data/modules/mruby/mrbgems/mruby-sprintf/test/sprintf.rb +7 -2
- data/modules/mruby/mrbgems/mruby-string-ext/mrbgem.rake +1 -0
- data/modules/mruby/mrbgems/mruby-string-ext/mrblib/string.rb +250 -11
- data/modules/mruby/mrbgems/mruby-string-ext/src/string.c +220 -5
- data/modules/mruby/mrbgems/mruby-string-ext/test/string.rb +326 -4
- data/modules/mruby/mrbgems/mruby-string-utf8/mrbgem.rake +2 -0
- data/modules/mruby/mrbgems/mruby-string-utf8/src/string.c +486 -52
- data/modules/mruby/mrbgems/mruby-string-utf8/test/string.rb +97 -14
- data/modules/mruby/mrbgems/mruby-struct/mrbgem.rake +1 -0
- data/modules/mruby/mrbgems/mruby-struct/mrblib/struct.rb +31 -0
- data/modules/mruby/mrbgems/mruby-struct/src/struct.c +178 -196
- data/modules/mruby/mrbgems/mruby-struct/test/struct.rb +115 -61
- data/modules/mruby/mrbgems/mruby-symbol-ext/mrbgem.rake +1 -0
- data/modules/mruby/mrbgems/mruby-symbol-ext/mrblib/symbol.rb +22 -17
- data/modules/mruby/mrbgems/mruby-symbol-ext/src/symbol.c +20 -11
- data/modules/mruby/mrbgems/mruby-symbol-ext/test/symbol.rb +14 -0
- data/modules/mruby/mrbgems/mruby-time/mrbgem.rake +1 -0
- data/modules/mruby/mrbgems/mruby-time/mrblib/time.rb +9 -0
- data/modules/mruby/mrbgems/mruby-time/src/time.c +98 -37
- data/modules/mruby/mrbgems/mruby-time/test/time.rb +152 -148
- data/modules/mruby/mrbgems/mruby-toplevel-ext/mrbgem.rake +1 -0
- data/modules/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb +1 -1
- data/modules/mruby/mrblib/array.rb +110 -4
- data/modules/mruby/mrblib/class.rb +1 -22
- data/modules/mruby/mrblib/compar.rb +10 -30
- data/modules/mruby/mrblib/enum.rb +64 -52
- data/modules/mruby/mrblib/error.rb +9 -4
- data/modules/mruby/mrblib/hash.rb +164 -23
- data/modules/mruby/mrblib/kernel.rb +26 -22
- data/modules/mruby/mrblib/mrblib.rake +4 -4
- data/modules/mruby/mrblib/numeric.rb +22 -9
- data/modules/mruby/mrblib/range.rb +24 -2
- data/modules/mruby/mrblib/string.rb +15 -3
- data/modules/mruby/src/array.c +279 -339
- data/modules/mruby/src/backtrace.c +68 -16
- data/modules/mruby/src/class.c +539 -379
- data/modules/mruby/src/codegen.c +424 -207
- data/modules/mruby/src/compar.c +1 -1
- data/modules/mruby/src/crc.c +7 -6
- data/modules/mruby/src/debug.c +37 -36
- data/modules/mruby/src/dump.c +463 -213
- data/modules/mruby/src/enum.c +1 -1
- data/modules/mruby/src/error.c +91 -92
- data/modules/mruby/src/error.h +3 -19
- data/modules/mruby/src/etc.c +85 -82
- data/modules/mruby/src/gc.c +134 -108
- data/modules/mruby/src/hash.c +161 -565
- data/modules/mruby/src/init.c +2 -13
- data/modules/mruby/src/kernel.c +217 -251
- data/modules/mruby/src/load.c +280 -283
- data/modules/mruby/src/mrb_throw.h +41 -0
- data/modules/mruby/src/mruby_core.rake +57 -7
- data/modules/mruby/src/node.h +104 -104
- data/modules/mruby/src/numeric.c +221 -208
- data/modules/mruby/src/object.c +41 -42
- data/modules/mruby/src/opcode.h +2 -160
- data/modules/mruby/src/parse.y +3430 -3223
- data/modules/mruby/src/pool.c +13 -9
- data/modules/mruby/src/print.c +20 -17
- data/modules/mruby/src/proc.c +77 -21
- data/modules/mruby/src/range.c +55 -45
- data/modules/mruby/src/state.c +95 -31
- data/modules/mruby/src/string.c +462 -468
- data/modules/mruby/src/symbol.c +95 -85
- data/modules/mruby/src/variable.c +104 -74
- data/modules/mruby/src/version.c +13 -0
- data/modules/mruby/src/vm.c +528 -296
- data/modules/mruby/tasks/libmruby.rake +9 -5
- data/modules/mruby/tasks/mrbgem_spec.rake +130 -26
- data/modules/mruby/tasks/mrbgems.rake +21 -11
- data/modules/mruby/tasks/mrbgems_test.rake +46 -40
- data/modules/mruby/tasks/mruby_build.rake +54 -12
- data/modules/mruby/tasks/mruby_build_commands.rake +34 -5
- data/modules/mruby/tasks/mruby_build_gem.rake +25 -3
- data/modules/mruby/tasks/ruby_ext.rake +11 -2
- data/modules/mruby/tasks/toolchains/clang.rake +2 -1
- data/modules/mruby/tasks/toolchains/gcc.rake +26 -3
- data/modules/mruby/tasks/toolchains/visualcpp.rake +17 -8
- data/modules/mruby/test/assert.rb +30 -8
- data/modules/mruby/test/bintest.rb +10 -0
- data/modules/mruby/test/driver.c +74 -24
- data/modules/mruby/test/init_mrbtest.c +21 -2
- data/modules/mruby/test/mrbtest.rake +27 -5
- data/modules/mruby/test/t/argumenterror.rb +0 -5
- data/modules/mruby/test/t/array.rb +23 -7
- data/modules/mruby/test/t/bs_block.rb +32 -0
- data/modules/mruby/test/t/class.rb +29 -5
- data/modules/mruby/test/t/comparable.rb +20 -12
- data/modules/mruby/test/t/enumerable.rb +33 -7
- data/modules/mruby/test/t/exception.rb +63 -38
- data/modules/mruby/test/t/false.rb +2 -4
- data/modules/mruby/test/t/float.rb +39 -4
- data/modules/mruby/test/t/hash.rb +40 -6
- data/modules/mruby/test/t/indexerror.rb +0 -4
- data/modules/mruby/test/t/integer.rb +41 -5
- data/modules/mruby/test/t/kernel.rb +90 -3
- data/modules/mruby/test/t/localjumperror.rb +4 -4
- data/modules/mruby/test/t/methods.rb +1 -1
- data/modules/mruby/test/t/module.rb +43 -13
- data/modules/mruby/test/t/nameerror.rb +0 -4
- data/modules/mruby/test/t/nil.rb +5 -0
- data/modules/mruby/test/t/nomethoderror.rb +11 -2
- data/modules/mruby/test/t/numeric.rb +18 -4
- data/modules/mruby/test/t/proc.rb +59 -6
- data/modules/mruby/test/t/range.rb +15 -5
- data/modules/mruby/test/t/rangeerror.rb +0 -4
- data/modules/mruby/test/t/standarderror.rb +0 -4
- data/modules/mruby/test/t/string.rb +56 -12
- data/modules/mruby/test/t/superclass.rb +46 -0
- data/modules/mruby/test/t/symbol.rb +0 -4
- data/modules/mruby/test/t/syntax.rb +134 -1
- data/modules/mruby/test/t/true.rb +2 -4
- data/modules/mruby/test/t/typeerror.rb +0 -5
- data/modules/mruby/test/t/unicode.rb +35 -0
- data/modules/mruby/tools/mrbc/mrbc.c +9 -12
- data/modules/mruby/travis_config.rb +22 -2
- metadata +98 -1299
- data/modules/emscripten/AUTHORS +0 -117
- data/modules/emscripten/CONTRIBUTING.markdown +0 -5
- data/modules/emscripten/ChangeLog +0 -468
- data/modules/emscripten/LICENSE +0 -94
- data/modules/emscripten/README.markdown +0 -14
- data/modules/emscripten/cmake/Modules/FindOpenAL.cmake +0 -26
- data/modules/emscripten/cmake/Platform/Emscripten.cmake +0 -228
- data/modules/emscripten/em++ +0 -12
- data/modules/emscripten/em++.bat +0 -2
- data/modules/emscripten/em-config +0 -24
- data/modules/emscripten/em-config.bat +0 -2
- data/modules/emscripten/emar +0 -24
- data/modules/emscripten/emar.bat +0 -2
- data/modules/emscripten/emcc +0 -2069
- data/modules/emscripten/emcc.bat +0 -2
- data/modules/emscripten/emcc.py +0 -5
- data/modules/emscripten/emconfigure +0 -27
- data/modules/emscripten/emconfigure.bat +0 -2
- data/modules/emscripten/emlink.py +0 -33
- data/modules/emscripten/emmake +0 -29
- data/modules/emscripten/emmake.bat +0 -2
- data/modules/emscripten/emranlib +0 -9
- data/modules/emscripten/emranlib.bat +0 -2
- data/modules/emscripten/emrun +0 -1087
- data/modules/emscripten/emrun.bat +0 -2
- data/modules/emscripten/emscons +0 -20
- data/modules/emscripten/emscripten.py +0 -1347
- data/modules/emscripten/package.json +0 -7
- data/modules/emscripten/patches/README +0 -4
- data/modules/emscripten/patches/series +0 -2
- data/modules/emscripten/scons-tools/closure.py +0 -28
- data/modules/emscripten/scons-tools/emscripten.py +0 -364
- data/modules/emscripten/scons-tools/llvm.py +0 -34
- data/modules/emscripten/src/analyzer.js +0 -1781
- data/modules/emscripten/src/closure-externs.js +0 -110
- data/modules/emscripten/src/compiler.html +0 -48
- data/modules/emscripten/src/compiler.js +0 -331
- data/modules/emscripten/src/compiler_phase.html +0 -33
- data/modules/emscripten/src/corruptionCheck.js +0 -98
- data/modules/emscripten/src/determinstic.js +0 -20
- data/modules/emscripten/src/embind/embind.js +0 -1677
- data/modules/emscripten/src/embind/emval.js +0 -284
- data/modules/emscripten/src/emrun_postjs.js +0 -20
- data/modules/emscripten/src/emrun_prejs.js +0 -5
- data/modules/emscripten/src/emscripten-source-map.min.js +0 -31
- data/modules/emscripten/src/experimental/allow_loopvars_from_memsetcpy_inasm.diff +0 -97
- data/modules/emscripten/src/experimental/batching.diff +0 -44
- data/modules/emscripten/src/experimental/functypeopt.diff +0 -113
- data/modules/emscripten/src/experimental/multiple_heaps.diff +0 -175
- data/modules/emscripten/src/experimental/noncallgraphprofiling.diff +0 -197
- data/modules/emscripten/src/experimental/optimize_memcpy_for_ta1.diff +0 -124
- data/modules/emscripten/src/experimental/remove__label__s.diff +0 -140
- data/modules/emscripten/src/experimental/renderer_cache_hash.diff +0 -99
- data/modules/emscripten/src/experimental/sdl_key_forwarding.diff +0 -57
- data/modules/emscripten/src/experimental/simplifyGeneratedFunctionsDetection.diff +0 -336
- data/modules/emscripten/src/experimental/stringCache.diff +0 -147
- data/modules/emscripten/src/fastLong.js +0 -299
- data/modules/emscripten/src/gl-matrix.js +0 -1952
- data/modules/emscripten/src/headless.js +0 -295
- data/modules/emscripten/src/headlessCanvas.js +0 -618
- data/modules/emscripten/src/hello_world.js +0 -92
- data/modules/emscripten/src/intertyper.js +0 -1228
- data/modules/emscripten/src/jsifier.js +0 -1969
- data/modules/emscripten/src/library.js +0 -9196
- data/modules/emscripten/src/library_browser.js +0 -988
- data/modules/emscripten/src/library_egl.js +0 -564
- data/modules/emscripten/src/library_fs.js +0 -1619
- data/modules/emscripten/src/library_gc.js +0 -236
- data/modules/emscripten/src/library_gl.js +0 -5194
- data/modules/emscripten/src/library_glfw.js +0 -585
- data/modules/emscripten/src/library_glut.js +0 -504
- data/modules/emscripten/src/library_idbfs.js +0 -216
- data/modules/emscripten/src/library_jansson.js +0 -320
- data/modules/emscripten/src/library_memfs.js +0 -303
- data/modules/emscripten/src/library_nodefs.js +0 -286
- data/modules/emscripten/src/library_openal.js +0 -915
- data/modules/emscripten/src/library_path.js +0 -133
- data/modules/emscripten/src/library_sdl.js +0 -2728
- data/modules/emscripten/src/library_sockfs.js +0 -578
- data/modules/emscripten/src/library_strtok_r.c +0 -97
- data/modules/emscripten/src/library_tty.js +0 -146
- data/modules/emscripten/src/library_uuid.js +0 -140
- data/modules/emscripten/src/library_xlib.js +0 -23
- data/modules/emscripten/src/long.js +0 -1609
- data/modules/emscripten/src/modules.js +0 -543
- data/modules/emscripten/src/parseTools.js +0 -2723
- data/modules/emscripten/src/postamble.js +0 -239
- data/modules/emscripten/src/postamble_sharedlib.js +0 -16
- data/modules/emscripten/src/preamble.js +0 -1233
- data/modules/emscripten/src/preamble_sharedlib.js +0 -25
- data/modules/emscripten/src/proxyClient.js +0 -82
- data/modules/emscripten/src/proxyWorker.js +0 -143
- data/modules/emscripten/src/relooper/README.markdown +0 -14
- data/modules/emscripten/src/relooper/Relooper.cpp +0 -1301
- data/modules/emscripten/src/relooper/Relooper.h +0 -257
- data/modules/emscripten/src/relooper/doit.sh +0 -70
- data/modules/emscripten/src/relooper/emscripten/glue.js +0 -67
- data/modules/emscripten/src/relooper/emscripten/test.js +0 -44
- data/modules/emscripten/src/relooper/fuzzer.py +0 -131
- data/modules/emscripten/src/relooper/ministring.h +0 -35
- data/modules/emscripten/src/relooper/paper.pdf +0 -0
- data/modules/emscripten/src/relooper/test.cpp +0 -290
- data/modules/emscripten/src/relooper/test.txt +0 -317
- data/modules/emscripten/src/relooper/test2.c +0 -44
- data/modules/emscripten/src/relooper/test2.txt +0 -26
- data/modules/emscripten/src/relooper/test3.c +0 -42
- data/modules/emscripten/src/relooper/test3.txt +0 -56
- data/modules/emscripten/src/relooper/test4.cpp +0 -40
- data/modules/emscripten/src/relooper/test4.txt +0 -44
- data/modules/emscripten/src/relooper/test5.cpp +0 -40
- data/modules/emscripten/src/relooper/test5.txt +0 -56
- data/modules/emscripten/src/relooper/test6.cpp +0 -31
- data/modules/emscripten/src/relooper/test6.txt +0 -26
- data/modules/emscripten/src/relooper/test_dead.cpp +0 -28
- data/modules/emscripten/src/relooper/test_dead.txt +0 -9
- data/modules/emscripten/src/relooper/test_debug.cpp +0 -30
- data/modules/emscripten/src/relooper/test_debug.txt +0 -142
- data/modules/emscripten/src/relooper/test_fuzz1.cpp +0 -52
- data/modules/emscripten/src/relooper/test_fuzz1.txt +0 -72
- data/modules/emscripten/src/relooper/test_fuzz2.cpp +0 -34
- data/modules/emscripten/src/relooper/test_fuzz2.txt +0 -30
- data/modules/emscripten/src/relooper/test_fuzz3.cpp +0 -36
- data/modules/emscripten/src/relooper/test_fuzz3.txt +0 -25
- data/modules/emscripten/src/relooper/test_fuzz4.cpp +0 -38
- data/modules/emscripten/src/relooper/test_fuzz4.txt +0 -41
- data/modules/emscripten/src/relooper/test_fuzz5.cpp +0 -57
- data/modules/emscripten/src/relooper/test_fuzz5.txt +0 -86
- data/modules/emscripten/src/relooper/test_fuzz6.cpp +0 -322
- data/modules/emscripten/src/relooper/test_fuzz6.txt +0 -291
- data/modules/emscripten/src/relooper/test_inf.cpp +0 -813
- data/modules/emscripten/src/relooper/test_inf.txt +0 -1131
- data/modules/emscripten/src/relooper/testit.sh +0 -62
- data/modules/emscripten/src/relooper/updateit.sh +0 -17
- data/modules/emscripten/src/runtime.js +0 -604
- data/modules/emscripten/src/settings.js +0 -476
- data/modules/emscripten/src/shell.html +0 -95
- data/modules/emscripten/src/shell.js +0 -173
- data/modules/emscripten/src/shell_sharedlib.js +0 -29
- data/modules/emscripten/src/simd.js +0 -1128
- data/modules/emscripten/src/socket.io.js +0 -3870
- data/modules/emscripten/src/struct_info.json +0 -1077
- data/modules/emscripten/src/utility.js +0 -411
- data/modules/emscripten/src/wrtcp.js +0 -821
- data/modules/emscripten/system/bin/sdl-config +0 -13
- data/modules/emscripten/system/include/AL/al.h +0 -172
- data/modules/emscripten/system/include/AL/alc.h +0 -84
- data/modules/emscripten/system/include/EGL/egl.h +0 -329
- data/modules/emscripten/system/include/EGL/eglext.h +0 -398
- data/modules/emscripten/system/include/EGL/eglplatform.h +0 -141
- data/modules/emscripten/system/include/GL/freeglut_std.h +0 -628
- data/modules/emscripten/system/include/GL/gl.h +0 -2241
- data/modules/emscripten/system/include/GL/glew.h +0 -6
- data/modules/emscripten/system/include/GL/glext.h +0 -11127
- data/modules/emscripten/system/include/GL/glfw.h +0 -518
- data/modules/emscripten/system/include/GL/glu.h +0 -353
- data/modules/emscripten/system/include/GL/glut.h +0 -21
- data/modules/emscripten/system/include/GLES/gl.h +0 -770
- data/modules/emscripten/system/include/GLES/glext.h +0 -1278
- data/modules/emscripten/system/include/GLES/glplatform.h +0 -30
- data/modules/emscripten/system/include/GLES2/gl2.h +0 -621
- data/modules/emscripten/system/include/GLES2/gl2ext.h +0 -803
- data/modules/emscripten/system/include/GLES2/gl2platform.h +0 -30
- data/modules/emscripten/system/include/KHR/khrplatform.h +0 -277
- data/modules/emscripten/system/include/SDL/COPYING +0 -19
- data/modules/emscripten/system/include/SDL/SDL.h +0 -162
- data/modules/emscripten/system/include/SDL/SDL_assert.h +0 -241
- data/modules/emscripten/system/include/SDL/SDL_atomic.h +0 -318
- data/modules/emscripten/system/include/SDL/SDL_audio.h +0 -509
- data/modules/emscripten/system/include/SDL/SDL_blendmode.h +0 -60
- data/modules/emscripten/system/include/SDL/SDL_clipboard.h +0 -75
- data/modules/emscripten/system/include/SDL/SDL_compat.h +0 -365
- data/modules/emscripten/system/include/SDL/SDL_config.h +0 -48
- data/modules/emscripten/system/include/SDL/SDL_config.h.in +0 -297
- data/modules/emscripten/system/include/SDL/SDL_config_android.h +0 -133
- data/modules/emscripten/system/include/SDL/SDL_config_iphoneos.h +0 -148
- data/modules/emscripten/system/include/SDL/SDL_config_macosx.h +0 -172
- data/modules/emscripten/system/include/SDL/SDL_config_minimal.h +0 -74
- data/modules/emscripten/system/include/SDL/SDL_config_nintendods.h +0 -129
- data/modules/emscripten/system/include/SDL/SDL_config_pandora.h +0 -125
- data/modules/emscripten/system/include/SDL/SDL_config_windows.h +0 -207
- data/modules/emscripten/system/include/SDL/SDL_config_wiz.h +0 -119
- data/modules/emscripten/system/include/SDL/SDL_copying.h +0 -20
- data/modules/emscripten/system/include/SDL/SDL_cpuinfo.h +0 -150
- data/modules/emscripten/system/include/SDL/SDL_endian.h +0 -248
- data/modules/emscripten/system/include/SDL/SDL_error.h +0 -77
- data/modules/emscripten/system/include/SDL/SDL_events.h +0 -640
- data/modules/emscripten/system/include/SDL/SDL_gesture.h +0 -91
- data/modules/emscripten/system/include/SDL/SDL_gfxPrimitives.h +0 -246
- data/modules/emscripten/system/include/SDL/SDL_haptic.h +0 -1200
- data/modules/emscripten/system/include/SDL/SDL_hints.h +0 -206
- data/modules/emscripten/system/include/SDL/SDL_image.h +0 -138
- data/modules/emscripten/system/include/SDL/SDL_input.h +0 -87
- data/modules/emscripten/system/include/SDL/SDL_joystick.h +0 -208
- data/modules/emscripten/system/include/SDL/SDL_keyboard.h +0 -169
- data/modules/emscripten/system/include/SDL/SDL_keycode.h +0 -344
- data/modules/emscripten/system/include/SDL/SDL_loadso.h +0 -85
- data/modules/emscripten/system/include/SDL/SDL_log.h +0 -211
- data/modules/emscripten/system/include/SDL/SDL_main.h +0 -98
- data/modules/emscripten/system/include/SDL/SDL_mixer.h +0 -634
- data/modules/emscripten/system/include/SDL/SDL_mouse.h +0 -213
- data/modules/emscripten/system/include/SDL/SDL_mutex.h +0 -248
- data/modules/emscripten/system/include/SDL/SDL_name.h +0 -11
- data/modules/emscripten/system/include/SDL/SDL_opengl.h +0 -11116
- data/modules/emscripten/system/include/SDL/SDL_opengles.h +0 -38
- data/modules/emscripten/system/include/SDL/SDL_opengles2.h +0 -38
- data/modules/emscripten/system/include/SDL/SDL_pixels.h +0 -423
- data/modules/emscripten/system/include/SDL/SDL_platform.h +0 -160
- data/modules/emscripten/system/include/SDL/SDL_power.h +0 -79
- data/modules/emscripten/system/include/SDL/SDL_quit.h +0 -58
- data/modules/emscripten/system/include/SDL/SDL_rect.h +0 -136
- data/modules/emscripten/system/include/SDL/SDL_render.h +0 -615
- data/modules/emscripten/system/include/SDL/SDL_revision.h +0 -2
- data/modules/emscripten/system/include/SDL/SDL_revision.h.orig +0 -2
- data/modules/emscripten/system/include/SDL/SDL_rotozoom.h +0 -123
- data/modules/emscripten/system/include/SDL/SDL_rwops.h +0 -220
- data/modules/emscripten/system/include/SDL/SDL_scancode.h +0 -398
- data/modules/emscripten/system/include/SDL/SDL_shape.h +0 -147
- data/modules/emscripten/system/include/SDL/SDL_stdinc.h +0 -764
- data/modules/emscripten/system/include/SDL/SDL_surface.h +0 -499
- data/modules/emscripten/system/include/SDL/SDL_syswm.h +0 -241
- data/modules/emscripten/system/include/SDL/SDL_thread.h +0 -182
- data/modules/emscripten/system/include/SDL/SDL_timer.h +0 -108
- data/modules/emscripten/system/include/SDL/SDL_touch.h +0 -124
- data/modules/emscripten/system/include/SDL/SDL_ttf.h +0 -249
- data/modules/emscripten/system/include/SDL/SDL_types.h +0 -29
- data/modules/emscripten/system/include/SDL/SDL_version.h +0 -166
- data/modules/emscripten/system/include/SDL/SDL_video.h +0 -820
- data/modules/emscripten/system/include/SDL/begin_code.h +0 -135
- data/modules/emscripten/system/include/SDL/close_code.h +0 -37
- data/modules/emscripten/system/include/X11/X.h +0 -717
- data/modules/emscripten/system/include/X11/Xatom.h +0 -79
- data/modules/emscripten/system/include/X11/Xfuncproto.h +0 -127
- data/modules/emscripten/system/include/X11/Xlib.h +0 -4023
- data/modules/emscripten/system/include/X11/Xosdefs.h +0 -116
- data/modules/emscripten/system/include/X11/Xutil.h +0 -826
- data/modules/emscripten/system/include/X11/keysym.h +0 -73
- data/modules/emscripten/system/include/X11/keysymdef.h +0 -2389
- data/modules/emscripten/system/include/compat/ctype.h +0 -34
- data/modules/emscripten/system/include/compat/malloc.h +0 -48
- data/modules/emscripten/system/include/compat/math.h +0 -14
- data/modules/emscripten/system/include/compat/netdb.h +0 -22
- data/modules/emscripten/system/include/compat/stdarg.h +0 -16
- data/modules/emscripten/system/include/compat/stdlib.h +0 -16
- data/modules/emscripten/system/include/compat/string.h +0 -17
- data/modules/emscripten/system/include/compat/sys/socketvar.h +0 -14
- data/modules/emscripten/system/include/compat/sys/stat.h +0 -20
- data/modules/emscripten/system/include/compat/sys/timeb.h +0 -35
- data/modules/emscripten/system/include/compat/time.h +0 -18
- data/modules/emscripten/system/include/compat/unistd.h +0 -16
- data/modules/emscripten/system/include/compat/wchar.h +0 -23
- data/modules/emscripten/system/include/compat/wctype.h +0 -23
- data/modules/emscripten/system/include/compat/xlocale.h +0 -19
- data/modules/emscripten/system/include/emscripten/bind.h +0 -1210
- data/modules/emscripten/system/include/emscripten/emmintrin.h +0 -87
- data/modules/emscripten/system/include/emscripten/emscripten.h +0 -519
- data/modules/emscripten/system/include/emscripten/val.h +0 -311
- data/modules/emscripten/system/include/emscripten/vector.h +0 -34
- data/modules/emscripten/system/include/emscripten/wire.h +0 -393
- data/modules/emscripten/system/include/emscripten/xmmintrin.h +0 -131
- data/modules/emscripten/system/include/execinfo.h +0 -44
- data/modules/emscripten/system/include/gc.h +0 -70
- data/modules/emscripten/system/include/gfx/png.h +0 -3798
- data/modules/emscripten/system/include/gfx/pngconf.h +0 -1665
- data/modules/emscripten/system/include/gfx/tiff.h +0 -654
- data/modules/emscripten/system/include/gfx/tiffconf.h +0 -104
- data/modules/emscripten/system/include/gfx/tiffio.h +0 -526
- data/modules/emscripten/system/include/gfx/tiffvers.h +0 -9
- data/modules/emscripten/system/include/jansson.h +0 -323
- data/modules/emscripten/system/include/jansson_config.h +0 -54
- data/modules/emscripten/system/include/libc/aio.h +0 -69
- data/modules/emscripten/system/include/libc/alloca.h +0 -21
- data/modules/emscripten/system/include/libc/ar.h +0 -25
- data/modules/emscripten/system/include/libc/arpa/ftp.h +0 -35
- data/modules/emscripten/system/include/libc/arpa/inet.h +0 -36
- data/modules/emscripten/system/include/libc/arpa/nameser.h +0 -467
- data/modules/emscripten/system/include/libc/arpa/nameser_compat.h +0 -2
- data/modules/emscripten/system/include/libc/arpa/telnet.h +0 -251
- data/modules/emscripten/system/include/libc/arpa/tftp.h +0 -31
- data/modules/emscripten/system/include/libc/assert.h +0 -19
- data/modules/emscripten/system/include/libc/bits/alltypes.h +0 -397
- data/modules/emscripten/system/include/libc/bits/endian.h +0 -1
- data/modules/emscripten/system/include/libc/bits/errno.h +0 -134
- data/modules/emscripten/system/include/libc/bits/fcntl.h +0 -38
- data/modules/emscripten/system/include/libc/bits/fenv.h +0 -34
- data/modules/emscripten/system/include/libc/bits/float.h +0 -17
- data/modules/emscripten/system/include/libc/bits/io.h +0 -0
- data/modules/emscripten/system/include/libc/bits/ioctl.h +0 -197
- data/modules/emscripten/system/include/libc/bits/ipc.h +0 -14
- data/modules/emscripten/system/include/libc/bits/limits.h +0 -8
- data/modules/emscripten/system/include/libc/bits/mman.h +0 -62
- data/modules/emscripten/system/include/libc/bits/msg.h +0 -16
- data/modules/emscripten/system/include/libc/bits/posix.h +0 -2
- data/modules/emscripten/system/include/libc/bits/reg.h +0 -19
- data/modules/emscripten/system/include/libc/bits/setjmp.h +0 -1
- data/modules/emscripten/system/include/libc/bits/shm.h +0 -18
- data/modules/emscripten/system/include/libc/bits/signal.h +0 -112
- data/modules/emscripten/system/include/libc/bits/socket.h +0 -17
- data/modules/emscripten/system/include/libc/bits/stat.h +0 -22
- data/modules/emscripten/system/include/libc/bits/statfs.h +0 -7
- data/modules/emscripten/system/include/libc/bits/stdarg.h +0 -4
- data/modules/emscripten/system/include/libc/bits/stdint.h +0 -20
- data/modules/emscripten/system/include/libc/bits/syscall.h +0 -696
- data/modules/emscripten/system/include/libc/bits/termios.h +0 -160
- data/modules/emscripten/system/include/libc/bits/user.h +0 -48
- data/modules/emscripten/system/include/libc/byteswap.h +0 -26
- data/modules/emscripten/system/include/libc/complex.h +0 -125
- data/modules/emscripten/system/include/libc/cpio.h +0 -29
- data/modules/emscripten/system/include/libc/crypt.h +0 -20
- data/modules/emscripten/system/include/libc/ctype.h +0 -67
- data/modules/emscripten/system/include/libc/dirent.h +0 -79
- data/modules/emscripten/system/include/libc/dlfcn.h +0 -42
- data/modules/emscripten/system/include/libc/elf.h +0 -2555
- data/modules/emscripten/system/include/libc/endian.h +0 -82
- data/modules/emscripten/system/include/libc/err.h +0 -25
- data/modules/emscripten/system/include/libc/errno.h +0 -27
- data/modules/emscripten/system/include/libc/fcntl.h +0 -175
- data/modules/emscripten/system/include/libc/features.h +0 -32
- data/modules/emscripten/system/include/libc/fenv.h +0 -28
- data/modules/emscripten/system/include/libc/float.h +0 -34
- data/modules/emscripten/system/include/libc/fnmatch.h +0 -29
- data/modules/emscripten/system/include/libc/ftw.h +0 -42
- data/modules/emscripten/system/include/libc/getopt.h +0 -31
- data/modules/emscripten/system/include/libc/glob.h +0 -48
- data/modules/emscripten/system/include/libc/grp.h +0 -52
- data/modules/emscripten/system/include/libc/iconv.h +0 -24
- data/modules/emscripten/system/include/libc/ifaddrs.h +0 -35
- data/modules/emscripten/system/include/libc/inttypes.h +0 -227
- data/modules/emscripten/system/include/libc/iso646.h +0 -20
- data/modules/emscripten/system/include/libc/langinfo.h +0 -88
- data/modules/emscripten/system/include/libc/lastlog.h +0 -1
- data/modules/emscripten/system/include/libc/libgen.h +0 -15
- data/modules/emscripten/system/include/libc/libintl.h +0 -25
- data/modules/emscripten/system/include/libc/limits.h +0 -146
- data/modules/emscripten/system/include/libc/link.h +0 -54
- data/modules/emscripten/system/include/libc/locale.h +0 -82
- data/modules/emscripten/system/include/libc/malloc.h +0 -0
- data/modules/emscripten/system/include/libc/math.h +0 -422
- data/modules/emscripten/system/include/libc/memory.h +0 -1
- data/modules/emscripten/system/include/libc/mntent.h +0 -44
- data/modules/emscripten/system/include/libc/monetary.h +0 -23
- data/modules/emscripten/system/include/libc/mqueue.h +0 -36
- data/modules/emscripten/system/include/libc/net/ethernet.h +0 -55
- data/modules/emscripten/system/include/libc/net/if.h +0 -135
- data/modules/emscripten/system/include/libc/net/if_arp.h +0 -133
- data/modules/emscripten/system/include/libc/net/route.h +0 -124
- data/modules/emscripten/system/include/libc/netdb.h +0 -161
- data/modules/emscripten/system/include/libc/netinet/ether.h +0 -14
- data/modules/emscripten/system/include/libc/netinet/icmp6.h +0 -305
- data/modules/emscripten/system/include/libc/netinet/if_ether.h +0 -126
- data/modules/emscripten/system/include/libc/netinet/in.h +0 -336
- data/modules/emscripten/system/include/libc/netinet/in_systm.h +0 -9
- data/modules/emscripten/system/include/libc/netinet/ip.h +0 -186
- data/modules/emscripten/system/include/libc/netinet/ip6.h +0 -142
- data/modules/emscripten/system/include/libc/netinet/ip_icmp.h +0 -192
- data/modules/emscripten/system/include/libc/netinet/tcp.h +0 -71
- data/modules/emscripten/system/include/libc/netinet/udp.h +0 -35
- data/modules/emscripten/system/include/libc/netpacket/packet.h +0 -44
- data/modules/emscripten/system/include/libc/nl_types.h +0 -22
- data/modules/emscripten/system/include/libc/paths.h +0 -32
- data/modules/emscripten/system/include/libc/poll.h +0 -46
- data/modules/emscripten/system/include/libc/pthread.h +0 -222
- data/modules/emscripten/system/include/libc/pty.h +0 -18
- data/modules/emscripten/system/include/libc/pwd.h +0 -49
- data/modules/emscripten/system/include/libc/readme.txt +0 -3
- data/modules/emscripten/system/include/libc/regex.h +0 -62
- data/modules/emscripten/system/include/libc/resolv.h +0 -144
- data/modules/emscripten/system/include/libc/sched.h +0 -132
- data/modules/emscripten/system/include/libc/search.h +0 -51
- data/modules/emscripten/system/include/libc/semaphore.h +0 -35
- data/modules/emscripten/system/include/libc/setjmp.h +0 -42
- data/modules/emscripten/system/include/libc/shadow.h +0 -44
- data/modules/emscripten/system/include/libc/signal.h +0 -255
- data/modules/emscripten/system/include/libc/spawn.h +0 -74
- data/modules/emscripten/system/include/libc/stdalign.h +0 -15
- data/modules/emscripten/system/include/libc/stdarg.h +0 -25
- data/modules/emscripten/system/include/libc/stdbool.h +0 -14
- data/modules/emscripten/system/include/libc/stddef.h +0 -18
- data/modules/emscripten/system/include/libc/stdint.h +0 -117
- data/modules/emscripten/system/include/libc/stdio.h +0 -199
- data/modules/emscripten/system/include/libc/stdio_ext.h +0 -34
- data/modules/emscripten/system/include/libc/stdlib.h +0 -171
- data/modules/emscripten/system/include/libc/stdnoreturn.h +0 -5
- data/modules/emscripten/system/include/libc/string.h +0 -102
- data/modules/emscripten/system/include/libc/strings.h +0 -35
- data/modules/emscripten/system/include/libc/stropts.h +0 -139
- data/modules/emscripten/system/include/libc/sys/acct.h +0 -75
- data/modules/emscripten/system/include/libc/sys/cachectl.h +0 -22
- data/modules/emscripten/system/include/libc/sys/dir.h +0 -2
- data/modules/emscripten/system/include/libc/sys/epoll.h +0 -67
- data/modules/emscripten/system/include/libc/sys/errno.h +0 -2
- data/modules/emscripten/system/include/libc/sys/eventfd.h +0 -26
- data/modules/emscripten/system/include/libc/sys/fcntl.h +0 -2
- data/modules/emscripten/system/include/libc/sys/file.h +0 -21
- data/modules/emscripten/system/include/libc/sys/fsuid.h +0 -20
- data/modules/emscripten/system/include/libc/sys/inotify.h +0 -57
- data/modules/emscripten/system/include/libc/sys/io.h +0 -17
- data/modules/emscripten/system/include/libc/sys/ioctl.h +0 -14
- data/modules/emscripten/system/include/libc/sys/ipc.h +0 -42
- data/modules/emscripten/system/include/libc/sys/klog.h +0 -14
- data/modules/emscripten/system/include/libc/sys/mman.h +0 -55
- data/modules/emscripten/system/include/libc/sys/mount.h +0 -72
- data/modules/emscripten/system/include/libc/sys/msg.h +0 -52
- data/modules/emscripten/system/include/libc/sys/mtio.h +0 -188
- data/modules/emscripten/system/include/libc/sys/param.h +0 -35
- data/modules/emscripten/system/include/libc/sys/personality.h +0 -46
- data/modules/emscripten/system/include/libc/sys/poll.h +0 -2
- data/modules/emscripten/system/include/libc/sys/prctl.h +0 -101
- data/modules/emscripten/system/include/libc/sys/procfs.h +0 -65
- data/modules/emscripten/system/include/libc/sys/ptrace.h +0 -96
- data/modules/emscripten/system/include/libc/sys/reboot.h +0 -20
- data/modules/emscripten/system/include/libc/sys/reg.h +0 -9
- data/modules/emscripten/system/include/libc/sys/resource.h +0 -103
- data/modules/emscripten/system/include/libc/sys/select.h +0 -42
- data/modules/emscripten/system/include/libc/sys/sem.h +0 -82
- data/modules/emscripten/system/include/libc/sys/sendfile.h +0 -22
- data/modules/emscripten/system/include/libc/sys/shm.h +0 -61
- data/modules/emscripten/system/include/libc/sys/signal.h +0 -2
- data/modules/emscripten/system/include/libc/sys/signalfd.h +0 -44
- data/modules/emscripten/system/include/libc/sys/socket.h +0 -299
- data/modules/emscripten/system/include/libc/sys/stat.h +0 -114
- data/modules/emscripten/system/include/libc/sys/statfs.h +0 -32
- data/modules/emscripten/system/include/libc/sys/statvfs.h +0 -57
- data/modules/emscripten/system/include/libc/sys/stropts.h +0 -1
- data/modules/emscripten/system/include/libc/sys/swap.h +0 -21
- data/modules/emscripten/system/include/libc/sys/syscall.h +0 -6
- data/modules/emscripten/system/include/libc/sys/sysctl.h +0 -17
- data/modules/emscripten/system/include/libc/sys/sysinfo.h +0 -36
- data/modules/emscripten/system/include/libc/sys/syslog.h +0 -1
- data/modules/emscripten/system/include/libc/sys/sysmacros.h +0 -15
- data/modules/emscripten/system/include/libc/sys/termios.h +0 -2
- data/modules/emscripten/system/include/libc/sys/time.h +0 -57
- data/modules/emscripten/system/include/libc/sys/timerfd.h +0 -24
- data/modules/emscripten/system/include/libc/sys/times.h +0 -26
- data/modules/emscripten/system/include/libc/sys/timex.h +0 -98
- data/modules/emscripten/system/include/libc/sys/ttydefaults.h +0 -39
- data/modules/emscripten/system/include/libc/sys/types.h +0 -91
- data/modules/emscripten/system/include/libc/sys/ucontext.h +0 -1
- data/modules/emscripten/system/include/libc/sys/uio.h +0 -48
- data/modules/emscripten/system/include/libc/sys/un.h +0 -32
- data/modules/emscripten/system/include/libc/sys/user.h +0 -16
- data/modules/emscripten/system/include/libc/sys/utsname.h +0 -30
- data/modules/emscripten/system/include/libc/sys/vfs.h +0 -1
- data/modules/emscripten/system/include/libc/sys/wait.h +0 -55
- data/modules/emscripten/system/include/libc/sys/xattr.h +0 -30
- data/modules/emscripten/system/include/libc/syscall.h +0 -1
- data/modules/emscripten/system/include/libc/sysexits.h +0 -21
- data/modules/emscripten/system/include/libc/syslog.h +0 -104
- data/modules/emscripten/system/include/libc/tar.h +0 -33
- data/modules/emscripten/system/include/libc/termios.h +0 -46
- data/modules/emscripten/system/include/libc/tgmath.h +0 -270
- data/modules/emscripten/system/include/libc/time.h +0 -132
- data/modules/emscripten/system/include/libc/ucontext.h +0 -25
- data/modules/emscripten/system/include/libc/ulimit.h +0 -17
- data/modules/emscripten/system/include/libc/unistd.h +0 -519
- data/modules/emscripten/system/include/libc/utime.h +0 -24
- data/modules/emscripten/system/include/libc/utmp.h +0 -47
- data/modules/emscripten/system/include/libc/utmpx.h +0 -58
- data/modules/emscripten/system/include/libc/values.h +0 -39
- data/modules/emscripten/system/include/libc/wchar.h +0 -183
- data/modules/emscripten/system/include/libc/wctype.h +0 -77
- data/modules/emscripten/system/include/libc/wordexp.h +0 -42
- data/modules/emscripten/system/include/libcxx/CREDITS.TXT +0 -123
- data/modules/emscripten/system/include/libcxx/LICENSE.txt +0 -76
- data/modules/emscripten/system/include/libcxx/__bit_reference +0 -1287
- data/modules/emscripten/system/include/libcxx/__config +0 -610
- data/modules/emscripten/system/include/libcxx/__debug +0 -218
- data/modules/emscripten/system/include/libcxx/__functional_03 +0 -2130
- data/modules/emscripten/system/include/libcxx/__functional_base +0 -615
- data/modules/emscripten/system/include/libcxx/__functional_base_03 +0 -1087
- data/modules/emscripten/system/include/libcxx/__hash_table +0 -2457
- data/modules/emscripten/system/include/libcxx/__locale +0 -1445
- data/modules/emscripten/system/include/libcxx/__mutex_base +0 -407
- data/modules/emscripten/system/include/libcxx/__split_buffer +0 -654
- data/modules/emscripten/system/include/libcxx/__sso_allocator +0 -77
- data/modules/emscripten/system/include/libcxx/__std_stream +0 -359
- data/modules/emscripten/system/include/libcxx/__tree +0 -2309
- data/modules/emscripten/system/include/libcxx/__tuple +0 -305
- data/modules/emscripten/system/include/libcxx/__tuple_03 +0 -27
- data/modules/emscripten/system/include/libcxx/__undef_min_max +0 -27
- data/modules/emscripten/system/include/libcxx/algorithm +0 -5679
- data/modules/emscripten/system/include/libcxx/array +0 -342
- data/modules/emscripten/system/include/libcxx/atomic +0 -1531
- data/modules/emscripten/system/include/libcxx/bitset +0 -1081
- data/modules/emscripten/system/include/libcxx/cassert +0 -25
- data/modules/emscripten/system/include/libcxx/ccomplex +0 -29
- data/modules/emscripten/system/include/libcxx/cctype +0 -164
- data/modules/emscripten/system/include/libcxx/cerrno +0 -393
- data/modules/emscripten/system/include/libcxx/cfenv +0 -82
- data/modules/emscripten/system/include/libcxx/cfloat +0 -78
- data/modules/emscripten/system/include/libcxx/chrono +0 -1027
- data/modules/emscripten/system/include/libcxx/cinttypes +0 -259
- data/modules/emscripten/system/include/libcxx/ciso646 +0 -25
- data/modules/emscripten/system/include/libcxx/climits +0 -48
- data/modules/emscripten/system/include/libcxx/clocale +0 -53
- data/modules/emscripten/system/include/libcxx/cmath +0 -1690
- data/modules/emscripten/system/include/libcxx/codecvt +0 -550
- data/modules/emscripten/system/include/libcxx/complex +0 -1567
- data/modules/emscripten/system/include/libcxx/complex.h +0 -35
- data/modules/emscripten/system/include/libcxx/condition_variable +0 -256
- data/modules/emscripten/system/include/libcxx/csetjmp +0 -52
- data/modules/emscripten/system/include/libcxx/csignal +0 -58
- data/modules/emscripten/system/include/libcxx/cstdarg +0 -48
- data/modules/emscripten/system/include/libcxx/cstdbool +0 -32
- data/modules/emscripten/system/include/libcxx/cstddef +0 -103
- data/modules/emscripten/system/include/libcxx/cstdint +0 -191
- data/modules/emscripten/system/include/libcxx/cstdio +0 -182
- data/modules/emscripten/system/include/libcxx/cstdlib +0 -172
- data/modules/emscripten/system/include/libcxx/cstring +0 -112
- data/modules/emscripten/system/include/libcxx/ctgmath +0 -29
- data/modules/emscripten/system/include/libcxx/ctime +0 -72
- data/modules/emscripten/system/include/libcxx/cwchar +0 -217
- data/modules/emscripten/system/include/libcxx/cwctype +0 -213
- data/modules/emscripten/system/include/libcxx/deque +0 -2873
- data/modules/emscripten/system/include/libcxx/dynarray +0 -311
- data/modules/emscripten/system/include/libcxx/exception +0 -250
- data/modules/emscripten/system/include/libcxx/ext/__hash +0 -46
- data/modules/emscripten/system/include/libcxx/ext/hash_map +0 -1007
- data/modules/emscripten/system/include/libcxx/ext/hash_set +0 -661
- data/modules/emscripten/system/include/libcxx/forward_list +0 -1663
- data/modules/emscripten/system/include/libcxx/fstream +0 -1431
- data/modules/emscripten/system/include/libcxx/functional +0 -2418
- data/modules/emscripten/system/include/libcxx/future +0 -2615
- data/modules/emscripten/system/include/libcxx/initializer_list +0 -118
- data/modules/emscripten/system/include/libcxx/iomanip +0 -651
- data/modules/emscripten/system/include/libcxx/ios +0 -1023
- data/modules/emscripten/system/include/libcxx/iosfwd +0 -194
- data/modules/emscripten/system/include/libcxx/iostream +0 -60
- data/modules/emscripten/system/include/libcxx/istream +0 -1716
- data/modules/emscripten/system/include/libcxx/iterator +0 -1568
- data/modules/emscripten/system/include/libcxx/limits +0 -813
- data/modules/emscripten/system/include/libcxx/list +0 -2355
- data/modules/emscripten/system/include/libcxx/locale +0 -4465
- data/modules/emscripten/system/include/libcxx/map +0 -2045
- data/modules/emscripten/system/include/libcxx/memory +0 -5448
- data/modules/emscripten/system/include/libcxx/mutex +0 -566
- data/modules/emscripten/system/include/libcxx/new +0 -146
- data/modules/emscripten/system/include/libcxx/numeric +0 -197
- data/modules/emscripten/system/include/libcxx/optional +0 -697
- data/modules/emscripten/system/include/libcxx/ostream +0 -1295
- data/modules/emscripten/system/include/libcxx/queue +0 -717
- data/modules/emscripten/system/include/libcxx/random +0 -6725
- data/modules/emscripten/system/include/libcxx/ratio +0 -487
- data/modules/emscripten/system/include/libcxx/readme.txt +0 -1
- data/modules/emscripten/system/include/libcxx/regex +0 -6487
- data/modules/emscripten/system/include/libcxx/scoped_allocator +0 -578
- data/modules/emscripten/system/include/libcxx/set +0 -1189
- data/modules/emscripten/system/include/libcxx/shared_mutex +0 -419
- data/modules/emscripten/system/include/libcxx/sstream +0 -972
- data/modules/emscripten/system/include/libcxx/stack +0 -292
- data/modules/emscripten/system/include/libcxx/stdexcept +0 -162
- data/modules/emscripten/system/include/libcxx/streambuf +0 -564
- data/modules/emscripten/system/include/libcxx/string +0 -4198
- data/modules/emscripten/system/include/libcxx/strstream +0 -400
- data/modules/emscripten/system/include/libcxx/support/ibm/limits.h +0 -99
- data/modules/emscripten/system/include/libcxx/support/ibm/support.h +0 -54
- data/modules/emscripten/system/include/libcxx/support/ibm/xlocale.h +0 -326
- data/modules/emscripten/system/include/libcxx/support/solaris/floatingpoint.h +0 -5
- data/modules/emscripten/system/include/libcxx/support/solaris/wchar.h +0 -38
- data/modules/emscripten/system/include/libcxx/support/solaris/xlocale.h +0 -146
- data/modules/emscripten/system/include/libcxx/support/win32/limits_win32.h +0 -79
- data/modules/emscripten/system/include/libcxx/support/win32/locale_win32.h +0 -129
- data/modules/emscripten/system/include/libcxx/support/win32/math_win32.h +0 -115
- data/modules/emscripten/system/include/libcxx/support/win32/support.h +0 -119
- data/modules/emscripten/system/include/libcxx/system_error +0 -642
- data/modules/emscripten/system/include/libcxx/tgmath.h +0 -29
- data/modules/emscripten/system/include/libcxx/thread +0 -458
- data/modules/emscripten/system/include/libcxx/tuple +0 -1102
- data/modules/emscripten/system/include/libcxx/type_traits +0 -3292
- data/modules/emscripten/system/include/libcxx/typeindex +0 -103
- data/modules/emscripten/system/include/libcxx/typeinfo +0 -124
- data/modules/emscripten/system/include/libcxx/unordered_map +0 -2078
- data/modules/emscripten/system/include/libcxx/unordered_set +0 -1379
- data/modules/emscripten/system/include/libcxx/utility +0 -768
- data/modules/emscripten/system/include/libcxx/valarray +0 -4779
- data/modules/emscripten/system/include/libcxx/vector +0 -3246
- data/modules/emscripten/system/include/unwind.h +0 -154
- data/modules/emscripten/system/include/uuid/uuid.h +0 -35
- data/modules/emscripten/system/include/zconf.h +0 -428
- data/modules/emscripten/system/include/zlib.h +0 -1613
- data/modules/emscripten/system/lib/compiler-rt/LICENSE.TXT +0 -97
- data/modules/emscripten/system/lib/compiler-rt/divdi3.c +0 -47
- data/modules/emscripten/system/lib/compiler-rt/int_endianness.h +0 -116
- data/modules/emscripten/system/lib/compiler-rt/int_lib.h +0 -46
- data/modules/emscripten/system/lib/compiler-rt/int_math.h +0 -67
- data/modules/emscripten/system/lib/compiler-rt/int_types.h +0 -140
- data/modules/emscripten/system/lib/compiler-rt/int_util.h +0 -29
- data/modules/emscripten/system/lib/compiler-rt/muldi3.c +0 -56
- data/modules/emscripten/system/lib/compiler-rt/readme.txt +0 -20
- data/modules/emscripten/system/lib/compiler-rt/udivdi3.c +0 -36
- data/modules/emscripten/system/lib/compiler-rt/udivmoddi4.c +0 -251
- data/modules/emscripten/system/lib/debugging.cpp +0 -24
- data/modules/emscripten/system/lib/dlmalloc.c +0 -6297
- data/modules/emscripten/system/lib/embind/bind.cpp +0 -63
- data/modules/emscripten/system/lib/libc/gen/err.c +0 -49
- data/modules/emscripten/system/lib/libc/gen/errx.c +0 -49
- data/modules/emscripten/system/lib/libc/gen/verr.c +0 -58
- data/modules/emscripten/system/lib/libc/gen/verrx.c +0 -51
- data/modules/emscripten/system/lib/libc/gen/vwarn.c +0 -55
- data/modules/emscripten/system/lib/libc/gen/vwarnx.c +0 -48
- data/modules/emscripten/system/lib/libc/gen/warn.c +0 -49
- data/modules/emscripten/system/lib/libc/gen/warnx.c +0 -49
- data/modules/emscripten/system/lib/libc/musl/COPYRIGHT +0 -92
- data/modules/emscripten/system/lib/libc/musl/readme.txt +0 -9
- data/modules/emscripten/system/lib/libc/musl/src/ctype/alpha.h +0 -125
- data/modules/emscripten/system/lib/libc/musl/src/ctype/iswalnum.c +0 -7
- data/modules/emscripten/system/lib/libc/musl/src/ctype/iswalpha.c +0 -14
- data/modules/emscripten/system/lib/libc/musl/src/ctype/iswblank.c +0 -8
- data/modules/emscripten/system/lib/libc/musl/src/ctype/iswcntrl.c +0 -10
- data/modules/emscripten/system/lib/libc/musl/src/ctype/iswctype.c +0 -63
- data/modules/emscripten/system/lib/libc/musl/src/ctype/iswdigit.c +0 -9
- data/modules/emscripten/system/lib/libc/musl/src/ctype/iswgraph.c +0 -7
- data/modules/emscripten/system/lib/libc/musl/src/ctype/iswlower.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/ctype/iswprint.c +0 -19
- data/modules/emscripten/system/lib/libc/musl/src/ctype/iswpunct.c +0 -12
- data/modules/emscripten/system/lib/libc/musl/src/ctype/iswspace.c +0 -19
- data/modules/emscripten/system/lib/libc/musl/src/ctype/iswupper.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/ctype/iswxdigit.c +0 -7
- data/modules/emscripten/system/lib/libc/musl/src/ctype/nonspacing.h +0 -62
- data/modules/emscripten/system/lib/libc/musl/src/ctype/punct.h +0 -109
- data/modules/emscripten/system/lib/libc/musl/src/ctype/towctrans.c +0 -268
- data/modules/emscripten/system/lib/libc/musl/src/ctype/wcswidth.c +0 -8
- data/modules/emscripten/system/lib/libc/musl/src/ctype/wctrans.c +0 -16
- data/modules/emscripten/system/lib/libc/musl/src/ctype/wcwidth.c +0 -29
- data/modules/emscripten/system/lib/libc/musl/src/ctype/wide.h +0 -42
- data/modules/emscripten/system/lib/libc/musl/src/internal/libc.c +0 -22
- data/modules/emscripten/system/lib/libc/musl/src/internal/libc.h +0 -71
- data/modules/emscripten/system/lib/libc/musl/src/internal/locale_impl.h +0 -5
- data/modules/emscripten/system/lib/libc/musl/src/internal/stdio_impl.h +0 -92
- data/modules/emscripten/system/lib/libc/musl/src/locale/big5.h +0 -1085
- data/modules/emscripten/system/lib/libc/musl/src/locale/codepages.h +0 -238
- data/modules/emscripten/system/lib/libc/musl/src/locale/gb18030.h +0 -1836
- data/modules/emscripten/system/lib/libc/musl/src/locale/hkscs.h +0 -390
- data/modules/emscripten/system/lib/libc/musl/src/locale/iconv.c +0 -454
- data/modules/emscripten/system/lib/libc/musl/src/locale/iswalnum_l.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/locale/iswalpha_l.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/locale/iswblank_l.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/locale/iswcntrl_l.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/locale/iswctype_l.c +0 -9
- data/modules/emscripten/system/lib/libc/musl/src/locale/iswdigit_l.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/locale/iswgraph_l.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/locale/iswlower_l.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/locale/iswprint_l.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/locale/iswpunct_l.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/locale/iswspace_l.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/locale/iswupper_l.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/locale/iswxdigit_l.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/locale/jis0208.h +0 -550
- data/modules/emscripten/system/lib/libc/musl/src/locale/ksc.h +0 -640
- data/modules/emscripten/system/lib/libc/musl/src/locale/legacychars.h +0 -39
- data/modules/emscripten/system/lib/libc/musl/src/locale/strfmon.c +0 -101
- data/modules/emscripten/system/lib/libc/musl/src/locale/strxfrm.c +0 -18
- data/modules/emscripten/system/lib/libc/musl/src/locale/towctrans_l.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/locale/towlower_l.c +0 -9
- data/modules/emscripten/system/lib/libc/musl/src/locale/towupper_l.c +0 -9
- data/modules/emscripten/system/lib/libc/musl/src/locale/wcscoll.c +0 -16
- data/modules/emscripten/system/lib/libc/musl/src/locale/wcscoll_l.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/locale/wcsxfrm.c +0 -21
- data/modules/emscripten/system/lib/libc/musl/src/locale/wcsxfrm_l.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/locale/wctrans_l.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/locale/wctype_l.c +0 -9
- data/modules/emscripten/system/lib/libc/musl/src/multibyte/btowc.c +0 -7
- data/modules/emscripten/system/lib/libc/musl/src/multibyte/internal.c +0 -38
- data/modules/emscripten/system/lib/libc/musl/src/multibyte/internal.h +0 -22
- data/modules/emscripten/system/lib/libc/musl/src/multibyte/mblen.c +0 -17
- data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbrlen.c +0 -18
- data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbrtowc.c +0 -57
- data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbsinit.c +0 -17
- data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbsnrtowcs.c +0 -65
- data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbsrtowcs.c +0 -100
- data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbstowcs.c +0 -7
- data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbtowc.c +0 -53
- data/modules/emscripten/system/lib/libc/musl/src/multibyte/wcrtomb.c +0 -38
- data/modules/emscripten/system/lib/libc/musl/src/multibyte/wcsnrtombs.c +0 -52
- data/modules/emscripten/system/lib/libc/musl/src/multibyte/wcsrtombs.c +0 -58
- data/modules/emscripten/system/lib/libc/musl/src/multibyte/wcstombs.c +0 -7
- data/modules/emscripten/system/lib/libc/musl/src/multibyte/wctob.c +0 -8
- data/modules/emscripten/system/lib/libc/musl/src/multibyte/wctomb.c +0 -18
- data/modules/emscripten/system/lib/libc/musl/src/regex/regcomp.c +0 -3352
- data/modules/emscripten/system/lib/libc/musl/src/regex/regerror.c +0 -35
- data/modules/emscripten/system/lib/libc/musl/src/regex/regexec.c +0 -1011
- data/modules/emscripten/system/lib/libc/musl/src/regex/tre-mem.c +0 -158
- data/modules/emscripten/system/lib/libc/musl/src/regex/tre.h +0 -231
- data/modules/emscripten/system/lib/libc/musl/src/stdio/fwprintf.c +0 -13
- data/modules/emscripten/system/lib/libc/musl/src/stdio/swprintf.c +0 -14
- data/modules/emscripten/system/lib/libc/musl/src/stdio/vfwprintf.c +0 -361
- data/modules/emscripten/system/lib/libc/musl/src/stdio/vswprintf.c +0 -53
- data/modules/emscripten/system/lib/libc/musl/src/stdio/vwprintf.c +0 -7
- data/modules/emscripten/system/lib/libc/musl/src/stdio/wprintf.c +0 -13
- data/modules/emscripten/system/lib/libc/musl/src/stdlib/ecvt.c +0 -19
- data/modules/emscripten/system/lib/libc/musl/src/stdlib/fcvt.c +0 -25
- data/modules/emscripten/system/lib/libc/musl/src/stdlib/gcvt.c +0 -8
- data/modules/emscripten/system/lib/libc/musl/src/string/wcpcpy.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/string/wcpncpy.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/string/wcscasecmp.c +0 -7
- data/modules/emscripten/system/lib/libc/musl/src/string/wcscasecmp_l.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/string/wcscat.c +0 -7
- data/modules/emscripten/system/lib/libc/musl/src/string/wcschr.c +0 -8
- data/modules/emscripten/system/lib/libc/musl/src/string/wcscmp.c +0 -7
- data/modules/emscripten/system/lib/libc/musl/src/string/wcscpy.c +0 -8
- data/modules/emscripten/system/lib/libc/musl/src/string/wcscspn.c +0 -10
- data/modules/emscripten/system/lib/libc/musl/src/string/wcsdup.c +0 -11
- data/modules/emscripten/system/lib/libc/musl/src/string/wcslen.c +0 -8
- data/modules/emscripten/system/lib/libc/musl/src/string/wcsncasecmp.c +0 -9
- data/modules/emscripten/system/lib/libc/musl/src/string/wcsncasecmp_l.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/string/wcsncat.c +0 -10
- data/modules/emscripten/system/lib/libc/musl/src/string/wcsncmp.c +0 -7
- data/modules/emscripten/system/lib/libc/musl/src/string/wcsncpy.c +0 -9
- data/modules/emscripten/system/lib/libc/musl/src/string/wcsnlen.c +0 -8
- data/modules/emscripten/system/lib/libc/musl/src/string/wcspbrk.c +0 -7
- data/modules/emscripten/system/lib/libc/musl/src/string/wcsrchr.c +0 -8
- data/modules/emscripten/system/lib/libc/musl/src/string/wcsspn.c +0 -8
- data/modules/emscripten/system/lib/libc/musl/src/string/wcsstr.c +0 -108
- data/modules/emscripten/system/lib/libc/musl/src/string/wcstok.c +0 -12
- data/modules/emscripten/system/lib/libc/musl/src/string/wcswcs.c +0 -6
- data/modules/emscripten/system/lib/libc/musl/src/string/wmemchr.c +0 -8
- data/modules/emscripten/system/lib/libc/musl/src/string/wmemcmp.c +0 -8
- data/modules/emscripten/system/lib/libc/musl/src/string/wmemcpy.c +0 -9
- data/modules/emscripten/system/lib/libc/musl/src/string/wmemmove.c +0 -12
- data/modules/emscripten/system/lib/libc/musl/src/string/wmemset.c +0 -9
- data/modules/emscripten/system/lib/libc/stdlib/getopt_long.c +0 -511
- data/modules/emscripten/system/lib/libc/stdlib/strtod.c +0 -305
- data/modules/emscripten/system/lib/libc.symbols +0 -81
- data/modules/emscripten/system/lib/libcextra.symbols +0 -115
- data/modules/emscripten/system/lib/libcxx/CREDITS.TXT +0 -123
- data/modules/emscripten/system/lib/libcxx/LICENSE.txt +0 -76
- data/modules/emscripten/system/lib/libcxx/algorithm.cpp +0 -84
- data/modules/emscripten/system/lib/libcxx/bind.cpp +0 -30
- data/modules/emscripten/system/lib/libcxx/chrono.cpp +0 -132
- data/modules/emscripten/system/lib/libcxx/condition_variable.cpp +0 -81
- data/modules/emscripten/system/lib/libcxx/debug.cpp +0 -530
- data/modules/emscripten/system/lib/libcxx/exception.cpp +0 -307
- data/modules/emscripten/system/lib/libcxx/future.cpp +0 -291
- data/modules/emscripten/system/lib/libcxx/hash.cpp +0 -570
- data/modules/emscripten/system/lib/libcxx/ios.cpp +0 -460
- data/modules/emscripten/system/lib/libcxx/iostream.cpp +0 -68
- data/modules/emscripten/system/lib/libcxx/locale.cpp +0 -6169
- data/modules/emscripten/system/lib/libcxx/memory.cpp +0 -223
- data/modules/emscripten/system/lib/libcxx/mutex.cpp +0 -253
- data/modules/emscripten/system/lib/libcxx/new.cpp +0 -239
- data/modules/emscripten/system/lib/libcxx/optional.cpp +0 -25
- data/modules/emscripten/system/lib/libcxx/random.cpp +0 -74
- data/modules/emscripten/system/lib/libcxx/readme.txt +0 -1
- data/modules/emscripten/system/lib/libcxx/regex.cpp +0 -325
- data/modules/emscripten/system/lib/libcxx/shared_mutex.cpp +0 -101
- data/modules/emscripten/system/lib/libcxx/stdexcept.cpp +0 -200
- data/modules/emscripten/system/lib/libcxx/string.cpp +0 -530
- data/modules/emscripten/system/lib/libcxx/strstream.cpp +0 -329
- data/modules/emscripten/system/lib/libcxx/support/solaris/README +0 -4
- data/modules/emscripten/system/lib/libcxx/support/solaris/mbsnrtowcs.inc +0 -76
- data/modules/emscripten/system/lib/libcxx/support/solaris/wcsnrtombs.inc +0 -93
- data/modules/emscripten/system/lib/libcxx/support/solaris/xlocale.c +0 -245
- data/modules/emscripten/system/lib/libcxx/support/win32/locale_win32.cpp +0 -95
- data/modules/emscripten/system/lib/libcxx/support/win32/support.cpp +0 -166
- data/modules/emscripten/system/lib/libcxx/symbols +0 -2699
- data/modules/emscripten/system/lib/libcxx/system_error.cpp +0 -205
- data/modules/emscripten/system/lib/libcxx/thread.cpp +0 -225
- data/modules/emscripten/system/lib/libcxx/typeinfo.cpp +0 -73
- data/modules/emscripten/system/lib/libcxx/utility.cpp +0 -17
- data/modules/emscripten/system/lib/libcxx/valarray.cpp +0 -56
- data/modules/emscripten/system/lib/libcxxabi/CREDITS.TXT +0 -38
- data/modules/emscripten/system/lib/libcxxabi/LICENSE.TXT +0 -76
- data/modules/emscripten/system/lib/libcxxabi/include/cxa_demangle.h +0 -167
- data/modules/emscripten/system/lib/libcxxabi/include/cxxabi.h +0 -175
- data/modules/emscripten/system/lib/libcxxabi/lib/buildit +0 -99
- data/modules/emscripten/system/lib/libcxxabi/readme.txt +0 -1
- data/modules/emscripten/system/lib/libcxxabi/src/abort_message.cpp +0 -50
- data/modules/emscripten/system/lib/libcxxabi/src/abort_message.h +0 -33
- data/modules/emscripten/system/lib/libcxxabi/src/cxa_aux_runtime.cpp +0 -34
- data/modules/emscripten/system/lib/libcxxabi/src/cxa_demangle.cpp +0 -11036
- data/modules/emscripten/system/lib/libcxxabi/src/cxa_exception.cpp +0 -622
- data/modules/emscripten/system/lib/libcxxabi/src/cxa_exception.hpp +0 -123
- data/modules/emscripten/system/lib/libcxxabi/src/cxa_exception_storage.cpp +0 -91
- data/modules/emscripten/system/lib/libcxxabi/src/cxa_guard.cpp +0 -231
- data/modules/emscripten/system/lib/libcxxabi/src/cxa_handlers.cpp +0 -125
- data/modules/emscripten/system/lib/libcxxabi/src/cxa_handlers.hpp +0 -54
- data/modules/emscripten/system/lib/libcxxabi/src/cxa_new_delete.cpp +0 -242
- data/modules/emscripten/system/lib/libcxxabi/src/cxa_personality.cpp +0 -1055
- data/modules/emscripten/system/lib/libcxxabi/src/cxa_unexpected.cpp +0 -27
- data/modules/emscripten/system/lib/libcxxabi/src/cxa_vector.cpp +0 -367
- data/modules/emscripten/system/lib/libcxxabi/src/cxa_virtual.cpp +0 -31
- data/modules/emscripten/system/lib/libcxxabi/src/exception.cpp +0 -41
- data/modules/emscripten/system/lib/libcxxabi/src/fallback_malloc.ipp +0 -174
- data/modules/emscripten/system/lib/libcxxabi/src/private_typeinfo.cpp +0 -1146
- data/modules/emscripten/system/lib/libcxxabi/src/private_typeinfo.h +0 -248
- data/modules/emscripten/system/lib/libcxxabi/src/stdexcept.cpp +0 -169
- data/modules/emscripten/system/lib/libcxxabi/src/typeinfo.cpp +0 -53
- data/modules/emscripten/system/lib/libcxxabi/symbols +0 -236
- data/modules/emscripten/system/lib/sdl.cpp +0 -13
- data/modules/emscripten/system/lib/sdl.symbols +0 -1
- data/modules/emscripten/third_party/CppHeaderParser/CppHeaderParser/CppHeaderParser.py +0 -2347
- data/modules/emscripten/third_party/CppHeaderParser/CppHeaderParser/__init__.py +0 -4
- data/modules/emscripten/third_party/CppHeaderParser/CppHeaderParser/doc/CppHeaderParser.html +0 -657
- data/modules/emscripten/third_party/CppHeaderParser/CppHeaderParser/examples/SampleClass.h +0 -147
- data/modules/emscripten/third_party/CppHeaderParser/CppHeaderParser/examples/readSampleClass.py +0 -74
- data/modules/emscripten/third_party/CppHeaderParser/PKG-INFO +0 -249
- data/modules/emscripten/third_party/CppHeaderParser/README.html +0 -544
- data/modules/emscripten/third_party/CppHeaderParser/README.txt +0 -226
- data/modules/emscripten/third_party/CppHeaderParser/setup.py +0 -43
- data/modules/emscripten/third_party/ansidecl.h +0 -371
- data/modules/emscripten/third_party/closure-compiler/COPYING +0 -202
- data/modules/emscripten/third_party/closure-compiler/README +0 -292
- data/modules/emscripten/third_party/closure-compiler/compiler.jar +0 -0
- data/modules/emscripten/third_party/closure-compiler/readme.txt +0 -3
- data/modules/emscripten/third_party/cp-demangle.h +0 -161
- data/modules/emscripten/third_party/demangle.h +0 -549
- data/modules/emscripten/third_party/demangler.py +0 -49
- data/modules/emscripten/third_party/gcc_demangler.c +0 -4226
- data/modules/emscripten/third_party/gcc_demangler.js +0 -21282
- data/modules/emscripten/third_party/jni/emjvm.cpp +0 -133
- data/modules/emscripten/third_party/jni/emjvm.h +0 -8
- data/modules/emscripten/third_party/jni/emjvm.js +0 -185
- data/modules/emscripten/third_party/jni/jni.h +0 -1154
- data/modules/emscripten/third_party/libiberty.h +0 -634
- data/modules/emscripten/third_party/lzma.js/README.markdown +0 -37
- data/modules/emscripten/third_party/lzma.js/doit.bat +0 -4
- data/modules/emscripten/third_party/lzma.js/doit.sh +0 -44
- data/modules/emscripten/third_party/lzma.js/lzip/AUTHORS +0 -7
- data/modules/emscripten/third_party/lzma.js/lzip/COPYING +0 -676
- data/modules/emscripten/third_party/lzma.js/lzip/ChangeLog +0 -201
- data/modules/emscripten/third_party/lzma.js/lzip/INSTALL +0 -56
- data/modules/emscripten/third_party/lzma.js/lzip/Makefile +0 -160
- data/modules/emscripten/third_party/lzma.js/lzip/Makefile.in +0 -138
- data/modules/emscripten/third_party/lzma.js/lzip/NEWS +0 -22
- data/modules/emscripten/third_party/lzma.js/lzip/README +0 -77
- data/modules/emscripten/third_party/lzma.js/lzip/arg_parser.cc +0 -204
- data/modules/emscripten/third_party/lzma.js/lzip/arg_parser.h +0 -106
- data/modules/emscripten/third_party/lzma.js/lzip/configure +0 -192
- data/modules/emscripten/third_party/lzma.js/lzip/decoder.cc +0 -252
- data/modules/emscripten/third_party/lzma.js/lzip/decoder.h +0 -268
- data/modules/emscripten/third_party/lzma.js/lzip/encoder.cc +0 -643
- data/modules/emscripten/third_party/lzma.js/lzip/encoder.h +0 -582
- data/modules/emscripten/third_party/lzma.js/lzip/fast_encoder.cc +0 -378
- data/modules/emscripten/third_party/lzma.js/lzip/fast_encoder.h +0 -171
- data/modules/emscripten/third_party/lzma.js/lzip/lzip.h +0 -264
- data/modules/emscripten/third_party/lzma.js/lzip/main.cc +0 -545
- data/modules/emscripten/third_party/lzma.js/lzma-decoder.js +0 -27
- data/modules/emscripten/third_party/lzma.js/lzma-full.js +0 -27
- data/modules/emscripten/third_party/lzma.js/native_test.sh +0 -5
- data/modules/emscripten/third_party/lzma.js/post.js +0 -13
- data/modules/emscripten/third_party/lzma.js/pre.js +0 -13
- data/modules/emscripten/third_party/lzma.js/test-decoder.js +0 -39
- data/modules/emscripten/third_party/lzma.js/test-full.html +0 -9
- data/modules/emscripten/third_party/lzma.js/test-full.js +0 -78
- data/modules/emscripten/third_party/ply/ANNOUNCE +0 -40
- data/modules/emscripten/third_party/ply/CHANGES +0 -1093
- data/modules/emscripten/third_party/ply/PKG-INFO +0 -22
- data/modules/emscripten/third_party/ply/README +0 -271
- data/modules/emscripten/third_party/ply/TODO +0 -16
- data/modules/emscripten/third_party/ply/doc/internal.html +0 -874
- data/modules/emscripten/third_party/ply/doc/makedoc.py +0 -194
- data/modules/emscripten/third_party/ply/doc/ply.html +0 -3262
- data/modules/emscripten/third_party/ply/example/BASIC/README +0 -79
- data/modules/emscripten/third_party/ply/example/BASIC/basic.py +0 -71
- data/modules/emscripten/third_party/ply/example/BASIC/basiclex.py +0 -74
- data/modules/emscripten/third_party/ply/example/BASIC/basiclog.py +0 -79
- data/modules/emscripten/third_party/ply/example/BASIC/basinterp.py +0 -441
- data/modules/emscripten/third_party/ply/example/BASIC/basparse.py +0 -424
- data/modules/emscripten/third_party/ply/example/BASIC/dim.bas +0 -14
- data/modules/emscripten/third_party/ply/example/BASIC/func.bas +0 -5
- data/modules/emscripten/third_party/ply/example/BASIC/gcd.bas +0 -22
- data/modules/emscripten/third_party/ply/example/BASIC/gosub.bas +0 -13
- data/modules/emscripten/third_party/ply/example/BASIC/hello.bas +0 -4
- data/modules/emscripten/third_party/ply/example/BASIC/linear.bas +0 -17
- data/modules/emscripten/third_party/ply/example/BASIC/maxsin.bas +0 -12
- data/modules/emscripten/third_party/ply/example/BASIC/powers.bas +0 -13
- data/modules/emscripten/third_party/ply/example/BASIC/rand.bas +0 -4
- data/modules/emscripten/third_party/ply/example/BASIC/sales.bas +0 -20
- data/modules/emscripten/third_party/ply/example/BASIC/sears.bas +0 -18
- data/modules/emscripten/third_party/ply/example/BASIC/sqrt1.bas +0 -5
- data/modules/emscripten/third_party/ply/example/BASIC/sqrt2.bas +0 -4
- data/modules/emscripten/third_party/ply/example/GardenSnake/GardenSnake.py +0 -709
- data/modules/emscripten/third_party/ply/example/GardenSnake/README +0 -5
- data/modules/emscripten/third_party/ply/example/README +0 -10
- data/modules/emscripten/third_party/ply/example/ansic/README +0 -2
- data/modules/emscripten/third_party/ply/example/ansic/clex.py +0 -164
- data/modules/emscripten/third_party/ply/example/ansic/cparse.py +0 -863
- data/modules/emscripten/third_party/ply/example/calc/calc.py +0 -107
- data/modules/emscripten/third_party/ply/example/calcdebug/calc.py +0 -113
- data/modules/emscripten/third_party/ply/example/classcalc/calc.py +0 -157
- data/modules/emscripten/third_party/ply/example/cleanup.sh +0 -2
- data/modules/emscripten/third_party/ply/example/closurecalc/calc.py +0 -130
- data/modules/emscripten/third_party/ply/example/hedit/hedit.py +0 -48
- data/modules/emscripten/third_party/ply/example/newclasscalc/calc.py +0 -160
- data/modules/emscripten/third_party/ply/example/optcalc/README +0 -9
- data/modules/emscripten/third_party/ply/example/optcalc/calc.py +0 -119
- data/modules/emscripten/third_party/ply/example/unicalc/calc.py +0 -117
- data/modules/emscripten/third_party/ply/example/yply/README +0 -41
- data/modules/emscripten/third_party/ply/example/yply/ylex.py +0 -112
- data/modules/emscripten/third_party/ply/example/yply/yparse.py +0 -217
- data/modules/emscripten/third_party/ply/example/yply/yply.py +0 -53
- data/modules/emscripten/third_party/ply/ply/__init__.py +0 -4
- data/modules/emscripten/third_party/ply/ply/cpp.py +0 -898
- data/modules/emscripten/third_party/ply/ply/ctokens.py +0 -133
- data/modules/emscripten/third_party/ply/ply/lex.py +0 -1058
- data/modules/emscripten/third_party/ply/ply/yacc.py +0 -3276
- data/modules/emscripten/third_party/ply/setup.py +0 -31
- data/modules/emscripten/third_party/ply/test/README +0 -7
- data/modules/emscripten/third_party/ply/test/calclex.py +0 -49
- data/modules/emscripten/third_party/ply/test/cleanup.sh +0 -4
- data/modules/emscripten/third_party/ply/test/lex_closure.py +0 -54
- data/modules/emscripten/third_party/ply/test/lex_doc1.py +0 -26
- data/modules/emscripten/third_party/ply/test/lex_dup1.py +0 -29
- data/modules/emscripten/third_party/ply/test/lex_dup2.py +0 -33
- data/modules/emscripten/third_party/ply/test/lex_dup3.py +0 -31
- data/modules/emscripten/third_party/ply/test/lex_empty.py +0 -20
- data/modules/emscripten/third_party/ply/test/lex_error1.py +0 -24
- data/modules/emscripten/third_party/ply/test/lex_error2.py +0 -26
- data/modules/emscripten/third_party/ply/test/lex_error3.py +0 -27
- data/modules/emscripten/third_party/ply/test/lex_error4.py +0 -27
- data/modules/emscripten/third_party/ply/test/lex_hedit.py +0 -47
- data/modules/emscripten/third_party/ply/test/lex_ignore.py +0 -31
- data/modules/emscripten/third_party/ply/test/lex_ignore2.py +0 -29
- data/modules/emscripten/third_party/ply/test/lex_literal1.py +0 -25
- data/modules/emscripten/third_party/ply/test/lex_literal2.py +0 -25
- data/modules/emscripten/third_party/ply/test/lex_many_tokens.py +0 -27
- data/modules/emscripten/third_party/ply/test/lex_module.py +0 -10
- data/modules/emscripten/third_party/ply/test/lex_module_import.py +0 -42
- data/modules/emscripten/third_party/ply/test/lex_object.py +0 -55
- data/modules/emscripten/third_party/ply/test/lex_opt_alias.py +0 -54
- data/modules/emscripten/third_party/ply/test/lex_optimize.py +0 -50
- data/modules/emscripten/third_party/ply/test/lex_optimize2.py +0 -50
- data/modules/emscripten/third_party/ply/test/lex_optimize3.py +0 -52
- data/modules/emscripten/third_party/ply/test/lex_re1.py +0 -27
- data/modules/emscripten/third_party/ply/test/lex_re2.py +0 -27
- data/modules/emscripten/third_party/ply/test/lex_re3.py +0 -29
- data/modules/emscripten/third_party/ply/test/lex_rule1.py +0 -27
- data/modules/emscripten/third_party/ply/test/lex_rule2.py +0 -29
- data/modules/emscripten/third_party/ply/test/lex_rule3.py +0 -27
- data/modules/emscripten/third_party/ply/test/lex_state1.py +0 -40
- data/modules/emscripten/third_party/ply/test/lex_state2.py +0 -40
- data/modules/emscripten/third_party/ply/test/lex_state3.py +0 -42
- data/modules/emscripten/third_party/ply/test/lex_state4.py +0 -41
- data/modules/emscripten/third_party/ply/test/lex_state5.py +0 -40
- data/modules/emscripten/third_party/ply/test/lex_state_noerror.py +0 -39
- data/modules/emscripten/third_party/ply/test/lex_state_norule.py +0 -40
- data/modules/emscripten/third_party/ply/test/lex_state_try.py +0 -45
- data/modules/emscripten/third_party/ply/test/lex_token1.py +0 -19
- data/modules/emscripten/third_party/ply/test/lex_token2.py +0 -22
- data/modules/emscripten/third_party/ply/test/lex_token3.py +0 -24
- data/modules/emscripten/third_party/ply/test/lex_token4.py +0 -26
- data/modules/emscripten/third_party/ply/test/lex_token5.py +0 -31
- data/modules/emscripten/third_party/ply/test/lex_token_dup.py +0 -29
- data/modules/emscripten/third_party/ply/test/testlex.py +0 -606
- data/modules/emscripten/third_party/ply/test/testyacc.py +0 -347
- data/modules/emscripten/third_party/ply/test/yacc_badargs.py +0 -68
- data/modules/emscripten/third_party/ply/test/yacc_badid.py +0 -77
- data/modules/emscripten/third_party/ply/test/yacc_badprec.py +0 -64
- data/modules/emscripten/third_party/ply/test/yacc_badprec2.py +0 -68
- data/modules/emscripten/third_party/ply/test/yacc_badprec3.py +0 -68
- data/modules/emscripten/third_party/ply/test/yacc_badrule.py +0 -68
- data/modules/emscripten/third_party/ply/test/yacc_badtok.py +0 -68
- data/modules/emscripten/third_party/ply/test/yacc_dup.py +0 -68
- data/modules/emscripten/third_party/ply/test/yacc_error1.py +0 -68
- data/modules/emscripten/third_party/ply/test/yacc_error2.py +0 -68
- data/modules/emscripten/third_party/ply/test/yacc_error3.py +0 -67
- data/modules/emscripten/third_party/ply/test/yacc_error4.py +0 -72
- data/modules/emscripten/third_party/ply/test/yacc_inf.py +0 -56
- data/modules/emscripten/third_party/ply/test/yacc_literal.py +0 -69
- data/modules/emscripten/third_party/ply/test/yacc_misplaced.py +0 -68
- data/modules/emscripten/third_party/ply/test/yacc_missing1.py +0 -68
- data/modules/emscripten/third_party/ply/test/yacc_nested.py +0 -33
- data/modules/emscripten/third_party/ply/test/yacc_nodoc.py +0 -67
- data/modules/emscripten/third_party/ply/test/yacc_noerror.py +0 -66
- data/modules/emscripten/third_party/ply/test/yacc_nop.py +0 -68
- data/modules/emscripten/third_party/ply/test/yacc_notfunc.py +0 -66
- data/modules/emscripten/third_party/ply/test/yacc_notok.py +0 -67
- data/modules/emscripten/third_party/ply/test/yacc_prec1.py +0 -68
- data/modules/emscripten/third_party/ply/test/yacc_rr.py +0 -72
- data/modules/emscripten/third_party/ply/test/yacc_rr_unused.py +0 -30
- data/modules/emscripten/third_party/ply/test/yacc_simple.py +0 -68
- data/modules/emscripten/third_party/ply/test/yacc_sr.py +0 -63
- data/modules/emscripten/third_party/ply/test/yacc_term1.py +0 -68
- data/modules/emscripten/third_party/ply/test/yacc_unused.py +0 -77
- data/modules/emscripten/third_party/ply/test/yacc_unused_rule.py +0 -72
- data/modules/emscripten/third_party/ply/test/yacc_uprec.py +0 -63
- data/modules/emscripten/third_party/ply/test/yacc_uprec2.py +0 -63
- data/modules/emscripten/third_party/readme.txt +0 -7
- data/modules/emscripten/third_party/stb_image.c +0 -4673
- data/modules/emscripten/third_party/websockify/CHANGES.txt +0 -23
- data/modules/emscripten/third_party/websockify/LICENSE.txt +0 -16
- data/modules/emscripten/third_party/websockify/MANIFEST.in +0 -1
- data/modules/emscripten/third_party/websockify/Makefile +0 -11
- data/modules/emscripten/third_party/websockify/README.md +0 -168
- data/modules/emscripten/third_party/websockify/Windows/Windows Service Readme.txt +0 -39
- data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/Program.cs +0 -24
- data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/ProjectInstaller.Designer.cs +0 -61
- data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/ProjectInstaller.cs +0 -19
- data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/ProjectInstaller.resx +0 -129
- data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/Properties/AssemblyInfo.cs +0 -36
- data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/Service1.Designer.cs +0 -37
- data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/Service1.cs +0 -41
- data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/noVNC Websocket.csproj +0 -75
- data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/noVNC Websocket.sln +0 -20
- data/modules/emscripten/third_party/websockify/docs/LICENSE.GPL-3 +0 -621
- data/modules/emscripten/third_party/websockify/docs/LICENSE.LGPL-3 +0 -165
- data/modules/emscripten/third_party/websockify/docs/LICENSE.MPL-2.0 +0 -373
- data/modules/emscripten/third_party/websockify/docs/TODO +0 -9
- data/modules/emscripten/third_party/websockify/docs/flash_policy.txt +0 -4
- data/modules/emscripten/third_party/websockify/docs/latency_results.txt +0 -114
- data/modules/emscripten/third_party/websockify/docs/notes +0 -17
- data/modules/emscripten/third_party/websockify/docs/release.txt +0 -9
- data/modules/emscripten/third_party/websockify/docs/websockify.1 +0 -110
- data/modules/emscripten/third_party/websockify/include/VT100.js +0 -919
- data/modules/emscripten/third_party/websockify/include/base64.js +0 -114
- data/modules/emscripten/third_party/websockify/include/keysym.js +0 -99
- data/modules/emscripten/third_party/websockify/include/util.js +0 -359
- data/modules/emscripten/third_party/websockify/include/web-socket-js/README.txt +0 -109
- data/modules/emscripten/third_party/websockify/include/web-socket-js/WebSocketMain.swf +0 -0
- data/modules/emscripten/third_party/websockify/include/web-socket-js/swfobject.js +0 -4
- data/modules/emscripten/third_party/websockify/include/web-socket-js/web_socket.js +0 -391
- data/modules/emscripten/third_party/websockify/include/websock.js +0 -422
- data/modules/emscripten/third_party/websockify/include/webutil.js +0 -216
- data/modules/emscripten/third_party/websockify/include/wsirc.js +0 -235
- data/modules/emscripten/third_party/websockify/include/wstelnet.js +0 -335
- data/modules/emscripten/third_party/websockify/other/Makefile +0 -14
- data/modules/emscripten/third_party/websockify/other/README.md +0 -51
- data/modules/emscripten/third_party/websockify/other/launch.sh +0 -108
- data/modules/emscripten/third_party/websockify/other/project.clj +0 -13
- data/modules/emscripten/third_party/websockify/other/websocket.c +0 -802
- data/modules/emscripten/third_party/websockify/other/websocket.h +0 -84
- data/modules/emscripten/third_party/websockify/other/websocket.rb +0 -456
- data/modules/emscripten/third_party/websockify/other/websockify.c +0 -385
- data/modules/emscripten/third_party/websockify/other/websockify.clj +0 -233
- data/modules/emscripten/third_party/websockify/other/websockify.js +0 -196
- data/modules/emscripten/third_party/websockify/other/websockify.rb +0 -171
- data/modules/emscripten/third_party/websockify/other/wswrap +0 -22
- data/modules/emscripten/third_party/websockify/rebind +0 -18
- data/modules/emscripten/third_party/websockify/rebind.c +0 -94
- data/modules/emscripten/third_party/websockify/run +0 -5
- data/modules/emscripten/third_party/websockify/setup.py +0 -30
- data/modules/emscripten/third_party/websockify/tests/b64_vs_utf8.py +0 -29
- data/modules/emscripten/third_party/websockify/tests/base64.html +0 -91
- data/modules/emscripten/third_party/websockify/tests/base64.js +0 -12
- data/modules/emscripten/third_party/websockify/tests/echo.html +0 -148
- data/modules/emscripten/third_party/websockify/tests/echo.py +0 -75
- data/modules/emscripten/third_party/websockify/tests/echo.rb +0 -62
- data/modules/emscripten/third_party/websockify/tests/latency.html +0 -290
- data/modules/emscripten/third_party/websockify/tests/latency.py +0 -75
- data/modules/emscripten/third_party/websockify/tests/load.html +0 -250
- data/modules/emscripten/third_party/websockify/tests/load.py +0 -167
- data/modules/emscripten/third_party/websockify/tests/plain_echo.html +0 -168
- data/modules/emscripten/third_party/websockify/tests/simple.html +0 -68
- data/modules/emscripten/third_party/websockify/tests/utf8-list.py +0 -22
- data/modules/emscripten/third_party/websockify/websockify/__init__.py +0 -2
- data/modules/emscripten/third_party/websockify/websockify/websocket.py +0 -982
- data/modules/emscripten/third_party/websockify/websockify/websocketproxy.py +0 -393
- data/modules/emscripten/third_party/websockify/websockify.py +0 -5
- data/modules/emscripten/third_party/websockify/wsirc.html +0 -99
- data/modules/emscripten/third_party/websockify/wstelnet.html +0 -74
- data/modules/emscripten/tools/__init__.py +0 -0
- data/modules/emscripten/tools/asm_module.py +0 -275
- data/modules/emscripten/tools/autodebugger.py +0 -291
- data/modules/emscripten/tools/autodebugger_c.py +0 -37
- data/modules/emscripten/tools/autodebugger_indenter.py +0 -18
- data/modules/emscripten/tools/autodebugger_js.py +0 -47
- data/modules/emscripten/tools/autodediffer.py +0 -60
- data/modules/emscripten/tools/bindings_generator.py +0 -832
- data/modules/emscripten/tools/bisect_pair.py +0 -88
- data/modules/emscripten/tools/cache.py +0 -196
- data/modules/emscripten/tools/clean_webconsole.py +0 -34
- data/modules/emscripten/tools/crunch-worker.js +0 -124
- data/modules/emscripten/tools/diff_autodebugger.py +0 -15
- data/modules/emscripten/tools/eliminator/asm-eliminator-test-output.js +0 -307
- data/modules/emscripten/tools/eliminator/asm-eliminator-test.js +0 -382
- data/modules/emscripten/tools/eliminator/eliminator-test-output.js +0 -6136
- data/modules/emscripten/tools/eliminator/eliminator-test.js +0 -8879
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/README.html +0 -888
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/README.org +0 -463
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/bin/uglifyjs +0 -317
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/docstyle.css +0 -75
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/lib/object-ast.js +0 -75
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js +0 -1363
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/lib/process.js +0 -2005
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/lib/squeeze-more.js +0 -51
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/package.json +0 -22
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/beautify.js +0 -28
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/testparser.js +0 -402
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/array1.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/array2.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/array3.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/array4.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/assignment.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/concatstring.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/const.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/empty-blocks.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/forstatement.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/if.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/ifreturn.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/ifreturn2.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue10.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue11.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue13.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue14.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue16.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue17.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue20.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue21.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue25.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue27.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue28.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue29.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue30.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue34.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue4.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue48.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue50.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue53.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue54.1.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue68.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue69.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue9.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/mangle.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/strict-equals.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/var.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/with.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/array1.js +0 -3
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/array2.js +0 -4
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/array3.js +0 -4
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/array4.js +0 -6
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/assignment.js +0 -20
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/concatstring.js +0 -3
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/const.js +0 -5
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/empty-blocks.js +0 -4
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/forstatement.js +0 -10
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/if.js +0 -6
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/ifreturn.js +0 -9
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/ifreturn2.js +0 -16
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue10.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue11.js +0 -3
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue13.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue14.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue16.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue17.js +0 -4
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue20.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue21.js +0 -6
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue25.js +0 -7
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue27.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue28.js +0 -3
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue29.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue30.js +0 -3
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue34.js +0 -3
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue4.js +0 -3
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue48.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue50.js +0 -9
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue53.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue54.1.js +0 -3
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue68.js +0 -5
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue69.js +0 -1
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue9.js +0 -4
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/mangle.js +0 -5
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/strict-equals.js +0 -3
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/var.js +0 -3
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/with.js +0 -2
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/scripts.js +0 -55
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/tmp/hoist.js +0 -33
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/tmp/instrument.js +0 -97
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/tmp/instrument2.js +0 -138
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/tmp/test.js +0 -16
- data/modules/emscripten/tools/eliminator/node_modules/uglify-js/uglify-js.js +0 -17
- data/modules/emscripten/tools/eliminator/safe-eliminator-test-output.js +0 -85
- data/modules/emscripten/tools/eliminator/safe-eliminator-test.js +0 -103
- data/modules/emscripten/tools/emconfiguren.py +0 -19
- data/modules/emscripten/tools/emmaken.py +0 -230
- data/modules/emscripten/tools/emmakenxx.py +0 -18
- data/modules/emscripten/tools/exec_llvm.py +0 -50
- data/modules/emscripten/tools/file2json.py +0 -49
- data/modules/emscripten/tools/file_packager.py +0 -719
- data/modules/emscripten/tools/find_bigfuncs.py +0 -23
- data/modules/emscripten/tools/find_bigis.py +0 -18
- data/modules/emscripten/tools/find_bigvars.py +0 -24
- data/modules/emscripten/tools/fix_closure.py +0 -88
- data/modules/emscripten/tools/gen_struct_info.py +0 -509
- data/modules/emscripten/tools/ie7_fix.py +0 -14
- data/modules/emscripten/tools/js-optimizer.js +0 -4023
- data/modules/emscripten/tools/js_optimizer.py +0 -357
- data/modules/emscripten/tools/jsrun.py +0 -37
- data/modules/emscripten/tools/ll-strip.py +0 -56
- data/modules/emscripten/tools/make_file.py +0 -19
- data/modules/emscripten/tools/make_minigzip.py +0 -13
- data/modules/emscripten/tools/merge_asm.py +0 -26
- data/modules/emscripten/tools/namespacer.py +0 -95
- data/modules/emscripten/tools/nativize_llvm.py +0 -34
- data/modules/emscripten/tools/node_modules/source-map/CHANGELOG.md +0 -58
- data/modules/emscripten/tools/node_modules/source-map/LICENSE +0 -28
- data/modules/emscripten/tools/node_modules/source-map/Makefile.dryice.js +0 -166
- data/modules/emscripten/tools/node_modules/source-map/README.md +0 -347
- data/modules/emscripten/tools/node_modules/source-map/build/assert-shim.js +0 -56
- data/modules/emscripten/tools/node_modules/source-map/build/mini-require.js +0 -152
- data/modules/emscripten/tools/node_modules/source-map/build/prefix-source-map.jsm +0 -20
- data/modules/emscripten/tools/node_modules/source-map/build/prefix-utils.jsm +0 -18
- data/modules/emscripten/tools/node_modules/source-map/build/suffix-browser.js +0 -8
- data/modules/emscripten/tools/node_modules/source-map/build/suffix-source-map.jsm +0 -6
- data/modules/emscripten/tools/node_modules/source-map/build/suffix-utils.jsm +0 -21
- data/modules/emscripten/tools/node_modules/source-map/build/test-prefix.js +0 -8
- data/modules/emscripten/tools/node_modules/source-map/build/test-suffix.js +0 -3
- data/modules/emscripten/tools/node_modules/source-map/lib/source-map/array-set.js +0 -96
- data/modules/emscripten/tools/node_modules/source-map/lib/source-map/base64-vlq.js +0 -144
- data/modules/emscripten/tools/node_modules/source-map/lib/source-map/base64.js +0 -42
- data/modules/emscripten/tools/node_modules/source-map/lib/source-map/binary-search.js +0 -81
- data/modules/emscripten/tools/node_modules/source-map/lib/source-map/source-map-consumer.js +0 -430
- data/modules/emscripten/tools/node_modules/source-map/lib/source-map/source-map-generator.js +0 -381
- data/modules/emscripten/tools/node_modules/source-map/lib/source-map/source-node.js +0 -353
- data/modules/emscripten/tools/node_modules/source-map/lib/source-map/util.js +0 -117
- data/modules/emscripten/tools/node_modules/source-map/lib/source-map.js +0 -8
- data/modules/emscripten/tools/node_modules/source-map/node_modules/amdefine/LICENSE +0 -58
- data/modules/emscripten/tools/node_modules/source-map/node_modules/amdefine/README.md +0 -119
- data/modules/emscripten/tools/node_modules/source-map/node_modules/amdefine/amdefine.js +0 -299
- data/modules/emscripten/tools/node_modules/source-map/node_modules/amdefine/package.json +0 -33
- data/modules/emscripten/tools/node_modules/source-map/package.json +0 -74
- data/modules/emscripten/tools/node_modules/source-map/test/run-tests.js +0 -73
- data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-api.js +0 -26
- data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-array-set.js +0 -71
- data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-base64-vlq.js +0 -24
- data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-base64.js +0 -35
- data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-binary-search.js +0 -54
- data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-dog-fooding.js +0 -72
- data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-source-map-consumer.js +0 -306
- data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-source-map-generator.js +0 -391
- data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-source-node.js +0 -282
- data/modules/emscripten/tools/node_modules/source-map/test/source-map/util.js +0 -152
- data/modules/emscripten/tools/reproduceriter.js +0 -216
- data/modules/emscripten/tools/reproduceriter.py +0 -160
- data/modules/emscripten/tools/response_file.py +0 -34
- data/modules/emscripten/tools/scan_js.py +0 -20
- data/modules/emscripten/tools/scan_ll.py +0 -18
- data/modules/emscripten/tools/scons/site_scons/site_tools/emscripten/__init__.py +0 -3
- data/modules/emscripten/tools/scons/site_scons/site_tools/emscripten/emscripten.py +0 -46
- data/modules/emscripten/tools/settings_template_readonly.py +0 -49
- data/modules/emscripten/tools/shared.py +0 -1705
- data/modules/emscripten/tools/source-maps/sourcemap2json.js +0 -15
- data/modules/emscripten/tools/source-maps/sourcemapper.js +0 -208
- data/modules/emscripten/tools/split.py +0 -105
- data/modules/emscripten/tools/split_asm.py +0 -30
- data/modules/emscripten/tools/tempfiles.py +0 -41
- data/modules/emscripten/tools/test-js-optimizer-asm-last-output.js +0 -75
- data/modules/emscripten/tools/test-js-optimizer-asm-last.js +0 -91
- data/modules/emscripten/tools/test-js-optimizer-asm-minlast-output.js +0 -2
- data/modules/emscripten/tools/test-js-optimizer-asm-minlast.js +0 -8
- data/modules/emscripten/tools/test-js-optimizer-asm-outline1-output.js +0 -929
- data/modules/emscripten/tools/test-js-optimizer-asm-outline1.js +0 -351
- data/modules/emscripten/tools/test-js-optimizer-asm-outline2-output.js +0 -793
- data/modules/emscripten/tools/test-js-optimizer-asm-outline2.js +0 -606
- data/modules/emscripten/tools/test-js-optimizer-asm-outline3-output.js +0 -28
- data/modules/emscripten/tools/test-js-optimizer-asm-outline3.js +0 -30
- data/modules/emscripten/tools/test-js-optimizer-asm-pre-output.js +0 -522
- data/modules/emscripten/tools/test-js-optimizer-asm-pre.js +0 -533
- data/modules/emscripten/tools/test-js-optimizer-asm-regs-min-output.js +0 -36
- data/modules/emscripten/tools/test-js-optimizer-asm-regs-min.js +0 -37
- data/modules/emscripten/tools/test-js-optimizer-asm-regs-output.js +0 -106
- data/modules/emscripten/tools/test-js-optimizer-asm-regs.js +0 -110
- data/modules/emscripten/tools/test-js-optimizer-asm-relocate-output.js +0 -9
- data/modules/emscripten/tools/test-js-optimizer-asm-relocate.js +0 -12
- data/modules/emscripten/tools/test-js-optimizer-output.js +0 -291
- data/modules/emscripten/tools/test-js-optimizer-regs-output.js +0 -232
- data/modules/emscripten/tools/test-js-optimizer-regs.js +0 -237
- data/modules/emscripten/tools/test-js-optimizer-t2-output.js +0 -91
- data/modules/emscripten/tools/test-js-optimizer-t2.js +0 -92
- data/modules/emscripten/tools/test-js-optimizer-t2c-output.js +0 -17
- data/modules/emscripten/tools/test-js-optimizer-t2c.js +0 -18
- data/modules/emscripten/tools/test-js-optimizer-t3-output.js +0 -49
- data/modules/emscripten/tools/test-js-optimizer-t3.js +0 -50
- data/modules/emscripten/tools/test-js-optimizer.js +0 -401
- data/modules/emscripten/tools/validate_asmjs.py +0 -82
- data/modules/mruby/mrblib/print.rb +0 -18
- data/modules/mruby/src/re.h +0 -12
@@ -1,1619 +0,0 @@
|
|
1
|
-
mergeInto(LibraryManager.library, {
|
2
|
-
$FS__deps: ['$ERRNO_CODES', '$ERRNO_MESSAGES', '__setErrNo', '$PATH', '$TTY', '$MEMFS', '$IDBFS', '$NODEFS', 'stdin', 'stdout', 'stderr', 'fflush'],
|
3
|
-
$FS__postset: 'FS.staticInit();' +
|
4
|
-
'__ATINIT__.unshift({ func: function() { if (!Module["noFSInit"] && !FS.init.initialized) FS.init() } });' +
|
5
|
-
'__ATMAIN__.push({ func: function() { FS.ignorePermissions = false } });' +
|
6
|
-
'__ATEXIT__.push({ func: function() { FS.quit() } });' +
|
7
|
-
// export some names through closure
|
8
|
-
'Module["FS_createFolder"] = FS.createFolder;' +
|
9
|
-
'Module["FS_createPath"] = FS.createPath;' +
|
10
|
-
'Module["FS_createDataFile"] = FS.createDataFile;' +
|
11
|
-
'Module["FS_createPreloadedFile"] = FS.createPreloadedFile;' +
|
12
|
-
'Module["FS_createLazyFile"] = FS.createLazyFile;' +
|
13
|
-
'Module["FS_createLink"] = FS.createLink;' +
|
14
|
-
'Module["FS_createDevice"] = FS.createDevice;',
|
15
|
-
$FS: {
|
16
|
-
root: null,
|
17
|
-
mounts: [],
|
18
|
-
devices: [null],
|
19
|
-
streams: [null],
|
20
|
-
nextInode: 1,
|
21
|
-
nameTable: null,
|
22
|
-
currentPath: '/',
|
23
|
-
initialized: false,
|
24
|
-
// Whether we are currently ignoring permissions. Useful when preparing the
|
25
|
-
// filesystem and creating files inside read-only folders.
|
26
|
-
// This is set to false when the runtime is initialized, allowing you
|
27
|
-
// to modify the filesystem freely before run() is called.
|
28
|
-
ignorePermissions: true,
|
29
|
-
|
30
|
-
ErrnoError: null, // set during init
|
31
|
-
genericErrors: {},
|
32
|
-
|
33
|
-
handleFSError: function(e) {
|
34
|
-
if (!(e instanceof FS.ErrnoError)) throw e + ' : ' + stackTrace();
|
35
|
-
return ___setErrNo(e.errno);
|
36
|
-
},
|
37
|
-
|
38
|
-
//
|
39
|
-
// paths
|
40
|
-
//
|
41
|
-
lookupPath: function(path, opts) {
|
42
|
-
path = PATH.resolve(FS.cwd(), path);
|
43
|
-
opts = opts || { recurse_count: 0 };
|
44
|
-
|
45
|
-
if (opts.recurse_count > 8) { // max recursive lookup of 8
|
46
|
-
throw new FS.ErrnoError(ERRNO_CODES.ELOOP);
|
47
|
-
}
|
48
|
-
|
49
|
-
// split the path
|
50
|
-
var parts = PATH.normalizeArray(path.split('/').filter(function(p) {
|
51
|
-
return !!p;
|
52
|
-
}), false);
|
53
|
-
|
54
|
-
// start at the root
|
55
|
-
var current = FS.root;
|
56
|
-
var current_path = '/';
|
57
|
-
|
58
|
-
for (var i = 0; i < parts.length; i++) {
|
59
|
-
var islast = (i === parts.length-1);
|
60
|
-
if (islast && opts.parent) {
|
61
|
-
// stop resolving
|
62
|
-
break;
|
63
|
-
}
|
64
|
-
|
65
|
-
current = FS.lookupNode(current, parts[i]);
|
66
|
-
current_path = PATH.join2(current_path, parts[i]);
|
67
|
-
|
68
|
-
// jump to the mount's root node if this is a mountpoint
|
69
|
-
if (FS.isMountpoint(current)) {
|
70
|
-
current = current.mount.root;
|
71
|
-
}
|
72
|
-
|
73
|
-
// follow symlinks
|
74
|
-
// by default, lookupPath will not follow a symlink if it is the final path component.
|
75
|
-
// setting opts.follow = true will override this behavior.
|
76
|
-
if (!islast || opts.follow) {
|
77
|
-
var count = 0;
|
78
|
-
while (FS.isLink(current.mode)) {
|
79
|
-
var link = FS.readlink(current_path);
|
80
|
-
current_path = PATH.resolve(PATH.dirname(current_path), link);
|
81
|
-
|
82
|
-
var lookup = FS.lookupPath(current_path, { recurse_count: opts.recurse_count });
|
83
|
-
current = lookup.node;
|
84
|
-
|
85
|
-
if (count++ > 40) { // limit max consecutive symlinks to 40 (SYMLOOP_MAX).
|
86
|
-
throw new FS.ErrnoError(ERRNO_CODES.ELOOP);
|
87
|
-
}
|
88
|
-
}
|
89
|
-
}
|
90
|
-
}
|
91
|
-
|
92
|
-
return { path: current_path, node: current };
|
93
|
-
},
|
94
|
-
getPath: function(node) {
|
95
|
-
var path;
|
96
|
-
while (true) {
|
97
|
-
if (FS.isRoot(node)) {
|
98
|
-
var mount = node.mount.mountpoint;
|
99
|
-
if (!path) return mount;
|
100
|
-
return mount[mount.length-1] !== '/' ? mount + '/' + path : mount + path;
|
101
|
-
}
|
102
|
-
path = path ? node.name + '/' + path : node.name;
|
103
|
-
node = node.parent;
|
104
|
-
}
|
105
|
-
},
|
106
|
-
|
107
|
-
//
|
108
|
-
// nodes
|
109
|
-
//
|
110
|
-
hashName: function(parentid, name) {
|
111
|
-
var hash = 0;
|
112
|
-
|
113
|
-
#if CASE_INSENSITIVE_FS
|
114
|
-
name = name.toLowerCase();
|
115
|
-
#endif
|
116
|
-
|
117
|
-
for (var i = 0; i < name.length; i++) {
|
118
|
-
hash = ((hash << 5) - hash + name.charCodeAt(i)) | 0;
|
119
|
-
}
|
120
|
-
return ((parentid + hash) >>> 0) % FS.nameTable.length;
|
121
|
-
},
|
122
|
-
hashAddNode: function(node) {
|
123
|
-
var hash = FS.hashName(node.parent.id, node.name);
|
124
|
-
node.name_next = FS.nameTable[hash];
|
125
|
-
FS.nameTable[hash] = node;
|
126
|
-
},
|
127
|
-
hashRemoveNode: function(node) {
|
128
|
-
var hash = FS.hashName(node.parent.id, node.name);
|
129
|
-
if (FS.nameTable[hash] === node) {
|
130
|
-
FS.nameTable[hash] = node.name_next;
|
131
|
-
} else {
|
132
|
-
var current = FS.nameTable[hash];
|
133
|
-
while (current) {
|
134
|
-
if (current.name_next === node) {
|
135
|
-
current.name_next = node.name_next;
|
136
|
-
break;
|
137
|
-
}
|
138
|
-
current = current.name_next;
|
139
|
-
}
|
140
|
-
}
|
141
|
-
},
|
142
|
-
lookupNode: function(parent, name) {
|
143
|
-
var err = FS.mayLookup(parent);
|
144
|
-
if (err) {
|
145
|
-
throw new FS.ErrnoError(err);
|
146
|
-
}
|
147
|
-
var hash = FS.hashName(parent.id, name);
|
148
|
-
#if CASE_INSENSITIVE_FS
|
149
|
-
name = name.toLowerCase();
|
150
|
-
#endif
|
151
|
-
for (var node = FS.nameTable[hash]; node; node = node.name_next) {
|
152
|
-
var nodeName = node.name;
|
153
|
-
#if CASE_INSENSITIVE_FS
|
154
|
-
nodeName = nodeName.toLowerCase();
|
155
|
-
#endif
|
156
|
-
if (node.parent.id === parent.id && nodeName === name) {
|
157
|
-
return node;
|
158
|
-
}
|
159
|
-
}
|
160
|
-
// if we failed to find it in the cache, call into the VFS
|
161
|
-
return FS.lookup(parent, name);
|
162
|
-
},
|
163
|
-
createNode: function(parent, name, mode, rdev) {
|
164
|
-
if (!FS.FSNode) {
|
165
|
-
FS.FSNode = function(parent, name, mode, rdev) {
|
166
|
-
this.id = FS.nextInode++;
|
167
|
-
this.name = name;
|
168
|
-
this.mode = mode;
|
169
|
-
this.node_ops = {};
|
170
|
-
this.stream_ops = {};
|
171
|
-
this.rdev = rdev;
|
172
|
-
this.parent = null;
|
173
|
-
this.mount = null;
|
174
|
-
if (!parent) {
|
175
|
-
parent = this; // root node sets parent to itself
|
176
|
-
}
|
177
|
-
this.parent = parent;
|
178
|
-
this.mount = parent.mount;
|
179
|
-
FS.hashAddNode(this);
|
180
|
-
};
|
181
|
-
|
182
|
-
// compatibility
|
183
|
-
var readMode = {{{ cDefine('S_IRUGO') }}} | {{{ cDefine('S_IXUGO') }}};
|
184
|
-
var writeMode = {{{ cDefine('S_IWUGO') }}};
|
185
|
-
|
186
|
-
FS.FSNode.prototype = {};
|
187
|
-
|
188
|
-
// NOTE we must use Object.defineProperties instead of individual calls to
|
189
|
-
// Object.defineProperty in order to make closure compiler happy
|
190
|
-
Object.defineProperties(FS.FSNode.prototype, {
|
191
|
-
read: {
|
192
|
-
get: function() { return (this.mode & readMode) === readMode; },
|
193
|
-
set: function(val) { val ? this.mode |= readMode : this.mode &= ~readMode; }
|
194
|
-
},
|
195
|
-
write: {
|
196
|
-
get: function() { return (this.mode & writeMode) === writeMode; },
|
197
|
-
set: function(val) { val ? this.mode |= writeMode : this.mode &= ~writeMode; }
|
198
|
-
},
|
199
|
-
isFolder: {
|
200
|
-
get: function() { return FS.isDir(this.mode); },
|
201
|
-
},
|
202
|
-
isDevice: {
|
203
|
-
get: function() { return FS.isChrdev(this.mode); },
|
204
|
-
},
|
205
|
-
});
|
206
|
-
}
|
207
|
-
return new FS.FSNode(parent, name, mode, rdev);
|
208
|
-
},
|
209
|
-
destroyNode: function(node) {
|
210
|
-
FS.hashRemoveNode(node);
|
211
|
-
},
|
212
|
-
isRoot: function(node) {
|
213
|
-
return node === node.parent;
|
214
|
-
},
|
215
|
-
isMountpoint: function(node) {
|
216
|
-
return node.mounted;
|
217
|
-
},
|
218
|
-
isFile: function(mode) {
|
219
|
-
return (mode & {{{ cDefine('S_IFMT') }}}) === {{{ cDefine('S_IFREG') }}};
|
220
|
-
},
|
221
|
-
isDir: function(mode) {
|
222
|
-
return (mode & {{{ cDefine('S_IFMT') }}}) === {{{ cDefine('S_IFDIR') }}};
|
223
|
-
},
|
224
|
-
isLink: function(mode) {
|
225
|
-
return (mode & {{{ cDefine('S_IFMT') }}}) === {{{ cDefine('S_IFLNK') }}};
|
226
|
-
},
|
227
|
-
isChrdev: function(mode) {
|
228
|
-
return (mode & {{{ cDefine('S_IFMT') }}}) === {{{ cDefine('S_IFCHR') }}};
|
229
|
-
},
|
230
|
-
isBlkdev: function(mode) {
|
231
|
-
return (mode & {{{ cDefine('S_IFMT') }}}) === {{{ cDefine('S_IFBLK') }}};
|
232
|
-
},
|
233
|
-
isFIFO: function(mode) {
|
234
|
-
return (mode & {{{ cDefine('S_IFMT') }}}) === {{{ cDefine('S_IFIFO') }}};
|
235
|
-
},
|
236
|
-
isSocket: function(mode) {
|
237
|
-
return (mode & {{{ cDefine('S_IFSOCK') }}}) === {{{ cDefine('S_IFSOCK') }}};
|
238
|
-
},
|
239
|
-
|
240
|
-
//
|
241
|
-
// permissions
|
242
|
-
//
|
243
|
-
flagModes: {
|
244
|
-
'"r"': {{{ cDefine('O_RDONLY') }}},
|
245
|
-
'"rs"': {{{ cDefine('O_RDONLY') }}} | {{{ cDefine('O_SYNC') }}},
|
246
|
-
'"r+"': {{{ cDefine('O_RDWR') }}},
|
247
|
-
'"w"': {{{ cDefine('O_TRUNC') }}} | {{{ cDefine('O_CREAT') }}} | {{{ cDefine('O_WRONLY') }}},
|
248
|
-
'"wx"': {{{ cDefine('O_TRUNC') }}} | {{{ cDefine('O_CREAT') }}} | {{{ cDefine('O_WRONLY') }}} | {{{ cDefine('O_EXCL') }}},
|
249
|
-
'"xw"': {{{ cDefine('O_TRUNC') }}} | {{{ cDefine('O_CREAT') }}} | {{{ cDefine('O_WRONLY') }}} | {{{ cDefine('O_EXCL') }}},
|
250
|
-
'"w+"': {{{ cDefine('O_TRUNC') }}} | {{{ cDefine('O_CREAT') }}} | {{{ cDefine('O_RDWR') }}},
|
251
|
-
'"wx+"': {{{ cDefine('O_TRUNC') }}} | {{{ cDefine('O_CREAT') }}} | {{{ cDefine('O_RDWR') }}} | {{{ cDefine('O_EXCL') }}},
|
252
|
-
'"xw+"': {{{ cDefine('O_TRUNC') }}} | {{{ cDefine('O_CREAT') }}} | {{{ cDefine('O_RDWR') }}} | {{{ cDefine('O_EXCL') }}},
|
253
|
-
'"a"': {{{ cDefine('O_APPEND') }}} | {{{ cDefine('O_CREAT') }}} | {{{ cDefine('O_WRONLY') }}},
|
254
|
-
'"ax"': {{{ cDefine('O_APPEND') }}} | {{{ cDefine('O_CREAT') }}} | {{{ cDefine('O_WRONLY') }}} | {{{ cDefine('O_EXCL') }}},
|
255
|
-
'"xa"': {{{ cDefine('O_APPEND') }}} | {{{ cDefine('O_CREAT') }}} | {{{ cDefine('O_WRONLY') }}} | {{{ cDefine('O_EXCL') }}},
|
256
|
-
'"a+"': {{{ cDefine('O_APPEND') }}} | {{{ cDefine('O_CREAT') }}} | {{{ cDefine('O_RDWR') }}},
|
257
|
-
'"ax+"': {{{ cDefine('O_APPEND') }}} | {{{ cDefine('O_CREAT') }}} | {{{ cDefine('O_RDWR') }}} | {{{ cDefine('O_EXCL') }}},
|
258
|
-
'"xa+"': {{{ cDefine('O_APPEND') }}} | {{{ cDefine('O_CREAT') }}} | {{{ cDefine('O_RDWR') }}} | {{{ cDefine('O_EXCL') }}}
|
259
|
-
},
|
260
|
-
// convert the 'r', 'r+', etc. to it's corresponding set of O_* flags
|
261
|
-
modeStringToFlags: function(str) {
|
262
|
-
var flags = FS.flagModes[str];
|
263
|
-
if (typeof flags === 'undefined') {
|
264
|
-
throw new Error('Unknown file open mode: ' + str);
|
265
|
-
}
|
266
|
-
return flags;
|
267
|
-
},
|
268
|
-
// convert O_* bitmask to a string for nodePermissions
|
269
|
-
flagsToPermissionString: function(flag) {
|
270
|
-
var accmode = flag & {{{ cDefine('O_ACCMODE') }}};
|
271
|
-
var perms = ['r', 'w', 'rw'][accmode];
|
272
|
-
if ((flag & {{{ cDefine('O_TRUNC') }}})) {
|
273
|
-
perms += 'w';
|
274
|
-
}
|
275
|
-
return perms;
|
276
|
-
},
|
277
|
-
nodePermissions: function(node, perms) {
|
278
|
-
if (FS.ignorePermissions) {
|
279
|
-
return 0;
|
280
|
-
}
|
281
|
-
// return 0 if any user, group or owner bits are set.
|
282
|
-
if (perms.indexOf('r') !== -1 && !(node.mode & {{{ cDefine('S_IRUGO') }}})) {
|
283
|
-
return ERRNO_CODES.EACCES;
|
284
|
-
} else if (perms.indexOf('w') !== -1 && !(node.mode & {{{ cDefine('S_IWUGO') }}})) {
|
285
|
-
return ERRNO_CODES.EACCES;
|
286
|
-
} else if (perms.indexOf('x') !== -1 && !(node.mode & {{{ cDefine('S_IXUGO') }}})) {
|
287
|
-
return ERRNO_CODES.EACCES;
|
288
|
-
}
|
289
|
-
return 0;
|
290
|
-
},
|
291
|
-
mayLookup: function(dir) {
|
292
|
-
return FS.nodePermissions(dir, 'x');
|
293
|
-
},
|
294
|
-
mayCreate: function(dir, name) {
|
295
|
-
try {
|
296
|
-
var node = FS.lookupNode(dir, name);
|
297
|
-
return ERRNO_CODES.EEXIST;
|
298
|
-
} catch (e) {
|
299
|
-
}
|
300
|
-
return FS.nodePermissions(dir, 'wx');
|
301
|
-
},
|
302
|
-
mayDelete: function(dir, name, isdir) {
|
303
|
-
var node;
|
304
|
-
try {
|
305
|
-
node = FS.lookupNode(dir, name);
|
306
|
-
} catch (e) {
|
307
|
-
return e.errno;
|
308
|
-
}
|
309
|
-
var err = FS.nodePermissions(dir, 'wx');
|
310
|
-
if (err) {
|
311
|
-
return err;
|
312
|
-
}
|
313
|
-
if (isdir) {
|
314
|
-
if (!FS.isDir(node.mode)) {
|
315
|
-
return ERRNO_CODES.ENOTDIR;
|
316
|
-
}
|
317
|
-
if (FS.isRoot(node) || FS.getPath(node) === FS.cwd()) {
|
318
|
-
return ERRNO_CODES.EBUSY;
|
319
|
-
}
|
320
|
-
} else {
|
321
|
-
if (FS.isDir(node.mode)) {
|
322
|
-
return ERRNO_CODES.EISDIR;
|
323
|
-
}
|
324
|
-
}
|
325
|
-
return 0;
|
326
|
-
},
|
327
|
-
mayOpen: function(node, flags) {
|
328
|
-
if (!node) {
|
329
|
-
return ERRNO_CODES.ENOENT;
|
330
|
-
}
|
331
|
-
if (FS.isLink(node.mode)) {
|
332
|
-
return ERRNO_CODES.ELOOP;
|
333
|
-
} else if (FS.isDir(node.mode)) {
|
334
|
-
if ((flags & {{{ cDefine('O_ACCMODE') }}}) !== {{{ cDefine('O_RDONLY')}}} || // opening for write
|
335
|
-
(flags & {{{ cDefine('O_TRUNC') }}})) {
|
336
|
-
return ERRNO_CODES.EISDIR;
|
337
|
-
}
|
338
|
-
}
|
339
|
-
return FS.nodePermissions(node, FS.flagsToPermissionString(flags));
|
340
|
-
},
|
341
|
-
|
342
|
-
//
|
343
|
-
// streams
|
344
|
-
//
|
345
|
-
MAX_OPEN_FDS: 4096,
|
346
|
-
nextfd: function(fd_start, fd_end) {
|
347
|
-
fd_start = fd_start || 1;
|
348
|
-
fd_end = fd_end || FS.MAX_OPEN_FDS;
|
349
|
-
for (var fd = fd_start; fd <= fd_end; fd++) {
|
350
|
-
if (!FS.streams[fd]) {
|
351
|
-
return fd;
|
352
|
-
}
|
353
|
-
}
|
354
|
-
throw new FS.ErrnoError(ERRNO_CODES.EMFILE);
|
355
|
-
},
|
356
|
-
getStream: function(fd) {
|
357
|
-
return FS.streams[fd];
|
358
|
-
},
|
359
|
-
// TODO parameterize this function such that a stream
|
360
|
-
// object isn't directly passed in. not possible until
|
361
|
-
// SOCKFS is completed.
|
362
|
-
createStream: function(stream, fd_start, fd_end) {
|
363
|
-
if (!FS.FSStream) {
|
364
|
-
FS.FSStream = function(){};
|
365
|
-
FS.FSStream.prototype = {};
|
366
|
-
// compatibility
|
367
|
-
Object.defineProperties(FS.FSStream.prototype, {
|
368
|
-
object: {
|
369
|
-
get: function() { return this.node; },
|
370
|
-
set: function(val) { this.node = val; }
|
371
|
-
},
|
372
|
-
isRead: {
|
373
|
-
get: function() { return (this.flags & {{{ cDefine('O_ACCMODE') }}}) !== {{{ cDefine('O_WRONLY') }}}; }
|
374
|
-
},
|
375
|
-
isWrite: {
|
376
|
-
get: function() { return (this.flags & {{{ cDefine('O_ACCMODE') }}}) !== {{{ cDefine('O_RDONLY') }}}; }
|
377
|
-
},
|
378
|
-
isAppend: {
|
379
|
-
get: function() { return (this.flags & {{{ cDefine('O_APPEND') }}}); }
|
380
|
-
}
|
381
|
-
});
|
382
|
-
}
|
383
|
-
if (stream.__proto__) {
|
384
|
-
// reuse the object
|
385
|
-
stream.__proto__ = FS.FSStream.prototype;
|
386
|
-
} else {
|
387
|
-
var newStream = new FS.FSStream();
|
388
|
-
for (var p in stream) {
|
389
|
-
newStream[p] = stream[p];
|
390
|
-
}
|
391
|
-
stream = newStream;
|
392
|
-
}
|
393
|
-
var fd = FS.nextfd(fd_start, fd_end);
|
394
|
-
stream.fd = fd;
|
395
|
-
FS.streams[fd] = stream;
|
396
|
-
return stream;
|
397
|
-
},
|
398
|
-
closeStream: function(fd) {
|
399
|
-
FS.streams[fd] = null;
|
400
|
-
},
|
401
|
-
|
402
|
-
//
|
403
|
-
// devices
|
404
|
-
//
|
405
|
-
// each character device consists of a device id + stream operations.
|
406
|
-
// when a character device node is created (e.g. /dev/stdin) it is
|
407
|
-
// assigned a device id that lets us map back to the actual device.
|
408
|
-
// by default, each character device stream (e.g. _stdin) uses chrdev_stream_ops.
|
409
|
-
// however, once opened, the stream's operations are overridden with
|
410
|
-
// the operations of the device its underlying node maps back to.
|
411
|
-
chrdev_stream_ops: {
|
412
|
-
open: function(stream) {
|
413
|
-
var device = FS.getDevice(stream.node.rdev);
|
414
|
-
// override node's stream ops with the device's
|
415
|
-
stream.stream_ops = device.stream_ops;
|
416
|
-
// forward the open call
|
417
|
-
if (stream.stream_ops.open) {
|
418
|
-
stream.stream_ops.open(stream);
|
419
|
-
}
|
420
|
-
},
|
421
|
-
llseek: function() {
|
422
|
-
throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
|
423
|
-
}
|
424
|
-
},
|
425
|
-
major: function(dev) {
|
426
|
-
return ((dev) >> 8);
|
427
|
-
},
|
428
|
-
minor: function(dev) {
|
429
|
-
return ((dev) & 0xff);
|
430
|
-
},
|
431
|
-
makedev: function(ma, mi) {
|
432
|
-
return ((ma) << 8 | (mi));
|
433
|
-
},
|
434
|
-
registerDevice: function(dev, ops) {
|
435
|
-
FS.devices[dev] = { stream_ops: ops };
|
436
|
-
},
|
437
|
-
getDevice: function(dev) {
|
438
|
-
return FS.devices[dev];
|
439
|
-
},
|
440
|
-
|
441
|
-
//
|
442
|
-
// core
|
443
|
-
//
|
444
|
-
syncfs: function(populate, callback) {
|
445
|
-
if (typeof(populate) === 'function') {
|
446
|
-
callback = populate;
|
447
|
-
populate = false;
|
448
|
-
}
|
449
|
-
|
450
|
-
var completed = 0;
|
451
|
-
var total = FS.mounts.length;
|
452
|
-
function done(err) {
|
453
|
-
if (err) {
|
454
|
-
return callback(err);
|
455
|
-
}
|
456
|
-
if (++completed >= total) {
|
457
|
-
callback(null);
|
458
|
-
}
|
459
|
-
};
|
460
|
-
|
461
|
-
// sync all mounts
|
462
|
-
for (var i = 0; i < FS.mounts.length; i++) {
|
463
|
-
var mount = FS.mounts[i];
|
464
|
-
if (!mount.type.syncfs) {
|
465
|
-
done(null);
|
466
|
-
continue;
|
467
|
-
}
|
468
|
-
mount.type.syncfs(mount, populate, done);
|
469
|
-
}
|
470
|
-
},
|
471
|
-
mount: function(type, opts, mountpoint) {
|
472
|
-
var lookup;
|
473
|
-
if (mountpoint) {
|
474
|
-
lookup = FS.lookupPath(mountpoint, { follow: false });
|
475
|
-
mountpoint = lookup.path; // use the absolute path
|
476
|
-
}
|
477
|
-
var mount = {
|
478
|
-
type: type,
|
479
|
-
opts: opts,
|
480
|
-
mountpoint: mountpoint,
|
481
|
-
root: null
|
482
|
-
};
|
483
|
-
// create a root node for the fs
|
484
|
-
var root = type.mount(mount);
|
485
|
-
root.mount = mount;
|
486
|
-
mount.root = root;
|
487
|
-
// assign the mount info to the mountpoint's node
|
488
|
-
if (lookup) {
|
489
|
-
lookup.node.mount = mount;
|
490
|
-
lookup.node.mounted = true;
|
491
|
-
// compatibility update FS.root if we mount to /
|
492
|
-
if (mountpoint === '/') {
|
493
|
-
FS.root = mount.root;
|
494
|
-
}
|
495
|
-
}
|
496
|
-
// add to our cached list of mounts
|
497
|
-
FS.mounts.push(mount);
|
498
|
-
return root;
|
499
|
-
},
|
500
|
-
lookup: function(parent, name) {
|
501
|
-
return parent.node_ops.lookup(parent, name);
|
502
|
-
},
|
503
|
-
// generic function for all node creation
|
504
|
-
mknod: function(path, mode, dev) {
|
505
|
-
var lookup = FS.lookupPath(path, { parent: true });
|
506
|
-
var parent = lookup.node;
|
507
|
-
var name = PATH.basename(path);
|
508
|
-
var err = FS.mayCreate(parent, name);
|
509
|
-
if (err) {
|
510
|
-
throw new FS.ErrnoError(err);
|
511
|
-
}
|
512
|
-
if (!parent.node_ops.mknod) {
|
513
|
-
throw new FS.ErrnoError(ERRNO_CODES.EPERM);
|
514
|
-
}
|
515
|
-
return parent.node_ops.mknod(parent, name, mode, dev);
|
516
|
-
},
|
517
|
-
// helpers to create specific types of nodes
|
518
|
-
create: function(path, mode) {
|
519
|
-
mode = mode !== undefined ? mode : 0666;
|
520
|
-
mode &= {{{ cDefine('S_IALLUGO') }}};
|
521
|
-
mode |= {{{ cDefine('S_IFREG') }}};
|
522
|
-
return FS.mknod(path, mode, 0);
|
523
|
-
},
|
524
|
-
mkdir: function(path, mode) {
|
525
|
-
mode = mode !== undefined ? mode : 0777;
|
526
|
-
mode &= {{{ cDefine('S_IRWXUGO') }}} | {{{ cDefine('S_ISVTX') }}};
|
527
|
-
mode |= {{{ cDefine('S_IFDIR') }}};
|
528
|
-
return FS.mknod(path, mode, 0);
|
529
|
-
},
|
530
|
-
mkdev: function(path, mode, dev) {
|
531
|
-
if (typeof(dev) === 'undefined') {
|
532
|
-
dev = mode;
|
533
|
-
mode = 0666;
|
534
|
-
}
|
535
|
-
mode |= {{{ cDefine('S_IFCHR') }}};
|
536
|
-
return FS.mknod(path, mode, dev);
|
537
|
-
},
|
538
|
-
symlink: function(oldpath, newpath) {
|
539
|
-
var lookup = FS.lookupPath(newpath, { parent: true });
|
540
|
-
var parent = lookup.node;
|
541
|
-
var newname = PATH.basename(newpath);
|
542
|
-
var err = FS.mayCreate(parent, newname);
|
543
|
-
if (err) {
|
544
|
-
throw new FS.ErrnoError(err);
|
545
|
-
}
|
546
|
-
if (!parent.node_ops.symlink) {
|
547
|
-
throw new FS.ErrnoError(ERRNO_CODES.EPERM);
|
548
|
-
}
|
549
|
-
return parent.node_ops.symlink(parent, newname, oldpath);
|
550
|
-
},
|
551
|
-
rename: function(old_path, new_path) {
|
552
|
-
var old_dirname = PATH.dirname(old_path);
|
553
|
-
var new_dirname = PATH.dirname(new_path);
|
554
|
-
var old_name = PATH.basename(old_path);
|
555
|
-
var new_name = PATH.basename(new_path);
|
556
|
-
// parents must exist
|
557
|
-
var lookup, old_dir, new_dir;
|
558
|
-
try {
|
559
|
-
lookup = FS.lookupPath(old_path, { parent: true });
|
560
|
-
old_dir = lookup.node;
|
561
|
-
lookup = FS.lookupPath(new_path, { parent: true });
|
562
|
-
new_dir = lookup.node;
|
563
|
-
} catch (e) {
|
564
|
-
throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
|
565
|
-
}
|
566
|
-
// need to be part of the same mount
|
567
|
-
if (old_dir.mount !== new_dir.mount) {
|
568
|
-
throw new FS.ErrnoError(ERRNO_CODES.EXDEV);
|
569
|
-
}
|
570
|
-
// source must exist
|
571
|
-
var old_node = FS.lookupNode(old_dir, old_name);
|
572
|
-
// old path should not be an ancestor of the new path
|
573
|
-
var relative = PATH.relative(old_path, new_dirname);
|
574
|
-
if (relative.charAt(0) !== '.') {
|
575
|
-
throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
|
576
|
-
}
|
577
|
-
// new path should not be an ancestor of the old path
|
578
|
-
relative = PATH.relative(new_path, old_dirname);
|
579
|
-
if (relative.charAt(0) !== '.') {
|
580
|
-
throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
|
581
|
-
}
|
582
|
-
// see if the new path already exists
|
583
|
-
var new_node;
|
584
|
-
try {
|
585
|
-
new_node = FS.lookupNode(new_dir, new_name);
|
586
|
-
} catch (e) {
|
587
|
-
// not fatal
|
588
|
-
}
|
589
|
-
// early out if nothing needs to change
|
590
|
-
if (old_node === new_node) {
|
591
|
-
return;
|
592
|
-
}
|
593
|
-
// we'll need to delete the old entry
|
594
|
-
var isdir = FS.isDir(old_node.mode);
|
595
|
-
var err = FS.mayDelete(old_dir, old_name, isdir);
|
596
|
-
if (err) {
|
597
|
-
throw new FS.ErrnoError(err);
|
598
|
-
}
|
599
|
-
// need delete permissions if we'll be overwriting.
|
600
|
-
// need create permissions if new doesn't already exist.
|
601
|
-
err = new_node ?
|
602
|
-
FS.mayDelete(new_dir, new_name, isdir) :
|
603
|
-
FS.mayCreate(new_dir, new_name);
|
604
|
-
if (err) {
|
605
|
-
throw new FS.ErrnoError(err);
|
606
|
-
}
|
607
|
-
if (!old_dir.node_ops.rename) {
|
608
|
-
throw new FS.ErrnoError(ERRNO_CODES.EPERM);
|
609
|
-
}
|
610
|
-
if (FS.isMountpoint(old_node) || (new_node && FS.isMountpoint(new_node))) {
|
611
|
-
throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
|
612
|
-
}
|
613
|
-
// if we are going to change the parent, check write permissions
|
614
|
-
if (new_dir !== old_dir) {
|
615
|
-
err = FS.nodePermissions(old_dir, 'w');
|
616
|
-
if (err) {
|
617
|
-
throw new FS.ErrnoError(err);
|
618
|
-
}
|
619
|
-
}
|
620
|
-
// remove the node from the lookup hash
|
621
|
-
FS.hashRemoveNode(old_node);
|
622
|
-
// do the underlying fs rename
|
623
|
-
try {
|
624
|
-
old_dir.node_ops.rename(old_node, new_dir, new_name);
|
625
|
-
} catch (e) {
|
626
|
-
throw e;
|
627
|
-
} finally {
|
628
|
-
// add the node back to the hash (in case node_ops.rename
|
629
|
-
// changed its name)
|
630
|
-
FS.hashAddNode(old_node);
|
631
|
-
}
|
632
|
-
},
|
633
|
-
rmdir: function(path) {
|
634
|
-
var lookup = FS.lookupPath(path, { parent: true });
|
635
|
-
var parent = lookup.node;
|
636
|
-
var name = PATH.basename(path);
|
637
|
-
var node = FS.lookupNode(parent, name);
|
638
|
-
var err = FS.mayDelete(parent, name, true);
|
639
|
-
if (err) {
|
640
|
-
throw new FS.ErrnoError(err);
|
641
|
-
}
|
642
|
-
if (!parent.node_ops.rmdir) {
|
643
|
-
throw new FS.ErrnoError(ERRNO_CODES.EPERM);
|
644
|
-
}
|
645
|
-
if (FS.isMountpoint(node)) {
|
646
|
-
throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
|
647
|
-
}
|
648
|
-
parent.node_ops.rmdir(parent, name);
|
649
|
-
FS.destroyNode(node);
|
650
|
-
},
|
651
|
-
readdir: function(path) {
|
652
|
-
var lookup = FS.lookupPath(path, { follow: true });
|
653
|
-
var node = lookup.node;
|
654
|
-
if (!node.node_ops.readdir) {
|
655
|
-
throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
|
656
|
-
}
|
657
|
-
return node.node_ops.readdir(node);
|
658
|
-
},
|
659
|
-
unlink: function(path) {
|
660
|
-
var lookup = FS.lookupPath(path, { parent: true });
|
661
|
-
var parent = lookup.node;
|
662
|
-
var name = PATH.basename(path);
|
663
|
-
var node = FS.lookupNode(parent, name);
|
664
|
-
var err = FS.mayDelete(parent, name, false);
|
665
|
-
if (err) {
|
666
|
-
// POSIX says unlink should set EPERM, not EISDIR
|
667
|
-
if (err === ERRNO_CODES.EISDIR) err = ERRNO_CODES.EPERM;
|
668
|
-
throw new FS.ErrnoError(err);
|
669
|
-
}
|
670
|
-
if (!parent.node_ops.unlink) {
|
671
|
-
throw new FS.ErrnoError(ERRNO_CODES.EPERM);
|
672
|
-
}
|
673
|
-
if (FS.isMountpoint(node)) {
|
674
|
-
throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
|
675
|
-
}
|
676
|
-
parent.node_ops.unlink(parent, name);
|
677
|
-
FS.destroyNode(node);
|
678
|
-
},
|
679
|
-
readlink: function(path) {
|
680
|
-
var lookup = FS.lookupPath(path, { follow: false });
|
681
|
-
var link = lookup.node;
|
682
|
-
if (!link.node_ops.readlink) {
|
683
|
-
throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
|
684
|
-
}
|
685
|
-
return link.node_ops.readlink(link);
|
686
|
-
},
|
687
|
-
stat: function(path, dontFollow) {
|
688
|
-
var lookup = FS.lookupPath(path, { follow: !dontFollow });
|
689
|
-
var node = lookup.node;
|
690
|
-
if (!node.node_ops.getattr) {
|
691
|
-
throw new FS.ErrnoError(ERRNO_CODES.EPERM);
|
692
|
-
}
|
693
|
-
return node.node_ops.getattr(node);
|
694
|
-
},
|
695
|
-
lstat: function(path) {
|
696
|
-
return FS.stat(path, true);
|
697
|
-
},
|
698
|
-
chmod: function(path, mode, dontFollow) {
|
699
|
-
var node;
|
700
|
-
if (typeof path === 'string') {
|
701
|
-
var lookup = FS.lookupPath(path, { follow: !dontFollow });
|
702
|
-
node = lookup.node;
|
703
|
-
} else {
|
704
|
-
node = path;
|
705
|
-
}
|
706
|
-
if (!node.node_ops.setattr) {
|
707
|
-
throw new FS.ErrnoError(ERRNO_CODES.EPERM);
|
708
|
-
}
|
709
|
-
node.node_ops.setattr(node, {
|
710
|
-
mode: (mode & {{{ cDefine('S_IALLUGO') }}}) | (node.mode & ~{{{ cDefine('S_IALLUGO') }}}),
|
711
|
-
timestamp: Date.now()
|
712
|
-
});
|
713
|
-
},
|
714
|
-
lchmod: function(path, mode) {
|
715
|
-
FS.chmod(path, mode, true);
|
716
|
-
},
|
717
|
-
fchmod: function(fd, mode) {
|
718
|
-
var stream = FS.getStream(fd);
|
719
|
-
if (!stream) {
|
720
|
-
throw new FS.ErrnoError(ERRNO_CODES.EBADF);
|
721
|
-
}
|
722
|
-
FS.chmod(stream.node, mode);
|
723
|
-
},
|
724
|
-
chown: function(path, uid, gid, dontFollow) {
|
725
|
-
var node;
|
726
|
-
if (typeof path === 'string') {
|
727
|
-
var lookup = FS.lookupPath(path, { follow: !dontFollow });
|
728
|
-
node = lookup.node;
|
729
|
-
} else {
|
730
|
-
node = path;
|
731
|
-
}
|
732
|
-
if (!node.node_ops.setattr) {
|
733
|
-
throw new FS.ErrnoError(ERRNO_CODES.EPERM);
|
734
|
-
}
|
735
|
-
node.node_ops.setattr(node, {
|
736
|
-
timestamp: Date.now()
|
737
|
-
// we ignore the uid / gid for now
|
738
|
-
});
|
739
|
-
},
|
740
|
-
lchown: function(path, uid, gid) {
|
741
|
-
FS.chown(path, uid, gid, true);
|
742
|
-
},
|
743
|
-
fchown: function(fd, uid, gid) {
|
744
|
-
var stream = FS.getStream(fd);
|
745
|
-
if (!stream) {
|
746
|
-
throw new FS.ErrnoError(ERRNO_CODES.EBADF);
|
747
|
-
}
|
748
|
-
FS.chown(stream.node, uid, gid);
|
749
|
-
},
|
750
|
-
truncate: function(path, len) {
|
751
|
-
if (len < 0) {
|
752
|
-
throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
|
753
|
-
}
|
754
|
-
var node;
|
755
|
-
if (typeof path === 'string') {
|
756
|
-
var lookup = FS.lookupPath(path, { follow: true });
|
757
|
-
node = lookup.node;
|
758
|
-
} else {
|
759
|
-
node = path;
|
760
|
-
}
|
761
|
-
if (!node.node_ops.setattr) {
|
762
|
-
throw new FS.ErrnoError(ERRNO_CODES.EPERM);
|
763
|
-
}
|
764
|
-
if (FS.isDir(node.mode)) {
|
765
|
-
throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
|
766
|
-
}
|
767
|
-
if (!FS.isFile(node.mode)) {
|
768
|
-
throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
|
769
|
-
}
|
770
|
-
var err = FS.nodePermissions(node, 'w');
|
771
|
-
if (err) {
|
772
|
-
throw new FS.ErrnoError(err);
|
773
|
-
}
|
774
|
-
node.node_ops.setattr(node, {
|
775
|
-
size: len,
|
776
|
-
timestamp: Date.now()
|
777
|
-
});
|
778
|
-
},
|
779
|
-
ftruncate: function(fd, len) {
|
780
|
-
var stream = FS.getStream(fd);
|
781
|
-
if (!stream) {
|
782
|
-
throw new FS.ErrnoError(ERRNO_CODES.EBADF);
|
783
|
-
}
|
784
|
-
if ((stream.flags & {{{ cDefine('O_ACCMODE') }}}) === {{{ cDefine('O_RDONLY')}}}) {
|
785
|
-
throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
|
786
|
-
}
|
787
|
-
FS.truncate(stream.node, len);
|
788
|
-
},
|
789
|
-
utime: function(path, atime, mtime) {
|
790
|
-
var lookup = FS.lookupPath(path, { follow: true });
|
791
|
-
var node = lookup.node;
|
792
|
-
node.node_ops.setattr(node, {
|
793
|
-
timestamp: Math.max(atime, mtime)
|
794
|
-
});
|
795
|
-
},
|
796
|
-
open: function(path, flags, mode, fd_start, fd_end) {
|
797
|
-
flags = typeof flags === 'string' ? FS.modeStringToFlags(flags) : flags;
|
798
|
-
mode = typeof mode === 'undefined' ? 0666 : mode;
|
799
|
-
if ((flags & {{{ cDefine('O_CREAT') }}})) {
|
800
|
-
mode = (mode & {{{ cDefine('S_IALLUGO') }}}) | {{{ cDefine('S_IFREG') }}};
|
801
|
-
} else {
|
802
|
-
mode = 0;
|
803
|
-
}
|
804
|
-
var node;
|
805
|
-
if (typeof path === 'object') {
|
806
|
-
node = path;
|
807
|
-
} else {
|
808
|
-
path = PATH.normalize(path);
|
809
|
-
try {
|
810
|
-
var lookup = FS.lookupPath(path, {
|
811
|
-
follow: !(flags & {{{ cDefine('O_NOFOLLOW') }}})
|
812
|
-
});
|
813
|
-
node = lookup.node;
|
814
|
-
} catch (e) {
|
815
|
-
// ignore
|
816
|
-
}
|
817
|
-
}
|
818
|
-
// perhaps we need to create the node
|
819
|
-
if ((flags & {{{ cDefine('O_CREAT') }}})) {
|
820
|
-
if (node) {
|
821
|
-
// if O_CREAT and O_EXCL are set, error out if the node already exists
|
822
|
-
if ((flags & {{{ cDefine('O_EXCL') }}})) {
|
823
|
-
throw new FS.ErrnoError(ERRNO_CODES.EEXIST);
|
824
|
-
}
|
825
|
-
} else {
|
826
|
-
// node doesn't exist, try to create it
|
827
|
-
node = FS.mknod(path, mode, 0);
|
828
|
-
}
|
829
|
-
}
|
830
|
-
if (!node) {
|
831
|
-
throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
|
832
|
-
}
|
833
|
-
// can't truncate a device
|
834
|
-
if (FS.isChrdev(node.mode)) {
|
835
|
-
flags &= ~{{{ cDefine('O_TRUNC') }}};
|
836
|
-
}
|
837
|
-
// check permissions
|
838
|
-
var err = FS.mayOpen(node, flags);
|
839
|
-
if (err) {
|
840
|
-
throw new FS.ErrnoError(err);
|
841
|
-
}
|
842
|
-
// do truncation if necessary
|
843
|
-
if ((flags & {{{ cDefine('O_TRUNC')}}})) {
|
844
|
-
FS.truncate(node, 0);
|
845
|
-
}
|
846
|
-
// we've already handled these, don't pass down to the underlying vfs
|
847
|
-
flags &= ~({{{ cDefine('O_EXCL') }}} | {{{ cDefine('O_TRUNC') }}});
|
848
|
-
|
849
|
-
// register the stream with the filesystem
|
850
|
-
var stream = FS.createStream({
|
851
|
-
node: node,
|
852
|
-
path: FS.getPath(node), // we want the absolute path to the node
|
853
|
-
flags: flags,
|
854
|
-
seekable: true,
|
855
|
-
position: 0,
|
856
|
-
stream_ops: node.stream_ops,
|
857
|
-
// used by the file family libc calls (fopen, fwrite, ferror, etc.)
|
858
|
-
ungotten: [],
|
859
|
-
error: false
|
860
|
-
}, fd_start, fd_end);
|
861
|
-
// call the new stream's open function
|
862
|
-
if (stream.stream_ops.open) {
|
863
|
-
stream.stream_ops.open(stream);
|
864
|
-
}
|
865
|
-
if (Module['logReadFiles'] && !(flags & {{{ cDefine('O_WRONLY')}}})) {
|
866
|
-
if (!FS.readFiles) FS.readFiles = {};
|
867
|
-
if (!(path in FS.readFiles)) {
|
868
|
-
FS.readFiles[path] = 1;
|
869
|
-
Module['printErr']('read file: ' + path);
|
870
|
-
}
|
871
|
-
}
|
872
|
-
return stream;
|
873
|
-
},
|
874
|
-
close: function(stream) {
|
875
|
-
try {
|
876
|
-
if (stream.stream_ops.close) {
|
877
|
-
stream.stream_ops.close(stream);
|
878
|
-
}
|
879
|
-
} catch (e) {
|
880
|
-
throw e;
|
881
|
-
} finally {
|
882
|
-
FS.closeStream(stream.fd);
|
883
|
-
}
|
884
|
-
},
|
885
|
-
llseek: function(stream, offset, whence) {
|
886
|
-
if (!stream.seekable || !stream.stream_ops.llseek) {
|
887
|
-
throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
|
888
|
-
}
|
889
|
-
return stream.stream_ops.llseek(stream, offset, whence);
|
890
|
-
},
|
891
|
-
read: function(stream, buffer, offset, length, position) {
|
892
|
-
if (length < 0 || position < 0) {
|
893
|
-
throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
|
894
|
-
}
|
895
|
-
if ((stream.flags & {{{ cDefine('O_ACCMODE') }}}) === {{{ cDefine('O_WRONLY')}}}) {
|
896
|
-
throw new FS.ErrnoError(ERRNO_CODES.EBADF);
|
897
|
-
}
|
898
|
-
if (FS.isDir(stream.node.mode)) {
|
899
|
-
throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
|
900
|
-
}
|
901
|
-
if (!stream.stream_ops.read) {
|
902
|
-
throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
|
903
|
-
}
|
904
|
-
var seeking = true;
|
905
|
-
if (typeof position === 'undefined') {
|
906
|
-
position = stream.position;
|
907
|
-
seeking = false;
|
908
|
-
} else if (!stream.seekable) {
|
909
|
-
throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
|
910
|
-
}
|
911
|
-
var bytesRead = stream.stream_ops.read(stream, buffer, offset, length, position);
|
912
|
-
if (!seeking) stream.position += bytesRead;
|
913
|
-
return bytesRead;
|
914
|
-
},
|
915
|
-
write: function(stream, buffer, offset, length, position, canOwn) {
|
916
|
-
if (length < 0 || position < 0) {
|
917
|
-
throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
|
918
|
-
}
|
919
|
-
if ((stream.flags & {{{ cDefine('O_ACCMODE') }}}) === {{{ cDefine('O_RDONLY')}}}) {
|
920
|
-
throw new FS.ErrnoError(ERRNO_CODES.EBADF);
|
921
|
-
}
|
922
|
-
if (FS.isDir(stream.node.mode)) {
|
923
|
-
throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
|
924
|
-
}
|
925
|
-
if (!stream.stream_ops.write) {
|
926
|
-
throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
|
927
|
-
}
|
928
|
-
var seeking = true;
|
929
|
-
if (typeof position === 'undefined') {
|
930
|
-
position = stream.position;
|
931
|
-
seeking = false;
|
932
|
-
} else if (!stream.seekable) {
|
933
|
-
throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
|
934
|
-
}
|
935
|
-
if (stream.flags & {{{ cDefine('O_APPEND') }}}) {
|
936
|
-
// seek to the end before writing in append mode
|
937
|
-
FS.llseek(stream, 0, {{{ cDefine('SEEK_END') }}});
|
938
|
-
}
|
939
|
-
var bytesWritten = stream.stream_ops.write(stream, buffer, offset, length, position, canOwn);
|
940
|
-
if (!seeking) stream.position += bytesWritten;
|
941
|
-
return bytesWritten;
|
942
|
-
},
|
943
|
-
allocate: function(stream, offset, length) {
|
944
|
-
if (offset < 0 || length <= 0) {
|
945
|
-
throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
|
946
|
-
}
|
947
|
-
if ((stream.flags & {{{ cDefine('O_ACCMODE') }}}) === {{{ cDefine('O_RDONLY')}}}) {
|
948
|
-
throw new FS.ErrnoError(ERRNO_CODES.EBADF);
|
949
|
-
}
|
950
|
-
if (!FS.isFile(stream.node.mode) && !FS.isDir(node.mode)) {
|
951
|
-
throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
|
952
|
-
}
|
953
|
-
if (!stream.stream_ops.allocate) {
|
954
|
-
throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP);
|
955
|
-
}
|
956
|
-
stream.stream_ops.allocate(stream, offset, length);
|
957
|
-
},
|
958
|
-
mmap: function(stream, buffer, offset, length, position, prot, flags) {
|
959
|
-
// TODO if PROT is PROT_WRITE, make sure we have write access
|
960
|
-
if ((stream.flags & {{{ cDefine('O_ACCMODE') }}}) === {{{ cDefine('O_WRONLY')}}}) {
|
961
|
-
throw new FS.ErrnoError(ERRNO_CODES.EACCES);
|
962
|
-
}
|
963
|
-
if (!stream.stream_ops.mmap) {
|
964
|
-
throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
|
965
|
-
}
|
966
|
-
return stream.stream_ops.mmap(stream, buffer, offset, length, position, prot, flags);
|
967
|
-
},
|
968
|
-
ioctl: function(stream, cmd, arg) {
|
969
|
-
if (!stream.stream_ops.ioctl) {
|
970
|
-
throw new FS.ErrnoError(ERRNO_CODES.ENOTTY);
|
971
|
-
}
|
972
|
-
return stream.stream_ops.ioctl(stream, cmd, arg);
|
973
|
-
},
|
974
|
-
readFile: function(path, opts) {
|
975
|
-
opts = opts || {};
|
976
|
-
opts.flags = opts.flags || 'r';
|
977
|
-
opts.encoding = opts.encoding || 'binary';
|
978
|
-
var ret;
|
979
|
-
var stream = FS.open(path, opts.flags);
|
980
|
-
var stat = FS.stat(path);
|
981
|
-
var length = stat.size;
|
982
|
-
var buf = new Uint8Array(length);
|
983
|
-
FS.read(stream, buf, 0, length, 0);
|
984
|
-
if (opts.encoding === 'utf8') {
|
985
|
-
ret = '';
|
986
|
-
var utf8 = new Runtime.UTF8Processor();
|
987
|
-
for (var i = 0; i < length; i++) {
|
988
|
-
ret += utf8.processCChar(buf[i]);
|
989
|
-
}
|
990
|
-
} else if (opts.encoding === 'binary') {
|
991
|
-
ret = buf;
|
992
|
-
} else {
|
993
|
-
throw new Error('Invalid encoding type "' + opts.encoding + '"');
|
994
|
-
}
|
995
|
-
FS.close(stream);
|
996
|
-
return ret;
|
997
|
-
},
|
998
|
-
writeFile: function(path, data, opts) {
|
999
|
-
opts = opts || {};
|
1000
|
-
opts.flags = opts.flags || 'w';
|
1001
|
-
opts.encoding = opts.encoding || 'utf8';
|
1002
|
-
var stream = FS.open(path, opts.flags, opts.mode);
|
1003
|
-
if (opts.encoding === 'utf8') {
|
1004
|
-
var utf8 = new Runtime.UTF8Processor();
|
1005
|
-
var buf = new Uint8Array(utf8.processJSString(data));
|
1006
|
-
FS.write(stream, buf, 0, buf.length, 0);
|
1007
|
-
} else if (opts.encoding === 'binary') {
|
1008
|
-
FS.write(stream, data, 0, data.length, 0);
|
1009
|
-
} else {
|
1010
|
-
throw new Error('Invalid encoding type "' + opts.encoding + '"');
|
1011
|
-
}
|
1012
|
-
FS.close(stream);
|
1013
|
-
},
|
1014
|
-
|
1015
|
-
//
|
1016
|
-
// module-level FS code
|
1017
|
-
//
|
1018
|
-
cwd: function() {
|
1019
|
-
return FS.currentPath;
|
1020
|
-
},
|
1021
|
-
chdir: function(path) {
|
1022
|
-
var lookup = FS.lookupPath(path, { follow: true });
|
1023
|
-
if (!FS.isDir(lookup.node.mode)) {
|
1024
|
-
throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
|
1025
|
-
}
|
1026
|
-
var err = FS.nodePermissions(lookup.node, 'x');
|
1027
|
-
if (err) {
|
1028
|
-
throw new FS.ErrnoError(err);
|
1029
|
-
}
|
1030
|
-
FS.currentPath = lookup.path;
|
1031
|
-
},
|
1032
|
-
createDefaultDirectories: function() {
|
1033
|
-
FS.mkdir('/tmp');
|
1034
|
-
},
|
1035
|
-
createDefaultDevices: function() {
|
1036
|
-
// create /dev
|
1037
|
-
FS.mkdir('/dev');
|
1038
|
-
// setup /dev/null
|
1039
|
-
FS.registerDevice(FS.makedev(1, 3), {
|
1040
|
-
read: function() { return 0; },
|
1041
|
-
write: function() { return 0; }
|
1042
|
-
});
|
1043
|
-
FS.mkdev('/dev/null', FS.makedev(1, 3));
|
1044
|
-
// setup /dev/tty and /dev/tty1
|
1045
|
-
// stderr needs to print output using Module['printErr']
|
1046
|
-
// so we register a second tty just for it.
|
1047
|
-
TTY.register(FS.makedev(5, 0), TTY.default_tty_ops);
|
1048
|
-
TTY.register(FS.makedev(6, 0), TTY.default_tty1_ops);
|
1049
|
-
FS.mkdev('/dev/tty', FS.makedev(5, 0));
|
1050
|
-
FS.mkdev('/dev/tty1', FS.makedev(6, 0));
|
1051
|
-
// we're not going to emulate the actual shm device,
|
1052
|
-
// just create the tmp dirs that reside in it commonly
|
1053
|
-
FS.mkdir('/dev/shm');
|
1054
|
-
FS.mkdir('/dev/shm/tmp');
|
1055
|
-
},
|
1056
|
-
createStandardStreams: function() {
|
1057
|
-
// TODO deprecate the old functionality of a single
|
1058
|
-
// input / output callback and that utilizes FS.createDevice
|
1059
|
-
// and instead require a unique set of stream ops
|
1060
|
-
|
1061
|
-
// by default, we symlink the standard streams to the
|
1062
|
-
// default tty devices. however, if the standard streams
|
1063
|
-
// have been overwritten we create a unique device for
|
1064
|
-
// them instead.
|
1065
|
-
if (Module['stdin']) {
|
1066
|
-
FS.createDevice('/dev', 'stdin', Module['stdin']);
|
1067
|
-
} else {
|
1068
|
-
FS.symlink('/dev/tty', '/dev/stdin');
|
1069
|
-
}
|
1070
|
-
if (Module['stdout']) {
|
1071
|
-
FS.createDevice('/dev', 'stdout', null, Module['stdout']);
|
1072
|
-
} else {
|
1073
|
-
FS.symlink('/dev/tty', '/dev/stdout');
|
1074
|
-
}
|
1075
|
-
if (Module['stderr']) {
|
1076
|
-
FS.createDevice('/dev', 'stderr', null, Module['stderr']);
|
1077
|
-
} else {
|
1078
|
-
FS.symlink('/dev/tty1', '/dev/stderr');
|
1079
|
-
}
|
1080
|
-
|
1081
|
-
// open default streams for the stdin, stdout and stderr devices
|
1082
|
-
var stdin = FS.open('/dev/stdin', 'r');
|
1083
|
-
{{{ makeSetValue(makeGlobalUse('_stdin'), 0, 'stdin.fd', 'void*') }}};
|
1084
|
-
assert(stdin.fd === 1, 'invalid handle for stdin (' + stdin.fd + ')');
|
1085
|
-
|
1086
|
-
var stdout = FS.open('/dev/stdout', 'w');
|
1087
|
-
{{{ makeSetValue(makeGlobalUse('_stdout'), 0, 'stdout.fd', 'void*') }}};
|
1088
|
-
assert(stdout.fd === 2, 'invalid handle for stdout (' + stdout.fd + ')');
|
1089
|
-
|
1090
|
-
var stderr = FS.open('/dev/stderr', 'w');
|
1091
|
-
{{{ makeSetValue(makeGlobalUse('_stderr'), 0, 'stderr.fd', 'void*') }}};
|
1092
|
-
assert(stderr.fd === 3, 'invalid handle for stderr (' + stderr.fd + ')');
|
1093
|
-
},
|
1094
|
-
ensureErrnoError: function() {
|
1095
|
-
if (FS.ErrnoError) return;
|
1096
|
-
FS.ErrnoError = function ErrnoError(errno) {
|
1097
|
-
this.errno = errno;
|
1098
|
-
for (var key in ERRNO_CODES) {
|
1099
|
-
if (ERRNO_CODES[key] === errno) {
|
1100
|
-
this.code = key;
|
1101
|
-
break;
|
1102
|
-
}
|
1103
|
-
}
|
1104
|
-
this.message = ERRNO_MESSAGES[errno];
|
1105
|
-
#if ASSERTIONS
|
1106
|
-
if (this.stack) this.stack = demangleAll(this.stack);
|
1107
|
-
#endif
|
1108
|
-
};
|
1109
|
-
FS.ErrnoError.prototype = new Error();
|
1110
|
-
FS.ErrnoError.prototype.constructor = FS.ErrnoError;
|
1111
|
-
// Some errors may happen quite a bit, to avoid overhead we reuse them (and suffer a lack of stack info)
|
1112
|
-
[ERRNO_CODES.ENOENT].forEach(function(code) {
|
1113
|
-
FS.genericErrors[code] = new FS.ErrnoError(code);
|
1114
|
-
FS.genericErrors[code].stack = '<generic error, no stack>';
|
1115
|
-
});
|
1116
|
-
},
|
1117
|
-
staticInit: function() {
|
1118
|
-
FS.ensureErrnoError();
|
1119
|
-
|
1120
|
-
FS.nameTable = new Array(4096);
|
1121
|
-
|
1122
|
-
FS.root = FS.createNode(null, '/', {{{ cDefine('S_IFDIR') }}} | 0777, 0);
|
1123
|
-
FS.mount(MEMFS, {}, '/');
|
1124
|
-
|
1125
|
-
FS.createDefaultDirectories();
|
1126
|
-
FS.createDefaultDevices();
|
1127
|
-
},
|
1128
|
-
init: function(input, output, error) {
|
1129
|
-
assert(!FS.init.initialized, 'FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)');
|
1130
|
-
FS.init.initialized = true;
|
1131
|
-
|
1132
|
-
FS.ensureErrnoError();
|
1133
|
-
|
1134
|
-
// Allow Module.stdin etc. to provide defaults, if none explicitly passed to us here
|
1135
|
-
Module['stdin'] = input || Module['stdin'];
|
1136
|
-
Module['stdout'] = output || Module['stdout'];
|
1137
|
-
Module['stderr'] = error || Module['stderr'];
|
1138
|
-
|
1139
|
-
FS.createStandardStreams();
|
1140
|
-
},
|
1141
|
-
quit: function() {
|
1142
|
-
FS.init.initialized = false;
|
1143
|
-
for (var i = 0; i < FS.streams.length; i++) {
|
1144
|
-
var stream = FS.streams[i];
|
1145
|
-
if (!stream) {
|
1146
|
-
continue;
|
1147
|
-
}
|
1148
|
-
FS.close(stream);
|
1149
|
-
}
|
1150
|
-
},
|
1151
|
-
|
1152
|
-
//
|
1153
|
-
// old v1 compatibility functions
|
1154
|
-
//
|
1155
|
-
getMode: function(canRead, canWrite) {
|
1156
|
-
var mode = 0;
|
1157
|
-
if (canRead) mode |= {{{ cDefine('S_IRUGO') }}} | {{{ cDefine('S_IXUGO') }}};
|
1158
|
-
if (canWrite) mode |= {{{ cDefine('S_IWUGO') }}};
|
1159
|
-
return mode;
|
1160
|
-
},
|
1161
|
-
joinPath: function(parts, forceRelative) {
|
1162
|
-
var path = PATH.join.apply(null, parts);
|
1163
|
-
if (forceRelative && path[0] == '/') path = path.substr(1);
|
1164
|
-
return path;
|
1165
|
-
},
|
1166
|
-
absolutePath: function(relative, base) {
|
1167
|
-
return PATH.resolve(base, relative);
|
1168
|
-
},
|
1169
|
-
standardizePath: function(path) {
|
1170
|
-
return PATH.normalize(path);
|
1171
|
-
},
|
1172
|
-
findObject: function(path, dontResolveLastLink) {
|
1173
|
-
var ret = FS.analyzePath(path, dontResolveLastLink);
|
1174
|
-
if (ret.exists) {
|
1175
|
-
return ret.object;
|
1176
|
-
} else {
|
1177
|
-
___setErrNo(ret.error);
|
1178
|
-
return null;
|
1179
|
-
}
|
1180
|
-
},
|
1181
|
-
analyzePath: function(path, dontResolveLastLink) {
|
1182
|
-
// operate from within the context of the symlink's target
|
1183
|
-
try {
|
1184
|
-
var lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
|
1185
|
-
path = lookup.path;
|
1186
|
-
} catch (e) {
|
1187
|
-
}
|
1188
|
-
var ret = {
|
1189
|
-
isRoot: false, exists: false, error: 0, name: null, path: null, object: null,
|
1190
|
-
parentExists: false, parentPath: null, parentObject: null
|
1191
|
-
};
|
1192
|
-
try {
|
1193
|
-
var lookup = FS.lookupPath(path, { parent: true });
|
1194
|
-
ret.parentExists = true;
|
1195
|
-
ret.parentPath = lookup.path;
|
1196
|
-
ret.parentObject = lookup.node;
|
1197
|
-
ret.name = PATH.basename(path);
|
1198
|
-
lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
|
1199
|
-
ret.exists = true;
|
1200
|
-
ret.path = lookup.path;
|
1201
|
-
ret.object = lookup.node;
|
1202
|
-
ret.name = lookup.node.name;
|
1203
|
-
ret.isRoot = lookup.path === '/';
|
1204
|
-
} catch (e) {
|
1205
|
-
ret.error = e.errno;
|
1206
|
-
};
|
1207
|
-
return ret;
|
1208
|
-
},
|
1209
|
-
createFolder: function(parent, name, canRead, canWrite) {
|
1210
|
-
var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
|
1211
|
-
var mode = FS.getMode(canRead, canWrite);
|
1212
|
-
return FS.mkdir(path, mode);
|
1213
|
-
},
|
1214
|
-
createPath: function(parent, path, canRead, canWrite) {
|
1215
|
-
parent = typeof parent === 'string' ? parent : FS.getPath(parent);
|
1216
|
-
var parts = path.split('/').reverse();
|
1217
|
-
while (parts.length) {
|
1218
|
-
var part = parts.pop();
|
1219
|
-
if (!part) continue;
|
1220
|
-
var current = PATH.join2(parent, part);
|
1221
|
-
try {
|
1222
|
-
FS.mkdir(current);
|
1223
|
-
} catch (e) {
|
1224
|
-
// ignore EEXIST
|
1225
|
-
}
|
1226
|
-
parent = current;
|
1227
|
-
}
|
1228
|
-
return current;
|
1229
|
-
},
|
1230
|
-
createFile: function(parent, name, properties, canRead, canWrite) {
|
1231
|
-
var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
|
1232
|
-
var mode = FS.getMode(canRead, canWrite);
|
1233
|
-
return FS.create(path, mode);
|
1234
|
-
},
|
1235
|
-
createDataFile: function(parent, name, data, canRead, canWrite, canOwn) {
|
1236
|
-
var path = name ? PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name) : parent;
|
1237
|
-
var mode = FS.getMode(canRead, canWrite);
|
1238
|
-
var node = FS.create(path, mode);
|
1239
|
-
if (data) {
|
1240
|
-
if (typeof data === 'string') {
|
1241
|
-
var arr = new Array(data.length);
|
1242
|
-
for (var i = 0, len = data.length; i < len; ++i) arr[i] = data.charCodeAt(i);
|
1243
|
-
data = arr;
|
1244
|
-
}
|
1245
|
-
// make sure we can write to the file
|
1246
|
-
FS.chmod(node, mode | {{{ cDefine('S_IWUGO') }}});
|
1247
|
-
var stream = FS.open(node, 'w');
|
1248
|
-
FS.write(stream, data, 0, data.length, 0, canOwn);
|
1249
|
-
FS.close(stream);
|
1250
|
-
FS.chmod(node, mode);
|
1251
|
-
}
|
1252
|
-
return node;
|
1253
|
-
},
|
1254
|
-
createDevice: function(parent, name, input, output) {
|
1255
|
-
var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
|
1256
|
-
var mode = FS.getMode(!!input, !!output);
|
1257
|
-
if (!FS.createDevice.major) FS.createDevice.major = 64;
|
1258
|
-
var dev = FS.makedev(FS.createDevice.major++, 0);
|
1259
|
-
// Create a fake device that a set of stream ops to emulate
|
1260
|
-
// the old behavior.
|
1261
|
-
FS.registerDevice(dev, {
|
1262
|
-
open: function(stream) {
|
1263
|
-
stream.seekable = false;
|
1264
|
-
},
|
1265
|
-
close: function(stream) {
|
1266
|
-
// flush any pending line data
|
1267
|
-
if (output && output.buffer && output.buffer.length) {
|
1268
|
-
output({{{ charCode('\n') }}});
|
1269
|
-
}
|
1270
|
-
},
|
1271
|
-
read: function(stream, buffer, offset, length, pos /* ignored */) {
|
1272
|
-
var bytesRead = 0;
|
1273
|
-
for (var i = 0; i < length; i++) {
|
1274
|
-
var result;
|
1275
|
-
try {
|
1276
|
-
result = input();
|
1277
|
-
} catch (e) {
|
1278
|
-
throw new FS.ErrnoError(ERRNO_CODES.EIO);
|
1279
|
-
}
|
1280
|
-
if (result === undefined && bytesRead === 0) {
|
1281
|
-
throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
|
1282
|
-
}
|
1283
|
-
if (result === null || result === undefined) break;
|
1284
|
-
bytesRead++;
|
1285
|
-
buffer[offset+i] = result;
|
1286
|
-
}
|
1287
|
-
if (bytesRead) {
|
1288
|
-
stream.node.timestamp = Date.now();
|
1289
|
-
}
|
1290
|
-
return bytesRead;
|
1291
|
-
},
|
1292
|
-
write: function(stream, buffer, offset, length, pos) {
|
1293
|
-
for (var i = 0; i < length; i++) {
|
1294
|
-
try {
|
1295
|
-
output(buffer[offset+i]);
|
1296
|
-
} catch (e) {
|
1297
|
-
throw new FS.ErrnoError(ERRNO_CODES.EIO);
|
1298
|
-
}
|
1299
|
-
}
|
1300
|
-
if (length) {
|
1301
|
-
stream.node.timestamp = Date.now();
|
1302
|
-
}
|
1303
|
-
return i;
|
1304
|
-
}
|
1305
|
-
});
|
1306
|
-
return FS.mkdev(path, mode, dev);
|
1307
|
-
},
|
1308
|
-
createLink: function(parent, name, target, canRead, canWrite) {
|
1309
|
-
var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
|
1310
|
-
return FS.symlink(target, path);
|
1311
|
-
},
|
1312
|
-
// Makes sure a file's contents are loaded. Returns whether the file has
|
1313
|
-
// been loaded successfully. No-op for files that have been loaded already.
|
1314
|
-
forceLoadFile: function(obj) {
|
1315
|
-
if (obj.isDevice || obj.isFolder || obj.link || obj.contents) return true;
|
1316
|
-
var success = true;
|
1317
|
-
if (typeof XMLHttpRequest !== 'undefined') {
|
1318
|
-
throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");
|
1319
|
-
} else if (Module['read']) {
|
1320
|
-
// Command-line.
|
1321
|
-
try {
|
1322
|
-
// WARNING: Can't read binary files in V8's d8 or tracemonkey's js, as
|
1323
|
-
// read() will try to parse UTF8.
|
1324
|
-
obj.contents = intArrayFromString(Module['read'](obj.url), true);
|
1325
|
-
} catch (e) {
|
1326
|
-
success = false;
|
1327
|
-
}
|
1328
|
-
} else {
|
1329
|
-
throw new Error('Cannot load without read() or XMLHttpRequest.');
|
1330
|
-
}
|
1331
|
-
if (!success) ___setErrNo(ERRNO_CODES.EIO);
|
1332
|
-
return success;
|
1333
|
-
},
|
1334
|
-
// Creates a file record for lazy-loading from a URL. XXX This requires a synchronous
|
1335
|
-
// XHR, which is not possible in browsers except in a web worker! Use preloading,
|
1336
|
-
// either --preload-file in emcc or FS.createPreloadedFile
|
1337
|
-
createLazyFile: function(parent, name, url, canRead, canWrite) {
|
1338
|
-
if (typeof XMLHttpRequest !== 'undefined') {
|
1339
|
-
if (!ENVIRONMENT_IS_WORKER) throw 'Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc';
|
1340
|
-
// Lazy chunked Uint8Array (implements get and length from Uint8Array). Actual getting is abstracted away for eventual reuse.
|
1341
|
-
function LazyUint8Array() {
|
1342
|
-
this.lengthKnown = false;
|
1343
|
-
this.chunks = []; // Loaded chunks. Index is the chunk number
|
1344
|
-
}
|
1345
|
-
LazyUint8Array.prototype.get = function LazyUint8Array_get(idx) {
|
1346
|
-
if (idx > this.length-1 || idx < 0) {
|
1347
|
-
return undefined;
|
1348
|
-
}
|
1349
|
-
var chunkOffset = idx % this.chunkSize;
|
1350
|
-
var chunkNum = Math.floor(idx / this.chunkSize);
|
1351
|
-
return this.getter(chunkNum)[chunkOffset];
|
1352
|
-
}
|
1353
|
-
LazyUint8Array.prototype.setDataGetter = function LazyUint8Array_setDataGetter(getter) {
|
1354
|
-
this.getter = getter;
|
1355
|
-
}
|
1356
|
-
LazyUint8Array.prototype.cacheLength = function LazyUint8Array_cacheLength() {
|
1357
|
-
// Find length
|
1358
|
-
var xhr = new XMLHttpRequest();
|
1359
|
-
xhr.open('HEAD', url, false);
|
1360
|
-
xhr.send(null);
|
1361
|
-
if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
|
1362
|
-
var datalength = Number(xhr.getResponseHeader("Content-length"));
|
1363
|
-
var header;
|
1364
|
-
var hasByteServing = (header = xhr.getResponseHeader("Accept-Ranges")) && header === "bytes";
|
1365
|
-
#if SMALL_XHR_CHUNKS
|
1366
|
-
var chunkSize = 1024; // Chunk size in bytes
|
1367
|
-
#else
|
1368
|
-
var chunkSize = 1024*1024; // Chunk size in bytes
|
1369
|
-
#endif
|
1370
|
-
|
1371
|
-
if (!hasByteServing) chunkSize = datalength;
|
1372
|
-
|
1373
|
-
// Function to get a range from the remote URL.
|
1374
|
-
var doXHR = (function(from, to) {
|
1375
|
-
if (from > to) throw new Error("invalid range (" + from + ", " + to + ") or no bytes requested!");
|
1376
|
-
if (to > datalength-1) throw new Error("only " + datalength + " bytes available! programmer error!");
|
1377
|
-
|
1378
|
-
// TODO: Use mozResponseArrayBuffer, responseStream, etc. if available.
|
1379
|
-
var xhr = new XMLHttpRequest();
|
1380
|
-
xhr.open('GET', url, false);
|
1381
|
-
if (datalength !== chunkSize) xhr.setRequestHeader("Range", "bytes=" + from + "-" + to);
|
1382
|
-
|
1383
|
-
// Some hints to the browser that we want binary data.
|
1384
|
-
if (typeof Uint8Array != 'undefined') xhr.responseType = 'arraybuffer';
|
1385
|
-
if (xhr.overrideMimeType) {
|
1386
|
-
xhr.overrideMimeType('text/plain; charset=x-user-defined');
|
1387
|
-
}
|
1388
|
-
|
1389
|
-
xhr.send(null);
|
1390
|
-
if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
|
1391
|
-
if (xhr.response !== undefined) {
|
1392
|
-
return new Uint8Array(xhr.response || []);
|
1393
|
-
} else {
|
1394
|
-
return intArrayFromString(xhr.responseText || '', true);
|
1395
|
-
}
|
1396
|
-
});
|
1397
|
-
var lazyArray = this;
|
1398
|
-
lazyArray.setDataGetter(function(chunkNum) {
|
1399
|
-
var start = chunkNum * chunkSize;
|
1400
|
-
var end = (chunkNum+1) * chunkSize - 1; // including this byte
|
1401
|
-
end = Math.min(end, datalength-1); // if datalength-1 is selected, this is the last block
|
1402
|
-
if (typeof(lazyArray.chunks[chunkNum]) === "undefined") {
|
1403
|
-
lazyArray.chunks[chunkNum] = doXHR(start, end);
|
1404
|
-
}
|
1405
|
-
if (typeof(lazyArray.chunks[chunkNum]) === "undefined") throw new Error("doXHR failed!");
|
1406
|
-
return lazyArray.chunks[chunkNum];
|
1407
|
-
});
|
1408
|
-
|
1409
|
-
this._length = datalength;
|
1410
|
-
this._chunkSize = chunkSize;
|
1411
|
-
this.lengthKnown = true;
|
1412
|
-
}
|
1413
|
-
|
1414
|
-
var lazyArray = new LazyUint8Array();
|
1415
|
-
Object.defineProperty(lazyArray, "length", {
|
1416
|
-
get: function() {
|
1417
|
-
if(!this.lengthKnown) {
|
1418
|
-
this.cacheLength();
|
1419
|
-
}
|
1420
|
-
return this._length;
|
1421
|
-
}
|
1422
|
-
});
|
1423
|
-
Object.defineProperty(lazyArray, "chunkSize", {
|
1424
|
-
get: function() {
|
1425
|
-
if(!this.lengthKnown) {
|
1426
|
-
this.cacheLength();
|
1427
|
-
}
|
1428
|
-
return this._chunkSize;
|
1429
|
-
}
|
1430
|
-
});
|
1431
|
-
|
1432
|
-
var properties = { isDevice: false, contents: lazyArray };
|
1433
|
-
} else {
|
1434
|
-
var properties = { isDevice: false, url: url };
|
1435
|
-
}
|
1436
|
-
|
1437
|
-
var node = FS.createFile(parent, name, properties, canRead, canWrite);
|
1438
|
-
// This is a total hack, but I want to get this lazy file code out of the
|
1439
|
-
// core of MEMFS. If we want to keep this lazy file concept I feel it should
|
1440
|
-
// be its own thin LAZYFS proxying calls to MEMFS.
|
1441
|
-
if (properties.contents) {
|
1442
|
-
node.contents = properties.contents;
|
1443
|
-
} else if (properties.url) {
|
1444
|
-
node.contents = null;
|
1445
|
-
node.url = properties.url;
|
1446
|
-
}
|
1447
|
-
// override each stream op with one that tries to force load the lazy file first
|
1448
|
-
var stream_ops = {};
|
1449
|
-
var keys = Object.keys(node.stream_ops);
|
1450
|
-
keys.forEach(function(key) {
|
1451
|
-
var fn = node.stream_ops[key];
|
1452
|
-
stream_ops[key] = function forceLoadLazyFile() {
|
1453
|
-
if (!FS.forceLoadFile(node)) {
|
1454
|
-
throw new FS.ErrnoError(ERRNO_CODES.EIO);
|
1455
|
-
}
|
1456
|
-
return fn.apply(null, arguments);
|
1457
|
-
};
|
1458
|
-
});
|
1459
|
-
// use a custom read function
|
1460
|
-
stream_ops.read = function stream_ops_read(stream, buffer, offset, length, position) {
|
1461
|
-
if (!FS.forceLoadFile(node)) {
|
1462
|
-
throw new FS.ErrnoError(ERRNO_CODES.EIO);
|
1463
|
-
}
|
1464
|
-
var contents = stream.node.contents;
|
1465
|
-
if (position >= contents.length)
|
1466
|
-
return 0;
|
1467
|
-
var size = Math.min(contents.length - position, length);
|
1468
|
-
assert(size >= 0);
|
1469
|
-
if (contents.slice) { // normal array
|
1470
|
-
for (var i = 0; i < size; i++) {
|
1471
|
-
buffer[offset + i] = contents[position + i];
|
1472
|
-
}
|
1473
|
-
} else {
|
1474
|
-
for (var i = 0; i < size; i++) { // LazyUint8Array from sync binary XHR
|
1475
|
-
buffer[offset + i] = contents.get(position + i);
|
1476
|
-
}
|
1477
|
-
}
|
1478
|
-
return size;
|
1479
|
-
};
|
1480
|
-
node.stream_ops = stream_ops;
|
1481
|
-
return node;
|
1482
|
-
},
|
1483
|
-
// Preloads a file asynchronously. You can call this before run, for example in
|
1484
|
-
// preRun. run will be delayed until this file arrives and is set up.
|
1485
|
-
// If you call it after run(), you may want to pause the main loop until it
|
1486
|
-
// completes, if so, you can use the onload parameter to be notified when
|
1487
|
-
// that happens.
|
1488
|
-
// In addition to normally creating the file, we also asynchronously preload
|
1489
|
-
// the browser-friendly versions of it: For an image, we preload an Image
|
1490
|
-
// element and for an audio, and Audio. These are necessary for SDL_Image
|
1491
|
-
// and _Mixer to find the files in preloadedImages/Audios.
|
1492
|
-
// You can also call this with a typed array instead of a url. It will then
|
1493
|
-
// do preloading for the Image/Audio part, as if the typed array were the
|
1494
|
-
// result of an XHR that you did manually.
|
1495
|
-
createPreloadedFile: function(parent, name, url, canRead, canWrite, onload, onerror, dontCreateFile, canOwn) {
|
1496
|
-
Browser.init();
|
1497
|
-
// TODO we should allow people to just pass in a complete filename instead
|
1498
|
-
// of parent and name being that we just join them anyways
|
1499
|
-
var fullname = name ? PATH.resolve(PATH.join2(parent, name)) : parent;
|
1500
|
-
function processData(byteArray) {
|
1501
|
-
function finish(byteArray) {
|
1502
|
-
if (!dontCreateFile) {
|
1503
|
-
FS.createDataFile(parent, name, byteArray, canRead, canWrite, canOwn);
|
1504
|
-
}
|
1505
|
-
if (onload) onload();
|
1506
|
-
removeRunDependency('cp ' + fullname);
|
1507
|
-
}
|
1508
|
-
var handled = false;
|
1509
|
-
Module['preloadPlugins'].forEach(function(plugin) {
|
1510
|
-
if (handled) return;
|
1511
|
-
if (plugin['canHandle'](fullname)) {
|
1512
|
-
plugin['handle'](byteArray, fullname, finish, function() {
|
1513
|
-
if (onerror) onerror();
|
1514
|
-
removeRunDependency('cp ' + fullname);
|
1515
|
-
});
|
1516
|
-
handled = true;
|
1517
|
-
}
|
1518
|
-
});
|
1519
|
-
if (!handled) finish(byteArray);
|
1520
|
-
}
|
1521
|
-
addRunDependency('cp ' + fullname);
|
1522
|
-
if (typeof url == 'string') {
|
1523
|
-
Browser.asyncLoad(url, function(byteArray) {
|
1524
|
-
processData(byteArray);
|
1525
|
-
}, onerror);
|
1526
|
-
} else {
|
1527
|
-
processData(url);
|
1528
|
-
}
|
1529
|
-
},
|
1530
|
-
|
1531
|
-
//
|
1532
|
-
// persistence
|
1533
|
-
//
|
1534
|
-
indexedDB: function() {
|
1535
|
-
return window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
|
1536
|
-
},
|
1537
|
-
|
1538
|
-
DB_NAME: function() {
|
1539
|
-
return 'EM_FS_' + window.location.pathname;
|
1540
|
-
},
|
1541
|
-
DB_VERSION: 20,
|
1542
|
-
DB_STORE_NAME: 'FILE_DATA',
|
1543
|
-
|
1544
|
-
// asynchronously saves a list of files to an IndexedDB. The DB will be created if not already existing.
|
1545
|
-
saveFilesToDB: function(paths, onload, onerror) {
|
1546
|
-
onload = onload || function(){};
|
1547
|
-
onerror = onerror || function(){};
|
1548
|
-
var indexedDB = FS.indexedDB();
|
1549
|
-
try {
|
1550
|
-
var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
|
1551
|
-
} catch (e) {
|
1552
|
-
return onerror(e);
|
1553
|
-
}
|
1554
|
-
openRequest.onupgradeneeded = function openRequest_onupgradeneeded() {
|
1555
|
-
console.log('creating db');
|
1556
|
-
var db = openRequest.result;
|
1557
|
-
db.createObjectStore(FS.DB_STORE_NAME);
|
1558
|
-
};
|
1559
|
-
openRequest.onsuccess = function openRequest_onsuccess() {
|
1560
|
-
var db = openRequest.result;
|
1561
|
-
var transaction = db.transaction([FS.DB_STORE_NAME], 'readwrite');
|
1562
|
-
var files = transaction.objectStore(FS.DB_STORE_NAME);
|
1563
|
-
var ok = 0, fail = 0, total = paths.length;
|
1564
|
-
function finish() {
|
1565
|
-
if (fail == 0) onload(); else onerror();
|
1566
|
-
}
|
1567
|
-
paths.forEach(function(path) {
|
1568
|
-
var putRequest = files.put(FS.analyzePath(path).object.contents, path);
|
1569
|
-
putRequest.onsuccess = function putRequest_onsuccess() { ok++; if (ok + fail == total) finish() };
|
1570
|
-
putRequest.onerror = function putRequest_onerror() { fail++; if (ok + fail == total) finish() };
|
1571
|
-
});
|
1572
|
-
transaction.onerror = onerror;
|
1573
|
-
};
|
1574
|
-
openRequest.onerror = onerror;
|
1575
|
-
},
|
1576
|
-
|
1577
|
-
// asychronously loads a file from IndexedDB.
|
1578
|
-
loadFilesFromDB: function(paths, onload, onerror) {
|
1579
|
-
onload = onload || function(){};
|
1580
|
-
onerror = onerror || function(){};
|
1581
|
-
var indexedDB = FS.indexedDB();
|
1582
|
-
try {
|
1583
|
-
var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
|
1584
|
-
} catch (e) {
|
1585
|
-
return onerror(e);
|
1586
|
-
}
|
1587
|
-
openRequest.onupgradeneeded = onerror; // no database to load from
|
1588
|
-
openRequest.onsuccess = function openRequest_onsuccess() {
|
1589
|
-
var db = openRequest.result;
|
1590
|
-
try {
|
1591
|
-
var transaction = db.transaction([FS.DB_STORE_NAME], 'readonly');
|
1592
|
-
} catch(e) {
|
1593
|
-
onerror(e);
|
1594
|
-
return;
|
1595
|
-
}
|
1596
|
-
var files = transaction.objectStore(FS.DB_STORE_NAME);
|
1597
|
-
var ok = 0, fail = 0, total = paths.length;
|
1598
|
-
function finish() {
|
1599
|
-
if (fail == 0) onload(); else onerror();
|
1600
|
-
}
|
1601
|
-
paths.forEach(function(path) {
|
1602
|
-
var getRequest = files.get(path);
|
1603
|
-
getRequest.onsuccess = function getRequest_onsuccess() {
|
1604
|
-
if (FS.analyzePath(path).exists) {
|
1605
|
-
FS.unlink(path);
|
1606
|
-
}
|
1607
|
-
FS.createDataFile(PATH.dirname(path), PATH.basename(path), getRequest.result, true, true, true);
|
1608
|
-
ok++;
|
1609
|
-
if (ok + fail == total) finish();
|
1610
|
-
};
|
1611
|
-
getRequest.onerror = function getRequest_onerror() { fail++; if (ok + fail == total) finish() };
|
1612
|
-
});
|
1613
|
-
transaction.onerror = onerror;
|
1614
|
-
};
|
1615
|
-
openRequest.onerror = onerror;
|
1616
|
-
}
|
1617
|
-
}
|
1618
|
-
});
|
1619
|
-
|