Package org.jruby.ext
Class JRubyPOSIXHelper
java.lang.Object
org.jruby.ext.JRubyPOSIXHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkErrno
(Ruby runtime, int result) Helper for handling common POSIX situations where a negative return value from a function call indicates an error, and errno must be consulted to determine how exactly the function failed.
-
Constructor Details
-
JRubyPOSIXHelper
public JRubyPOSIXHelper()
-
-
Method Details
-
checkErrno
Helper for handling common POSIX situations where a negative return value from a function call indicates an error, and errno must be consulted to determine how exactly the function failed.- Parameters:
runtime
- Ruby runtimeresult
- return value of a POSIX call
-