Class: Ronin::Support::Binary::CTypes::OS::FreeBSD

Inherits:
BSD show all
Defined in:
lib/ronin/support/binary/ctypes/os/freebsd.rb

Overview

Contains additional types available on FreeBSD.

Since:

  • 1.0.0

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) ⇒ FreeBSD

Initializes the FreeBSD 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
# File 'lib/ronin/support/binary/ctypes/os/freebsd.rb', line 41

def initialize(types)
  super(types)

  typedef :int, :__clockid_t
  typedef :int, :clockid_t
  typedef :uint, :__fixpt_t
  typedef :uint, :__gid_t
  typedef :uint, :__ino_t
  typedef :uint, :ino_t
  typedef :int, :__int_fast16_t
  typedef :int, :__int_fast32_t
  typedef :long_long, :__int_fast64_t
  typedef :int, :__int_fast8_t
  typedef :short, :__int_least16_t
  typedef :int, :__int_least32_t
  typedef :long_long, :__int_least64_t
  typedef :char, :__int_least8_t
  typedef :long_long, :__intmax_t
  typedef :long, :__key_t
  typedef :long, :key_t
  typedef :long_long, :__off_t
  typedef :int, :__pid_t
  typedef :int, :__rune_t
  typedef :uchar, :__sa_family_t
  typedef :int, :__segsz_t
  typedef :uint, :__socklen_t
  typedef :long, :__suseconds_t
  typedef :long, :suseconds_t
  typedef :long, :__time_t
  typedef :long, :time_t
  typedef :uint, :__uid_t
  typedef :ushort, :uint16_t
  typedef :uint, :uint32_t
  typedef :ulong_long, :uint64_t
  typedef :uchar, :uint8_t
  typedef :uint, :__uint_fast16_t
  typedef :uint, :__uint_fast32_t
  typedef :ulong_long, :__uint_fast64_t
  typedef :uint, :__uint_fast8_t
  typedef :ushort, :__uint_least16_t
  typedef :uint, :__uint_least32_t
  typedef :ulong_long, :__uint_least64_t
  typedef :uchar, :__uint_least8_t
  typedef :ulong_long, :__uintmax_t
  typedef :uint, :__useconds_t
  typedef :int, :__wchar_t
  typedef :int, :__wint_t

  if types::ADDRESS_SIZE == 8
    typedef :int, :__clock_t
    typedef :int, :clock_t
    typedef :ulong, :__cpuid_t
    typedef :ulong, :cpuid_t
    typedef :int, :daddr32_t
    typedef :long_long, :daddr64_t
    typedef :int, :daddr_t
    typedef :int, :__dev_t
    typedef :int, :dev_t
    typedef :int, :__fd_mask
    typedef :uint, :__id_t
    typedef :uint, :id_t
    typedef :uint, :__in_addr_t
    typedef :ushort, :__in_port_t
    typedef :long, :__intptr_t
    typedef :long, :intptr_t
    typedef :uint, :__mode_t
    typedef :uint, :mode_t
    typedef :uint, :__nlink_t
    typedef :uint, :nlink_t
    typedef :ulong, :__paddr_t
    typedef :ulong, :paddr_t
    typedef :ulong, :__psize_t
    typedef :ulong, :psize_t
    typedef :long, :__ptrdiff_t
    typedef :long_long, :__register_t
    typedef :long_long, :register_t
    typedef :ulong_long, :__rlim_t
    typedef :ulong_long, :rlim_t
    typedef :ulong, :__size_t
    typedef :ulong, :size_t
    typedef :long, :__ssize_t
    typedef :long, :ssize_t
    typedef :int, :__swblk_t
    typedef :int, :swblk_t
    typedef :int, :__timer_t
    typedef :int, :timer_t
    typedef :ulong, :__uintptr_t
    typedef :ulong, :uintptr_t
    typedef :ulong, :ulong
    typedef :uchar, :unchar
    typedef :ulong, :__vaddr_t
    typedef :ulong, :vaddr_t
    typedef :ulong, :__vsize_t
    typedef :ulong, :vsize_t
    typedef :pointer, :__wctrans_t
    typedef :pointer, :__wctype_t
  else
    typedef :int, :__accmode_t
    typedef :int, :accmode_t
    typedef :long_long, :__blkcnt_t
    typedef :long_long, :blkcnt_t
    typedef :uint, :__blksize_t
    typedef :uint, :blksize_t
    typedef :pointer, :c_caddr_t
    typedef :ulong, :__clock_t
    typedef :ulong, :clock_t
    typedef :int, :__cpulevel_t
    typedef :int, :cpulevel_t
    typedef :uint, :__cpumask_t
    typedef :uint, :cpumask_t
    typedef :int, :__cpusetid_t
    typedef :int, :cpusetid_t
    typedef :int, :__cpuwhich_t
    typedef :int, :cpuwhich_t
    typedef :int, :__critical_t
    typedef :int, :critical_t
    typedef :int, :__ct_rune_t
    typedef :long_long, :daddr_t
    typedef :uint, :__dev_t
    typedef :uint, :dev_t
    typedef :ulong, :__fd_mask
    typedef :ulong, :fd_mask
    typedef :uint, :__fflags_t
    typedef :uint, :fflags_t
    typedef :ulong_long, :__fsblkcnt_t
    typedef :ulong_long, :fsblkcnt_t
    typedef :ulong_long, :__fsfilcnt_t
    typedef :ulong_long, :fsfilcnt_t
    typedef :long_long, :__id_t
    typedef :long_long, :id_t
    typedef :int, :__intfptr_t
    typedef :int, :__intptr_t
    typedef :int, :intptr_t
    typedef :int, :__lwpid_t
    typedef :int, :lwpid_t
    typedef :ushort, :__mode_t
    typedef :ushort, :mode_t
    typedef :ushort, :__nlink_t
    typedef :ushort, :nlink_t
    typedef :int, :__nl_item
    typedef :int, :pthread_key_t
    typedef :int, :__ptrdiff_t
    typedef :int, :__register_t
    typedef :int, :register_t
    typedef :long_long, :__rlim_t
    typedef :long_long, :rlim_t
    typedef :uint, :__size_t
    typedef :uint, :size_t
    typedef :int, :__ssize_t
    typedef :int, :ssize_t
    typedef :uint, :__uintfptr_t
    typedef :uint, :__uintptr_t
    typedef :uint, :uintptr_t
    typedef :uint, :__u_register_t
    typedef :uint, :u_register_t
    typedef :uint, :__vm_offset_t
    typedef :uint, :vm_offset_t
    typedef :long_long, :__vm_ooffset_t
    typedef :long_long, :vm_ooffset_t
    typedef :uint, :__vm_paddr_t
    typedef :uint, :vm_paddr_t
    typedef :ulong_long, :__vm_pindex_t
    typedef :ulong_long, :vm_pindex_t
    typedef :uint, :__vm_size_t
    typedef :uint, :vm_size_t
    typedef :int, :__wint_t
  end
end