ffi 1.11.1-x64-mingw32 → 1.11.2-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{appveyor.yml → .appveyor.yml} +1 -1
- data/.gitmodules +2 -2
- data/CHANGELOG.md +16 -0
- data/Rakefile +1 -0
- data/ffi.gemspec +1 -1
- data/lib/ffi/library.rb +5 -5
- data/lib/ffi/platform.rb +4 -1
- data/lib/ffi/platform/aarch64-freebsd/types.conf +89 -89
- data/lib/ffi/platform/aarch64-freebsd12/types.conf +89 -89
- data/lib/ffi/platform/aarch64-linux/types.conf +81 -81
- data/lib/ffi/platform/arm-freebsd/types.conf +87 -87
- data/lib/ffi/platform/arm-freebsd12/types.conf +87 -87
- data/lib/ffi/platform/arm-linux/types.conf +79 -79
- data/lib/ffi/platform/i386-cygwin/types.conf +1 -1
- data/lib/ffi/platform/i386-darwin/types.conf +63 -63
- data/lib/ffi/platform/i386-freebsd/types.conf +87 -87
- data/lib/ffi/platform/i386-freebsd12/types.conf +87 -87
- data/lib/ffi/platform/i386-gnu/types.conf +84 -84
- data/lib/ffi/platform/i386-linux/types.conf +77 -77
- data/lib/ffi/platform/i386-netbsd/types.conf +87 -87
- data/lib/ffi/platform/i386-openbsd/types.conf +89 -89
- data/lib/ffi/platform/i386-solaris/types.conf +96 -96
- data/lib/ffi/platform/i386-windows/types.conf +84 -84
- data/lib/ffi/platform/ia64-linux/types.conf +79 -79
- data/lib/ffi/platform/mips-linux/types.conf +79 -79
- data/lib/ffi/platform/mips64-linux/types.conf +81 -81
- data/lib/ffi/platform/mips64el-linux/types.conf +81 -81
- data/lib/ffi/platform/mipsel-linux/types.conf +79 -79
- data/lib/ffi/platform/mipsisa32r6-linux/types.conf +79 -79
- data/lib/ffi/platform/mipsisa32r6el-linux/types.conf +79 -79
- data/lib/ffi/platform/mipsisa64r6-linux/types.conf +81 -81
- data/lib/ffi/platform/mipsisa64r6el-linux/types.conf +81 -81
- data/lib/ffi/platform/powerpc-aix/types.conf +155 -155
- data/lib/ffi/platform/powerpc-darwin/types.conf +63 -63
- data/lib/ffi/platform/powerpc-linux/types.conf +77 -77
- data/lib/ffi/platform/powerpc64-linux/types.conf +81 -81
- data/lib/ffi/platform/s390-linux/types.conf +79 -79
- data/lib/ffi/platform/s390x-linux/types.conf +79 -79
- data/lib/ffi/platform/sparc-linux/types.conf +79 -79
- data/lib/ffi/platform/sparc-solaris/types.conf +103 -103
- data/lib/ffi/platform/sparc64-linux/types.conf +79 -79
- data/lib/ffi/platform/sparcv9-solaris/types.conf +103 -103
- data/lib/ffi/platform/x86_64-cygwin/types.conf +1 -1
- data/lib/ffi/platform/x86_64-darwin/types.conf +84 -84
- data/lib/ffi/platform/x86_64-dragonflybsd/types.conf +148 -0
- data/lib/ffi/platform/x86_64-freebsd/types.conf +89 -89
- data/lib/ffi/platform/x86_64-freebsd12/types.conf +139 -109
- data/lib/ffi/platform/x86_64-linux/types.conf +86 -77
- data/lib/ffi/platform/x86_64-netbsd/types.conf +89 -89
- data/lib/ffi/platform/x86_64-openbsd/types.conf +86 -86
- data/lib/ffi/platform/x86_64-solaris/types.conf +96 -96
- data/lib/ffi/platform/x86_64-windows/types.conf +99 -99
- data/lib/ffi/tools/types_generator.rb +5 -4
- data/lib/ffi/version.rb +1 -1
- metadata +5 -4
@@ -1,120 +1,120 @@
|
|
1
|
-
rbx.platform.typedef
|
2
|
-
rbx.platform.typedef.
|
1
|
+
rbx.platform.typedef.*addr_t = char
|
2
|
+
rbx.platform.typedef.__ULong = ulong
|
3
|
+
rbx.platform.typedef.__blkcnt32_t = long
|
4
|
+
rbx.platform.typedef.__blkcnt64_t = long_long
|
5
|
+
rbx.platform.typedef.__dev16_t = short
|
6
|
+
rbx.platform.typedef.__dev32_t = ulong
|
7
|
+
rbx.platform.typedef.__dev_t = short
|
8
|
+
rbx.platform.typedef.__gid16_t = ushort
|
9
|
+
rbx.platform.typedef.__gid32_t = ulong
|
10
|
+
rbx.platform.typedef.__gid_t = ushort
|
11
|
+
rbx.platform.typedef.__ino32_t = ulong
|
12
|
+
rbx.platform.typedef.__ino64_t = ulong_long
|
3
13
|
rbx.platform.typedef.__int16_t = short
|
4
|
-
rbx.platform.typedef.__uint16_t = ushort
|
5
|
-
rbx.platform.typedef.__int_least16_t = short
|
6
|
-
rbx.platform.typedef.__uint_least16_t = ushort
|
7
14
|
rbx.platform.typedef.__int32_t = int
|
8
|
-
rbx.platform.typedef.__uint32_t = uint
|
9
|
-
rbx.platform.typedef.__int_least32_t = int
|
10
|
-
rbx.platform.typedef.__uint_least32_t = uint
|
11
15
|
rbx.platform.typedef.__int64_t = long_long
|
12
|
-
rbx.platform.typedef.
|
13
|
-
rbx.platform.typedef.
|
14
|
-
rbx.platform.typedef.
|
16
|
+
rbx.platform.typedef.__int8_t = char
|
17
|
+
rbx.platform.typedef.__int_least16_t = short
|
18
|
+
rbx.platform.typedef.__int_least32_t = int
|
19
|
+
rbx.platform.typedef.__loff_t = long_long
|
20
|
+
rbx.platform.typedef.__off_t = long
|
21
|
+
rbx.platform.typedef.__pid_t = int
|
22
|
+
rbx.platform.typedef.__time32_t = long
|
23
|
+
rbx.platform.typedef.__time64_t = long_long
|
24
|
+
rbx.platform.typedef.__uid16_t = ushort
|
25
|
+
rbx.platform.typedef.__uid32_t = ulong
|
15
26
|
rbx.platform.typedef.__uid_t = ushort
|
16
|
-
rbx.platform.typedef.
|
17
|
-
rbx.platform.typedef.
|
18
|
-
rbx.platform.typedef.
|
19
|
-
rbx.platform.typedef.
|
27
|
+
rbx.platform.typedef.__uint16_t = ushort
|
28
|
+
rbx.platform.typedef.__uint32_t = uint
|
29
|
+
rbx.platform.typedef.__uint64_t = ulong_long
|
30
|
+
rbx.platform.typedef.__uint8_t = uchar
|
31
|
+
rbx.platform.typedef.__uint_least16_t = ushort
|
32
|
+
rbx.platform.typedef.__uint_least32_t = uint
|
33
|
+
rbx.platform.typedef._dev_t = uint
|
20
34
|
rbx.platform.typedef._fpos64_t = long_long
|
35
|
+
rbx.platform.typedef._fpos_t = long_long
|
36
|
+
rbx.platform.typedef._ino_t = ushort
|
37
|
+
rbx.platform.typedef._mode_t = ushort
|
38
|
+
rbx.platform.typedef._off64_t = long_long
|
39
|
+
rbx.platform.typedef._off_t = long
|
40
|
+
rbx.platform.typedef._sigset_t = ulong_long
|
21
41
|
rbx.platform.typedef._ssize_t = long_long
|
22
|
-
rbx.platform.typedef.
|
23
|
-
rbx.platform.typedef.
|
24
|
-
rbx.platform.typedef.
|
25
|
-
rbx.platform.typedef.ptrdiff_t = long_long
|
26
|
-
rbx.platform.typedef.size_t = ulong_long
|
27
|
-
rbx.platform.typedef.__off_t = long
|
28
|
-
rbx.platform.typedef.__pid_t = int
|
29
|
-
rbx.platform.typedef.__loff_t = long_long
|
30
|
-
rbx.platform.typedef.u_char = uchar
|
31
|
-
rbx.platform.typedef.u_short = ushort
|
32
|
-
rbx.platform.typedef.u_int = uint
|
33
|
-
rbx.platform.typedef.u_long = ulong
|
34
|
-
rbx.platform.typedef.ushort = ushort
|
35
|
-
rbx.platform.typedef.uint = uint
|
36
|
-
rbx.platform.typedef.ulong = ulong
|
42
|
+
rbx.platform.typedef.blkcnt_t = long_long
|
43
|
+
rbx.platform.typedef.blksize_t = long
|
44
|
+
rbx.platform.typedef.caddr_t = string
|
37
45
|
rbx.platform.typedef.clock_t = ulong
|
38
|
-
rbx.platform.typedef.
|
46
|
+
rbx.platform.typedef.clockid_t = ulong
|
39
47
|
rbx.platform.typedef.daddr_t = long
|
40
|
-
rbx.platform.typedef.
|
41
|
-
rbx.platform.typedef.
|
42
|
-
rbx.platform.typedef.ssize_t = int
|
43
|
-
rbx.platform.typedef.nlink_t = ushort
|
48
|
+
rbx.platform.typedef.dev_t = uint
|
49
|
+
rbx.platform.typedef.errno_t = int
|
44
50
|
rbx.platform.typedef.fd_mask = long
|
45
|
-
rbx.platform.typedef.
|
46
|
-
rbx.platform.typedef.
|
47
|
-
rbx.platform.typedef.
|
48
|
-
rbx.platform.typedef.
|
49
|
-
rbx.platform.typedef.
|
51
|
+
rbx.platform.typedef.fpos_t = long_long
|
52
|
+
rbx.platform.typedef.fsblkcnt_t = ulong
|
53
|
+
rbx.platform.typedef.fsfilcnt_t = ulong
|
54
|
+
rbx.platform.typedef.gid_t = ulong
|
55
|
+
rbx.platform.typedef.id_t = ulong
|
56
|
+
rbx.platform.typedef.ino_t = ushort
|
50
57
|
rbx.platform.typedef.int16_t = short
|
51
58
|
rbx.platform.typedef.int32_t = int
|
52
59
|
rbx.platform.typedef.int64_t = long_long
|
53
|
-
rbx.platform.typedef.
|
54
|
-
rbx.platform.typedef.uint16_t = ushort
|
55
|
-
rbx.platform.typedef.uint32_t = uint
|
56
|
-
rbx.platform.typedef.uint64_t = ulong_long
|
57
|
-
rbx.platform.typedef.int_least8_t = char
|
58
|
-
rbx.platform.typedef.int_least16_t = short
|
59
|
-
rbx.platform.typedef.int_least32_t = int
|
60
|
-
rbx.platform.typedef.int_least64_t = long_long
|
61
|
-
rbx.platform.typedef.uint_least8_t = uchar
|
62
|
-
rbx.platform.typedef.uint_least16_t = ushort
|
63
|
-
rbx.platform.typedef.uint_least32_t = uint
|
64
|
-
rbx.platform.typedef.uint_least64_t = ulong_long
|
65
|
-
rbx.platform.typedef.int_fast8_t = char
|
60
|
+
rbx.platform.typedef.int8_t = char
|
66
61
|
rbx.platform.typedef.int_fast16_t = int
|
67
62
|
rbx.platform.typedef.int_fast32_t = int
|
68
63
|
rbx.platform.typedef.int_fast64_t = long_long
|
69
|
-
rbx.platform.typedef.
|
64
|
+
rbx.platform.typedef.int_fast8_t = char
|
65
|
+
rbx.platform.typedef.int_least16_t = short
|
66
|
+
rbx.platform.typedef.int_least32_t = int
|
67
|
+
rbx.platform.typedef.int_least64_t = long_long
|
68
|
+
rbx.platform.typedef.int_least8_t = char
|
69
|
+
rbx.platform.typedef.intmax_t = long_long
|
70
|
+
rbx.platform.typedef.intptr_t = long_long
|
71
|
+
rbx.platform.typedef.key_t = long_long
|
72
|
+
rbx.platform.typedef.loff_t = long_long
|
73
|
+
rbx.platform.typedef.mode_t = ushort
|
74
|
+
rbx.platform.typedef.nlink_t = ushort
|
75
|
+
rbx.platform.typedef.off_t = long_long
|
76
|
+
rbx.platform.typedef.pid_t = int
|
77
|
+
rbx.platform.typedef.ptrdiff_t = long_long
|
78
|
+
rbx.platform.typedef.register_t = int
|
79
|
+
rbx.platform.typedef.rlim_t = ulong
|
80
|
+
rbx.platform.typedef.sa_family_t = ushort
|
81
|
+
rbx.platform.typedef.sig_atomic_t = int
|
82
|
+
rbx.platform.typedef.sigset_t = ulong
|
83
|
+
rbx.platform.typedef.size_t = ulong_long
|
84
|
+
rbx.platform.typedef.socklen_t = int
|
85
|
+
rbx.platform.typedef.ssize_t = int
|
86
|
+
rbx.platform.typedef.suseconds_t = long
|
87
|
+
rbx.platform.typedef.time_t = long_long
|
88
|
+
rbx.platform.typedef.timer_t = ulong
|
89
|
+
rbx.platform.typedef.u_char = uchar
|
90
|
+
rbx.platform.typedef.u_int = uint
|
91
|
+
rbx.platform.typedef.u_int16_t = ushort
|
92
|
+
rbx.platform.typedef.u_int32_t = uint
|
93
|
+
rbx.platform.typedef.u_int64_t = ulong_long
|
94
|
+
rbx.platform.typedef.u_int8_t = uchar
|
95
|
+
rbx.platform.typedef.u_long = ulong
|
96
|
+
rbx.platform.typedef.u_short = ushort
|
97
|
+
rbx.platform.typedef.uid_t = ulong
|
98
|
+
rbx.platform.typedef.uint = uint
|
99
|
+
rbx.platform.typedef.uint16_t = ushort
|
100
|
+
rbx.platform.typedef.uint32_t = uint
|
101
|
+
rbx.platform.typedef.uint64_t = ulong_long
|
102
|
+
rbx.platform.typedef.uint8_t = uchar
|
70
103
|
rbx.platform.typedef.uint_fast16_t = uint
|
71
104
|
rbx.platform.typedef.uint_fast32_t = uint
|
72
105
|
rbx.platform.typedef.uint_fast64_t = ulong_long
|
73
|
-
rbx.platform.typedef.
|
74
|
-
rbx.platform.typedef.
|
75
|
-
rbx.platform.typedef.
|
106
|
+
rbx.platform.typedef.uint_fast8_t = uchar
|
107
|
+
rbx.platform.typedef.uint_least16_t = ushort
|
108
|
+
rbx.platform.typedef.uint_least32_t = uint
|
109
|
+
rbx.platform.typedef.uint_least64_t = ulong_long
|
110
|
+
rbx.platform.typedef.uint_least8_t = uchar
|
76
111
|
rbx.platform.typedef.uintmax_t = ulong_long
|
77
|
-
rbx.platform.typedef.
|
78
|
-
rbx.platform.typedef.
|
79
|
-
rbx.platform.typedef.
|
80
|
-
rbx.platform.typedef.
|
81
|
-
rbx.platform.typedef._dev_t = uint
|
82
|
-
rbx.platform.typedef.dev_t = uint
|
83
|
-
rbx.platform.typedef.blksize_t = long
|
84
|
-
rbx.platform.typedef.__blkcnt32_t = long
|
85
|
-
rbx.platform.typedef.__blkcnt64_t = long_long
|
86
|
-
rbx.platform.typedef.blkcnt_t = long_long
|
87
|
-
rbx.platform.typedef.fsblkcnt_t = ulong
|
88
|
-
rbx.platform.typedef.fsfilcnt_t = ulong
|
89
|
-
rbx.platform.typedef.__uid16_t = ushort
|
90
|
-
rbx.platform.typedef.__uid32_t = ulong
|
91
|
-
rbx.platform.typedef.uid_t = ulong
|
92
|
-
rbx.platform.typedef.__gid16_t = ushort
|
93
|
-
rbx.platform.typedef.__gid32_t = ulong
|
94
|
-
rbx.platform.typedef.gid_t = ulong
|
95
|
-
rbx.platform.typedef.__ino32_t = ulong
|
96
|
-
rbx.platform.typedef.__ino64_t = ulong_long
|
97
|
-
rbx.platform.typedef.ino_t = ushort
|
98
|
-
rbx.platform.typedef._ino_t = ushort
|
99
|
-
rbx.platform.typedef.id_t = ulong
|
100
|
-
rbx.platform.typedef.key_t = long_long
|
112
|
+
rbx.platform.typedef.uintptr_t = ulong_long
|
113
|
+
rbx.platform.typedef.ulong = ulong
|
114
|
+
rbx.platform.typedef.useconds_t = ulong
|
115
|
+
rbx.platform.typedef.ushort = ushort
|
101
116
|
rbx.platform.typedef.vm_offset_t = ulong
|
102
117
|
rbx.platform.typedef.vm_size_t = ulong
|
103
|
-
rbx.platform.typedef.
|
104
|
-
rbx.platform.typedef.
|
105
|
-
rbx.platform.typedef.
|
106
|
-
rbx.platform.typedef.u_int64_t = ulong_long
|
107
|
-
rbx.platform.typedef.register_t = int
|
108
|
-
rbx.platform.typedef.*addr_t = char
|
109
|
-
rbx.platform.typedef.socklen_t = int
|
110
|
-
rbx.platform.typedef.sa_family_t = ushort
|
111
|
-
rbx.platform.typedef.__ULong = ulong
|
112
|
-
rbx.platform.typedef.sigset_t = ulong
|
113
|
-
rbx.platform.typedef.sig_atomic_t = int
|
114
|
-
rbx.platform.typedef.rlim_t = ulong
|
115
|
-
rbx.platform.typedef._sigset_t = ulong_long
|
116
|
-
rbx.platform.typedef.__time32_t = long
|
117
|
-
rbx.platform.typedef.__time64_t = long_long
|
118
|
-
rbx.platform.typedef.errno_t = int
|
119
|
-
rbx.platform.typedef._mode_t = ushort
|
120
|
-
rbx.platform.typedef.mode_t = ushort
|
118
|
+
rbx.platform.typedef.wchar_t = ushort
|
119
|
+
rbx.platform.typedef.wctype_t = ushort
|
120
|
+
rbx.platform.typedef.wint_t = uint
|
@@ -50,6 +50,7 @@ module FFI
|
|
50
50
|
#include <sys/types.h>
|
51
51
|
#if !(defined(WIN32))
|
52
52
|
#include <sys/socket.h>
|
53
|
+
#include <netinet/in.h>
|
53
54
|
#include <sys/resource.h>
|
54
55
|
#endif
|
55
56
|
C
|
@@ -66,7 +67,7 @@ module FFI
|
|
66
67
|
end
|
67
68
|
end
|
68
69
|
|
69
|
-
code =
|
70
|
+
code = []
|
70
71
|
|
71
72
|
typedefs.each_line do |type|
|
72
73
|
# We only care about single line typedef
|
@@ -116,18 +117,18 @@ module FFI
|
|
116
117
|
end
|
117
118
|
|
118
119
|
if type = TYPE_MAP[def_type]
|
119
|
-
code << "rbx.platform.typedef.#{final_type} = #{type}
|
120
|
+
code << "rbx.platform.typedef.#{final_type} = #{type}"
|
120
121
|
TYPE_MAP[final_type] = TYPE_MAP[def_type]
|
121
122
|
else
|
122
123
|
# Fallback to an ordinary pointer if we don't know the type
|
123
124
|
if def_type =~ /\*/
|
124
|
-
code << "rbx.platform.typedef.#{final_type} = pointer
|
125
|
+
code << "rbx.platform.typedef.#{final_type} = pointer"
|
125
126
|
TYPE_MAP[final_type] = :pointer
|
126
127
|
end
|
127
128
|
end
|
128
129
|
end
|
129
130
|
|
130
|
-
code
|
131
|
+
code.sort.join("\n")
|
131
132
|
end
|
132
133
|
end
|
133
134
|
end
|
data/lib/ffi/version.rb
CHANGED
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.11.
|
4
|
+
version: 1.11.2
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Wayne Meissner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -86,6 +86,7 @@ executables: []
|
|
86
86
|
extensions: []
|
87
87
|
extra_rdoc_files: []
|
88
88
|
files:
|
89
|
+
- ".appveyor.yml"
|
89
90
|
- ".gitignore"
|
90
91
|
- ".gitmodules"
|
91
92
|
- ".travis.yml"
|
@@ -97,7 +98,6 @@ files:
|
|
97
98
|
- LICENSE.SPECS
|
98
99
|
- README.md
|
99
100
|
- Rakefile
|
100
|
-
- appveyor.yml
|
101
101
|
- ffi.gemspec
|
102
102
|
- lib/2.2/ffi_c.so
|
103
103
|
- lib/2.3/ffi_c.so
|
@@ -154,6 +154,7 @@ files:
|
|
154
154
|
- lib/ffi/platform/sparcv9-solaris/types.conf
|
155
155
|
- lib/ffi/platform/x86_64-cygwin/types.conf
|
156
156
|
- lib/ffi/platform/x86_64-darwin/types.conf
|
157
|
+
- lib/ffi/platform/x86_64-dragonflybsd/types.conf
|
157
158
|
- lib/ffi/platform/x86_64-freebsd/types.conf
|
158
159
|
- lib/ffi/platform/x86_64-freebsd12/types.conf
|
159
160
|
- lib/ffi/platform/x86_64-linux/types.conf
|
@@ -183,7 +184,7 @@ files:
|
|
183
184
|
- samples/pty.rb
|
184
185
|
- samples/qsort.rb
|
185
186
|
- samples/sample_helper.rb
|
186
|
-
homepage:
|
187
|
+
homepage: https://github.com/ffi/ffi/wiki
|
187
188
|
licenses:
|
188
189
|
- BSD-3-Clause
|
189
190
|
metadata:
|