Modifier and Type | Field and Description |
---|---|
private static boolean |
initialized |
Constructor and Description |
---|
NativeLibc() |
Modifier and Type | Method and Description |
---|---|
int |
close(int fd) |
int |
fcntl(int fd,
int cmd,
int arg) |
int |
ioctl(int fd,
int cmd,
int arg) |
int |
ioctl(int fd,
int cmd,
Pointer arg) |
Pointer |
mmap(Pointer addr,
NativeLong len,
int prot,
int flags,
int fd,
NativeLong off) |
int |
msync(Pointer addr,
NativeLong len,
int flags) |
int |
munmap(Pointer addr,
NativeLong len) |
int |
open(java.lang.String path,
int flags,
int mode) |
int |
read(int fd,
java.nio.Buffer buffer,
int count) |
int |
write(int fd,
java.nio.Buffer buffer,
int count) |
public int fcntl(int fd, int cmd, int arg) throws LastErrorException
public int ioctl(int fd, int cmd, int arg) throws LastErrorException
public int ioctl(int fd, int cmd, Pointer arg) throws LastErrorException
public int open(java.lang.String path, int flags, int mode) throws LastErrorException
public int close(int fd) throws LastErrorException
public int write(int fd, java.nio.Buffer buffer, int count) throws LastErrorException
public int read(int fd, java.nio.Buffer buffer, int count) throws LastErrorException
public Pointer mmap(Pointer addr, NativeLong len, int prot, int flags, int fd, NativeLong off) throws LastErrorException
public int munmap(Pointer addr, NativeLong len) throws LastErrorException