ffi 1.9.25-x86-mingw32 → 1.10.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f748409e2d57bd216ecb102ce767c9f0088c8d3740a7a7ee23d797d7a97fdd7b
4
- data.tar.gz: 0f5a9fa69528800fe2de3e023595ccd98cab5e1a423fdc78181a00c1c1c2cae2
3
+ metadata.gz: 0e1f1fb45ef9efa3793c0654667017d01c6018acdf26443f07b8ef954a49e132
4
+ data.tar.gz: e97090bd115958798a9b950cc0b759c29f6bc2529ea3c985504c3199e103f00c
5
5
  SHA512:
6
- metadata.gz: 23b977b1156fcbf006766db87e0e1f605bad125c2ff094bd0d5ea727fb5008841ecffee5ba0de663b70f8eb96ad2b4a4a5f1d8efa9c589865179895e4ddd1938
7
- data.tar.gz: 1421cf16a2bc29ea42b48199849bdd382f6c1d435889c3ac837849436a887c1d290149dcf9e4b5ca10a5b92e0206702f91ba6a501f763ed08498035583681709
6
+ metadata.gz: 424198c4e22fb3346ed5b3f2cdf46fa882ddf9f7388b0ac887ef6cebcb2cf944ef3e001de7109065990ae0f25acfad6e0d3a414cf3f430c0e9fe5a1ed9b22a99
7
+ data.tar.gz: e6eb3215b74cd4ba830490f8ff9d82f77057ae14a2a35ee49614cd5150b2c62156895fe5fe7e5d14bd6aae0347aa60e90387c14fb1f5b59811fe599b03027d21
@@ -11,15 +11,11 @@ os:
11
11
  - linux
12
12
  - osx
13
13
  rvm:
14
- - 1.9.3
15
- - 2.0.0
16
- - 2.1
17
- - 2.2.8
18
- - 2.3.5
19
- - 2.4.3
20
- - 2.5.0
14
+ - 2.3.8
15
+ - 2.4.5
16
+ - 2.5.3
17
+ - 2.6.0
21
18
  - ruby-head
22
- - rbx
23
19
  - system
24
20
  env:
25
21
  - CC=gcc
@@ -27,13 +23,8 @@ env:
27
23
  matrix:
28
24
  allow_failures:
29
25
  - rvm: system
30
- - os: osx
31
- rvm: 2.0.0
32
26
  - os: osx
33
27
  rvm: ruby-head
34
- - rvm: rbx
35
- - rvm: rbx-head
36
- - rvm: 1.9.3
37
28
  exclude: # ruby 2.4.2 needs build with xcode9 or later on osx
38
29
  - os: osx
39
30
  rvm: 2.4.2
@@ -1,3 +1,23 @@
1
+ 1.10.0 / 2019-01-06
2
+ -------------------
3
+
4
+ Added:
5
+ * Add /opt/local/lib/ to ffi's fallback library search path. #638
6
+ * Add binary gem support for ruby-2.6 on Windows
7
+ * Add FreeBSD on AArch64 and ARM support. #644
8
+ * Add FFI::LastError.winapi_error on Windows native or Cygwin. #633
9
+
10
+ Changed:
11
+ * Update to rake-compiler-dock-0.7.0
12
+ * Use 64-bit inodes on FreeBSD >= 12. #644
13
+ * Switch time_t and suseconds_t types to long on FreeBSD. #627
14
+ * Make register_t long_long on 64-bit FreeBSD. #644
15
+ * Fix Pointer#write_array_of_type #637
16
+
17
+ Removed:
18
+ * Drop binary gem support for ruby-2.0 and 2.1 on Windows
19
+
20
+
1
21
  1.9.25 / 2018-06-03
2
22
  -------------------
3
23
 
@@ -9,6 +29,10 @@ Changed:
9
29
  1.9.24 / 2018-06-02
10
30
  -------------------
11
31
 
32
+ Security Note:
33
+
34
+ This update addresses vulnerability CVE-2018-1000201: DLL loading issue which can be hijacked on Windows OS, when a Symbol is used as DLL name instead of a String. Found by Matthew Bush.
35
+
12
36
  Added:
13
37
  * Added a CHANGELOG file
