public interface Os
Modifier and Type | Method and Description |
---|---|
boolean |
access(java.lang.String path,
int mode) |
void |
chmod(java.lang.String path,
int mode) |
void |
close(FileDescriptor fd) |
FileDescriptor |
dup(FileDescriptor oldFd) |
FileDescriptor |
dup2(FileDescriptor oldFd,
int newFd) |
java.lang.String[] |
environ() |
int |
fcntlFlock(FileDescriptor fd,
int cmd,
StructFlock arg) |
int |
fcntlLong(FileDescriptor fd,
int cmd,
long arg) |
int |
fcntlVoid(FileDescriptor fd,
int cmd) |
void |
fdatasync(FileDescriptor fd) |
StructStat |
fstat(FileDescriptor fd) |
StructStatFs |
fstatfs(FileDescriptor fd) |
void |
fsync(FileDescriptor fd) |
void |
ftruncate(FileDescriptor fd,
long length) |
java.lang.String |
gai_strerror(int error) |
int |
getegid() |
java.lang.String |
getenv(java.lang.String name) |
int |
geteuid() |
int |
getgid() |
int |
getpid() |
int |
getppid() |
StructPasswd |
getpwnam(java.lang.String name) |
StructPasswd |
getpwuid(int uid) |
int |
getuid() |
int |
ioctlInt(FileDescriptor fd,
int cmd,
int arg) |
boolean |
isatty(FileDescriptor fd) |
void |
kill(int pid,
int signal) |
void |
listen(FileDescriptor fd,
int backlog) |
StructStat |
lstat(java.lang.String path) |
void |
mincore(long address,
long byteCount,
byte[] vector) |
void |
mkdir(java.lang.String path,
int mode) |
void |
mlock(long address,
long byteCount) |
long |
mmap(long address,
long byteCount,
int prot,
int flags,
FileDescriptor fd,
long offset) |
void |
msync(long address,
long byteCount,
int flags) |
void |
munlock(long address,
long byteCount) |
void |
munmap(long address,
long byteCount) |
FileDescriptor |
open(java.lang.String path,
int flags,
int mode) |
FileDescriptor[] |
pipe() |
int |
poll(StructPollfd[] fds,
int timeoutMs) |
int |
pread(FileDescriptor fd,
byte[] bytes,
int byteOffset,
int byteCount,
long offset) |
int |
pread(FileDescriptor fd,
java.nio.ByteBuffer buffer,
long offset) |
int |
pwrite(FileDescriptor fd,
byte[] bytes,
int byteOffset,
int byteCount,
long offset,
int flags) |
int |
pwrite(FileDescriptor fd,
java.nio.ByteBuffer buffer,
long offset,
int flags) |
int |
read(FileDescriptor fd,
byte[] bytes,
int byteOffset,
int byteCount) |
int |
read(FileDescriptor fd,
java.nio.ByteBuffer buffer) |
int |
readv(FileDescriptor fd,
java.lang.Object[] buffers,
int[] offsets,
int[] byteCounts) |
void |
remove(java.lang.String path) |
void |
rename(java.lang.String oldPath,
java.lang.String newPath) |
void |
setegid(int egid) |
void |
seteuid(int euid) |
void |
setgid(int gid) |
void |
setuid(int uid) |
void |
shutdown(FileDescriptor fd,
int how) |
FileDescriptor |
socket(int domain,
int type,
int protocol) |
StructStat |
stat(java.lang.String path) |
StructStatFs |
statfs(java.lang.String path) |
java.lang.String |
strerror(int errno) |
void |
symlink(java.lang.String oldPath,
java.lang.String newPath) |
long |
sysconf(int name) |
StructUtsname |
uname() |
int |
waitpid(int pid,
int status,
int options) |
int |
write(FileDescriptor fd,
byte[] bytes,
int byteOffset,
int byteCount,
int flags) |
int |
write(FileDescriptor fd,
java.nio.ByteBuffer buffer,
int flags) |
int |
writev(FileDescriptor fd,
java.lang.Object[] buffers,
int[] offsets,
int[] byteCounts) |
boolean access(java.lang.String path, int mode) throws ErrnoException
ErrnoException
void chmod(java.lang.String path, int mode) throws ErrnoException
ErrnoException
void close(FileDescriptor fd) throws ErrnoException
ErrnoException
FileDescriptor dup(FileDescriptor oldFd) throws ErrnoException
ErrnoException
FileDescriptor dup2(FileDescriptor oldFd, int newFd) throws ErrnoException
ErrnoException
java.lang.String[] environ()
int fcntlVoid(FileDescriptor fd, int cmd) throws ErrnoException
ErrnoException
int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException
ErrnoException
int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException
ErrnoException
void fdatasync(FileDescriptor fd) throws ErrnoException
ErrnoException
StructStat fstat(FileDescriptor fd) throws ErrnoException
ErrnoException
StructStatFs fstatfs(FileDescriptor fd) throws ErrnoException
ErrnoException
void fsync(FileDescriptor fd) throws ErrnoException
ErrnoException
void ftruncate(FileDescriptor fd, long length) throws ErrnoException
ErrnoException
java.lang.String gai_strerror(int error)
int getegid()
int geteuid()
int getgid()
java.lang.String getenv(java.lang.String name)
int getpid()
int getppid()
StructPasswd getpwnam(java.lang.String name) throws ErrnoException
ErrnoException
StructPasswd getpwuid(int uid) throws ErrnoException
ErrnoException
int getuid()
int ioctlInt(FileDescriptor fd, int cmd, int arg) throws ErrnoException
ErrnoException
boolean isatty(FileDescriptor fd)
void kill(int pid, int signal) throws ErrnoException
ErrnoException
void listen(FileDescriptor fd, int backlog) throws ErrnoException
ErrnoException
StructStat lstat(java.lang.String path) throws ErrnoException
ErrnoException
void mincore(long address, long byteCount, byte[] vector) throws ErrnoException
ErrnoException
void mkdir(java.lang.String path, int mode) throws ErrnoException
ErrnoException
void mlock(long address, long byteCount) throws ErrnoException
ErrnoException
long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException
ErrnoException
void msync(long address, long byteCount, int flags) throws ErrnoException
ErrnoException
void munlock(long address, long byteCount) throws ErrnoException
ErrnoException
void munmap(long address, long byteCount) throws ErrnoException
ErrnoException
FileDescriptor open(java.lang.String path, int flags, int mode) throws ErrnoException
ErrnoException
FileDescriptor[] pipe() throws ErrnoException
ErrnoException
int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException
ErrnoException
int pread(FileDescriptor fd, java.nio.ByteBuffer buffer, long offset) throws ErrnoException
ErrnoException
int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException
ErrnoException
int pwrite(FileDescriptor fd, java.nio.ByteBuffer buffer, long offset, int flags) throws ErrnoException
ErrnoException
int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset, int flags) throws ErrnoException
ErrnoException
int read(FileDescriptor fd, java.nio.ByteBuffer buffer) throws ErrnoException
ErrnoException
int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException
ErrnoException
int readv(FileDescriptor fd, java.lang.Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException
ErrnoException
void remove(java.lang.String path) throws ErrnoException
ErrnoException
void rename(java.lang.String oldPath, java.lang.String newPath) throws ErrnoException
ErrnoException
void setegid(int egid) throws ErrnoException
ErrnoException
void seteuid(int euid) throws ErrnoException
ErrnoException
void setgid(int gid) throws ErrnoException
ErrnoException
void setuid(int uid) throws ErrnoException
ErrnoException
void shutdown(FileDescriptor fd, int how) throws ErrnoException
ErrnoException
FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException
ErrnoException
StructStat stat(java.lang.String path) throws ErrnoException
ErrnoException
StructStatFs statfs(java.lang.String path) throws ErrnoException
ErrnoException
java.lang.String strerror(int errno)
void symlink(java.lang.String oldPath, java.lang.String newPath) throws ErrnoException
ErrnoException
long sysconf(int name)
StructUtsname uname()
int waitpid(int pid, int status, int options) throws ErrnoException
ErrnoException
int write(FileDescriptor fd, java.nio.ByteBuffer buffer, int flags) throws ErrnoException
ErrnoException
int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags) throws ErrnoException
ErrnoException
int writev(FileDescriptor fd, java.lang.Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException
ErrnoException