passenger 6.2.0 → 6.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +33 -1
- data/CONTRIBUTING.md +7 -311
- data/CONTRIBUTORS +1 -0
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/Rakefile +1 -1
- data/bin/passenger +1 -1
- data/bin/passenger-config +1 -1
- data/bin/passenger-install-apache2-module +1 -1
- data/bin/passenger-install-nginx-module +4 -9
- data/bin/passenger-memory-stats +1 -1
- data/bin/passenger-status +1 -1
- data/build/agent.rb +13 -15
- data/build/apache2.rb +13 -16
- data/build/basics.rb +10 -13
- data/build/common_library.rb +5 -9
- data/build/cxx_tests.rb +37 -12
- data/build/integration_tests.rb +5 -2
- data/build/misc.rb +1 -1
- data/build/nginx.rb +1 -1
- data/build/node_tests.rb +1 -1
- data/build/oxt_tests.rb +6 -8
- data/build/packaging.rb +1 -1
- data/build/ruby_extension.rb +1 -1
- data/build/ruby_tests.rb +1 -1
- data/build/schema_printer.rb +13 -15
- data/build/support/cplusplus.rb +61 -69
- data/build/support/cxx_dependency_map.rb +2 -1
- data/build/support/general.rb +1 -1
- data/build/support/vendor/cxx_hinted_parser/LICENSE.md +1 -1
- data/build/support/vendor/cxx_hinted_parser/lib/cxx_hinted_parser/parser.rb +1 -1
- data/build/support/vendor/cxx_hinted_parser/lib/cxx_hinted_parser.rb +1 -1
- data/build/support/vendor/cxxcodebuilder/LICENSE.md +1 -1
- data/build/support/vendor/cxxcodebuilder/lib/cxxcodebuilder/builder.rb +1 -1
- data/build/support/vendor/cxxcodebuilder/lib/cxxcodebuilder/initializer_builder.rb +1 -1
- data/build/support/vendor/cxxcodebuilder/lib/cxxcodebuilder.rb +1 -1
- data/build/test_basics.rb +1 -1
- data/dev/copy_boost_headers +1 -1
- data/dev/index_cxx_dependencies.rb +5 -1
- data/dev/libev-changes.patch +108 -0
- data/dev/nginx_version_sha256 +1 -1
- data/dev/ruby_server.rb +1 -6
- data/dev/upgrading_libuv.sh +16 -0
- data/doc/BasicArchitectureOverview.md +55 -0
- data/doc/BuildCaching.md +23 -0
- data/doc/BuildSystem.md +49 -0
- data/doc/DebuggingAndStressTesting.md +2 -0
- data/doc/DesignAspects/LimitedGemDependencies.md +1 -0
- data/doc/DevEnvironmentSetup.md +46 -0
- data/doc/DevHandbook.md +28 -0
- data/doc/Packaging.md +1 -1
- data/doc/RunningTests.md +88 -0
- data/doc/{TempFileHandling.md → SecureTempFileHandling.md} +1 -1
- data/doc/{CxxTestingGuide.md → WritingCxxTests.md} +1 -20
- data/src/agent/AgentMain.cpp +1 -1
- data/src/agent/Core/ApiServer.h +1 -1
- data/src/agent/Core/ApplicationPool/AbstractSession.h +1 -1
- data/src/agent/Core/ApplicationPool/BasicGroupInfo.h +1 -1
- data/src/agent/Core/ApplicationPool/BasicProcessInfo.h +1 -1
- data/src/agent/Core/ApplicationPool/Common.h +1 -1
- data/src/agent/Core/ApplicationPool/Context.h +1 -1
- data/src/agent/Core/ApplicationPool/Group/InitializationAndShutdown.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/InternalUtils.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/LifetimeAndBasics.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/Miscellaneous.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/OutOfBandWork.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/ProcessListManagement.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/SessionManagement.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/SpawningAndRestarting.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/StateInspection.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/Verification.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group.h +1 -1
- data/src/agent/Core/ApplicationPool/Implementation.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Options.h +1 -1
- data/src/agent/Core/ApplicationPool/Pool/AnalyticsCollection.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/GarbageCollection.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/GeneralUtils.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/GroupUtils.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/InitializationAndShutdown.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/Miscellaneous.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/ProcessUtils.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/StateInspection.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool.h +1 -1
- data/src/agent/Core/ApplicationPool/Process.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Process.h +1 -1
- data/src/agent/Core/ApplicationPool/Session.h +1 -1
- data/src/agent/Core/ApplicationPool/Socket.h +1 -1
- data/src/agent/Core/ApplicationPool/TestSession.h +1 -1
- data/src/agent/Core/Config.h +3 -2
- data/src/agent/Core/ConfigChange.cpp +1 -1
- data/src/agent/Core/ConfigChange.h +1 -1
- data/src/agent/Core/Controller/AppResponse.h +1 -1
- data/src/agent/Core/Controller/BufferBody.cpp +1 -1
- data/src/agent/Core/Controller/CheckoutSession.cpp +8 -5
- data/src/agent/Core/Controller/Client.h +1 -1
- data/src/agent/Core/Controller/Config.cpp +1 -1
- data/src/agent/Core/Controller/Config.h +2 -2
- data/src/agent/Core/Controller/ForwardResponse.cpp +2 -2
- data/src/agent/Core/Controller/Hooks.cpp +12 -9
- data/src/agent/Core/Controller/Implementation.cpp +1 -1
- data/src/agent/Core/Controller/InitRequest.cpp +1 -1
- data/src/agent/Core/Controller/InitializationAndShutdown.cpp +1 -1
- data/src/agent/Core/Controller/InternalUtils.cpp +1 -1
- data/src/agent/Core/Controller/Miscellaneous.cpp +1 -1
- data/src/agent/Core/Controller/Request.h +1 -1
- data/src/agent/Core/Controller/SendRequest.cpp +1 -1
- data/src/agent/Core/Controller/StateInspection.cpp +1 -1
- data/src/agent/Core/Controller/TurboCaching.h +1 -1
- data/src/agent/Core/Controller.h +1 -1
- data/src/agent/Core/CoreMain.cpp +1 -1
- data/src/agent/Core/OptionParser.h +1 -1
- data/src/agent/Core/ResponseCache.h +1 -1
- data/src/agent/Core/SecurityUpdateChecker.h +1 -1
- data/src/agent/Core/SpawningKit/Config/AutoGeneratedCode.h +1 -1
- data/src/agent/Core/SpawningKit/Config/AutoGeneratedCode.h.cxxcodebuilder +1 -1
- data/src/agent/Core/SpawningKit/Config.h +1 -1
- data/src/agent/Core/SpawningKit/Context.h +1 -1
- data/src/agent/Core/SpawningKit/DirectSpawner.h +1 -1
- data/src/agent/Core/SpawningKit/DummySpawner.h +1 -1
- data/src/agent/Core/SpawningKit/ErrorRenderer.h +1 -1
- data/src/agent/Core/SpawningKit/Exceptions.h +63 -2
- data/src/agent/Core/SpawningKit/Factory.h +1 -1
- data/src/agent/Core/SpawningKit/Handshake/BackgroundIOCapturer.h +1 -1
- data/src/agent/Core/SpawningKit/Handshake/Perform.h +3 -2
- data/src/agent/Core/SpawningKit/Handshake/Prepare.h +1 -1
- data/src/agent/Core/SpawningKit/Handshake/Session.h +1 -1
- data/src/agent/Core/SpawningKit/Handshake/WorkDir.h +1 -1
- data/src/agent/Core/SpawningKit/Journey.h +1 -1
- data/src/agent/Core/SpawningKit/PipeWatcher.h +1 -1
- data/src/agent/Core/SpawningKit/README.md +3 -3
- data/src/agent/Core/SpawningKit/Result/AutoGeneratedCode.h +1 -1
- data/src/agent/Core/SpawningKit/Result/AutoGeneratedCode.h.cxxcodebuilder +1 -1
- data/src/agent/Core/SpawningKit/Result.h +1 -1
- data/src/agent/Core/SpawningKit/SmartSpawner.h +17 -17
- data/src/agent/Core/SpawningKit/Spawner.h +1 -1
- data/src/agent/Core/SpawningKit/UserSwitchingRules.h +1 -1
- data/src/agent/Core/TelemetryCollector.h +1 -1
- data/src/agent/ExecHelper/ExecHelperMain.cpp +1 -1
- data/src/agent/FileReadHelper/FileReadHelperMain.cpp +1 -1
- data/src/agent/MainFunctions.h +1 -1
- data/src/agent/Shared/ApiAccountUtils.h +4 -3
- data/src/agent/Shared/ApiServerUtils.h +1 -2
- data/src/agent/Shared/ApplicationPoolApiKey.h +1 -1
- data/src/agent/Shared/Fundamentals/AbortHandler.cpp +1 -1
- data/src/agent/Shared/Fundamentals/AbortHandler.h +1 -1
- data/src/agent/Shared/Fundamentals/Initialization.cpp +1 -1
- data/src/agent/Shared/Fundamentals/Initialization.h +1 -1
- data/src/agent/Shared/Fundamentals/Utils.cpp +1 -1
- data/src/agent/Shared/Fundamentals/Utils.h +1 -1
- data/src/agent/SpawnEnvSetupper/SpawnEnvSetupperMain.cpp +1 -1
- data/src/agent/SystemMetrics/SystemMetricsMain.cpp +1 -1
- data/src/agent/TempDirToucher/TempDirToucherMain.cpp +1 -1
- data/src/agent/Watchdog/ApiServer.h +7 -6
- data/src/agent/Watchdog/Config.h +2 -2
- data/src/apache2_module/Bucket.cpp +1 -1
- data/src/apache2_module/Bucket.h +1 -1
- data/src/apache2_module/CBindings.cpp +1 -1
- data/src/apache2_module/Config.cpp +1 -1
- data/src/apache2_module/Config.h +1 -1
- data/src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp +104 -104
- data/src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp.cxxcodebuilder +2 -2
- data/src/apache2_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.cpp +1 -1
- data/src/apache2_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp +1 -1
- data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/ConfigGeneral/Common.h +1 -1
- data/src/apache2_module/ConfigGeneral/ManifestGeneration.h +1 -1
- data/src/apache2_module/ConfigGeneral/SetterFuncs.h +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedCreateFunction.cpp +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedCreateFunction.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedHeaderSerialization.cpp +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedHeaderSerialization.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedManifestGeneration.cpp +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedManifestGeneration.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedMergeFunction.cpp +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedMergeFunction.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedStruct.h +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedStruct.h.cxxcodebuilder +1 -1
- data/src/apache2_module/DirectoryMapper.h +1 -1
- data/src/apache2_module/Hooks.cpp +8 -2
- data/src/apache2_module/Hooks.h +1 -1
- data/src/apache2_module/ServerConfig/AutoGeneratedManifestGeneration.cpp +1 -1
- data/src/apache2_module/ServerConfig/AutoGeneratedManifestGeneration.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/ServerConfig/AutoGeneratedStruct.h +1 -1
- data/src/apache2_module/ServerConfig/AutoGeneratedStruct.h.cxxcodebuilder +1 -1
- data/src/apache2_module/Utils.h +1 -1
- data/src/apache2_module/mod_passenger.c +1 -1
- data/src/cxx_supportlib/Algorithms/Hasher.cpp +1 -1
- data/src/cxx_supportlib/Algorithms/Hasher.h +1 -1
- data/src/cxx_supportlib/Algorithms/MovingAverage.h +1 -1
- data/src/cxx_supportlib/AppLocalConfigFileUtils.h +1 -1
- data/src/cxx_supportlib/AppTypeDetector/CBindings.cpp +1 -1
- data/src/cxx_supportlib/AppTypeDetector/CBindings.h +1 -1
- data/src/cxx_supportlib/AppTypeDetector/Detector.h +1 -1
- data/src/cxx_supportlib/BackgroundEventLoop.cpp +1 -1
- data/src/cxx_supportlib/BackgroundEventLoop.h +1 -1
- data/src/cxx_supportlib/ConfigKit/AsyncUtils.h +1 -1
- data/src/cxx_supportlib/ConfigKit/Common.h +1 -1
- data/src/cxx_supportlib/ConfigKit/ConfigKit.h +1 -1
- data/src/cxx_supportlib/ConfigKit/DummyTranslator.h +1 -1
- data/src/cxx_supportlib/ConfigKit/IN_PRACTICE.md +1 -3
- data/src/cxx_supportlib/ConfigKit/PrefixTranslator.h +3 -3
- data/src/cxx_supportlib/ConfigKit/Schema.h +1 -1
- data/src/cxx_supportlib/ConfigKit/SchemaUtils.h +1 -1
- data/src/cxx_supportlib/ConfigKit/Store.h +1 -1
- data/src/cxx_supportlib/ConfigKit/SubComponentUtils.h +1 -1
- data/src/cxx_supportlib/ConfigKit/TableTranslator.h +1 -1
- data/src/cxx_supportlib/ConfigKit/Translator.h +1 -1
- data/src/cxx_supportlib/ConfigKit/Utils.h +1 -1
- data/src/cxx_supportlib/Constants.h +2 -2
- data/src/cxx_supportlib/Constants.h.cxxcodebuilder +1 -1
- data/src/cxx_supportlib/DataStructures/HashedStaticString.h +1 -1
- data/src/cxx_supportlib/DataStructures/LString.cpp +1 -1
- data/src/cxx_supportlib/DataStructures/LString.h +1 -1
- data/src/cxx_supportlib/DataStructures/StringKeyTable.h +1 -1
- data/src/cxx_supportlib/DataStructures/StringMap.h +1 -1
- data/src/cxx_supportlib/Exceptions.cpp +1 -1
- data/src/cxx_supportlib/Exceptions.h +1 -1
- data/src/cxx_supportlib/FileDescriptor.h +1 -1
- data/src/cxx_supportlib/FileTools/FileManip.cpp +1 -1
- data/src/cxx_supportlib/FileTools/FileManip.h +1 -1
- data/src/cxx_supportlib/FileTools/PathManip.cpp +1 -1
- data/src/cxx_supportlib/FileTools/PathManip.h +1 -1
- data/src/cxx_supportlib/FileTools/PathManipCBindings.cpp +1 -1
- data/src/cxx_supportlib/FileTools/PathManipCBindings.h +1 -1
- data/src/cxx_supportlib/FileTools/PathSecurityCheck.cpp +1 -1
- data/src/cxx_supportlib/FileTools/PathSecurityCheck.h +1 -1
- data/src/cxx_supportlib/Hooks.h +1 -1
- data/src/cxx_supportlib/IOTools/BufferedIO.h +1 -1
- data/src/cxx_supportlib/IOTools/IOUtils.cpp +10 -10
- data/src/cxx_supportlib/IOTools/IOUtils.h +1 -1
- data/src/cxx_supportlib/IOTools/MessageIO.h +1 -1
- data/src/cxx_supportlib/IOTools/MessageSerialization.h +1 -1
- data/src/cxx_supportlib/InstanceDirectory.h +1 -1
- data/src/cxx_supportlib/Integrations/LibevJsonUtils.h +1 -1
- data/src/cxx_supportlib/JsonTools/Autocast.h +1 -1
- data/src/cxx_supportlib/JsonTools/CBindings.cpp +1 -1
- data/src/cxx_supportlib/JsonTools/CBindings.h +1 -1
- data/src/cxx_supportlib/JsonTools/JsonUtils.h +1 -1
- data/src/cxx_supportlib/LoggingKit/Assert.h +1 -1
- data/src/cxx_supportlib/LoggingKit/Config.h +2 -1
- data/src/cxx_supportlib/LoggingKit/Context.h +1 -1
- data/src/cxx_supportlib/LoggingKit/Forward.h +1 -1
- data/src/cxx_supportlib/LoggingKit/Implementation.cpp +11 -1
- data/src/cxx_supportlib/LoggingKit/Logging.h +1 -1
- data/src/cxx_supportlib/LoggingKit/LoggingKit.h +1 -1
- data/src/cxx_supportlib/LveLoggingDecorator.h +1 -1
- data/src/cxx_supportlib/MemoryKit/mbuf.cpp +1 -1
- data/src/cxx_supportlib/MemoryKit/mbuf.h +1 -1
- data/src/cxx_supportlib/MemoryKit/palloc.cpp +1 -1
- data/src/cxx_supportlib/MemoryKit/palloc.h +1 -1
- data/src/cxx_supportlib/ProcessManagement/Ruby.cpp +1 -1
- data/src/cxx_supportlib/ProcessManagement/Ruby.h +1 -1
- data/src/cxx_supportlib/ProcessManagement/Spawn.cpp +1 -1
- data/src/cxx_supportlib/ProcessManagement/Spawn.h +1 -1
- data/src/cxx_supportlib/ProcessManagement/Utils.cpp +1 -1
- data/src/cxx_supportlib/ProcessManagement/Utils.h +1 -1
- data/src/cxx_supportlib/RandomGenerator.h +1 -1
- data/src/cxx_supportlib/ResourceLocator.h +1 -1
- data/src/cxx_supportlib/SafeLibev.h +1 -1
- data/src/cxx_supportlib/SecurityKit/Crypto.cpp +9 -27
- data/src/cxx_supportlib/SecurityKit/Crypto.h +2 -2
- data/src/cxx_supportlib/SecurityKit/MemZeroGuard.h +1 -1
- data/src/cxx_supportlib/ServerKit/AcceptLoadBalancer.h +1 -1
- data/src/cxx_supportlib/ServerKit/Channel.h +1 -1
- data/src/cxx_supportlib/ServerKit/Client.h +1 -1
- data/src/cxx_supportlib/ServerKit/ClientRef.h +1 -1
- data/src/cxx_supportlib/ServerKit/Config.h +1 -1
- data/src/cxx_supportlib/ServerKit/Context.h +1 -1
- data/src/cxx_supportlib/ServerKit/CookieUtils.h +1 -1
- data/src/cxx_supportlib/ServerKit/Errors.h +1 -1
- data/src/cxx_supportlib/ServerKit/FdSinkChannel.h +1 -1
- data/src/cxx_supportlib/ServerKit/FdSourceChannel.h +1 -1
- data/src/cxx_supportlib/ServerKit/FileBufferedChannel.h +54 -2
- data/src/cxx_supportlib/ServerKit/FileBufferedFdSinkChannel.h +1 -1
- data/src/cxx_supportlib/ServerKit/HeaderTable.h +1 -1
- data/src/cxx_supportlib/ServerKit/Hooks.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpChunkedBodyParser.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpChunkedBodyParserState.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpClient.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpHeaderParser.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpHeaderParserState.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpRequest.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpRequestRef.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpServer.h +1 -1
- data/src/cxx_supportlib/ServerKit/Implementation.cpp +1 -1
- data/src/cxx_supportlib/ServerKit/Server.h +4 -2
- data/src/cxx_supportlib/StaticString.h +1 -1
- data/src/cxx_supportlib/StrIntTools/DateParsing.h +1 -1
- data/src/cxx_supportlib/StrIntTools/StrIntUtils.cpp +1 -1
- data/src/cxx_supportlib/StrIntTools/StrIntUtils.h +1 -1
- data/src/cxx_supportlib/StrIntTools/StrIntUtilsNoStrictAliasing.cpp +1 -1
- data/src/cxx_supportlib/StrIntTools/StringScanning.h +1 -1
- data/src/cxx_supportlib/StrIntTools/Template.h +1 -1
- data/src/cxx_supportlib/SystemTools/ContainerHelpers.h +1 -1
- data/src/cxx_supportlib/SystemTools/ProcessMetricsCollector.h +1 -1
- data/src/cxx_supportlib/SystemTools/SystemMetricsCollector.h +1 -1
- data/src/cxx_supportlib/SystemTools/SystemTime.cpp +1 -1
- data/src/cxx_supportlib/SystemTools/SystemTime.h +1 -1
- data/src/cxx_supportlib/SystemTools/UserDatabase.cpp +1 -1
- data/src/cxx_supportlib/SystemTools/UserDatabase.h +1 -1
- data/src/cxx_supportlib/Utils/AnsiColorConstants.h +1 -1
- data/src/cxx_supportlib/Utils/AsyncSignalSafeUtils.h +1 -1
- data/src/cxx_supportlib/Utils/BlockingQueue.h +1 -1
- data/src/cxx_supportlib/Utils/CachedFileStat.cpp +1 -1
- data/src/cxx_supportlib/Utils/CachedFileStat.h +1 -1
- data/src/cxx_supportlib/Utils/CachedFileStat.hpp +1 -1
- data/src/cxx_supportlib/Utils/ClassUtils.h +1 -1
- data/src/cxx_supportlib/Utils/Curl.h +1 -1
- data/src/cxx_supportlib/Utils/FastStringStream.h +1 -1
- data/src/cxx_supportlib/Utils/FileChangeChecker.h +1 -1
- data/src/cxx_supportlib/Utils/HttpConstants.h +1 -1
- data/src/cxx_supportlib/Utils/IniFile.h +1 -1
- data/src/cxx_supportlib/Utils/MessagePassing.h +1 -1
- data/src/cxx_supportlib/Utils/OptionParsing.h +1 -1
- data/src/cxx_supportlib/Utils/ReleaseableScopedPointer.h +1 -1
- data/src/cxx_supportlib/Utils/ScopeGuard.h +1 -1
- data/src/cxx_supportlib/Utils/SpeedMeter.h +1 -1
- data/src/cxx_supportlib/Utils/Timer.h +1 -1
- data/src/cxx_supportlib/Utils/VariantMap.h +1 -1
- data/src/cxx_supportlib/Utils.cpp +1 -1
- data/src/cxx_supportlib/Utils.h +1 -1
- data/src/cxx_supportlib/WatchdogLauncher.cpp +1 -1
- data/src/cxx_supportlib/WatchdogLauncher.h +1 -1
- data/src/cxx_supportlib/WrapperRegistry/CBindings.cpp +1 -1
- data/src/cxx_supportlib/WrapperRegistry/CBindings.h +1 -1
- data/src/cxx_supportlib/WrapperRegistry/Entry.h +1 -1
- data/src/cxx_supportlib/WrapperRegistry/Registry.h +1 -1
- data/src/cxx_supportlib/oxt/backtrace.hpp +1 -1
- data/src/cxx_supportlib/oxt/detail/backtrace_disabled.hpp +1 -1
- data/src/cxx_supportlib/oxt/detail/backtrace_enabled.hpp +1 -1
- data/src/cxx_supportlib/oxt/detail/context.hpp +1 -1
- data/src/cxx_supportlib/oxt/detail/tracable_exception_disabled.hpp +1 -1
- data/src/cxx_supportlib/oxt/detail/tracable_exception_enabled.hpp +1 -1
- data/src/cxx_supportlib/oxt/dynamic_thread_group.hpp +1 -1
- data/src/cxx_supportlib/oxt/implementation.cpp +1 -1
- data/src/cxx_supportlib/oxt/initialize.hpp +1 -1
- data/src/cxx_supportlib/oxt/macros.hpp +1 -1
- data/src/cxx_supportlib/oxt/spin_lock.hpp +1 -1
- data/src/cxx_supportlib/oxt/system_calls.cpp +1 -1
- data/src/cxx_supportlib/oxt/system_calls.hpp +1 -1
- data/src/cxx_supportlib/oxt/thread.hpp +1 -1
- data/src/cxx_supportlib/oxt/tracable_exception.hpp +1 -1
- data/src/cxx_supportlib/vendor-copy/adhoc_lve.h +1 -1
- data/src/cxx_supportlib/vendor-copy/libuv/AUTHORS +353 -3
- data/src/cxx_supportlib/vendor-copy/libuv/ChangeLog +3981 -2
- data/src/cxx_supportlib/vendor-copy/libuv/LICENSE +1 -28
- data/src/cxx_supportlib/vendor-copy/libuv/LICENSE-docs +396 -0
- data/src/cxx_supportlib/vendor-copy/libuv/LICENSE-extra +36 -0
- data/src/cxx_supportlib/vendor-copy/libuv/Makefile.am +275 -58
- data/src/cxx_supportlib/vendor-copy/libuv/Makefile.in +4380 -2125
- data/src/cxx_supportlib/vendor-copy/libuv/aclocal.m4 +425 -221
- data/src/cxx_supportlib/vendor-copy/libuv/ar-lib +30 -10
- data/src/cxx_supportlib/vendor-copy/libuv/compile +31 -14
- data/src/cxx_supportlib/vendor-copy/libuv/config.guess +1084 -690
- data/src/cxx_supportlib/vendor-copy/libuv/config.sub +1844 -1297
- data/src/cxx_supportlib/vendor-copy/libuv/configure +6935 -3664
- data/src/cxx_supportlib/vendor-copy/libuv/configure.ac +43 -19
- data/src/cxx_supportlib/vendor-copy/libuv/depcomp +12 -11
- data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-darwin.h → uv/darwin.h} +3 -3
- data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-errno.h → uv/errno.h} +119 -60
- data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-linux.h → uv/linux.h} +1 -1
- data/src/cxx_supportlib/vendor-copy/libuv/include/uv/os390.h +33 -0
- data/src/cxx_supportlib/vendor-copy/libuv/include/uv/posix.h +31 -0
- data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-threadpool.h → uv/threadpool.h} +1 -1
- data/src/cxx_supportlib/vendor-copy/libuv/include/{tree.h → uv/tree.h} +3 -250
- data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-unix.h → uv/unix.h} +186 -60
- data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-version.h → uv/version.h} +3 -3
- data/src/cxx_supportlib/vendor-copy/libuv/include/uv/win.h +703 -0
- data/src/cxx_supportlib/vendor-copy/libuv/include/uv.h +528 -40
- data/src/cxx_supportlib/vendor-copy/libuv/install-sh +110 -70
- data/src/cxx_supportlib/vendor-copy/libuv/libuv-static.pc.in +12 -0
- data/src/cxx_supportlib/vendor-copy/libuv/libuv.pc.in +4 -2
- data/src/cxx_supportlib/vendor-copy/libuv/ltmain.sh +995 -619
- data/src/cxx_supportlib/vendor-copy/libuv/m4/ax_pthread.m4 +485 -0
- data/src/cxx_supportlib/vendor-copy/libuv/m4/libtool.m4 +438 -289
- data/src/cxx_supportlib/vendor-copy/libuv/m4/libuv-check-flags.m4 +21 -4
- data/src/cxx_supportlib/vendor-copy/libuv/m4/libuv-check-versions.m4 +7 -0
- data/src/cxx_supportlib/vendor-copy/libuv/m4/ltoptions.m4 +69 -39
- data/src/cxx_supportlib/vendor-copy/libuv/m4/ltsugar.m4 +1 -1
- data/src/cxx_supportlib/vendor-copy/libuv/m4/ltversion.m4 +7 -6
- data/src/cxx_supportlib/vendor-copy/libuv/m4/lt~obsolete.m4 +2 -2
- data/src/cxx_supportlib/vendor-copy/libuv/missing +55 -34
- data/src/cxx_supportlib/vendor-copy/libuv/src/fs-poll.c +52 -20
- data/src/cxx_supportlib/vendor-copy/libuv/src/idna.c +560 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/idna.h +31 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/inet.c +5 -16
- data/src/cxx_supportlib/vendor-copy/libuv/src/queue.h +68 -86
- data/src/cxx_supportlib/vendor-copy/libuv/src/random.c +123 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/strscpy.c +38 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/strscpy.h +39 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/strtok.c +52 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/strtok.h +27 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/thread-common.c +175 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/threadpool.c +172 -57
- data/src/cxx_supportlib/vendor-copy/libuv/src/{unix/timer.c → timer.c} +57 -29
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/aix-common.c +89 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/aix.c +418 -256
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/async.c +168 -129
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/bsd-ifaddrs.c +163 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/bsd-proctitle.c +99 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/core.c +1312 -378
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/cygwin.c +93 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/darwin-proctitle.c +18 -32
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/darwin-stub.h +97 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/darwin-syscalls.h +17 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/darwin.c +41 -139
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/dl.c +1 -1
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/freebsd.c +75 -235
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/fs.c +1308 -299
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/fsevents.c +150 -148
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/getaddrinfo.c +58 -8
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/getnameinfo.c +3 -2
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/haiku.c +172 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/hurd.c +172 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/ibmi.c +542 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/internal.h +297 -106
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/kqueue.c +325 -94
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/linux.c +2708 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/loop-watcher.c +11 -11
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/loop.c +105 -24
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/netbsd.c +51 -157
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/no-fsevents.c +42 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/no-proctitle.c +45 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/openbsd.c +42 -183
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/os390-proctitle.c +136 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/os390-syscalls.c +536 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/os390-syscalls.h +75 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/os390.c +1070 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/pipe.c +324 -55
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/poll.c +58 -11
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/posix-hrtime.c +36 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/posix-poll.c +385 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/process.c +795 -248
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/procfs-exepath.c +45 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/proctitle.c +77 -22
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/qnx.c +142 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/random-devurandom.c +93 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/random-getentropy.c +57 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/random-getrandom.c +86 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/random-sysctl-linux.c +99 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/signal.c +147 -39
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/stream.c +426 -474
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/sunos.c +240 -98
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/sysinfo-loadavg.c +36 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/sysinfo-memory.c +42 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/tcp.c +402 -91
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/thread.c +497 -145
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/tty.c +269 -45
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/udp.c +695 -165
- data/src/cxx_supportlib/vendor-copy/libuv/src/uv-common.c +463 -61
- data/src/cxx_supportlib/vendor-copy/libuv/src/uv-common.h +248 -44
- data/src/cxx_supportlib/vendor-copy/libuv/src/uv-data-getter-setters.c +119 -0
- data/src/cxx_supportlib/vendor-copy/libuv/tsansupp.txt +2 -0
- data/src/cxx_supportlib/vendor-modified/libev/Changes +109 -0
- data/src/cxx_supportlib/vendor-modified/libev/Makefile.am +2 -1
- data/src/cxx_supportlib/vendor-modified/libev/Makefile.in +47 -33
- data/src/cxx_supportlib/vendor-modified/libev/README +2 -1
- data/src/cxx_supportlib/vendor-modified/libev/aclocal.m4 +1653 -1224
- data/src/cxx_supportlib/vendor-modified/libev/config.guess +376 -316
- data/src/cxx_supportlib/vendor-modified/libev/config.h.in +13 -2
- data/src/cxx_supportlib/vendor-modified/libev/config.sub +156 -154
- data/src/cxx_supportlib/vendor-modified/libev/configure +1431 -940
- data/src/cxx_supportlib/vendor-modified/libev/configure.ac +3 -3
- data/src/cxx_supportlib/vendor-modified/libev/depcomp +5 -5
- data/src/cxx_supportlib/vendor-modified/libev/ev++.h +109 -107
- data/src/cxx_supportlib/vendor-modified/libev/ev.c +807 -319
- data/src/cxx_supportlib/vendor-modified/libev/ev.h +111 -105
- data/src/cxx_supportlib/vendor-modified/libev/ev_epoll.c +42 -29
- data/src/cxx_supportlib/vendor-modified/libev/ev_iouring.c +694 -0
- data/src/cxx_supportlib/vendor-modified/libev/ev_kqueue.c +15 -9
- data/src/cxx_supportlib/vendor-modified/libev/ev_linuxaio.c +620 -0
- data/src/cxx_supportlib/vendor-modified/libev/ev_poll.c +19 -14
- data/src/cxx_supportlib/vendor-modified/libev/ev_port.c +8 -5
- data/src/cxx_supportlib/vendor-modified/libev/ev_select.c +6 -6
- data/src/cxx_supportlib/vendor-modified/libev/ev_vars.h +48 -3
- data/src/cxx_supportlib/vendor-modified/libev/ev_win32.c +2 -2
- data/src/cxx_supportlib/vendor-modified/libev/ev_wrap.h +72 -0
- data/src/cxx_supportlib/vendor-modified/libev/install-sh +23 -13
- data/src/cxx_supportlib/vendor-modified/libev/libev.m4 +6 -1
- data/src/cxx_supportlib/vendor-modified/libev/ltmain.sh +3581 -1993
- data/src/cxx_supportlib/vendor-modified/libev/missing +8 -8
- data/src/cxx_supportlib/vendor-modified/libev/mkinstalldirs +3 -3
- data/src/cxx_supportlib/vendor-modified/modp_b64_strict_aliasing.cpp +1 -1
- data/src/helper-scripts/backtrace-sanitizer.rb +1 -1
- data/src/helper-scripts/crash-watch.rb +1 -1
- data/src/helper-scripts/download_binaries/extconf.rb +1 -1
- data/src/helper-scripts/meteor-loader.rb +1 -1
- data/src/helper-scripts/node-loader.js +1 -1
- data/src/helper-scripts/prespawn +1 -1
- data/src/helper-scripts/rack-loader.rb +1 -1
- data/src/helper-scripts/rack-preloader.rb +1 -1
- data/src/helper-scripts/wsgi-loader.py +1 -1
- data/src/nginx_module/ConfigGeneral/AutoGeneratedDefinitions.c +1 -1
- data/src/nginx_module/ConfigGeneral/AutoGeneratedDefinitions.c.cxxcodebuilder +1 -1
- data/src/nginx_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.c +1 -1
- data/src/nginx_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.c.cxxcodebuilder +1 -1
- data/src/nginx_module/ConfigGeneral/AutoGeneratedSetterFuncs.c +1 -1
- data/src/nginx_module/ConfigGeneral/AutoGeneratedSetterFuncs.c.cxxcodebuilder +1 -1
- data/src/nginx_module/Configuration.c +1 -1
- data/src/nginx_module/Configuration.h +1 -1
- data/src/nginx_module/ContentHandler.c +1 -1
- data/src/nginx_module/ContentHandler.h +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedCreateFunction.c +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedCreateFunction.c.cxxcodebuilder +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedHeaderSerialization.c +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedHeaderSerialization.c.cxxcodebuilder +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedManifestGeneration.c +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedManifestGeneration.c.cxxcodebuilder +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedMergeFunction.c +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedMergeFunction.c.cxxcodebuilder +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedStruct.h +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedStruct.h.cxxcodebuilder +1 -1
- data/src/nginx_module/MainConfig/AutoGeneratedCreateFunction.c +1 -1
- data/src/nginx_module/MainConfig/AutoGeneratedCreateFunction.c.cxxcodebuilder +1 -1
- data/src/nginx_module/MainConfig/AutoGeneratedManifestGeneration.c +1 -1
- data/src/nginx_module/MainConfig/AutoGeneratedManifestGeneration.c.cxxcodebuilder +1 -1
- data/src/nginx_module/MainConfig/AutoGeneratedStruct.h +1 -1
- data/src/nginx_module/MainConfig/AutoGeneratedStruct.h.cxxcodebuilder +1 -1
- data/src/nginx_module/StaticContentHandler.c +1 -1
- data/src/nginx_module/StaticContentHandler.h +1 -1
- data/src/nginx_module/ngx_http_passenger_module.c +1 -1
- data/src/nginx_module/ngx_http_passenger_module.h +1 -1
- data/src/nodejs_supportlib/phusion_passenger/line_reader.js +1 -1
- data/src/ruby_native_extension/extconf.rb +1 -1
- data/src/ruby_native_extension/passenger_native_support.c +1 -1
- data/src/ruby_supportlib/phusion_passenger/abstract_installer.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/admin_tools/instance.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/admin_tools/instance_registry.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/admin_tools/memory_stats.rb +2 -12
- data/src/ruby_supportlib/phusion_passenger/admin_tools.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/apache2/config_options.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/apache2/config_utils.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/common_library.rb +8 -10
- data/src/ruby_supportlib/phusion_passenger/config/about_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/agent_compiler.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/api_call_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/build_native_support_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/compile_agent_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/compile_nginx_engine_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/detach_process_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/download_agent_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/download_nginx_engine_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/install_agent_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/install_standalone_runtime_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/installation_utils.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/list_instances_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/main.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/nginx_engine_compiler.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/reopen_logs_command.rb +6 -1
- data/src/ruby_supportlib/phusion_passenger/config/restart_app_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/system_metrics_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/system_properties_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/utils.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/validate_install_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/console_text_template.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/constants.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/debug_logging.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/message_channel.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/message_client.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/native_support.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/nginx/config_options.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/packaging.rb +4 -3
- data/src/ruby_supportlib/phusion_passenger/platform_info/apache.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/apache_detector.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/binary_compatibility.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/compiler.rb +195 -11
- data/src/ruby_supportlib/phusion_passenger/platform_info/crypto.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/curl.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/cxx_portability.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/linux.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/networking.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/openssl.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/operating_system.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/pcre.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/ruby.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/zlib.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/plugin.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/preloader_shared_helpers.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/public_api.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/rack/handler.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/rack/out_of_band_gc.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/rack_handler.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb +2 -7
- data/src/ruby_supportlib/phusion_passenger/request_handler.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/ruby_core_enhancements.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/ruby_core_io_enhancements.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/simple_benchmarking.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/app_finder.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/config_options_list.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/config_utils.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/control_utils.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/main.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/start_command/builtin_engine.rb +2 -2
- data/src/ruby_supportlib/phusion_passenger/standalone/start_command/nginx_engine.rb +4 -8
- data/src/ruby_supportlib/phusion_passenger/standalone/start_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/status_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/stop_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/version_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/ansi_colors.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/download.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/file_system_watcher.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/hosts_file_parser.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/lock.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/native_support_utils.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/progress_bar.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/strscan.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/terminal_choice_menu.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/unseekable_socket.rb +3 -13
- data/src/ruby_supportlib/phusion_passenger/utils.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/app.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/base.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/gdb_controller.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/lldb_controller.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/utils.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/version.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller/lock_file.rb +8 -6
- data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller/spawn.rb +4 -3
- data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller/version.rb +6 -4
- data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller.rb +395 -579
- data/src/ruby_supportlib/phusion_passenger.rb +8 -8
- data/src/schema_printer/SchemaPrinterMain.cpp +1 -1
- data/src/schema_printer/SchemaPrinterMain.cpp.cxxcodebuilder +1 -1
- metadata +69 -32
- data/doc/DeveloperQuickstart.md +0 -70
- data/src/README.md +0 -7
- data/src/cxx_supportlib/vendor-copy/libuv/README.md +0 -245
- data/src/cxx_supportlib/vendor-copy/libuv/checksparse.sh +0 -234
- data/src/cxx_supportlib/vendor-copy/libuv/common.gypi +0 -210
- data/src/cxx_supportlib/vendor-copy/libuv/gyp_uv.py +0 -93
- data/src/cxx_supportlib/vendor-copy/libuv/include/android-ifaddrs.h +0 -54
- data/src/cxx_supportlib/vendor-copy/libuv/include/pthread-fixes.h +0 -72
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/android-ifaddrs.c +0 -703
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/atomic-ops.h +0 -77
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/linux-core.c +0 -899
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/linux-inotify.c +0 -285
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/linux-syscalls.c +0 -471
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/linux-syscalls.h +0 -158
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/pthread-fixes.c +0 -104
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/spinlock.h +0 -53
- data/src/cxx_supportlib/vendor-copy/libuv/uv.gyp +0 -508
- /data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-aix.h → uv/aix.h} +0 -0
- /data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-bsd.h → uv/bsd.h} +0 -0
- /data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-sunos.h → uv/sunos.h} +0 -0
|
@@ -1,471 +0,0 @@
|
|
|
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
|
-
#include "linux-syscalls.h"
|
|
23
|
-
#include <unistd.h>
|
|
24
|
-
#include <signal.h>
|
|
25
|
-
#include <sys/syscall.h>
|
|
26
|
-
#include <sys/types.h>
|
|
27
|
-
#include <errno.h>
|
|
28
|
-
|
|
29
|
-
#if defined(__has_feature)
|
|
30
|
-
# if __has_feature(memory_sanitizer)
|
|
31
|
-
# define MSAN_ACTIVE 1
|
|
32
|
-
# include <sanitizer/msan_interface.h>
|
|
33
|
-
# endif
|
|
34
|
-
#endif
|
|
35
|
-
|
|
36
|
-
#if defined(__i386__)
|
|
37
|
-
# ifndef __NR_socketcall
|
|
38
|
-
# define __NR_socketcall 102
|
|
39
|
-
# endif
|
|
40
|
-
#endif
|
|
41
|
-
|
|
42
|
-
#if defined(__arm__)
|
|
43
|
-
# if defined(__thumb__) || defined(__ARM_EABI__)
|
|
44
|
-
# define UV_SYSCALL_BASE 0
|
|
45
|
-
# else
|
|
46
|
-
# define UV_SYSCALL_BASE 0x900000
|
|
47
|
-
# endif
|
|
48
|
-
#endif /* __arm__ */
|
|
49
|
-
|
|
50
|
-
#ifndef __NR_accept4
|
|
51
|
-
# if defined(__x86_64__)
|
|
52
|
-
# define __NR_accept4 288
|
|
53
|
-
# elif defined(__i386__)
|
|
54
|
-
/* Nothing. Handled through socketcall(). */
|
|
55
|
-
# elif defined(__arm__)
|
|
56
|
-
# define __NR_accept4 (UV_SYSCALL_BASE + 366)
|
|
57
|
-
# endif
|
|
58
|
-
#endif /* __NR_accept4 */
|
|
59
|
-
|
|
60
|
-
#ifndef __NR_eventfd
|
|
61
|
-
# if defined(__x86_64__)
|
|
62
|
-
# define __NR_eventfd 284
|
|
63
|
-
# elif defined(__i386__)
|
|
64
|
-
# define __NR_eventfd 323
|
|
65
|
-
# elif defined(__arm__)
|
|
66
|
-
# define __NR_eventfd (UV_SYSCALL_BASE + 351)
|
|
67
|
-
# endif
|
|
68
|
-
#endif /* __NR_eventfd */
|
|
69
|
-
|
|
70
|
-
#ifndef __NR_eventfd2
|
|
71
|
-
# if defined(__x86_64__)
|
|
72
|
-
# define __NR_eventfd2 290
|
|
73
|
-
# elif defined(__i386__)
|
|
74
|
-
# define __NR_eventfd2 328
|
|
75
|
-
# elif defined(__arm__)
|
|
76
|
-
# define __NR_eventfd2 (UV_SYSCALL_BASE + 356)
|
|
77
|
-
# endif
|
|
78
|
-
#endif /* __NR_eventfd2 */
|
|
79
|
-
|
|
80
|
-
#ifndef __NR_epoll_create
|
|
81
|
-
# if defined(__x86_64__)
|
|
82
|
-
# define __NR_epoll_create 213
|
|
83
|
-
# elif defined(__i386__)
|
|
84
|
-
# define __NR_epoll_create 254
|
|
85
|
-
# elif defined(__arm__)
|
|
86
|
-
# define __NR_epoll_create (UV_SYSCALL_BASE + 250)
|
|
87
|
-
# endif
|
|
88
|
-
#endif /* __NR_epoll_create */
|
|
89
|
-
|
|
90
|
-
#ifndef __NR_epoll_create1
|
|
91
|
-
# if defined(__x86_64__)
|
|
92
|
-
# define __NR_epoll_create1 291
|
|
93
|
-
# elif defined(__i386__)
|
|
94
|
-
# define __NR_epoll_create1 329
|
|
95
|
-
# elif defined(__arm__)
|
|
96
|
-
# define __NR_epoll_create1 (UV_SYSCALL_BASE + 357)
|
|
97
|
-
# endif
|
|
98
|
-
#endif /* __NR_epoll_create1 */
|
|
99
|
-
|
|
100
|
-
#ifndef __NR_epoll_ctl
|
|
101
|
-
# if defined(__x86_64__)
|
|
102
|
-
# define __NR_epoll_ctl 233 /* used to be 214 */
|
|
103
|
-
# elif defined(__i386__)
|
|
104
|
-
# define __NR_epoll_ctl 255
|
|
105
|
-
# elif defined(__arm__)
|
|
106
|
-
# define __NR_epoll_ctl (UV_SYSCALL_BASE + 251)
|
|
107
|
-
# endif
|
|
108
|
-
#endif /* __NR_epoll_ctl */
|
|
109
|
-
|
|
110
|
-
#ifndef __NR_epoll_wait
|
|
111
|
-
# if defined(__x86_64__)
|
|
112
|
-
# define __NR_epoll_wait 232 /* used to be 215 */
|
|
113
|
-
# elif defined(__i386__)
|
|
114
|
-
# define __NR_epoll_wait 256
|
|
115
|
-
# elif defined(__arm__)
|
|
116
|
-
# define __NR_epoll_wait (UV_SYSCALL_BASE + 252)
|
|
117
|
-
# endif
|
|
118
|
-
#endif /* __NR_epoll_wait */
|
|
119
|
-
|
|
120
|
-
#ifndef __NR_epoll_pwait
|
|
121
|
-
# if defined(__x86_64__)
|
|
122
|
-
# define __NR_epoll_pwait 281
|
|
123
|
-
# elif defined(__i386__)
|
|
124
|
-
# define __NR_epoll_pwait 319
|
|
125
|
-
# elif defined(__arm__)
|
|
126
|
-
# define __NR_epoll_pwait (UV_SYSCALL_BASE + 346)
|
|
127
|
-
# endif
|
|
128
|
-
#endif /* __NR_epoll_pwait */
|
|
129
|
-
|
|
130
|
-
#ifndef __NR_inotify_init
|
|
131
|
-
# if defined(__x86_64__)
|
|
132
|
-
# define __NR_inotify_init 253
|
|
133
|
-
# elif defined(__i386__)
|
|
134
|
-
# define __NR_inotify_init 291
|
|
135
|
-
# elif defined(__arm__)
|
|
136
|
-
# define __NR_inotify_init (UV_SYSCALL_BASE + 316)
|
|
137
|
-
# endif
|
|
138
|
-
#endif /* __NR_inotify_init */
|
|
139
|
-
|
|
140
|
-
#ifndef __NR_inotify_init1
|
|
141
|
-
# if defined(__x86_64__)
|
|
142
|
-
# define __NR_inotify_init1 294
|
|
143
|
-
# elif defined(__i386__)
|
|
144
|
-
# define __NR_inotify_init1 332
|
|
145
|
-
# elif defined(__arm__)
|
|
146
|
-
# define __NR_inotify_init1 (UV_SYSCALL_BASE + 360)
|
|
147
|
-
# endif
|
|
148
|
-
#endif /* __NR_inotify_init1 */
|
|
149
|
-
|
|
150
|
-
#ifndef __NR_inotify_add_watch
|
|
151
|
-
# if defined(__x86_64__)
|
|
152
|
-
# define __NR_inotify_add_watch 254
|
|
153
|
-
# elif defined(__i386__)
|
|
154
|
-
# define __NR_inotify_add_watch 292
|
|
155
|
-
# elif defined(__arm__)
|
|
156
|
-
# define __NR_inotify_add_watch (UV_SYSCALL_BASE + 317)
|
|
157
|
-
# endif
|
|
158
|
-
#endif /* __NR_inotify_add_watch */
|
|
159
|
-
|
|
160
|
-
#ifndef __NR_inotify_rm_watch
|
|
161
|
-
# if defined(__x86_64__)
|
|
162
|
-
# define __NR_inotify_rm_watch 255
|
|
163
|
-
# elif defined(__i386__)
|
|
164
|
-
# define __NR_inotify_rm_watch 293
|
|
165
|
-
# elif defined(__arm__)
|
|
166
|
-
# define __NR_inotify_rm_watch (UV_SYSCALL_BASE + 318)
|
|
167
|
-
# endif
|
|
168
|
-
#endif /* __NR_inotify_rm_watch */
|
|
169
|
-
|
|
170
|
-
#ifndef __NR_pipe2
|
|
171
|
-
# if defined(__x86_64__)
|
|
172
|
-
# define __NR_pipe2 293
|
|
173
|
-
# elif defined(__i386__)
|
|
174
|
-
# define __NR_pipe2 331
|
|
175
|
-
# elif defined(__arm__)
|
|
176
|
-
# define __NR_pipe2 (UV_SYSCALL_BASE + 359)
|
|
177
|
-
# endif
|
|
178
|
-
#endif /* __NR_pipe2 */
|
|
179
|
-
|
|
180
|
-
#ifndef __NR_recvmmsg
|
|
181
|
-
# if defined(__x86_64__)
|
|
182
|
-
# define __NR_recvmmsg 299
|
|
183
|
-
# elif defined(__i386__)
|
|
184
|
-
# define __NR_recvmmsg 337
|
|
185
|
-
# elif defined(__arm__)
|
|
186
|
-
# define __NR_recvmmsg (UV_SYSCALL_BASE + 365)
|
|
187
|
-
# endif
|
|
188
|
-
#endif /* __NR_recvmsg */
|
|
189
|
-
|
|
190
|
-
#ifndef __NR_sendmmsg
|
|
191
|
-
# if defined(__x86_64__)
|
|
192
|
-
# define __NR_sendmmsg 307
|
|
193
|
-
# elif defined(__i386__)
|
|
194
|
-
# define __NR_sendmmsg 345
|
|
195
|
-
# elif defined(__arm__)
|
|
196
|
-
# define __NR_sendmmsg (UV_SYSCALL_BASE + 374)
|
|
197
|
-
# endif
|
|
198
|
-
#endif /* __NR_sendmmsg */
|
|
199
|
-
|
|
200
|
-
#ifndef __NR_utimensat
|
|
201
|
-
# if defined(__x86_64__)
|
|
202
|
-
# define __NR_utimensat 280
|
|
203
|
-
# elif defined(__i386__)
|
|
204
|
-
# define __NR_utimensat 320
|
|
205
|
-
# elif defined(__arm__)
|
|
206
|
-
# define __NR_utimensat (UV_SYSCALL_BASE + 348)
|
|
207
|
-
# endif
|
|
208
|
-
#endif /* __NR_utimensat */
|
|
209
|
-
|
|
210
|
-
#ifndef __NR_preadv
|
|
211
|
-
# if defined(__x86_64__)
|
|
212
|
-
# define __NR_preadv 295
|
|
213
|
-
# elif defined(__i386__)
|
|
214
|
-
# define __NR_preadv 333
|
|
215
|
-
# elif defined(__arm__)
|
|
216
|
-
# define __NR_preadv (UV_SYSCALL_BASE + 361)
|
|
217
|
-
# endif
|
|
218
|
-
#endif /* __NR_preadv */
|
|
219
|
-
|
|
220
|
-
#ifndef __NR_pwritev
|
|
221
|
-
# if defined(__x86_64__)
|
|
222
|
-
# define __NR_pwritev 296
|
|
223
|
-
# elif defined(__i386__)
|
|
224
|
-
# define __NR_pwritev 334
|
|
225
|
-
# elif defined(__arm__)
|
|
226
|
-
# define __NR_pwritev (UV_SYSCALL_BASE + 362)
|
|
227
|
-
# endif
|
|
228
|
-
#endif /* __NR_pwritev */
|
|
229
|
-
|
|
230
|
-
#ifndef __NR_dup3
|
|
231
|
-
# if defined(__x86_64__)
|
|
232
|
-
# define __NR_dup3 292
|
|
233
|
-
# elif defined(__i386__)
|
|
234
|
-
# define __NR_dup3 330
|
|
235
|
-
# elif defined(__arm__)
|
|
236
|
-
# define __NR_dup3 (UV_SYSCALL_BASE + 358)
|
|
237
|
-
# endif
|
|
238
|
-
#endif /* __NR_pwritev */
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
int uv__accept4(int fd, struct sockaddr* addr, socklen_t* addrlen, int flags) {
|
|
242
|
-
#if defined(__i386__)
|
|
243
|
-
unsigned long args[4];
|
|
244
|
-
int r;
|
|
245
|
-
|
|
246
|
-
args[0] = (unsigned long) fd;
|
|
247
|
-
args[1] = (unsigned long) addr;
|
|
248
|
-
args[2] = (unsigned long) addrlen;
|
|
249
|
-
args[3] = (unsigned long) flags;
|
|
250
|
-
|
|
251
|
-
r = syscall(__NR_socketcall, 18 /* SYS_ACCEPT4 */, args);
|
|
252
|
-
|
|
253
|
-
/* socketcall() raises EINVAL when SYS_ACCEPT4 is not supported but so does
|
|
254
|
-
* a bad flags argument. Try to distinguish between the two cases.
|
|
255
|
-
*/
|
|
256
|
-
if (r == -1)
|
|
257
|
-
if (errno == EINVAL)
|
|
258
|
-
if ((flags & ~(UV__SOCK_CLOEXEC|UV__SOCK_NONBLOCK)) == 0)
|
|
259
|
-
errno = ENOSYS;
|
|
260
|
-
|
|
261
|
-
return r;
|
|
262
|
-
#elif defined(__NR_accept4)
|
|
263
|
-
return syscall(__NR_accept4, fd, addr, addrlen, flags);
|
|
264
|
-
#else
|
|
265
|
-
return errno = ENOSYS, -1;
|
|
266
|
-
#endif
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
int uv__eventfd(unsigned int count) {
|
|
271
|
-
#if defined(__NR_eventfd)
|
|
272
|
-
return syscall(__NR_eventfd, count);
|
|
273
|
-
#else
|
|
274
|
-
return errno = ENOSYS, -1;
|
|
275
|
-
#endif
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
int uv__eventfd2(unsigned int count, int flags) {
|
|
280
|
-
#if defined(__NR_eventfd2)
|
|
281
|
-
return syscall(__NR_eventfd2, count, flags);
|
|
282
|
-
#else
|
|
283
|
-
return errno = ENOSYS, -1;
|
|
284
|
-
#endif
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
int uv__epoll_create(int size) {
|
|
289
|
-
#if defined(__NR_epoll_create)
|
|
290
|
-
return syscall(__NR_epoll_create, size);
|
|
291
|
-
#else
|
|
292
|
-
return errno = ENOSYS, -1;
|
|
293
|
-
#endif
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
int uv__epoll_create1(int flags) {
|
|
298
|
-
#if defined(__NR_epoll_create1)
|
|
299
|
-
return syscall(__NR_epoll_create1, flags);
|
|
300
|
-
#else
|
|
301
|
-
return errno = ENOSYS, -1;
|
|
302
|
-
#endif
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
int uv__epoll_ctl(int epfd, int op, int fd, struct uv__epoll_event* events) {
|
|
307
|
-
#if defined(__NR_epoll_ctl)
|
|
308
|
-
return syscall(__NR_epoll_ctl, epfd, op, fd, events);
|
|
309
|
-
#else
|
|
310
|
-
return errno = ENOSYS, -1;
|
|
311
|
-
#endif
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
int uv__epoll_wait(int epfd,
|
|
316
|
-
struct uv__epoll_event* events,
|
|
317
|
-
int nevents,
|
|
318
|
-
int timeout) {
|
|
319
|
-
#if defined(__NR_epoll_wait)
|
|
320
|
-
int result;
|
|
321
|
-
result = syscall(__NR_epoll_wait, epfd, events, nevents, timeout);
|
|
322
|
-
#if MSAN_ACTIVE
|
|
323
|
-
if (result > 0)
|
|
324
|
-
__msan_unpoison(events, sizeof(events[0]) * result);
|
|
325
|
-
#endif
|
|
326
|
-
return result;
|
|
327
|
-
#else
|
|
328
|
-
return errno = ENOSYS, -1;
|
|
329
|
-
#endif
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
int uv__epoll_pwait(int epfd,
|
|
334
|
-
struct uv__epoll_event* events,
|
|
335
|
-
int nevents,
|
|
336
|
-
int timeout,
|
|
337
|
-
uint64_t sigmask) {
|
|
338
|
-
#if defined(__NR_epoll_pwait)
|
|
339
|
-
int result;
|
|
340
|
-
result = syscall(__NR_epoll_pwait,
|
|
341
|
-
epfd,
|
|
342
|
-
events,
|
|
343
|
-
nevents,
|
|
344
|
-
timeout,
|
|
345
|
-
&sigmask,
|
|
346
|
-
sizeof(sigmask));
|
|
347
|
-
#if MSAN_ACTIVE
|
|
348
|
-
if (result > 0)
|
|
349
|
-
__msan_unpoison(events, sizeof(events[0]) * result);
|
|
350
|
-
#endif
|
|
351
|
-
return result;
|
|
352
|
-
#else
|
|
353
|
-
return errno = ENOSYS, -1;
|
|
354
|
-
#endif
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
int uv__inotify_init(void) {
|
|
359
|
-
#if defined(__NR_inotify_init)
|
|
360
|
-
return syscall(__NR_inotify_init);
|
|
361
|
-
#else
|
|
362
|
-
return errno = ENOSYS, -1;
|
|
363
|
-
#endif
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
int uv__inotify_init1(int flags) {
|
|
368
|
-
#if defined(__NR_inotify_init1)
|
|
369
|
-
return syscall(__NR_inotify_init1, flags);
|
|
370
|
-
#else
|
|
371
|
-
return errno = ENOSYS, -1;
|
|
372
|
-
#endif
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
int uv__inotify_add_watch(int fd, const char* path, uint32_t mask) {
|
|
377
|
-
#if defined(__NR_inotify_add_watch)
|
|
378
|
-
return syscall(__NR_inotify_add_watch, fd, path, mask);
|
|
379
|
-
#else
|
|
380
|
-
return errno = ENOSYS, -1;
|
|
381
|
-
#endif
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
int uv__inotify_rm_watch(int fd, int32_t wd) {
|
|
386
|
-
#if defined(__NR_inotify_rm_watch)
|
|
387
|
-
return syscall(__NR_inotify_rm_watch, fd, wd);
|
|
388
|
-
#else
|
|
389
|
-
return errno = ENOSYS, -1;
|
|
390
|
-
#endif
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
int uv__pipe2(int pipefd[2], int flags) {
|
|
395
|
-
#if defined(__NR_pipe2)
|
|
396
|
-
int result;
|
|
397
|
-
result = syscall(__NR_pipe2, pipefd, flags);
|
|
398
|
-
#if MSAN_ACTIVE
|
|
399
|
-
if (!result)
|
|
400
|
-
__msan_unpoison(pipefd, sizeof(int[2]));
|
|
401
|
-
#endif
|
|
402
|
-
return result;
|
|
403
|
-
#else
|
|
404
|
-
return errno = ENOSYS, -1;
|
|
405
|
-
#endif
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
int uv__sendmmsg(int fd,
|
|
410
|
-
struct uv__mmsghdr* mmsg,
|
|
411
|
-
unsigned int vlen,
|
|
412
|
-
unsigned int flags) {
|
|
413
|
-
#if defined(__NR_sendmmsg)
|
|
414
|
-
return syscall(__NR_sendmmsg, fd, mmsg, vlen, flags);
|
|
415
|
-
#else
|
|
416
|
-
return errno = ENOSYS, -1;
|
|
417
|
-
#endif
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
int uv__recvmmsg(int fd,
|
|
422
|
-
struct uv__mmsghdr* mmsg,
|
|
423
|
-
unsigned int vlen,
|
|
424
|
-
unsigned int flags,
|
|
425
|
-
struct timespec* timeout) {
|
|
426
|
-
#if defined(__NR_recvmmsg)
|
|
427
|
-
return syscall(__NR_recvmmsg, fd, mmsg, vlen, flags, timeout);
|
|
428
|
-
#else
|
|
429
|
-
return errno = ENOSYS, -1;
|
|
430
|
-
#endif
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
int uv__utimesat(int dirfd,
|
|
435
|
-
const char* path,
|
|
436
|
-
const struct timespec times[2],
|
|
437
|
-
int flags)
|
|
438
|
-
{
|
|
439
|
-
#if defined(__NR_utimensat)
|
|
440
|
-
return syscall(__NR_utimensat, dirfd, path, times, flags);
|
|
441
|
-
#else
|
|
442
|
-
return errno = ENOSYS, -1;
|
|
443
|
-
#endif
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
ssize_t uv__preadv(int fd, const struct iovec *iov, int iovcnt, int64_t offset) {
|
|
448
|
-
#if defined(__NR_preadv)
|
|
449
|
-
return syscall(__NR_preadv, fd, iov, iovcnt, (long)offset, (long)(offset >> 32));
|
|
450
|
-
#else
|
|
451
|
-
return errno = ENOSYS, -1;
|
|
452
|
-
#endif
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
ssize_t uv__pwritev(int fd, const struct iovec *iov, int iovcnt, int64_t offset) {
|
|
457
|
-
#if defined(__NR_pwritev)
|
|
458
|
-
return syscall(__NR_pwritev, fd, iov, iovcnt, (long)offset, (long)(offset >> 32));
|
|
459
|
-
#else
|
|
460
|
-
return errno = ENOSYS, -1;
|
|
461
|
-
#endif
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
int uv__dup3(int oldfd, int newfd, int flags) {
|
|
466
|
-
#if defined(__NR_dup3)
|
|
467
|
-
return syscall(__NR_dup3, oldfd, newfd, flags);
|
|
468
|
-
#else
|
|
469
|
-
return errno = ENOSYS, -1;
|
|
470
|
-
#endif
|
|
471
|
-
}
|
|
@@ -1,158 +0,0 @@
|
|
|
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
|
-
#ifndef UV_LINUX_SYSCALL_H_
|
|
23
|
-
#define UV_LINUX_SYSCALL_H_
|
|
24
|
-
|
|
25
|
-
#undef _GNU_SOURCE
|
|
26
|
-
#define _GNU_SOURCE
|
|
27
|
-
|
|
28
|
-
#include <stdint.h>
|
|
29
|
-
#include <signal.h>
|
|
30
|
-
#include <sys/types.h>
|
|
31
|
-
#include <sys/time.h>
|
|
32
|
-
#include <sys/socket.h>
|
|
33
|
-
|
|
34
|
-
#if defined(__alpha__)
|
|
35
|
-
# define UV__O_CLOEXEC 0x200000
|
|
36
|
-
#elif defined(__hppa__)
|
|
37
|
-
# define UV__O_CLOEXEC 0x200000
|
|
38
|
-
#elif defined(__sparc__)
|
|
39
|
-
# define UV__O_CLOEXEC 0x400000
|
|
40
|
-
#else
|
|
41
|
-
# define UV__O_CLOEXEC 0x80000
|
|
42
|
-
#endif
|
|
43
|
-
|
|
44
|
-
#if defined(__alpha__)
|
|
45
|
-
# define UV__O_NONBLOCK 0x4
|
|
46
|
-
#elif defined(__hppa__)
|
|
47
|
-
# define UV__O_NONBLOCK O_NONBLOCK
|
|
48
|
-
#elif defined(__mips__)
|
|
49
|
-
# define UV__O_NONBLOCK 0x80
|
|
50
|
-
#elif defined(__sparc__)
|
|
51
|
-
# define UV__O_NONBLOCK 0x4000
|
|
52
|
-
#else
|
|
53
|
-
# define UV__O_NONBLOCK 0x800
|
|
54
|
-
#endif
|
|
55
|
-
|
|
56
|
-
#define UV__EFD_CLOEXEC UV__O_CLOEXEC
|
|
57
|
-
#define UV__EFD_NONBLOCK UV__O_NONBLOCK
|
|
58
|
-
|
|
59
|
-
#define UV__IN_CLOEXEC UV__O_CLOEXEC
|
|
60
|
-
#define UV__IN_NONBLOCK UV__O_NONBLOCK
|
|
61
|
-
|
|
62
|
-
#define UV__SOCK_CLOEXEC UV__O_CLOEXEC
|
|
63
|
-
#if defined(SOCK_NONBLOCK)
|
|
64
|
-
# define UV__SOCK_NONBLOCK SOCK_NONBLOCK
|
|
65
|
-
#else
|
|
66
|
-
# define UV__SOCK_NONBLOCK UV__O_NONBLOCK
|
|
67
|
-
#endif
|
|
68
|
-
|
|
69
|
-
/* epoll flags */
|
|
70
|
-
#define UV__EPOLL_CLOEXEC UV__O_CLOEXEC
|
|
71
|
-
#define UV__EPOLL_CTL_ADD 1
|
|
72
|
-
#define UV__EPOLL_CTL_DEL 2
|
|
73
|
-
#define UV__EPOLL_CTL_MOD 3
|
|
74
|
-
|
|
75
|
-
#define UV__EPOLLIN 1
|
|
76
|
-
#define UV__EPOLLOUT 4
|
|
77
|
-
#define UV__EPOLLERR 8
|
|
78
|
-
#define UV__EPOLLHUP 16
|
|
79
|
-
#define UV__EPOLLONESHOT 0x40000000
|
|
80
|
-
#define UV__EPOLLET 0x80000000
|
|
81
|
-
|
|
82
|
-
/* inotify flags */
|
|
83
|
-
#define UV__IN_ACCESS 0x001
|
|
84
|
-
#define UV__IN_MODIFY 0x002
|
|
85
|
-
#define UV__IN_ATTRIB 0x004
|
|
86
|
-
#define UV__IN_CLOSE_WRITE 0x008
|
|
87
|
-
#define UV__IN_CLOSE_NOWRITE 0x010
|
|
88
|
-
#define UV__IN_OPEN 0x020
|
|
89
|
-
#define UV__IN_MOVED_FROM 0x040
|
|
90
|
-
#define UV__IN_MOVED_TO 0x080
|
|
91
|
-
#define UV__IN_CREATE 0x100
|
|
92
|
-
#define UV__IN_DELETE 0x200
|
|
93
|
-
#define UV__IN_DELETE_SELF 0x400
|
|
94
|
-
#define UV__IN_MOVE_SELF 0x800
|
|
95
|
-
|
|
96
|
-
#if defined(__x86_64__)
|
|
97
|
-
struct uv__epoll_event {
|
|
98
|
-
uint32_t events;
|
|
99
|
-
uint64_t data;
|
|
100
|
-
} __attribute__((packed));
|
|
101
|
-
#else
|
|
102
|
-
struct uv__epoll_event {
|
|
103
|
-
uint32_t events;
|
|
104
|
-
uint64_t data;
|
|
105
|
-
};
|
|
106
|
-
#endif
|
|
107
|
-
|
|
108
|
-
struct uv__inotify_event {
|
|
109
|
-
int32_t wd;
|
|
110
|
-
uint32_t mask;
|
|
111
|
-
uint32_t cookie;
|
|
112
|
-
uint32_t len;
|
|
113
|
-
/* char name[0]; */
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
struct uv__mmsghdr {
|
|
117
|
-
struct msghdr msg_hdr;
|
|
118
|
-
unsigned int msg_len;
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
int uv__accept4(int fd, struct sockaddr* addr, socklen_t* addrlen, int flags);
|
|
122
|
-
int uv__eventfd(unsigned int count);
|
|
123
|
-
int uv__epoll_create(int size);
|
|
124
|
-
int uv__epoll_create1(int flags);
|
|
125
|
-
int uv__epoll_ctl(int epfd, int op, int fd, struct uv__epoll_event *ev);
|
|
126
|
-
int uv__epoll_wait(int epfd,
|
|
127
|
-
struct uv__epoll_event* events,
|
|
128
|
-
int nevents,
|
|
129
|
-
int timeout);
|
|
130
|
-
int uv__epoll_pwait(int epfd,
|
|
131
|
-
struct uv__epoll_event* events,
|
|
132
|
-
int nevents,
|
|
133
|
-
int timeout,
|
|
134
|
-
uint64_t sigmask);
|
|
135
|
-
int uv__eventfd2(unsigned int count, int flags);
|
|
136
|
-
int uv__inotify_init(void);
|
|
137
|
-
int uv__inotify_init1(int flags);
|
|
138
|
-
int uv__inotify_add_watch(int fd, const char* path, uint32_t mask);
|
|
139
|
-
int uv__inotify_rm_watch(int fd, int32_t wd);
|
|
140
|
-
int uv__pipe2(int pipefd[2], int flags);
|
|
141
|
-
int uv__recvmmsg(int fd,
|
|
142
|
-
struct uv__mmsghdr* mmsg,
|
|
143
|
-
unsigned int vlen,
|
|
144
|
-
unsigned int flags,
|
|
145
|
-
struct timespec* timeout);
|
|
146
|
-
int uv__sendmmsg(int fd,
|
|
147
|
-
struct uv__mmsghdr* mmsg,
|
|
148
|
-
unsigned int vlen,
|
|
149
|
-
unsigned int flags);
|
|
150
|
-
int uv__utimesat(int dirfd,
|
|
151
|
-
const char* path,
|
|
152
|
-
const struct timespec times[2],
|
|
153
|
-
int flags);
|
|
154
|
-
ssize_t uv__preadv(int fd, const struct iovec *iov, int iovcnt, int64_t offset);
|
|
155
|
-
ssize_t uv__pwritev(int fd, const struct iovec *iov, int iovcnt, int64_t offset);
|
|
156
|
-
int uv__dup3(int oldfd, int newfd, int flags);
|
|
157
|
-
|
|
158
|
-
#endif /* UV_LINUX_SYSCALL_H_ */
|