File: proctable.rb

package info (click to toggle)
ruby-sys-proctable 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 396 kB
  • sloc: ruby: 3,656; makefile: 3
file content (18 lines) | stat: -rw-r--r-- 518 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'rbconfig'

case RbConfig::CONFIG['host_os']
  when /aix/i
    require_relative '../aix/sys/proctable'
  when /darwin/i
    require_relative '../darwin/sys/proctable'
  when /freebsd|dragonfly/i
    require_relative '../bsd/sys/proctable'
  when /linux/i
    require_relative '../linux/sys/proctable'
  when /sunos|solaris/i
    require_relative '../sunos/sys/proctable'
  when /mswin|win32|dos|cygwin|mingw|windows/i
    require_relative '../windows/sys/proctable'
  else
    raise "Unsupported platform"
end