ffi 1.0.9-x86-mingw32 → 1.0.12.pre-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of ffi might be problematic. Click here for more details.

Files changed (218) hide show
  1. data/Rakefile +16 -16
  2. data/ext/ffi_c/AbstractMemory.c +376 -14
  3. data/ext/ffi_c/AbstractMemory.h +8 -0
  4. data/ext/ffi_c/ArrayType.c +28 -0
  5. data/ext/ffi_c/Buffer.c +109 -25
  6. data/ext/ffi_c/Call.c +16 -5
  7. data/ext/ffi_c/ClosurePool.c +21 -8
  8. data/ext/ffi_c/DataConverter.c +29 -0
  9. data/ext/ffi_c/DynamicLibrary.c +71 -2
  10. data/ext/ffi_c/Function.c +122 -11
  11. data/ext/ffi_c/Function.h +6 -0
  12. data/ext/ffi_c/FunctionInfo.c +21 -1
  13. data/ext/ffi_c/LastError.c +24 -0
  14. data/ext/ffi_c/MappedType.c +22 -0
  15. data/ext/ffi_c/MemoryPointer.c +19 -1
  16. data/ext/ffi_c/MemoryPointer.h +6 -0
  17. data/ext/ffi_c/MethodHandle.c +26 -11
  18. data/ext/ffi_c/Platform.c +17 -3
  19. data/ext/ffi_c/Pointer.c +106 -0
  20. data/ext/ffi_c/Pointer.h +6 -0
  21. data/ext/ffi_c/Struct.c +10 -4
  22. data/ext/ffi_c/Struct.h +2 -1
  23. data/ext/ffi_c/StructByReference.c +8 -0
  24. data/ext/ffi_c/StructByValue.c +8 -0
  25. data/ext/ffi_c/StructLayout.c +8 -2
  26. data/ext/ffi_c/Thread.c +131 -1
  27. data/ext/ffi_c/Thread.h +6 -0
  28. data/ext/ffi_c/Type.c +111 -17
  29. data/ext/ffi_c/Types.c +9 -2
  30. data/ext/ffi_c/Types.h +4 -0
  31. data/ext/ffi_c/Variadic.c +13 -4
  32. data/ext/ffi_c/compat.h +8 -0
  33. data/ext/ffi_c/endian.h +10 -1
  34. data/ext/ffi_c/extconf.rb +51 -35
  35. data/ext/ffi_c/ffi.c +5 -0
  36. data/ext/ffi_c/libffi.darwin.mk +15 -15
  37. data/ext/ffi_c/libffi.gnu.mk +3 -3
  38. data/ext/ffi_c/libffi.mk +4 -4
  39. data/ext/ffi_c/libffi.vc.mk +26 -0
  40. data/ext/ffi_c/libffi.vc64.mk +26 -0
  41. data/ext/ffi_c/libffi/ChangeLog +541 -0
  42. data/ext/ffi_c/libffi/ChangeLog.libffi +13 -87
  43. data/ext/ffi_c/libffi/LICENSE +3 -3
  44. data/ext/ffi_c/libffi/Makefile.am +41 -32
  45. data/ext/ffi_c/libffi/Makefile.in +95 -66
  46. data/ext/ffi_c/libffi/Makefile.vc +141 -0
  47. data/ext/ffi_c/libffi/Makefile.vc64 +141 -0
  48. data/ext/ffi_c/libffi/README +40 -4
  49. data/ext/ffi_c/libffi/aclocal.m4 +729 -7854
  50. data/ext/ffi_c/libffi/build-ios.sh +67 -0
  51. data/ext/ffi_c/libffi/compile +11 -10
  52. data/ext/ffi_c/libffi/config.guess +4 -1
  53. data/ext/ffi_c/libffi/config.sub +6 -3
  54. data/ext/ffi_c/libffi/configure +6264 -6354
  55. data/ext/ffi_c/libffi/configure.ac +155 -63
  56. data/ext/ffi_c/libffi/depcomp +81 -35
  57. data/ext/ffi_c/libffi/doc/libffi.info +78 -18
  58. data/ext/ffi_c/libffi/doc/libffi.texi +64 -5
  59. data/ext/ffi_c/libffi/doc/stamp-vti +4 -4
  60. data/ext/ffi_c/libffi/doc/version.texi +4 -4
  61. data/ext/ffi_c/libffi/fficonfig.h.in +18 -0
  62. data/ext/ffi_c/libffi/fficonfig.hw +57 -0
  63. data/ext/ffi_c/libffi/include/Makefile.in +21 -3
  64. data/ext/ffi_c/libffi/include/ffi.h.in +42 -14
  65. data/ext/ffi_c/libffi/include/ffi.h.vc +427 -0
  66. data/ext/ffi_c/libffi/include/ffi.h.vc64 +427 -0
  67. data/ext/ffi_c/libffi/include/ffi_common.h +9 -5
  68. data/ext/ffi_c/libffi/install-sh +364 -167
  69. data/ext/ffi_c/libffi/ltmain.sh +2599 -1369
  70. data/ext/ffi_c/libffi/m4/ax_cc_maxopt.m4 +176 -0
  71. data/ext/ffi_c/libffi/m4/ax_cflags_warn_all.m4 +195 -0
  72. data/ext/ffi_c/libffi/m4/ax_check_compiler_flags.m4 +76 -0
  73. data/ext/ffi_c/libffi/m4/ax_compiler_vendor.m4 +63 -0
  74. data/ext/ffi_c/libffi/m4/ax_configure_args.m4 +70 -0
  75. data/ext/ffi_c/libffi/m4/ax_enable_builddir.m4 +300 -0
  76. data/ext/ffi_c/libffi/m4/ax_gcc_archflag.m4 +215 -0
  77. data/ext/ffi_c/libffi/m4/ax_gcc_x86_cpuid.m4 +79 -0
  78. data/ext/ffi_c/libffi/m4/libtool.m4 +1239 -768
  79. data/ext/ffi_c/libffi/m4/ltoptions.m4 +7 -6
  80. data/ext/ffi_c/libffi/m4/ltversion.m4 +6 -6
  81. data/ext/ffi_c/libffi/m4/lt~obsolete.m4 +9 -3
  82. data/ext/ffi_c/libffi/man/Makefile.in +21 -3
  83. data/ext/ffi_c/libffi/mdate-sh +0 -0
  84. data/ext/ffi_c/libffi/missing +60 -44
  85. data/ext/ffi_c/libffi/msvcc.sh +197 -0
  86. data/ext/ffi_c/libffi/src/alpha/osf.S +39 -18
  87. data/ext/ffi_c/libffi/src/arm/ffi.c +443 -24
  88. data/ext/ffi_c/libffi/src/arm/ffitarget.h +17 -1
  89. data/ext/ffi_c/libffi/src/arm/gentramp.sh +118 -0
  90. data/ext/ffi_c/libffi/src/arm/sysv.S +206 -15
  91. data/ext/ffi_c/libffi/src/arm/trampoline.S +4450 -0
  92. data/ext/ffi_c/libffi/src/avr32/ffi.c +4 -2
  93. data/ext/ffi_c/libffi/src/avr32/ffitarget.h +2 -2
  94. data/ext/ffi_c/libffi/src/closures.c +17 -35
  95. data/ext/ffi_c/libffi/src/cris/ffi.c +1 -1
  96. data/ext/ffi_c/libffi/src/cris/ffitarget.h +2 -2
  97. data/ext/ffi_c/libffi/src/dlmalloc.c +66 -4
  98. data/ext/ffi_c/libffi/src/frv/ffitarget.h +2 -6
  99. data/ext/ffi_c/libffi/src/ia64/ffi.c +7 -5
  100. data/ext/ffi_c/libffi/src/ia64/ffitarget.h +2 -2
  101. data/ext/ffi_c/libffi/src/java_raw_api.c +1 -1
  102. data/ext/ffi_c/libffi/src/m32r/ffitarget.h +2 -2
  103. data/ext/ffi_c/libffi/src/m68k/ffi.c +10 -0
  104. data/ext/ffi_c/libffi/src/m68k/ffitarget.h +2 -2
  105. data/ext/ffi_c/libffi/src/m68k/sysv.S +36 -0
  106. data/ext/ffi_c/libffi/src/mips/ffi.c +12 -5
  107. data/ext/ffi_c/libffi/src/mips/ffitarget.h +18 -11
  108. data/ext/ffi_c/libffi/src/mips/n32.S +4 -4
  109. data/ext/ffi_c/libffi/src/moxie/eabi.S +128 -0
  110. data/ext/ffi_c/libffi/src/moxie/ffi.c +276 -0
  111. data/ext/ffi_c/libffi/src/pa/ffi.c +7 -4
  112. data/ext/ffi_c/libffi/src/pa/ffitarget.h +6 -5
  113. data/ext/ffi_c/libffi/src/powerpc/aix.S +5 -1
  114. data/ext/ffi_c/libffi/src/powerpc/aix_closure.S +2 -0
  115. data/ext/ffi_c/libffi/src/powerpc/asm.h +1 -1
  116. data/ext/ffi_c/libffi/src/powerpc/darwin.S +215 -77
  117. data/ext/ffi_c/libffi/src/powerpc/darwin_closure.S +358 -100
  118. data/ext/ffi_c/libffi/src/powerpc/ffi.c +11 -5
  119. data/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c +603 -172
  120. data/ext/ffi_c/libffi/src/powerpc/ffitarget.h +17 -4
  121. data/ext/ffi_c/libffi/src/prep_cif.c +16 -13
  122. data/ext/ffi_c/libffi/src/s390/ffitarget.h +4 -2
  123. data/ext/ffi_c/libffi/src/sh/ffitarget.h +2 -2
  124. data/ext/ffi_c/libffi/src/sh64/ffitarget.h +2 -2
  125. data/ext/ffi_c/libffi/src/sparc/ffi.c +55 -11
  126. data/ext/ffi_c/libffi/src/sparc/ffitarget.h +5 -3
  127. data/ext/ffi_c/libffi/src/x86/ffi.c +54 -92
  128. data/ext/ffi_c/libffi/src/x86/ffi64.c +17 -8
  129. data/ext/ffi_c/libffi/src/x86/ffitarget.h +15 -14
  130. data/ext/ffi_c/libffi/src/x86/sysv.S +40 -26
  131. data/ext/ffi_c/libffi/src/x86/unix64.S +4 -0
  132. data/ext/ffi_c/libffi/src/x86/win32.S +379 -191
  133. data/ext/ffi_c/libffi/src/x86/win64.S +15 -7
  134. data/ext/ffi_c/libffi/testsuite/Makefile.am +1 -1
  135. data/ext/ffi_c/libffi/testsuite/Makefile.in +22 -4
  136. data/ext/ffi_c/libffi/testsuite/lib/libffi.exp +350 -0
  137. data/ext/ffi_c/libffi/testsuite/libffi.call/call.exp +1 -5
  138. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble_split.c +1 -1
  139. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble_split2.c +1 -1
  140. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint64.c +1 -0
  141. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint64.c +1 -0
  142. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_double_va.c +3 -0
  143. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_longdouble.c +2 -2
  144. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_longdouble_va.c +3 -0
  145. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_pointer.c +1 -1
  146. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_pointer_stack.c +1 -1
  147. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_ulonglong.c +1 -0
  148. data/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_abi.c +2 -3
  149. data/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c +2 -1
  150. data/ext/ffi_c/libffi/testsuite/libffi.call/ffitest.h +36 -0
  151. data/ext/ffi_c/libffi/testsuite/libffi.call/huge_struct.c +17 -17
  152. data/ext/ffi_c/libffi/testsuite/libffi.call/return_ll1.c +1 -0
  153. data/ext/ffi_c/libffi/testsuite/libffi.call/stret_medium2.c +1 -0
  154. data/ext/ffi_c/libffi/testsuite/libffi.special/ffitestcxx.h +1 -1
  155. data/ext/ffi_c/libffi/testsuite/libffi.special/special.exp +1 -3
  156. data/ext/ffi_c/win32/stdint.h +199 -0
  157. data/gen/Rakefile +18 -2
  158. data/lib/1.8/ffi_c.so +0 -0
  159. data/lib/ffi.rb +13 -9
  160. data/lib/ffi/autopointer.rb +88 -26
  161. data/lib/ffi/enum.rb +42 -0
  162. data/lib/ffi/errno.rb +6 -1
  163. data/lib/ffi/ffi.rb +1 -0
  164. data/lib/ffi/io.rb +13 -2
  165. data/lib/ffi/library.rb +219 -24
  166. data/lib/ffi/memorypointer.rb +1 -33
  167. data/lib/ffi/platform.rb +21 -7
  168. data/lib/ffi/platform/arm-linux/types.conf +102 -0
  169. data/lib/ffi/platform/i386-freebsd/types.conf +152 -0
  170. data/lib/ffi/platform/i386-netbsd/types.conf +126 -0
  171. data/lib/ffi/platform/i486-gnu/types.conf +107 -0
  172. data/lib/ffi/platform/ia64-linux/types.conf +102 -0
  173. data/lib/ffi/platform/mips-linux/types.conf +102 -0
  174. data/lib/ffi/platform/mipsel-linux/types.conf +102 -0
  175. data/lib/ffi/platform/powerpc-linux/types.conf +100 -0
  176. data/lib/ffi/platform/s390-linux/types.conf +102 -0
  177. data/lib/ffi/platform/s390x-linux/types.conf +102 -0
  178. data/lib/ffi/platform/sparc-linux/types.conf +102 -0
  179. data/lib/ffi/platform/x86_64-freebsd/types.conf +126 -0
  180. data/lib/ffi/platform/x86_64-netbsd/types.conf +126 -0
  181. data/lib/ffi/pointer.rb +44 -0
  182. data/lib/ffi/struct.rb +2 -6
  183. data/lib/ffi/struct_layout_builder.rb +2 -1
  184. data/lib/ffi/tools/const_generator.rb +78 -26
  185. data/lib/ffi/tools/types_generator.rb +8 -1
  186. data/lib/ffi/types.rb +21 -1
  187. data/spec/ffi/async_callback_spec.rb +2 -2
  188. data/spec/ffi/bool_spec.rb +6 -6
  189. data/spec/ffi/buffer_spec.rb +23 -23
  190. data/spec/ffi/callback_spec.rb +101 -102
  191. data/spec/ffi/custom_type_spec.rb +20 -24
  192. data/spec/ffi/dup_spec.rb +7 -7
  193. data/spec/ffi/enum_spec.rb +127 -127
  194. data/spec/ffi/errno_spec.rb +2 -2
  195. data/spec/ffi/ffi_spec.rb +3 -3
  196. data/spec/ffi/function_spec.rb +10 -10
  197. data/spec/ffi/library_spec.rb +30 -12
  198. data/spec/ffi/managed_struct_spec.rb +4 -4
  199. data/spec/ffi/number_spec.rb +40 -40
  200. data/spec/ffi/pointer_spec.rb +21 -24
  201. data/spec/ffi/rbx/memory_pointer_spec.rb +17 -15
  202. data/spec/ffi/rbx/struct_spec.rb +2 -2
  203. data/spec/ffi/spec_helper.rb +1 -1
  204. data/spec/ffi/string_spec.rb +9 -9
  205. data/spec/ffi/strptr_spec.rb +3 -3
  206. data/spec/ffi/struct_callback_spec.rb +7 -7
  207. data/spec/ffi/struct_initialize_spec.rb +2 -2
  208. data/spec/ffi/struct_packed_spec.rb +6 -6
  209. data/spec/ffi/struct_spec.rb +94 -84
  210. data/spec/ffi/typedef_spec.rb +15 -4
  211. data/spec/ffi/union_spec.rb +3 -3
  212. data/spec/ffi/variadic_spec.rb +17 -14
  213. data/tasks/extension.rake +0 -1
  214. data/tasks/gem.rake +0 -1
  215. data/tasks/rdoc.rake +1 -1
  216. data/tasks/yard.rake +11 -0
  217. metadata +50 -11
  218. data/lib/1.9/ffi_c.so +0 -0
@@ -1,33 +1 @@
1
- #
2
- # Copyright (C) 2008, 2009 Wayne Meissner
3
- # All rights reserved.
4
- #
5
- # All rights reserved.
6
- #
7
- # This file is part of ruby-ffi.
8
- #
9
- # This code is free software: you can redistribute it and/or modify it under
10
- # the terms of the GNU Lesser General Public License version 3 only, as
11
- # published by the Free Software Foundation.
12
- #
13
- # This code is distributed in the hope that it will be useful, but WITHOUT
14
- # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15
- # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
16
- # version 3 for more details.
17
- #
18
- # You should have received a copy of the GNU Lesser General Public License
19
- # version 3 along with this work. If not, see <http://www.gnu.org/licenses/>.
20
- #
21
-
22
- require 'ffi/pointer'
23
- module FFI
24
- class MemoryPointer
25
-
26
- def self.from_string(s)
27
- ptr = self.new(s.bytesize + 1, 1, false)
28
- ptr.put_string(0, s)
29
- ptr
30
- end
31
-
32
- end
33
- end
1
+ # This class is now implemented in C
@@ -23,8 +23,10 @@ require 'rbconfig'
23
23
  module FFI
24
24
  class PlatformError < LoadError; end
25
25
 
26
+ # This module defines different constants and class methods to play with
27
+ # various platforms.
26
28
  module Platform
27
- OS = case Config::CONFIG['host_os'].downcase
29
+ OS = case RbConfig::CONFIG['host_os'].downcase
28
30
  when /linux/
29
31
  "linux"
30
32
  when /darwin/
@@ -35,10 +37,10 @@ module FFI
35
37
  "openbsd"
36
38
  when /sunos|solaris/
37
39
  "solaris"
38
- when /win|mingw/
40
+ when /mingw|mswin/
39
41
  "windows"
40
42
  else
41
- Config::CONFIG['host_os'].downcase
43
+ RbConfig::CONFIG['host_os'].downcase
42
44
  end
43
45
 
44
46
  ARCH = case CPU.downcase
@@ -49,22 +51,26 @@ module FFI
49
51
  when /ppc|powerpc/
50
52
  "powerpc"
51
53
  else
52
- Config::CONFIG['host_cpu']
54
+ RbConfig::CONFIG['host_cpu']
53
55
  end
54
56
 
55
57
  private
58
+ # @param [String) os
59
+ # @return [Boolean]
60
+ # Test if current OS is +os+.
56
61
  def self.is_os(os)
57
62
  OS == os
58
63
  end
59
64
 
60
65
  NAME = "#{ARCH}-#{OS}"
66
+ IS_GNU = defined?(GNU_LIBC)
61
67
  IS_LINUX = is_os("linux")
