Sha256: 4c7afc6a9e1621498d8c0105504aef8bc332cdaf5576fb1f6dc8d6aad97bbdcd

Contents?: true

Size: 146 Bytes

Versions: 7061

Compression:

Stored size: 146 Bytes

Contents

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

7,061 entries across 7,055 versions & 41 rubygems

Version Path
ory-client-1.16.4 vendor/bundle/ruby/3.1.0/gems/ffi-1.17.1/samples/getpid.rb
cybrid_api_id_ruby-0.123.179 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/getpid.rb
cybrid_api_organization_ruby-0.123.179 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/getpid.rb
cybrid_api_organization_ruby-0.123.177 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/getpid.rb
cybrid_api_id_ruby-0.123.177 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/getpid.rb
cybrid_api_organization_ruby-0.123.176 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/getpid.rb
cybrid_api_id_ruby-0.123.176 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/getpid.rb
cybrid_api_organization_ruby-0.123.175 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/getpid.rb
cybrid_api_id_ruby-0.123.175 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/getpid.rb
cybrid_api_id_ruby-0.123.174 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/getpid.rb
cybrid_api_organization_ruby-0.123.174 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/getpid.rb
cybrid_api_id_ruby-0.123.173 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/getpid.rb
cybrid_api_organization_ruby-0.123.173 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/getpid.rb
ory-client-1.16.3 vendor/bundle/ruby/3.1.0/gems/ffi-1.17.1/samples/getpid.rb
cybrid_api_organization_ruby-0.123.172 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/getpid.rb
cybrid_api_id_ruby-0.123.172 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/getpid.rb
cybrid_api_id_ruby-0.123.171 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/getpid.rb
cybrid_api_organization_ruby-0.123.171 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/getpid.rb
cybrid_api_id_ruby-0.123.170 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/getpid.rb
cybrid_api_organization_ruby-0.123.170 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/getpid.rb