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
ErrnoExceptionvoid chmod(java.lang.String path,
int mode)
throws ErrnoException
ErrnoExceptionvoid close(FileDescriptor fd) throws ErrnoException
ErrnoExceptionFileDescriptor dup(FileDescriptor oldFd) throws ErrnoException
ErrnoExceptionFileDescriptor dup2(FileDescriptor oldFd, int newFd) throws ErrnoException
ErrnoExceptionjava.lang.String[] environ()
int fcntlVoid(FileDescriptor fd, int cmd) throws ErrnoException
ErrnoExceptionint fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException
ErrnoExceptionint fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException
ErrnoExceptionvoid fdatasync(FileDescriptor fd) throws ErrnoException
ErrnoExceptionStructStat fstat(FileDescriptor fd) throws ErrnoException
ErrnoExceptionStructStatFs fstatfs(FileDescriptor fd) throws ErrnoException
ErrnoExceptionvoid fsync(FileDescriptor fd) throws ErrnoException
ErrnoExceptionvoid ftruncate(FileDescriptor fd, long length) throws ErrnoException
ErrnoExceptionjava.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
ErrnoExceptionStructPasswd getpwuid(int uid) throws ErrnoException
ErrnoExceptionint getuid()
int ioctlInt(FileDescriptor fd, int cmd, int arg) throws ErrnoException
ErrnoExceptionboolean isatty(FileDescriptor fd)
void kill(int pid,
int signal)
throws ErrnoException
ErrnoExceptionvoid listen(FileDescriptor fd, int backlog) throws ErrnoException
ErrnoExceptionStructStat lstat(java.lang.String path) throws ErrnoException
ErrnoExceptionvoid mincore(long address,
long byteCount,
byte[] vector)
throws ErrnoException
ErrnoExceptionvoid mkdir(java.lang.String path,
int mode)
throws ErrnoException
ErrnoExceptionvoid mlock(long address,
long byteCount)
throws ErrnoException
ErrnoExceptionlong mmap(long address,
long byteCount,
int prot,
int flags,
FileDescriptor fd,
long offset)
throws ErrnoException
ErrnoExceptionvoid msync(long address,
long byteCount,
int flags)
throws ErrnoException
ErrnoExceptionvoid munlock(long address,
long byteCount)
throws ErrnoException
ErrnoExceptionvoid munmap(long address,
long byteCount)
throws ErrnoException
ErrnoExceptionFileDescriptor open(java.lang.String path, int flags, int mode) throws ErrnoException
ErrnoExceptionFileDescriptor[] pipe() throws ErrnoException
ErrnoExceptionint poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException
ErrnoExceptionint pread(FileDescriptor fd, java.nio.ByteBuffer buffer, long offset) throws ErrnoException
ErrnoExceptionint pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException
ErrnoExceptionint pwrite(FileDescriptor fd, java.nio.ByteBuffer buffer, long offset, int flags) throws ErrnoException
ErrnoExceptionint pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset, int flags) throws ErrnoException
ErrnoExceptionint read(FileDescriptor fd, java.nio.ByteBuffer buffer) throws ErrnoException
ErrnoExceptionint read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException
ErrnoExceptionint readv(FileDescriptor fd, java.lang.Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException
ErrnoExceptionvoid remove(java.lang.String path)
throws ErrnoException
ErrnoExceptionvoid rename(java.lang.String oldPath,
java.lang.String newPath)
throws ErrnoException
ErrnoExceptionvoid setegid(int egid)
throws ErrnoException
ErrnoExceptionvoid seteuid(int euid)
throws ErrnoException
ErrnoExceptionvoid setgid(int gid)
throws ErrnoException
ErrnoExceptionvoid setuid(int uid)
throws ErrnoException
ErrnoExceptionvoid shutdown(FileDescriptor fd, int how) throws ErrnoException
ErrnoExceptionFileDescriptor socket(int domain, int type, int protocol) throws ErrnoException
ErrnoExceptionStructStat stat(java.lang.String path) throws ErrnoException
ErrnoExceptionStructStatFs statfs(java.lang.String path) throws ErrnoException
ErrnoExceptionjava.lang.String strerror(int errno)
void symlink(java.lang.String oldPath,
java.lang.String newPath)
throws ErrnoException
ErrnoExceptionlong sysconf(int name)
StructUtsname uname()
int waitpid(int pid,
int status,
int options)
throws ErrnoException
ErrnoExceptionint write(FileDescriptor fd, java.nio.ByteBuffer buffer, int flags) throws ErrnoException
ErrnoExceptionint write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags) throws ErrnoException
ErrnoExceptionint writev(FileDescriptor fd, java.lang.Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException
ErrnoException