Sha256: 2c03e774d69d51e3fccedb349e1c15cdca8b99ae472541b09ba40d1ccb3f1742

Contents?: true

Size: 354 Bytes

Versions: 6758

Compression:

Stored size: 354 Bytes

Contents

# frozen_string_literal: true
module Ethon

  # FFI Wrapper module for Libc.
  #
  # @api private
  module Libc
    extend FFI::Library
    ffi_lib 'c'

    # :nodoc:
    def self.windows?
      Gem.win_platform?
    end

    unless windows?
      attach_function :getdtablesize, [], :int
      attach_function :free, [:pointer], :void
    end
  end
end

Version data entries

6,758 entries across 6,756 versions & 23 rubygems

Version Path
cybrid_api_bank_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
ory-client-1.16.2 vendor/bundle/ruby/3.1.0/gems/ethon-0.16.0/lib/ethon/libc.rb
talon_one-7.0.0 .github/.example/vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
ory-client-1.16.1 vendor/bundle/ruby/3.1.0/gems/ethon-0.16.0/lib/ethon/libc.rb
ory-client-1.16.0 vendor/bundle/ruby/3.1.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.123.143 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb