class LinuxSystem
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
LinuxSystem.FbVarScreenInfo
FbVarScreenInfo wraps the C structure fb_var_screeninfo, defined in
linux/fb.h
|
(package private) static class |
LinuxSystem.InputAbsInfo
InputAbsInfo wraps the C structure input_absinfo, defined in
linux/input.h
|
Modifier and Type | Field and Description |
---|---|
private static int |
__SID |
(package private) static int |
_SC_LONG_BIT |
(package private) static int |
EAGAIN |
(package private) static int |
ENXIO |
(package private) static int |
FB_ACTIVATE_NOW |
(package private) static int |
FB_ACTIVATE_VBL |
(package private) static int |
FB_BLANK_UNBLANK |
(package private) static int |
FBIOBLANK |
(package private) static int |
FBIOGET_VSCREENINFO |
(package private) static int |
FBIOPAN_DISPLAY |
(package private) static int |
FBIOPUT_VSCREENINFO |
(package private) static int |
FLUSHRW |
(package private) static int |
I_FLUSH |
private static LinuxSystem |
instance |
(package private) static long |
MAP_ANONYMOUS |
(package private) static long |
MAP_FAILED |
(package private) static long |
MAP_PRIVATE |
(package private) static long |
MAP_SHARED |
(package private) static int |
O_NONBLOCK |
(package private) static int |
O_RDONLY |
(package private) static int |
O_RDWR |
(package private) static int |
O_WRONLY |
private static java.security.Permission |
permission |
(package private) static long |
PROT_READ |
(package private) static long |
PROT_WRITE |
(package private) static int |
RTLD_GLOBAL |
(package private) static int |
RTLD_LAZY |
(package private) static int |
S_IRWXU |
(package private) static int |
SEEK_SET |
Modifier | Constructor and Description |
---|---|
private |
LinuxSystem() |
Modifier and Type | Method and Description |
---|---|
private static void |
checkPermissions() |
(package private) int |
close(long fd) |
(package private) int |
dlclose(long handle) |
(package private) java.lang.String |
dlerror() |
(package private) long |
dlopen(java.lang.String filename,
int flag) |
(package private) long |
dlsym(long handle,
java.lang.String symbol) |
(package private) int |
errno() |
(package private) int |
EVIOCGABS(int type) |
(package private) java.lang.String |
getErrorMessage()
Returns a string description of the last error reported by a system call
|
(package private) static LinuxSystem |
getLinuxSystem()
Obtains the single instance of LinuxSystem.
|
(package private) int |
ioctl(long fd,
int request,
long data) |
(package private) int |
IOR(int type,
int number,
int size) |
(package private) int |
IOW(int type,
int number,
int size) |
(package private) int |
IOWR(int type,
int number,
int size) |
(package private) void |
loadLibrary()
Loads native libraries required to make system calls using LinuxSystem
methods.
|
(package private) long |
lseek(long fd,
long offset,
int whence) |
(package private) long |
memcpy(long destAddr,
long srcAddr,
long length) |
(package private) int |
mkfifo(java.lang.String pathname,
int mode) |
(package private) long |
mmap(long addr,
long length,
long prot,
long flags,
long fd,
long offset) |
(package private) int |
munmap(long addr,
long length) |
(package private) long |
open(java.lang.String path,
int flags) |
(package private) long |
read(long fd,
java.nio.ByteBuffer buf,
int position,
int limit)
Calls the "read" function defined in unistd.h.
|
(package private) void |
setenv(java.lang.String key,
java.lang.String value,
boolean overwrite) |
(package private) java.lang.String |
strerror(int errnum) |
(package private) long |
sysconf(int name)
Calls the "sysconf" function defined in unistd.h
|
(package private) long |
write(long fd,
java.nio.ByteBuffer buf,
int position,
int limit)
Calls the "write" function defined in unistd.h.
|
private static java.security.Permission permission
private static LinuxSystem instance
static final int O_RDONLY
static final int O_WRONLY
static final int O_RDWR
static final int O_NONBLOCK
static final int SEEK_SET
static final int _SC_LONG_BIT
static final int FBIOGET_VSCREENINFO
static final int FBIOPUT_VSCREENINFO
static final int FBIOPAN_DISPLAY
static final int FBIOBLANK
static final int FB_BLANK_UNBLANK
static final int FB_ACTIVATE_NOW
static final int FB_ACTIVATE_VBL
private static int __SID
static int I_FLUSH
static int FLUSHRW
static final int ENXIO
static final int EAGAIN
static final int RTLD_LAZY
static final int RTLD_GLOBAL
static final long PROT_READ
static final long PROT_WRITE
static final long MAP_PRIVATE
static final long MAP_ANONYMOUS
static final long MAP_SHARED
static final long MAP_FAILED
static int S_IRWXU
static LinuxSystem getLinuxSystem()
private static void checkPermissions()
void loadLibrary()
void setenv(java.lang.String key, java.lang.String value, boolean overwrite)
long open(java.lang.String path, int flags)
int close(long fd)
long lseek(long fd, long offset, int whence)
long write(long fd, java.nio.ByteBuffer buf, int position, int limit)
fd
- The file descriptor to which to writebuf
- The buffer from which to writeposition
- The index in buf of the first byte to writelimit
- The index in buf up to which to writelong read(long fd, java.nio.ByteBuffer buf, int position, int limit)
fd
- The file descriptor from which to readbuf
- The buffer to which to writeposition
- The index in buf to which to being reading datalimit
- The index in buf up to which to read datalong sysconf(int name)
name
- The name of the POSIX variable to queryint EVIOCGABS(int type)
int ioctl(long fd, int request, long data)
int IOW(int type, int number, int size)
int IOR(int type, int number, int size)
int IOWR(int type, int number, int size)
int errno()
java.lang.String strerror(int errnum)
long dlopen(java.lang.String filename, int flag)
java.lang.String dlerror()
long dlsym(long handle, java.lang.String symbol)
int dlclose(long handle)
long mmap(long addr, long length, long prot, long flags, long fd, long offset)
int munmap(long addr, long length)
long memcpy(long destAddr, long srcAddr, long length)
java.lang.String getErrorMessage()
int mkfifo(java.lang.String pathname, int mode)