62
68
  IS_MAC = is_os("darwin")
63
69
  IS_FREEBSD = is_os("freebsd")
64
70
  IS_OPENBSD = is_os("openbsd")
65
71
  IS_WINDOWS = is_os("windows")
66
72
  IS_BSD = IS_MAC || IS_FREEBSD || IS_OPENBSD
67
- CONF_DIR = File.join(File.dirname(__FILE__), 'platform', ARCH.to_s + "-" + OS.to_s)
73
+ CONF_DIR = File.join(File.dirname(__FILE__), 'platform', NAME)
68
74
  public
69
75
 
70
76
 
@@ -85,24 +91,32 @@ module FFI
85
91
 
86
92
  LIBC = if IS_WINDOWS
87
93
  "msvcrt.dll"
88
- elsif IS_LINUX
89
- "libc.so.6"
94
+ elsif IS_GNU
95
+ GNU_LIBC
90
96
  else
91
97
  "#{LIBPREFIX}c.#{LIBSUFFIX}"
92
98
  end
93
99
 
100
+ # Test if current OS is a *BSD (include MAC)
101
+ # @return [Boolean]
94
102
  def self.bsd?
95
103
  IS_BSD
96
104
  end
97
105
 
106
+ # Test if current OS is Windows
107
+ # @return [Boolean]
98
108
  def self.windows?
99
109
  IS_WINDOWS
100
110
  end
101
111
 
112
+ # Test if current OS is Mac OS
113
+ # @return [Boolean]
102
114
  def self.mac?
103
115
  IS_MAC
104
116
  end
105
117
 
118
+ # Test if current OS is a unix OS
119
+ # @return [Boolean]
106
120
  def self.unix?
107
121
  !IS_WINDOWS
108
122
  end
