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
affixapi-1.1.102 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
mux_ruby-3.20.0 vendor/bundle/ruby/3.2.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.123.12 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.123.12 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.123.12 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.123.11 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.123.11 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.123.11 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.123.10 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.123.10 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.123.10 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.123.7 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.123.7 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.123.7 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
ory-client-1.15.12 vendor/bundle/ruby/3.1.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.123.4 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_id_ruby-0.123.4 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.123.4 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_bank_ruby-0.123.3 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb
cybrid_api_organization_ruby-0.123.3 vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/lib/ethon/libc.rb