14
38
  * Add mips64(eb) support, and mips r6 support. (#601)
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
3
3
  group :development do
4
4
  gem 'rake', '~> 10.1'
5
5
  gem 'rake-compiler', '~> 1.0.3'
6
- gem 'rake-compiler-dock', '~> 0.6.2'
6
+ gem 'rake-compiler-dock', '~> 0.7.0'
7
7
  gem 'rspec', '~> 3.0'
8
8
  gem 'rubygems-tasks', '~> 0.2.4', :require => 'rubygems/tasks'
9
9
  gem "rubysl", "~> 2.0", :platforms => 'rbx'
data/Rakefile CHANGED
@@ -162,7 +162,6 @@ namespace 'java' do
162
162
  s.summary = gem_spec.summary
163
163
  s.description = gem_spec.description
164
164
  s.files = %w(LICENSE COPYING README.md CHANGELOG.md Rakefile)
165
- s.has_rdoc = false
166
165
  s.license = gem_spec.license
167
166
  s.platform = 'java'
168
167
  end
@@ -199,12 +198,13 @@ if USE_RAKE_COMPILER
199
198
  sh "x86_64-w64-mingw32-strip -S build/x64-mingw32/stage/lib/#{ruby_version[/^\d+\.\d+/]}/ffi_c.so"
200
199
  end
201
200
  end
201
+ end
202
202
 
203
- desc "build a windows gem without all the ceremony."
204
- task "gem:windows" do
205
- require "rake_compiler_dock"
206
- RakeCompilerDock.sh "sudo apt-get update && sudo apt-get install -y libltdl-dev && bundle && rake cross native gem MAKE='nice make -j`nproc`'"
207
- end
203
+ desc "build a windows gem without all the ceremony"
204
+ task "gem:windows" do
205
+ require "rake_compiler_dock"
206
+ sh "bundle package"
207
+ RakeCompilerDock.sh "sudo apt-get update && sudo apt-get install -y libltdl-dev && bundle --local && rake cross native gem MAKE='nice make -j`nproc`'"
208
208
  end
209
209
 
210
210
  directory "ext/ffi_c/libffi"
@@ -8,7 +8,7 @@ install:
8
8
  }
9
9
  - ridk version
10
10
  - gem --version
11
- - gem install bundler --quiet --no-ri --no-rdoc
11
+ - gem install bundler --quiet --no-document
12
12
  - bundle install
13
13
  build: off
14
14
  build_script:
@@ -126,7 +126,7 @@ module FFI
126
126
  else
127
127
  # TODO better library lookup logic
128
128
  unless libname.start_with?("/") || FFI::Platform.windows?
129
- path = ['/usr/lib/','/usr/local/lib/'].find do |pth|
129
+ path = ['/usr/lib/','/usr/local/lib/','/opt/local/lib/'].find do |pth|
130
130
  File.exist?(pth + libname)
131
131
  end
132
132
  if path
@@ -54,6 +54,8 @@ module FFI
54
54
  RbConfig::CONFIG['host_os'].downcase
55
55
  end
56
56
 
57
+ OSVERSION = RbConfig::CONFIG['host_os'].gsub(/[^\d]/, '').to_i
58
+
57
59
  ARCH = case CPU.downcase
58
60
  when /amd64|x86_64/
59
61
  "x86_64"
@@ -82,7 +84,6 @@ module FFI
82
84
  OS == os
83
85
  end
84
86
 
85
- NAME = "#{ARCH}-#{OS}"
86
87
  IS_GNU = defined?(GNU_LIBC)
87
88
  IS_LINUX = is_os("linux")
88
89
  IS_MAC = is_os("darwin")
@@ -92,6 +93,11 @@ module FFI
92
93
  IS_SOLARIS = is_os("solaris")
93
94
  IS_WINDOWS = is_os("windows")
94
95
  IS_BSD = IS_MAC || IS_FREEBSD || IS_NETBSD || IS_OPENBSD
96
+
97
+ # Add the version for known ABI breaks
98
+ name_version = "12" if IS_FREEBSD && OSVERSION >= 12 # 64-bit inodes
99
+
100
+ NAME = "#{ARCH}-#{OS}#{name_version}"
95
101
  CONF_DIR = File.join(File.dirname(__FILE__), 'platform', NAME)
96
102
 
97
103
  public
