Top Description Constructors Methods
jnr.ffi

public final Class LastError

extends Object
Class Inheritance

Provides access to the unix errno and windows GetLastError() value.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static int

Returns:

An integer containing the errno value.
getLastError
(Runtime
FFI runtime to get errno for.
runtime
)

Gets the value of errno from the last native call.

public static void
setLastError(Runtime
FFI runtime to set errno for.
runtime
,
int
The value to set errno to.
error
)

Sets the native errno value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

LastErrorback to summary
private LastError()

Method Detail

getLastErrorback to summary
public static int getLastError(Runtime runtime)

Gets the value of errno from the last native call.

Parameters
runtime:Runtime

FFI runtime to get errno for.

Returns:int

An integer containing the errno value.

setLastErrorback to summary
public static void setLastError(Runtime runtime, int error)

Sets the native errno value.

Parameters
runtime:Runtime

FFI runtime to set errno for.

error:int

The value to set errno to.