Sha256: 5ad3bcbb47ebc66f2aa23d9fa742da62f3066dcd9f530f068fa16542397c74b2

Contents?: true

Size: 164 Bytes

Versions: 103

Compression:

Stored size: 164 Bytes

Contents

require 'rubygems'
require 'ffi'
module Foo
  extend FFI::Library
  ffi_lib FFI::Library::LIBC
  attach_function :getpid, [ ], :int
end
puts "My pid=#{Foo.getpid}"

Version data entries

103 entries across 90 versions & 15 rubygems

Version Path
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/ffi-1.12.2/samples/getpid.rb
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/samples/getpid.rb
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/ffi-1.12.2/samples/getpid.rb
talon_one-2.0.0 vendor/bundle/ruby/2.7.0/gems/ffi-1.12.2/samples/getpid.rb
talon_one-2.0.0 vendor/bundle/ruby/2.3.0/gems/ffi-1.12.2/samples/getpid.rb
cloudsmith-api-0.49.118 vendor/bundle/ruby/2.6.0/gems/ffi-1.12.2/samples/getpid.rb
cloudsmith-api-0.49.98 vendor/bundle/ruby/2.6.0/gems/ffi-1.12.2/samples/getpid.rb
cloudsmith-api-0.49.94 vendor/bundle/ruby/2.6.0/gems/ffi-1.12.2/samples/getpid.rb
cloudsmith-api-0.49.21 vendor/bundle/ruby/2.6.0/gems/ffi-1.12.2/samples/getpid.rb
cloudsmith-api-0.49.15 vendor/bundle/ruby/2.6.0/gems/ffi-1.12.2/samples/getpid.rb
cloudsmith-api-0.49.13 vendor/bundle/ruby/2.6.0/gems/ffi-1.12.2/samples/getpid.rb
cloudsmith-api-0.49.9 vendor/bundle/ruby/2.3.0/gems/ffi-1.12.2/samples/getpid.rb
ffi-1.12.2-x86-mingw32 samples/getpid.rb
ffi-1.12.2-x64-mingw32 samples/getpid.rb
ffi-1.12.2 samples/getpid.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/ffi-1.11.1/samples/getpid.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/ffi-1.11.1/samples/getpid.rb
ffi-1.12.1-x86-mingw32 samples/getpid.rb
ffi-1.12.1-x64-mingw32 samples/getpid.rb
ffi-1.12.1 samples/getpid.rb