Permalink
Browse files

update x86_64-openbsd types

closes #535
  • Loading branch information...
1 parent c52ceb1 commit d73b7baecaab71edea54d538f0c8b018da8821a7 @tduehr tduehr committed Nov 8, 2016
Showing with 27 additions and 21 deletions.
  1. +27 −21 lib/ffi/platform/x86_64-openbsd/types.conf
@@ -26,44 +26,48 @@ rbx.platform.typedef.__intptr_t = long
rbx.platform.typedef.__uintptr_t = ulong
rbx.platform.typedef.__intmax_t = long_long
rbx.platform.typedef.__uintmax_t = ulong_long
-rbx.platform.typedef.__register_t = int
+rbx.platform.typedef.__register_t = long
rbx.platform.typedef.__vaddr_t = ulong
rbx.platform.typedef.__paddr_t = ulong
rbx.platform.typedef.__vsize_t = ulong
rbx.platform.typedef.__psize_t = ulong
-rbx.platform.typedef.__clock_t = int
-rbx.platform.typedef.__clockid_t = int
-rbx.platform.typedef.__off_t = long_long
rbx.platform.typedef.__ptrdiff_t = long
rbx.platform.typedef.__size_t = ulong
rbx.platform.typedef.__ssize_t = long
-rbx.platform.typedef.__time_t = int
-rbx.platform.typedef.__timer_t = int
rbx.platform.typedef.__wchar_t = int
rbx.platform.typedef.__wint_t = int
rbx.platform.typedef.__rune_t = int
rbx.platform.typedef.__wctrans_t = pointer
rbx.platform.typedef.__wctype_t = pointer
+rbx.platform.typedef.__blkcnt_t = long_long
+rbx.platform.typedef.__blksize_t = int
+rbx.platform.typedef.__clock_t = long_long
+rbx.platform.typedef.__clockid_t = int
rbx.platform.typedef.__cpuid_t = ulong
rbx.platform.typedef.__dev_t = int
rbx.platform.typedef.__fixpt_t = uint
+rbx.platform.typedef.__fsblkcnt_t = ulong_long
+rbx.platform.typedef.__fsfilcnt_t = ulong_long
rbx.platform.typedef.__gid_t = uint
rbx.platform.typedef.__id_t = uint
rbx.platform.typedef.__in_addr_t = uint
rbx.platform.typedef.__in_port_t = ushort
-rbx.platform.typedef.__ino_t = uint
+rbx.platform.typedef.__ino_t = ulong_long
rbx.platform.typedef.__key_t = long
rbx.platform.typedef.__mode_t = uint
rbx.platform.typedef.__nlink_t = uint
+rbx.platform.typedef.__off_t = long_long
rbx.platform.typedef.__pid_t = int
rbx.platform.typedef.__rlim_t = ulong_long
rbx.platform.typedef.__sa_family_t = uchar
rbx.platform.typedef.__segsz_t = int
rbx.platform.typedef.__socklen_t = uint
+rbx.platform.typedef.__suseconds_t = long
rbx.platform.typedef.__swblk_t = int
+rbx.platform.typedef.__time_t = long_long
+rbx.platform.typedef.__timer_t = int
rbx.platform.typedef.__uid_t = uint
rbx.platform.typedef.__useconds_t = uint
-rbx.platform.typedef.__suseconds_t = int
rbx.platform.typedef.u_char = uchar
rbx.platform.typedef.u_short = ushort
rbx.platform.typedef.u_int = uint
@@ -73,7 +77,7 @@ rbx.platform.typedef.ushort = ushort
rbx.platform.typedef.uint = uint
rbx.platform.typedef.ulong = ulong
rbx.platform.typedef.cpuid_t = ulong
-rbx.platform.typedef.register_t = int
+rbx.platform.typedef.register_t = long
rbx.platform.typedef.int8_t = char
rbx.platform.typedef.uint8_t = uchar
rbx.platform.typedef.int16_t = short
@@ -82,8 +86,6 @@ rbx.platform.typedef.int32_t = int
rbx.platform.typedef.uint32_t = uint
rbx.platform.typedef.int64_t = long_long
rbx.platform.typedef.uint64_t = ulong_long
-rbx.platform.typedef.intptr_t = long
-rbx.platform.typedef.uintptr_t = ulong
rbx.platform.typedef.u_int8_t = uchar
rbx.platform.typedef.u_int16_t = ushort
rbx.platform.typedef.u_int32_t = uint
@@ -95,34 +97,38 @@ rbx.platform.typedef.vaddr_t = ulong
rbx.platform.typedef.paddr_t = ulong
rbx.platform.typedef.vsize_t = ulong
rbx.platform.typedef.psize_t = ulong
+rbx.platform.typedef.blkcnt_t = long_long
+rbx.platform.typedef.blksize_t = int
rbx.platform.typedef.caddr_t = string
-rbx.platform.typedef.daddr_t = int
rbx.platform.typedef.daddr32_t = int
-rbx.platform.typedef.daddr64_t = long_long
+rbx.platform.typedef.daddr_t = long_long
rbx.platform.typedef.dev_t = int
rbx.platform.typedef.fixpt_t = uint
rbx.platform.typedef.gid_t = uint
rbx.platform.typedef.id_t = uint
-rbx.platform.typedef.ino_t = uint
+rbx.platform.typedef.ino_t = ulong_long
rbx.platform.typedef.key_t = long
rbx.platform.typedef.mode_t = uint
rbx.platform.typedef.nlink_t = uint
-rbx.platform.typedef.pid_t = int
rbx.platform.typedef.rlim_t = ulong_long
rbx.platform.typedef.segsz_t = int
rbx.platform.typedef.swblk_t = int
rbx.platform.typedef.uid_t = uint
rbx.platform.typedef.useconds_t = uint
-rbx.platform.typedef.suseconds_t = int
+rbx.platform.typedef.suseconds_t = long
+rbx.platform.typedef.fsblkcnt_t = ulong_long
+rbx.platform.typedef.fsfilcnt_t = ulong_long
rbx.platform.typedef.in_addr_t = uint
rbx.platform.typedef.in_port_t = ushort
-rbx.platform.typedef.sa_family_t = uchar
-rbx.platform.typedef.socklen_t = uint
-rbx.platform.typedef.clock_t = int
+rbx.platform.typedef.clock_t = long_long
rbx.platform.typedef.clockid_t = int
+rbx.platform.typedef.pid_t = int
rbx.platform.typedef.size_t = ulong
rbx.platform.typedef.ssize_t = long
-rbx.platform.typedef.time_t = int
+rbx.platform.typedef.time_t = long_long
rbx.platform.typedef.timer_t = int
rbx.platform.typedef.off_t = long_long
-rbx.platform.typedef.__fd_mask = int
+rbx.platform.typedef.__fd_mask = uint
+rbx.platform.typedef.sigset_t = uint
+rbx.platform.typedef.socklen_t = uint
+rbx.platform.typedef.sa_family_t = uchar

0 comments on commit d73b7ba

Please sign in to comment.