Class: Ronin::Support::Binary::CTypes::OS::BSD Private

Inherits:
UNIX show all
Defined in:
lib/ronin/support/binary/ctypes/os/bsd.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Common types shared by all BSD OSes.

Since:

  • 1.0.0

Direct Known Subclasses

FreeBSD, MacOS, NetBSD, OpenBSD

Instance Attribute Summary

Attributes inherited from Ronin::Support::Binary::CTypes::OS

#typedefs, #types

Instance Method Summary collapse

Methods inherited from Ronin::Support::Binary::CTypes::OS

#[], #typedef

Constructor Details

#initialize(types) ⇒ BSD

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Initializes the common BSD types object.

Parameters:

  • types (#[])

    The base types module.

Since:

  • 1.0.0



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/ronin/support/binary/ctypes/os/bsd.rb', line 41

def initialize(types)
  super(types)

  typedef :long_long,  :__int64_t
  typedef :ulong_long, :__uint64_t
  typedef :long_long,  :int64_t

  typedef :long_long,  :quad_t
  typedef :ulong_long, :u_quad_t

  typedef :string, :caddr_t
  typedef :uint, :fixpt_t
  typedef :long_long, :off_t
  typedef :pointer, :qaddr_t
  typedef :uchar, :sa_family_t
  typedef :int, :segsz_t
  typedef :uint, :useconds_t
end