Sha256: 2c03e774d69d51e3fccedb349e1c15cdca8b99ae472541b09ba40d1ccb3f1742

Contents?: true

Size: 354 Bytes

Versions: 6479

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

Version Path
cybrid_api_organization_ruby-0.123.3 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.123.3 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.123.2 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.123.2 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.123.2 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.122.72 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.122.72 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.122.72 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.122.71 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.122.71 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.122.71 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.122.70 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.122.70 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.122.70 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.122.69 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.122.69 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.122.69 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.122.68 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.122.68 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.122.68 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb