X7ROOT File Manager
Current Path:
/opt/cpanel/ea-ruby27/root/usr/share/passenger/phusion_passenger
opt
/
cpanel
/
ea-ruby27
/
root
/
usr
/
share
/
passenger
/
phusion_passenger
/
??
..
??
abstract_installer.rb
(13.22 KB)
??
admin_tools
??
admin_tools.rb
(1.86 KB)
??
admin_tools.rb.tmpdir
(1.84 KB)
??
apache2
??
common_library.rb
(12.21 KB)
??
config
??
console_text_template.rb
(2.29 KB)
??
constants.rb
(6.01 KB)
??
debug_logging.rb
(3.84 KB)
??
loader_shared_helpers.rb
(37.72 KB)
??
locations.ini
(848 B)
??
message_channel.rb
(10.6 KB)
??
message_client.rb
(3.86 KB)
??
native_support.rb
(15.97 KB)
??
native_support.rb.nativelibdir
(15.96 KB)
??
nginx
??
packaging.rb
(4.01 KB)
??
platform_info
??
platform_info.rb
(16.71 KB)
??
plugin.rb
(2.92 KB)
??
preloader_shared_helpers.rb
(6.25 KB)
??
public_api.rb
(2.81 KB)
??
rack
??
rack_handler.rb
(2.55 KB)
??
request_handler
??
request_handler.rb
(21.4 KB)
??
ruby_core_enhancements.rb
(5.5 KB)
??
ruby_core_io_enhancements.rb
(3.53 KB)
??
simple_benchmarking.rb
(1.9 KB)
??
standalone
??
utils
??
utils.rb
(7.6 KB)
??
vendor
Editing: ruby_core_io_enhancements.rb
# encoding: binary # Phusion Passenger - https://www.phusionpassenger.com/ # Copyright (c) 2010-2025 Asynchronous B.V. # # "Passenger", "Phusion Passenger" and "Union Station" are registered # trademarks of Asynchronous B.V. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. PhusionPassenger.require_passenger_lib 'native_support' class IO if defined?(PhusionPassenger::NativeSupport) # Writes all of the strings in the +components+ array into the given file # descriptor using the +writev()+ system call. Unlike IO#write, this method # does not require one to concatenate all those strings into a single buffer # in order to send the data in a single system call. Thus, #writev is a great # way to perform zero-copy I/O. # # Unlike the raw writev() system call, this method ensures that all given # data is written before returning, by performing multiple writev() calls # and whatever else is necessary. # # io.writev(["hello ", "world", "\n"]) def writev(components) return PhusionPassenger::NativeSupport.writev(fileno, components) end # Like #writev, but accepts two arrays. The data is written in the given order. # # io.writev2(["hello ", "world", "\n"], ["another ", "message\n"]) def writev2(components, components2) return PhusionPassenger::NativeSupport.writev2(fileno, components, components2) end # Like #writev, but accepts three arrays. The data is written in the given order. # # io.writev3(["hello ", "world", "\n"], # ["another ", "message\n"], # ["yet ", "another ", "one", "\n"]) def writev3(components, components2, components3) return PhusionPassenger::NativeSupport.writev3(fileno, components, components2, components3) end else def writev(components) return write(components.pack('a*' * components.size)) end def writev2(components, components2) joined = components + components2 return write(joined.pack('a*' * joined.size)) end def writev3(components, components2, components3) joined = components + components2 + components3 return write(joined.pack('a*' * joined.size)) end end if IO.method_defined?(:close_on_exec=) def close_on_exec! begin self.close_on_exec = true rescue NotImplementedError end end else require 'fcntl' if defined?(Fcntl::F_SETFD) def close_on_exec! fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) end else def close_on_exec! end end end end
Upload File
Create Folder