@@ -0,0 +1,128 @@
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 = long_long
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 = long_long
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.intptr_t = long
86
+ rbx.platform.typedef.uintptr_t = ulong
87
+ rbx.platform.typedef.u_int8_t = uchar
88
+ rbx.platform.typedef.u_int16_t = ushort
89
+ rbx.platform.typedef.u_int32_t = uint
90
+ rbx.platform.typedef.u_int64_t = ulong_long
91
+ rbx.platform.typedef.quad_t = long_long
92
+ rbx.platform.typedef.u_quad_t = ulong_long
93
+ rbx.platform.typedef.qaddr_t = pointer
94
+ rbx.platform.typedef.vaddr_t = ulong
95
+ rbx.platform.typedef.paddr_t = ulong
96
+ rbx.platform.typedef.vsize_t = ulong
97
+ rbx.platform.typedef.psize_t = ulong
98
+ rbx.platform.typedef.caddr_t = string
99
+ rbx.platform.typedef.daddr_t = int
100
+ rbx.platform.typedef.daddr32_t = int
101
+ rbx.platform.typedef.daddr64_t = long_long
102
+ rbx.platform.typedef.dev_t = int
103
+ rbx.platform.typedef.fixpt_t = uint
104
+ rbx.platform.typedef.gid_t = uint
105
+ rbx.platform.typedef.id_t = uint
106
+ rbx.platform.typedef.ino_t = uint
107
+ rbx.platform.typedef.key_t = long
108
+ rbx.platform.typedef.mode_t = uint
109
+ rbx.platform.typedef.nlink_t = uint
110
+ rbx.platform.typedef.pid_t = int
111
+ rbx.platform.typedef.rlim_t = ulong_long
112
+ rbx.platform.typedef.segsz_t = int
113
+ rbx.platform.typedef.swblk_t = int
114
+ rbx.platform.typedef.uid_t = uint
115
+ rbx.platform.typedef.useconds_t = uint
116
+ rbx.platform.typedef.suseconds_t = int
117
+ rbx.platform.typedef.in_addr_t = uint
118
+ rbx.platform.typedef.in_port_t = ushort
119
+ rbx.platform.typedef.sa_family_t = uchar
120
+ rbx.platform.typedef.socklen_t = uint
121
+ rbx.platform.typedef.clock_t = int
122
+ rbx.platform.typedef.clockid_t = int
123
+ rbx.platform.typedef.size_t = ulong
124
+ rbx.platform.typedef.ssize_t = long
125
+ rbx.platform.typedef.time_t = int
126
+ rbx.platform.typedef.timer_t = int
127
+ rbx.platform.typedef.off_t = long_long
128
+ rbx.platform.typedef.__fd_mask = int
@@ -0,0 +1,128 @@
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 = long_long
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 = ulong_long
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 = ulong_long
55
+ rbx.platform.typedef.__key_t = long
56
+ rbx.platform.typedef.__mode_t = uint
57
+ rbx.platform.typedef.__nlink_t = ulong_long
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 = long_long
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.intptr_t = long
86
+ rbx.platform.typedef.uintptr_t = ulong
87
+ rbx.platform.typedef.u_int8_t = uchar
88
+ rbx.platform.typedef.u_int16_t = ushort
89
+ rbx.platform.typedef.u_int32_t = uint
90
+ rbx.platform.typedef.u_int64_t = ulong_long
91
+ rbx.platform.typedef.quad_t = long_long
92
+ rbx.platform.typedef.u_quad_t = ulong_long
93
+ rbx.platform.typedef.qaddr_t = pointer
94
+ rbx.platform.typedef.vaddr_t = ulong
95
+ rbx.platform.typedef.paddr_t = ulong
96
+ rbx.platform.typedef.vsize_t = ulong
97
+ rbx.platform.typedef.psize_t = ulong
98
+ rbx.platform.typedef.caddr_t = string
99
+ rbx.platform.typedef.daddr_t = int
100
+ rbx.platform.typedef.daddr32_t = int
101
+ rbx.platform.typedef.daddr64_t = long_long
102
+ rbx.platform.typedef.dev_t = ulong_long
103
+ rbx.platform.typedef.fixpt_t = uint
104
+ rbx.platform.typedef.gid_t = uint
105
+ rbx.platform.typedef.id_t = uint
106
+ rbx.platform.typedef.ino_t = ulong_long
107
+ rbx.platform.typedef.key_t = long
108
+ rbx.platform.typedef.mode_t = uint
109
+ rbx.platform.typedef.nlink_t = ulong_long
110
+ rbx.platform.typedef.pid_t = int
111
+ rbx.platform.typedef.rlim_t = ulong_long
112
+ rbx.platform.typedef.segsz_t = int
113
+ rbx.platform.typedef.swblk_t = int
114
+ rbx.platform.typedef.uid_t = uint
115
+ rbx.platform.typedef.useconds_t = uint
116
+ rbx.platform.typedef.suseconds_t = int
117
+ rbx.platform.typedef.in_addr_t = uint
118
+ rbx.platform.typedef.in_port_t = ushort
119
+ rbx.platform.typedef.sa_family_t = uchar
120
+ rbx.platform.typedef.socklen_t = uint
121
+ rbx.platform.typedef.clock_t = int
122
+ rbx.platform.typedef.clockid_t = int
123
+ rbx.platform.typedef.size_t = ulong
124
+ rbx.platform.typedef.ssize_t = long
125
+ rbx.platform.typedef.time_t = int
126
+ rbx.platform.typedef.timer_t = int
127
+ rbx.platform.typedef.off_t = long_long
128
+ rbx.platform.typedef.__fd_mask = 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,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 = ulong_long
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 = ulong_long
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 = ulong_long
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 = ulong_long
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 = ulong_long
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 = ulong_long
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
+
@@ -25,7 +25,7 @@ rbx.platform.typedef.__register_t = int
25
25
  rbx.platform.typedef.__segsz_t = int
