Skip to content

Commit 8bd58f1

Browse files
nirvdrumeregon
authored andcommitted
Update function binding to match actual return types.
1 parent 49ae2a4 commit 8bd58f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/ruby/core/posix.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def self.attach_function_eagerly(native_name, argument_types, return_type,
181181
attach_function :fcntl, [:int, :int, :int], :int
182182
attach_function :truffleposix_flock, [:int, :int], :int, LIBTRUFFLEPOSIX, true
183183
attach_function :truffleposix_fstat, [:int, :pointer], :int, LIBTRUFFLEPOSIX
184-
attach_function :truffleposix_fstat_mode, [:int], :long, LIBTRUFFLEPOSIX
184+
attach_function :truffleposix_fstat_mode, [:int], :mode_t, LIBTRUFFLEPOSIX
185185
attach_function :truffleposix_fstat_size, [:int], :long, LIBTRUFFLEPOSIX
186186
attach_function :fsync, [:int], :int
187187
attach_function :ftruncate, [:int, :off_t], :int
@@ -193,7 +193,7 @@ def self.attach_function_eagerly(native_name, argument_types, return_type,
193193
attach_function :link, [:string, :string], :int
194194
attach_function :lseek, [:int, :off_t, :int], :off_t
195195
attach_function :truffleposix_lstat, [:string, :pointer], :int, LIBTRUFFLEPOSIX
196-
attach_function :truffleposix_lstat_mode, [:string], :long, LIBTRUFFLEPOSIX
196+
attach_function :truffleposix_lstat_mode, [:string], :mode_t, LIBTRUFFLEPOSIX
197197
attach_function :truffleposix_major, [:dev_t], :uint, LIBTRUFFLEPOSIX
198198
attach_function :truffleposix_minor, [:dev_t], :uint, LIBTRUFFLEPOSIX
199199
attach_function :mkdir, [:string, :mode_t], :int
@@ -210,7 +210,7 @@ def self.attach_function_eagerly(native_name, argument_types, return_type,
210210
attach_function :seekdir, [:pointer, :long], :void
211211
attach_function :truffleposix_select, [:int, :pointer, :int, :pointer, :int, :pointer, :long], :int, LIBTRUFFLEPOSIX
212212
attach_function :truffleposix_stat, [:string, :pointer], :int, LIBTRUFFLEPOSIX
213-
attach_function :truffleposix_stat_mode, [:string], :long, LIBTRUFFLEPOSIX
213+
attach_function :truffleposix_stat_mode, [:string], :mode_t, LIBTRUFFLEPOSIX
214214
attach_function :truffleposix_stat_size, [:string], :long, LIBTRUFFLEPOSIX
215215
attach_function :symlink, [:string, :string], :int
216216
attach_function :telldir, [:pointer], :long

0 commit comments

Comments
 (0)