mt-libuv 4.1.0 → 4.1.03
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/ext/Rakefile +1 -1
- data/ext/gyp/.gitignore +1 -0
- data/ext/gyp/AUTHORS +17 -0
- data/ext/gyp/DEPS +23 -0
- data/ext/gyp/LICENSE +27 -0
- data/ext/gyp/OWNERS +1 -0
- data/ext/gyp/PRESUBMIT.py +125 -0
- data/ext/gyp/README.md +5 -0
- data/ext/gyp/buildbot/buildbot_run.py +138 -0
- data/ext/gyp/buildbot/commit_queue/OWNERS +6 -0
- data/ext/gyp/buildbot/commit_queue/README +3 -0
- data/ext/gyp/buildbot/commit_queue/cq_config.json +15 -0
- data/ext/gyp/buildbot/travis-checkout.sh +27 -0
- data/ext/gyp/buildbot/travis-test.sh +12 -0
- data/ext/gyp/codereview.settings +6 -0
- data/ext/gyp/data/win/large-pdb-shim.cc +12 -0
- data/ext/gyp/gyp +8 -0
- data/ext/gyp/gyp.bat +5 -0
- data/ext/gyp/gyp_main.py +16 -0
- data/ext/gyp/gyptest.py +243 -0
- data/ext/gyp/pylib/gyp/MSVSNew.py +353 -0
- data/ext/gyp/pylib/gyp/MSVSProject.py +208 -0
- data/ext/gyp/pylib/gyp/MSVSSettings.py +1106 -0
- data/ext/gyp/pylib/gyp/MSVSSettings_test.py +1486 -0
- data/ext/gyp/pylib/gyp/MSVSToolFile.py +58 -0
- data/ext/gyp/pylib/gyp/MSVSUserFile.py +147 -0
- data/ext/gyp/pylib/gyp/MSVSUtil.py +271 -0
- data/ext/gyp/pylib/gyp/MSVSVersion.py +504 -0
- data/ext/gyp/pylib/gyp/__init__.py +555 -0
- data/ext/gyp/pylib/gyp/common.py +619 -0
- data/ext/gyp/pylib/gyp/common_test.py +73 -0
- data/ext/gyp/pylib/gyp/easy_xml.py +170 -0
- data/ext/gyp/pylib/gyp/easy_xml_test.py +106 -0
- data/ext/gyp/pylib/gyp/flock_tool.py +54 -0
- data/ext/gyp/pylib/gyp/generator/__init__.py +0 -0
- data/ext/gyp/pylib/gyp/generator/analyzer.py +744 -0
- data/ext/gyp/pylib/gyp/generator/cmake.py +1256 -0
- data/ext/gyp/pylib/gyp/generator/dump_dependency_json.py +101 -0
- data/ext/gyp/pylib/gyp/generator/eclipse.py +425 -0
- data/ext/gyp/pylib/gyp/generator/gypd.py +94 -0
- data/ext/gyp/pylib/gyp/generator/gypsh.py +56 -0
- data/ext/gyp/pylib/gyp/generator/make.py +2260 -0
- data/ext/gyp/pylib/gyp/generator/msvs.py +3537 -0
- data/ext/gyp/pylib/gyp/generator/msvs_test.py +40 -0
- data/ext/gyp/pylib/gyp/generator/ninja.py +2500 -0
- data/ext/gyp/pylib/gyp/generator/ninja_test.py +46 -0
- data/ext/gyp/pylib/gyp/generator/xcode.py +1302 -0
- data/ext/gyp/pylib/gyp/generator/xcode_test.py +23 -0
- data/ext/gyp/pylib/gyp/input.py +2908 -0
- data/ext/gyp/pylib/gyp/input_test.py +90 -0
- data/ext/gyp/pylib/gyp/mac_tool.py +721 -0
- data/ext/gyp/pylib/gyp/msvs_emulation.py +1112 -0
- data/ext/gyp/pylib/gyp/ninja_syntax.py +168 -0
- data/ext/gyp/pylib/gyp/simple_copy.py +57 -0
- data/ext/gyp/pylib/gyp/win_tool.py +326 -0
- data/ext/gyp/pylib/gyp/xcode_emulation.py +1800 -0
- data/ext/gyp/pylib/gyp/xcode_ninja.py +289 -0
- data/ext/gyp/pylib/gyp/xcodeproj_file.py +2995 -0
- data/ext/gyp/pylib/gyp/xml_fix.py +68 -0
- data/ext/gyp/samples/samples +83 -0
- data/ext/gyp/samples/samples.bat +5 -0
- data/ext/gyp/setup.py +19 -0
- data/ext/gyp/test/actions/generated-header/action.py +11 -0
- data/ext/gyp/test/actions/generated-header/main.cc +7 -0
- data/ext/gyp/test/actions/generated-header/test.gyp +34 -0
- data/ext/gyp/test/actions/gyptest-all.py +101 -0
- data/ext/gyp/test/actions/gyptest-default.py +68 -0
- data/ext/gyp/test/actions/gyptest-errors.py +24 -0
- data/ext/gyp/test/actions/gyptest-generated-header.py +38 -0
- data/ext/gyp/test/actions/src/action_missing_name.gyp +24 -0
- data/ext/gyp/test/actions/src/actions.gyp +114 -0
- data/ext/gyp/test/actions/src/confirm-dep-files.py +21 -0
- data/ext/gyp/test/actions/src/subdir1/counter.py +44 -0
- data/ext/gyp/test/actions/src/subdir1/executable.gyp +74 -0
- data/ext/gyp/test/actions/src/subdir1/make-prog1.py +20 -0
- data/ext/gyp/test/actions/src/subdir1/make-prog2.py +20 -0
- data/ext/gyp/test/actions/src/subdir1/program.c +12 -0
- data/ext/gyp/test/actions/src/subdir2/make-file.py +11 -0
- data/ext/gyp/test/actions/src/subdir2/none.gyp +33 -0
- data/ext/gyp/test/actions/src/subdir3/generate_main.py +21 -0
- data/ext/gyp/test/actions/src/subdir3/null_input.gyp +29 -0
- data/ext/gyp/test/actions-bare/gyptest-bare.py +24 -0
- data/ext/gyp/test/actions-bare/src/bare.gyp +25 -0
- data/ext/gyp/test/actions-bare/src/bare.py +11 -0
- data/ext/gyp/test/actions-depfile/depfile.gyp +42 -0
- data/ext/gyp/test/actions-depfile/gyptest-all.py +30 -0
- data/ext/gyp/test/actions-depfile/input.txt +1 -0
- data/ext/gyp/test/actions-depfile/touch.py +18 -0
- data/ext/gyp/test/actions-multiple/gyptest-all.py +72 -0
- data/ext/gyp/test/actions-multiple/src/actions.gyp +226 -0
- data/ext/gyp/test/actions-multiple/src/copyfile.py +9 -0
- data/ext/gyp/test/actions-multiple/src/filter.py +12 -0
- data/ext/gyp/test/actions-multiple/src/foo.c +11 -0
- data/ext/gyp/test/actions-multiple/src/input.txt +1 -0
- data/ext/gyp/test/actions-multiple/src/main.c +22 -0
- data/ext/gyp/test/actions-multiple-outputs/gyptest-multiple-outputs.py +45 -0
- data/ext/gyp/test/actions-multiple-outputs/src/multiple-outputs.gyp +23 -0
- data/ext/gyp/test/actions-multiple-outputs/src/touch.py +16 -0
- data/ext/gyp/test/actions-multiple-outputs-with-dependencies/gyptest-action.py +45 -0
- data/ext/gyp/test/actions-multiple-outputs-with-dependencies/src/action.gyp +28 -0
- data/ext/gyp/test/actions-multiple-outputs-with-dependencies/src/rcopy.py +20 -0
- data/ext/gyp/test/actions-none/gyptest-none.py +24 -0
- data/ext/gyp/test/actions-none/src/fake_cross.py +12 -0
- data/ext/gyp/test/actions-none/src/foo.cc +1 -0
- data/ext/gyp/test/actions-none/src/none_with_source_files.gyp +35 -0
- data/ext/gyp/test/actions-subdir/gyptest-action.py +26 -0
- data/ext/gyp/test/actions-subdir/src/make-file.py +11 -0
- data/ext/gyp/test/actions-subdir/src/none.gyp +31 -0
- data/ext/gyp/test/actions-subdir/src/subdir/make-subdir-file.py +11 -0
- data/ext/gyp/test/actions-subdir/src/subdir/subdir.gyp +28 -0
- data/ext/gyp/test/additional-targets/gyptest-additional.py +63 -0
- data/ext/gyp/test/additional-targets/src/all.gyp +13 -0
- data/ext/gyp/test/additional-targets/src/dir1/actions.gyp +56 -0
- data/ext/gyp/test/additional-targets/src/dir1/emit.py +11 -0
- data/ext/gyp/test/additional-targets/src/dir1/lib1.c +6 -0
- data/ext/gyp/test/analyzer/common.gypi +6 -0
- data/ext/gyp/test/analyzer/gyptest-analyzer.py +427 -0
- data/ext/gyp/test/analyzer/static_library_test.gyp +34 -0
- data/ext/gyp/test/analyzer/subdir/subdir.gyp +36 -0
- data/ext/gyp/test/analyzer/subdir/subdir2/subdir2.gyp +15 -0
- data/ext/gyp/test/analyzer/subdir2/subdir.gyp +18 -0
- data/ext/gyp/test/analyzer/subdir2/subdir.includes.gypi +9 -0
- data/ext/gyp/test/analyzer/test.gyp +114 -0
- data/ext/gyp/test/analyzer/test2.gyp +25 -0
- data/ext/gyp/test/analyzer/test2.includes.gypi +13 -0
- data/ext/gyp/test/analyzer/test2.includes.includes.gypi +9 -0
- data/ext/gyp/test/analyzer/test2.toplevel_includes.gypi +15 -0
- data/ext/gyp/test/analyzer/test3.gyp +77 -0
- data/ext/gyp/test/analyzer/test4.gyp +80 -0
- data/ext/gyp/test/analyzer/test5.gyp +25 -0
- data/ext/gyp/test/arflags/gyptest-arflags.py +26 -0
- data/ext/gyp/test/arflags/lib.cc +0 -0
- data/ext/gyp/test/arflags/test.gyp +10 -0
- data/ext/gyp/test/assembly/gyptest-assembly.py +31 -0
- data/ext/gyp/test/assembly/gyptest-override.py +24 -0
- data/ext/gyp/test/assembly/src/as.bat +4 -0
- data/ext/gyp/test/assembly/src/assembly.gyp +62 -0
- data/ext/gyp/test/assembly/src/lib1.S +15 -0
- data/ext/gyp/test/assembly/src/lib1.c +3 -0
- data/ext/gyp/test/assembly/src/override.gyp +34 -0
- data/ext/gyp/test/assembly/src/override_asm.asm +8 -0
- data/ext/gyp/test/assembly/src/program.c +12 -0
- data/ext/gyp/test/build-option/gyptest-build.py +27 -0
- data/ext/gyp/test/build-option/hello.c +13 -0
- data/ext/gyp/test/build-option/hello.gyp +15 -0
- data/ext/gyp/test/builddir/gyptest-all.py +85 -0
- data/ext/gyp/test/builddir/gyptest-default.py +85 -0
- data/ext/gyp/test/builddir/src/builddir.gypi +18 -0
- data/ext/gyp/test/builddir/src/func1.c +6 -0
- data/ext/gyp/test/builddir/src/func2.c +6 -0
- data/ext/gyp/test/builddir/src/func3.c +6 -0
- data/ext/gyp/test/builddir/src/func4.c +6 -0
- data/ext/gyp/test/builddir/src/func5.c +6 -0
- data/ext/gyp/test/builddir/src/prog1.c +10 -0
- data/ext/gyp/test/builddir/src/prog1.gyp +30 -0
- data/ext/gyp/test/builddir/src/subdir2/prog2.c +10 -0
- data/ext/gyp/test/builddir/src/subdir2/prog2.gyp +19 -0
- data/ext/gyp/test/builddir/src/subdir2/subdir3/prog3.c +10 -0
- data/ext/gyp/test/builddir/src/subdir2/subdir3/prog3.gyp +19 -0
- data/ext/gyp/test/builddir/src/subdir2/subdir3/subdir4/prog4.c +10 -0
- data/ext/gyp/test/builddir/src/subdir2/subdir3/subdir4/prog4.gyp +19 -0
- data/ext/gyp/test/builddir/src/subdir2/subdir3/subdir4/subdir5/prog5.c +10 -0
- data/ext/gyp/test/builddir/src/subdir2/subdir3/subdir4/subdir5/prog5.gyp +19 -0
- data/ext/gyp/test/cflags/cflags.c +15 -0
- data/ext/gyp/test/cflags/cflags.gyp +23 -0
- data/ext/gyp/test/cflags/gyptest-cflags.py +75 -0
- data/ext/gyp/test/compilable/gyptest-headers.py +29 -0
- data/ext/gyp/test/compilable/src/headers.gyp +26 -0
- data/ext/gyp/test/compilable/src/lib1.cpp +7 -0
- data/ext/gyp/test/compilable/src/lib1.hpp +6 -0
- data/ext/gyp/test/compilable/src/program.cpp +9 -0
- data/ext/gyp/test/compiler-override/compiler-exe.gyp +16 -0
- data/ext/gyp/test/compiler-override/compiler-global-settings.gyp.in +34 -0
- data/ext/gyp/test/compiler-override/compiler-host.gyp +17 -0
- data/ext/gyp/test/compiler-override/compiler-shared-lib.gyp +16 -0
- data/ext/gyp/test/compiler-override/cxxtest.cc +7 -0
- data/ext/gyp/test/compiler-override/gyptest-compiler-env-toolchain.py +78 -0
- data/ext/gyp/test/compiler-override/gyptest-compiler-env.py +110 -0
- data/ext/gyp/test/compiler-override/gyptest-compiler-global-settings.py +82 -0
- data/ext/gyp/test/compiler-override/my_cc.py +7 -0
- data/ext/gyp/test/compiler-override/my_cxx.py +7 -0
- data/ext/gyp/test/compiler-override/my_ld.py +7 -0
- data/ext/gyp/test/compiler-override/my_nm.py +9 -0
- data/ext/gyp/test/compiler-override/my_readelf.py +9 -0
- data/ext/gyp/test/compiler-override/test.c +7 -0
- data/ext/gyp/test/conditions/elseif/elseif.gyp +43 -0
- data/ext/gyp/test/conditions/elseif/elseif_bad1.gyp +20 -0
- data/ext/gyp/test/conditions/elseif/elseif_bad2.gyp +22 -0
- data/ext/gyp/test/conditions/elseif/elseif_bad3.gyp +23 -0
- data/ext/gyp/test/conditions/elseif/elseif_conditions.gypi +15 -0
- data/ext/gyp/test/conditions/elseif/gyptest_elseif.py +33 -0
- data/ext/gyp/test/conditions/elseif/program.cc +10 -0
- data/ext/gyp/test/configurations/basics/configurations.c +15 -0
- data/ext/gyp/test/configurations/basics/configurations.gyp +32 -0
- data/ext/gyp/test/configurations/basics/gyptest-configurations.py +29 -0
- data/ext/gyp/test/configurations/inheritance/configurations.c +21 -0
- data/ext/gyp/test/configurations/inheritance/configurations.gyp +40 -0
- data/ext/gyp/test/configurations/inheritance/duplicates.gyp +27 -0
- data/ext/gyp/test/configurations/inheritance/duplicates.gypd.golden +12 -0
- data/ext/gyp/test/configurations/inheritance/gyptest-duplicates.py +36 -0
- data/ext/gyp/test/configurations/inheritance/gyptest-inheritance.py +33 -0
- data/ext/gyp/test/configurations/invalid/actions.gyp +18 -0
- data/ext/gyp/test/configurations/invalid/all_dependent_settings.gyp +18 -0
- data/ext/gyp/test/configurations/invalid/configurations.gyp +18 -0
- data/ext/gyp/test/configurations/invalid/dependencies.gyp +18 -0
- data/ext/gyp/test/configurations/invalid/direct_dependent_settings.gyp +18 -0
- data/ext/gyp/test/configurations/invalid/gyptest-configurations.py +36 -0
- data/ext/gyp/test/configurations/invalid/libraries.gyp +18 -0
- data/ext/gyp/test/configurations/invalid/link_settings.gyp +18 -0
- data/ext/gyp/test/configurations/invalid/sources.gyp +18 -0
- data/ext/gyp/test/configurations/invalid/standalone_static_library.gyp +17 -0
- data/ext/gyp/test/configurations/invalid/target_name.gyp +18 -0
- data/ext/gyp/test/configurations/invalid/type.gyp +18 -0
- data/ext/gyp/test/configurations/target_platform/configurations.gyp +58 -0
- data/ext/gyp/test/configurations/target_platform/front.c +8 -0
- data/ext/gyp/test/configurations/target_platform/gyptest-target_platform.py +40 -0
- data/ext/gyp/test/configurations/target_platform/left.c +3 -0
- data/ext/gyp/test/configurations/target_platform/right.c +3 -0
- data/ext/gyp/test/configurations/x64/configurations.c +12 -0
- data/ext/gyp/test/configurations/x64/configurations.gyp +38 -0
- data/ext/gyp/test/configurations/x64/gyptest-x86.py +31 -0
- data/ext/gyp/test/copies/gyptest-all.py +42 -0
- data/ext/gyp/test/copies/gyptest-attribs.py +41 -0
- data/ext/gyp/test/copies/gyptest-default.py +42 -0
- data/ext/gyp/test/copies/gyptest-samedir.py +28 -0
- data/ext/gyp/test/copies/gyptest-slash.py +39 -0
- data/ext/gyp/test/copies/gyptest-sourceless-shared-lib.py +20 -0
- data/ext/gyp/test/copies/gyptest-updir.py +32 -0
- data/ext/gyp/test/copies/src/copies-attribs.gyp +20 -0
- data/ext/gyp/test/copies/src/copies-samedir.gyp +37 -0
- data/ext/gyp/test/copies/src/copies-slash.gyp +36 -0
- data/ext/gyp/test/copies/src/copies-sourceless-shared-lib.gyp +27 -0
- data/ext/gyp/test/copies/src/copies-updir.gyp +21 -0
- data/ext/gyp/test/copies/src/copies.gyp +70 -0
- data/ext/gyp/test/copies/src/directory/file3 +1 -0
- data/ext/gyp/test/copies/src/directory/file4 +1 -0
- data/ext/gyp/test/copies/src/directory/subdir/file5 +1 -0
- data/ext/gyp/test/copies/src/executable-file.sh +3 -0
- data/ext/gyp/test/copies/src/file1 +1 -0
- data/ext/gyp/test/copies/src/file2 +1 -0
- data/ext/gyp/test/copies/src/foo.c +13 -0
- data/ext/gyp/test/copies/src/parentdir/subdir/file6 +1 -0
- data/ext/gyp/test/custom-generator/gyptest-custom-generator.py +18 -0
- data/ext/gyp/test/custom-generator/mygenerator.py +14 -0
- data/ext/gyp/test/custom-generator/test.gyp +15 -0
- data/ext/gyp/test/cxxflags/cxxflags.cc +15 -0
- data/ext/gyp/test/cxxflags/cxxflags.gyp +15 -0
- data/ext/gyp/test/cxxflags/gyptest-cxxflags.py +45 -0
- data/ext/gyp/test/defines/defines-env.gyp +22 -0
- data/ext/gyp/test/defines/defines.c +23 -0
- data/ext/gyp/test/defines/defines.gyp +38 -0
- data/ext/gyp/test/defines/gyptest-define-override.py +43 -0
- data/ext/gyp/test/defines/gyptest-defines-env-regyp.py +51 -0
- data/ext/gyp/test/defines/gyptest-defines-env.py +85 -0
- data/ext/gyp/test/defines/gyptest-defines.py +39 -0
- data/ext/gyp/test/defines-escaping/defines-escaping.c +11 -0
- data/ext/gyp/test/defines-escaping/defines-escaping.gyp +19 -0
- data/ext/gyp/test/defines-escaping/gyptest-defines-escaping.py +184 -0
- data/ext/gyp/test/dependencies/a.c +9 -0
- data/ext/gyp/test/dependencies/adso/all_dependent_settings_order.gyp +45 -0
- data/ext/gyp/test/dependencies/adso/write_args.py +11 -0
- data/ext/gyp/test/dependencies/b/b.c +3 -0
- data/ext/gyp/test/dependencies/b/b.gyp +22 -0
- data/ext/gyp/test/dependencies/b/b3.c +9 -0
- data/ext/gyp/test/dependencies/c/c.c +4 -0
- data/ext/gyp/test/dependencies/c/c.gyp +22 -0
- data/ext/gyp/test/dependencies/c/d.c +3 -0
- data/ext/gyp/test/dependencies/double_dependency.gyp +23 -0
- data/ext/gyp/test/dependencies/double_dependent.gyp +12 -0
- data/ext/gyp/test/dependencies/extra_targets.gyp +18 -0
- data/ext/gyp/test/dependencies/gyptest-all-dependent-settings-order.py +19 -0
- data/ext/gyp/test/dependencies/gyptest-double-dependency.py +19 -0
- data/ext/gyp/test/dependencies/gyptest-extra-targets.py +22 -0
- data/ext/gyp/test/dependencies/gyptest-indirect-module-dependency.py +22 -0
- data/ext/gyp/test/dependencies/gyptest-lib-only.py +39 -0
- data/ext/gyp/test/dependencies/gyptest-none-traversal.py +25 -0
- data/ext/gyp/test/dependencies/gyptest-sharedlib-linksettings.py +21 -0
- data/ext/gyp/test/dependencies/lib_only.gyp +16 -0
- data/ext/gyp/test/dependencies/main.c +14 -0
- data/ext/gyp/test/dependencies/module-dep/a.cc +7 -0
- data/ext/gyp/test/dependencies/module-dep/dll.cc +9 -0
- data/ext/gyp/test/dependencies/module-dep/exe.cc +7 -0
- data/ext/gyp/test/dependencies/module-dep/indirect-module-dependency.gyp +37 -0
- data/ext/gyp/test/dependencies/none_traversal.gyp +46 -0
- data/ext/gyp/test/dependencies/sharedlib-linksettings/program.c +25 -0
- data/ext/gyp/test/dependencies/sharedlib-linksettings/sharedlib.c +16 -0
- data/ext/gyp/test/dependencies/sharedlib-linksettings/staticlib.c +24 -0
- data/ext/gyp/test/dependencies/sharedlib-linksettings/test.gyp +37 -0
- data/ext/gyp/test/dependency-copy/gyptest-copy.py +26 -0
- data/ext/gyp/test/dependency-copy/src/copies.gyp +25 -0
- data/ext/gyp/test/dependency-copy/src/file1.c +7 -0
- data/ext/gyp/test/dependency-copy/src/file2.c +7 -0
- data/ext/gyp/test/dependent-settings/nested-dependent-settings/all-dependent-settings.gyp +19 -0
- data/ext/gyp/test/dependent-settings/nested-dependent-settings/direct-dependent-settings.gyp +19 -0
- data/ext/gyp/test/dependent-settings/nested-dependent-settings/gyptest-nested-dependent-settings.py +18 -0
- data/ext/gyp/test/determinism/determinism.gyp +59 -0
- data/ext/gyp/test/determinism/empty-targets.gyp +32 -0
- data/ext/gyp/test/determinism/gyptest-determinism.py +30 -0
- data/ext/gyp/test/determinism/gyptest-empty-target-names.py +30 -0
- data/ext/gyp/test/determinism/gyptest-needed-variables.py +30 -0
- data/ext/gyp/test/determinism/gyptest-solibs.py +37 -0
- data/ext/gyp/test/determinism/main.cc +5 -0
- data/ext/gyp/test/determinism/needed-variables.gyp +33 -0
- data/ext/gyp/test/determinism/rule.py +8 -0
- data/ext/gyp/test/determinism/solib.cc +8 -0
- data/ext/gyp/test/determinism/solibs.gyp +32 -0
- data/ext/gyp/test/empty-target/empty-target.gyp +12 -0
- data/ext/gyp/test/empty-target/gyptest-empty-target.py +18 -0
- data/ext/gyp/test/errors/dependency_cycle.gyp +23 -0
- data/ext/gyp/test/errors/duplicate_basenames.gyp +13 -0
- data/ext/gyp/test/errors/duplicate_node.gyp +12 -0
- data/ext/gyp/test/errors/duplicate_rule.gyp +22 -0
- data/ext/gyp/test/errors/duplicate_targets.gyp +14 -0
- data/ext/gyp/test/errors/error_command.gyp +12 -0
- data/ext/gyp/test/errors/file_cycle0.gyp +17 -0
- data/ext/gyp/test/errors/file_cycle1.gyp +13 -0
- data/ext/gyp/test/errors/gyptest-errors.py +80 -0
- data/ext/gyp/test/errors/missing_command.gyp +12 -0
- data/ext/gyp/test/errors/missing_dep.gyp +15 -0
- data/ext/gyp/test/errors/missing_targets.gyp +8 -0
- data/ext/gyp/test/escaping/colon/test.gyp +21 -0
- data/ext/gyp/test/escaping/gyptest-colon.py +51 -0
- data/ext/gyp/test/exclusion/exclusion.gyp +23 -0
- data/ext/gyp/test/exclusion/gyptest-exclusion.py +22 -0
- data/ext/gyp/test/exclusion/hello.c +15 -0
- data/ext/gyp/test/external-cross-compile/gyptest-cross.py +31 -0
- data/ext/gyp/test/external-cross-compile/src/bogus1.cc +1 -0
- data/ext/gyp/test/external-cross-compile/src/bogus2.c +1 -0
- data/ext/gyp/test/external-cross-compile/src/cross.gyp +83 -0
- data/ext/gyp/test/external-cross-compile/src/cross_compile.gypi +23 -0
- data/ext/gyp/test/external-cross-compile/src/fake_cross.py +18 -0
- data/ext/gyp/test/external-cross-compile/src/program.cc +16 -0
- data/ext/gyp/test/external-cross-compile/src/test1.cc +1 -0
- data/ext/gyp/test/external-cross-compile/src/test2.c +1 -0
- data/ext/gyp/test/external-cross-compile/src/test3.cc +1 -0
- data/ext/gyp/test/external-cross-compile/src/test4.c +1 -0
- data/ext/gyp/test/external-cross-compile/src/tochar.py +13 -0
- data/ext/gyp/test/generator-output/actions/actions.gyp +16 -0
- data/ext/gyp/test/generator-output/actions/build/README.txt +4 -0
- data/ext/gyp/test/generator-output/actions/subdir1/actions-out/README.txt +4 -0
- data/ext/gyp/test/generator-output/actions/subdir1/build/README.txt +4 -0
- data/ext/gyp/test/generator-output/actions/subdir1/executable.gyp +44 -0
- data/ext/gyp/test/generator-output/actions/subdir1/make-prog1.py +20 -0
- data/ext/gyp/test/generator-output/actions/subdir1/make-prog2.py +20 -0
- data/ext/gyp/test/generator-output/actions/subdir1/program.c +12 -0
- data/ext/gyp/test/generator-output/actions/subdir2/actions-out/README.txt +4 -0
- data/ext/gyp/test/generator-output/actions/subdir2/build/README.txt +4 -0
- data/ext/gyp/test/generator-output/actions/subdir2/make-file.py +11 -0
- data/ext/gyp/test/generator-output/actions/subdir2/none.gyp +31 -0
- data/ext/gyp/test/generator-output/copies/build/README.txt +4 -0
- data/ext/gyp/test/generator-output/copies/copies-out/README.txt +4 -0
- data/ext/gyp/test/generator-output/copies/copies.gyp +50 -0
- data/ext/gyp/test/generator-output/copies/file1 +1 -0
- data/ext/gyp/test/generator-output/copies/file2 +1 -0
- data/ext/gyp/test/generator-output/copies/subdir/build/README.txt +4 -0
- data/ext/gyp/test/generator-output/copies/subdir/copies-out/README.txt +4 -0
- data/ext/gyp/test/generator-output/copies/subdir/file3 +1 -0
- data/ext/gyp/test/generator-output/copies/subdir/file4 +1 -0
- data/ext/gyp/test/generator-output/copies/subdir/subdir.gyp +32 -0
- data/ext/gyp/test/generator-output/gyptest-actions.py +57 -0
- data/ext/gyp/test/generator-output/gyptest-copies.py +59 -0
- data/ext/gyp/test/generator-output/gyptest-depth.py +58 -0
- data/ext/gyp/test/generator-output/gyptest-mac-bundle.py +33 -0
- data/ext/gyp/test/generator-output/gyptest-relocate.py +59 -0
- data/ext/gyp/test/generator-output/gyptest-rules.py +58 -0
- data/ext/gyp/test/generator-output/gyptest-subdir2-deep.py +36 -0
- data/ext/gyp/test/generator-output/gyptest-symlink.py +44 -0
- data/ext/gyp/test/generator-output/gyptest-top-all.py +53 -0
- data/ext/gyp/test/generator-output/mac-bundle/Info.plist +32 -0
- data/ext/gyp/test/generator-output/mac-bundle/app.order +1 -0
- data/ext/gyp/test/generator-output/mac-bundle/header.h +1 -0
- data/ext/gyp/test/generator-output/mac-bundle/main.c +1 -0
- data/ext/gyp/test/generator-output/mac-bundle/resource.sb +1 -0
- data/ext/gyp/test/generator-output/mac-bundle/test.gyp +25 -0
- data/ext/gyp/test/generator-output/rules/build/README.txt +4 -0
- data/ext/gyp/test/generator-output/rules/copy-file.py +12 -0
- data/ext/gyp/test/generator-output/rules/rules.gyp +16 -0
- data/ext/gyp/test/generator-output/rules/subdir1/build/README.txt +4 -0
- data/ext/gyp/test/generator-output/rules/subdir1/define3.in0 +1 -0
- data/ext/gyp/test/generator-output/rules/subdir1/define4.in0 +1 -0
- data/ext/gyp/test/generator-output/rules/subdir1/executable.gyp +59 -0
- data/ext/gyp/test/generator-output/rules/subdir1/function1.in1 +6 -0
- data/ext/gyp/test/generator-output/rules/subdir1/function2.in1 +6 -0
- data/ext/gyp/test/generator-output/rules/subdir1/program.c +18 -0
- data/ext/gyp/test/generator-output/rules/subdir2/build/README.txt +4 -0
- data/ext/gyp/test/generator-output/rules/subdir2/file1.in0 +1 -0
- data/ext/gyp/test/generator-output/rules/subdir2/file2.in0 +1 -0
- data/ext/gyp/test/generator-output/rules/subdir2/file3.in1 +1 -0
- data/ext/gyp/test/generator-output/rules/subdir2/file4.in1 +1 -0
- data/ext/gyp/test/generator-output/rules/subdir2/none.gyp +49 -0
- data/ext/gyp/test/generator-output/rules/subdir2/rules-out/README.txt +4 -0
- data/ext/gyp/test/generator-output/src/build/README.txt +4 -0
- data/ext/gyp/test/generator-output/src/inc.h +1 -0
- data/ext/gyp/test/generator-output/src/inc1/include1.h +1 -0
- data/ext/gyp/test/generator-output/src/prog1.c +18 -0
- data/ext/gyp/test/generator-output/src/prog1.gyp +28 -0
- data/ext/gyp/test/generator-output/src/subdir2/build/README.txt +4 -0
- data/ext/gyp/test/generator-output/src/subdir2/deeper/build/README.txt +4 -0
- data/ext/gyp/test/generator-output/src/subdir2/deeper/deeper.c +7 -0
- data/ext/gyp/test/generator-output/src/subdir2/deeper/deeper.gyp +18 -0
- data/ext/gyp/test/generator-output/src/subdir2/deeper/deeper.h +1 -0
- data/ext/gyp/test/generator-output/src/subdir2/inc2/include2.h +1 -0
- data/ext/gyp/test/generator-output/src/subdir2/prog2.c +18 -0
- data/ext/gyp/test/generator-output/src/subdir2/prog2.gyp +28 -0
- data/ext/gyp/test/generator-output/src/subdir3/build/README.txt +4 -0
- data/ext/gyp/test/generator-output/src/subdir3/inc3/include3.h +1 -0
- data/ext/gyp/test/generator-output/src/subdir3/prog3.c +18 -0
- data/ext/gyp/test/generator-output/src/subdir3/prog3.gyp +25 -0
- data/ext/gyp/test/generator-output/src/symroot.gypi +16 -0
- data/ext/gyp/test/gyp-defines/defines.gyp +26 -0
- data/ext/gyp/test/gyp-defines/echo.py +11 -0
- data/ext/gyp/test/gyp-defines/gyptest-multiple-values.py +36 -0
- data/ext/gyp/test/gyp-defines/gyptest-regyp.py +40 -0
- data/ext/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py +37 -0
- data/ext/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py +36 -0
- data/ext/gyp/test/hard_dependency/src/a.c +9 -0
- data/ext/gyp/test/hard_dependency/src/a.h +12 -0
- data/ext/gyp/test/hard_dependency/src/b.c +9 -0
- data/ext/gyp/test/hard_dependency/src/b.h +12 -0
- data/ext/gyp/test/hard_dependency/src/c.c +10 -0
- data/ext/gyp/test/hard_dependency/src/c.h +10 -0
- data/ext/gyp/test/hard_dependency/src/d.c +9 -0
- data/ext/gyp/test/hard_dependency/src/emit.py +11 -0
- data/ext/gyp/test/hard_dependency/src/hard_dependency.gyp +78 -0
- data/ext/gyp/test/hello/gyptest-all.py +24 -0
- data/ext/gyp/test/hello/gyptest-default.py +24 -0
- data/ext/gyp/test/hello/gyptest-disable-regyp.py +32 -0
- data/ext/gyp/test/hello/gyptest-regyp-output.py +36 -0
- data/ext/gyp/test/hello/gyptest-regyp.py +32 -0
- data/ext/gyp/test/hello/gyptest-target.py +24 -0
- data/ext/gyp/test/hello/hello.c +11 -0
- data/ext/gyp/test/hello/hello.gyp +15 -0
- data/ext/gyp/test/hello/hello2.c +11 -0
- data/ext/gyp/test/hello/hello2.gyp +15 -0
- data/ext/gyp/test/home_dot_gyp/gyptest-home-includes-config-arg.py +31 -0
- data/ext/gyp/test/home_dot_gyp/gyptest-home-includes-config-env.py +33 -0
- data/ext/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py +44 -0
- data/ext/gyp/test/home_dot_gyp/gyptest-home-includes.py +30 -0
- data/ext/gyp/test/home_dot_gyp/home/.gyp/include.gypi +5 -0
- data/ext/gyp/test/home_dot_gyp/home2/.gyp/include.gypi +5 -0
- data/ext/gyp/test/home_dot_gyp/home2/.gyp_new/include.gypi +5 -0
- data/ext/gyp/test/home_dot_gyp/src/all.gyp +22 -0
- data/ext/gyp/test/home_dot_gyp/src/printfoo.c +7 -0
- data/ext/gyp/test/include_dirs/gyptest-all.py +43 -0
- data/ext/gyp/test/include_dirs/gyptest-default.py +43 -0
- data/ext/gyp/test/include_dirs/src/inc.h +1 -0
- data/ext/gyp/test/include_dirs/src/inc1/include1.h +1 -0
- data/ext/gyp/test/include_dirs/src/includes.c +19 -0
- data/ext/gyp/test/include_dirs/src/includes.gyp +27 -0
- data/ext/gyp/test/include_dirs/src/shadow1/shadow.h +1 -0
- data/ext/gyp/test/include_dirs/src/shadow2/shadow.h +1 -0
- data/ext/gyp/test/include_dirs/src/subdir/inc.h +1 -0
- data/ext/gyp/test/include_dirs/src/subdir/inc2/include2.h +1 -0
- data/ext/gyp/test/include_dirs/src/subdir/subdir_includes.c +14 -0
- data/ext/gyp/test/include_dirs/src/subdir/subdir_includes.gyp +20 -0
- data/ext/gyp/test/intermediate_dir/gyptest-intermediate-dir.py +44 -0
- data/ext/gyp/test/intermediate_dir/src/script.py +22 -0
- data/ext/gyp/test/intermediate_dir/src/shared_infile.txt +1 -0
- data/ext/gyp/test/intermediate_dir/src/test.gyp +42 -0
- data/ext/gyp/test/intermediate_dir/src/test2.gyp +42 -0
- data/ext/gyp/test/ios/app-bundle/TestApp/English.lproj/InfoPlist-error.strings +3 -0
- data/ext/gyp/test/ios/app-bundle/TestApp/English.lproj/InfoPlist.strings +3 -0
- data/ext/gyp/test/ios/app-bundle/TestApp/English.lproj/LanguageMap.plist +8 -0
- data/ext/gyp/test/ios/app-bundle/TestApp/English.lproj/MainMenu.xib +17 -0
- data/ext/gyp/test/ios/app-bundle/TestApp/English.lproj/Main_iPhone.storyboard +27 -0
- data/ext/gyp/test/ios/app-bundle/TestApp/Images.xcassets/AppIcon.appiconset/Contents.json +58 -0
- data/ext/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/Contents.json +23 -0
- data/ext/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain.png +0 -0
- data/ext/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@2x.png +0 -0
- data/ext/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@3x.png +0 -0
- data/ext/gyp/test/ios/app-bundle/TestApp/TestApp-Info.plist +28 -0
- data/ext/gyp/test/ios/app-bundle/TestApp/check_no_signature.py +13 -0
- data/ext/gyp/test/ios/app-bundle/TestApp/main.m +13 -0
- data/ext/gyp/test/ios/app-bundle/TestApp/only-compile-in-32-bits.m +7 -0
- data/ext/gyp/test/ios/app-bundle/TestApp/only-compile-in-64-bits.m +7 -0
- data/ext/gyp/test/ios/app-bundle/test-archs.gyp +109 -0
- data/ext/gyp/test/ios/app-bundle/test-assets-catalog.gyp +45 -0
- data/ext/gyp/test/ios/app-bundle/test-crosscompile.gyp +47 -0
- data/ext/gyp/test/ios/app-bundle/test-device.gyp +109 -0
- data/ext/gyp/test/ios/app-bundle/test.gyp +75 -0
- data/ext/gyp/test/ios/app-bundle/tool_main.cc +7 -0
- data/ext/gyp/test/ios/copies-with-xcode-envvars/Info.plist +24 -0
- data/ext/gyp/test/ios/copies-with-xcode-envvars/copies-with-xcode-envvars.gyp +97 -0
- data/ext/gyp/test/ios/copies-with-xcode-envvars/empty.c +1 -0
- data/ext/gyp/test/ios/copies-with-xcode-envvars/file0 +1 -0
- data/ext/gyp/test/ios/copies-with-xcode-envvars/file1 +1 -0
- data/ext/gyp/test/ios/copies-with-xcode-envvars/file10 +1 -0
- data/ext/gyp/test/ios/copies-with-xcode-envvars/file11 +1 -0
- data/ext/gyp/test/ios/copies-with-xcode-envvars/file2 +1 -0
- data/ext/gyp/test/ios/copies-with-xcode-envvars/file3 +1 -0
- data/ext/gyp/test/ios/copies-with-xcode-envvars/file4 +1 -0
- data/ext/gyp/test/ios/copies-with-xcode-envvars/file5 +1 -0
- data/ext/gyp/test/ios/copies-with-xcode-envvars/file6 +1 -0
- data/ext/gyp/test/ios/copies-with-xcode-envvars/file7 +1 -0
- data/ext/gyp/test/ios/copies-with-xcode-envvars/file8 +1 -0
- data/ext/gyp/test/ios/copies-with-xcode-envvars/file9 +1 -0
- data/ext/gyp/test/ios/deployment-target/check-version-min.c +33 -0
- data/ext/gyp/test/ios/deployment-target/deployment-target.gyp +34 -0
- data/ext/gyp/test/ios/extension/ActionExtension/ActionViewController.h +9 -0
- data/ext/gyp/test/ios/extension/ActionExtension/ActionViewController.m +31 -0
- data/ext/gyp/test/ios/extension/ActionExtension/Info.plist +42 -0
- data/ext/gyp/test/ios/extension/ActionExtension/MainInterface.storyboard +63 -0
- data/ext/gyp/test/ios/extension/ExtensionContainer/AppDelegate.h +12 -0
- data/ext/gyp/test/ios/extension/ExtensionContainer/AppDelegate.m +19 -0
- data/ext/gyp/test/ios/extension/ExtensionContainer/Base.lproj/Main.storyboard +25 -0
- data/ext/gyp/test/ios/extension/ExtensionContainer/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- data/ext/gyp/test/ios/extension/ExtensionContainer/Images.xcassets/LaunchImage.launchimage/Contents.json +51 -0
- data/ext/gyp/test/ios/extension/ExtensionContainer/Info.plist +32 -0
- data/ext/gyp/test/ios/extension/ExtensionContainer/ViewController.h +11 -0
- data/ext/gyp/test/ios/extension/ExtensionContainer/ViewController.m +24 -0
- data/ext/gyp/test/ios/extension/ExtensionContainer/main.m +13 -0
- data/ext/gyp/test/ios/extension/extension.gyp +91 -0
- data/ext/gyp/test/ios/framework/framework.gyp +43 -0
- data/ext/gyp/test/ios/framework/iOSFramework/Info.plist +26 -0
- data/ext/gyp/test/ios/framework/iOSFramework/Thing.h +10 -0
- data/ext/gyp/test/ios/framework/iOSFramework/Thing.m +22 -0
- data/ext/gyp/test/ios/framework/iOSFramework/iOSFramework.h +9 -0
- data/ext/gyp/test/ios/gyptest-app-ios-assets-catalog.py +57 -0
- data/ext/gyp/test/ios/gyptest-app-ios.py +76 -0
- data/ext/gyp/test/ios/gyptest-archs.py +62 -0
- data/ext/gyp/test/ios/gyptest-copies-with-xcode-envvars.py +65 -0
- data/ext/gyp/test/ios/gyptest-crosscompile.py +34 -0
- data/ext/gyp/test/ios/gyptest-deployment-target.py +23 -0
- data/ext/gyp/test/ios/gyptest-extension.py +51 -0
- data/ext/gyp/test/ios/gyptest-framework.py +37 -0
- data/ext/gyp/test/ios/gyptest-per-config-settings.py +190 -0
- data/ext/gyp/test/ios/gyptest-watch.py +44 -0
- data/ext/gyp/test/ios/gyptest-xcode-ninja.py +25 -0
- data/ext/gyp/test/ios/watch/WatchApp/Images.xcassets/AppIcon.appiconset/Contents.json +62 -0
- data/ext/gyp/test/ios/watch/WatchApp/Images.xcassets/LaunchImage.launchimage/Contents.json +24 -0
- data/ext/gyp/test/ios/watch/WatchApp/Info.plist +35 -0
- data/ext/gyp/test/ios/watch/WatchApp/Interface.storyboard +15 -0
- data/ext/gyp/test/ios/watch/WatchContainer/AppDelegate.h +12 -0
- data/ext/gyp/test/ios/watch/WatchContainer/AppDelegate.m +19 -0
- data/ext/gyp/test/ios/watch/WatchContainer/Base.lproj/Main.storyboard +25 -0
- data/ext/gyp/test/ios/watch/WatchContainer/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- data/ext/gyp/test/ios/watch/WatchContainer/Images.xcassets/LaunchImage.launchimage/Contents.json +51 -0
- data/ext/gyp/test/ios/watch/WatchContainer/Info.plist +32 -0
- data/ext/gyp/test/ios/watch/WatchContainer/ViewController.h +11 -0
- data/ext/gyp/test/ios/watch/WatchContainer/ViewController.m +24 -0
- data/ext/gyp/test/ios/watch/WatchContainer/main.m +13 -0
- data/ext/gyp/test/ios/watch/WatchKitExtension/Images.xcassets/MyImage.imageset/Contents.json +20 -0
- data/ext/gyp/test/ios/watch/WatchKitExtension/Info.plist +38 -0
- data/ext/gyp/test/ios/watch/WatchKitExtension/InterfaceController.h +10 -0
- data/ext/gyp/test/ios/watch/WatchKitExtension/InterfaceController.m +25 -0
- data/ext/gyp/test/ios/watch/WatchKitExtension/MainInterface.storyboard +63 -0
- data/ext/gyp/test/ios/watch/watch.gyp +105 -0
- data/ext/gyp/test/ios/xctests/App/AppDelegate.h +11 -0
- data/ext/gyp/test/ios/xctests/App/AppDelegate.m +18 -0
- data/ext/gyp/test/ios/xctests/App/Base.lproj/LaunchScreen.xib +41 -0
- data/ext/gyp/test/ios/xctests/App/Base.lproj/Main.storyboard +25 -0
- data/ext/gyp/test/ios/xctests/App/Images.xcassets/AppIcon.appiconset/Contents.json +68 -0
- data/ext/gyp/test/ios/xctests/App/Info.plist +47 -0
- data/ext/gyp/test/ios/xctests/App/ViewController.h +9 -0
- data/ext/gyp/test/ios/xctests/App/ViewController.m +21 -0
- data/ext/gyp/test/ios/xctests/App/main.m +13 -0
- data/ext/gyp/test/ios/xctests/AppTests/AppTests.m +31 -0
- data/ext/gyp/test/ios/xctests/AppTests/Info.plist +24 -0
- data/ext/gyp/test/ios/xctests/gyptest-xctests.py +49 -0
- data/ext/gyp/test/ios/xctests/xctests.gyp +74 -0
- data/ext/gyp/test/lib/README.txt +17 -0
- data/ext/gyp/test/lib/TestCmd.py +1597 -0
- data/ext/gyp/test/lib/TestCommon.py +591 -0
- data/ext/gyp/test/lib/TestGyp.py +1259 -0
- data/ext/gyp/test/lib/TestMac.py +76 -0
- data/ext/gyp/test/lib/TestWin.py +101 -0
- data/ext/gyp/test/library/gyptest-shared-obj-install-path.py +39 -0
- data/ext/gyp/test/library/gyptest-shared.py +84 -0
- data/ext/gyp/test/library/gyptest-static.py +84 -0
- data/ext/gyp/test/library/src/lib1.c +10 -0
- data/ext/gyp/test/library/src/lib1_moveable.c +10 -0
- data/ext/gyp/test/library/src/lib2.c +10 -0
- data/ext/gyp/test/library/src/lib2_moveable.c +10 -0
- data/ext/gyp/test/library/src/library.gyp +58 -0
- data/ext/gyp/test/library/src/program.c +15 -0
- data/ext/gyp/test/library/src/shared_dependency.gyp +33 -0
- data/ext/gyp/test/library_dirs/gyptest-library-dirs.py +50 -0
- data/ext/gyp/test/library_dirs/subdir/README.txt +1 -0
- data/ext/gyp/test/library_dirs/subdir/hello.cc +11 -0
- data/ext/gyp/test/library_dirs/subdir/mylib.cc +9 -0
- data/ext/gyp/test/library_dirs/subdir/mylib.h +12 -0
- data/ext/gyp/test/library_dirs/subdir/test-win.gyp +60 -0
- data/ext/gyp/test/library_dirs/subdir/test.gyp +68 -0
- data/ext/gyp/test/link-dependency/gyptest-link-dependency.py +23 -0
- data/ext/gyp/test/link-dependency/main.c +7 -0
- data/ext/gyp/test/link-dependency/mymalloc.c +12 -0
- data/ext/gyp/test/link-dependency/test.gyp +37 -0
- data/ext/gyp/test/link-objects/base.c +6 -0
- data/ext/gyp/test/link-objects/extra.c +5 -0
- data/ext/gyp/test/link-objects/gyptest-all.py +28 -0
- data/ext/gyp/test/link-objects/link-objects.gyp +24 -0
- data/ext/gyp/test/linux/gyptest-implicit-rpath.py +48 -0
- data/ext/gyp/test/linux/gyptest-ldflags-duplicates.py +22 -0
- data/ext/gyp/test/linux/gyptest-ldflags-from-environment.py +45 -0
- data/ext/gyp/test/linux/gyptest-target-rpath.py +43 -0
- data/ext/gyp/test/linux/implicit-rpath/file.c +1 -0
- data/ext/gyp/test/linux/implicit-rpath/main.c +1 -0
- data/ext/gyp/test/linux/implicit-rpath/test.gyp +47 -0
- data/ext/gyp/test/linux/ldflags-duplicates/check-ldflags.py +28 -0
- data/ext/gyp/test/linux/ldflags-duplicates/lib1.c +6 -0
- data/ext/gyp/test/linux/ldflags-duplicates/lib2.c +6 -0
- data/ext/gyp/test/linux/ldflags-duplicates/main.c +7 -0
- data/ext/gyp/test/linux/ldflags-duplicates/test.gyp +45 -0
- data/ext/gyp/test/linux/ldflags-from-environment/main.c +7 -0
- data/ext/gyp/test/linux/ldflags-from-environment/test.gyp +23 -0
- data/ext/gyp/test/linux/target-rpath/file.c +1 -0
- data/ext/gyp/test/linux/target-rpath/main.c +1 -0
- data/ext/gyp/test/linux/target-rpath/test.gyp +47 -0
- data/ext/gyp/test/mac/action-envvars/action/action.gyp +34 -0
- data/ext/gyp/test/mac/action-envvars/action/action.sh +8 -0
- data/ext/gyp/test/mac/app-bundle/TestApp/English.lproj/InfoPlist-error.strings +3 -0
- data/ext/gyp/test/mac/app-bundle/TestApp/English.lproj/InfoPlist.strings +3 -0
- data/ext/gyp/test/mac/app-bundle/TestApp/English.lproj/MainMenu.xib +4119 -0
- data/ext/gyp/test/mac/app-bundle/TestApp/English.lproj/utf-16be.strings +0 -0
- data/ext/gyp/test/mac/app-bundle/TestApp/English.lproj/utf-16le.strings +0 -0
- data/ext/gyp/test/mac/app-bundle/TestApp/Images.xcassets/AppIcon.appiconset/Contents.json +58 -0
- data/ext/gyp/test/mac/app-bundle/TestApp/Images.xcassets/image.imageset/Contents.json +23 -0
- data/ext/gyp/test/mac/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain.png +0 -0
- data/ext/gyp/test/mac/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@2x.png +0 -0
- data/ext/gyp/test/mac/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@3x.png +0 -0
- data/ext/gyp/test/mac/app-bundle/TestApp/TestApp-Info.plist +34 -0
- data/ext/gyp/test/mac/app-bundle/TestApp/TestAppAppDelegate.h +13 -0
- data/ext/gyp/test/mac/app-bundle/TestApp/TestAppAppDelegate.m +15 -0
- data/ext/gyp/test/mac/app-bundle/TestApp/main.m +10 -0
- data/ext/gyp/test/mac/app-bundle/empty.c +0 -0
- data/ext/gyp/test/mac/app-bundle/test-assets-catalog.gyp +43 -0
- data/ext/gyp/test/mac/app-bundle/test-error.gyp +31 -0
- data/ext/gyp/test/mac/app-bundle/test.gyp +41 -0
- data/ext/gyp/test/mac/archs/empty_main.cc +1 -0
- data/ext/gyp/test/mac/archs/file.mm +1 -0
- data/ext/gyp/test/mac/archs/file_a.cc +8 -0
- data/ext/gyp/test/mac/archs/file_a.h +10 -0
- data/ext/gyp/test/mac/archs/file_b.cc +8 -0
- data/ext/gyp/test/mac/archs/file_b.h +10 -0
- data/ext/gyp/test/mac/archs/file_c.cc +11 -0
- data/ext/gyp/test/mac/archs/file_d.cc +11 -0
- data/ext/gyp/test/mac/archs/header.h +1 -0
- data/ext/gyp/test/mac/archs/my_file.cc +4 -0
- data/ext/gyp/test/mac/archs/my_main_file.cc +9 -0
- data/ext/gyp/test/mac/archs/test-archs-multiarch.gyp +92 -0
- data/ext/gyp/test/mac/archs/test-archs-x86_64.gyp +27 -0
- data/ext/gyp/test/mac/archs/test-dependencies.gyp +92 -0
- data/ext/gyp/test/mac/archs/test-no-archs.gyp +21 -0
- data/ext/gyp/test/mac/archs/test-valid-archs.gyp +28 -0
- data/ext/gyp/test/mac/bundle-resources/change.sh +3 -0
- data/ext/gyp/test/mac/bundle-resources/executable-file.sh +3 -0
- data/ext/gyp/test/mac/bundle-resources/secret.txt +1 -0
- data/ext/gyp/test/mac/bundle-resources/test.gyp +59 -0
- data/ext/gyp/test/mac/cflags/ccfile.cc +7 -0
- data/ext/gyp/test/mac/cflags/ccfile_withcflags.cc +7 -0
- data/ext/gyp/test/mac/cflags/cfile.c +7 -0
- data/ext/gyp/test/mac/cflags/cppfile.cpp +7 -0
- data/ext/gyp/test/mac/cflags/cppfile_withcflags.cpp +7 -0
- data/ext/gyp/test/mac/cflags/cxxfile.cxx +7 -0
- data/ext/gyp/test/mac/cflags/cxxfile_withcflags.cxx +7 -0
- data/ext/gyp/test/mac/cflags/mfile.m +7 -0
- data/ext/gyp/test/mac/cflags/mmfile.mm +7 -0
- data/ext/gyp/test/mac/cflags/mmfile_withcflags.mm +7 -0
- data/ext/gyp/test/mac/cflags/test.gyp +132 -0
- data/ext/gyp/test/mac/clang-cxx-language-standard/c++11.cc +8 -0
- data/ext/gyp/test/mac/clang-cxx-language-standard/c++98.cc +24 -0
- data/ext/gyp/test/mac/clang-cxx-language-standard/clang-cxx-language-standard.gyp +30 -0
- data/ext/gyp/test/mac/clang-cxx-library/clang-cxx-library.gyp +32 -0
- data/ext/gyp/test/mac/clang-cxx-library/libc++.cc +11 -0
- data/ext/gyp/test/mac/clang-cxx-library/libstdc++.cc +11 -0
- data/ext/gyp/test/mac/copies-with-xcode-envvars/copies-with-xcode-envvars.gyp +87 -0
- data/ext/gyp/test/mac/copies-with-xcode-envvars/empty.c +1 -0
- data/ext/gyp/test/mac/copies-with-xcode-envvars/file0 +1 -0
- data/ext/gyp/test/mac/copies-with-xcode-envvars/file1 +1 -0
- data/ext/gyp/test/mac/copies-with-xcode-envvars/file10 +1 -0
- data/ext/gyp/test/mac/copies-with-xcode-envvars/file11 +1 -0
- data/ext/gyp/test/mac/copies-with-xcode-envvars/file2 +1 -0
- data/ext/gyp/test/mac/copies-with-xcode-envvars/file3 +1 -0
- data/ext/gyp/test/mac/copies-with-xcode-envvars/file4 +1 -0
- data/ext/gyp/test/mac/copies-with-xcode-envvars/file5 +1 -0
- data/ext/gyp/test/mac/copies-with-xcode-envvars/file6 +1 -0
- data/ext/gyp/test/mac/copies-with-xcode-envvars/file7 +1 -0
- data/ext/gyp/test/mac/copies-with-xcode-envvars/file8 +1 -0
- data/ext/gyp/test/mac/copies-with-xcode-envvars/file9 +1 -0
- data/ext/gyp/test/mac/copy-dylib/empty.c +1 -0
- data/ext/gyp/test/mac/copy-dylib/test.gyp +31 -0
- data/ext/gyp/test/mac/debuginfo/file.c +6 -0
- data/ext/gyp/test/mac/debuginfo/test.gyp +82 -0
- data/ext/gyp/test/mac/depend-on-bundle/English.lproj/InfoPlist.strings +1 -0
- data/ext/gyp/test/mac/depend-on-bundle/Info.plist +28 -0
- data/ext/gyp/test/mac/depend-on-bundle/bundle.c +1 -0
- data/ext/gyp/test/mac/depend-on-bundle/executable.c +4 -0
- data/ext/gyp/test/mac/depend-on-bundle/test.gyp +28 -0
- data/ext/gyp/test/mac/deployment-target/check-version-min.c +33 -0
- data/ext/gyp/test/mac/deployment-target/deployment-target.gyp +28 -0
- data/ext/gyp/test/mac/framework/TestFramework/English.lproj/InfoPlist.strings +2 -0
- data/ext/gyp/test/mac/framework/TestFramework/Info.plist +28 -0
- data/ext/gyp/test/mac/framework/TestFramework/ObjCVector.h +28 -0
- data/ext/gyp/test/mac/framework/TestFramework/ObjCVector.mm +63 -0
- data/ext/gyp/test/mac/framework/TestFramework/ObjCVectorInternal.h +9 -0
- data/ext/gyp/test/mac/framework/TestFramework/TestFramework_Prefix.pch +7 -0
- data/ext/gyp/test/mac/framework/empty.c +0 -0
- data/ext/gyp/test/mac/framework/framework.gyp +108 -0
- data/ext/gyp/test/mac/framework-dirs/calculate.c +15 -0
- data/ext/gyp/test/mac/framework-dirs/framework-dirs.gyp +21 -0
- data/ext/gyp/test/mac/framework-headers/myframework.h +8 -0
- data/ext/gyp/test/mac/framework-headers/myframework.m +8 -0
- data/ext/gyp/test/mac/framework-headers/test.gyp +44 -0
- data/ext/gyp/test/mac/global-settings/src/dir1/dir1.gyp +11 -0
- data/ext/gyp/test/mac/global-settings/src/dir2/dir2.gyp +22 -0
- data/ext/gyp/test/mac/global-settings/src/dir2/file.txt +1 -0
- data/ext/gyp/test/mac/gyptest-action-envvars.py +36 -0
- data/ext/gyp/test/mac/gyptest-app-assets-catalog.py +125 -0
- data/ext/gyp/test/mac/gyptest-app-error.py +49 -0
- data/ext/gyp/test/mac/gyptest-app.py +122 -0
- data/ext/gyp/test/mac/gyptest-archs.py +96 -0
- data/ext/gyp/test/mac/gyptest-bundle-resources.py +64 -0
- data/ext/gyp/test/mac/gyptest-cflags.py +21 -0
- data/ext/gyp/test/mac/gyptest-clang-cxx-language-standard.py +25 -0
- data/ext/gyp/test/mac/gyptest-clang-cxx-library.py +32 -0
- data/ext/gyp/test/mac/gyptest-copies-with-xcode-envvars.py +65 -0
- data/ext/gyp/test/mac/gyptest-copies.py +62 -0
- data/ext/gyp/test/mac/gyptest-copy-dylib.py +25 -0
- data/ext/gyp/test/mac/gyptest-debuginfo.py +36 -0
- data/ext/gyp/test/mac/gyptest-depend-on-bundle.py +45 -0
- data/ext/gyp/test/mac/gyptest-deployment-target.py +27 -0
- data/ext/gyp/test/mac/gyptest-framework-dirs.py +23 -0
- data/ext/gyp/test/mac/gyptest-framework-headers.py +38 -0
- data/ext/gyp/test/mac/gyptest-framework.py +80 -0
- data/ext/gyp/test/mac/gyptest-global-settings.py +33 -0
- data/ext/gyp/test/mac/gyptest-identical-name.py +45 -0
- data/ext/gyp/test/mac/gyptest-infoplist-process.py +56 -0
- data/ext/gyp/test/mac/gyptest-installname.py +85 -0
- data/ext/gyp/test/mac/gyptest-kext.py +27 -0
- data/ext/gyp/test/mac/gyptest-ldflags-passed-to-libtool.py +37 -0
- data/ext/gyp/test/mac/gyptest-ldflags.py +74 -0
- data/ext/gyp/test/mac/gyptest-libraries.py +30 -0
- data/ext/gyp/test/mac/gyptest-libtool-zero.py +26 -0
- data/ext/gyp/test/mac/gyptest-loadable-module-bundle-product-extension.py +31 -0
- data/ext/gyp/test/mac/gyptest-loadable-module.py +54 -0
- data/ext/gyp/test/mac/gyptest-lto.py +66 -0
- data/ext/gyp/test/mac/gyptest-missing-cfbundlesignature.py +34 -0
- data/ext/gyp/test/mac/gyptest-non-strs-flattened-to-env.py +38 -0
- data/ext/gyp/test/mac/gyptest-objc-arc.py +27 -0
- data/ext/gyp/test/mac/gyptest-objc-gc.py +51 -0
- data/ext/gyp/test/mac/gyptest-postbuild-copy-bundle.py +75 -0
- data/ext/gyp/test/mac/gyptest-postbuild-defaults.py +34 -0
- data/ext/gyp/test/mac/gyptest-postbuild-fail.py +71 -0
- data/ext/gyp/test/mac/gyptest-postbuild-multiple-configurations.py +26 -0
- data/ext/gyp/test/mac/gyptest-postbuild-static-library.py +28 -0
- data/ext/gyp/test/mac/gyptest-postbuild.py +53 -0
- data/ext/gyp/test/mac/gyptest-prefixheader.py +20 -0
- data/ext/gyp/test/mac/gyptest-rebuild.py +46 -0
- data/ext/gyp/test/mac/gyptest-rpath.py +50 -0
- data/ext/gyp/test/mac/gyptest-sdkroot.py +56 -0
- data/ext/gyp/test/mac/gyptest-sourceless-module.py +77 -0
- data/ext/gyp/test/mac/gyptest-strip-default.py +97 -0
- data/ext/gyp/test/mac/gyptest-strip.py +66 -0
- data/ext/gyp/test/mac/gyptest-swift-library.py +67 -0
- data/ext/gyp/test/mac/gyptest-type-envvars.py +26 -0
- data/ext/gyp/test/mac/gyptest-unicode-settings.py +20 -0
- data/ext/gyp/test/mac/gyptest-xcode-env-order.py +95 -0
- data/ext/gyp/test/mac/gyptest-xcode-gcc-clang.py +40 -0
- data/ext/gyp/test/mac/gyptest-xcode-gcc.py +60 -0
- data/ext/gyp/test/mac/gyptest-xcode-support-actions.py +25 -0
- data/ext/gyp/test/mac/gyptest-xctest.py +41 -0
- data/ext/gyp/test/mac/gyptest-xcuitest.py +39 -0
- data/ext/gyp/test/mac/identical-name/proxy/proxy.cc +2 -0
- data/ext/gyp/test/mac/identical-name/proxy/proxy.gyp +9 -0
- data/ext/gyp/test/mac/identical-name/proxy/testlib/testlib.cc +2 -0
- data/ext/gyp/test/mac/identical-name/proxy/testlib/testlib.gyp +8 -0
- data/ext/gyp/test/mac/identical-name/test-should-fail.gyp +10 -0
- data/ext/gyp/test/mac/identical-name/test.gyp +11 -0
- data/ext/gyp/test/mac/identical-name/test.gypi +7 -0
- data/ext/gyp/test/mac/identical-name/testlib/main.cc +3 -0
- data/ext/gyp/test/mac/identical-name/testlib/testlib.gyp +14 -0
- data/ext/gyp/test/mac/identical-name/testlib/void.cc +2 -0
- data/ext/gyp/test/mac/infoplist-process/Info.plist +36 -0
- data/ext/gyp/test/mac/infoplist-process/main.c +7 -0
- data/ext/gyp/test/mac/infoplist-process/test1.gyp +25 -0
- data/ext/gyp/test/mac/infoplist-process/test2.gyp +25 -0
- data/ext/gyp/test/mac/infoplist-process/test3.gyp +25 -0
- data/ext/gyp/test/mac/installname/Info.plist +28 -0
- data/ext/gyp/test/mac/installname/file.c +1 -0
- data/ext/gyp/test/mac/installname/main.c +1 -0
- data/ext/gyp/test/mac/installname/test.gyp +93 -0
- data/ext/gyp/test/mac/kext/GypKext/GypKext-Info.plist +35 -0
- data/ext/gyp/test/mac/kext/GypKext/GypKext.c +16 -0
- data/ext/gyp/test/mac/kext/kext.gyp +18 -0
- data/ext/gyp/test/mac/ldflags/subdirectory/Info.plist +8 -0
- data/ext/gyp/test/mac/ldflags/subdirectory/file.c +2 -0
- data/ext/gyp/test/mac/ldflags/subdirectory/symbol_list.def +1 -0
- data/ext/gyp/test/mac/ldflags/subdirectory/test.gyp +66 -0
- data/ext/gyp/test/mac/ldflags-libtool/file.c +1 -0
- data/ext/gyp/test/mac/ldflags-libtool/test.gyp +17 -0
- data/ext/gyp/test/mac/libraries/subdir/README.txt +1 -0
- data/ext/gyp/test/mac/libraries/subdir/hello.cc +10 -0
- data/ext/gyp/test/mac/libraries/subdir/mylib.c +7 -0
- data/ext/gyp/test/mac/libraries/subdir/test.gyp +65 -0
- data/ext/gyp/test/mac/libtool-zero/mylib.c +7 -0
- data/ext/gyp/test/mac/libtool-zero/test.gyp +18 -0
- data/ext/gyp/test/mac/loadable-module/Info.plist +26 -0
- data/ext/gyp/test/mac/loadable-module/module.c +11 -0
- data/ext/gyp/test/mac/loadable-module/test.gyp +18 -0
- data/ext/gyp/test/mac/loadable-module-bundle-product-extension/src.cc +7 -0
- data/ext/gyp/test/mac/loadable-module-bundle-product-extension/test.gyp +24 -0
- data/ext/gyp/test/mac/lto/asmfile.S +2 -0
- data/ext/gyp/test/mac/lto/ccfile.cc +1 -0
- data/ext/gyp/test/mac/lto/cfile.c +1 -0
- data/ext/gyp/test/mac/lto/mfile.m +1 -0
- data/ext/gyp/test/mac/lto/mmfile.mm +1 -0
- data/ext/gyp/test/mac/lto/test.gyp +35 -0
- data/ext/gyp/test/mac/missing-cfbundlesignature/Info.plist +10 -0
- data/ext/gyp/test/mac/missing-cfbundlesignature/Other-Info.plist +12 -0
- data/ext/gyp/test/mac/missing-cfbundlesignature/Third-Info.plist +12 -0
- data/ext/gyp/test/mac/missing-cfbundlesignature/file.c +1 -0
- data/ext/gyp/test/mac/missing-cfbundlesignature/test.gyp +34 -0
- data/ext/gyp/test/mac/non-strs-flattened-to-env/Info.plist +15 -0
- data/ext/gyp/test/mac/non-strs-flattened-to-env/main.c +7 -0
- data/ext/gyp/test/mac/non-strs-flattened-to-env/test.gyp +27 -0
- data/ext/gyp/test/mac/objc-arc/c-file.c +5 -0
- data/ext/gyp/test/mac/objc-arc/cc-file.cc +5 -0
- data/ext/gyp/test/mac/objc-arc/m-file-arc-weak.m +9 -0
- data/ext/gyp/test/mac/objc-arc/m-file-no-arc.m +9 -0
- data/ext/gyp/test/mac/objc-arc/m-file.m +9 -0
- data/ext/gyp/test/mac/objc-arc/mm-file-arc-weak.mm +9 -0
- data/ext/gyp/test/mac/objc-arc/mm-file-no-arc.mm +9 -0
- data/ext/gyp/test/mac/objc-arc/mm-file.mm +9 -0
- data/ext/gyp/test/mac/objc-arc/test.gyp +53 -0
- data/ext/gyp/test/mac/objc-gc/c-file.c +1 -0
- data/ext/gyp/test/mac/objc-gc/cc-file.cc +1 -0
- data/ext/gyp/test/mac/objc-gc/main.m +6 -0
- data/ext/gyp/test/mac/objc-gc/needs-gc-mm.mm +1 -0
- data/ext/gyp/test/mac/objc-gc/needs-gc.m +1 -0
- data/ext/gyp/test/mac/objc-gc/test.gyp +102 -0
- data/ext/gyp/test/mac/postbuild-copy-bundle/Framework-Info.plist +30 -0
- data/ext/gyp/test/mac/postbuild-copy-bundle/TestApp-Info.plist +32 -0
- data/ext/gyp/test/mac/postbuild-copy-bundle/copied.txt +1 -0
- data/ext/gyp/test/mac/postbuild-copy-bundle/empty.c +0 -0
- data/ext/gyp/test/mac/postbuild-copy-bundle/main.c +4 -0
- data/ext/gyp/test/mac/postbuild-copy-bundle/postbuild-copy-framework.sh +9 -0
- data/ext/gyp/test/mac/postbuild-copy-bundle/resource_file.sb +1 -0
- data/ext/gyp/test/mac/postbuild-copy-bundle/test.gyp +49 -0
- data/ext/gyp/test/mac/postbuild-defaults/Info.plist +13 -0
- data/ext/gyp/test/mac/postbuild-defaults/main.c +7 -0
- data/ext/gyp/test/mac/postbuild-defaults/postbuild-defaults.sh +15 -0
- data/ext/gyp/test/mac/postbuild-defaults/test.gyp +26 -0
- data/ext/gyp/test/mac/postbuild-fail/file.c +6 -0
- data/ext/gyp/test/mac/postbuild-fail/postbuild-fail.sh +6 -0
- data/ext/gyp/test/mac/postbuild-fail/test.gyp +38 -0
- data/ext/gyp/test/mac/postbuild-fail/touch-dynamic.sh +7 -0
- data/ext/gyp/test/mac/postbuild-fail/touch-static.sh +7 -0
- data/ext/gyp/test/mac/postbuild-multiple-configurations/main.c +4 -0
- data/ext/gyp/test/mac/postbuild-multiple-configurations/postbuild-touch-file.sh +7 -0
- data/ext/gyp/test/mac/postbuild-multiple-configurations/test.gyp +26 -0
- data/ext/gyp/test/mac/postbuild-static-library/empty.c +4 -0
- data/ext/gyp/test/mac/postbuild-static-library/postbuild-touch-file.sh +7 -0
- data/ext/gyp/test/mac/postbuild-static-library/test.gyp +34 -0
- data/ext/gyp/test/mac/postbuilds/copy.sh +3 -0
- data/ext/gyp/test/mac/postbuilds/file.c +4 -0
- data/ext/gyp/test/mac/postbuilds/file_g.c +4 -0
- data/ext/gyp/test/mac/postbuilds/file_h.c +4 -0
- data/ext/gyp/test/mac/postbuilds/script/shared_library_postbuild.sh +23 -0
- data/ext/gyp/test/mac/postbuilds/script/static_library_postbuild.sh +23 -0
- data/ext/gyp/test/mac/postbuilds/subdirectory/copied_file.txt +1 -0
- data/ext/gyp/test/mac/postbuilds/subdirectory/nested_target.gyp +53 -0
- data/ext/gyp/test/mac/postbuilds/test.gyp +93 -0
- data/ext/gyp/test/mac/prefixheader/file.c +1 -0
- data/ext/gyp/test/mac/prefixheader/file.cc +1 -0
- data/ext/gyp/test/mac/prefixheader/file.m +1 -0
- data/ext/gyp/test/mac/prefixheader/file.mm +1 -0
- data/ext/gyp/test/mac/prefixheader/header.h +1 -0
- data/ext/gyp/test/mac/prefixheader/test.gyp +82 -0
- data/ext/gyp/test/mac/rebuild/TestApp-Info.plist +32 -0
- data/ext/gyp/test/mac/rebuild/delay-touch.sh +6 -0
- data/ext/gyp/test/mac/rebuild/empty.c +0 -0
- data/ext/gyp/test/mac/rebuild/main.c +1 -0
- data/ext/gyp/test/mac/rebuild/test.gyp +56 -0
- data/ext/gyp/test/mac/rpath/file.c +1 -0
- data/ext/gyp/test/mac/rpath/main.c +1 -0
- data/ext/gyp/test/mac/rpath/test.gyp +48 -0
- data/ext/gyp/test/mac/sdkroot/file.cc +5 -0
- data/ext/gyp/test/mac/sdkroot/test.gyp +35 -0
- data/ext/gyp/test/mac/sdkroot/test_shorthand.sh +20 -0
- data/ext/gyp/test/mac/sourceless-module/empty.c +1 -0
- data/ext/gyp/test/mac/sourceless-module/empty.txt +2 -0
- data/ext/gyp/test/mac/sourceless-module/fun.c +1 -0
- data/ext/gyp/test/mac/sourceless-module/test.gyp +96 -0
- data/ext/gyp/test/mac/strip/file.c +22 -0
- data/ext/gyp/test/mac/strip/main.c +25 -0
- data/ext/gyp/test/mac/strip/strip.saves +5 -0
- data/ext/gyp/test/mac/strip/subdirectory/nested_file.c +1 -0
- data/ext/gyp/test/mac/strip/subdirectory/nested_strip.saves +5 -0
- data/ext/gyp/test/mac/strip/subdirectory/subdirectory.gyp +38 -0
- data/ext/gyp/test/mac/strip/subdirectory/test_reading_save_file_from_postbuild.sh +5 -0
- data/ext/gyp/test/mac/strip/test-defaults.gyp +51 -0
- data/ext/gyp/test/mac/strip/test.gyp +119 -0
- data/ext/gyp/test/mac/swift-library/Info.plist +28 -0
- data/ext/gyp/test/mac/swift-library/file.swift +9 -0
- data/ext/gyp/test/mac/swift-library/test.gyp +21 -0
- data/ext/gyp/test/mac/type_envvars/file.c +6 -0
- data/ext/gyp/test/mac/type_envvars/test.gyp +100 -0
- data/ext/gyp/test/mac/type_envvars/test_bundle_executable.sh +30 -0
- data/ext/gyp/test/mac/type_envvars/test_bundle_loadable_module.sh +35 -0
- data/ext/gyp/test/mac/type_envvars/test_bundle_shared_library.sh +38 -0
- data/ext/gyp/test/mac/type_envvars/test_check_sdkroot.sh +47 -0
- data/ext/gyp/test/mac/type_envvars/test_nonbundle_executable.sh +33 -0
- data/ext/gyp/test/mac/type_envvars/test_nonbundle_loadable_module.sh +31 -0
- data/ext/gyp/test/mac/type_envvars/test_nonbundle_none.sh +32 -0
- data/ext/gyp/test/mac/type_envvars/test_nonbundle_shared_library.sh +31 -0
- data/ext/gyp/test/mac/type_envvars/test_nonbundle_static_library.sh +31 -0
- data/ext/gyp/test/mac/unicode-settings/file.cc +2 -0
- data/ext/gyp/test/mac/unicode-settings/test.gyp +23 -0
- data/ext/gyp/test/mac/unicode-settings/test_bundle_display_name.sh +7 -0
- data/ext/gyp/test/mac/xcode-env-order/Info.plist +56 -0
- data/ext/gyp/test/mac/xcode-env-order/file.ext1 +0 -0
- data/ext/gyp/test/mac/xcode-env-order/file.ext2 +0 -0
- data/ext/gyp/test/mac/xcode-env-order/file.ext3 +0 -0
- data/ext/gyp/test/mac/xcode-env-order/main.c +7 -0
- data/ext/gyp/test/mac/xcode-env-order/test.gyp +121 -0
- data/ext/gyp/test/mac/xcode-gcc/aliasing.cc +13 -0
- data/ext/gyp/test/mac/xcode-gcc/test-clang.gyp +42 -0
- data/ext/gyp/test/mac/xcode-gcc/test.gyp +60 -0
- data/ext/gyp/test/mac/xcode-gcc/valid_c.c +8 -0
- data/ext/gyp/test/mac/xcode-gcc/valid_cc.cc +8 -0
- data/ext/gyp/test/mac/xcode-gcc/valid_m.m +8 -0
- data/ext/gyp/test/mac/xcode-gcc/valid_mm.mm +8 -0
- data/ext/gyp/test/mac/xcode-gcc/warn_about_invalid_offsetof_macro.cc +15 -0
- data/ext/gyp/test/mac/xcode-gcc/warn_about_missing_newline.c +8 -0
- data/ext/gyp/test/mac/xcode-support-actions/source.c +0 -0
- data/ext/gyp/test/mac/xcode-support-actions/test.gyp +26 -0
- data/ext/gyp/test/mac/xctest/MyClass.h +8 -0
- data/ext/gyp/test/mac/xctest/MyClass.m +8 -0
- data/ext/gyp/test/mac/xctest/TestCase.m +16 -0
- data/ext/gyp/test/mac/xctest/resource.txt +1 -0
- data/ext/gyp/test/mac/xctest/test.gyp +47 -0
- data/ext/gyp/test/mac/xctest/test.xcodeproj/xcshareddata/xcschemes/classes.xcscheme +69 -0
- data/ext/gyp/test/mac/xcuitest/Info.plist +28 -0
- data/ext/gyp/test/mac/xcuitest/MyAppDelegate.h +8 -0
- data/ext/gyp/test/mac/xcuitest/MyAppDelegate.m +19 -0
- data/ext/gyp/test/mac/xcuitest/TestCase.m +15 -0
- data/ext/gyp/test/mac/xcuitest/main.m +15 -0
- data/ext/gyp/test/mac/xcuitest/resource.txt +1 -0
- data/ext/gyp/test/mac/xcuitest/test.gyp +69 -0
- data/ext/gyp/test/make/dependencies.gyp +15 -0
- data/ext/gyp/test/make/gyptest-dependencies.py +26 -0
- data/ext/gyp/test/make/gyptest-noload.py +57 -0
- data/ext/gyp/test/make/main.cc +12 -0
- data/ext/gyp/test/make/main.h +0 -0
- data/ext/gyp/test/make/noload/all.gyp +18 -0
- data/ext/gyp/test/make/noload/lib/shared.c +3 -0
- data/ext/gyp/test/make/noload/lib/shared.gyp +16 -0
- data/ext/gyp/test/make/noload/lib/shared.h +1 -0
- data/ext/gyp/test/make/noload/main.c +9 -0
- data/ext/gyp/test/make_global_settings/ar/gyptest-make_global_settings_ar.py +126 -0
- data/ext/gyp/test/make_global_settings/ar/make_global_settings_ar.gyp +29 -0
- data/ext/gyp/test/make_global_settings/basics/gyptest-make_global_settings.py +51 -0
- data/ext/gyp/test/make_global_settings/basics/make_global_settings.gyp +17 -0
- data/ext/gyp/test/make_global_settings/env-wrapper/gyptest-wrapper.py +51 -0
- data/ext/gyp/test/make_global_settings/env-wrapper/wrapper.gyp +17 -0
- data/ext/gyp/test/make_global_settings/full-toolchain/bar.cc +1 -0
- data/ext/gyp/test/make_global_settings/full-toolchain/foo.c +1 -0
- data/ext/gyp/test/make_global_settings/full-toolchain/gyptest-make_global_settings.py +53 -0
- data/ext/gyp/test/make_global_settings/full-toolchain/make_global_settings.gyp +22 -0
- data/ext/gyp/test/make_global_settings/full-toolchain/my_nm.py +9 -0
- data/ext/gyp/test/make_global_settings/full-toolchain/my_readelf.py +9 -0
- data/ext/gyp/test/make_global_settings/ld/gyptest-make_global_settings_ld.py +130 -0
- data/ext/gyp/test/make_global_settings/ld/make_global_settings_ld.gyp +29 -0
- data/ext/gyp/test/make_global_settings/wrapper/gyptest-wrapper.py +52 -0
- data/ext/gyp/test/make_global_settings/wrapper/wrapper.gyp +21 -0
- data/ext/gyp/test/many-actions/file0 +0 -0
- data/ext/gyp/test/many-actions/file1 +0 -0
- data/ext/gyp/test/many-actions/file2 +0 -0
- data/ext/gyp/test/many-actions/file3 +0 -0
- data/ext/gyp/test/many-actions/file4 +0 -0
- data/ext/gyp/test/many-actions/gyptest-many-actions-unsorted.py +43 -0
- data/ext/gyp/test/many-actions/gyptest-many-actions.py +29 -0
- data/ext/gyp/test/many-actions/many-actions-unsorted.gyp +154 -0
- data/ext/gyp/test/many-actions/many-actions.gyp +1817 -0
- data/ext/gyp/test/module/gyptest-default.py +28 -0
- data/ext/gyp/test/module/src/lib1.c +10 -0
- data/ext/gyp/test/module/src/lib2.c +10 -0
- data/ext/gyp/test/module/src/module.gyp +53 -0
- data/ext/gyp/test/module/src/program.c +111 -0
- data/ext/gyp/test/msvs/buildevents/buildevents.gyp +14 -0
- data/ext/gyp/test/msvs/buildevents/gyptest-msbuild-supports-prepostbuild.py +24 -0
- data/ext/gyp/test/msvs/buildevents/gyptest-ninja-warnings.py +29 -0
- data/ext/gyp/test/msvs/buildevents/main.cc +5 -0
- data/ext/gyp/test/msvs/config_attrs/gyptest-config_attrs.py +41 -0
- data/ext/gyp/test/msvs/config_attrs/hello.c +11 -0
- data/ext/gyp/test/msvs/config_attrs/hello.gyp +21 -0
- data/ext/gyp/test/msvs/express/base/base.gyp +22 -0
- data/ext/gyp/test/msvs/express/express.gyp +19 -0
- data/ext/gyp/test/msvs/express/gyptest-express.py +29 -0
- data/ext/gyp/test/msvs/external_builder/external.gyp +68 -0
- data/ext/gyp/test/msvs/external_builder/external_builder.py +9 -0
- data/ext/gyp/test/msvs/external_builder/gyptest-all.py +59 -0
- data/ext/gyp/test/msvs/external_builder/hello.cpp +10 -0
- data/ext/gyp/test/msvs/external_builder/hello.z +6 -0
- data/ext/gyp/test/msvs/external_builder/msbuild_action.py +9 -0
- data/ext/gyp/test/msvs/external_builder/msbuild_rule.py +11 -0
- data/ext/gyp/test/msvs/filters/filters.gyp +47 -0
- data/ext/gyp/test/msvs/filters/gyptest-filters-2008.py +68 -0
- data/ext/gyp/test/msvs/filters/gyptest-filters-2010.py +57 -0
- data/ext/gyp/test/msvs/list_excluded/gyptest-all.py +51 -0
- data/ext/gyp/test/msvs/list_excluded/hello.cpp +10 -0
- data/ext/gyp/test/msvs/list_excluded/hello_exclude.gyp +19 -0
- data/ext/gyp/test/msvs/list_excluded/hello_mac.cpp +10 -0
- data/ext/gyp/test/msvs/missing_sources/gyptest-missing.py +43 -0
- data/ext/gyp/test/msvs/missing_sources/hello_missing.gyp +15 -0
- data/ext/gyp/test/msvs/multiple_actions_error_handling/action_fail.py +7 -0
- data/ext/gyp/test/msvs/multiple_actions_error_handling/action_succeed.py +7 -0
- data/ext/gyp/test/msvs/multiple_actions_error_handling/actions.gyp +40 -0
- data/ext/gyp/test/msvs/multiple_actions_error_handling/gyptest.py +26 -0
- data/ext/gyp/test/msvs/props/AppName.props +14 -0
- data/ext/gyp/test/msvs/props/AppName.vsprops +11 -0
- data/ext/gyp/test/msvs/props/gyptest-props.py +22 -0
- data/ext/gyp/test/msvs/props/hello.c +11 -0
- data/ext/gyp/test/msvs/props/hello.gyp +22 -0
- data/ext/gyp/test/msvs/rules_stdout_stderr/dummy.bar +5 -0
- data/ext/gyp/test/msvs/rules_stdout_stderr/dummy.foo +5 -0
- data/ext/gyp/test/msvs/rules_stdout_stderr/gyptest-rules-stdout-stderr.py +29 -0
- data/ext/gyp/test/msvs/rules_stdout_stderr/rule_stderr.py +8 -0
- data/ext/gyp/test/msvs/rules_stdout_stderr/rule_stdout.py +7 -0
- data/ext/gyp/test/msvs/rules_stdout_stderr/rules-stdout-stderr.gyp +52 -0
- data/ext/gyp/test/msvs/shared_output/common.gypi +17 -0
- data/ext/gyp/test/msvs/shared_output/gyptest-shared_output.py +41 -0
- data/ext/gyp/test/msvs/shared_output/hello.c +12 -0
- data/ext/gyp/test/msvs/shared_output/hello.gyp +21 -0
- data/ext/gyp/test/msvs/shared_output/there/there.c +12 -0
- data/ext/gyp/test/msvs/shared_output/there/there.gyp +16 -0
- data/ext/gyp/test/msvs/uldi2010/gyptest-all.py +20 -0
- data/ext/gyp/test/msvs/uldi2010/hello.c +13 -0
- data/ext/gyp/test/msvs/uldi2010/hello.gyp +26 -0
- data/ext/gyp/test/msvs/uldi2010/hello2.c +10 -0
- data/ext/gyp/test/multiple-targets/gyptest-all.py +30 -0
- data/ext/gyp/test/multiple-targets/gyptest-default.py +30 -0
- data/ext/gyp/test/multiple-targets/src/common.c +7 -0
- data/ext/gyp/test/multiple-targets/src/multiple.gyp +24 -0
- data/ext/gyp/test/multiple-targets/src/prog1.c +10 -0
- data/ext/gyp/test/multiple-targets/src/prog2.c +10 -0
- data/ext/gyp/test/ninja/action-rule-hash/gyptest-action-rule-hash.py +32 -0
- data/ext/gyp/test/ninja/action-rule-hash/subdir/action-rule-hash.gyp +29 -0
- data/ext/gyp/test/ninja/action-rule-hash/subdir/emit.py +13 -0
- data/ext/gyp/test/ninja/action_dependencies/gyptest-action-dependencies.py +64 -0
- data/ext/gyp/test/ninja/action_dependencies/src/a.c +10 -0
- data/ext/gyp/test/ninja/action_dependencies/src/a.h +13 -0
- data/ext/gyp/test/ninja/action_dependencies/src/action_dependencies.gyp +88 -0
- data/ext/gyp/test/ninja/action_dependencies/src/b.c +18 -0
- data/ext/gyp/test/ninja/action_dependencies/src/b.h +13 -0
- data/ext/gyp/test/ninja/action_dependencies/src/c.c +10 -0
- data/ext/gyp/test/ninja/action_dependencies/src/c.h +13 -0
- data/ext/gyp/test/ninja/action_dependencies/src/emit.py +11 -0
- data/ext/gyp/test/ninja/chained-dependency/chained-dependency.gyp +53 -0
- data/ext/gyp/test/ninja/chained-dependency/chained.c +5 -0
- data/ext/gyp/test/ninja/chained-dependency/gyptest-chained-dependency.py +30 -0
- data/ext/gyp/test/ninja/empty-and-non-empty-duplicate-name/gyptest-empty-and-non-empty-duplicate-name.py +23 -0
- data/ext/gyp/test/ninja/empty-and-non-empty-duplicate-name/subdir/included.gyp +19 -0
- data/ext/gyp/test/ninja/empty-and-non-empty-duplicate-name/test.gyp +19 -0
- data/ext/gyp/test/ninja/normalize-paths-win/gyptest-normalize-paths.py +46 -0
- data/ext/gyp/test/ninja/normalize-paths-win/hello.cc +7 -0
- data/ext/gyp/test/ninja/normalize-paths-win/normalize-paths.gyp +68 -0
- data/ext/gyp/test/ninja/s-needs-no-depfiles/empty.s +1 -0
- data/ext/gyp/test/ninja/s-needs-no-depfiles/gyptest-s-needs-no-depfiles.py +42 -0
- data/ext/gyp/test/ninja/s-needs-no-depfiles/s-needs-no-depfiles.gyp +13 -0
- data/ext/gyp/test/ninja/solibs_avoid_relinking/gyptest-solibs-avoid-relinking.py +48 -0
- data/ext/gyp/test/ninja/solibs_avoid_relinking/main.cc +5 -0
- data/ext/gyp/test/ninja/solibs_avoid_relinking/solib.cc +8 -0
- data/ext/gyp/test/ninja/solibs_avoid_relinking/solibs_avoid_relinking.gyp +38 -0
- data/ext/gyp/test/ninja/use-console/foo.bar +5 -0
- data/ext/gyp/test/ninja/use-console/gyptest-use-console.py +29 -0
- data/ext/gyp/test/ninja/use-console/use-console.gyp +60 -0
- data/ext/gyp/test/ninja/use-custom-environment-files/gyptest-use-custom-environment-files.py +28 -0
- data/ext/gyp/test/ninja/use-custom-environment-files/use-custom-environment-files.cc +7 -0
- data/ext/gyp/test/ninja/use-custom-environment-files/use-custom-environment-files.gyp +15 -0
- data/ext/gyp/test/no-cpp/gyptest-no-cpp.py +53 -0
- data/ext/gyp/test/no-cpp/src/call-f-main.c +2 -0
- data/ext/gyp/test/no-cpp/src/empty-main.c +1 -0
- data/ext/gyp/test/no-cpp/src/f.cc +3 -0
- data/ext/gyp/test/no-cpp/src/test.gyp +25 -0
- data/ext/gyp/test/no-output/gyptest-no-output.py +21 -0
- data/ext/gyp/test/no-output/src/nooutput.gyp +17 -0
- data/ext/gyp/test/product/gyptest-product.py +43 -0
- data/ext/gyp/test/product/hello.c +15 -0
- data/ext/gyp/test/product/product.gyp +128 -0
- data/ext/gyp/test/prune_targets/gyptest-prune-targets.py +66 -0
- data/ext/gyp/test/prune_targets/lib1.cc +6 -0
- data/ext/gyp/test/prune_targets/lib2.cc +6 -0
- data/ext/gyp/test/prune_targets/lib3.cc +6 -0
- data/ext/gyp/test/prune_targets/lib_indirect.cc +6 -0
- data/ext/gyp/test/prune_targets/program.cc +7 -0
- data/ext/gyp/test/prune_targets/test1.gyp +26 -0
- data/ext/gyp/test/prune_targets/test2.gyp +30 -0
- data/ext/gyp/test/relative/foo/a/a.cc +9 -0
- data/ext/gyp/test/relative/foo/a/a.gyp +13 -0
- data/ext/gyp/test/relative/foo/a/c/c.cc +9 -0
- data/ext/gyp/test/relative/foo/a/c/c.gyp +12 -0
- data/ext/gyp/test/relative/foo/b/b.cc +9 -0
- data/ext/gyp/test/relative/foo/b/b.gyp +9 -0
- data/ext/gyp/test/relative/gyptest-default.py +25 -0
- data/ext/gyp/test/rename/filecase/file.c +1 -0
- data/ext/gyp/test/rename/filecase/test-casesensitive.gyp +15 -0
- data/ext/gyp/test/rename/filecase/test.gyp +14 -0
- data/ext/gyp/test/rename/gyptest-filecase.py +35 -0
- data/ext/gyp/test/restat/gyptest-restat.py +31 -0
- data/ext/gyp/test/restat/src/create_intermediate.py +17 -0
- data/ext/gyp/test/restat/src/restat.gyp +50 -0
- data/ext/gyp/test/restat/src/touch.py +16 -0
- data/ext/gyp/test/rules/gyptest-all.py +84 -0
- data/ext/gyp/test/rules/gyptest-default.py +70 -0
- data/ext/gyp/test/rules/gyptest-input-root.py +26 -0
- data/ext/gyp/test/rules/gyptest-special-variables.py +18 -0
- data/ext/gyp/test/rules/src/actions.gyp +23 -0
- data/ext/gyp/test/rules/src/an_asm.S +6 -0
- data/ext/gyp/test/rules/src/as.bat +7 -0
- data/ext/gyp/test/rules/src/copy-file.py +11 -0
- data/ext/gyp/test/rules/src/external/external.gyp +66 -0
- data/ext/gyp/test/rules/src/external/file1.in +1 -0
- data/ext/gyp/test/rules/src/external/file2.in +1 -0
- data/ext/gyp/test/rules/src/input-root.gyp +24 -0
- data/ext/gyp/test/rules/src/noaction/file1.in +1 -0
- data/ext/gyp/test/rules/src/noaction/no_action_with_rules_fails.gyp +37 -0
- data/ext/gyp/test/rules/src/rule.py +17 -0
- data/ext/gyp/test/rules/src/somefile.ext +0 -0
- data/ext/gyp/test/rules/src/special-variables.gyp +34 -0
- data/ext/gyp/test/rules/src/subdir1/executable.gyp +37 -0
- data/ext/gyp/test/rules/src/subdir1/function1.in +6 -0
- data/ext/gyp/test/rules/src/subdir1/function2.in +6 -0
- data/ext/gyp/test/rules/src/subdir1/program.c +12 -0
- data/ext/gyp/test/rules/src/subdir2/both_rule_and_action_input.gyp +50 -0
- data/ext/gyp/test/rules/src/subdir2/file1.in +1 -0
- data/ext/gyp/test/rules/src/subdir2/file2.in +1 -0
- data/ext/gyp/test/rules/src/subdir2/never_used.gyp +31 -0
- data/ext/gyp/test/rules/src/subdir2/no_action.gyp +38 -0
- data/ext/gyp/test/rules/src/subdir2/no_inputs.gyp +32 -0
- data/ext/gyp/test/rules/src/subdir2/none.gyp +33 -0
- data/ext/gyp/test/rules/src/subdir2/program.c +12 -0
- data/ext/gyp/test/rules/src/subdir3/executable2.gyp +37 -0
- data/ext/gyp/test/rules/src/subdir3/function3.in +6 -0
- data/ext/gyp/test/rules/src/subdir3/program.c +10 -0
- data/ext/gyp/test/rules/src/subdir4/asm-function.assem +10 -0
- data/ext/gyp/test/rules/src/subdir4/build-asm.gyp +49 -0
- data/ext/gyp/test/rules/src/subdir4/program.c +19 -0
- data/ext/gyp/test/rules-dirname/gyptest-dirname.py +57 -0
- data/ext/gyp/test/rules-dirname/src/actions.gyp +15 -0
- data/ext/gyp/test/rules-dirname/src/copy-file.py +11 -0
- data/ext/gyp/test/rules-dirname/src/subdir/a/b/c.gencc +8 -0
- data/ext/gyp/test/rules-dirname/src/subdir/a/b/c.printvars +1 -0
- data/ext/gyp/test/rules-dirname/src/subdir/foo/bar/baz.gencc +8 -0
- data/ext/gyp/test/rules-dirname/src/subdir/foo/bar/baz.printvars +1 -0
- data/ext/gyp/test/rules-dirname/src/subdir/input-rule-dirname.gyp +140 -0
- data/ext/gyp/test/rules-dirname/src/subdir/main.cc +14 -0
- data/ext/gyp/test/rules-dirname/src/subdir/nodir.gencc +8 -0
- data/ext/gyp/test/rules-dirname/src/subdir/printvars.py +14 -0
- data/ext/gyp/test/rules-rebuild/gyptest-all.py +70 -0
- data/ext/gyp/test/rules-rebuild/gyptest-default.py +91 -0
- data/ext/gyp/test/rules-rebuild/src/main.c +12 -0
- data/ext/gyp/test/rules-rebuild/src/make-sources.py +19 -0
- data/ext/gyp/test/rules-rebuild/src/prog1.in +7 -0
- data/ext/gyp/test/rules-rebuild/src/prog2.in +7 -0
- data/ext/gyp/test/rules-rebuild/src/same_target.gyp +31 -0
- data/ext/gyp/test/rules-use-built-dependencies/gyptest-use-built-dependencies.py +23 -0
- data/ext/gyp/test/rules-use-built-dependencies/src/main.cc +17 -0
- data/ext/gyp/test/rules-use-built-dependencies/src/use-built-dependencies-rule.gyp +42 -0
- data/ext/gyp/test/rules-variables/gyptest-rules-variables.py +35 -0
- data/ext/gyp/test/rules-variables/src/input_ext.c +9 -0
- data/ext/gyp/test/rules-variables/src/input_name/test.c +9 -0
- data/ext/gyp/test/rules-variables/src/input_path/subdir/test.c +9 -0
- data/ext/gyp/test/rules-variables/src/subdir/input_dirname.c +9 -0
- data/ext/gyp/test/rules-variables/src/subdir/test.c +18 -0
- data/ext/gyp/test/rules-variables/src/test.input_root.c +9 -0
- data/ext/gyp/test/rules-variables/src/variables.gyp +40 -0
- data/ext/gyp/test/same-gyp-name/gyptest-all.py +38 -0
- data/ext/gyp/test/same-gyp-name/gyptest-default.py +38 -0
- data/ext/gyp/test/same-gyp-name/gyptest-library.py +20 -0
- data/ext/gyp/test/same-gyp-name/library/one/sub.gyp +11 -0
- data/ext/gyp/test/same-gyp-name/library/test.gyp +15 -0
- data/ext/gyp/test/same-gyp-name/library/two/sub.gyp +11 -0
- data/ext/gyp/test/same-gyp-name/src/all.gyp +16 -0
- data/ext/gyp/test/same-gyp-name/src/subdir1/executable.gyp +15 -0
- data/ext/gyp/test/same-gyp-name/src/subdir1/main1.cc +6 -0
- data/ext/gyp/test/same-gyp-name/src/subdir2/executable.gyp +15 -0
- data/ext/gyp/test/same-gyp-name/src/subdir2/main2.cc +6 -0
- data/ext/gyp/test/same-rule-output-file-name/gyptest-all.py +23 -0
- data/ext/gyp/test/same-rule-output-file-name/src/subdir1/subdir1.gyp +30 -0
- data/ext/gyp/test/same-rule-output-file-name/src/subdir2/subdir2.gyp +30 -0
- data/ext/gyp/test/same-rule-output-file-name/src/subdirs.gyp +16 -0
- data/ext/gyp/test/same-rule-output-file-name/src/touch.py +11 -0
- data/ext/gyp/test/same-source-file-name/gyptest-all.py +34 -0
- data/ext/gyp/test/same-source-file-name/gyptest-default.py +34 -0
- data/ext/gyp/test/same-source-file-name/gyptest-pass-executable.py +33 -0
- data/ext/gyp/test/same-source-file-name/gyptest-pass-shared.py +18 -0
- data/ext/gyp/test/same-source-file-name/gyptest-static.py +34 -0
- data/ext/gyp/test/same-source-file-name/src/all.gyp +30 -0
- data/ext/gyp/test/same-source-file-name/src/double-executable.gyp +21 -0
- data/ext/gyp/test/same-source-file-name/src/double-shared.gyp +27 -0
- data/ext/gyp/test/same-source-file-name/src/double-static.gyp +22 -0
- data/ext/gyp/test/same-source-file-name/src/func.c +6 -0
- data/ext/gyp/test/same-source-file-name/src/prog1.c +16 -0
- data/ext/gyp/test/same-source-file-name/src/prog2.c +16 -0
- data/ext/gyp/test/same-source-file-name/src/prog3.c +18 -0
- data/ext/gyp/test/same-source-file-name/src/subdir1/func.c +6 -0
- data/ext/gyp/test/same-source-file-name/src/subdir2/func.c +6 -0
- data/ext/gyp/test/same-target-name/gyptest-same-target-name.py +18 -0
- data/ext/gyp/test/same-target-name/src/all.gyp +16 -0
- data/ext/gyp/test/same-target-name/src/executable1.gyp +15 -0
- data/ext/gyp/test/same-target-name/src/executable2.gyp +15 -0
- data/ext/gyp/test/same-target-name-different-directory/gyptest-all.py +41 -0
- data/ext/gyp/test/same-target-name-different-directory/src/subdir1/subdir1.gyp +66 -0
- data/ext/gyp/test/same-target-name-different-directory/src/subdir2/subdir2.gyp +66 -0
- data/ext/gyp/test/same-target-name-different-directory/src/subdirs.gyp +16 -0
- data/ext/gyp/test/same-target-name-different-directory/src/touch.py +11 -0
- data/ext/gyp/test/sanitize-rule-names/blah.S +0 -0
- data/ext/gyp/test/sanitize-rule-names/gyptest-sanitize-rule-names.py +17 -0
- data/ext/gyp/test/sanitize-rule-names/hello.cc +7 -0
- data/ext/gyp/test/sanitize-rule-names/sanitize-rule-names.gyp +27 -0
- data/ext/gyp/test/sanitize-rule-names/script.py +10 -0
- data/ext/gyp/test/self-dependency/common.gypi +13 -0
- data/ext/gyp/test/self-dependency/dep.gyp +23 -0
- data/ext/gyp/test/self-dependency/gyptest-self-dependency.py +19 -0
- data/ext/gyp/test/self-dependency/self_dependency.gyp +15 -0
- data/ext/gyp/test/sibling/gyptest-all.py +42 -0
- data/ext/gyp/test/sibling/gyptest-relocate.py +44 -0
- data/ext/gyp/test/sibling/src/build/all.gyp +16 -0
- data/ext/gyp/test/sibling/src/prog1/prog1.c +7 -0
- data/ext/gyp/test/sibling/src/prog1/prog1.gyp +15 -0
- data/ext/gyp/test/sibling/src/prog2/prog2.c +7 -0
- data/ext/gyp/test/sibling/src/prog2/prog2.gyp +15 -0
- data/ext/gyp/test/small/gyptest-small.py +56 -0
- data/ext/gyp/test/standalone/gyptest-standalone.py +35 -0
- data/ext/gyp/test/standalone/standalone.gyp +12 -0
- data/ext/gyp/test/standalone-static-library/gyptest-standalone-static-library.py +50 -0
- data/ext/gyp/test/standalone-static-library/invalid.gyp +16 -0
- data/ext/gyp/test/standalone-static-library/mylib.c +7 -0
- data/ext/gyp/test/standalone-static-library/mylib.gyp +26 -0
- data/ext/gyp/test/standalone-static-library/prog.c +7 -0
- data/ext/gyp/test/subdirectory/gyptest-SYMROOT-all.py +36 -0
- data/ext/gyp/test/subdirectory/gyptest-SYMROOT-default.py +37 -0
- data/ext/gyp/test/subdirectory/gyptest-subdir-all.py +34 -0
- data/ext/gyp/test/subdirectory/gyptest-subdir-default.py +34 -0
- data/ext/gyp/test/subdirectory/gyptest-subdir2-deep.py +25 -0
- data/ext/gyp/test/subdirectory/gyptest-top-all.py +43 -0
- data/ext/gyp/test/subdirectory/gyptest-top-default.py +43 -0
- data/ext/gyp/test/subdirectory/src/prog1.c +7 -0
- data/ext/gyp/test/subdirectory/src/prog1.gyp +21 -0
- data/ext/gyp/test/subdirectory/src/subdir/prog2.c +7 -0
- data/ext/gyp/test/subdirectory/src/subdir/prog2.gyp +18 -0
- data/ext/gyp/test/subdirectory/src/subdir/subdir2/prog3.c +7 -0
- data/ext/gyp/test/subdirectory/src/subdir/subdir2/prog3.gyp +18 -0
- data/ext/gyp/test/subdirectory/src/symroot.gypi +16 -0
- data/ext/gyp/test/symlinks/gyptest-symlinks.py +66 -0
- data/ext/gyp/test/symlinks/hello.c +12 -0
- data/ext/gyp/test/symlinks/hello.gyp +15 -0
- data/ext/gyp/test/target/gyptest-target.py +37 -0
- data/ext/gyp/test/target/hello.c +7 -0
- data/ext/gyp/test/target/target.gyp +24 -0
- data/ext/gyp/test/toolsets/gyptest-toolsets.py +31 -0
- data/ext/gyp/test/toolsets/main.cc +13 -0
- data/ext/gyp/test/toolsets/toolsets.cc +11 -0
- data/ext/gyp/test/toolsets/toolsets.gyp +62 -0
- data/ext/gyp/test/toolsets/toolsets_shared.cc +11 -0
- data/ext/gyp/test/toplevel-dir/gyptest-toplevel-dir.py +31 -0
- data/ext/gyp/test/toplevel-dir/src/sub1/main.gyp +18 -0
- data/ext/gyp/test/toplevel-dir/src/sub1/prog1.c +7 -0
- data/ext/gyp/test/toplevel-dir/src/sub2/prog2.c +7 -0
- data/ext/gyp/test/toplevel-dir/src/sub2/prog2.gyp +15 -0
- data/ext/gyp/test/variables/commands/commands-repeated.gyp +128 -0
- data/ext/gyp/test/variables/commands/commands-repeated.gyp.stdout +136 -0
- data/ext/gyp/test/variables/commands/commands-repeated.gypd.golden +77 -0
- data/ext/gyp/test/variables/commands/commands.gyp +91 -0
- data/ext/gyp/test/variables/commands/commands.gyp.ignore-env.stdout +96 -0
- data/ext/gyp/test/variables/commands/commands.gyp.stdout +96 -0
- data/ext/gyp/test/variables/commands/commands.gypd.golden +66 -0
- data/ext/gyp/test/variables/commands/commands.gypi +23 -0
- data/ext/gyp/test/variables/commands/gyptest-commands-ignore-env.py +47 -0
- data/ext/gyp/test/variables/commands/gyptest-commands-repeated-multidir.py +23 -0
- data/ext/gyp/test/variables/commands/gyptest-commands-repeated.py +40 -0
- data/ext/gyp/test/variables/commands/gyptest-commands.py +40 -0
- data/ext/gyp/test/variables/commands/repeated_multidir/dir_1/test_1.gyp +13 -0
- data/ext/gyp/test/variables/commands/repeated_multidir/dir_2/test_2.gyp +13 -0
- data/ext/gyp/test/variables/commands/repeated_multidir/main.gyp +16 -0
- data/ext/gyp/test/variables/commands/repeated_multidir/print_cwd_basename.py +11 -0
- data/ext/gyp/test/variables/commands/repeated_multidir/repeated_command_common.gypi +25 -0
- data/ext/gyp/test/variables/commands/test.py +7 -0
- data/ext/gyp/test/variables/commands/update_golden +11 -0
- data/ext/gyp/test/variables/empty/empty.gyp +13 -0
- data/ext/gyp/test/variables/empty/empty.gypi +9 -0
- data/ext/gyp/test/variables/empty/gyptest-empty.py +19 -0
- data/ext/gyp/test/variables/filelist/filelist.gyp.stdout +26 -0
- data/ext/gyp/test/variables/filelist/filelist.gypd.golden +43 -0
- data/ext/gyp/test/variables/filelist/gyptest-filelist-golden.py +53 -0
- data/ext/gyp/test/variables/filelist/gyptest-filelist.py +29 -0
- data/ext/gyp/test/variables/filelist/src/dummy.py +5 -0
- data/ext/gyp/test/variables/filelist/src/filelist.gyp +93 -0
- data/ext/gyp/test/variables/filelist/src/filelist2.gyp +40 -0
- data/ext/gyp/test/variables/filelist/update_golden +8 -0
- data/ext/gyp/test/variables/latelate/gyptest-latelate.py +25 -0
- data/ext/gyp/test/variables/latelate/src/latelate.gyp +34 -0
- data/ext/gyp/test/variables/latelate/src/program.cc +13 -0
- data/ext/gyp/test/variables/variable-in-path/C1/hello.cc +7 -0
- data/ext/gyp/test/variables/variable-in-path/gyptest-variable-in-path.py +23 -0
- data/ext/gyp/test/variables/variable-in-path/variable-in-path.gyp +31 -0
- data/ext/gyp/test/win/asm-files/asm-files.gyp +17 -0
- data/ext/gyp/test/win/asm-files/b.s +0 -0
- data/ext/gyp/test/win/asm-files/c.S +0 -0
- data/ext/gyp/test/win/asm-files/hello.cc +7 -0
- data/ext/gyp/test/win/batch-file-action/batch-file-action.gyp +21 -0
- data/ext/gyp/test/win/batch-file-action/infile +1 -0
- data/ext/gyp/test/win/batch-file-action/somecmd.bat +5 -0
- data/ext/gyp/test/win/command-quote/a.S +0 -0
- data/ext/gyp/test/win/command-quote/bat with spaces.bat +7 -0
- data/ext/gyp/test/win/command-quote/command-quote.gyp +79 -0
- data/ext/gyp/test/win/command-quote/go.bat +7 -0
- data/ext/gyp/test/win/command-quote/subdir/and/another/in-subdir.gyp +27 -0
- data/ext/gyp/test/win/compiler-flags/additional-include-dirs.cc +10 -0
- data/ext/gyp/test/win/compiler-flags/additional-include-dirs.gyp +20 -0
- data/ext/gyp/test/win/compiler-flags/additional-options.cc +10 -0
- data/ext/gyp/test/win/compiler-flags/additional-options.gyp +31 -0
- data/ext/gyp/test/win/compiler-flags/analysis.gyp +40 -0
- data/ext/gyp/test/win/compiler-flags/buffer-security-check.gyp +51 -0
- data/ext/gyp/test/win/compiler-flags/buffer-security.cc +12 -0
- data/ext/gyp/test/win/compiler-flags/calling-convention-cdecl.def +6 -0
- data/ext/gyp/test/win/compiler-flags/calling-convention-fastcall.def +6 -0
- data/ext/gyp/test/win/compiler-flags/calling-convention-stdcall.def +6 -0
- data/ext/gyp/test/win/compiler-flags/calling-convention-vectorcall.def +6 -0
- data/ext/gyp/test/win/compiler-flags/calling-convention.cc +6 -0
- data/ext/gyp/test/win/compiler-flags/calling-convention.gyp +66 -0
- data/ext/gyp/test/win/compiler-flags/character-set-mbcs.cc +11 -0
- data/ext/gyp/test/win/compiler-flags/character-set-unicode.cc +15 -0
- data/ext/gyp/test/win/compiler-flags/character-set.gyp +35 -0
- data/ext/gyp/test/win/compiler-flags/compile-as-managed.cc +9 -0
- data/ext/gyp/test/win/compiler-flags/compile-as-managed.gyp +29 -0
- data/ext/gyp/test/win/compiler-flags/compile-as-winrt.cc +12 -0
- data/ext/gyp/test/win/compiler-flags/compile-as-winrt.gyp +20 -0
- data/ext/gyp/test/win/compiler-flags/debug-format.gyp +48 -0
- data/ext/gyp/test/win/compiler-flags/default-char-is-unsigned.cc +15 -0
- data/ext/gyp/test/win/compiler-flags/default-char-is-unsigned.gyp +20 -0
- data/ext/gyp/test/win/compiler-flags/disable-specific-warnings.cc +9 -0
- data/ext/gyp/test/win/compiler-flags/disable-specific-warnings.gyp +29 -0
- data/ext/gyp/test/win/compiler-flags/enable-enhanced-instruction-set.cc +28 -0
- data/ext/gyp/test/win/compiler-flags/enable-enhanced-instruction-set.gyp +68 -0
- data/ext/gyp/test/win/compiler-flags/exception-handling-on.cc +24 -0
- data/ext/gyp/test/win/compiler-flags/exception-handling.gyp +46 -0
- data/ext/gyp/test/win/compiler-flags/floating-point-model-fast.cc +19 -0
- data/ext/gyp/test/win/compiler-flags/floating-point-model-precise.cc +19 -0
- data/ext/gyp/test/win/compiler-flags/floating-point-model-strict.cc +19 -0
- data/ext/gyp/test/win/compiler-flags/floating-point-model.gyp +43 -0
- data/ext/gyp/test/win/compiler-flags/force-include-files-with-precompiled.cc +10 -0
- data/ext/gyp/test/win/compiler-flags/force-include-files.cc +8 -0
- data/ext/gyp/test/win/compiler-flags/force-include-files.gyp +36 -0
- data/ext/gyp/test/win/compiler-flags/function-level-linking.cc +11 -0
- data/ext/gyp/test/win/compiler-flags/function-level-linking.gyp +28 -0
- data/ext/gyp/test/win/compiler-flags/hello.cc +7 -0
- data/ext/gyp/test/win/compiler-flags/optimizations.gyp +207 -0
- data/ext/gyp/test/win/compiler-flags/pdbname-override.gyp +26 -0
- data/ext/gyp/test/win/compiler-flags/pdbname.cc +7 -0
- data/ext/gyp/test/win/compiler-flags/pdbname.gyp +24 -0
- data/ext/gyp/test/win/compiler-flags/precomp.cc +6 -0
- data/ext/gyp/test/win/compiler-flags/rtti-on.cc +11 -0
- data/ext/gyp/test/win/compiler-flags/rtti.gyp +37 -0
- data/ext/gyp/test/win/compiler-flags/runtime-checks.cc +11 -0
- data/ext/gyp/test/win/compiler-flags/runtime-checks.gyp +29 -0
- data/ext/gyp/test/win/compiler-flags/runtime-library-md.cc +19 -0
- data/ext/gyp/test/win/compiler-flags/runtime-library-mdd.cc +19 -0
- data/ext/gyp/test/win/compiler-flags/runtime-library-mt.cc +19 -0
- data/ext/gyp/test/win/compiler-flags/runtime-library-mtd.cc +19 -0
- data/ext/gyp/test/win/compiler-flags/runtime-library.gyp +48 -0
- data/ext/gyp/test/win/compiler-flags/subdir/header.h +0 -0
- data/ext/gyp/test/win/compiler-flags/treat-wchar-t-as-built-in-type.gyp +33 -0
- data/ext/gyp/test/win/compiler-flags/treat-wchar-t-as-built-in-type1.cc +11 -0
- data/ext/gyp/test/win/compiler-flags/treat-wchar-t-as-built-in-type2.cc +11 -0
- data/ext/gyp/test/win/compiler-flags/uninit.cc +13 -0
- data/ext/gyp/test/win/compiler-flags/warning-as-error.cc +9 -0
- data/ext/gyp/test/win/compiler-flags/warning-as-error.gyp +37 -0
- data/ext/gyp/test/win/compiler-flags/warning-level.gyp +115 -0
- data/ext/gyp/test/win/compiler-flags/warning-level1.cc +8 -0
- data/ext/gyp/test/win/compiler-flags/warning-level2.cc +14 -0
- data/ext/gyp/test/win/compiler-flags/warning-level3.cc +11 -0
- data/ext/gyp/test/win/compiler-flags/warning-level4.cc +10 -0
- data/ext/gyp/test/win/enable-winrt/dllmain.cc +30 -0
- data/ext/gyp/test/win/enable-winrt/enable-winrt.gyp +39 -0
- data/ext/gyp/test/win/generator-output-different-drive/gyptest-generator-output-different-drive.py +44 -0
- data/ext/gyp/test/win/generator-output-different-drive/prog.c +10 -0
- data/ext/gyp/test/win/generator-output-different-drive/prog.gyp +15 -0
- data/ext/gyp/test/win/gyptest-asm-files.py +26 -0
- data/ext/gyp/test/win/gyptest-cl-additional-include-dirs.py +22 -0
- data/ext/gyp/test/win/gyptest-cl-additional-options.py +28 -0
- data/ext/gyp/test/win/gyptest-cl-analysis.py +30 -0
- data/ext/gyp/test/win/gyptest-cl-buffer-security-check.py +53 -0
- data/ext/gyp/test/win/gyptest-cl-calling-convention.py +22 -0
- data/ext/gyp/test/win/gyptest-cl-character-set.py +22 -0
- data/ext/gyp/test/win/gyptest-cl-compile-as-managed.py +24 -0
- data/ext/gyp/test/win/gyptest-cl-compile-as-winrt.py +20 -0
- data/ext/gyp/test/win/gyptest-cl-debug-format.py +43 -0
- data/ext/gyp/test/win/gyptest-cl-default-char-is-unsigned.py +22 -0
- data/ext/gyp/test/win/gyptest-cl-disable-specific-warnings.py +32 -0
- data/ext/gyp/test/win/gyptest-cl-enable-enhanced-instruction-set.py +49 -0
- data/ext/gyp/test/win/gyptest-cl-exception-handling.py +33 -0
- data/ext/gyp/test/win/gyptest-cl-floating-point-model.py +22 -0
- data/ext/gyp/test/win/gyptest-cl-force-include-files.py +22 -0
- data/ext/gyp/test/win/gyptest-cl-function-level-linking.py +54 -0
- data/ext/gyp/test/win/gyptest-cl-optimizations.py +105 -0
- data/ext/gyp/test/win/gyptest-cl-pdbname-override.py +27 -0
- data/ext/gyp/test/win/gyptest-cl-pdbname.py +30 -0
- data/ext/gyp/test/win/gyptest-cl-rtti.py +30 -0
- data/ext/gyp/test/win/gyptest-cl-runtime-checks.py +30 -0
- data/ext/gyp/test/win/gyptest-cl-runtime-library.py +22 -0
- data/ext/gyp/test/win/gyptest-cl-treat-wchar-t-as-built-in-type.py +22 -0
- data/ext/gyp/test/win/gyptest-cl-warning-as-error.py +30 -0
- data/ext/gyp/test/win/gyptest-cl-warning-level.py +41 -0
- data/ext/gyp/test/win/gyptest-command-quote.py +42 -0
- data/ext/gyp/test/win/gyptest-crosscompile-ar.py +29 -0
- data/ext/gyp/test/win/gyptest-lib-ltcg.py +22 -0
- data/ext/gyp/test/win/gyptest-link-additional-deps.py +22 -0
- data/ext/gyp/test/win/gyptest-link-additional-options.py +22 -0
- data/ext/gyp/test/win/gyptest-link-aslr.py +35 -0
- data/ext/gyp/test/win/gyptest-link-base-address.py +62 -0
- data/ext/gyp/test/win/gyptest-link-debug-info.py +26 -0
- data/ext/gyp/test/win/gyptest-link-default-libs.py +22 -0
- data/ext/gyp/test/win/gyptest-link-deffile.py +43 -0
- data/ext/gyp/test/win/gyptest-link-defrelink.py +56 -0
- data/ext/gyp/test/win/gyptest-link-delay-load-dlls.py +35 -0
- data/ext/gyp/test/win/gyptest-link-embed-manifest.py +100 -0
- data/ext/gyp/test/win/gyptest-link-enable-uac.py +104 -0
- data/ext/gyp/test/win/gyptest-link-enable-winrt-app-revision.py +43 -0
- data/ext/gyp/test/win/gyptest-link-enable-winrt-target-platform-version.py +47 -0
- data/ext/gyp/test/win/gyptest-link-enable-winrt.py +37 -0
- data/ext/gyp/test/win/gyptest-link-entrypointsymbol.py +24 -0
- data/ext/gyp/test/win/gyptest-link-fixed-base.py +40 -0
- data/ext/gyp/test/win/gyptest-link-force-symbol-reference.py +26 -0
- data/ext/gyp/test/win/gyptest-link-generate-manifest.py +127 -0
- data/ext/gyp/test/win/gyptest-link-incremental.py +37 -0
- data/ext/gyp/test/win/gyptest-link-large-address-aware.py +35 -0
- data/ext/gyp/test/win/gyptest-link-large-pdb.py +76 -0
- data/ext/gyp/test/win/gyptest-link-library-adjust.py +21 -0
- data/ext/gyp/test/win/gyptest-link-library-directories.py +35 -0
- data/ext/gyp/test/win/gyptest-link-ltcg.py +44 -0
- data/ext/gyp/test/win/gyptest-link-mapfile.py +44 -0
- data/ext/gyp/test/win/gyptest-link-nodefaultlib.py +24 -0
- data/ext/gyp/test/win/gyptest-link-noimportlib.py +30 -0
- data/ext/gyp/test/win/gyptest-link-nxcompat.py +37 -0
- data/ext/gyp/test/win/gyptest-link-opt-icf.py +41 -0
- data/ext/gyp/test/win/gyptest-link-opt-ref.py +40 -0
- data/ext/gyp/test/win/gyptest-link-ordering.py +103 -0
- data/ext/gyp/test/win/gyptest-link-outputfile.py +28 -0
- data/ext/gyp/test/win/gyptest-link-pdb-no-output.py +25 -0
- data/ext/gyp/test/win/gyptest-link-pdb-output.py +33 -0
- data/ext/gyp/test/win/gyptest-link-pdb.py +35 -0
- data/ext/gyp/test/win/gyptest-link-pgo.py +75 -0
- data/ext/gyp/test/win/gyptest-link-profile.py +37 -0
- data/ext/gyp/test/win/gyptest-link-restat-importlib.py +47 -0
- data/ext/gyp/test/win/gyptest-link-safeseh.py +46 -0
- data/ext/gyp/test/win/gyptest-link-shard.py +30 -0
- data/ext/gyp/test/win/gyptest-link-stacksize.py +62 -0
- data/ext/gyp/test/win/gyptest-link-subsystem.py +38 -0
- data/ext/gyp/test/win/gyptest-link-target-machine.py +28 -0
- data/ext/gyp/test/win/gyptest-link-tsaware.py +33 -0
- data/ext/gyp/test/win/gyptest-link-uldi-depending-on-module.py +24 -0
- data/ext/gyp/test/win/gyptest-link-uldi.py +28 -0
- data/ext/gyp/test/win/gyptest-link-unsupported-manifest.py +27 -0
- data/ext/gyp/test/win/gyptest-link-update-manifest.py +104 -0
- data/ext/gyp/test/win/gyptest-link-warnings-as-errors.py +24 -0
- data/ext/gyp/test/win/gyptest-long-command-line.py +23 -0
- data/ext/gyp/test/win/gyptest-macro-projectname.py +24 -0
- data/ext/gyp/test/win/gyptest-macro-targetext.py +26 -0
- data/ext/gyp/test/win/gyptest-macro-targetfilename.py +37 -0
- data/ext/gyp/test/win/gyptest-macro-targetname.py +29 -0
- data/ext/gyp/test/win/gyptest-macro-targetpath.py +30 -0
- data/ext/gyp/test/win/gyptest-macro-vcinstalldir.py +24 -0
- data/ext/gyp/test/win/gyptest-macros-containing-gyp.py +21 -0
- data/ext/gyp/test/win/gyptest-macros-in-inputs-and-outputs.py +27 -0
- data/ext/gyp/test/win/gyptest-midl-excluded.py +22 -0
- data/ext/gyp/test/win/gyptest-midl-includedirs.py +21 -0
- data/ext/gyp/test/win/gyptest-midl-rules.py +28 -0
- data/ext/gyp/test/win/gyptest-ml-safeseh.py +22 -0
- data/ext/gyp/test/win/gyptest-quoting-commands.py +25 -0
- data/ext/gyp/test/win/gyptest-rc-build.py +29 -0
- data/ext/gyp/test/win/gyptest-sys.py +27 -0
- data/ext/gyp/test/win/gyptest-system-include.py +21 -0
- data/ext/gyp/test/win/idl-excluded/bad.idl +6 -0
- data/ext/gyp/test/win/idl-excluded/copy-file.py +11 -0
- data/ext/gyp/test/win/idl-excluded/idl-excluded.gyp +58 -0
- data/ext/gyp/test/win/idl-excluded/program.cc +7 -0
- data/ext/gyp/test/win/idl-includedirs/hello.cc +7 -0
- data/ext/gyp/test/win/idl-includedirs/idl-includedirs.gyp +26 -0
- data/ext/gyp/test/win/idl-includedirs/subdir/bar.idl +13 -0
- data/ext/gyp/test/win/idl-includedirs/subdir/foo.idl +14 -0
- data/ext/gyp/test/win/idl-rules/Window.idl +9 -0
- data/ext/gyp/test/win/idl-rules/basic-idl.gyp +67 -0
- data/ext/gyp/test/win/idl-rules/history_indexer.idl +17 -0
- data/ext/gyp/test/win/idl-rules/history_indexer_user.cc +15 -0
- data/ext/gyp/test/win/idl-rules/idl_compiler.py +17 -0
- data/ext/gyp/test/win/importlib/dll_no_exports.cc +9 -0
- data/ext/gyp/test/win/importlib/has-exports.cc +10 -0
- data/ext/gyp/test/win/importlib/hello.cc +9 -0
- data/ext/gyp/test/win/importlib/importlib.gyp +30 -0
- data/ext/gyp/test/win/importlib/noimplib.gyp +16 -0
- data/ext/gyp/test/win/large-pdb/dllmain.cc +9 -0
- data/ext/gyp/test/win/large-pdb/large-pdb.gyp +98 -0
- data/ext/gyp/test/win/large-pdb/main.cc +7 -0
- data/ext/gyp/test/win/lib-crosscompile/answer.cc +9 -0
- data/ext/gyp/test/win/lib-crosscompile/answer.h +5 -0
- data/ext/gyp/test/win/lib-crosscompile/use_host_ar.gyp +17 -0
- data/ext/gyp/test/win/lib-flags/answer.cc +9 -0
- data/ext/gyp/test/win/lib-flags/answer.h +5 -0
- data/ext/gyp/test/win/lib-flags/ltcg.gyp +21 -0
- data/ext/gyp/test/win/linker-flags/a/x.cc +7 -0
- data/ext/gyp/test/win/linker-flags/a/z.cc +7 -0
- data/ext/gyp/test/win/linker-flags/additional-deps.cc +10 -0
- data/ext/gyp/test/win/linker-flags/additional-deps.gyp +30 -0
- data/ext/gyp/test/win/linker-flags/additional-options.gyp +29 -0
- data/ext/gyp/test/win/linker-flags/aslr.gyp +35 -0
- data/ext/gyp/test/win/linker-flags/b/y.cc +7 -0
- data/ext/gyp/test/win/linker-flags/base-address.gyp +38 -0
- data/ext/gyp/test/win/linker-flags/debug-info.gyp +28 -0
- data/ext/gyp/test/win/linker-flags/deffile-multiple.gyp +17 -0
- data/ext/gyp/test/win/linker-flags/deffile.cc +13 -0
- data/ext/gyp/test/win/linker-flags/deffile.def +8 -0
- data/ext/gyp/test/win/linker-flags/deffile.gyp +38 -0
- data/ext/gyp/test/win/linker-flags/delay-load-dlls.gyp +35 -0
- data/ext/gyp/test/win/linker-flags/delay-load.cc +10 -0
- data/ext/gyp/test/win/linker-flags/embed-manifest.gyp +109 -0
- data/ext/gyp/test/win/linker-flags/enable-uac.gyp +45 -0
- data/ext/gyp/test/win/linker-flags/entrypointsymbol.cc +13 -0
- data/ext/gyp/test/win/linker-flags/entrypointsymbol.gyp +28 -0
- data/ext/gyp/test/win/linker-flags/extra.manifest +11 -0
- data/ext/gyp/test/win/linker-flags/extra2.manifest +11 -0
- data/ext/gyp/test/win/linker-flags/fixed-base.gyp +52 -0
- data/ext/gyp/test/win/linker-flags/force-symbol-reference.gyp +39 -0
- data/ext/gyp/test/win/linker-flags/generate-manifest.gyp +166 -0
- data/ext/gyp/test/win/linker-flags/hello.cc +7 -0
- data/ext/gyp/test/win/linker-flags/incremental.gyp +65 -0
- data/ext/gyp/test/win/linker-flags/inline_test.cc +12 -0
- data/ext/gyp/test/win/linker-flags/inline_test.h +5 -0
- data/ext/gyp/test/win/linker-flags/inline_test_main.cc +15 -0
- data/ext/gyp/test/win/linker-flags/large-address-aware.gyp +28 -0
- data/ext/gyp/test/win/linker-flags/library-adjust.cc +10 -0
- data/ext/gyp/test/win/linker-flags/library-adjust.gyp +16 -0
- data/ext/gyp/test/win/linker-flags/library-directories-define.cc +7 -0
- data/ext/gyp/test/win/linker-flags/library-directories-reference.cc +10 -0
- data/ext/gyp/test/win/linker-flags/library-directories.gyp +42 -0
- data/ext/gyp/test/win/linker-flags/link-ordering.gyp +95 -0
- data/ext/gyp/test/win/linker-flags/link-warning.cc +10 -0
- data/ext/gyp/test/win/linker-flags/ltcg.gyp +42 -0
- data/ext/gyp/test/win/linker-flags/main-crt.c +8 -0
- data/ext/gyp/test/win/linker-flags/manifest-in-comment.cc +13 -0
- data/ext/gyp/test/win/linker-flags/mapfile.cc +12 -0
- data/ext/gyp/test/win/linker-flags/mapfile.gyp +45 -0
- data/ext/gyp/test/win/linker-flags/no-default-libs.cc +18 -0
- data/ext/gyp/test/win/linker-flags/no-default-libs.gyp +13 -0
- data/ext/gyp/test/win/linker-flags/nodefaultlib.cc +13 -0
- data/ext/gyp/test/win/linker-flags/nodefaultlib.gyp +30 -0
- data/ext/gyp/test/win/linker-flags/nxcompat.gyp +35 -0
- data/ext/gyp/test/win/linker-flags/opt-icf.cc +29 -0
- data/ext/gyp/test/win/linker-flags/opt-icf.gyp +63 -0
- data/ext/gyp/test/win/linker-flags/opt-ref.cc +11 -0
- data/ext/gyp/test/win/linker-flags/opt-ref.gyp +56 -0
- data/ext/gyp/test/win/linker-flags/outputfile.gyp +58 -0
- data/ext/gyp/test/win/linker-flags/pdb-output.gyp +49 -0
- data/ext/gyp/test/win/linker-flags/pgo.gyp +143 -0
- data/ext/gyp/test/win/linker-flags/profile.gyp +50 -0
- data/ext/gyp/test/win/linker-flags/program-database.gyp +40 -0
- data/ext/gyp/test/win/linker-flags/safeseh.gyp +79 -0
- data/ext/gyp/test/win/linker-flags/safeseh_hello.cc +11 -0
- data/ext/gyp/test/win/linker-flags/safeseh_zero.asm +10 -0
- data/ext/gyp/test/win/linker-flags/safeseh_zero64.asm +9 -0
- data/ext/gyp/test/win/linker-flags/stacksize.gyp +44 -0
- data/ext/gyp/test/win/linker-flags/subdir/library.gyp +13 -0
- data/ext/gyp/test/win/linker-flags/subsystem-windows.cc +9 -0
- data/ext/gyp/test/win/linker-flags/subsystem.gyp +70 -0
- data/ext/gyp/test/win/linker-flags/target-machine.gyp +48 -0
- data/ext/gyp/test/win/linker-flags/tsaware.gyp +28 -0
- data/ext/gyp/test/win/linker-flags/unsupported-manifest.gyp +13 -0
- data/ext/gyp/test/win/linker-flags/update_pgd.py +35 -0
- data/ext/gyp/test/win/linker-flags/warn-as-error.gyp +33 -0
- data/ext/gyp/test/win/linker-flags/x.cc +7 -0
- data/ext/gyp/test/win/linker-flags/y.cc +7 -0
- data/ext/gyp/test/win/linker-flags/z.cc +7 -0
- data/ext/gyp/test/win/long-command-line/function.cc +7 -0
- data/ext/gyp/test/win/long-command-line/hello.cc +7 -0
- data/ext/gyp/test/win/long-command-line/long-command-line.gyp +54 -0
- data/ext/gyp/test/win/ml-safeseh/a.asm +10 -0
- data/ext/gyp/test/win/ml-safeseh/hello.cc +11 -0
- data/ext/gyp/test/win/ml-safeseh/ml-safeseh.gyp +24 -0
- data/ext/gyp/test/win/precompiled/gyptest-all.py +21 -0
- data/ext/gyp/test/win/precompiled/hello.c +14 -0
- data/ext/gyp/test/win/precompiled/hello.gyp +28 -0
- data/ext/gyp/test/win/precompiled/hello2.c +13 -0
- data/ext/gyp/test/win/precompiled/precomp.c +8 -0
- data/ext/gyp/test/win/rc-build/Resource.h +26 -0
- data/ext/gyp/test/win/rc-build/hello.cpp +30 -0
- data/ext/gyp/test/win/rc-build/hello.gyp +92 -0
- data/ext/gyp/test/win/rc-build/hello.h +3 -0
- data/ext/gyp/test/win/rc-build/hello.ico +0 -0
- data/ext/gyp/test/win/rc-build/hello.rc +86 -0
- data/ext/gyp/test/win/rc-build/hello3.rc +87 -0
- data/ext/gyp/test/win/rc-build/small.ico +0 -0
- data/ext/gyp/test/win/rc-build/subdir/hello2.rc +87 -0
- data/ext/gyp/test/win/rc-build/subdir/include.h +1 -0
- data/ext/gyp/test/win/rc-build/targetver.h +24 -0
- data/ext/gyp/test/win/shard/hello.cc +7 -0
- data/ext/gyp/test/win/shard/hello1.cc +7 -0
- data/ext/gyp/test/win/shard/hello2.cc +7 -0
- data/ext/gyp/test/win/shard/hello3.cc +7 -0
- data/ext/gyp/test/win/shard/hello4.cc +7 -0
- data/ext/gyp/test/win/shard/shard.gyp +31 -0
- data/ext/gyp/test/win/shard/shard_ref.gyp +41 -0
- data/ext/gyp/test/win/system-include/bar/header.h +0 -0
- data/ext/gyp/test/win/system-include/common/commonheader.h +0 -0
- data/ext/gyp/test/win/system-include/foo/header.h +0 -0
- data/ext/gyp/test/win/system-include/main.cc +4 -0
- data/ext/gyp/test/win/system-include/test.gyp +26 -0
- data/ext/gyp/test/win/uldi/a.cc +7 -0
- data/ext/gyp/test/win/uldi/b.cc +7 -0
- data/ext/gyp/test/win/uldi/dll.cc +6 -0
- data/ext/gyp/test/win/uldi/exe.cc +7 -0
- data/ext/gyp/test/win/uldi/main.cc +10 -0
- data/ext/gyp/test/win/uldi/uldi-depending-on-module.gyp +42 -0
- data/ext/gyp/test/win/uldi/uldi.gyp +45 -0
- data/ext/gyp/test/win/vs-macros/as.py +20 -0
- data/ext/gyp/test/win/vs-macros/containing-gyp.gyp +39 -0
- data/ext/gyp/test/win/vs-macros/do_stuff.py +8 -0
- data/ext/gyp/test/win/vs-macros/hello.cc +7 -0
- data/ext/gyp/test/win/vs-macros/input-output-macros.gyp +32 -0
- data/ext/gyp/test/win/vs-macros/input.S +0 -0
- data/ext/gyp/test/win/vs-macros/projectname.gyp +29 -0
- data/ext/gyp/test/win/vs-macros/stuff.blah +1 -0
- data/ext/gyp/test/win/vs-macros/targetext.gyp +59 -0
- data/ext/gyp/test/win/vs-macros/targetfilename.gyp +59 -0
- data/ext/gyp/test/win/vs-macros/targetname.gyp +52 -0
- data/ext/gyp/test/win/vs-macros/targetpath.gyp +59 -0
- data/ext/gyp/test/win/vs-macros/test_exists.py +10 -0
- data/ext/gyp/test/win/vs-macros/vcinstalldir.gyp +41 -0
- data/ext/gyp/test/win/win-driver-target-type/win-driver-target-type.c +10 -0
- data/ext/gyp/test/win/win-driver-target-type/win-driver-target-type.gyp +32 -0
- data/ext/gyp/test/win/win-driver-target-type/win-driver-target-type.h +13 -0
- data/ext/gyp/test/win/win-driver-target-type/win-driver-target-type.rc +14 -0
- data/ext/gyp/test/win/win-tool/copies_readonly_files.gyp +29 -0
- data/ext/gyp/test/win/win-tool/gyptest-win-tool-handles-readonly-files.py +55 -0
- data/ext/gyp/test/win/winrt-app-type-revision/dllmain.cc +30 -0
- data/ext/gyp/test/win/winrt-app-type-revision/winrt-app-type-revison.gyp +43 -0
- data/ext/gyp/test/win/winrt-target-platform-version/dllmain.cc +30 -0
- data/ext/gyp/test/win/winrt-target-platform-version/winrt-target-platform-version.gyp +49 -0
- data/ext/gyp/test/xcode-ninja/list_excluded/gyptest-all.py +49 -0
- data/ext/gyp/test/xcode-ninja/list_excluded/hello.cpp +7 -0
- data/ext/gyp/test/xcode-ninja/list_excluded/hello_exclude.gyp +19 -0
- data/ext/gyp/test/xcode-ninja/list_excluded/hello_excluded.cpp +7 -0
- data/ext/gyp/tools/README +15 -0
- data/ext/gyp/tools/Xcode/README +5 -0
- data/ext/gyp/tools/Xcode/Specifications/gyp.pbfilespec +27 -0
- data/ext/gyp/tools/Xcode/Specifications/gyp.xclangspec +226 -0
- data/ext/gyp/tools/emacs/README +12 -0
- data/ext/gyp/tools/emacs/gyp-tests.el +63 -0
- data/ext/gyp/tools/emacs/gyp.el +275 -0
- data/ext/gyp/tools/emacs/run-unit-tests.sh +7 -0
- data/ext/gyp/tools/emacs/testdata/media.gyp +1105 -0
- data/ext/gyp/tools/emacs/testdata/media.gyp.fontified +1107 -0
- data/ext/gyp/tools/graphviz.py +102 -0
- data/ext/gyp/tools/pretty_gyp.py +156 -0
- data/ext/gyp/tools/pretty_sln.py +171 -0
- data/ext/gyp/tools/pretty_vcproj.py +337 -0
- data/ext/libuv/.gitattributes +1 -0
- data/ext/libuv/.github/ISSUE_TEMPLATE.md +13 -0
- data/ext/libuv/.github/stale.yml +22 -0
- data/ext/libuv/.gitignore +80 -0
- data/ext/libuv/.mailmap +50 -0
- data/ext/libuv/AUTHORS +415 -0
- data/ext/libuv/CMakeLists.txt +430 -0
- data/ext/libuv/CONTRIBUTING.md +172 -0
- data/ext/libuv/ChangeLog +4548 -0
- data/ext/libuv/LICENSE +70 -0
- data/ext/libuv/LICENSE-docs +396 -0
- data/ext/libuv/MAINTAINERS.md +48 -0
- data/ext/libuv/Makefile.am +548 -0
- data/ext/libuv/README.md +431 -0
- data/ext/libuv/SUPPORTED_PLATFORMS.md +68 -0
- data/ext/libuv/android-configure-arm +23 -0
- data/ext/libuv/android-configure-arm64 +23 -0
- data/ext/libuv/android-configure-x86 +23 -0
- data/ext/libuv/android-configure-x86_64 +25 -0
- data/ext/libuv/appveyor.yml +32 -0
- data/ext/libuv/autogen.sh +46 -0
- data/ext/libuv/common.gypi +213 -0
- data/ext/libuv/configure.ac +82 -0
- data/ext/libuv/docs/Makefile +183 -0
- data/ext/libuv/docs/code/cgi/main.c +81 -0
- data/ext/libuv/docs/code/cgi/tick.c +13 -0
- data/ext/libuv/docs/code/detach/main.c +31 -0
- data/ext/libuv/docs/code/dns/main.c +80 -0
- data/ext/libuv/docs/code/helloworld/main.c +15 -0
- data/ext/libuv/docs/code/idle-basic/main.c +24 -0
- data/ext/libuv/docs/code/idle-compute/main.c +43 -0
- data/ext/libuv/docs/code/interfaces/main.c +33 -0
- data/ext/libuv/docs/code/locks/main.c +57 -0
- data/ext/libuv/docs/code/multi-echo-server/hammer.js +20 -0
- data/ext/libuv/docs/code/multi-echo-server/main.c +114 -0
- data/ext/libuv/docs/code/multi-echo-server/worker.c +88 -0
- data/ext/libuv/docs/code/onchange/main.c +44 -0
- data/ext/libuv/docs/code/pipe-echo-server/main.c +94 -0
- data/ext/libuv/docs/code/plugin/hello.c +5 -0
- data/ext/libuv/docs/code/plugin/main.c +39 -0
- data/ext/libuv/docs/code/plugin/plugin.h +7 -0
- data/ext/libuv/docs/code/proc-streams/main.c +49 -0
- data/ext/libuv/docs/code/proc-streams/test.c +8 -0
- data/ext/libuv/docs/code/progress/main.c +47 -0
- data/ext/libuv/docs/code/queue-cancel/main.c +59 -0
- data/ext/libuv/docs/code/queue-work/main.c +44 -0
- data/ext/libuv/docs/code/ref-timer/main.c +29 -0
- data/ext/libuv/docs/code/signal/main.c +66 -0
- data/ext/libuv/docs/code/spawn/main.c +36 -0
- data/ext/libuv/docs/code/tcp-echo-server/main.c +87 -0
- data/ext/libuv/docs/code/thread-create/main.c +36 -0
- data/ext/libuv/docs/code/tty/main.c +29 -0
- data/ext/libuv/docs/code/tty-gravity/main.c +48 -0
- data/ext/libuv/docs/code/udp-dhcp/main.c +127 -0
- data/ext/libuv/docs/code/uvcat/main.c +63 -0
- data/ext/libuv/docs/code/uvstop/main.c +33 -0
- data/ext/libuv/docs/code/uvtee/main.c +80 -0
- data/ext/libuv/docs/code/uvwget/main.c +166 -0
- data/ext/libuv/docs/make.bat +243 -0
- data/ext/libuv/docs/src/api.rst +35 -0
- data/ext/libuv/docs/src/async.rst +65 -0
- data/ext/libuv/docs/src/check.rst +46 -0
- data/ext/libuv/docs/src/conf.py +348 -0
- data/ext/libuv/docs/src/design.rst +140 -0
- data/ext/libuv/docs/src/dll.rst +44 -0
- data/ext/libuv/docs/src/dns.rst +108 -0
- data/ext/libuv/docs/src/errors.rst +365 -0
- data/ext/libuv/docs/src/fs.rst +689 -0
- data/ext/libuv/docs/src/fs_event.rst +132 -0
- data/ext/libuv/docs/src/fs_poll.rst +77 -0
- data/ext/libuv/docs/src/guide/about.rst +22 -0
- data/ext/libuv/docs/src/guide/basics.rst +219 -0
- data/ext/libuv/docs/src/guide/eventloops.rst +48 -0
- data/ext/libuv/docs/src/guide/filesystem.rst +330 -0
- data/ext/libuv/docs/src/guide/introduction.rst +75 -0
- data/ext/libuv/docs/src/guide/networking.rst +250 -0
- data/ext/libuv/docs/src/guide/processes.rst +406 -0
- data/ext/libuv/docs/src/guide/threads.rst +385 -0
- data/ext/libuv/docs/src/guide/utilities.rst +437 -0
- data/ext/libuv/docs/src/guide.rst +22 -0
- data/ext/libuv/docs/src/handle.rst +283 -0
- data/ext/libuv/docs/src/idle.rst +54 -0
- data/ext/libuv/docs/src/index.rst +62 -0
- data/ext/libuv/docs/src/loop.rst +238 -0
- data/ext/libuv/docs/src/migration_010_100.rst +244 -0
- data/ext/libuv/docs/src/misc.rst +702 -0
- data/ext/libuv/docs/src/pipe.rst +116 -0
- data/ext/libuv/docs/src/poll.rst +121 -0
- data/ext/libuv/docs/src/prepare.rst +46 -0
- data/ext/libuv/docs/src/process.rst +250 -0
- data/ext/libuv/docs/src/request.rst +116 -0
- data/ext/libuv/docs/src/signal.rst +101 -0
- data/ext/libuv/docs/src/sphinx-plugins/manpage.py +45 -0
- data/ext/libuv/docs/src/static/architecture.png +0 -0
- data/ext/libuv/docs/src/static/diagrams.key/Data/st0-311.jpg +0 -0
- data/ext/libuv/docs/src/static/diagrams.key/Data/st1-475.jpg +0 -0
- data/ext/libuv/docs/src/static/diagrams.key/Index.zip +0 -0
- data/ext/libuv/docs/src/static/diagrams.key/Metadata/BuildVersionHistory.plist +8 -0
- data/ext/libuv/docs/src/static/diagrams.key/Metadata/DocumentIdentifier +1 -0
- data/ext/libuv/docs/src/static/diagrams.key/Metadata/Properties.plist +0 -0
- data/ext/libuv/docs/src/static/diagrams.key/preview-micro.jpg +0 -0
- data/ext/libuv/docs/src/static/diagrams.key/preview-web.jpg +0 -0
- data/ext/libuv/docs/src/static/diagrams.key/preview.jpg +0 -0
- data/ext/libuv/docs/src/static/favicon.ico +0 -0
- data/ext/libuv/docs/src/static/logo.png +0 -0
- data/ext/libuv/docs/src/static/loop_iteration.png +0 -0
- data/ext/libuv/docs/src/stream.rst +237 -0
- data/ext/libuv/docs/src/tcp.rst +125 -0
- data/ext/libuv/docs/src/threading.rst +197 -0
- data/ext/libuv/docs/src/threadpool.rst +69 -0
- data/ext/libuv/docs/src/timer.rst +81 -0
- data/ext/libuv/docs/src/tty.rst +139 -0
- data/ext/libuv/docs/src/udp.rst +390 -0
- data/ext/libuv/docs/src/upgrading.rst +11 -0
- data/ext/libuv/docs/src/version.rst +60 -0
- data/ext/libuv/gyp_uv.py +73 -0
- data/ext/libuv/img/banner.png +0 -0
- data/ext/libuv/img/logos.svg +152 -0
- data/ext/libuv/include/uv/aix.h +32 -0
- data/ext/libuv/include/uv/android-ifaddrs.h +54 -0
- data/ext/libuv/include/uv/bsd.h +34 -0
- data/ext/libuv/include/uv/darwin.h +61 -0
- data/ext/libuv/include/uv/errno.h +448 -0
- data/ext/libuv/include/uv/linux.h +34 -0
- data/ext/libuv/include/uv/os390.h +33 -0
- data/ext/libuv/include/uv/posix.h +31 -0
- data/ext/libuv/include/uv/stdint-msvc2008.h +247 -0
- data/ext/libuv/include/uv/sunos.h +44 -0
- data/ext/libuv/include/uv/threadpool.h +37 -0
- data/ext/libuv/include/uv/tree.h +768 -0
- data/ext/libuv/include/uv/unix.h +505 -0
- data/ext/libuv/include/uv/version.h +43 -0
- data/ext/libuv/include/uv/win.h +691 -0
- data/ext/libuv/include/uv.h +1782 -0
- data/ext/libuv/libuv.pc.in +12 -0
- data/ext/libuv/m4/.gitignore +4 -0
- data/ext/libuv/m4/as_case.m4 +21 -0
- data/ext/libuv/m4/libuv-check-flags.m4 +319 -0
- data/ext/libuv/src/fs-poll.c +287 -0
- data/ext/libuv/src/heap-inl.h +245 -0
- data/ext/libuv/src/idna.c +291 -0
- data/ext/libuv/src/idna.h +31 -0
- data/ext/libuv/src/inet.c +302 -0
- data/ext/libuv/src/queue.h +108 -0
- data/ext/libuv/src/random.c +123 -0
- data/ext/libuv/src/strscpy.c +17 -0
- data/ext/libuv/src/strscpy.h +18 -0
- data/ext/libuv/src/threadpool.c +388 -0
- data/ext/libuv/src/timer.c +181 -0
- data/ext/libuv/src/unix/aix-common.c +337 -0
- data/ext/libuv/src/unix/aix.c +1066 -0
- data/ext/libuv/src/unix/android-ifaddrs.c +712 -0
- data/ext/libuv/src/unix/async.c +298 -0
- data/ext/libuv/src/unix/atomic-ops.h +59 -0
- data/ext/libuv/src/unix/bsd-ifaddrs.c +161 -0
- data/ext/libuv/src/unix/bsd-proctitle.c +93 -0
- data/ext/libuv/src/unix/core.c +1571 -0
- data/ext/libuv/src/unix/cygwin.c +53 -0
- data/ext/libuv/src/unix/darwin-proctitle.c +202 -0
- data/ext/libuv/src/unix/darwin.c +225 -0
- data/ext/libuv/src/unix/dl.c +80 -0
- data/ext/libuv/src/unix/freebsd.c +290 -0
- data/ext/libuv/src/unix/fs.c +2044 -0
- data/ext/libuv/src/unix/fsevents.c +924 -0
- data/ext/libuv/src/unix/getaddrinfo.c +255 -0
- data/ext/libuv/src/unix/getnameinfo.c +121 -0
- data/ext/libuv/src/unix/haiku.c +167 -0
- data/ext/libuv/src/unix/ibmi.c +249 -0
- data/ext/libuv/src/unix/internal.h +331 -0
- data/ext/libuv/src/unix/kqueue.c +544 -0
- data/ext/libuv/src/unix/linux-core.c +1091 -0
- data/ext/libuv/src/unix/linux-inotify.c +354 -0
- data/ext/libuv/src/unix/linux-syscalls.c +394 -0
- data/ext/libuv/src/unix/linux-syscalls.h +153 -0
- data/ext/libuv/src/unix/loop-watcher.c +68 -0
- data/ext/libuv/src/unix/loop.c +194 -0
- data/ext/libuv/src/unix/netbsd.c +259 -0
- data/ext/libuv/src/unix/no-fsevents.c +42 -0
- data/ext/libuv/src/unix/no-proctitle.c +42 -0
- data/ext/libuv/src/unix/openbsd.c +244 -0
- data/ext/libuv/src/unix/os390-syscalls.c +519 -0
- data/ext/libuv/src/unix/os390-syscalls.h +68 -0
- data/ext/libuv/src/unix/os390.c +1003 -0
- data/ext/libuv/src/unix/pipe.c +377 -0
- data/ext/libuv/src/unix/poll.c +150 -0
- data/ext/libuv/src/unix/posix-hrtime.c +35 -0
- data/ext/libuv/src/unix/posix-poll.c +336 -0
- data/ext/libuv/src/unix/process.c +603 -0
- data/ext/libuv/src/unix/procfs-exepath.c +45 -0
- data/ext/libuv/src/unix/proctitle.c +132 -0
- data/ext/libuv/src/unix/pthread-fixes.c +56 -0
- data/ext/libuv/src/unix/random-devurandom.c +93 -0
- data/ext/libuv/src/unix/random-getentropy.c +57 -0
- data/ext/libuv/src/unix/random-getrandom.c +88 -0
- data/ext/libuv/src/unix/random-sysctl-linux.c +99 -0
- data/ext/libuv/src/unix/signal.c +577 -0
- data/ext/libuv/src/unix/spinlock.h +53 -0
- data/ext/libuv/src/unix/stream.c +1697 -0
- data/ext/libuv/src/unix/sunos.c +836 -0
- data/ext/libuv/src/unix/sysinfo-loadavg.c +36 -0
- data/ext/libuv/src/unix/sysinfo-memory.c +42 -0
- data/ext/libuv/src/unix/tcp.c +450 -0
- data/ext/libuv/src/unix/thread.c +852 -0
- data/ext/libuv/src/unix/tty.c +381 -0
- data/ext/libuv/src/unix/udp.c +1136 -0
- data/ext/libuv/src/uv-common.c +812 -0
- data/ext/libuv/src/uv-common.h +326 -0
- data/ext/libuv/src/uv-data-getter-setters.c +98 -0
- data/ext/libuv/src/version.c +45 -0
- data/ext/libuv/src/win/async.c +98 -0
- data/ext/libuv/src/win/atomicops-inl.h +57 -0
- data/ext/libuv/src/win/core.c +657 -0
- data/ext/libuv/src/win/detect-wakeup.c +35 -0
- data/ext/libuv/src/win/dl.c +136 -0
- data/ext/libuv/src/win/error.c +172 -0
- data/ext/libuv/src/win/fs-event.c +589 -0
- data/ext/libuv/src/win/fs-fd-hash-inl.h +178 -0
- data/ext/libuv/src/win/fs.c +3238 -0
- data/ext/libuv/src/win/getaddrinfo.c +463 -0
- data/ext/libuv/src/win/getnameinfo.c +157 -0
- data/ext/libuv/src/win/handle-inl.h +180 -0
- data/ext/libuv/src/win/handle.c +162 -0
- data/ext/libuv/src/win/internal.h +344 -0
- data/ext/libuv/src/win/loop-watcher.c +122 -0
- data/ext/libuv/src/win/pipe.c +2386 -0
- data/ext/libuv/src/win/poll.c +643 -0
- data/ext/libuv/src/win/process-stdio.c +512 -0
- data/ext/libuv/src/win/process.c +1282 -0
- data/ext/libuv/src/win/req-inl.h +221 -0
- data/ext/libuv/src/win/signal.c +277 -0
- data/ext/libuv/src/win/snprintf.c +42 -0
- data/ext/libuv/src/win/stream-inl.h +54 -0
- data/ext/libuv/src/win/stream.c +243 -0
- data/ext/libuv/src/win/tcp.c +1520 -0
- data/ext/libuv/src/win/thread.c +520 -0
- data/ext/libuv/src/win/tty.c +2348 -0
- data/ext/libuv/src/win/udp.c +1185 -0
- data/ext/libuv/src/win/util.c +1879 -0
- data/ext/libuv/src/win/winapi.c +149 -0
- data/ext/libuv/src/win/winapi.h +4751 -0
- data/ext/libuv/src/win/winsock.c +575 -0
- data/ext/libuv/src/win/winsock.h +201 -0
- data/ext/libuv/test/benchmark-async-pummel.c +119 -0
- data/ext/libuv/test/benchmark-async.c +141 -0
- data/ext/libuv/test/benchmark-fs-stat.c +136 -0
- data/ext/libuv/test/benchmark-getaddrinfo.c +92 -0
- data/ext/libuv/test/benchmark-list.h +163 -0
- data/ext/libuv/test/benchmark-loop-count.c +92 -0
- data/ext/libuv/test/benchmark-million-async.c +112 -0
- data/ext/libuv/test/benchmark-million-timers.c +86 -0
- data/ext/libuv/test/benchmark-multi-accept.c +447 -0
- data/ext/libuv/test/benchmark-ping-pongs.c +221 -0
- data/ext/libuv/test/benchmark-pound.c +351 -0
- data/ext/libuv/test/benchmark-pump.c +476 -0
- data/ext/libuv/test/benchmark-sizes.c +46 -0
- data/ext/libuv/test/benchmark-spawn.c +164 -0
- data/ext/libuv/test/benchmark-tcp-write-batch.c +144 -0
- data/ext/libuv/test/benchmark-thread.c +64 -0
- data/ext/libuv/test/benchmark-udp-pummel.c +243 -0
- data/ext/libuv/test/blackhole-server.c +121 -0
- data/ext/libuv/test/dns-server.c +340 -0
- data/ext/libuv/test/echo-server.c +382 -0
- data/ext/libuv/test/fixtures/empty_file +0 -0
- data/ext/libuv/test/fixtures/load_error.node +1 -0
- data/ext/libuv/test/fixtures/lorem_ipsum.txt +1 -0
- data/ext/libuv/test/run-benchmarks.c +65 -0
- data/ext/libuv/test/run-tests.c +239 -0
- data/ext/libuv/test/runner-unix.c +450 -0
- data/ext/libuv/test/runner-unix.h +36 -0
- data/ext/libuv/test/runner-win.c +357 -0
- data/ext/libuv/test/runner-win.h +41 -0
- data/ext/libuv/test/runner.c +431 -0
- data/ext/libuv/test/runner.h +176 -0
- data/ext/libuv/test/task.h +238 -0
- data/ext/libuv/test/test-active.c +84 -0
- data/ext/libuv/test/test-async-null-cb.c +64 -0
- data/ext/libuv/test/test-async.c +134 -0
- data/ext/libuv/test/test-barrier.c +148 -0
- data/ext/libuv/test/test-callback-order.c +77 -0
- data/ext/libuv/test/test-callback-stack.c +204 -0
- data/ext/libuv/test/test-close-fd.c +80 -0
- data/ext/libuv/test/test-close-order.c +80 -0
- data/ext/libuv/test/test-condvar.c +267 -0
- data/ext/libuv/test/test-connect-unspecified.c +63 -0
- data/ext/libuv/test/test-connection-fail.c +151 -0
- data/ext/libuv/test/test-cwd-and-chdir.c +58 -0
- data/ext/libuv/test/test-default-loop-close.c +59 -0
- data/ext/libuv/test/test-delayed-accept.c +189 -0
- data/ext/libuv/test/test-dlerror.c +61 -0
- data/ext/libuv/test/test-eintr-handling.c +94 -0
- data/ext/libuv/test/test-embed.c +139 -0
- data/ext/libuv/test/test-emfile.c +121 -0
- data/ext/libuv/test/test-env-vars.c +140 -0
- data/ext/libuv/test/test-error.c +79 -0
- data/ext/libuv/test/test-fail-always.c +29 -0
- data/ext/libuv/test/test-fork.c +683 -0
- data/ext/libuv/test/test-fs-copyfile.c +209 -0
- data/ext/libuv/test/test-fs-event.c +1165 -0
- data/ext/libuv/test/test-fs-fd-hash.c +133 -0
- data/ext/libuv/test/test-fs-open-flags.c +435 -0
- data/ext/libuv/test/test-fs-poll.c +300 -0
- data/ext/libuv/test/test-fs-readdir.c +462 -0
- data/ext/libuv/test/test-fs.c +4238 -0
- data/ext/libuv/test/test-get-currentexe.c +86 -0
- data/ext/libuv/test/test-get-loadavg.c +35 -0
- data/ext/libuv/test/test-get-memory.c +40 -0
- data/ext/libuv/test/test-get-passwd.c +86 -0
- data/ext/libuv/test/test-getaddrinfo.c +191 -0
- data/ext/libuv/test/test-gethostname.c +58 -0
- data/ext/libuv/test/test-getnameinfo.c +101 -0
- data/ext/libuv/test/test-getsockname.c +361 -0
- data/ext/libuv/test/test-getters-setters.c +88 -0
- data/ext/libuv/test/test-gettimeofday.c +39 -0
- data/ext/libuv/test/test-handle-fileno.c +125 -0
- data/ext/libuv/test/test-homedir.c +72 -0
- data/ext/libuv/test/test-hrtime.c +52 -0
- data/ext/libuv/test/test-idle.c +99 -0
- data/ext/libuv/test/test-idna.c +195 -0
- data/ext/libuv/test/test-ip4-addr.c +55 -0
- data/ext/libuv/test/test-ip6-addr.c +171 -0
- data/ext/libuv/test/test-ipc-heavy-traffic-deadlock-bug.c +159 -0
- data/ext/libuv/test/test-ipc-send-recv.c +429 -0
- data/ext/libuv/test/test-ipc.c +974 -0
- data/ext/libuv/test/test-list.h +1064 -0
- data/ext/libuv/test/test-loop-alive.c +67 -0
- data/ext/libuv/test/test-loop-close.c +75 -0
- data/ext/libuv/test/test-loop-configure.c +38 -0
- data/ext/libuv/test/test-loop-handles.c +337 -0
- data/ext/libuv/test/test-loop-stop.c +71 -0
- data/ext/libuv/test/test-loop-time.c +63 -0
- data/ext/libuv/test/test-multiple-listen.c +109 -0
- data/ext/libuv/test/test-mutexes.c +182 -0
- data/ext/libuv/test/test-osx-select.c +140 -0
- data/ext/libuv/test/test-pass-always.c +28 -0
- data/ext/libuv/test/test-ping-pong.c +301 -0
- data/ext/libuv/test/test-pipe-bind-error.c +139 -0
- data/ext/libuv/test/test-pipe-close-stdout-read-stdin.c +112 -0
- data/ext/libuv/test/test-pipe-connect-error.c +95 -0
- data/ext/libuv/test/test-pipe-connect-multiple.c +107 -0
- data/ext/libuv/test/test-pipe-connect-prepare.c +83 -0
- data/ext/libuv/test/test-pipe-getsockname.c +266 -0
- data/ext/libuv/test/test-pipe-pending-instances.c +59 -0
- data/ext/libuv/test/test-pipe-sendmsg.c +172 -0
- data/ext/libuv/test/test-pipe-server-close.c +94 -0
- data/ext/libuv/test/test-pipe-set-fchmod.c +90 -0
- data/ext/libuv/test/test-pipe-set-non-blocking.c +99 -0
- data/ext/libuv/test/test-platform-output.c +170 -0
- data/ext/libuv/test/test-poll-close-doesnt-corrupt-stack.c +114 -0
- data/ext/libuv/test/test-poll-close.c +73 -0
- data/ext/libuv/test/test-poll-closesocket.c +92 -0
- data/ext/libuv/test/test-poll-oob.c +210 -0
- data/ext/libuv/test/test-poll.c +668 -0
- data/ext/libuv/test/test-process-priority.c +83 -0
- data/ext/libuv/test/test-process-title-threadsafe.c +89 -0
- data/ext/libuv/test/test-process-title.c +76 -0
- data/ext/libuv/test/test-queue-foreach-delete.c +204 -0
- data/ext/libuv/test/test-random.c +94 -0
- data/ext/libuv/test/test-ref.c +445 -0
- data/ext/libuv/test/test-run-nowait.c +45 -0
- data/ext/libuv/test/test-run-once.c +48 -0
- data/ext/libuv/test/test-semaphore.c +111 -0
- data/ext/libuv/test/test-shutdown-close.c +108 -0
- data/ext/libuv/test/test-shutdown-eof.c +182 -0
- data/ext/libuv/test/test-shutdown-twice.c +85 -0
- data/ext/libuv/test/test-signal-multiple-loops.c +302 -0
- data/ext/libuv/test/test-signal-pending-on-close.c +94 -0
- data/ext/libuv/test/test-signal.c +325 -0
- data/ext/libuv/test/test-socket-buffer-size.c +77 -0
- data/ext/libuv/test/test-spawn.c +1924 -0
- data/ext/libuv/test/test-stdio-over-pipes.c +256 -0
- data/ext/libuv/test/test-strscpy.c +53 -0
- data/ext/libuv/test/test-tcp-alloc-cb-fail.c +123 -0
- data/ext/libuv/test/test-tcp-bind-error.c +254 -0
- data/ext/libuv/test/test-tcp-bind6-error.c +176 -0
- data/ext/libuv/test/test-tcp-close-accept.c +198 -0
- data/ext/libuv/test/test-tcp-close-reset.c +290 -0
- data/ext/libuv/test/test-tcp-close-while-connecting.c +97 -0
- data/ext/libuv/test/test-tcp-close.c +136 -0
- data/ext/libuv/test/test-tcp-connect-error-after-write.c +98 -0
- data/ext/libuv/test/test-tcp-connect-error.c +73 -0
- data/ext/libuv/test/test-tcp-connect-timeout.c +91 -0
- data/ext/libuv/test/test-tcp-connect6-error.c +71 -0
- data/ext/libuv/test/test-tcp-create-socket-early.c +209 -0
- data/ext/libuv/test/test-tcp-flags.c +52 -0
- data/ext/libuv/test/test-tcp-oob.c +146 -0
- data/ext/libuv/test/test-tcp-open.c +400 -0
- data/ext/libuv/test/test-tcp-read-stop.c +76 -0
- data/ext/libuv/test/test-tcp-shutdown-after-write.c +138 -0
- data/ext/libuv/test/test-tcp-try-write-error.c +109 -0
- data/ext/libuv/test/test-tcp-try-write.c +135 -0
- data/ext/libuv/test/test-tcp-unexpected-read.c +117 -0
- data/ext/libuv/test/test-tcp-write-after-connect.c +72 -0
- data/ext/libuv/test/test-tcp-write-fail.c +115 -0
- data/ext/libuv/test/test-tcp-write-queue-order.c +139 -0
- data/ext/libuv/test/test-tcp-write-to-half-open-connection.c +141 -0
- data/ext/libuv/test/test-tcp-writealot.c +180 -0
- data/ext/libuv/test/test-thread-equal.c +45 -0
- data/ext/libuv/test/test-thread.c +286 -0
- data/ext/libuv/test/test-threadpool-cancel.c +349 -0
- data/ext/libuv/test/test-threadpool.c +76 -0
- data/ext/libuv/test/test-timer-again.c +141 -0
- data/ext/libuv/test/test-timer-from-check.c +80 -0
- data/ext/libuv/test/test-timer.c +343 -0
- data/ext/libuv/test/test-tmpdir.c +82 -0
- data/ext/libuv/test/test-tty-duplicate-key.c +321 -0
- data/ext/libuv/test/test-tty.c +464 -0
- data/ext/libuv/test/test-udp-alloc-cb-fail.c +196 -0
- data/ext/libuv/test/test-udp-bind.c +93 -0
- data/ext/libuv/test/test-udp-connect.c +182 -0
- data/ext/libuv/test/test-udp-create-socket-early.c +135 -0
- data/ext/libuv/test/test-udp-dgram-too-big.c +91 -0
- data/ext/libuv/test/test-udp-ipv6.c +200 -0
- data/ext/libuv/test/test-udp-multicast-interface.c +99 -0
- data/ext/libuv/test/test-udp-multicast-interface6.c +103 -0
- data/ext/libuv/test/test-udp-multicast-join.c +181 -0
- data/ext/libuv/test/test-udp-multicast-join6.c +215 -0
- data/ext/libuv/test/test-udp-multicast-ttl.c +94 -0
- data/ext/libuv/test/test-udp-open.c +350 -0
- data/ext/libuv/test/test-udp-options.c +156 -0
- data/ext/libuv/test/test-udp-send-and-recv.c +212 -0
- data/ext/libuv/test/test-udp-send-hang-loop.c +99 -0
- data/ext/libuv/test/test-udp-send-immediate.c +148 -0
- data/ext/libuv/test/test-udp-send-unreachable.c +150 -0
- data/ext/libuv/test/test-udp-try-send.c +121 -0
- data/ext/libuv/test/test-uname.c +69 -0
- data/ext/libuv/test/test-walk-handles.c +77 -0
- data/ext/libuv/test/test-watcher-cross-stop.c +111 -0
- data/ext/libuv/test/test.gyp +293 -0
- data/ext/libuv/tools/make_dist_html.py +124 -0
- data/ext/libuv/tools/vswhere_usability_wrapper.cmd +33 -0
- data/ext/libuv/uv.gyp +368 -0
- data/ext/libuv/vcbuild.bat +184 -0
- data/lib/mt-libuv/tcp.rb +2 -2
- data/lib/mt-libuv/version.rb +1 -1
- data/mt-libuv.gemspec +26 -26
- metadata +2089 -2
@@ -0,0 +1,1782 @@
|
|
1
|
+
/* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
|
2
|
+
*
|
3
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
* of this software and associated documentation files (the "Software"), to
|
5
|
+
* deal in the Software without restriction, including without limitation the
|
6
|
+
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
7
|
+
* sell copies of the Software, and to permit persons to whom the Software is
|
8
|
+
* furnished to do so, subject to the following conditions:
|
9
|
+
*
|
10
|
+
* The above copyright notice and this permission notice shall be included in
|
11
|
+
* all copies or substantial portions of the Software.
|
12
|
+
*
|
13
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
18
|
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
19
|
+
* IN THE SOFTWARE.
|
20
|
+
*/
|
21
|
+
|
22
|
+
/* See https://github.com/libuv/libuv#documentation for documentation. */
|
23
|
+
|
24
|
+
#ifndef UV_H
|
25
|
+
#define UV_H
|
26
|
+
#ifdef __cplusplus
|
27
|
+
extern "C" {
|
28
|
+
#endif
|
29
|
+
|
30
|
+
#if defined(BUILDING_UV_SHARED) && defined(USING_UV_SHARED)
|
31
|
+
#error "Define either BUILDING_UV_SHARED or USING_UV_SHARED, not both."
|
32
|
+
#endif
|
33
|
+
|
34
|
+
#ifdef _WIN32
|
35
|
+
/* Windows - set up dll import/export decorators. */
|
36
|
+
# if defined(BUILDING_UV_SHARED)
|
37
|
+
/* Building shared library. */
|
38
|
+
# define UV_EXTERN __declspec(dllexport)
|
39
|
+
# elif defined(USING_UV_SHARED)
|
40
|
+
/* Using shared library. */
|
41
|
+
# define UV_EXTERN __declspec(dllimport)
|
42
|
+
# else
|
43
|
+
/* Building static library. */
|
44
|
+
# define UV_EXTERN /* nothing */
|
45
|
+
# endif
|
46
|
+
#elif __GNUC__ >= 4
|
47
|
+
# define UV_EXTERN __attribute__((visibility("default")))
|
48
|
+
#else
|
49
|
+
# define UV_EXTERN /* nothing */
|
50
|
+
#endif
|
51
|
+
|
52
|
+
#include "uv/errno.h"
|
53
|
+
#include "uv/version.h"
|
54
|
+
#include <stddef.h>
|
55
|
+
#include <stdio.h>
|
56
|
+
|
57
|
+
#if defined(_MSC_VER) && _MSC_VER < 1600
|
58
|
+
# include "uv/stdint-msvc2008.h"
|
59
|
+
#else
|
60
|
+
# include <stdint.h>
|
61
|
+
#endif
|
62
|
+
|
63
|
+
#if defined(_WIN32)
|
64
|
+
# include "uv/win.h"
|
65
|
+
#else
|
66
|
+
# include "uv/unix.h"
|
67
|
+
#endif
|
68
|
+
|
69
|
+
/* Expand this list if necessary. */
|
70
|
+
#define UV_ERRNO_MAP(XX) \
|
71
|
+
XX(E2BIG, "argument list too long") \
|
72
|
+
XX(EACCES, "permission denied") \
|
73
|
+
XX(EADDRINUSE, "address already in use") \
|
74
|
+
XX(EADDRNOTAVAIL, "address not available") \
|
75
|
+
XX(EAFNOSUPPORT, "address family not supported") \
|
76
|
+
XX(EAGAIN, "resource temporarily unavailable") \
|
77
|
+
XX(EAI_ADDRFAMILY, "address family not supported") \
|
78
|
+
XX(EAI_AGAIN, "temporary failure") \
|
79
|
+
XX(EAI_BADFLAGS, "bad ai_flags value") \
|
80
|
+
XX(EAI_BADHINTS, "invalid value for hints") \
|
81
|
+
XX(EAI_CANCELED, "request canceled") \
|
82
|
+
XX(EAI_FAIL, "permanent failure") \
|
83
|
+
XX(EAI_FAMILY, "ai_family not supported") \
|
84
|
+
XX(EAI_MEMORY, "out of memory") \
|
85
|
+
XX(EAI_NODATA, "no address") \
|
86
|
+
XX(EAI_NONAME, "unknown node or service") \
|
87
|
+
XX(EAI_OVERFLOW, "argument buffer overflow") \
|
88
|
+
XX(EAI_PROTOCOL, "resolved protocol is unknown") \
|
89
|
+
XX(EAI_SERVICE, "service not available for socket type") \
|
90
|
+
XX(EAI_SOCKTYPE, "socket type not supported") \
|
91
|
+
XX(EALREADY, "connection already in progress") \
|
92
|
+
XX(EBADF, "bad file descriptor") \
|
93
|
+
XX(EBUSY, "resource busy or locked") \
|
94
|
+
XX(ECANCELED, "operation canceled") \
|
95
|
+
XX(ECHARSET, "invalid Unicode character") \
|
96
|
+
XX(ECONNABORTED, "software caused connection abort") \
|
97
|
+
XX(ECONNREFUSED, "connection refused") \
|
98
|
+
XX(ECONNRESET, "connection reset by peer") \
|
99
|
+
XX(EDESTADDRREQ, "destination address required") \
|
100
|
+
XX(EEXIST, "file already exists") \
|
101
|
+
XX(EFAULT, "bad address in system call argument") \
|
102
|
+
XX(EFBIG, "file too large") \
|
103
|
+
XX(EHOSTUNREACH, "host is unreachable") \
|
104
|
+
XX(EINTR, "interrupted system call") \
|
105
|
+
XX(EINVAL, "invalid argument") \
|
106
|
+
XX(EIO, "i/o error") \
|
107
|
+
XX(EISCONN, "socket is already connected") \
|
108
|
+
XX(EISDIR, "illegal operation on a directory") \
|
109
|
+
XX(ELOOP, "too many symbolic links encountered") \
|
110
|
+
XX(EMFILE, "too many open files") \
|
111
|
+
XX(EMSGSIZE, "message too long") \
|
112
|
+
XX(ENAMETOOLONG, "name too long") \
|
113
|
+
XX(ENETDOWN, "network is down") \
|
114
|
+
XX(ENETUNREACH, "network is unreachable") \
|
115
|
+
XX(ENFILE, "file table overflow") \
|
116
|
+
XX(ENOBUFS, "no buffer space available") \
|
117
|
+
XX(ENODEV, "no such device") \
|
118
|
+
XX(ENOENT, "no such file or directory") \
|
119
|
+
XX(ENOMEM, "not enough memory") \
|
120
|
+
XX(ENONET, "machine is not on the network") \
|
121
|
+
XX(ENOPROTOOPT, "protocol not available") \
|
122
|
+
XX(ENOSPC, "no space left on device") \
|
123
|
+
XX(ENOSYS, "function not implemented") \
|
124
|
+
XX(ENOTCONN, "socket is not connected") \
|
125
|
+
XX(ENOTDIR, "not a directory") \
|
126
|
+
XX(ENOTEMPTY, "directory not empty") \
|
127
|
+
XX(ENOTSOCK, "socket operation on non-socket") \
|
128
|
+
XX(ENOTSUP, "operation not supported on socket") \
|
129
|
+
XX(EPERM, "operation not permitted") \
|
130
|
+
XX(EPIPE, "broken pipe") \
|
131
|
+
XX(EPROTO, "protocol error") \
|
132
|
+
XX(EPROTONOSUPPORT, "protocol not supported") \
|
133
|
+
XX(EPROTOTYPE, "protocol wrong type for socket") \
|
134
|
+
XX(ERANGE, "result too large") \
|
135
|
+
XX(EROFS, "read-only file system") \
|
136
|
+
XX(ESHUTDOWN, "cannot send after transport endpoint shutdown") \
|
137
|
+
XX(ESPIPE, "invalid seek") \
|
138
|
+
XX(ESRCH, "no such process") \
|
139
|
+
XX(ETIMEDOUT, "connection timed out") \
|
140
|
+
XX(ETXTBSY, "text file is busy") \
|
141
|
+
XX(EXDEV, "cross-device link not permitted") \
|
142
|
+
XX(UNKNOWN, "unknown error") \
|
143
|
+
XX(EOF, "end of file") \
|
144
|
+
XX(ENXIO, "no such device or address") \
|
145
|
+
XX(EMLINK, "too many links") \
|
146
|
+
XX(EHOSTDOWN, "host is down") \
|
147
|
+
XX(EREMOTEIO, "remote I/O error") \
|
148
|
+
XX(ENOTTY, "inappropriate ioctl for device") \
|
149
|
+
XX(EFTYPE, "inappropriate file type or format") \
|
150
|
+
XX(EILSEQ, "illegal byte sequence") \
|
151
|
+
|
152
|
+
#define UV_HANDLE_TYPE_MAP(XX) \
|
153
|
+
XX(ASYNC, async) \
|
154
|
+
XX(CHECK, check) \
|
155
|
+
XX(FS_EVENT, fs_event) \
|
156
|
+
XX(FS_POLL, fs_poll) \
|
157
|
+
XX(HANDLE, handle) \
|
158
|
+
XX(IDLE, idle) \
|
159
|
+
XX(NAMED_PIPE, pipe) \
|
160
|
+
XX(POLL, poll) \
|
161
|
+
XX(PREPARE, prepare) \
|
162
|
+
XX(PROCESS, process) \
|
163
|
+
XX(STREAM, stream) \
|
164
|
+
XX(TCP, tcp) \
|
165
|
+
XX(TIMER, timer) \
|
166
|
+
XX(TTY, tty) \
|
167
|
+
XX(UDP, udp) \
|
168
|
+
XX(SIGNAL, signal) \
|
169
|
+
|
170
|
+
#define UV_REQ_TYPE_MAP(XX) \
|
171
|
+
XX(REQ, req) \
|
172
|
+
XX(CONNECT, connect) \
|
173
|
+
XX(WRITE, write) \
|
174
|
+
XX(SHUTDOWN, shutdown) \
|
175
|
+
XX(UDP_SEND, udp_send) \
|
176
|
+
XX(FS, fs) \
|
177
|
+
XX(WORK, work) \
|
178
|
+
XX(GETADDRINFO, getaddrinfo) \
|
179
|
+
XX(GETNAMEINFO, getnameinfo) \
|
180
|
+
XX(RANDOM, random) \
|
181
|
+
|
182
|
+
typedef enum {
|
183
|
+
#define XX(code, _) UV_ ## code = UV__ ## code,
|
184
|
+
UV_ERRNO_MAP(XX)
|
185
|
+
#undef XX
|
186
|
+
UV_ERRNO_MAX = UV__EOF - 1
|
187
|
+
} uv_errno_t;
|
188
|
+
|
189
|
+
typedef enum {
|
190
|
+
UV_UNKNOWN_HANDLE = 0,
|
191
|
+
#define XX(uc, lc) UV_##uc,
|
192
|
+
UV_HANDLE_TYPE_MAP(XX)
|
193
|
+
#undef XX
|
194
|
+
UV_FILE,
|
195
|
+
UV_HANDLE_TYPE_MAX
|
196
|
+
} uv_handle_type;
|
197
|
+
|
198
|
+
typedef enum {
|
199
|
+
UV_UNKNOWN_REQ = 0,
|
200
|
+
#define XX(uc, lc) UV_##uc,
|
201
|
+
UV_REQ_TYPE_MAP(XX)
|
202
|
+
#undef XX
|
203
|
+
UV_REQ_TYPE_PRIVATE
|
204
|
+
UV_REQ_TYPE_MAX
|
205
|
+
} uv_req_type;
|
206
|
+
|
207
|
+
|
208
|
+
/* Handle types. */
|
209
|
+
typedef struct uv_loop_s uv_loop_t;
|
210
|
+
typedef struct uv_handle_s uv_handle_t;
|
211
|
+
typedef struct uv_dir_s uv_dir_t;
|
212
|
+
typedef struct uv_stream_s uv_stream_t;
|
213
|
+
typedef struct uv_tcp_s uv_tcp_t;
|
214
|
+
typedef struct uv_udp_s uv_udp_t;
|
215
|
+
typedef struct uv_pipe_s uv_pipe_t;
|
216
|
+
typedef struct uv_tty_s uv_tty_t;
|
217
|
+
typedef struct uv_poll_s uv_poll_t;
|
218
|
+
typedef struct uv_timer_s uv_timer_t;
|
219
|
+
typedef struct uv_prepare_s uv_prepare_t;
|
220
|
+
typedef struct uv_check_s uv_check_t;
|
221
|
+
typedef struct uv_idle_s uv_idle_t;
|
222
|
+
typedef struct uv_async_s uv_async_t;
|
223
|
+
typedef struct uv_process_s uv_process_t;
|
224
|
+
typedef struct uv_fs_event_s uv_fs_event_t;
|
225
|
+
typedef struct uv_fs_poll_s uv_fs_poll_t;
|
226
|
+
typedef struct uv_signal_s uv_signal_t;
|
227
|
+
|
228
|
+
/* Request types. */
|
229
|
+
typedef struct uv_req_s uv_req_t;
|
230
|
+
typedef struct uv_getaddrinfo_s uv_getaddrinfo_t;
|
231
|
+
typedef struct uv_getnameinfo_s uv_getnameinfo_t;
|
232
|
+
typedef struct uv_shutdown_s uv_shutdown_t;
|
233
|
+
typedef struct uv_write_s uv_write_t;
|
234
|
+
typedef struct uv_connect_s uv_connect_t;
|
235
|
+
typedef struct uv_udp_send_s uv_udp_send_t;
|
236
|
+
typedef struct uv_fs_s uv_fs_t;
|
237
|
+
typedef struct uv_work_s uv_work_t;
|
238
|
+
typedef struct uv_random_s uv_random_t;
|
239
|
+
|
240
|
+
/* None of the above. */
|
241
|
+
typedef struct uv_env_item_s uv_env_item_t;
|
242
|
+
typedef struct uv_cpu_info_s uv_cpu_info_t;
|
243
|
+
typedef struct uv_interface_address_s uv_interface_address_t;
|
244
|
+
typedef struct uv_dirent_s uv_dirent_t;
|
245
|
+
typedef struct uv_passwd_s uv_passwd_t;
|
246
|
+
typedef struct uv_utsname_s uv_utsname_t;
|
247
|
+
typedef struct uv_statfs_s uv_statfs_t;
|
248
|
+
|
249
|
+
typedef enum {
|
250
|
+
UV_LOOP_BLOCK_SIGNAL
|
251
|
+
} uv_loop_option;
|
252
|
+
|
253
|
+
typedef enum {
|
254
|
+
UV_RUN_DEFAULT = 0,
|
255
|
+
UV_RUN_ONCE,
|
256
|
+
UV_RUN_NOWAIT
|
257
|
+
} uv_run_mode;
|
258
|
+
|
259
|
+
|
260
|
+
UV_EXTERN unsigned int uv_version(void);
|
261
|
+
UV_EXTERN const char* uv_version_string(void);
|
262
|
+
|
263
|
+
typedef void* (*uv_malloc_func)(size_t size);
|
264
|
+
typedef void* (*uv_realloc_func)(void* ptr, size_t size);
|
265
|
+
typedef void* (*uv_calloc_func)(size_t count, size_t size);
|
266
|
+
typedef void (*uv_free_func)(void* ptr);
|
267
|
+
|
268
|
+
UV_EXTERN int uv_replace_allocator(uv_malloc_func malloc_func,
|
269
|
+
uv_realloc_func realloc_func,
|
270
|
+
uv_calloc_func calloc_func,
|
271
|
+
uv_free_func free_func);
|
272
|
+
|
273
|
+
UV_EXTERN uv_loop_t* uv_default_loop(void);
|
274
|
+
UV_EXTERN int uv_loop_init(uv_loop_t* loop);
|
275
|
+
UV_EXTERN int uv_loop_close(uv_loop_t* loop);
|
276
|
+
/*
|
277
|
+
* NOTE:
|
278
|
+
* This function is DEPRECATED (to be removed after 0.12), users should
|
279
|
+
* allocate the loop manually and use uv_loop_init instead.
|
280
|
+
*/
|
281
|
+
UV_EXTERN uv_loop_t* uv_loop_new(void);
|
282
|
+
/*
|
283
|
+
* NOTE:
|
284
|
+
* This function is DEPRECATED (to be removed after 0.12). Users should use
|
285
|
+
* uv_loop_close and free the memory manually instead.
|
286
|
+
*/
|
287
|
+
UV_EXTERN void uv_loop_delete(uv_loop_t*);
|
288
|
+
UV_EXTERN size_t uv_loop_size(void);
|
289
|
+
UV_EXTERN int uv_loop_alive(const uv_loop_t* loop);
|
290
|
+
UV_EXTERN int uv_loop_configure(uv_loop_t* loop, uv_loop_option option, ...);
|
291
|
+
UV_EXTERN int uv_loop_fork(uv_loop_t* loop);
|
292
|
+
|
293
|
+
UV_EXTERN int uv_run(uv_loop_t*, uv_run_mode mode);
|
294
|
+
UV_EXTERN void uv_stop(uv_loop_t*);
|
295
|
+
|
296
|
+
UV_EXTERN void uv_ref(uv_handle_t*);
|
297
|
+
UV_EXTERN void uv_unref(uv_handle_t*);
|
298
|
+
UV_EXTERN int uv_has_ref(const uv_handle_t*);
|
299
|
+
|
300
|
+
UV_EXTERN void uv_update_time(uv_loop_t*);
|
301
|
+
UV_EXTERN uint64_t uv_now(const uv_loop_t*);
|
302
|
+
|
303
|
+
UV_EXTERN int uv_backend_fd(const uv_loop_t*);
|
304
|
+
UV_EXTERN int uv_backend_timeout(const uv_loop_t*);
|
305
|
+
|
306
|
+
typedef void (*uv_alloc_cb)(uv_handle_t* handle,
|
307
|
+
size_t suggested_size,
|
308
|
+
uv_buf_t* buf);
|
309
|
+
typedef void (*uv_read_cb)(uv_stream_t* stream,
|
310
|
+
ssize_t nread,
|
311
|
+
const uv_buf_t* buf);
|
312
|
+
typedef void (*uv_write_cb)(uv_write_t* req, int status);
|
313
|
+
typedef void (*uv_connect_cb)(uv_connect_t* req, int status);
|
314
|
+
typedef void (*uv_shutdown_cb)(uv_shutdown_t* req, int status);
|
315
|
+
typedef void (*uv_connection_cb)(uv_stream_t* server, int status);
|
316
|
+
typedef void (*uv_close_cb)(uv_handle_t* handle);
|
317
|
+
typedef void (*uv_poll_cb)(uv_poll_t* handle, int status, int events);
|
318
|
+
typedef void (*uv_timer_cb)(uv_timer_t* handle);
|
319
|
+
typedef void (*uv_async_cb)(uv_async_t* handle);
|
320
|
+
typedef void (*uv_prepare_cb)(uv_prepare_t* handle);
|
321
|
+
typedef void (*uv_check_cb)(uv_check_t* handle);
|
322
|
+
typedef void (*uv_idle_cb)(uv_idle_t* handle);
|
323
|
+
typedef void (*uv_exit_cb)(uv_process_t*, int64_t exit_status, int term_signal);
|
324
|
+
typedef void (*uv_walk_cb)(uv_handle_t* handle, void* arg);
|
325
|
+
typedef void (*uv_fs_cb)(uv_fs_t* req);
|
326
|
+
typedef void (*uv_work_cb)(uv_work_t* req);
|
327
|
+
typedef void (*uv_after_work_cb)(uv_work_t* req, int status);
|
328
|
+
typedef void (*uv_getaddrinfo_cb)(uv_getaddrinfo_t* req,
|
329
|
+
int status,
|
330
|
+
struct addrinfo* res);
|
331
|
+
typedef void (*uv_getnameinfo_cb)(uv_getnameinfo_t* req,
|
332
|
+
int status,
|
333
|
+
const char* hostname,
|
334
|
+
const char* service);
|
335
|
+
typedef void (*uv_random_cb)(uv_random_t* req,
|
336
|
+
int status,
|
337
|
+
void* buf,
|
338
|
+
size_t buflen);
|
339
|
+
|
340
|
+
typedef struct {
|
341
|
+
long tv_sec;
|
342
|
+
long tv_nsec;
|
343
|
+
} uv_timespec_t;
|
344
|
+
|
345
|
+
|
346
|
+
typedef struct {
|
347
|
+
uint64_t st_dev;
|
348
|
+
uint64_t st_mode;
|
349
|
+
uint64_t st_nlink;
|
350
|
+
uint64_t st_uid;
|
351
|
+
uint64_t st_gid;
|
352
|
+
uint64_t st_rdev;
|
353
|
+
uint64_t st_ino;
|
354
|
+
uint64_t st_size;
|
355
|
+
uint64_t st_blksize;
|
356
|
+
uint64_t st_blocks;
|
357
|
+
uint64_t st_flags;
|
358
|
+
uint64_t st_gen;
|
359
|
+
uv_timespec_t st_atim;
|
360
|
+
uv_timespec_t st_mtim;
|
361
|
+
uv_timespec_t st_ctim;
|
362
|
+
uv_timespec_t st_birthtim;
|
363
|
+
} uv_stat_t;
|
364
|
+
|
365
|
+
|
366
|
+
typedef void (*uv_fs_event_cb)(uv_fs_event_t* handle,
|
367
|
+
const char* filename,
|
368
|
+
int events,
|
369
|
+
int status);
|
370
|
+
|
371
|
+
typedef void (*uv_fs_poll_cb)(uv_fs_poll_t* handle,
|
372
|
+
int status,
|
373
|
+
const uv_stat_t* prev,
|
374
|
+
const uv_stat_t* curr);
|
375
|
+
|
376
|
+
typedef void (*uv_signal_cb)(uv_signal_t* handle, int signum);
|
377
|
+
|
378
|
+
|
379
|
+
typedef enum {
|
380
|
+
UV_LEAVE_GROUP = 0,
|
381
|
+
UV_JOIN_GROUP
|
382
|
+
} uv_membership;
|
383
|
+
|
384
|
+
|
385
|
+
UV_EXTERN int uv_translate_sys_error(int sys_errno);
|
386
|
+
|
387
|
+
UV_EXTERN const char* uv_strerror(int err);
|
388
|
+
UV_EXTERN char* uv_strerror_r(int err, char* buf, size_t buflen);
|
389
|
+
|
390
|
+
UV_EXTERN const char* uv_err_name(int err);
|
391
|
+
UV_EXTERN char* uv_err_name_r(int err, char* buf, size_t buflen);
|
392
|
+
|
393
|
+
|
394
|
+
#define UV_REQ_FIELDS \
|
395
|
+
/* public */ \
|
396
|
+
void* data; \
|
397
|
+
/* read-only */ \
|
398
|
+
uv_req_type type; \
|
399
|
+
/* private */ \
|
400
|
+
void* reserved[6]; \
|
401
|
+
UV_REQ_PRIVATE_FIELDS \
|
402
|
+
|
403
|
+
/* Abstract base class of all requests. */
|
404
|
+
struct uv_req_s {
|
405
|
+
UV_REQ_FIELDS
|
406
|
+
};
|
407
|
+
|
408
|
+
|
409
|
+
/* Platform-specific request types. */
|
410
|
+
UV_PRIVATE_REQ_TYPES
|
411
|
+
|
412
|
+
|
413
|
+
UV_EXTERN int uv_shutdown(uv_shutdown_t* req,
|
414
|
+
uv_stream_t* handle,
|
415
|
+
uv_shutdown_cb cb);
|
416
|
+
|
417
|
+
struct uv_shutdown_s {
|
418
|
+
UV_REQ_FIELDS
|
419
|
+
uv_stream_t* handle;
|
420
|
+
uv_shutdown_cb cb;
|
421
|
+
UV_SHUTDOWN_PRIVATE_FIELDS
|
422
|
+
};
|
423
|
+
|
424
|
+
|
425
|
+
#define UV_HANDLE_FIELDS \
|
426
|
+
/* public */ \
|
427
|
+
void* data; \
|
428
|
+
/* read-only */ \
|
429
|
+
uv_loop_t* loop; \
|
430
|
+
uv_handle_type type; \
|
431
|
+
/* private */ \
|
432
|
+
uv_close_cb close_cb; \
|
433
|
+
void* handle_queue[2]; \
|
434
|
+
union { \
|
435
|
+
int fd; \
|
436
|
+
void* reserved[4]; \
|
437
|
+
} u; \
|
438
|
+
UV_HANDLE_PRIVATE_FIELDS \
|
439
|
+
|
440
|
+
/* The abstract base class of all handles. */
|
441
|
+
struct uv_handle_s {
|
442
|
+
UV_HANDLE_FIELDS
|
443
|
+
};
|
444
|
+
|
445
|
+
UV_EXTERN size_t uv_handle_size(uv_handle_type type);
|
446
|
+
UV_EXTERN uv_handle_type uv_handle_get_type(const uv_handle_t* handle);
|
447
|
+
UV_EXTERN const char* uv_handle_type_name(uv_handle_type type);
|
448
|
+
UV_EXTERN void* uv_handle_get_data(const uv_handle_t* handle);
|
449
|
+
UV_EXTERN uv_loop_t* uv_handle_get_loop(const uv_handle_t* handle);
|
450
|
+
UV_EXTERN void uv_handle_set_data(uv_handle_t* handle, void* data);
|
451
|
+
|
452
|
+
UV_EXTERN size_t uv_req_size(uv_req_type type);
|
453
|
+
UV_EXTERN void* uv_req_get_data(const uv_req_t* req);
|
454
|
+
UV_EXTERN void uv_req_set_data(uv_req_t* req, void* data);
|
455
|
+
UV_EXTERN uv_req_type uv_req_get_type(const uv_req_t* req);
|
456
|
+
UV_EXTERN const char* uv_req_type_name(uv_req_type type);
|
457
|
+
|
458
|
+
UV_EXTERN int uv_is_active(const uv_handle_t* handle);
|
459
|
+
|
460
|
+
UV_EXTERN void uv_walk(uv_loop_t* loop, uv_walk_cb walk_cb, void* arg);
|
461
|
+
|
462
|
+
/* Helpers for ad hoc debugging, no API/ABI stability guaranteed. */
|
463
|
+
UV_EXTERN void uv_print_all_handles(uv_loop_t* loop, FILE* stream);
|
464
|
+
UV_EXTERN void uv_print_active_handles(uv_loop_t* loop, FILE* stream);
|
465
|
+
|
466
|
+
UV_EXTERN void uv_close(uv_handle_t* handle, uv_close_cb close_cb);
|
467
|
+
|
468
|
+
UV_EXTERN int uv_send_buffer_size(uv_handle_t* handle, int* value);
|
469
|
+
UV_EXTERN int uv_recv_buffer_size(uv_handle_t* handle, int* value);
|
470
|
+
|
471
|
+
UV_EXTERN int uv_fileno(const uv_handle_t* handle, uv_os_fd_t* fd);
|
472
|
+
|
473
|
+
UV_EXTERN uv_buf_t uv_buf_init(char* base, unsigned int len);
|
474
|
+
|
475
|
+
|
476
|
+
#define UV_STREAM_FIELDS \
|
477
|
+
/* number of bytes queued for writing */ \
|
478
|
+
size_t write_queue_size; \
|
479
|
+
uv_alloc_cb alloc_cb; \
|
480
|
+
uv_read_cb read_cb; \
|
481
|
+
/* private */ \
|
482
|
+
UV_STREAM_PRIVATE_FIELDS
|
483
|
+
|
484
|
+
/*
|
485
|
+
* uv_stream_t is a subclass of uv_handle_t.
|
486
|
+
*
|
487
|
+
* uv_stream is an abstract class.
|
488
|
+
*
|
489
|
+
* uv_stream_t is the parent class of uv_tcp_t, uv_pipe_t and uv_tty_t.
|
490
|
+
*/
|
491
|
+
struct uv_stream_s {
|
492
|
+
UV_HANDLE_FIELDS
|
493
|
+
UV_STREAM_FIELDS
|
494
|
+
};
|
495
|
+
|
496
|
+
UV_EXTERN size_t uv_stream_get_write_queue_size(const uv_stream_t* stream);
|
497
|
+
|
498
|
+
UV_EXTERN int uv_listen(uv_stream_t* stream, int backlog, uv_connection_cb cb);
|
499
|
+
UV_EXTERN int uv_accept(uv_stream_t* server, uv_stream_t* client);
|
500
|
+
|
501
|
+
UV_EXTERN int uv_read_start(uv_stream_t*,
|
502
|
+
uv_alloc_cb alloc_cb,
|
503
|
+
uv_read_cb read_cb);
|
504
|
+
UV_EXTERN int uv_read_stop(uv_stream_t*);
|
505
|
+
|
506
|
+
UV_EXTERN int uv_write(uv_write_t* req,
|
507
|
+
uv_stream_t* handle,
|
508
|
+
const uv_buf_t bufs[],
|
509
|
+
unsigned int nbufs,
|
510
|
+
uv_write_cb cb);
|
511
|
+
UV_EXTERN int uv_write2(uv_write_t* req,
|
512
|
+
uv_stream_t* handle,
|
513
|
+
const uv_buf_t bufs[],
|
514
|
+
unsigned int nbufs,
|
515
|
+
uv_stream_t* send_handle,
|
516
|
+
uv_write_cb cb);
|
517
|
+
UV_EXTERN int uv_try_write(uv_stream_t* handle,
|
518
|
+
const uv_buf_t bufs[],
|
519
|
+
unsigned int nbufs);
|
520
|
+
|
521
|
+
/* uv_write_t is a subclass of uv_req_t. */
|
522
|
+
struct uv_write_s {
|
523
|
+
UV_REQ_FIELDS
|
524
|
+
uv_write_cb cb;
|
525
|
+
uv_stream_t* send_handle; /* TODO: make private and unix-only in v2.x. */
|
526
|
+
uv_stream_t* handle;
|
527
|
+
UV_WRITE_PRIVATE_FIELDS
|
528
|
+
};
|
529
|
+
|
530
|
+
|
531
|
+
UV_EXTERN int uv_is_readable(const uv_stream_t* handle);
|
532
|
+
UV_EXTERN int uv_is_writable(const uv_stream_t* handle);
|
533
|
+
|
534
|
+
UV_EXTERN int uv_stream_set_blocking(uv_stream_t* handle, int blocking);
|
535
|
+
|
536
|
+
UV_EXTERN int uv_is_closing(const uv_handle_t* handle);
|
537
|
+
|
538
|
+
|
539
|
+
/*
|
540
|
+
* uv_tcp_t is a subclass of uv_stream_t.
|
541
|
+
*
|
542
|
+
* Represents a TCP stream or TCP server.
|
543
|
+
*/
|
544
|
+
struct uv_tcp_s {
|
545
|
+
UV_HANDLE_FIELDS
|
546
|
+
UV_STREAM_FIELDS
|
547
|
+
UV_TCP_PRIVATE_FIELDS
|
548
|
+
};
|
549
|
+
|
550
|
+
UV_EXTERN int uv_tcp_init(uv_loop_t*, uv_tcp_t* handle);
|
551
|
+
UV_EXTERN int uv_tcp_init_ex(uv_loop_t*, uv_tcp_t* handle, unsigned int flags);
|
552
|
+
UV_EXTERN int uv_tcp_open(uv_tcp_t* handle, uv_os_sock_t sock);
|
553
|
+
UV_EXTERN int uv_tcp_nodelay(uv_tcp_t* handle, int enable);
|
554
|
+
UV_EXTERN int uv_tcp_keepalive(uv_tcp_t* handle,
|
555
|
+
int enable,
|
556
|
+
unsigned int delay);
|
557
|
+
UV_EXTERN int uv_tcp_simultaneous_accepts(uv_tcp_t* handle, int enable);
|
558
|
+
|
559
|
+
enum uv_tcp_flags {
|
560
|
+
/* Used with uv_tcp_bind, when an IPv6 address is used. */
|
561
|
+
UV_TCP_IPV6ONLY = 1
|
562
|
+
};
|
563
|
+
|
564
|
+
UV_EXTERN int uv_tcp_bind(uv_tcp_t* handle,
|
565
|
+
const struct sockaddr* addr,
|
566
|
+
unsigned int flags);
|
567
|
+
UV_EXTERN int uv_tcp_getsockname(const uv_tcp_t* handle,
|
568
|
+
struct sockaddr* name,
|
569
|
+
int* namelen);
|
570
|
+
UV_EXTERN int uv_tcp_getpeername(const uv_tcp_t* handle,
|
571
|
+
struct sockaddr* name,
|
572
|
+
int* namelen);
|
573
|
+
UV_EXTERN int uv_tcp_close_reset(uv_tcp_t* handle, uv_close_cb close_cb);
|
574
|
+
UV_EXTERN int uv_tcp_connect(uv_connect_t* req,
|
575
|
+
uv_tcp_t* handle,
|
576
|
+
const struct sockaddr* addr,
|
577
|
+
uv_connect_cb cb);
|
578
|
+
|
579
|
+
/* uv_connect_t is a subclass of uv_req_t. */
|
580
|
+
struct uv_connect_s {
|
581
|
+
UV_REQ_FIELDS
|
582
|
+
uv_connect_cb cb;
|
583
|
+
uv_stream_t* handle;
|
584
|
+
UV_CONNECT_PRIVATE_FIELDS
|
585
|
+
};
|
586
|
+
|
587
|
+
|
588
|
+
/*
|
589
|
+
* UDP support.
|
590
|
+
*/
|
591
|
+
|
592
|
+
enum uv_udp_flags {
|
593
|
+
/* Disables dual stack mode. */
|
594
|
+
UV_UDP_IPV6ONLY = 1,
|
595
|
+
/*
|
596
|
+
* Indicates message was truncated because read buffer was too small. The
|
597
|
+
* remainder was discarded by the OS. Used in uv_udp_recv_cb.
|
598
|
+
*/
|
599
|
+
UV_UDP_PARTIAL = 2,
|
600
|
+
/*
|
601
|
+
* Indicates if SO_REUSEADDR will be set when binding the handle.
|
602
|
+
* This sets the SO_REUSEPORT socket flag on the BSDs and OS X. On other
|
603
|
+
* Unix platforms, it sets the SO_REUSEADDR flag. What that means is that
|
604
|
+
* multiple threads or processes can bind to the same address without error
|
605
|
+
* (provided they all set the flag) but only the last one to bind will receive
|
606
|
+
* any traffic, in effect "stealing" the port from the previous listener.
|
607
|
+
*/
|
608
|
+
UV_UDP_REUSEADDR = 4
|
609
|
+
};
|
610
|
+
|
611
|
+
typedef void (*uv_udp_send_cb)(uv_udp_send_t* req, int status);
|
612
|
+
typedef void (*uv_udp_recv_cb)(uv_udp_t* handle,
|
613
|
+
ssize_t nread,
|
614
|
+
const uv_buf_t* buf,
|
615
|
+
const struct sockaddr* addr,
|
616
|
+
unsigned flags);
|
617
|
+
|
618
|
+
/* uv_udp_t is a subclass of uv_handle_t. */
|
619
|
+
struct uv_udp_s {
|
620
|
+
UV_HANDLE_FIELDS
|
621
|
+
/* read-only */
|
622
|
+
/*
|
623
|
+
* Number of bytes queued for sending. This field strictly shows how much
|
624
|
+
* information is currently queued.
|
625
|
+
*/
|
626
|
+
size_t send_queue_size;
|
627
|
+
/*
|
628
|
+
* Number of send requests currently in the queue awaiting to be processed.
|
629
|
+
*/
|
630
|
+
size_t send_queue_count;
|
631
|
+
UV_UDP_PRIVATE_FIELDS
|
632
|
+
};
|
633
|
+
|
634
|
+
/* uv_udp_send_t is a subclass of uv_req_t. */
|
635
|
+
struct uv_udp_send_s {
|
636
|
+
UV_REQ_FIELDS
|
637
|
+
uv_udp_t* handle;
|
638
|
+
uv_udp_send_cb cb;
|
639
|
+
UV_UDP_SEND_PRIVATE_FIELDS
|
640
|
+
};
|
641
|
+
|
642
|
+
UV_EXTERN int uv_udp_init(uv_loop_t*, uv_udp_t* handle);
|
643
|
+
UV_EXTERN int uv_udp_init_ex(uv_loop_t*, uv_udp_t* handle, unsigned int flags);
|
644
|
+
UV_EXTERN int uv_udp_open(uv_udp_t* handle, uv_os_sock_t sock);
|
645
|
+
UV_EXTERN int uv_udp_bind(uv_udp_t* handle,
|
646
|
+
const struct sockaddr* addr,
|
647
|
+
unsigned int flags);
|
648
|
+
UV_EXTERN int uv_udp_connect(uv_udp_t* handle, const struct sockaddr* addr);
|
649
|
+
|
650
|
+
UV_EXTERN int uv_udp_getpeername(const uv_udp_t* handle,
|
651
|
+
struct sockaddr* name,
|
652
|
+
int* namelen);
|
653
|
+
UV_EXTERN int uv_udp_getsockname(const uv_udp_t* handle,
|
654
|
+
struct sockaddr* name,
|
655
|
+
int* namelen);
|
656
|
+
UV_EXTERN int uv_udp_set_membership(uv_udp_t* handle,
|
657
|
+
const char* multicast_addr,
|
658
|
+
const char* interface_addr,
|
659
|
+
uv_membership membership);
|
660
|
+
UV_EXTERN int uv_udp_set_source_membership(uv_udp_t* handle,
|
661
|
+
const char* multicast_addr,
|
662
|
+
const char* interface_addr,
|
663
|
+
const char* source_addr,
|
664
|
+
uv_membership membership);
|
665
|
+
UV_EXTERN int uv_udp_set_multicast_loop(uv_udp_t* handle, int on);
|
666
|
+
UV_EXTERN int uv_udp_set_multicast_ttl(uv_udp_t* handle, int ttl);
|
667
|
+
UV_EXTERN int uv_udp_set_multicast_interface(uv_udp_t* handle,
|
668
|
+
const char* interface_addr);
|
669
|
+
UV_EXTERN int uv_udp_set_broadcast(uv_udp_t* handle, int on);
|
670
|
+
UV_EXTERN int uv_udp_set_ttl(uv_udp_t* handle, int ttl);
|
671
|
+
UV_EXTERN int uv_udp_send(uv_udp_send_t* req,
|
672
|
+
uv_udp_t* handle,
|
673
|
+
const uv_buf_t bufs[],
|
674
|
+
unsigned int nbufs,
|
675
|
+
const struct sockaddr* addr,
|
676
|
+
uv_udp_send_cb send_cb);
|
677
|
+
UV_EXTERN int uv_udp_try_send(uv_udp_t* handle,
|
678
|
+
const uv_buf_t bufs[],
|
679
|
+
unsigned int nbufs,
|
680
|
+
const struct sockaddr* addr);
|
681
|
+
UV_EXTERN int uv_udp_recv_start(uv_udp_t* handle,
|
682
|
+
uv_alloc_cb alloc_cb,
|
683
|
+
uv_udp_recv_cb recv_cb);
|
684
|
+
UV_EXTERN int uv_udp_recv_stop(uv_udp_t* handle);
|
685
|
+
UV_EXTERN size_t uv_udp_get_send_queue_size(const uv_udp_t* handle);
|
686
|
+
UV_EXTERN size_t uv_udp_get_send_queue_count(const uv_udp_t* handle);
|
687
|
+
|
688
|
+
|
689
|
+
/*
|
690
|
+
* uv_tty_t is a subclass of uv_stream_t.
|
691
|
+
*
|
692
|
+
* Representing a stream for the console.
|
693
|
+
*/
|
694
|
+
struct uv_tty_s {
|
695
|
+
UV_HANDLE_FIELDS
|
696
|
+
UV_STREAM_FIELDS
|
697
|
+
UV_TTY_PRIVATE_FIELDS
|
698
|
+
};
|
699
|
+
|
700
|
+
typedef enum {
|
701
|
+
/* Initial/normal terminal mode */
|
702
|
+
UV_TTY_MODE_NORMAL,
|
703
|
+
/* Raw input mode (On Windows, ENABLE_WINDOW_INPUT is also enabled) */
|
704
|
+
UV_TTY_MODE_RAW,
|
705
|
+
/* Binary-safe I/O mode for IPC (Unix-only) */
|
706
|
+
UV_TTY_MODE_IO
|
707
|
+
} uv_tty_mode_t;
|
708
|
+
|
709
|
+
typedef enum {
|
710
|
+
/*
|
711
|
+
* The console supports handling of virtual terminal sequences
|
712
|
+
* (Windows10 new console, ConEmu)
|
713
|
+
*/
|
714
|
+
UV_TTY_SUPPORTED,
|
715
|
+
/* The console cannot process the virtual terminal sequence. (Legacy
|
716
|
+
* console)
|
717
|
+
*/
|
718
|
+
UV_TTY_UNSUPPORTED
|
719
|
+
} uv_tty_vtermstate_t;
|
720
|
+
|
721
|
+
|
722
|
+
UV_EXTERN int uv_tty_init(uv_loop_t*, uv_tty_t*, uv_file fd, int readable);
|
723
|
+
UV_EXTERN int uv_tty_set_mode(uv_tty_t*, uv_tty_mode_t mode);
|
724
|
+
UV_EXTERN int uv_tty_reset_mode(void);
|
725
|
+
UV_EXTERN int uv_tty_get_winsize(uv_tty_t*, int* width, int* height);
|
726
|
+
UV_EXTERN void uv_tty_set_vterm_state(uv_tty_vtermstate_t state);
|
727
|
+
UV_EXTERN int uv_tty_get_vterm_state(uv_tty_vtermstate_t* state);
|
728
|
+
|
729
|
+
#ifdef __cplusplus
|
730
|
+
extern "C++" {
|
731
|
+
|
732
|
+
inline int uv_tty_set_mode(uv_tty_t* handle, int mode) {
|
733
|
+
return uv_tty_set_mode(handle, static_cast<uv_tty_mode_t>(mode));
|
734
|
+
}
|
735
|
+
|
736
|
+
}
|
737
|
+
#endif
|
738
|
+
|
739
|
+
UV_EXTERN uv_handle_type uv_guess_handle(uv_file file);
|
740
|
+
|
741
|
+
/*
|
742
|
+
* uv_pipe_t is a subclass of uv_stream_t.
|
743
|
+
*
|
744
|
+
* Representing a pipe stream or pipe server. On Windows this is a Named
|
745
|
+
* Pipe. On Unix this is a Unix domain socket.
|
746
|
+
*/
|
747
|
+
struct uv_pipe_s {
|
748
|
+
UV_HANDLE_FIELDS
|
749
|
+
UV_STREAM_FIELDS
|
750
|
+
int ipc; /* non-zero if this pipe is used for passing handles */
|
751
|
+
UV_PIPE_PRIVATE_FIELDS
|
752
|
+
};
|
753
|
+
|
754
|
+
UV_EXTERN int uv_pipe_init(uv_loop_t*, uv_pipe_t* handle, int ipc);
|
755
|
+
UV_EXTERN int uv_pipe_open(uv_pipe_t*, uv_file file);
|
756
|
+
UV_EXTERN int uv_pipe_bind(uv_pipe_t* handle, const char* name);
|
757
|
+
UV_EXTERN void uv_pipe_connect(uv_connect_t* req,
|
758
|
+
uv_pipe_t* handle,
|
759
|
+
const char* name,
|
760
|
+
uv_connect_cb cb);
|
761
|
+
UV_EXTERN int uv_pipe_getsockname(const uv_pipe_t* handle,
|
762
|
+
char* buffer,
|
763
|
+
size_t* size);
|
764
|
+
UV_EXTERN int uv_pipe_getpeername(const uv_pipe_t* handle,
|
765
|
+
char* buffer,
|
766
|
+
size_t* size);
|
767
|
+
UV_EXTERN void uv_pipe_pending_instances(uv_pipe_t* handle, int count);
|
768
|
+
UV_EXTERN int uv_pipe_pending_count(uv_pipe_t* handle);
|
769
|
+
UV_EXTERN uv_handle_type uv_pipe_pending_type(uv_pipe_t* handle);
|
770
|
+
UV_EXTERN int uv_pipe_chmod(uv_pipe_t* handle, int flags);
|
771
|
+
|
772
|
+
|
773
|
+
struct uv_poll_s {
|
774
|
+
UV_HANDLE_FIELDS
|
775
|
+
uv_poll_cb poll_cb;
|
776
|
+
UV_POLL_PRIVATE_FIELDS
|
777
|
+
};
|
778
|
+
|
779
|
+
enum uv_poll_event {
|
780
|
+
UV_READABLE = 1,
|
781
|
+
UV_WRITABLE = 2,
|
782
|
+
UV_DISCONNECT = 4,
|
783
|
+
UV_PRIORITIZED = 8
|
784
|
+
};
|
785
|
+
|
786
|
+
UV_EXTERN int uv_poll_init(uv_loop_t* loop, uv_poll_t* handle, int fd);
|
787
|
+
UV_EXTERN int uv_poll_init_socket(uv_loop_t* loop,
|
788
|
+
uv_poll_t* handle,
|
789
|
+
uv_os_sock_t socket);
|
790
|
+
UV_EXTERN int uv_poll_start(uv_poll_t* handle, int events, uv_poll_cb cb);
|
791
|
+
UV_EXTERN int uv_poll_stop(uv_poll_t* handle);
|
792
|
+
|
793
|
+
|
794
|
+
struct uv_prepare_s {
|
795
|
+
UV_HANDLE_FIELDS
|
796
|
+
UV_PREPARE_PRIVATE_FIELDS
|
797
|
+
};
|
798
|
+
|
799
|
+
UV_EXTERN int uv_prepare_init(uv_loop_t*, uv_prepare_t* prepare);
|
800
|
+
UV_EXTERN int uv_prepare_start(uv_prepare_t* prepare, uv_prepare_cb cb);
|
801
|
+
UV_EXTERN int uv_prepare_stop(uv_prepare_t* prepare);
|
802
|
+
|
803
|
+
|
804
|
+
struct uv_check_s {
|
805
|
+
UV_HANDLE_FIELDS
|
806
|
+
UV_CHECK_PRIVATE_FIELDS
|
807
|
+
};
|
808
|
+
|
809
|
+
UV_EXTERN int uv_check_init(uv_loop_t*, uv_check_t* check);
|
810
|
+
UV_EXTERN int uv_check_start(uv_check_t* check, uv_check_cb cb);
|
811
|
+
UV_EXTERN int uv_check_stop(uv_check_t* check);
|
812
|
+
|
813
|
+
|
814
|
+
struct uv_idle_s {
|
815
|
+
UV_HANDLE_FIELDS
|
816
|
+
UV_IDLE_PRIVATE_FIELDS
|
817
|
+
};
|
818
|
+
|
819
|
+
UV_EXTERN int uv_idle_init(uv_loop_t*, uv_idle_t* idle);
|
820
|
+
UV_EXTERN int uv_idle_start(uv_idle_t* idle, uv_idle_cb cb);
|
821
|
+
UV_EXTERN int uv_idle_stop(uv_idle_t* idle);
|
822
|
+
|
823
|
+
|
824
|
+
struct uv_async_s {
|
825
|
+
UV_HANDLE_FIELDS
|
826
|
+
UV_ASYNC_PRIVATE_FIELDS
|
827
|
+
};
|
828
|
+
|
829
|
+
UV_EXTERN int uv_async_init(uv_loop_t*,
|
830
|
+
uv_async_t* async,
|
831
|
+
uv_async_cb async_cb);
|
832
|
+
UV_EXTERN int uv_async_send(uv_async_t* async);
|
833
|
+
|
834
|
+
|
835
|
+
/*
|
836
|
+
* uv_timer_t is a subclass of uv_handle_t.
|
837
|
+
*
|
838
|
+
* Used to get woken up at a specified time in the future.
|
839
|
+
*/
|
840
|
+
struct uv_timer_s {
|
841
|
+
UV_HANDLE_FIELDS
|
842
|
+
UV_TIMER_PRIVATE_FIELDS
|
843
|
+
};
|
844
|
+
|
845
|
+
UV_EXTERN int uv_timer_init(uv_loop_t*, uv_timer_t* handle);
|
846
|
+
UV_EXTERN int uv_timer_start(uv_timer_t* handle,
|
847
|
+
uv_timer_cb cb,
|
848
|
+
uint64_t timeout,
|
849
|
+
uint64_t repeat);
|
850
|
+
UV_EXTERN int uv_timer_stop(uv_timer_t* handle);
|
851
|
+
UV_EXTERN int uv_timer_again(uv_timer_t* handle);
|
852
|
+
UV_EXTERN void uv_timer_set_repeat(uv_timer_t* handle, uint64_t repeat);
|
853
|
+
UV_EXTERN uint64_t uv_timer_get_repeat(const uv_timer_t* handle);
|
854
|
+
|
855
|
+
|
856
|
+
/*
|
857
|
+
* uv_getaddrinfo_t is a subclass of uv_req_t.
|
858
|
+
*
|
859
|
+
* Request object for uv_getaddrinfo.
|
860
|
+
*/
|
861
|
+
struct uv_getaddrinfo_s {
|
862
|
+
UV_REQ_FIELDS
|
863
|
+
/* read-only */
|
864
|
+
uv_loop_t* loop;
|
865
|
+
/* struct addrinfo* addrinfo is marked as private, but it really isn't. */
|
866
|
+
UV_GETADDRINFO_PRIVATE_FIELDS
|
867
|
+
};
|
868
|
+
|
869
|
+
|
870
|
+
UV_EXTERN int uv_getaddrinfo(uv_loop_t* loop,
|
871
|
+
uv_getaddrinfo_t* req,
|
872
|
+
uv_getaddrinfo_cb getaddrinfo_cb,
|
873
|
+
const char* node,
|
874
|
+
const char* service,
|
875
|
+
const struct addrinfo* hints);
|
876
|
+
UV_EXTERN void uv_freeaddrinfo(struct addrinfo* ai);
|
877
|
+
|
878
|
+
|
879
|
+
/*
|
880
|
+
* uv_getnameinfo_t is a subclass of uv_req_t.
|
881
|
+
*
|
882
|
+
* Request object for uv_getnameinfo.
|
883
|
+
*/
|
884
|
+
struct uv_getnameinfo_s {
|
885
|
+
UV_REQ_FIELDS
|
886
|
+
/* read-only */
|
887
|
+
uv_loop_t* loop;
|
888
|
+
/* host and service are marked as private, but they really aren't. */
|
889
|
+
UV_GETNAMEINFO_PRIVATE_FIELDS
|
890
|
+
};
|
891
|
+
|
892
|
+
UV_EXTERN int uv_getnameinfo(uv_loop_t* loop,
|
893
|
+
uv_getnameinfo_t* req,
|
894
|
+
uv_getnameinfo_cb getnameinfo_cb,
|
895
|
+
const struct sockaddr* addr,
|
896
|
+
int flags);
|
897
|
+
|
898
|
+
|
899
|
+
/* uv_spawn() options. */
|
900
|
+
typedef enum {
|
901
|
+
UV_IGNORE = 0x00,
|
902
|
+
UV_CREATE_PIPE = 0x01,
|
903
|
+
UV_INHERIT_FD = 0x02,
|
904
|
+
UV_INHERIT_STREAM = 0x04,
|
905
|
+
|
906
|
+
/*
|
907
|
+
* When UV_CREATE_PIPE is specified, UV_READABLE_PIPE and UV_WRITABLE_PIPE
|
908
|
+
* determine the direction of flow, from the child process' perspective. Both
|
909
|
+
* flags may be specified to create a duplex data stream.
|
910
|
+
*/
|
911
|
+
UV_READABLE_PIPE = 0x10,
|
912
|
+
UV_WRITABLE_PIPE = 0x20,
|
913
|
+
|
914
|
+
/*
|
915
|
+
* Open the child pipe handle in overlapped mode on Windows.
|
916
|
+
* On Unix it is silently ignored.
|
917
|
+
*/
|
918
|
+
UV_OVERLAPPED_PIPE = 0x40
|
919
|
+
} uv_stdio_flags;
|
920
|
+
|
921
|
+
typedef struct uv_stdio_container_s {
|
922
|
+
uv_stdio_flags flags;
|
923
|
+
|
924
|
+
union {
|
925
|
+
uv_stream_t* stream;
|
926
|
+
int fd;
|
927
|
+
} data;
|
928
|
+
} uv_stdio_container_t;
|
929
|
+
|
930
|
+
typedef struct uv_process_options_s {
|
931
|
+
uv_exit_cb exit_cb; /* Called after the process exits. */
|
932
|
+
const char* file; /* Path to program to execute. */
|
933
|
+
/*
|
934
|
+
* Command line arguments. args[0] should be the path to the program. On
|
935
|
+
* Windows this uses CreateProcess which concatenates the arguments into a
|
936
|
+
* string this can cause some strange errors. See the note at
|
937
|
+
* windows_verbatim_arguments.
|
938
|
+
*/
|
939
|
+
char** args;
|
940
|
+
/*
|
941
|
+
* This will be set as the environ variable in the subprocess. If this is
|
942
|
+
* NULL then the parents environ will be used.
|
943
|
+
*/
|
944
|
+
char** env;
|
945
|
+
/*
|
946
|
+
* If non-null this represents a directory the subprocess should execute
|
947
|
+
* in. Stands for current working directory.
|
948
|
+
*/
|
949
|
+
const char* cwd;
|
950
|
+
/*
|
951
|
+
* Various flags that control how uv_spawn() behaves. See the definition of
|
952
|
+
* `enum uv_process_flags` below.
|
953
|
+
*/
|
954
|
+
unsigned int flags;
|
955
|
+
/*
|
956
|
+
* The `stdio` field points to an array of uv_stdio_container_t structs that
|
957
|
+
* describe the file descriptors that will be made available to the child
|
958
|
+
* process. The convention is that stdio[0] points to stdin, fd 1 is used for
|
959
|
+
* stdout, and fd 2 is stderr.
|
960
|
+
*
|
961
|
+
* Note that on windows file descriptors greater than 2 are available to the
|
962
|
+
* child process only if the child processes uses the MSVCRT runtime.
|
963
|
+
*/
|
964
|
+
int stdio_count;
|
965
|
+
uv_stdio_container_t* stdio;
|
966
|
+
/*
|
967
|
+
* Libuv can change the child process' user/group id. This happens only when
|
968
|
+
* the appropriate bits are set in the flags fields. This is not supported on
|
969
|
+
* windows; uv_spawn() will fail and set the error to UV_ENOTSUP.
|
970
|
+
*/
|
971
|
+
uv_uid_t uid;
|
972
|
+
uv_gid_t gid;
|
973
|
+
} uv_process_options_t;
|
974
|
+
|
975
|
+
/*
|
976
|
+
* These are the flags that can be used for the uv_process_options.flags field.
|
977
|
+
*/
|
978
|
+
enum uv_process_flags {
|
979
|
+
/*
|
980
|
+
* Set the child process' user id. The user id is supplied in the `uid` field
|
981
|
+
* of the options struct. This does not work on windows; setting this flag
|
982
|
+
* will cause uv_spawn() to fail.
|
983
|
+
*/
|
984
|
+
UV_PROCESS_SETUID = (1 << 0),
|
985
|
+
/*
|
986
|
+
* Set the child process' group id. The user id is supplied in the `gid`
|
987
|
+
* field of the options struct. This does not work on windows; setting this
|
988
|
+
* flag will cause uv_spawn() to fail.
|
989
|
+
*/
|
990
|
+
UV_PROCESS_SETGID = (1 << 1),
|
991
|
+
/*
|
992
|
+
* Do not wrap any arguments in quotes, or perform any other escaping, when
|
993
|
+
* converting the argument list into a command line string. This option is
|
994
|
+
* only meaningful on Windows systems. On Unix it is silently ignored.
|
995
|
+
*/
|
996
|
+
UV_PROCESS_WINDOWS_VERBATIM_ARGUMENTS = (1 << 2),
|
997
|
+
/*
|
998
|
+
* Spawn the child process in a detached state - this will make it a process
|
999
|
+
* group leader, and will effectively enable the child to keep running after
|
1000
|
+
* the parent exits. Note that the child process will still keep the
|
1001
|
+
* parent's event loop alive unless the parent process calls uv_unref() on
|
1002
|
+
* the child's process handle.
|
1003
|
+
*/
|
1004
|
+
UV_PROCESS_DETACHED = (1 << 3),
|
1005
|
+
/*
|
1006
|
+
* Hide the subprocess window that would normally be created. This option is
|
1007
|
+
* only meaningful on Windows systems. On Unix it is silently ignored.
|
1008
|
+
*/
|
1009
|
+
UV_PROCESS_WINDOWS_HIDE = (1 << 4),
|
1010
|
+
/*
|
1011
|
+
* Hide the subprocess console window that would normally be created. This
|
1012
|
+
* option is only meaningful on Windows systems. On Unix it is silently
|
1013
|
+
* ignored.
|
1014
|
+
*/
|
1015
|
+
UV_PROCESS_WINDOWS_HIDE_CONSOLE = (1 << 5),
|
1016
|
+
/*
|
1017
|
+
* Hide the subprocess GUI window that would normally be created. This
|
1018
|
+
* option is only meaningful on Windows systems. On Unix it is silently
|
1019
|
+
* ignored.
|
1020
|
+
*/
|
1021
|
+
UV_PROCESS_WINDOWS_HIDE_GUI = (1 << 6)
|
1022
|
+
};
|
1023
|
+
|
1024
|
+
/*
|
1025
|
+
* uv_process_t is a subclass of uv_handle_t.
|
1026
|
+
*/
|
1027
|
+
struct uv_process_s {
|
1028
|
+
UV_HANDLE_FIELDS
|
1029
|
+
uv_exit_cb exit_cb;
|
1030
|
+
int pid;
|
1031
|
+
UV_PROCESS_PRIVATE_FIELDS
|
1032
|
+
};
|
1033
|
+
|
1034
|
+
UV_EXTERN int uv_spawn(uv_loop_t* loop,
|
1035
|
+
uv_process_t* handle,
|
1036
|
+
const uv_process_options_t* options);
|
1037
|
+
UV_EXTERN int uv_process_kill(uv_process_t*, int signum);
|
1038
|
+
UV_EXTERN int uv_kill(int pid, int signum);
|
1039
|
+
UV_EXTERN uv_pid_t uv_process_get_pid(const uv_process_t*);
|
1040
|
+
|
1041
|
+
|
1042
|
+
/*
|
1043
|
+
* uv_work_t is a subclass of uv_req_t.
|
1044
|
+
*/
|
1045
|
+
struct uv_work_s {
|
1046
|
+
UV_REQ_FIELDS
|
1047
|
+
uv_loop_t* loop;
|
1048
|
+
uv_work_cb work_cb;
|
1049
|
+
uv_after_work_cb after_work_cb;
|
1050
|
+
UV_WORK_PRIVATE_FIELDS
|
1051
|
+
};
|
1052
|
+
|
1053
|
+
UV_EXTERN int uv_queue_work(uv_loop_t* loop,
|
1054
|
+
uv_work_t* req,
|
1055
|
+
uv_work_cb work_cb,
|
1056
|
+
uv_after_work_cb after_work_cb);
|
1057
|
+
|
1058
|
+
UV_EXTERN int uv_cancel(uv_req_t* req);
|
1059
|
+
|
1060
|
+
|
1061
|
+
struct uv_cpu_times_s {
|
1062
|
+
uint64_t user;
|
1063
|
+
uint64_t nice;
|
1064
|
+
uint64_t sys;
|
1065
|
+
uint64_t idle;
|
1066
|
+
uint64_t irq;
|
1067
|
+
};
|
1068
|
+
|
1069
|
+
struct uv_cpu_info_s {
|
1070
|
+
char* model;
|
1071
|
+
int speed;
|
1072
|
+
struct uv_cpu_times_s cpu_times;
|
1073
|
+
};
|
1074
|
+
|
1075
|
+
struct uv_interface_address_s {
|
1076
|
+
char* name;
|
1077
|
+
char phys_addr[6];
|
1078
|
+
int is_internal;
|
1079
|
+
union {
|
1080
|
+
struct sockaddr_in address4;
|
1081
|
+
struct sockaddr_in6 address6;
|
1082
|
+
} address;
|
1083
|
+
union {
|
1084
|
+
struct sockaddr_in netmask4;
|
1085
|
+
struct sockaddr_in6 netmask6;
|
1086
|
+
} netmask;
|
1087
|
+
};
|
1088
|
+
|
1089
|
+
struct uv_passwd_s {
|
1090
|
+
char* username;
|
1091
|
+
long uid;
|
1092
|
+
long gid;
|
1093
|
+
char* shell;
|
1094
|
+
char* homedir;
|
1095
|
+
};
|
1096
|
+
|
1097
|
+
struct uv_utsname_s {
|
1098
|
+
char sysname[256];
|
1099
|
+
char release[256];
|
1100
|
+
char version[256];
|
1101
|
+
char machine[256];
|
1102
|
+
/* This struct does not contain the nodename and domainname fields present in
|
1103
|
+
the utsname type. domainname is a GNU extension. Both fields are referred
|
1104
|
+
to as meaningless in the docs. */
|
1105
|
+
};
|
1106
|
+
|
1107
|
+
struct uv_statfs_s {
|
1108
|
+
uint64_t f_type;
|
1109
|
+
uint64_t f_bsize;
|
1110
|
+
uint64_t f_blocks;
|
1111
|
+
uint64_t f_bfree;
|
1112
|
+
uint64_t f_bavail;
|
1113
|
+
uint64_t f_files;
|
1114
|
+
uint64_t f_ffree;
|
1115
|
+
uint64_t f_spare[4];
|
1116
|
+
};
|
1117
|
+
|
1118
|
+
typedef enum {
|
1119
|
+
UV_DIRENT_UNKNOWN,
|
1120
|
+
UV_DIRENT_FILE,
|
1121
|
+
UV_DIRENT_DIR,
|
1122
|
+
UV_DIRENT_LINK,
|
1123
|
+
UV_DIRENT_FIFO,
|
1124
|
+
UV_DIRENT_SOCKET,
|
1125
|
+
UV_DIRENT_CHAR,
|
1126
|
+
UV_DIRENT_BLOCK
|
1127
|
+
} uv_dirent_type_t;
|
1128
|
+
|
1129
|
+
struct uv_dirent_s {
|
1130
|
+
const char* name;
|
1131
|
+
uv_dirent_type_t type;
|
1132
|
+
};
|
1133
|
+
|
1134
|
+
UV_EXTERN char** uv_setup_args(int argc, char** argv);
|
1135
|
+
UV_EXTERN int uv_get_process_title(char* buffer, size_t size);
|
1136
|
+
UV_EXTERN int uv_set_process_title(const char* title);
|
1137
|
+
UV_EXTERN int uv_resident_set_memory(size_t* rss);
|
1138
|
+
UV_EXTERN int uv_uptime(double* uptime);
|
1139
|
+
UV_EXTERN uv_os_fd_t uv_get_osfhandle(int fd);
|
1140
|
+
UV_EXTERN int uv_open_osfhandle(uv_os_fd_t os_fd);
|
1141
|
+
|
1142
|
+
typedef struct {
|
1143
|
+
long tv_sec;
|
1144
|
+
long tv_usec;
|
1145
|
+
} uv_timeval_t;
|
1146
|
+
|
1147
|
+
typedef struct {
|
1148
|
+
int64_t tv_sec;
|
1149
|
+
int32_t tv_usec;
|
1150
|
+
} uv_timeval64_t;
|
1151
|
+
|
1152
|
+
typedef struct {
|
1153
|
+
uv_timeval_t ru_utime; /* user CPU time used */
|
1154
|
+
uv_timeval_t ru_stime; /* system CPU time used */
|
1155
|
+
uint64_t ru_maxrss; /* maximum resident set size */
|
1156
|
+
uint64_t ru_ixrss; /* integral shared memory size */
|
1157
|
+
uint64_t ru_idrss; /* integral unshared data size */
|
1158
|
+
uint64_t ru_isrss; /* integral unshared stack size */
|
1159
|
+
uint64_t ru_minflt; /* page reclaims (soft page faults) */
|
1160
|
+
uint64_t ru_majflt; /* page faults (hard page faults) */
|
1161
|
+
uint64_t ru_nswap; /* swaps */
|
1162
|
+
uint64_t ru_inblock; /* block input operations */
|
1163
|
+
uint64_t ru_oublock; /* block output operations */
|
1164
|
+
uint64_t ru_msgsnd; /* IPC messages sent */
|
1165
|
+
uint64_t ru_msgrcv; /* IPC messages received */
|
1166
|
+
uint64_t ru_nsignals; /* signals received */
|
1167
|
+
uint64_t ru_nvcsw; /* voluntary context switches */
|
1168
|
+
uint64_t ru_nivcsw; /* involuntary context switches */
|
1169
|
+
} uv_rusage_t;
|
1170
|
+
|
1171
|
+
UV_EXTERN int uv_getrusage(uv_rusage_t* rusage);
|
1172
|
+
|
1173
|
+
UV_EXTERN int uv_os_homedir(char* buffer, size_t* size);
|
1174
|
+
UV_EXTERN int uv_os_tmpdir(char* buffer, size_t* size);
|
1175
|
+
UV_EXTERN int uv_os_get_passwd(uv_passwd_t* pwd);
|
1176
|
+
UV_EXTERN void uv_os_free_passwd(uv_passwd_t* pwd);
|
1177
|
+
UV_EXTERN uv_pid_t uv_os_getpid(void);
|
1178
|
+
UV_EXTERN uv_pid_t uv_os_getppid(void);
|
1179
|
+
|
1180
|
+
#define UV_PRIORITY_LOW 19
|
1181
|
+
#define UV_PRIORITY_BELOW_NORMAL 10
|
1182
|
+
#define UV_PRIORITY_NORMAL 0
|
1183
|
+
#define UV_PRIORITY_ABOVE_NORMAL -7
|
1184
|
+
#define UV_PRIORITY_HIGH -14
|
1185
|
+
#define UV_PRIORITY_HIGHEST -20
|
1186
|
+
|
1187
|
+
UV_EXTERN int uv_os_getpriority(uv_pid_t pid, int* priority);
|
1188
|
+
UV_EXTERN int uv_os_setpriority(uv_pid_t pid, int priority);
|
1189
|
+
|
1190
|
+
UV_EXTERN int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count);
|
1191
|
+
UV_EXTERN void uv_free_cpu_info(uv_cpu_info_t* cpu_infos, int count);
|
1192
|
+
|
1193
|
+
UV_EXTERN int uv_interface_addresses(uv_interface_address_t** addresses,
|
1194
|
+
int* count);
|
1195
|
+
UV_EXTERN void uv_free_interface_addresses(uv_interface_address_t* addresses,
|
1196
|
+
int count);
|
1197
|
+
|
1198
|
+
struct uv_env_item_s {
|
1199
|
+
char* name;
|
1200
|
+
char* value;
|
1201
|
+
};
|
1202
|
+
|
1203
|
+
UV_EXTERN int uv_os_environ(uv_env_item_t** envitems, int* count);
|
1204
|
+
UV_EXTERN void uv_os_free_environ(uv_env_item_t* envitems, int count);
|
1205
|
+
UV_EXTERN int uv_os_getenv(const char* name, char* buffer, size_t* size);
|
1206
|
+
UV_EXTERN int uv_os_setenv(const char* name, const char* value);
|
1207
|
+
UV_EXTERN int uv_os_unsetenv(const char* name);
|
1208
|
+
|
1209
|
+
#ifdef MAXHOSTNAMELEN
|
1210
|
+
# define UV_MAXHOSTNAMESIZE (MAXHOSTNAMELEN + 1)
|
1211
|
+
#else
|
1212
|
+
/*
|
1213
|
+
Fallback for the maximum hostname size, including the null terminator. The
|
1214
|
+
Windows gethostname() documentation states that 256 bytes will always be
|
1215
|
+
large enough to hold the null-terminated hostname.
|
1216
|
+
*/
|
1217
|
+
# define UV_MAXHOSTNAMESIZE 256
|
1218
|
+
#endif
|
1219
|
+
|
1220
|
+
UV_EXTERN int uv_os_gethostname(char* buffer, size_t* size);
|
1221
|
+
|
1222
|
+
UV_EXTERN int uv_os_uname(uv_utsname_t* buffer);
|
1223
|
+
|
1224
|
+
|
1225
|
+
typedef enum {
|
1226
|
+
UV_FS_UNKNOWN = -1,
|
1227
|
+
UV_FS_CUSTOM,
|
1228
|
+
UV_FS_OPEN,
|
1229
|
+
UV_FS_CLOSE,
|
1230
|
+
UV_FS_READ,
|
1231
|
+
UV_FS_WRITE,
|
1232
|
+
UV_FS_SENDFILE,
|
1233
|
+
UV_FS_STAT,
|
1234
|
+
UV_FS_LSTAT,
|
1235
|
+
UV_FS_FSTAT,
|
1236
|
+
UV_FS_FTRUNCATE,
|
1237
|
+
UV_FS_UTIME,
|
1238
|
+
UV_FS_FUTIME,
|
1239
|
+
UV_FS_ACCESS,
|
1240
|
+
UV_FS_CHMOD,
|
1241
|
+
UV_FS_FCHMOD,
|
1242
|
+
UV_FS_FSYNC,
|
1243
|
+
UV_FS_FDATASYNC,
|
1244
|
+
UV_FS_UNLINK,
|
1245
|
+
UV_FS_RMDIR,
|
1246
|
+
UV_FS_MKDIR,
|
1247
|
+
UV_FS_MKDTEMP,
|
1248
|
+
UV_FS_RENAME,
|
1249
|
+
UV_FS_SCANDIR,
|
1250
|
+
UV_FS_LINK,
|
1251
|
+
UV_FS_SYMLINK,
|
1252
|
+
UV_FS_READLINK,
|
1253
|
+
UV_FS_CHOWN,
|
1254
|
+
UV_FS_FCHOWN,
|
1255
|
+
UV_FS_REALPATH,
|
1256
|
+
UV_FS_COPYFILE,
|
1257
|
+
UV_FS_LCHOWN,
|
1258
|
+
UV_FS_OPENDIR,
|
1259
|
+
UV_FS_READDIR,
|
1260
|
+
UV_FS_CLOSEDIR,
|
1261
|
+
UV_FS_STATFS,
|
1262
|
+
UV_FS_MKSTEMP
|
1263
|
+
} uv_fs_type;
|
1264
|
+
|
1265
|
+
struct uv_dir_s {
|
1266
|
+
uv_dirent_t* dirents;
|
1267
|
+
size_t nentries;
|
1268
|
+
void* reserved[4];
|
1269
|
+
UV_DIR_PRIVATE_FIELDS
|
1270
|
+
};
|
1271
|
+
|
1272
|
+
/* uv_fs_t is a subclass of uv_req_t. */
|
1273
|
+
struct uv_fs_s {
|
1274
|
+
UV_REQ_FIELDS
|
1275
|
+
uv_fs_type fs_type;
|
1276
|
+
uv_loop_t* loop;
|
1277
|
+
uv_fs_cb cb;
|
1278
|
+
ssize_t result;
|
1279
|
+
void* ptr;
|
1280
|
+
const char* path;
|
1281
|
+
uv_stat_t statbuf; /* Stores the result of uv_fs_stat() and uv_fs_fstat(). */
|
1282
|
+
UV_FS_PRIVATE_FIELDS
|
1283
|
+
};
|
1284
|
+
|
1285
|
+
UV_EXTERN uv_fs_type uv_fs_get_type(const uv_fs_t*);
|
1286
|
+
UV_EXTERN ssize_t uv_fs_get_result(const uv_fs_t*);
|
1287
|
+
UV_EXTERN void* uv_fs_get_ptr(const uv_fs_t*);
|
1288
|
+
UV_EXTERN const char* uv_fs_get_path(const uv_fs_t*);
|
1289
|
+
UV_EXTERN uv_stat_t* uv_fs_get_statbuf(uv_fs_t*);
|
1290
|
+
|
1291
|
+
UV_EXTERN void uv_fs_req_cleanup(uv_fs_t* req);
|
1292
|
+
UV_EXTERN int uv_fs_close(uv_loop_t* loop,
|
1293
|
+
uv_fs_t* req,
|
1294
|
+
uv_file file,
|
1295
|
+
uv_fs_cb cb);
|
1296
|
+
UV_EXTERN int uv_fs_open(uv_loop_t* loop,
|
1297
|
+
uv_fs_t* req,
|
1298
|
+
const char* path,
|
1299
|
+
int flags,
|
1300
|
+
int mode,
|
1301
|
+
uv_fs_cb cb);
|
1302
|
+
UV_EXTERN int uv_fs_read(uv_loop_t* loop,
|
1303
|
+
uv_fs_t* req,
|
1304
|
+
uv_file file,
|
1305
|
+
const uv_buf_t bufs[],
|
1306
|
+
unsigned int nbufs,
|
1307
|
+
int64_t offset,
|
1308
|
+
uv_fs_cb cb);
|
1309
|
+
UV_EXTERN int uv_fs_unlink(uv_loop_t* loop,
|
1310
|
+
uv_fs_t* req,
|
1311
|
+
const char* path,
|
1312
|
+
uv_fs_cb cb);
|
1313
|
+
UV_EXTERN int uv_fs_write(uv_loop_t* loop,
|
1314
|
+
uv_fs_t* req,
|
1315
|
+
uv_file file,
|
1316
|
+
const uv_buf_t bufs[],
|
1317
|
+
unsigned int nbufs,
|
1318
|
+
int64_t offset,
|
1319
|
+
uv_fs_cb cb);
|
1320
|
+
/*
|
1321
|
+
* This flag can be used with uv_fs_copyfile() to return an error if the
|
1322
|
+
* destination already exists.
|
1323
|
+
*/
|
1324
|
+
#define UV_FS_COPYFILE_EXCL 0x0001
|
1325
|
+
|
1326
|
+
/*
|
1327
|
+
* This flag can be used with uv_fs_copyfile() to attempt to create a reflink.
|
1328
|
+
* If copy-on-write is not supported, a fallback copy mechanism is used.
|
1329
|
+
*/
|
1330
|
+
#define UV_FS_COPYFILE_FICLONE 0x0002
|
1331
|
+
|
1332
|
+
/*
|
1333
|
+
* This flag can be used with uv_fs_copyfile() to attempt to create a reflink.
|
1334
|
+
* If copy-on-write is not supported, an error is returned.
|
1335
|
+
*/
|
1336
|
+
#define UV_FS_COPYFILE_FICLONE_FORCE 0x0004
|
1337
|
+
|
1338
|
+
UV_EXTERN int uv_fs_copyfile(uv_loop_t* loop,
|
1339
|
+
uv_fs_t* req,
|
1340
|
+
const char* path,
|
1341
|
+
const char* new_path,
|
1342
|
+
int flags,
|
1343
|
+
uv_fs_cb cb);
|
1344
|
+
UV_EXTERN int uv_fs_mkdir(uv_loop_t* loop,
|
1345
|
+
uv_fs_t* req,
|
1346
|
+
const char* path,
|
1347
|
+
int mode,
|
1348
|
+
uv_fs_cb cb);
|
1349
|
+
UV_EXTERN int uv_fs_mkdtemp(uv_loop_t* loop,
|
1350
|
+
uv_fs_t* req,
|
1351
|
+
const char* tpl,
|
1352
|
+
uv_fs_cb cb);
|
1353
|
+
UV_EXTERN int uv_fs_mkstemp(uv_loop_t* loop,
|
1354
|
+
uv_fs_t* req,
|
1355
|
+
const char* tpl,
|
1356
|
+
uv_fs_cb cb);
|
1357
|
+
UV_EXTERN int uv_fs_rmdir(uv_loop_t* loop,
|
1358
|
+
uv_fs_t* req,
|
1359
|
+
const char* path,
|
1360
|
+
uv_fs_cb cb);
|
1361
|
+
UV_EXTERN int uv_fs_scandir(uv_loop_t* loop,
|
1362
|
+
uv_fs_t* req,
|
1363
|
+
const char* path,
|
1364
|
+
int flags,
|
1365
|
+
uv_fs_cb cb);
|
1366
|
+
UV_EXTERN int uv_fs_scandir_next(uv_fs_t* req,
|
1367
|
+
uv_dirent_t* ent);
|
1368
|
+
UV_EXTERN int uv_fs_opendir(uv_loop_t* loop,
|
1369
|
+
uv_fs_t* req,
|
1370
|
+
const char* path,
|
1371
|
+
uv_fs_cb cb);
|
1372
|
+
UV_EXTERN int uv_fs_readdir(uv_loop_t* loop,
|
1373
|
+
uv_fs_t* req,
|
1374
|
+
uv_dir_t* dir,
|
1375
|
+
uv_fs_cb cb);
|
1376
|
+
UV_EXTERN int uv_fs_closedir(uv_loop_t* loop,
|
1377
|
+
uv_fs_t* req,
|
1378
|
+
uv_dir_t* dir,
|
1379
|
+
uv_fs_cb cb);
|
1380
|
+
UV_EXTERN int uv_fs_stat(uv_loop_t* loop,
|
1381
|
+
uv_fs_t* req,
|
1382
|
+
const char* path,
|
1383
|
+
uv_fs_cb cb);
|
1384
|
+
UV_EXTERN int uv_fs_fstat(uv_loop_t* loop,
|
1385
|
+
uv_fs_t* req,
|
1386
|
+
uv_file file,
|
1387
|
+
uv_fs_cb cb);
|
1388
|
+
UV_EXTERN int uv_fs_rename(uv_loop_t* loop,
|
1389
|
+
uv_fs_t* req,
|
1390
|
+
const char* path,
|
1391
|
+
const char* new_path,
|
1392
|
+
uv_fs_cb cb);
|
1393
|
+
UV_EXTERN int uv_fs_fsync(uv_loop_t* loop,
|
1394
|
+
uv_fs_t* req,
|
1395
|
+
uv_file file,
|
1396
|
+
uv_fs_cb cb);
|
1397
|
+
UV_EXTERN int uv_fs_fdatasync(uv_loop_t* loop,
|
1398
|
+
uv_fs_t* req,
|
1399
|
+
uv_file file,
|
1400
|
+
uv_fs_cb cb);
|
1401
|
+
UV_EXTERN int uv_fs_ftruncate(uv_loop_t* loop,
|
1402
|
+
uv_fs_t* req,
|
1403
|
+
uv_file file,
|
1404
|
+
int64_t offset,
|
1405
|
+
uv_fs_cb cb);
|
1406
|
+
UV_EXTERN int uv_fs_sendfile(uv_loop_t* loop,
|
1407
|
+
uv_fs_t* req,
|
1408
|
+
uv_file out_fd,
|
1409
|
+
uv_file in_fd,
|
1410
|
+
int64_t in_offset,
|
1411
|
+
size_t length,
|
1412
|
+
uv_fs_cb cb);
|
1413
|
+
UV_EXTERN int uv_fs_access(uv_loop_t* loop,
|
1414
|
+
uv_fs_t* req,
|
1415
|
+
const char* path,
|
1416
|
+
int mode,
|
1417
|
+
uv_fs_cb cb);
|
1418
|
+
UV_EXTERN int uv_fs_chmod(uv_loop_t* loop,
|
1419
|
+
uv_fs_t* req,
|
1420
|
+
const char* path,
|
1421
|
+
int mode,
|
1422
|
+
uv_fs_cb cb);
|
1423
|
+
UV_EXTERN int uv_fs_utime(uv_loop_t* loop,
|
1424
|
+
uv_fs_t* req,
|
1425
|
+
const char* path,
|
1426
|
+
double atime,
|
1427
|
+
double mtime,
|
1428
|
+
uv_fs_cb cb);
|
1429
|
+
UV_EXTERN int uv_fs_futime(uv_loop_t* loop,
|
1430
|
+
uv_fs_t* req,
|
1431
|
+
uv_file file,
|
1432
|
+
double atime,
|
1433
|
+
double mtime,
|
1434
|
+
uv_fs_cb cb);
|
1435
|
+
UV_EXTERN int uv_fs_lstat(uv_loop_t* loop,
|
1436
|
+
uv_fs_t* req,
|
1437
|
+
const char* path,
|
1438
|
+
uv_fs_cb cb);
|
1439
|
+
UV_EXTERN int uv_fs_link(uv_loop_t* loop,
|
1440
|
+
uv_fs_t* req,
|
1441
|
+
const char* path,
|
1442
|
+
const char* new_path,
|
1443
|
+
uv_fs_cb cb);
|
1444
|
+
|
1445
|
+
/*
|
1446
|
+
* This flag can be used with uv_fs_symlink() on Windows to specify whether
|
1447
|
+
* path argument points to a directory.
|
1448
|
+
*/
|
1449
|
+
#define UV_FS_SYMLINK_DIR 0x0001
|
1450
|
+
|
1451
|
+
/*
|
1452
|
+
* This flag can be used with uv_fs_symlink() on Windows to specify whether
|
1453
|
+
* the symlink is to be created using junction points.
|
1454
|
+
*/
|
1455
|
+
#define UV_FS_SYMLINK_JUNCTION 0x0002
|
1456
|
+
|
1457
|
+
UV_EXTERN int uv_fs_symlink(uv_loop_t* loop,
|
1458
|
+
uv_fs_t* req,
|
1459
|
+
const char* path,
|
1460
|
+
const char* new_path,
|
1461
|
+
int flags,
|
1462
|
+
uv_fs_cb cb);
|
1463
|
+
UV_EXTERN int uv_fs_readlink(uv_loop_t* loop,
|
1464
|
+
uv_fs_t* req,
|
1465
|
+
const char* path,
|
1466
|
+
uv_fs_cb cb);
|
1467
|
+
UV_EXTERN int uv_fs_realpath(uv_loop_t* loop,
|
1468
|
+
uv_fs_t* req,
|
1469
|
+
const char* path,
|
1470
|
+
uv_fs_cb cb);
|
1471
|
+
UV_EXTERN int uv_fs_fchmod(uv_loop_t* loop,
|
1472
|
+
uv_fs_t* req,
|
1473
|
+
uv_file file,
|
1474
|
+
int mode,
|
1475
|
+
uv_fs_cb cb);
|
1476
|
+
UV_EXTERN int uv_fs_chown(uv_loop_t* loop,
|
1477
|
+
uv_fs_t* req,
|
1478
|
+
const char* path,
|
1479
|
+
uv_uid_t uid,
|
1480
|
+
uv_gid_t gid,
|
1481
|
+
uv_fs_cb cb);
|
1482
|
+
UV_EXTERN int uv_fs_fchown(uv_loop_t* loop,
|
1483
|
+
uv_fs_t* req,
|
1484
|
+
uv_file file,
|
1485
|
+
uv_uid_t uid,
|
1486
|
+
uv_gid_t gid,
|
1487
|
+
uv_fs_cb cb);
|
1488
|
+
UV_EXTERN int uv_fs_lchown(uv_loop_t* loop,
|
1489
|
+
uv_fs_t* req,
|
1490
|
+
const char* path,
|
1491
|
+
uv_uid_t uid,
|
1492
|
+
uv_gid_t gid,
|
1493
|
+
uv_fs_cb cb);
|
1494
|
+
UV_EXTERN int uv_fs_statfs(uv_loop_t* loop,
|
1495
|
+
uv_fs_t* req,
|
1496
|
+
const char* path,
|
1497
|
+
uv_fs_cb cb);
|
1498
|
+
|
1499
|
+
|
1500
|
+
enum uv_fs_event {
|
1501
|
+
UV_RENAME = 1,
|
1502
|
+
UV_CHANGE = 2
|
1503
|
+
};
|
1504
|
+
|
1505
|
+
|
1506
|
+
struct uv_fs_event_s {
|
1507
|
+
UV_HANDLE_FIELDS
|
1508
|
+
/* private */
|
1509
|
+
char* path;
|
1510
|
+
UV_FS_EVENT_PRIVATE_FIELDS
|
1511
|
+
};
|
1512
|
+
|
1513
|
+
|
1514
|
+
/*
|
1515
|
+
* uv_fs_stat() based polling file watcher.
|
1516
|
+
*/
|
1517
|
+
struct uv_fs_poll_s {
|
1518
|
+
UV_HANDLE_FIELDS
|
1519
|
+
/* Private, don't touch. */
|
1520
|
+
void* poll_ctx;
|
1521
|
+
};
|
1522
|
+
|
1523
|
+
UV_EXTERN int uv_fs_poll_init(uv_loop_t* loop, uv_fs_poll_t* handle);
|
1524
|
+
UV_EXTERN int uv_fs_poll_start(uv_fs_poll_t* handle,
|
1525
|
+
uv_fs_poll_cb poll_cb,
|
1526
|
+
const char* path,
|
1527
|
+
unsigned int interval);
|
1528
|
+
UV_EXTERN int uv_fs_poll_stop(uv_fs_poll_t* handle);
|
1529
|
+
UV_EXTERN int uv_fs_poll_getpath(uv_fs_poll_t* handle,
|
1530
|
+
char* buffer,
|
1531
|
+
size_t* size);
|
1532
|
+
|
1533
|
+
|
1534
|
+
struct uv_signal_s {
|
1535
|
+
UV_HANDLE_FIELDS
|
1536
|
+
uv_signal_cb signal_cb;
|
1537
|
+
int signum;
|
1538
|
+
UV_SIGNAL_PRIVATE_FIELDS
|
1539
|
+
};
|
1540
|
+
|
1541
|
+
UV_EXTERN int uv_signal_init(uv_loop_t* loop, uv_signal_t* handle);
|
1542
|
+
UV_EXTERN int uv_signal_start(uv_signal_t* handle,
|
1543
|
+
uv_signal_cb signal_cb,
|
1544
|
+
int signum);
|
1545
|
+
UV_EXTERN int uv_signal_start_oneshot(uv_signal_t* handle,
|
1546
|
+
uv_signal_cb signal_cb,
|
1547
|
+
int signum);
|
1548
|
+
UV_EXTERN int uv_signal_stop(uv_signal_t* handle);
|
1549
|
+
|
1550
|
+
UV_EXTERN void uv_loadavg(double avg[3]);
|
1551
|
+
|
1552
|
+
|
1553
|
+
/*
|
1554
|
+
* Flags to be passed to uv_fs_event_start().
|
1555
|
+
*/
|
1556
|
+
enum uv_fs_event_flags {
|
1557
|
+
/*
|
1558
|
+
* By default, if the fs event watcher is given a directory name, we will
|
1559
|
+
* watch for all events in that directory. This flags overrides this behavior
|
1560
|
+
* and makes fs_event report only changes to the directory entry itself. This
|
1561
|
+
* flag does not affect individual files watched.
|
1562
|
+
* This flag is currently not implemented yet on any backend.
|
1563
|
+
*/
|
1564
|
+
UV_FS_EVENT_WATCH_ENTRY = 1,
|
1565
|
+
|
1566
|
+
/*
|
1567
|
+
* By default uv_fs_event will try to use a kernel interface such as inotify
|
1568
|
+
* or kqueue to detect events. This may not work on remote filesystems such
|
1569
|
+
* as NFS mounts. This flag makes fs_event fall back to calling stat() on a
|
1570
|
+
* regular interval.
|
1571
|
+
* This flag is currently not implemented yet on any backend.
|
1572
|
+
*/
|
1573
|
+
UV_FS_EVENT_STAT = 2,
|
1574
|
+
|
1575
|
+
/*
|
1576
|
+
* By default, event watcher, when watching directory, is not registering
|
1577
|
+
* (is ignoring) changes in it's subdirectories.
|
1578
|
+
* This flag will override this behaviour on platforms that support it.
|
1579
|
+
*/
|
1580
|
+
UV_FS_EVENT_RECURSIVE = 4
|
1581
|
+
};
|
1582
|
+
|
1583
|
+
|
1584
|
+
UV_EXTERN int uv_fs_event_init(uv_loop_t* loop, uv_fs_event_t* handle);
|
1585
|
+
UV_EXTERN int uv_fs_event_start(uv_fs_event_t* handle,
|
1586
|
+
uv_fs_event_cb cb,
|
1587
|
+
const char* path,
|
1588
|
+
unsigned int flags);
|
1589
|
+
UV_EXTERN int uv_fs_event_stop(uv_fs_event_t* handle);
|
1590
|
+
UV_EXTERN int uv_fs_event_getpath(uv_fs_event_t* handle,
|
1591
|
+
char* buffer,
|
1592
|
+
size_t* size);
|
1593
|
+
|
1594
|
+
UV_EXTERN int uv_ip4_addr(const char* ip, int port, struct sockaddr_in* addr);
|
1595
|
+
UV_EXTERN int uv_ip6_addr(const char* ip, int port, struct sockaddr_in6* addr);
|
1596
|
+
|
1597
|
+
UV_EXTERN int uv_ip4_name(const struct sockaddr_in* src, char* dst, size_t size);
|
1598
|
+
UV_EXTERN int uv_ip6_name(const struct sockaddr_in6* src, char* dst, size_t size);
|
1599
|
+
|
1600
|
+
UV_EXTERN int uv_inet_ntop(int af, const void* src, char* dst, size_t size);
|
1601
|
+
UV_EXTERN int uv_inet_pton(int af, const char* src, void* dst);
|
1602
|
+
|
1603
|
+
|
1604
|
+
struct uv_random_s {
|
1605
|
+
UV_REQ_FIELDS
|
1606
|
+
/* read-only */
|
1607
|
+
uv_loop_t* loop;
|
1608
|
+
/* private */
|
1609
|
+
int status;
|
1610
|
+
void* buf;
|
1611
|
+
size_t buflen;
|
1612
|
+
uv_random_cb cb;
|
1613
|
+
struct uv__work work_req;
|
1614
|
+
};
|
1615
|
+
|
1616
|
+
UV_EXTERN int uv_random(uv_loop_t* loop,
|
1617
|
+
uv_random_t* req,
|
1618
|
+
void *buf,
|
1619
|
+
size_t buflen,
|
1620
|
+
unsigned flags, /* For future extension; must be 0. */
|
1621
|
+
uv_random_cb cb);
|
1622
|
+
|
1623
|
+
#if defined(IF_NAMESIZE)
|
1624
|
+
# define UV_IF_NAMESIZE (IF_NAMESIZE + 1)
|
1625
|
+
#elif defined(IFNAMSIZ)
|
1626
|
+
# define UV_IF_NAMESIZE (IFNAMSIZ + 1)
|
1627
|
+
#else
|
1628
|
+
# define UV_IF_NAMESIZE (16 + 1)
|
1629
|
+
#endif
|
1630
|
+
|
1631
|
+
UV_EXTERN int uv_if_indextoname(unsigned int ifindex,
|
1632
|
+
char* buffer,
|
1633
|
+
size_t* size);
|
1634
|
+
UV_EXTERN int uv_if_indextoiid(unsigned int ifindex,
|
1635
|
+
char* buffer,
|
1636
|
+
size_t* size);
|
1637
|
+
|
1638
|
+
UV_EXTERN int uv_exepath(char* buffer, size_t* size);
|
1639
|
+
|
1640
|
+
UV_EXTERN int uv_cwd(char* buffer, size_t* size);
|
1641
|
+
|
1642
|
+
UV_EXTERN int uv_chdir(const char* dir);
|
1643
|
+
|
1644
|
+
UV_EXTERN uint64_t uv_get_free_memory(void);
|
1645
|
+
UV_EXTERN uint64_t uv_get_total_memory(void);
|
1646
|
+
UV_EXTERN uint64_t uv_get_constrained_memory(void);
|
1647
|
+
|
1648
|
+
UV_EXTERN uint64_t uv_hrtime(void);
|
1649
|
+
UV_EXTERN void uv_sleep(unsigned int msec);
|
1650
|
+
|
1651
|
+
UV_EXTERN void uv_disable_stdio_inheritance(void);
|
1652
|
+
|
1653
|
+
UV_EXTERN int uv_dlopen(const char* filename, uv_lib_t* lib);
|
1654
|
+
UV_EXTERN void uv_dlclose(uv_lib_t* lib);
|
1655
|
+
UV_EXTERN int uv_dlsym(uv_lib_t* lib, const char* name, void** ptr);
|
1656
|
+
UV_EXTERN const char* uv_dlerror(const uv_lib_t* lib);
|
1657
|
+
|
1658
|
+
UV_EXTERN int uv_mutex_init(uv_mutex_t* handle);
|
1659
|
+
UV_EXTERN int uv_mutex_init_recursive(uv_mutex_t* handle);
|
1660
|
+
UV_EXTERN void uv_mutex_destroy(uv_mutex_t* handle);
|
1661
|
+
UV_EXTERN void uv_mutex_lock(uv_mutex_t* handle);
|
1662
|
+
UV_EXTERN int uv_mutex_trylock(uv_mutex_t* handle);
|
1663
|
+
UV_EXTERN void uv_mutex_unlock(uv_mutex_t* handle);
|
1664
|
+
|
1665
|
+
UV_EXTERN int uv_rwlock_init(uv_rwlock_t* rwlock);
|
1666
|
+
UV_EXTERN void uv_rwlock_destroy(uv_rwlock_t* rwlock);
|
1667
|
+
UV_EXTERN void uv_rwlock_rdlock(uv_rwlock_t* rwlock);
|
1668
|
+
UV_EXTERN int uv_rwlock_tryrdlock(uv_rwlock_t* rwlock);
|
1669
|
+
UV_EXTERN void uv_rwlock_rdunlock(uv_rwlock_t* rwlock);
|
1670
|
+
UV_EXTERN void uv_rwlock_wrlock(uv_rwlock_t* rwlock);
|
1671
|
+
UV_EXTERN int uv_rwlock_trywrlock(uv_rwlock_t* rwlock);
|
1672
|
+
UV_EXTERN void uv_rwlock_wrunlock(uv_rwlock_t* rwlock);
|
1673
|
+
|
1674
|
+
UV_EXTERN int uv_sem_init(uv_sem_t* sem, unsigned int value);
|
1675
|
+
UV_EXTERN void uv_sem_destroy(uv_sem_t* sem);
|
1676
|
+
UV_EXTERN void uv_sem_post(uv_sem_t* sem);
|
1677
|
+
UV_EXTERN void uv_sem_wait(uv_sem_t* sem);
|
1678
|
+
UV_EXTERN int uv_sem_trywait(uv_sem_t* sem);
|
1679
|
+
|
1680
|
+
UV_EXTERN int uv_cond_init(uv_cond_t* cond);
|
1681
|
+
UV_EXTERN void uv_cond_destroy(uv_cond_t* cond);
|
1682
|
+
UV_EXTERN void uv_cond_signal(uv_cond_t* cond);
|
1683
|
+
UV_EXTERN void uv_cond_broadcast(uv_cond_t* cond);
|
1684
|
+
|
1685
|
+
UV_EXTERN int uv_barrier_init(uv_barrier_t* barrier, unsigned int count);
|
1686
|
+
UV_EXTERN void uv_barrier_destroy(uv_barrier_t* barrier);
|
1687
|
+
UV_EXTERN int uv_barrier_wait(uv_barrier_t* barrier);
|
1688
|
+
|
1689
|
+
UV_EXTERN void uv_cond_wait(uv_cond_t* cond, uv_mutex_t* mutex);
|
1690
|
+
UV_EXTERN int uv_cond_timedwait(uv_cond_t* cond,
|
1691
|
+
uv_mutex_t* mutex,
|
1692
|
+
uint64_t timeout);
|
1693
|
+
|
1694
|
+
UV_EXTERN void uv_once(uv_once_t* guard, void (*callback)(void));
|
1695
|
+
|
1696
|
+
UV_EXTERN int uv_key_create(uv_key_t* key);
|
1697
|
+
UV_EXTERN void uv_key_delete(uv_key_t* key);
|
1698
|
+
UV_EXTERN void* uv_key_get(uv_key_t* key);
|
1699
|
+
UV_EXTERN void uv_key_set(uv_key_t* key, void* value);
|
1700
|
+
|
1701
|
+
UV_EXTERN int uv_gettimeofday(uv_timeval64_t* tv);
|
1702
|
+
|
1703
|
+
typedef void (*uv_thread_cb)(void* arg);
|
1704
|
+
|
1705
|
+
UV_EXTERN int uv_thread_create(uv_thread_t* tid, uv_thread_cb entry, void* arg);
|
1706
|
+
|
1707
|
+
typedef enum {
|
1708
|
+
UV_THREAD_NO_FLAGS = 0x00,
|
1709
|
+
UV_THREAD_HAS_STACK_SIZE = 0x01
|
1710
|
+
} uv_thread_create_flags;
|
1711
|
+
|
1712
|
+
struct uv_thread_options_s {
|
1713
|
+
unsigned int flags;
|
1714
|
+
size_t stack_size;
|
1715
|
+
/* More fields may be added at any time. */
|
1716
|
+
};
|
1717
|
+
|
1718
|
+
typedef struct uv_thread_options_s uv_thread_options_t;
|
1719
|
+
|
1720
|
+
UV_EXTERN int uv_thread_create_ex(uv_thread_t* tid,
|
1721
|
+
const uv_thread_options_t* params,
|
1722
|
+
uv_thread_cb entry,
|
1723
|
+
void* arg);
|
1724
|
+
UV_EXTERN uv_thread_t uv_thread_self(void);
|
1725
|
+
UV_EXTERN int uv_thread_join(uv_thread_t *tid);
|
1726
|
+
UV_EXTERN int uv_thread_equal(const uv_thread_t* t1, const uv_thread_t* t2);
|
1727
|
+
|
1728
|
+
/* The presence of these unions force similar struct layout. */
|
1729
|
+
#define XX(_, name) uv_ ## name ## _t name;
|
1730
|
+
union uv_any_handle {
|
1731
|
+
UV_HANDLE_TYPE_MAP(XX)
|
1732
|
+
};
|
1733
|
+
|
1734
|
+
union uv_any_req {
|
1735
|
+
UV_REQ_TYPE_MAP(XX)
|
1736
|
+
};
|
1737
|
+
#undef XX
|
1738
|
+
|
1739
|
+
|
1740
|
+
struct uv_loop_s {
|
1741
|
+
/* User data - use this for whatever. */
|
1742
|
+
void* data;
|
1743
|
+
/* Loop reference counting. */
|
1744
|
+
unsigned int active_handles;
|
1745
|
+
void* handle_queue[2];
|
1746
|
+
union {
|
1747
|
+
void* unused[2];
|
1748
|
+
unsigned int count;
|
1749
|
+
} active_reqs;
|
1750
|
+
/* Internal flag to signal loop stop. */
|
1751
|
+
unsigned int stop_flag;
|
1752
|
+
UV_LOOP_PRIVATE_FIELDS
|
1753
|
+
};
|
1754
|
+
|
1755
|
+
UV_EXTERN void* uv_loop_get_data(const uv_loop_t*);
|
1756
|
+
UV_EXTERN void uv_loop_set_data(uv_loop_t*, void* data);
|
1757
|
+
|
1758
|
+
/* Don't export the private CPP symbols. */
|
1759
|
+
#undef UV_HANDLE_TYPE_PRIVATE
|
1760
|
+
#undef UV_REQ_TYPE_PRIVATE
|
1761
|
+
#undef UV_REQ_PRIVATE_FIELDS
|
1762
|
+
#undef UV_STREAM_PRIVATE_FIELDS
|
1763
|
+
#undef UV_TCP_PRIVATE_FIELDS
|
1764
|
+
#undef UV_PREPARE_PRIVATE_FIELDS
|
1765
|
+
#undef UV_CHECK_PRIVATE_FIELDS
|
1766
|
+
#undef UV_IDLE_PRIVATE_FIELDS
|
1767
|
+
#undef UV_ASYNC_PRIVATE_FIELDS
|
1768
|
+
#undef UV_TIMER_PRIVATE_FIELDS
|
1769
|
+
#undef UV_GETADDRINFO_PRIVATE_FIELDS
|
1770
|
+
#undef UV_GETNAMEINFO_PRIVATE_FIELDS
|
1771
|
+
#undef UV_FS_REQ_PRIVATE_FIELDS
|
1772
|
+
#undef UV_WORK_PRIVATE_FIELDS
|
1773
|
+
#undef UV_FS_EVENT_PRIVATE_FIELDS
|
1774
|
+
#undef UV_SIGNAL_PRIVATE_FIELDS
|
1775
|
+
#undef UV_LOOP_PRIVATE_FIELDS
|
1776
|
+
#undef UV_LOOP_PRIVATE_PLATFORM_FIELDS
|
1777
|
+
#undef UV__ERR
|
1778
|
+
|
1779
|
+
#ifdef __cplusplus
|
1780
|
+
}
|
1781
|
+
#endif
|
1782
|
+
#endif /* UV_H */
|