26
26
  rbx.platform.typedef.__size_t = uint
27
27
  rbx.platform.typedef.__ssize_t = int
28
- rbx.platform.typedef.__time_t = int
28
+ rbx.platform.typedef.__time_t = long
29
29
  rbx.platform.typedef.__uintfptr_t = uint
30
30
  rbx.platform.typedef.__uintmax_t = ulong_long
31
31
  rbx.platform.typedef.__uintptr_t = uint
@@ -136,7 +136,7 @@ rbx.platform.typedef.segsz_t = int
136
136
  rbx.platform.typedef.size_t = uint
137
137
  rbx.platform.typedef.ssize_t = int
138
138
  rbx.platform.typedef.suseconds_t = long
139
- rbx.platform.typedef.time_t = int
139
+ rbx.platform.typedef.time_t = long
140
140
  rbx.platform.typedef.u_register_t = uint
141
141
  rbx.platform.typedef.uid_t = uint
142
142
  rbx.platform.typedef.useconds_t = uint
@@ -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 = ulong_long
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 = ulong_long
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 = ulong_long
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 = ulong_long
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 = ulong_long
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 = ulong_long
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
+
@@ -26,7 +26,7 @@ rbx.platform.typedef.__intptr_t = long
26
26
  rbx.platform.typedef.__uintptr_t = ulong
27
27
  rbx.platform.typedef.__intmax_t = long_long
28
28
  rbx.platform.typedef.__uintmax_t = ulong_long
29
- rbx.platform.typedef.__register_t = int
29
+ rbx.platform.typedef.__register_t = long_long
30
30
  rbx.platform.typedef.__vaddr_t = ulong
31
31
  rbx.platform.typedef.__paddr_t = ulong
32
32
  rbx.platform.typedef.__vsize_t = ulong
@@ -37,7 +37,7 @@ rbx.platform.typedef.__off_t = long_long
37
37
  rbx.platform.typedef.__ptrdiff_t = long
38
38
  rbx.platform.typedef.__size_t = ulong
39
39
  rbx.platform.typedef.__ssize_t = long
40
- rbx.platform.typedef.__time_t = int
40
+ rbx.platform.typedef.__time_t = long
41
41
  rbx.platform.typedef.__timer_t = int
42
42
  rbx.platform.typedef.__wchar_t = int
43
43
  rbx.platform.typedef.__wint_t = int
@@ -63,7 +63,7 @@ rbx.platform.typedef.__socklen_t = uint
63
63
  rbx.platform.typedef.__swblk_t = int
64
64
  rbx.platform.typedef.__uid_t = uint
65
65
  rbx.platform.typedef.__useconds_t = uint
66
- rbx.platform.typedef.__suseconds_t = int
66
+ rbx.platform.typedef.__suseconds_t = long
67
67
  rbx.platform.typedef.u_char = uchar
68
68
  rbx.platform.typedef.u_short = ushort
69
69
  rbx.platform.typedef.u_int = uint
@@ -73,7 +73,7 @@ rbx.platform.typedef.ushort = ushort
73
73
  rbx.platform.typedef.uint = uint
74
74
  rbx.platform.typedef.ulong = ulong
75
75
  rbx.platform.typedef.cpuid_t = ulong
76
- rbx.platform.typedef.register_t = int
76
+ rbx.platform.typedef.register_t = long_long
77
77
  rbx.platform.typedef.int8_t = char
78
78
  rbx.platform.typedef.uint8_t = uchar
79
79
  rbx.platform.typedef.int16_t = short
@@ -113,7 +113,7 @@ rbx.platform.typedef.segsz_t = int
113
113
  rbx.platform.typedef.swblk_t = int
114
114
  rbx.platform.typedef.uid_t = uint
115
115
  rbx.platform.typedef.useconds_t = uint
116
- rbx.platform.typedef.suseconds_t = int
116
+ rbx.platform.typedef.suseconds_t = long
117
117
  rbx.platform.typedef.in_addr_t = uint
118
118
  rbx.platform.typedef.in_port_t = ushort
119
119
  rbx.platform.typedef.sa_family_t = uchar
@@ -122,7 +122,7 @@ rbx.platform.typedef.clock_t = int
122
122
  rbx.platform.typedef.clockid_t = int
123
123
  rbx.platform.typedef.size_t = ulong
124
124
  rbx.platform.typedef.ssize_t = long
125
- rbx.platform.typedef.time_t = int
125
+ rbx.platform.typedef.time_t = long
126
126
  rbx.platform.typedef.timer_t = int
127
127
  rbx.platform.typedef.off_t = long_long
128
128
  rbx.platform.typedef.__fd_mask = int
@@ -0,0 +1,128 @@
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 = long_long
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 = ulong_long
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 = ulong_long
55
+ rbx.platform.typedef.__key_t = long
56
+ rbx.platform.typedef.__mode_t = uint
57
+ rbx.platform.typedef.__nlink_t = ulong_long
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 = long_long
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.intptr_t = long
86
+ rbx.platform.typedef.uintptr_t = ulong
87
+ rbx.platform.typedef.u_int8_t = uchar
88
+ rbx.platform.typedef.u_int16_t = ushort
89
+ rbx.platform.typedef.u_int32_t = uint
90
+ rbx.platform.typedef.u_int64_t = ulong_long
91
+ rbx.platform.typedef.quad_t = long_long
92
+ rbx.platform.typedef.u_quad_t = ulong_long
93
+ rbx.platform.typedef.qaddr_t = pointer
94
+ rbx.platform.typedef.vaddr_t = ulong
95
+ rbx.platform.typedef.paddr_t = ulong
96
+ rbx.platform.typedef.vsize_t = ulong
97
+ rbx.platform.typedef.psize_t = ulong
98
+ rbx.platform.typedef.caddr_t = string
99
+ rbx.platform.typedef.daddr_t = int
100
+ rbx.platform.typedef.daddr32_t = int
101
+ rbx.platform.typedef.daddr64_t = long_long
102
+ rbx.platform.typedef.dev_t = ulong_long
103
+ rbx.platform.typedef.fixpt_t = uint
104
+ rbx.platform.typedef.gid_t = uint
105
+ rbx.platform.typedef.id_t = uint
106
+ rbx.platform.typedef.ino_t = ulong_long
107
+ rbx.platform.typedef.key_t = long
108
+ rbx.platform.typedef.mode_t = uint
109
+ rbx.platform.typedef.nlink_t = ulong_long
110
+ rbx.platform.typedef.pid_t = int
111
+ rbx.platform.typedef.rlim_t = ulong_long
112
+ rbx.platform.typedef.segsz_t = int
113
+ rbx.platform.typedef.swblk_t = int
114
+ rbx.platform.typedef.uid_t = uint
115
+ rbx.platform.typedef.useconds_t = uint
116
+ rbx.platform.typedef.suseconds_t = int
117
+ rbx.platform.typedef.in_addr_t = uint
118
+ rbx.platform.typedef.in_port_t = ushort
119
+ rbx.platform.typedef.sa_family_t = uchar
120
+ rbx.platform.typedef.socklen_t = uint
121
+ rbx.platform.typedef.clock_t = int
122
+ rbx.platform.typedef.clockid_t = int
123
+ rbx.platform.typedef.size_t = ulong
124
+ rbx.platform.typedef.ssize_t = long
125
+ rbx.platform.typedef.time_t = int
126
+ rbx.platform.typedef.timer_t = int
127
+ rbx.platform.typedef.off_t = long_long
128
+ rbx.platform.typedef.__fd_mask = int
@@ -103,7 +103,7 @@ module FFI
103
103
  # @return [Array]
104
104
  # Read an array of +type+ of length +length+.
