Sha256: 2c03e774d69d51e3fccedb349e1c15cdca8b99ae472541b09ba40d1ccb3f1742

Contents?: true

Size: 354 Bytes

Versions: 6478

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,478 entries across 6,476 versions & 22 rubygems

Version Path
cybrid_api_organization_ruby-0.122.48 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.122.47 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.122.47 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.122.47 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.122.46 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.122.46 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.122.46 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.122.45 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.122.45 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.122.45 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.122.44 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.122.44 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.122.44 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.122.43 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.122.43 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.122.43 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.122.42 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.122.42 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.122.42 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
ory-client-1.15.10 vendor/bundle/ruby/3.1.0/gems/ethon-0.16.0/lib/ethon/libc.rb