Module: ChildProcess::Unix::Lib

Extended by:
FFI::Library
Defined in:
lib/childprocess/unix/lib.rb

Defined Under Namespace

Classes: Attrs, FileActions

Class Method Summary collapse

Class Method Details

.check(errno) ⇒ Object



93
94
95
96
97
# File 'lib/childprocess/unix/lib.rb', line 93

def self.check(errno)
  if errno != 0
    raise Error, Lib.strerror(FFI.errno)
  end
end

.environObject



9
10
11
# File 'lib/childprocess/unix/lib.rb', line 9

def self.environ
  _NSGetEnviron().read_pointer
end