105
105
  # @example
106
- # ptr.read_array_of_type(TYPE_UINT8, :get_uint8, 4) # -> [1, 2, 3, 4]
106
+ # ptr.read_array_of_type(TYPE_UINT8, :read_uint8, 4) # -> [1, 2, 3, 4]
107
107
  def read_array_of_type(type, reader, length)
108
108
  ary = []
109
109
  size = FFI.type_size(type)
@@ -124,10 +124,9 @@ module FFI
124
124
  # ptr.write_array_of_type(TYPE_UINT8, :put_uint8, [1, 2, 3 ,4])
125
125
  def write_array_of_type(type, writer, ary)
126
126
  size = FFI.type_size(type)
127
- tmp = self
128
- ary.each_with_index {|i, j|
129
- tmp.send(writer, i)
130
- tmp += size unless j == ary.length-1 # avoid OOB
127
+ ary.each_with_index { |val, i|
128
+ break unless i < self.size
129
+ self.send(writer, i * size, val)
131
130
  }
132
131
  self
133
132
  end
@@ -1,3 +1,3 @@
1
1
  module FFI
2
- VERSION = '1.9.25'
2
+ VERSION = '1.10.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.25
4
+ version: 1.10.0
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Wayne Meissner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-03 00:00:00.000000000 Z
11
+ date: 2019-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -99,12 +99,11 @@ files:
99
99
  - Rakefile
100
100
  - appveyor.yml
101
101
  - ffi.gemspec
102
- - lib/2.0/ffi_c.so
103
- - lib/2.1/ffi_c.so
104
102
  - lib/2.2/ffi_c.so
105
103
  - lib/2.3/ffi_c.so
106
104
  - lib/2.4/ffi_c.so
107
105
  - lib/2.5/ffi_c.so
106
+ - lib/2.6/ffi_c.so
108
107
  - lib/ffi.rb
109
108
  - lib/ffi/autopointer.rb
110
109
  - lib/ffi/buffer.rb
@@ -117,11 +116,16 @@ files:
117
116
  - lib/ffi/managedstruct.rb
118
117
  - lib/ffi/memorypointer.rb
119
118
  - lib/ffi/platform.rb
119
+ - lib/ffi/platform/aarch64-freebsd/types.conf
120
+ - lib/ffi/platform/aarch64-freebsd12/types.conf
120
121
  - lib/ffi/platform/aarch64-linux/types.conf
122
+ - lib/ffi/platform/arm-freebsd/types.conf
123
+ - lib/ffi/platform/arm-freebsd12/types.conf
121
124
  - lib/ffi/platform/arm-linux/types.conf
122
125
  - lib/ffi/platform/i386-cygwin/types.conf
123
126
  - lib/ffi/platform/i386-darwin/types.conf
124
127
  - lib/ffi/platform/i386-freebsd/types.conf
128
+ - lib/ffi/platform/i386-freebsd12/types.conf
125
129
  - lib/ffi/platform/i386-gnu/types.conf
126
130
  - lib/ffi/platform/i386-linux/types.conf
127
131
  - lib/ffi/platform/i386-netbsd/types.conf
@@ -150,6 +154,7 @@ files:
150
154
  - lib/ffi/platform/x86_64-cygwin/types.conf
151
155
  - lib/ffi/platform/x86_64-darwin/types.conf
152
156
  - lib/ffi/platform/x86_64-freebsd/types.conf
157
+ - lib/ffi/platform/x86_64-freebsd12/types.conf
153
158
  - lib/ffi/platform/x86_64-linux/types.conf
154
159
  - lib/ffi/platform/x86_64-netbsd/types.conf
155
160
  - lib/ffi/platform/x86_64-openbsd/types.conf
@@ -189,10 +194,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
189
194
  requirements:
190
195
  - - ">="
191
196
  - !ruby/object:Gem::Version
192
- version: '2.0'
197
+ version: '2.2'
193
198
  - - "<"
194
199
  - !ruby/object:Gem::Version
195
- version: '2.6'
200
+ version: 2.7.dev
196
201
  required_rubygems_version: !ruby/object:Gem::Requirement
197
202
  requirements:
198
203
  - - ">="
@@ -200,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
205
  version: '0'
201
206
  requirements: []
202
207
  rubyforge_project:
203
- rubygems_version: 2.7.3
208
+ rubygems_version: 2.7.8
204
209
  signing_key:
205
210
  specification_version: 4
206
211
  summary: Ruby FFI