org.jruby.ext
Class JRubyPOSIXHelper

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

public class JRubyPOSIXHelper
extends java.lang.Object


Constructor Summary
JRubyPOSIXHelper()
           
 
Method Summary
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 Detail

JRubyPOSIXHelper

public JRubyPOSIXHelper()
Method Detail

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


Copyright © 2002-2009 JRuby Team. All Rights Reserved.