"

2013 FRC Java API

"

com.sun.squawk.platform.windows
Class LibCUtil

java.lang.Object
  extended by com.sun.squawk.platform.windows.LibCUtil

public class LibCUtil
extends Object

Helper statics for LibC.


Method Summary
static int errCheckNeg(int result)
          Utility class that checks result.
static int errno()
          Return the system errno value from the last native function call made by this Java thread.
static int errWarnNeg(int result)
          Utility class that warns if the result indicates an error.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

errCheckNeg

public static int errCheckNeg(int result)
                       throws IOException
Utility class that checks result. If result indicates an error (-1), then reads errno() and throws exception.

Parameters:
result -
Returns:
result
Throws:
IOException

errWarnNeg

public static int errWarnNeg(int result)
Utility class that warns if the result indicates an error. If result indicates an error (-1), then reads errno() and prints a warning message.

Parameters:
result -
Returns:
result

errno

public static int errno()
Return the system errno value from the last native function call made by this Java thread.

Returns:

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"