Package org.jruby.ext

Class JRubyPOSIXHelper

java.lang.Object
org.jruby.ext.JRubyPOSIXHelper

public class JRubyPOSIXHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JRubyPOSIXHelper

      public JRubyPOSIXHelper()
  • Method Details

    • checkErrno

      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 runtime
      result - return value of a POSIX call