ffi 1.14.2 → 1.15.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +61 -0
- data/Gemfile +1 -4
- data/README.md +4 -0
- data/Rakefile +16 -23
- data/ext/ffi_c/Call.c +0 -1
- data/ext/ffi_c/Function.c +23 -3
- data/ext/ffi_c/Function.h +0 -4
- data/ext/ffi_c/MemoryPointer.h +0 -4
- data/ext/ffi_c/Platform.c +2 -2
- data/ext/ffi_c/Pointer.h +0 -4
- data/ext/ffi_c/StructLayout.c +0 -1
- data/ext/ffi_c/Types.c +6 -7
- data/ext/ffi_c/Types.h +3 -4
- data/ext/ffi_c/Variadic.c +12 -2
- data/ext/ffi_c/extconf.rb +5 -2
- data/ext/ffi_c/libffi/Makefile.in +4 -2
- data/ext/ffi_c/libffi/configure +12 -20
- data/ext/ffi_c/libffi/doc/Makefile.in +1 -1
- data/ext/ffi_c/libffi/include/Makefile.in +1 -1
- data/ext/ffi_c/libffi/install-sh +80 -68
- data/ext/ffi_c/libffi/ltmain.sh +2 -2
- data/ext/ffi_c/libffi/man/Makefile.in +1 -1
- data/ext/ffi_c/libffi/testsuite/Makefile.in +2 -2
- data/ffi.gemspec +0 -1
- data/lib/ffi/library.rb +2 -2
- data/lib/ffi/platform/aarch64-freebsd/types.conf +2 -2
- data/lib/ffi/platform/aarch64-freebsd12/types.conf +113 -60
- data/lib/ffi/platform/powerpc64le-linux/types.conf +100 -0
- data/lib/ffi/platform/riscv64-linux/types.conf +104 -0
- data/lib/ffi/platform.rb +2 -5
- data/lib/ffi/tools/const_generator.rb +2 -1
- data/lib/ffi/tools/struct_generator.rb +2 -1
- data/lib/ffi/variadic.rb +0 -9
- data/lib/ffi/version.rb +1 -1
- data/lib/ffi.rb +2 -3
- data/rakelib/ffi_gem_helper.rb +65 -0
- metadata +6 -17
data/ext/ffi_c/libffi/install-sh
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/bin/sh
|
2
2
|
# install - install a program, script, or datafile
|
3
3
|
|
4
|
-
scriptversion=
|
4
|
+
scriptversion=2020-11-14.01; # UTC
|
5
5
|
|
6
6
|
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
7
7
|
# later released in X11R6 (xc/config/util/install.sh) with the
|
@@ -69,6 +69,11 @@ posix_mkdir=
|
|
69
69
|
# Desired mode of installed file.
|
70
70
|
mode=0755
|
71
71
|
|
72
|
+
# Create dirs (including intermediate dirs) using mode 755.
|
73
|
+
# This is like GNU 'install' as of coreutils 8.32 (2020).
|
74
|
+
mkdir_umask=22
|
75
|
+
|
76
|
+
backupsuffix=
|
72
77
|
chgrpcmd=
|
73
78
|
chmodcmd=$chmodprog
|
74
79
|
chowncmd=
|
@@ -99,18 +104,28 @@ Options:
|
|
99
104
|
--version display version info and exit.
|
100
105
|
|
101
106
|
-c (ignored)
|
102
|
-
-C install only if different (preserve
|
107
|
+
-C install only if different (preserve data modification time)
|
103
108
|
-d create directories instead of installing files.
|
104
109
|
-g GROUP $chgrpprog installed files to GROUP.
|
105
110
|
-m MODE $chmodprog installed files to MODE.
|
106
111
|
-o USER $chownprog installed files to USER.
|
112
|
+
-p pass -p to $cpprog.
|
107
113
|
-s $stripprog installed files.
|
114
|
+
-S SUFFIX attempt to back up existing files, with suffix SUFFIX.
|
108
115
|
-t DIRECTORY install into DIRECTORY.
|
109
116
|
-T report an error if DSTFILE is a directory.
|
110
117
|
|
111
118
|
Environment variables override the default commands:
|
112
119
|
CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
|
113
120
|
RMPROG STRIPPROG
|
121
|
+
|
122
|
+
By default, rm is invoked with -f; when overridden with RMPROG,
|
123
|
+
it's up to you to specify -f if you want it.
|
124
|
+
|
125
|
+
If -S is not specified, no backups are attempted.
|
126
|
+
|
127
|
+
Email bug reports to bug-automake@gnu.org.
|
128
|
+
Automake home page: https://www.gnu.org/software/automake/
|
114
129
|
"
|
115
130
|
|
116
131
|
while test $# -ne 0; do
|
@@ -137,8 +152,13 @@ while test $# -ne 0; do
|
|
137
152
|
-o) chowncmd="$chownprog $2"
|
138
153
|
shift;;
|
139
154
|
|
155
|
+
-p) cpprog="$cpprog -p";;
|
156
|
+
|
140
157
|
-s) stripcmd=$stripprog;;
|
141
158
|
|
159
|
+
-S) backupsuffix="$2"
|
160
|
+
shift;;
|
161
|
+
|
142
162
|
-t)
|
143
163
|
is_target_a_directory=always
|
144
164
|
dst_arg=$2
|
@@ -255,6 +275,10 @@ do
|
|
255
275
|
dstdir=$dst
|
256
276
|
test -d "$dstdir"
|
257
277
|
dstdir_status=$?
|
278
|
+
# Don't chown directories that already exist.
|
279
|
+
if test $dstdir_status = 0; then
|
280
|
+
chowncmd=""
|
281
|
+
fi
|
258
282
|
else
|
259
283
|
|
260
284
|
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
|
@@ -301,22 +325,6 @@ do
|
|
301
325
|
if test $dstdir_status != 0; then
|
302
326
|
case $posix_mkdir in
|
303
327
|
'')
|
304
|
-
# Create intermediate dirs using mode 755 as modified by the umask.
|
305
|
-
# This is like FreeBSD 'install' as of 1997-10-28.
|
306
|
-
umask=`umask`
|
307
|
-
case $stripcmd.$umask in
|
308
|
-
# Optimize common cases.
|
309
|
-
*[2367][2367]) mkdir_umask=$umask;;
|
310
|
-
.*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
|
311
|
-
|
312
|
-
*[0-7])
|
313
|
-
mkdir_umask=`expr $umask + 22 \
|
314
|
-
- $umask % 100 % 40 + $umask % 20 \
|
315
|
-
- $umask % 10 % 4 + $umask % 2
|
316
|
-
`;;
|
317
|
-
*) mkdir_umask=$umask,go-w;;
|
318
|
-
esac
|
319
|
-
|
320
328
|
# With -d, create the new directory with the user-specified mode.
|
321
329
|
# Otherwise, rely on $mkdir_umask.
|
322
330
|
if test -n "$dir_arg"; then
|
@@ -326,52 +334,49 @@ do
|
|
326
334
|
fi
|
327
335
|
|
328
336
|
posix_mkdir=false
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
fi
|
373
|
-
trap '' 0;;
|
374
|
-
esac;;
|
337
|
+
# The $RANDOM variable is not portable (e.g., dash). Use it
|
338
|
+
# here however when possible just to lower collision chance.
|
339
|
+
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
|
340
|
+
|
341
|
+
trap '
|
342
|
+
ret=$?
|
343
|
+
rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null
|
344
|
+
exit $ret
|
345
|
+
' 0
|
346
|
+
|
347
|
+
# Because "mkdir -p" follows existing symlinks and we likely work
|
348
|
+
# directly in world-writeable /tmp, make sure that the '$tmpdir'
|
349
|
+
# directory is successfully created first before we actually test
|
350
|
+
# 'mkdir -p'.
|
351
|
+
if (umask $mkdir_umask &&
|
352
|
+
$mkdirprog $mkdir_mode "$tmpdir" &&
|
353
|
+
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
|
354
|
+
then
|
355
|
+
if test -z "$dir_arg" || {
|
356
|
+
# Check for POSIX incompatibilities with -m.
|
357
|
+
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
|
358
|
+
# other-writable bit of parent directory when it shouldn't.
|
359
|
+
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
|
360
|
+
test_tmpdir="$tmpdir/a"
|
361
|
+
ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
|
362
|
+
case $ls_ld_tmpdir in
|
363
|
+
d????-?r-*) different_mode=700;;
|
364
|
+
d????-?--*) different_mode=755;;
|
365
|
+
*) false;;
|
366
|
+
esac &&
|
367
|
+
$mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
|
368
|
+
ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
|
369
|
+
test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
|
370
|
+
}
|
371
|
+
}
|
372
|
+
then posix_mkdir=:
|
373
|
+
fi
|
374
|
+
rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
|
375
|
+
else
|
376
|
+
# Remove any dirs left behind by ancient mkdir implementations.
|
377
|
+
rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
|
378
|
+
fi
|
379
|
+
trap '' 0;;
|
375
380
|
esac
|
376
381
|
|
377
382
|
if
|
@@ -382,7 +387,7 @@ do
|
|
382
387
|
then :
|
383
388
|
else
|
384
389
|
|
385
|
-
#
|
390
|
+
# mkdir does not conform to POSIX,
|
386
391
|
# or it failed possibly due to a race condition. Create the
|
387
392
|
# directory the slow way, step by step, checking for races as we go.
|
388
393
|
|
@@ -411,7 +416,7 @@ do
|
|
411
416
|
prefixes=
|
412
417
|
else
|
413
418
|
if $posix_mkdir; then
|
414
|
-
(umask
|
419
|
+
(umask $mkdir_umask &&
|
415
420
|
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
|
416
421
|
# Don't fail if two instances are running concurrently.
|
417
422
|
test -d "$prefix" || exit 1
|
@@ -488,6 +493,13 @@ do
|
|
488
493
|
then
|
489
494
|
rm -f "$dsttmp"
|
490
495
|
else
|
496
|
+
# If $backupsuffix is set, and the file being installed
|
497
|
+
# already exists, attempt a backup. Don't worry if it fails,
|
498
|
+
# e.g., if mv doesn't support -f.
|
499
|
+
if test -n "$backupsuffix" && test -f "$dst"; then
|
500
|
+
$doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null
|
501
|
+
fi
|
502
|
+
|
491
503
|
# Rename the file to the real destination.
|
492
504
|
$doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
|
493
505
|
|
@@ -502,9 +514,9 @@ do
|
|
502
514
|
# file should still install successfully.
|
503
515
|
{
|
504
516
|
test ! -f "$dst" ||
|
505
|
-
$doit $rmcmd
|
517
|
+
$doit $rmcmd "$dst" 2>/dev/null ||
|
506
518
|
{ $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
|
507
|
-
{ $doit $rmcmd
|
519
|
+
{ $doit $rmcmd "$rmtmp" 2>/dev/null; :; }
|
508
520
|
} ||
|
509
521
|
{ echo "$0: cannot unlink or rename $dst" >&2
|
510
522
|
(exit 1); exit 1
|
data/ext/ffi_c/libffi/ltmain.sh
CHANGED
@@ -31,7 +31,7 @@
|
|
31
31
|
|
32
32
|
PROGRAM=libtool
|
33
33
|
PACKAGE=libtool
|
34
|
-
VERSION="2.4.6 Debian-2.4.6-
|
34
|
+
VERSION="2.4.6 Debian-2.4.6-15"
|
35
35
|
package_revision=2.4.6
|
36
36
|
|
37
37
|
|
@@ -2141,7 +2141,7 @@ include the following information:
|
|
2141
2141
|
compiler: $LTCC
|
2142
2142
|
compiler flags: $LTCFLAGS
|
2143
2143
|
linker: $LD (gnu? $with_gnu_ld)
|
2144
|
-
version: $progname $scriptversion Debian-2.4.6-
|
2144
|
+
version: $progname $scriptversion Debian-2.4.6-15
|
2145
2145
|
automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
|
2146
2146
|
autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
|
2147
2147
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Makefile.in generated by automake 1.16.
|
1
|
+
# Makefile.in generated by automake 1.16.3 from Makefile.am.
|
2
2
|
# @configure_input@
|
3
3
|
|
4
4
|
# Copyright (C) 1994-2020 Free Software Foundation, Inc.
|
@@ -463,7 +463,7 @@ site.exp: Makefile $(EXTRA_DEJAGNU_SITE_CONFIG)
|
|
463
463
|
@echo '# Do not edit here. If you wish to override these values' >>site.tmp
|
464
464
|
@echo '# edit the last section' >>site.tmp
|
465
465
|
@echo 'set srcdir "$(srcdir)"' >>site.tmp
|
466
|
-
@echo "set objdir `pwd
|
466
|
+
@echo "set objdir \"`pwd`\"" >>site.tmp
|
467
467
|
@echo 'set build_alias "$(build_alias)"' >>site.tmp
|
468
468
|
@echo 'set build_triplet $(build_triplet)' >>site.tmp
|
469
469
|
@echo 'set host_alias "$(host_alias)"' >>site.tmp
|
data/ffi.gemspec
CHANGED
@@ -39,5 +39,4 @@ Gem::Specification.new do |s|
|
|
39
39
|
s.add_development_dependency 'rake-compiler', '~> 1.0'
|
40
40
|
s.add_development_dependency 'rake-compiler-dock', '~> 1.0'
|
41
41
|
s.add_development_dependency 'rspec', '~> 2.14.1'
|
42
|
-
s.add_development_dependency 'rubygems-tasks', "~> 0.2.4"
|
43
42
|
end
|
data/lib/ffi/library.rb
CHANGED
@@ -84,7 +84,7 @@ module FFI
|
|
84
84
|
# @raise {RuntimeError} if +mod+ is not a Module
|
85
85
|
# Test if extended object is a Module. If not, raise RuntimeError.
|
86
86
|
def self.extended(mod)
|
87
|
-
raise RuntimeError.new("must only be extended by module") unless mod.kind_of?(Module)
|
87
|
+
raise RuntimeError.new("must only be extended by module") unless mod.kind_of?(::Module)
|
88
88
|
end
|
89
89
|
|
90
90
|
|
@@ -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/','/opt/local/lib/'].find do |pth|
|
129
|
+
path = ['/usr/lib/','/usr/local/lib/','/opt/local/lib/', '/opt/homebrew/lib/'].find do |pth|
|
130
130
|
File.exist?(pth + libname)
|
131
131
|
end
|
132
132
|
if path
|
@@ -39,9 +39,9 @@ rbx.platform.typedef.__segsz_t = int
|
|
39
39
|
rbx.platform.typedef.__size_t = ulong
|
40
40
|
rbx.platform.typedef.__socklen_t = uint
|
41
41
|
rbx.platform.typedef.__ssize_t = long
|
42
|
-
rbx.platform.typedef.__suseconds_t =
|
42
|
+
rbx.platform.typedef.__suseconds_t = long
|
43
43
|
rbx.platform.typedef.__swblk_t = int
|
44
|
-
rbx.platform.typedef.__time_t =
|
44
|
+
rbx.platform.typedef.__time_t = long
|
45
45
|
rbx.platform.typedef.__timer_t = int
|
46
46
|
rbx.platform.typedef.__uid_t = uint
|
47
47
|
rbx.platform.typedef.__uint16_t = ushort
|
@@ -1,128 +1,181 @@
|
|
1
|
+
rbx.platform.typedef.*) = pointer
|
2
|
+
rbx.platform.typedef.___wchar_t = uint
|
3
|
+
rbx.platform.typedef.__accmode_t = int
|
4
|
+
rbx.platform.typedef.__blkcnt_t = long
|
5
|
+
rbx.platform.typedef.__blksize_t = int
|
6
|
+
rbx.platform.typedef.__char16_t = ushort
|
7
|
+
rbx.platform.typedef.__char32_t = uint
|
1
8
|
rbx.platform.typedef.__clock_t = int
|
2
9
|
rbx.platform.typedef.__clockid_t = int
|
3
|
-
rbx.platform.typedef.
|
4
|
-
rbx.platform.typedef.
|
5
|
-
rbx.platform.typedef.
|
10
|
+
rbx.platform.typedef.__cpulevel_t = int
|
11
|
+
rbx.platform.typedef.__cpusetid_t = int
|
12
|
+
rbx.platform.typedef.__cpuwhich_t = int
|
13
|
+
rbx.platform.typedef.__critical_t = long
|
14
|
+
rbx.platform.typedef.__ct_rune_t = int
|
15
|
+
rbx.platform.typedef.__daddr_t = long
|
16
|
+
rbx.platform.typedef.__dev_t = ulong
|
17
|
+
rbx.platform.typedef.__fd_mask = ulong
|
18
|
+
rbx.platform.typedef.__fflags_t = uint
|
6
19
|
rbx.platform.typedef.__fixpt_t = uint
|
20
|
+
rbx.platform.typedef.__fsblkcnt_t = ulong
|
21
|
+
rbx.platform.typedef.__fsfilcnt_t = ulong
|
7
22
|
rbx.platform.typedef.__gid_t = uint
|
8
|
-
rbx.platform.typedef.__id_t =
|
9
|
-
rbx.platform.typedef.
|
10
|
-
rbx.platform.typedef.__in_port_t = ushort
|
11
|
-
rbx.platform.typedef.__ino_t = ulong_long
|
23
|
+
rbx.platform.typedef.__id_t = long
|
24
|
+
rbx.platform.typedef.__ino_t = ulong
|
12
25
|
rbx.platform.typedef.__int16_t = short
|
13
26
|
rbx.platform.typedef.__int32_t = int
|
14
|
-
rbx.platform.typedef.__int64_t =
|
27
|
+
rbx.platform.typedef.__int64_t = long
|
15
28
|
rbx.platform.typedef.__int8_t = char
|
16
29
|
rbx.platform.typedef.__int_fast16_t = int
|
17
30
|
rbx.platform.typedef.__int_fast32_t = int
|
18
|
-
rbx.platform.typedef.__int_fast64_t =
|
31
|
+
rbx.platform.typedef.__int_fast64_t = long
|
19
32
|
rbx.platform.typedef.__int_fast8_t = int
|
20
33
|
rbx.platform.typedef.__int_least16_t = short
|
21
34
|
rbx.platform.typedef.__int_least32_t = int
|
22
|
-
rbx.platform.typedef.__int_least64_t =
|
35
|
+
rbx.platform.typedef.__int_least64_t = long
|
23
36
|
rbx.platform.typedef.__int_least8_t = char
|
24
|
-
rbx.platform.typedef.
|
37
|
+
rbx.platform.typedef.__intfptr_t = long
|
38
|
+
rbx.platform.typedef.__intmax_t = long
|
25
39
|
rbx.platform.typedef.__intptr_t = long
|
26
40
|
rbx.platform.typedef.__key_t = long
|
27
|
-
rbx.platform.typedef.
|
28
|
-
rbx.platform.typedef.
|
29
|
-
rbx.platform.typedef.
|
30
|
-
rbx.platform.typedef.
|
41
|
+
rbx.platform.typedef.__lwpid_t = int
|
42
|
+
rbx.platform.typedef.__mode_t = ushort
|
43
|
+
rbx.platform.typedef.__nl_item = int
|
44
|
+
rbx.platform.typedef.__nlink_t = ulong
|
45
|
+
rbx.platform.typedef.__off64_t = long
|
46
|
+
rbx.platform.typedef.__off_t = long
|
31
47
|
rbx.platform.typedef.__pid_t = int
|
32
|
-
rbx.platform.typedef.__psize_t = ulong
|
33
48
|
rbx.platform.typedef.__ptrdiff_t = long
|
34
|
-
rbx.platform.typedef.__register_t =
|
35
|
-
rbx.platform.typedef.__rlim_t =
|
49
|
+
rbx.platform.typedef.__register_t = long
|
50
|
+
rbx.platform.typedef.__rlim_t = long
|
51
|
+
rbx.platform.typedef.__rman_res_t = ulong
|
36
52
|
rbx.platform.typedef.__rune_t = int
|
37
53
|
rbx.platform.typedef.__sa_family_t = uchar
|
38
|
-
rbx.platform.typedef.__segsz_t =
|
54
|
+
rbx.platform.typedef.__segsz_t = long
|
39
55
|
rbx.platform.typedef.__size_t = ulong
|
40
56
|
rbx.platform.typedef.__socklen_t = uint
|
41
57
|
rbx.platform.typedef.__ssize_t = long
|
42
|
-
rbx.platform.typedef.__suseconds_t =
|
43
|
-
rbx.platform.typedef.
|
44
|
-
rbx.platform.typedef.
|
45
|
-
rbx.platform.typedef.__timer_t = int
|
58
|
+
rbx.platform.typedef.__suseconds_t = long
|
59
|
+
rbx.platform.typedef.__time_t = long
|
60
|
+
rbx.platform.typedef.__u_register_t = ulong
|
46
61
|
rbx.platform.typedef.__uid_t = uint
|
47
62
|
rbx.platform.typedef.__uint16_t = ushort
|
48
63
|
rbx.platform.typedef.__uint32_t = uint
|
49
|
-
rbx.platform.typedef.__uint64_t =
|
64
|
+
rbx.platform.typedef.__uint64_t = ulong
|
50
65
|
rbx.platform.typedef.__uint8_t = uchar
|
51
66
|
rbx.platform.typedef.__uint_fast16_t = uint
|
52
67
|
rbx.platform.typedef.__uint_fast32_t = uint
|
53
|
-
rbx.platform.typedef.__uint_fast64_t =
|
68
|
+
rbx.platform.typedef.__uint_fast64_t = ulong
|
54
69
|
rbx.platform.typedef.__uint_fast8_t = uint
|
55
70
|
rbx.platform.typedef.__uint_least16_t = ushort
|
56
71
|
rbx.platform.typedef.__uint_least32_t = uint
|
57
|
-
rbx.platform.typedef.__uint_least64_t =
|
72
|
+
rbx.platform.typedef.__uint_least64_t = ulong
|
58
73
|
rbx.platform.typedef.__uint_least8_t = uchar
|
59
|
-
rbx.platform.typedef.
|
74
|
+
rbx.platform.typedef.__uintfptr_t = ulong
|
75
|
+
rbx.platform.typedef.__uintmax_t = ulong
|
60
76
|
rbx.platform.typedef.__uintptr_t = ulong
|
61
77
|
rbx.platform.typedef.__useconds_t = uint
|
62
|
-
rbx.platform.typedef.
|
63
|
-
rbx.platform.typedef.
|
64
|
-
rbx.platform.typedef.
|
65
|
-
rbx.platform.typedef.__wctrans_t = pointer
|
66
|
-
rbx.platform.typedef.__wctype_t = pointer
|
78
|
+
rbx.platform.typedef.__vm_offset_t = ulong
|
79
|
+
rbx.platform.typedef.__vm_paddr_t = ulong
|
80
|
+
rbx.platform.typedef.__vm_size_t = ulong
|
67
81
|
rbx.platform.typedef.__wint_t = int
|
82
|
+
rbx.platform.typedef.accmode_t = int
|
83
|
+
rbx.platform.typedef.blkcnt_t = long
|
84
|
+
rbx.platform.typedef.blksize_t = int
|
85
|
+
rbx.platform.typedef.c_caddr_t = pointer
|
68
86
|
rbx.platform.typedef.caddr_t = string
|
87
|
+
rbx.platform.typedef.cap_ioctl_t = ulong
|
69
88
|
rbx.platform.typedef.clock_t = int
|
70
89
|
rbx.platform.typedef.clockid_t = int
|
71
|
-
rbx.platform.typedef.
|
72
|
-
rbx.platform.typedef.
|
73
|
-
rbx.platform.typedef.
|
74
|
-
rbx.platform.typedef.
|
75
|
-
rbx.platform.typedef.
|
90
|
+
rbx.platform.typedef.cpulevel_t = int
|
91
|
+
rbx.platform.typedef.cpusetid_t = int
|
92
|
+
rbx.platform.typedef.cpuwhich_t = int
|
93
|
+
rbx.platform.typedef.critical_t = long
|
94
|
+
rbx.platform.typedef.daddr_t = long
|
95
|
+
rbx.platform.typedef.dev_t = ulong
|
96
|
+
rbx.platform.typedef.fd_mask = ulong
|
97
|
+
rbx.platform.typedef.fflags_t = uint
|
76
98
|
rbx.platform.typedef.fixpt_t = uint
|
99
|
+
rbx.platform.typedef.fsblkcnt_t = ulong
|
100
|
+
rbx.platform.typedef.fsfilcnt_t = ulong
|
77
101
|
rbx.platform.typedef.gid_t = uint
|
78
|
-
rbx.platform.typedef.id_t =
|
102
|
+
rbx.platform.typedef.id_t = long
|
79
103
|
rbx.platform.typedef.in_addr_t = uint
|
80
104
|
rbx.platform.typedef.in_port_t = ushort
|
81
|
-
rbx.platform.typedef.ino_t =
|
105
|
+
rbx.platform.typedef.ino_t = ulong
|
82
106
|
rbx.platform.typedef.int16_t = short
|
83
107
|
rbx.platform.typedef.int32_t = int
|
84
|
-
rbx.platform.typedef.int64_t =
|
108
|
+
rbx.platform.typedef.int64_t = long
|
85
109
|
rbx.platform.typedef.int8_t = char
|
110
|
+
rbx.platform.typedef.int_fast16_t = int
|
111
|
+
rbx.platform.typedef.int_fast32_t = int
|
112
|
+
rbx.platform.typedef.int_fast64_t = long
|
113
|
+
rbx.platform.typedef.int_fast8_t = int
|
114
|
+
rbx.platform.typedef.int_least16_t = short
|
115
|
+
rbx.platform.typedef.int_least32_t = int
|
116
|
+
rbx.platform.typedef.int_least64_t = long
|
117
|
+
rbx.platform.typedef.int_least8_t = char
|
118
|
+
rbx.platform.typedef.intmax_t = long
|
86
119
|
rbx.platform.typedef.intptr_t = long
|
87
120
|
rbx.platform.typedef.key_t = long
|
88
|
-
rbx.platform.typedef.
|
89
|
-
rbx.platform.typedef.
|
90
|
-
rbx.platform.typedef.
|
91
|
-
rbx.platform.typedef.
|
121
|
+
rbx.platform.typedef.kpaddr_t = ulong
|
122
|
+
rbx.platform.typedef.ksize_t = ulong
|
123
|
+
rbx.platform.typedef.kssize_t = long
|
124
|
+
rbx.platform.typedef.kvaddr_t = ulong
|
125
|
+
rbx.platform.typedef.lwpid_t = int
|
126
|
+
rbx.platform.typedef.mode_t = ushort
|
127
|
+
rbx.platform.typedef.nlink_t = ulong
|
128
|
+
rbx.platform.typedef.off64_t = long
|
129
|
+
rbx.platform.typedef.off_t = long
|
92
130
|
rbx.platform.typedef.pid_t = int
|
93
|
-
rbx.platform.typedef.
|
131
|
+
rbx.platform.typedef.pthread_key_t = int
|
132
|
+
rbx.platform.typedef.ptrdiff_t = long
|
94
133
|
rbx.platform.typedef.qaddr_t = pointer
|
95
|
-
rbx.platform.typedef.quad_t =
|
96
|
-
rbx.platform.typedef.register_t =
|
97
|
-
rbx.platform.typedef.rlim_t =
|
134
|
+
rbx.platform.typedef.quad_t = long
|
135
|
+
rbx.platform.typedef.register_t = long
|
136
|
+
rbx.platform.typedef.rlim_t = long
|
137
|
+
rbx.platform.typedef.rman_res_t = ulong
|
138
|
+
rbx.platform.typedef.rsize_t = ulong
|
139
|
+
rbx.platform.typedef.rune_t = int
|
98
140
|
rbx.platform.typedef.sa_family_t = uchar
|
99
|
-
rbx.platform.typedef.
|
141
|
+
rbx.platform.typedef.sbintime_t = long
|
142
|
+
rbx.platform.typedef.segsz_t = long
|
100
143
|
rbx.platform.typedef.size_t = ulong
|
101
144
|
rbx.platform.typedef.socklen_t = uint
|
102
145
|
rbx.platform.typedef.ssize_t = long
|
103
|
-
rbx.platform.typedef.suseconds_t =
|
104
|
-
rbx.platform.typedef.
|
105
|
-
rbx.platform.typedef.time_t = int
|
106
|
-
rbx.platform.typedef.timer_t = int
|
146
|
+
rbx.platform.typedef.suseconds_t = long
|
147
|
+
rbx.platform.typedef.time_t = long
|
107
148
|
rbx.platform.typedef.u_char = uchar
|
108
149
|
rbx.platform.typedef.u_int = uint
|
109
150
|
rbx.platform.typedef.u_int16_t = ushort
|
110
151
|
rbx.platform.typedef.u_int32_t = uint
|
111
|
-
rbx.platform.typedef.u_int64_t =
|
152
|
+
rbx.platform.typedef.u_int64_t = ulong
|
112
153
|
rbx.platform.typedef.u_int8_t = uchar
|
113
154
|
rbx.platform.typedef.u_long = ulong
|
114
|
-
rbx.platform.typedef.u_quad_t =
|
155
|
+
rbx.platform.typedef.u_quad_t = ulong
|
156
|
+
rbx.platform.typedef.u_register_t = ulong
|
115
157
|
rbx.platform.typedef.u_short = ushort
|
116
158
|
rbx.platform.typedef.uid_t = uint
|
117
159
|
rbx.platform.typedef.uint = uint
|
118
160
|
rbx.platform.typedef.uint16_t = ushort
|
119
161
|
rbx.platform.typedef.uint32_t = uint
|
120
|
-
rbx.platform.typedef.uint64_t =
|
162
|
+
rbx.platform.typedef.uint64_t = ulong
|
121
163
|
rbx.platform.typedef.uint8_t = uchar
|
164
|
+
rbx.platform.typedef.uint_fast16_t = uint
|
165
|
+
rbx.platform.typedef.uint_fast32_t = uint
|
166
|
+
rbx.platform.typedef.uint_fast64_t = ulong
|
167
|
+
rbx.platform.typedef.uint_fast8_t = uint
|
168
|
+
rbx.platform.typedef.uint_least16_t = ushort
|
169
|
+
rbx.platform.typedef.uint_least32_t = uint
|
170
|
+
rbx.platform.typedef.uint_least64_t = ulong
|
171
|
+
rbx.platform.typedef.uint_least8_t = uchar
|
172
|
+
rbx.platform.typedef.uintmax_t = ulong
|
122
173
|
rbx.platform.typedef.uintptr_t = ulong
|
123
|
-
rbx.platform.typedef.ulong = ulong
|
124
|
-
rbx.platform.typedef.unchar = uchar
|
125
174
|
rbx.platform.typedef.useconds_t = uint
|
126
175
|
rbx.platform.typedef.ushort = ushort
|
127
|
-
rbx.platform.typedef.
|
128
|
-
rbx.platform.typedef.
|
176
|
+
rbx.platform.typedef.vm_offset_t = ulong
|
177
|
+
rbx.platform.typedef.vm_ooffset_t = ulong
|
178
|
+
rbx.platform.typedef.vm_paddr_t = ulong
|
179
|
+
rbx.platform.typedef.vm_pindex_t = ulong
|
180
|
+
rbx.platform.typedef.vm_size_t = ulong
|
181
|
+
rbx.platform.typedef.wchar_t = uint
|
@@ -0,0 +1,100 @@
|
|
1
|
+
rbx.platform.typedef.*__caddr_t = char
|
2
|
+
rbx.platform.typedef.*__qaddr_t = long
|
3
|
+
rbx.platform.typedef.__blkcnt64_t = long
|
4
|
+
rbx.platform.typedef.__blkcnt_t = long
|
5
|
+
rbx.platform.typedef.__blksize_t = long
|
6
|
+
rbx.platform.typedef.__clock_t = long
|
7
|
+
rbx.platform.typedef.__clockid_t = int
|
8
|
+
rbx.platform.typedef.__daddr_t = int
|
9
|
+
rbx.platform.typedef.__dev_t = ulong
|
10
|
+
rbx.platform.typedef.__fd_mask = long
|
11
|
+
rbx.platform.typedef.__fsblkcnt64_t = ulong
|
12
|
+
rbx.platform.typedef.__fsblkcnt_t = ulong
|
13
|
+
rbx.platform.typedef.__fsfilcnt64_t = ulong
|
14
|
+
rbx.platform.typedef.__fsfilcnt_t = ulong
|
15
|
+
rbx.platform.typedef.__gid_t = uint
|
16
|
+
rbx.platform.typedef.__id_t = uint
|
17
|
+
rbx.platform.typedef.__ino64_t = ulong
|
18
|
+
rbx.platform.typedef.__ino_t = ulong
|
19
|
+
rbx.platform.typedef.__int16_t = short
|
20
|
+
rbx.platform.typedef.__int32_t = int
|
21
|
+
rbx.platform.typedef.__int64_t = long
|
22
|
+
rbx.platform.typedef.__int8_t = char
|
23
|
+
rbx.platform.typedef.__intptr_t = long
|
24
|
+
rbx.platform.typedef.__key_t = int
|
25
|
+
rbx.platform.typedef.__loff_t = long
|
26
|
+
rbx.platform.typedef.__mode_t = uint
|
27
|
+
rbx.platform.typedef.__nlink_t = ulong
|
28
|
+
rbx.platform.typedef.__off64_t = long
|
29
|
+
rbx.platform.typedef.__off_t = long
|
30
|
+
rbx.platform.typedef.__pid_t = int
|
31
|
+
rbx.platform.typedef.__priority_which_t = int
|
32
|
+
rbx.platform.typedef.__quad_t = long
|
33
|
+
rbx.platform.typedef.__rlim64_t = ulong
|
34
|
+
rbx.platform.typedef.__rlim_t = ulong
|
35
|
+
rbx.platform.typedef.__rlimit_resource_t = int
|
36
|
+
rbx.platform.typedef.__rusage_who_t = int
|
37
|
+
rbx.platform.typedef.__sig_atomic_t = int
|
38
|
+
rbx.platform.typedef.__socklen_t = uint
|
39
|
+
rbx.platform.typedef.__ssize_t = long
|
40
|
+
rbx.platform.typedef.__suseconds_t = long
|
41
|
+
rbx.platform.typedef.__swblk_t = long
|
42
|
+
rbx.platform.typedef.__time_t = long
|
43
|
+
rbx.platform.typedef.__timer_t = pointer
|
44
|
+
rbx.platform.typedef.__u_char = uchar
|
45
|
+
rbx.platform.typedef.__u_int = uint
|
46
|
+
rbx.platform.typedef.__u_long = ulong
|
47
|
+
rbx.platform.typedef.__u_quad_t = ulong
|
48
|
+
rbx.platform.typedef.__u_short = ushort
|
49
|
+
rbx.platform.typedef.__uid_t = uint
|
50
|
+
rbx.platform.typedef.__uint16_t = ushort
|
51
|
+
rbx.platform.typedef.__uint32_t = uint
|
52
|
+
rbx.platform.typedef.__uint64_t = ulong
|
53
|
+
rbx.platform.typedef.__uint8_t = uchar
|
54
|
+
rbx.platform.typedef.__useconds_t = uint
|
55
|
+
rbx.platform.typedef.blkcnt_t = long
|
56
|
+
rbx.platform.typedef.clockid_t = int
|
57
|
+
rbx.platform.typedef.daddr_t = int
|
58
|
+
rbx.platform.typedef.dev_t = ulong
|
59
|
+
rbx.platform.typedef.fd_mask = long
|
60
|
+
rbx.platform.typedef.fsblkcnt_t = ulong
|
61
|
+
rbx.platform.typedef.fsfilcnt_t = ulong
|
62
|
+
rbx.platform.typedef.gid_t = uint
|
63
|
+
rbx.platform.typedef.id_t = uint
|
64
|
+
rbx.platform.typedef.ino_t = ulong
|
65
|
+
rbx.platform.typedef.int16_t = short
|
66
|
+
rbx.platform.typedef.int32_t = int
|
67
|
+
rbx.platform.typedef.int64_t = long
|
68
|
+
rbx.platform.typedef.int8_t = char
|
69
|
+
rbx.platform.typedef.key_t = int
|
70
|
+
rbx.platform.typedef.loff_t = long
|
71
|
+
rbx.platform.typedef.mode_t = uint
|
72
|
+
rbx.platform.typedef.nlink_t = ulong
|
73
|
+
rbx.platform.typedef.off_t = long
|
74
|
+
rbx.platform.typedef.pid_t = int
|
75
|
+
rbx.platform.typedef.pthread_key_t = uint
|
76
|
+
rbx.platform.typedef.pthread_once_t = int
|
77
|
+
rbx.platform.typedef.pthread_t = ulong
|
78
|
+
rbx.platform.typedef.quad_t = long
|
79
|
+
rbx.platform.typedef.register_t = long
|
80
|
+
rbx.platform.typedef.rlim_t = ulong
|
81
|
+
rbx.platform.typedef.sa_family_t = ushort
|
82
|
+
rbx.platform.typedef.size_t = ulong
|
83
|
+
rbx.platform.typedef.socklen_t = uint
|
84
|
+
rbx.platform.typedef.ssize_t = long
|
85
|
+
rbx.platform.typedef.suseconds_t = long
|
86
|
+
rbx.platform.typedef.time_t = long
|
87
|
+
rbx.platform.typedef.timer_t = pointer
|
88
|
+
rbx.platform.typedef.u_char = uchar
|
89
|
+
rbx.platform.typedef.u_int = uint
|
90
|
+
rbx.platform.typedef.u_int16_t = ushort
|
91
|
+
rbx.platform.typedef.u_int32_t = uint
|
92
|
+
rbx.platform.typedef.u_int64_t = ulong
|
93
|
+
rbx.platform.typedef.u_int8_t = uchar
|
94
|
+
rbx.platform.typedef.u_long = ulong
|
95
|
+
rbx.platform.typedef.u_quad_t = ulong
|
96
|
+
rbx.platform.typedef.u_short = ushort
|
97
|
+
rbx.platform.typedef.uid_t = uint
|
98
|
+
rbx.platform.typedef.uint = uint
|
99
|
+
rbx.platform.typedef.ulong = ulong
|
100
|
+
rbx.platform.typedef.ushort = ushort
|