@@ -0,0 +1,102 @@
1
+ rbx.platform.typedef.__u_char = uchar
2
+ rbx.platform.typedef.__u_short = ushort
3
+ rbx.platform.typedef.__u_int = uint
4
+ rbx.platform.typedef.__u_long = ulong
5
+ rbx.platform.typedef.__int8_t = char
6
+ rbx.platform.typedef.__uint8_t = uchar
7
+ rbx.platform.typedef.__int16_t = short
8
+ rbx.platform.typedef.__uint16_t = ushort
9
+ rbx.platform.typedef.__int32_t = int
10
+ rbx.platform.typedef.__uint32_t = uint
11
+ rbx.platform.typedef.__int64_t = long_long
12
+ rbx.platform.typedef.__uint64_t = ulong_long
13
+ rbx.platform.typedef.__quad_t = long_long
14
+ rbx.platform.typedef.__u_quad_t = ulong_long
15
+ rbx.platform.typedef.__dev_t = ulong_long
16
+ rbx.platform.typedef.__uid_t = uint
17
+ rbx.platform.typedef.__gid_t = uint
18
+ rbx.platform.typedef.__ino_t = ulong
19
+ rbx.platform.typedef.__ino64_t = ulong_long
20
+ rbx.platform.typedef.__mode_t = uint
21
+ rbx.platform.typedef.__nlink_t = uint
22
+ rbx.platform.typedef.__off_t = long
23
+ rbx.platform.typedef.__off64_t = long_long
24
+ rbx.platform.typedef.__pid_t = int
25
+ rbx.platform.typedef.__clock_t = long
26
+ rbx.platform.typedef.__rlim_t = ulong
27
+ rbx.platform.typedef.__rlim64_t = ulong_long
28
+ rbx.platform.typedef.__id_t = uint
29
+ rbx.platform.typedef.__time_t = long
30
+ rbx.platform.typedef.__useconds_t = uint
31
+ rbx.platform.typedef.__suseconds_t = long
32
+ rbx.platform.typedef.__daddr_t = int
33
+ rbx.platform.typedef.__swblk_t = long
34
+ rbx.platform.typedef.__key_t = int
35
+ rbx.platform.typedef.__clockid_t = int
36
+ rbx.platform.typedef.__timer_t = pointer
37
+ rbx.platform.typedef.__blksize_t = long
38
+ rbx.platform.typedef.__blkcnt_t = long
39
+ rbx.platform.typedef.__blkcnt64_t = long_long
40
+ rbx.platform.typedef.__fsblkcnt_t = ulong
41
+ rbx.platform.typedef.__fsblkcnt64_t = ulong_long
42
+ rbx.platform.typedef.__fsfilcnt_t = ulong
43
+ rbx.platform.typedef.__fsfilcnt64_t = ulong_long
44
+ rbx.platform.typedef.__ssize_t = int
45
+ rbx.platform.typedef.__loff_t = long_long
46
+ rbx.platform.typedef.*__qaddr_t = long_long
47
+ rbx.platform.typedef.*__caddr_t = char
48
+ rbx.platform.typedef.__intptr_t = int
49
+ rbx.platform.typedef.__socklen_t = uint
50
+ rbx.platform.typedef.u_char = uchar
51
+ rbx.platform.typedef.u_short = ushort
52
+ rbx.platform.typedef.u_int = uint
53
+ rbx.platform.typedef.u_long = ulong
54
+ rbx.platform.typedef.quad_t = long_long
55
+ rbx.platform.typedef.u_quad_t = ulong_long
56
+ rbx.platform.typedef.loff_t = long_long
57
+ rbx.platform.typedef.ino_t = ulong_long
58
+ rbx.platform.typedef.dev_t = ulong_long
59
+ rbx.platform.typedef.gid_t = uint
60
+ rbx.platform.typedef.mode_t = uint
61
+ rbx.platform.typedef.nlink_t = uint
62
+ rbx.platform.typedef.uid_t = uint
63
+ rbx.platform.typedef.off_t = long_long
64
+ rbx.platform.typedef.pid_t = int
65
+ rbx.platform.typedef.id_t = uint
66
+ rbx.platform.typedef.ssize_t = int
67
+ rbx.platform.typedef.daddr_t = int
68
+ rbx.platform.typedef.key_t = int
69
+ rbx.platform.typedef.clock_t = long
70
+ rbx.platform.typedef.time_t = long
71
+ rbx.platform.typedef.clockid_t = int
72
+ rbx.platform.typedef.timer_t = pointer
73
+ rbx.platform.typedef.size_t = uint
74
+ rbx.platform.typedef.ulong = ulong
75
+ rbx.platform.typedef.ushort = ushort
76
+ rbx.platform.typedef.uint = uint
77
+ rbx.platform.typedef.int8_t = char
78
+ rbx.platform.typedef.int16_t = short
79
+ rbx.platform.typedef.int32_t = int
80
+ rbx.platform.typedef.int64_t = long_long
81
+ rbx.platform.typedef.u_int8_t = uchar
82
+ rbx.platform.typedef.u_int16_t = ushort
83
+ rbx.platform.typedef.u_int32_t = uint
84
+ rbx.platform.typedef.u_int64_t = ulong_long
85
+ rbx.platform.typedef.register_t = long
86
+ rbx.platform.typedef.__sig_atomic_t = int
87
+ rbx.platform.typedef.suseconds_t = long
88
+ rbx.platform.typedef.__fd_mask = long
89
+ rbx.platform.typedef.fd_mask = long
90
+ rbx.platform.typedef.blksize_t = long
91
+ rbx.platform.typedef.blkcnt_t = long_long
92
+ rbx.platform.typedef.fsblkcnt_t = ulong_long
93
+ rbx.platform.typedef.fsfilcnt_t = ulong_long
94
+ rbx.platform.typedef.pthread_t = ulong
95
+ rbx.platform.typedef.pthread_key_t = uint
96
+ rbx.platform.typedef.pthread_once_t = int
97
+ rbx.platform.typedef.socklen_t = uint
98
+ rbx.platform.typedef.sa_family_t = ushort
99
+ rbx.platform.typedef.rlim_t = ulong_long
100
+ rbx.platform.typedef.__rlimit_resource_t = int
101
+ rbx.platform.typedef.__rusage_who_t = int
102
+ rbx.platform.typedef.__priority_which_t = int
@@ -0,0 +1,152 @@
1
+ rbx.platform.typedef.__int8_t = char
2
+ rbx.platform.typedef.__uint8_t = uchar
3
+ rbx.platform.typedef.__int16_t = short
4
+ rbx.platform.typedef.__uint16_t = ushort
5
+ rbx.platform.typedef.__int32_t = int
6
+ rbx.platform.typedef.__uint32_t = uint
7
+ rbx.platform.typedef.__int64_t = long_long
8
+ rbx.platform.typedef.__uint64_t = ulong_long
9
+ rbx.platform.typedef.__clock_t = ulong
10
+ rbx.platform.typedef.__cpumask_t = uint
11
+ rbx.platform.typedef.__critical_t = int
12
+ rbx.platform.typedef.__intfptr_t = int
13
+ rbx.platform.typedef.__intmax_t = long_long
14
+ rbx.platform.typedef.__intptr_t = int
15
+ rbx.platform.typedef.__int_fast8_t = int
16
+ rbx.platform.typedef.__int_fast16_t = int
17
+ rbx.platform.typedef.__int_fast32_t = int
18
+ rbx.platform.typedef.__int_fast64_t = long_long
19
+ rbx.platform.typedef.__int_least8_t = char
20
+ rbx.platform.typedef.__int_least16_t = short
21
+ rbx.platform.typedef.__int_least32_t = int
22
+ rbx.platform.typedef.__int_least64_t = long_long
23
+ rbx.platform.typedef.__ptrdiff_t = int
24
+ rbx.platform.typedef.__register_t = int
25
+ rbx.platform.typedef.__segsz_t = int
26
+ rbx.platform.typedef.__size_t = uint
27
+ rbx.platform.typedef.__ssize_t = int
28
+ rbx.platform.typedef.__time_t = int
29
+ rbx.platform.typedef.__uintfptr_t = uint
30
+ rbx.platform.typedef.__uintmax_t = ulong_long
31
+ rbx.platform.typedef.__uintptr_t = uint
32
+ rbx.platform.typedef.__uint_fast8_t = uint
33
+ rbx.platform.typedef.__uint_fast16_t = uint
34
+ rbx.platform.typedef.__uint_fast32_t = uint
35
+ rbx.platform.typedef.__uint_fast64_t = ulong_long
36
+ rbx.platform.typedef.__uint_least8_t = uchar
37
+ rbx.platform.typedef.__uint_least16_t = ushort
38
+ rbx.platform.typedef.__uint_least32_t = uint
39
+ rbx.platform.typedef.__uint_least64_t = ulong_long
40
+ rbx.platform.typedef.__u_register_t = uint
41
+ rbx.platform.typedef.__vm_offset_t = uint
42
+ rbx.platform.typedef.__vm_ooffset_t = long_long
43
+ rbx.platform.typedef.__vm_paddr_t = uint
44
+ rbx.platform.typedef.__vm_pindex_t = ulong_long
45
+ rbx.platform.typedef.__vm_size_t = uint
46
+ rbx.platform.typedef.__blksize_t = uint
47
+ rbx.platform.typedef.__blkcnt_t = long_long
48
+ rbx.platform.typedef.__clockid_t = int
49
+ rbx.platform.typedef.__fflags_t = uint
50
+ rbx.platform.typedef.__fsblkcnt_t = ulong_long
51
+ rbx.platform.typedef.__fsfilcnt_t = ulong_long
52
+ rbx.platform.typedef.__gid_t = uint
53
+ rbx.platform.typedef.__id_t = long_long
54
+ rbx.platform.typedef.__ino_t = uint
55
+ rbx.platform.typedef.__key_t = long
56
+ rbx.platform.typedef.__lwpid_t = int
57
+ rbx.platform.typedef.__mode_t = ushort
58
+ rbx.platform.typedef.__accmode_t = int
59
+ rbx.platform.typedef.__nl_item = int
60
+ rbx.platform.typedef.__nlink_t = ushort
61
+ rbx.platform.typedef.__off_t = long_long
62
+ rbx.platform.typedef.__pid_t = int
63
+ rbx.platform.typedef.__rlim_t = long_long
64
+ rbx.platform.typedef.__sa_family_t = uchar
65
+ rbx.platform.typedef.__socklen_t = uint
66
+ rbx.platform.typedef.__suseconds_t = long
67
+ rbx.platform.typedef.__uid_t = uint
68
+ rbx.platform.typedef.__useconds_t = uint
69
+ rbx.platform.typedef.__cpuwhich_t = int
70
+ rbx.platform.typedef.__cpulevel_t = int
71
+ rbx.platform.typedef.__cpusetid_t = int
72
+ rbx.platform.typedef.__ct_rune_t = int
73
+ rbx.platform.typedef.__rune_t = int
74
+ rbx.platform.typedef.__wchar_t = int
75
+ rbx.platform.typedef.__wint_t = int
76
+ rbx.platform.typedef.__wint_t = int
77
+ rbx.platform.typedef.__dev_t = uint
78
+ rbx.platform.typedef.__fixpt_t = uint
79
+ rbx.platform.typedef.pthread_key_t = int
80
+ rbx.platform.typedef.*) = pointer
81
+ rbx.platform.typedef.u_char = uchar
82
+ rbx.platform.typedef.u_short = ushort
83
+ rbx.platform.typedef.u_int = uint
84
+ rbx.platform.typedef.u_long = ulong
85
+ rbx.platform.typedef.ushort = ushort
86
+ rbx.platform.typedef.uint = uint
87
+ rbx.platform.typedef.int8_t = char
88
+ rbx.platform.typedef.int16_t = short
89
+ rbx.platform.typedef.int32_t = int
90
+ rbx.platform.typedef.int64_t = long_long
91
+ rbx.platform.typedef.uint8_t = uchar
92
+ rbx.platform.typedef.uint16_t = ushort
93
+ rbx.platform.typedef.uint32_t = uint
94
+ rbx.platform.typedef.uint64_t = ulong_long
95
+ rbx.platform.typedef.intptr_t = int
96
+ rbx.platform.typedef.uintptr_t = uint
97
+ rbx.platform.typedef.u_int8_t = uchar
98
+ rbx.platform.typedef.u_int16_t = ushort
99
+ rbx.platform.typedef.u_int32_t = uint
100
+ rbx.platform.typedef.u_int64_t = ulong_long
101
+ rbx.platform.typedef.u_quad_t = ulong_long
102
+ rbx.platform.typedef.quad_t = long_long
103
+ rbx.platform.typedef.qaddr_t = pointer
104
+ rbx.platform.typedef.caddr_t = string
105
+ rbx.platform.typedef.c_caddr_t = pointer
106
+ rbx.platform.typedef.blksize_t = uint
107
+ rbx.platform.typedef.cpuwhich_t = int
108
+ rbx.platform.typedef.cpulevel_t = int
109
+ rbx.platform.typedef.cpusetid_t = int
110
+ rbx.platform.typedef.blkcnt_t = long_long
111
+ rbx.platform.typedef.clock_t = ulong
112
+ rbx.platform.typedef.clockid_t = int
113
+ rbx.platform.typedef.cpumask_t = uint
114
+ rbx.platform.typedef.critical_t = int
115
+ rbx.platform.typedef.daddr_t = long_long
116
+ rbx.platform.typedef.dev_t = uint
117
+ rbx.platform.typedef.fflags_t = uint
118
+ rbx.platform.typedef.fixpt_t = uint
119
+ rbx.platform.typedef.fsblkcnt_t = ulong_long
120
+ rbx.platform.typedef.fsfilcnt_t = ulong_long
121
+ rbx.platform.typedef.gid_t = uint
122
+ rbx.platform.typedef.in_addr_t = uint
123
+ rbx.platform.typedef.in_port_t = ushort
124
+ rbx.platform.typedef.id_t = long_long
125
+ rbx.platform.typedef.ino_t = uint
126
+ rbx.platform.typedef.key_t = long
127
+ rbx.platform.typedef.lwpid_t = int
128
+ rbx.platform.typedef.mode_t = ushort
129
+ rbx.platform.typedef.accmode_t = int
130
+ rbx.platform.typedef.nlink_t = ushort
131
+ rbx.platform.typedef.off_t = long_long
132
+ rbx.platform.typedef.pid_t = int
133
+ rbx.platform.typedef.register_t = int
134
+ rbx.platform.typedef.rlim_t = long_long
135
+ rbx.platform.typedef.segsz_t = int
136
+ rbx.platform.typedef.size_t = uint
137
+ rbx.platform.typedef.ssize_t = int
138
+ rbx.platform.typedef.suseconds_t = long
139
+ rbx.platform.typedef.time_t = int
140
+ rbx.platform.typedef.u_register_t = uint
141
+ rbx.platform.typedef.uid_t = uint
142
+ rbx.platform.typedef.useconds_t = uint
143
+ rbx.platform.typedef.vm_offset_t = uint
144
+ rbx.platform.typedef.vm_ooffset_t = long_long
145
+ rbx.platform.typedef.vm_paddr_t = uint
146
+ rbx.platform.typedef.vm_pindex_t = ulong_long
147
+ rbx.platform.typedef.vm_size_t = uint
148
+ rbx.platform.typedef.__fd_mask = ulong
149
+ rbx.platform.typedef.fd_mask = ulong
150
+ rbx.platform.typedef.sa_family_t = uchar
151
+ rbx.platform.typedef.socklen_t = uint
152
+
@@ -0,0 +1,126 @@
1
+ rbx.platform.typedef.__int8_t = char
2
+ rbx.platform.typedef.__uint8_t = uchar
3
+ rbx.platform.typedef.__int16_t = short
4
+ rbx.platform.typedef.__uint16_t = ushort
5
+ rbx.platform.typedef.__int32_t = int
6
+ rbx.platform.typedef.__uint32_t = uint
7
+ rbx.platform.typedef.__int64_t = long_long
8
+ rbx.platform.typedef.__uint64_t = ulong_long
9
+ rbx.platform.typedef.__int_least8_t = char
10
+ rbx.platform.typedef.__uint_least8_t = uchar
11
+ rbx.platform.typedef.__int_least16_t = short
12
+ rbx.platform.typedef.__uint_least16_t = ushort
13
+ rbx.platform.typedef.__int_least32_t = int
14
+ rbx.platform.typedef.__uint_least32_t = uint
15
+ rbx.platform.typedef.__int_least64_t = long_long
16
+ rbx.platform.typedef.__uint_least64_t = ulong_long
17
+ rbx.platform.typedef.__int_fast8_t = int
18
+ rbx.platform.typedef.__uint_fast8_t = uint
19
+ rbx.platform.typedef.__int_fast16_t = int
20
+ rbx.platform.typedef.__uint_fast16_t = uint
21
+ rbx.platform.typedef.__int_fast32_t = int
22
+ rbx.platform.typedef.__uint_fast32_t = uint
23
+ rbx.platform.typedef.__int_fast64_t = long_long
24
+ rbx.platform.typedef.__uint_fast64_t = ulong_long
25
+ rbx.platform.typedef.__intptr_t = long
26
+ rbx.platform.typedef.__uintptr_t = ulong
27
+ rbx.platform.typedef.__intmax_t = long_long
28
+ rbx.platform.typedef.__uintmax_t = ulong_long
29
+ rbx.platform.typedef.__register_t = int
30
+ rbx.platform.typedef.__vaddr_t = ulong
31
+ rbx.platform.typedef.__paddr_t = ulong
32
+ rbx.platform.typedef.__vsize_t = ulong
33
+ rbx.platform.typedef.__psize_t = ulong
34
+ rbx.platform.typedef.__clock_t = int
35
+ rbx.platform.typedef.__clockid_t = int
36
+ rbx.platform.typedef.__off_t = long_long
37
+ rbx.platform.typedef.__ptrdiff_t = long
38
+ rbx.platform.typedef.__size_t = ulong
39
+ rbx.platform.typedef.__ssize_t = long
40
+ rbx.platform.typedef.__time_t = int
41
+ rbx.platform.typedef.__timer_t = int
42
+ rbx.platform.typedef.__wchar_t = int
43
+ rbx.platform.typedef.__wint_t = int
44
+ rbx.platform.typedef.__rune_t = int
45
+ rbx.platform.typedef.__wctrans_t = pointer
46
+ rbx.platform.typedef.__wctype_t = pointer
47
+ rbx.platform.typedef.__cpuid_t = ulong
48
+ rbx.platform.typedef.__dev_t = int
49
+ rbx.platform.typedef.__fixpt_t = uint
50
+ rbx.platform.typedef.__gid_t = uint
51
+ rbx.platform.typedef.__id_t = uint
52
+ rbx.platform.typedef.__in_addr_t = uint
53
+ rbx.platform.typedef.__in_port_t = ushort
54
+ rbx.platform.typedef.__ino_t = uint
55
+ rbx.platform.typedef.__key_t = long
56
+ rbx.platform.typedef.__mode_t = uint
57
+ rbx.platform.typedef.__nlink_t = uint
58
+ rbx.platform.typedef.__pid_t = int
59
+ rbx.platform.typedef.__rlim_t = ulong_long
60
+ rbx.platform.typedef.__sa_family_t = uchar
61
+ rbx.platform.typedef.__segsz_t = int
62
+ rbx.platform.typedef.__socklen_t = uint
63
+ rbx.platform.typedef.__swblk_t = int
64
+ rbx.platform.typedef.__uid_t = uint
65
+ rbx.platform.typedef.__useconds_t = uint
66
+ rbx.platform.typedef.__suseconds_t = int
67
+ rbx.platform.typedef.u_char = uchar
68
+ rbx.platform.typedef.u_short = ushort
69
+ rbx.platform.typedef.u_int = uint
70
+ rbx.platform.typedef.u_long = ulong
71
+ rbx.platform.typedef.unchar = uchar
72
+ rbx.platform.typedef.ushort = ushort
73
+ rbx.platform.typedef.uint = uint
74
+ rbx.platform.typedef.ulong = ulong
75
+ rbx.platform.typedef.cpuid_t = ulong
76
+ rbx.platform.typedef.register_t = int
77
+ rbx.platform.typedef.int8_t = char
78
+ rbx.platform.typedef.uint8_t = uchar
79
+ rbx.platform.typedef.int16_t = short
80
+ rbx.platform.typedef.uint16_t = ushort
81
+ rbx.platform.typedef.int32_t = int
82
+ rbx.platform.typedef.uint32_t = uint
83
+ rbx.platform.typedef.int64_t = long_long
84
+ rbx.platform.typedef.uint64_t = ulong_long
85
+ rbx.platform.typedef.u_int8_t = uchar
86
+ rbx.platform.typedef.u_int16_t = ushort
87
+ rbx.platform.typedef.u_int32_t = uint
88
+ rbx.platform.typedef.u_int64_t = ulong_long
89
+ rbx.platform.typedef.quad_t = long_long
90
+ rbx.platform.typedef.u_quad_t = ulong_long
91
+ rbx.platform.typedef.qaddr_t = pointer
92
+ rbx.platform.typedef.vaddr_t = ulong
93
+ rbx.platform.typedef.paddr_t = ulong
94
+ rbx.platform.typedef.vsize_t = ulong
95
+ rbx.platform.typedef.psize_t = ulong
96
+ rbx.platform.typedef.caddr_t = string
97
+ rbx.platform.typedef.daddr_t = int
98
+ rbx.platform.typedef.daddr32_t = int
99
+ rbx.platform.typedef.daddr64_t = long_long
100
+ rbx.platform.typedef.dev_t = int
101
+ rbx.platform.typedef.fixpt_t = uint
102
+ rbx.platform.typedef.gid_t = uint
103
+ rbx.platform.typedef.id_t = uint
104
+ rbx.platform.typedef.ino_t = uint
105
+ rbx.platform.typedef.key_t = long
106
+ rbx.platform.typedef.mode_t = uint
107
+ rbx.platform.typedef.nlink_t = uint
108
+ rbx.platform.typedef.pid_t = int
109
+ rbx.platform.typedef.rlim_t = ulong_long
110
+ rbx.platform.typedef.segsz_t = int
111
+ rbx.platform.typedef.swblk_t = int
112
+ rbx.platform.typedef.uid_t = uint
113
+ rbx.platform.typedef.useconds_t = uint
114
+ rbx.platform.typedef.suseconds_t = int
115
+ rbx.platform.typedef.in_addr_t = uint
116
+ rbx.platform.typedef.in_port_t = ushort
117
+ rbx.platform.typedef.sa_family_t = uchar
118
+ rbx.platform.typedef.socklen_t = uint
119
+ rbx.platform.typedef.clock_t = int
120
+ rbx.platform.typedef.clockid_t = int
121
+ rbx.platform.typedef.size_t = ulong
122
+ rbx.platform.typedef.ssize_t = long
123
+ rbx.platform.typedef.time_t = int
124
+ rbx.platform.typedef.timer_t = int
125
+ rbx.platform.typedef.off_t = long_long
126
+ rbx.platform.typedef.__fd_mask = int