Sha256: 4c7afc6a9e1621498d8c0105504aef8bc332cdaf5576fb1f6dc8d6aad97bbdcd

Contents?: true

Size: 146 Bytes

Versions: 7062

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,062 entries across 7,056 versions & 41 rubygems

Version Path
ory-kratos-client-0.7.6.alpha3 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/getpid.rb
ory-kratos-client-0.7.6.alpha1 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/getpid.rb
ory-kratos-client-0.7.5.alpha2 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/getpid.rb
ffi-1.15.4 samples/getpid.rb
ffi-1.15.4-java samples/getpid.rb
ffi-1.15.4-x64-mingw32 samples/getpid.rb
ffi-1.15.4-x86-mingw32 samples/getpid.rb
ffi-1.15.4.pre1-java samples/getpid.rb
ffi-1.15.4.pre1 samples/getpid.rb
ffi-1.15.3 samples/getpid.rb
ffi-1.15.3-java samples/getpid.rb
ffi-1.15.3-x64-mingw32 samples/getpid.rb
ffi-1.15.3-x86-mingw32 samples/getpid.rb
ffi-1.15.2 samples/getpid.rb
ffi-1.15.2-java samples/getpid.rb
ffi-1.15.2-x64-mingw32 samples/getpid.rb
ffi-1.15.2-x86-mingw32 samples/getpid.rb
ffi-1.15.1 samples/getpid.rb
ffi-1.15.1-java samples/getpid.rb
ffi-1.15.1-x64-mingw32 samples/getpid.rb