Top Constructors Methods
org.jruby.ext

public Class JRubyPOSIXHelper

extends Object
Class Inheritance
Imports
jnr.constants.platform.Errno, org.jruby.Ruby, .RubyClass, org.jruby.exceptions.RaiseException

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
checkErrno(Ruby
Ruby runtime
runtime
,
int
return value of a POSIX call
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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JRubyPOSIXHelperback to summary
public JRubyPOSIXHelper()

Method Detail

checkErrnoback to summary
public static 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.

Parameters
runtime:Ruby

Ruby runtime

result:int

return value of a POSIX call