Module: Ronin::ASM::OS

Defined in:
lib/ronin/asm/os/os.rb,
lib/ronin/asm/os/linux.rb,
lib/ronin/asm/os/freebsd.rb

Defined Under Namespace

Modules: FreeBSD, Linux

Constant Summary collapse

SYSCALLS =

Collection of all known syscalls, grouped by OS and Arch.

Returns:

  • (Hash{Symbol => Hash{Symbol => Hash{Symbol => Integer}}})

    Syscall names and numbers, organized by OS then Arch.

Hash.new do |hash,os|
  hash[os] = Hash.new do |subhash,arch|
    subhash[arch] = Config.load_yaml_file(File.join(Config::DATA_DIR,os.to_s.downcase,arch.to_s,'syscalls.yml'))
  end
end