Sha256: be1b305b885655422088b502d17bdae7a6a361c7d1b42226e8b18949a80526be

Contents?: true

Size: 326 Bytes

Versions: 3

Compression:

Stored size: 326 Bytes

Contents

require 'adhearsion/linux_proc_name'
require 'ffi'

module LibC
  extend FFI::Library
  ffi_lib FFI::Library::LIBC

  begin
    attach_function :prctl, [ :ulong, :ulong, :ulong, :ulong ], :int
  rescue FFI::NotFoundError => ex
    Adhearsion::LinuxProcName.error = "Error while attaching libc function prctl: #{ex}"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
adhearsion-2.0.0.beta1 lib/adhearsion/foundation/libc.rb
adhearsion-2.0.0.alpha3 lib/adhearsion/foundation/libc.rb
adhearsion-2.0.0.alpha2 lib/adhearsion/foundation/libc.rb