Sha256: f02a72c82aeb1bb6a5b60ef9526c4e7dccb2c7cec99b4ba064dbfa85033892a1

Contents?: true

Size: 1.93 KB

Versions: 19

Compression:

Stored size: 1.93 KB

Contents

module Libuv
    module Ext
        class UvFSStat < FFI::Struct
            layout  :st_dev, :dev_t, :st_mode, :mode_t, :st_nlink, :nlink_t,
                    :st_ino, :ino_t, :st_uid, :uid_t, :st_gid, :gid_t, :st_rdev,
                    :dev_t, :st_atime, :time_t, :st_mtime, :time_t, :st_ctime,
                    :time_t, :st_size, :off_t, :st_blocks, :blkcnt_t, :st_blksize,
                    :blksize_t, :st_flags, :uint32, :st_gen, :uint32, :st_lspare,
                    :int32, :st_qspare_0, :int64, :st_qspare_1, :int64
        end

        class Sockaddr < FFI::Struct
            layout :sa_len, :uint8,
                   :sa_family, :sa_family_t,
                   :sa_data, [:char, 14]
        end

        class InAddr < FFI::Struct
            layout :s_addr, :in_addr_t
        end

        class SockaddrIn < FFI::Struct
            layout :sin_len, :uint8,
                   :sin_family, :sa_family_t,
                   :sin_port, :in_port_t,
                   :sin_addr, InAddr,
                   :sin_zero, [:char, 8]
        end

        class U6Addr < FFI::Union
            layout :__u6_addr8, [:uint8, 16],
                   :__u6_addr16, [:uint16, 8]
        end

        class In6Addr < FFI::Struct
            layout :__u6_addr, U6Addr
        end

        class SockaddrIn6 < FFI::Struct
            layout :sin6_len, :uint8,
                   :sin6_family, :sa_family_t,
                   :sin6_port, :in_port_t,
                   :sin6_flowinfo, :uint32,
                   :sin6_addr, In6Addr,
                   :sin6_scope_id, :uint32
        end

        class UvAddrinfo < FFI::Struct
            layout  :flags, :int,
                    :family, :int,
                    :socktype, :int,
                    :protocol, :int,
                    :addrlen, :socklen_t,
                    :canonname, :string,
                    :addr, Sockaddr.by_ref,
                    :next, UvAddrinfo.by_ref
        end
    end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
libuv-2.0.12 lib/libuv/ext/platform/darwin_x64.rb
libuv-2.0.11 lib/libuv/ext/platform/darwin_x64.rb
libuv-2.0.10 lib/libuv/ext/platform/darwin_x64.rb
libuv-2.0.9 lib/libuv/ext/platform/darwin_x64.rb
libuv-2.0.8 lib/libuv/ext/platform/darwin_x64.rb
libuv-2.0.6 lib/libuv/ext/platform/darwin_x64.rb
libuv-2.0.5 lib/libuv/ext/platform/darwin_x64.rb
libuv-2.0.4 lib/libuv/ext/platform/darwin_x64.rb
libuv-2.0.3 lib/libuv/ext/platform/darwin_x64.rb
libuv-2.0.2 lib/libuv/ext/platform/darwin_x64.rb
libuv-2.0.1 lib/libuv/ext/platform/darwin_x64.rb
libuv-2.0.0 lib/libuv/ext/platform/darwin_x64.rb
libuv-1.3.0 lib/libuv/ext/platform/darwin_x64.rb
libuv-1.2.0 lib/libuv/ext/platform/darwin_x64.rb
libuv-1.1.3 lib/libuv/ext/platform/darwin_x64.rb
libuv-1.1.2 lib/libuv/ext/platform/darwin_x64.rb
libuv-1.1.1 lib/libuv/ext/platform/darwin_x64.rb
libuv-1.1.0 lib/libuv/ext/platform/darwin_x64.rb
libuv-1.0.3 lib/libuv/ext/platform/darwin_x64.rb