module Sys::Filesystem::Functions

Private Class Methods

linux64?() click to toggle source
# File lib/sys/unix/sys/filesystem/functions.rb, line 10
def self.linux64?
  if RUBY_PLATFORM == 'java'
    ENV_JAVA['sun.arch.data.model'].to_i == 64
  else
    RbConfig::CONFIG['host_os'] =~ /linux/i &&
      (RbConfig::CONFIG['arch'] =~ /64/ || RbConfig::CONFIG['DEFS'] =~ /64/)
  end
end