public interface Os
| Modifier and Type | Method and Description |
|---|---|
FileDescriptor |
accept(FileDescriptor fd,
SocketAddress peerAddress) |
boolean |
access(String path,
int mode) |
InetAddress[] |
android_getaddrinfo(String node,
StructAddrinfo hints,
int netId) |
void |
bind(FileDescriptor fd,
InetAddress address,
int port) |
void |
bind(FileDescriptor fd,
SocketAddress address) |
void |
chmod(String path,
int mode) |
void |
chown(String path,
int uid,
int gid) |
void |
close(FileDescriptor fd) |
void |
connect(FileDescriptor fd,
InetAddress address,
int port) |
void |
connect(FileDescriptor fd,
SocketAddress address) |
FileDescriptor |
dup(FileDescriptor oldFd) |
FileDescriptor |
dup2(FileDescriptor oldFd,
int newFd) |
String[] |
environ() |
void |
execv(String filename,
String[] argv) |
void |
execve(String filename,
String[] argv,
String[] envp) |
void |
fchmod(FileDescriptor fd,
int mode) |
void |
fchown(FileDescriptor fd,
int uid,
int gid) |
int |
fcntlFlock(FileDescriptor fd,
int cmd,
StructFlock arg) |
int |
fcntlInt(FileDescriptor fd,
int cmd,
int arg) |
int |
fcntlVoid(FileDescriptor fd,
int cmd) |
void |
fdatasync(FileDescriptor fd) |
StructStat |
fstat(FileDescriptor fd) |
StructStatVfs |
fstatvfs(FileDescriptor fd) |
void |
fsync(FileDescriptor fd) |
void |
ftruncate(FileDescriptor fd,
long length) |
String |
gai_strerror(int error) |
int |
getegid() |
String |
getenv(String name) |
int |
geteuid() |
int |
getgid() |
String |
getnameinfo(InetAddress address,
int flags) |
SocketAddress |
getpeername(FileDescriptor fd) |
int |
getpgid(int pid) |
int |
getpid() |
int |
getppid() |
StructPasswd |
getpwnam(String name) |
StructPasswd |
getpwuid(int uid) |
SocketAddress |
getsockname(FileDescriptor fd) |
int |
getsockoptByte(FileDescriptor fd,
int level,
int option) |
InetAddress |
getsockoptInAddr(FileDescriptor fd,
int level,
int option) |
int |
getsockoptInt(FileDescriptor fd,
int level,
int option) |
StructLinger |
getsockoptLinger(FileDescriptor fd,
int level,
int option) |
StructTimeval |
getsockoptTimeval(FileDescriptor fd,
int level,
int option) |
StructUcred |
getsockoptUcred(FileDescriptor fd,
int level,
int option) |
int |
gettid() |
int |
getuid() |
int |
getxattr(String path,
String name,
byte[] outValue) |
String |
if_indextoname(int index) |
InetAddress |
inet_pton(int family,
String address) |
InetAddress |
ioctlInetAddress(FileDescriptor fd,
int cmd,
String interfaceName) |
int |
ioctlInt(FileDescriptor fd,
int cmd,
MutableInt arg) |
boolean |
isatty(FileDescriptor fd) |
void |
kill(int pid,
int signal) |
void |
lchown(String path,
int uid,
int gid) |
void |
link(String oldPath,
String newPath) |
void |
listen(FileDescriptor fd,
int backlog) |
long |
lseek(FileDescriptor fd,
long offset,
int whence) |
StructStat |
lstat(String path) |
void |
mincore(long address,
long byteCount,
byte[] vector) |
void |
mkdir(String path,
int mode) |
void |
mkfifo(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(String path,
int flags,
int mode) |
FileDescriptor[] |
pipe2(int flags) |
int |
poll(StructPollfd[] fds,
int timeoutMs) |
void |
posix_fallocate(FileDescriptor fd,
long offset,
long length) |
int |
prctl(int option,
long arg2,
long arg3,
long arg4,
long arg5) |
int |
pread(FileDescriptor fd,
byte[] bytes,
int byteOffset,
int byteCount,
long offset) |
int |
pread(FileDescriptor fd,
ByteBuffer buffer,
long offset) |
int |
pwrite(FileDescriptor fd,
byte[] bytes,
int byteOffset,
int byteCount,
long offset) |
int |
pwrite(FileDescriptor fd,
ByteBuffer buffer,
long offset) |
int |
read(FileDescriptor fd,
byte[] bytes,
int byteOffset,
int byteCount) |
int |
read(FileDescriptor fd,
ByteBuffer buffer) |
String |
readlink(String path) |
int |
readv(FileDescriptor fd,
Object[] buffers,
int[] offsets,
int[] byteCounts) |
int |
recvfrom(FileDescriptor fd,
byte[] bytes,
int byteOffset,
int byteCount,
int flags,
InetSocketAddress srcAddress) |
int |
recvfrom(FileDescriptor fd,
ByteBuffer buffer,
int flags,
InetSocketAddress srcAddress) |
void |
remove(String path) |
void |
removexattr(String path,
String name) |
void |
rename(String oldPath,
String newPath) |
long |
sendfile(FileDescriptor outFd,
FileDescriptor inFd,
MutableLong inOffset,
long byteCount) |
int |
sendto(FileDescriptor fd,
byte[] bytes,
int byteOffset,
int byteCount,
int flags,
InetAddress inetAddress,
int port) |
int |
sendto(FileDescriptor fd,
byte[] bytes,
int byteOffset,
int byteCount,
int flags,
SocketAddress address) |
int |
sendto(FileDescriptor fd,
ByteBuffer buffer,
int flags,
InetAddress inetAddress,
int port) |
void |
setegid(int egid) |
void |
setenv(String name,
String value,
boolean overwrite) |
void |
seteuid(int euid) |
void |
setgid(int gid) |
void |
setpgid(int pid,
int pgid) |
void |
setregid(int rgid,
int egid) |
void |
setreuid(int ruid,
int euid) |
int |
setsid() |
void |
setsockoptByte(FileDescriptor fd,
int level,
int option,
int value) |
void |
setsockoptGroupReq(FileDescriptor fd,
int level,
int option,
StructGroupReq value) |
void |
setsockoptGroupSourceReq(FileDescriptor fd,
int level,
int option,
StructGroupSourceReq value) |
void |
setsockoptIfreq(FileDescriptor fd,
int level,
int option,
String value) |
void |
setsockoptInt(FileDescriptor fd,
int level,
int option,
int value) |
void |
setsockoptIpMreqn(FileDescriptor fd,
int level,
int option,
int value) |
void |
setsockoptLinger(FileDescriptor fd,
int level,
int option,
StructLinger value) |
void |
setsockoptTimeval(FileDescriptor fd,
int level,
int option,
StructTimeval value) |
void |
setuid(int uid) |
void |
setxattr(String path,
String name,
byte[] value,
int flags) |
void |
shutdown(FileDescriptor fd,
int how) |
FileDescriptor |
socket(int domain,
int type,
int protocol) |
void |
socketpair(int domain,
int type,
int protocol,
FileDescriptor fd1,
FileDescriptor fd2) |
StructStat |
stat(String path) |
StructStatVfs |
statvfs(String path) |
String |
strerror(int errno) |
String |
strsignal(int signal) |
void |
symlink(String oldPath,
String newPath) |
long |
sysconf(int name) |
void |
tcdrain(FileDescriptor fd) |
void |
tcsendbreak(FileDescriptor fd,
int duration) |
int |
umask(int mask) |
StructUtsname |
uname() |
void |
unlink(String pathname) |
void |
unsetenv(String name) |
int |
waitpid(int pid,
MutableInt status,
int options) |
int |
write(FileDescriptor fd,
byte[] bytes,
int byteOffset,
int byteCount) |
int |
write(FileDescriptor fd,
ByteBuffer buffer) |
int |
writev(FileDescriptor fd,
Object[] buffers,
int[] offsets,
int[] byteCounts) |
FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketException
ErrnoExceptionSocketExceptionboolean access(String path, int mode) throws ErrnoException
ErrnoExceptionInetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) throws GaiException
GaiExceptionvoid bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException
ErrnoExceptionSocketExceptionvoid bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException
ErrnoExceptionSocketExceptionvoid chmod(String path, int mode) throws ErrnoException
ErrnoExceptionvoid chown(String path, int uid, int gid) throws ErrnoException
ErrnoExceptionvoid close(FileDescriptor fd) throws ErrnoException
ErrnoExceptionvoid connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException
ErrnoExceptionSocketExceptionvoid connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException
ErrnoExceptionSocketExceptionFileDescriptor dup(FileDescriptor oldFd) throws ErrnoException
ErrnoExceptionFileDescriptor dup2(FileDescriptor oldFd, int newFd) throws ErrnoException
ErrnoExceptionString[] environ()
void execv(String filename, String[] argv) throws ErrnoException
ErrnoExceptionvoid execve(String filename, String[] argv, String[] envp) throws ErrnoException
ErrnoExceptionvoid fchmod(FileDescriptor fd, int mode) throws ErrnoException
ErrnoExceptionvoid fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException
ErrnoExceptionint fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException, InterruptedIOException
ErrnoExceptionInterruptedIOExceptionint fcntlInt(FileDescriptor fd, int cmd, int arg) throws ErrnoException
ErrnoExceptionint fcntlVoid(FileDescriptor fd, int cmd) throws ErrnoException
ErrnoExceptionvoid fdatasync(FileDescriptor fd) throws ErrnoException
ErrnoExceptionStructStat fstat(FileDescriptor fd) throws ErrnoException
ErrnoExceptionStructStatVfs fstatvfs(FileDescriptor fd) throws ErrnoException
ErrnoExceptionvoid fsync(FileDescriptor fd) throws ErrnoException
ErrnoExceptionvoid ftruncate(FileDescriptor fd, long length) throws ErrnoException
ErrnoExceptionString gai_strerror(int error)
int getegid()
int geteuid()
int getgid()
String getnameinfo(InetAddress address, int flags) throws GaiException
GaiExceptionSocketAddress getpeername(FileDescriptor fd) throws ErrnoException
ErrnoExceptionint getpgid(int pid)
throws ErrnoException
ErrnoExceptionint getpid()
int getppid()
StructPasswd getpwnam(String name) throws ErrnoException
ErrnoExceptionStructPasswd getpwuid(int uid) throws ErrnoException
ErrnoExceptionSocketAddress getsockname(FileDescriptor fd) throws ErrnoException
ErrnoExceptionint getsockoptByte(FileDescriptor fd, int level, int option) throws ErrnoException
ErrnoExceptionInetAddress getsockoptInAddr(FileDescriptor fd, int level, int option) throws ErrnoException
ErrnoExceptionint getsockoptInt(FileDescriptor fd, int level, int option) throws ErrnoException
ErrnoExceptionStructLinger getsockoptLinger(FileDescriptor fd, int level, int option) throws ErrnoException
ErrnoExceptionStructTimeval getsockoptTimeval(FileDescriptor fd, int level, int option) throws ErrnoException
ErrnoExceptionStructUcred getsockoptUcred(FileDescriptor fd, int level, int option) throws ErrnoException
ErrnoExceptionint gettid()
int getuid()
int getxattr(String path, String name, byte[] outValue) throws ErrnoException
ErrnoExceptionString if_indextoname(int index)
InetAddress inet_pton(int family, String address)
InetAddress ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) throws ErrnoException
ErrnoExceptionint ioctlInt(FileDescriptor fd, int cmd, MutableInt arg) throws ErrnoException
ErrnoExceptionboolean isatty(FileDescriptor fd)
void kill(int pid,
int signal)
throws ErrnoException
ErrnoExceptionvoid lchown(String path, int uid, int gid) throws ErrnoException
ErrnoExceptionvoid link(String oldPath, String newPath) throws ErrnoException
ErrnoExceptionvoid listen(FileDescriptor fd, int backlog) throws ErrnoException
ErrnoExceptionlong lseek(FileDescriptor fd, long offset, int whence) throws ErrnoException
ErrnoExceptionStructStat lstat(String path) throws ErrnoException
ErrnoExceptionvoid mincore(long address,
long byteCount,
byte[] vector)
throws ErrnoException
ErrnoExceptionvoid mkdir(String path, int mode) throws ErrnoException
ErrnoExceptionvoid mkfifo(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(String path, int flags, int mode) throws ErrnoException
ErrnoExceptionFileDescriptor[] pipe2(int flags) throws ErrnoException
ErrnoExceptionint poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException
ErrnoExceptionvoid posix_fallocate(FileDescriptor fd, long offset, long length) throws ErrnoException
ErrnoExceptionint prctl(int option,
long arg2,
long arg3,
long arg4,
long arg5)
throws ErrnoException
ErrnoExceptionint pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException, InterruptedIOException
ErrnoExceptionInterruptedIOExceptionint pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException
ErrnoExceptionInterruptedIOExceptionint pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException, InterruptedIOException
ErrnoExceptionInterruptedIOExceptionint pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException
ErrnoExceptionInterruptedIOExceptionint read(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException, InterruptedIOException
ErrnoExceptionInterruptedIOExceptionint read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException
ErrnoExceptionInterruptedIOExceptionString readlink(String path) throws ErrnoException
ErrnoExceptionint readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException
ErrnoExceptionInterruptedIOExceptionint recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException
ErrnoExceptionSocketExceptionint recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException
ErrnoExceptionSocketExceptionvoid remove(String path) throws ErrnoException
ErrnoExceptionvoid removexattr(String path, String name) throws ErrnoException
ErrnoExceptionvoid rename(String oldPath, String newPath) throws ErrnoException
ErrnoExceptionint sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException
ErrnoExceptionSocketExceptionint sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException
ErrnoExceptionSocketExceptionint sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, SocketAddress address) throws ErrnoException, SocketException
ErrnoExceptionSocketExceptionlong sendfile(FileDescriptor outFd, FileDescriptor inFd, MutableLong inOffset, long byteCount) throws ErrnoException
ErrnoExceptionvoid setegid(int egid)
throws ErrnoException
ErrnoExceptionvoid setenv(String name, String value, boolean overwrite) throws ErrnoException
ErrnoExceptionvoid seteuid(int euid)
throws ErrnoException
ErrnoExceptionvoid setgid(int gid)
throws ErrnoException
ErrnoExceptionvoid setpgid(int pid,
int pgid)
throws ErrnoException
ErrnoExceptionvoid setregid(int rgid,
int egid)
throws ErrnoException
ErrnoExceptionvoid setreuid(int ruid,
int euid)
throws ErrnoException
ErrnoExceptionint setsid()
throws ErrnoException
ErrnoExceptionvoid setsockoptByte(FileDescriptor fd, int level, int option, int value) throws ErrnoException
ErrnoExceptionvoid setsockoptIfreq(FileDescriptor fd, int level, int option, String value) throws ErrnoException
ErrnoExceptionvoid setsockoptInt(FileDescriptor fd, int level, int option, int value) throws ErrnoException
ErrnoExceptionvoid setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) throws ErrnoException
ErrnoExceptionvoid setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) throws ErrnoException
ErrnoExceptionvoid setsockoptGroupSourceReq(FileDescriptor fd, int level, int option, StructGroupSourceReq value) throws ErrnoException
ErrnoExceptionvoid setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) throws ErrnoException
ErrnoExceptionvoid setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) throws ErrnoException
ErrnoExceptionvoid setuid(int uid)
throws ErrnoException
ErrnoExceptionvoid setxattr(String path, String name, byte[] value, int flags) throws ErrnoException
ErrnoExceptionvoid shutdown(FileDescriptor fd, int how) throws ErrnoException
ErrnoExceptionFileDescriptor socket(int domain, int type, int protocol) throws ErrnoException
ErrnoExceptionvoid socketpair(int domain,
int type,
int protocol,
FileDescriptor fd1,
FileDescriptor fd2)
throws ErrnoException
ErrnoExceptionStructStat stat(String path) throws ErrnoException
ErrnoExceptionStructStatVfs statvfs(String path) throws ErrnoException
ErrnoExceptionString strerror(int errno)
String strsignal(int signal)
void symlink(String oldPath, String newPath) throws ErrnoException
ErrnoExceptionlong sysconf(int name)
void tcdrain(FileDescriptor fd) throws ErrnoException
ErrnoExceptionvoid tcsendbreak(FileDescriptor fd, int duration) throws ErrnoException
ErrnoExceptionint umask(int mask)
StructUtsname uname()
void unlink(String pathname) throws ErrnoException
ErrnoExceptionvoid unsetenv(String name) throws ErrnoException
ErrnoExceptionint waitpid(int pid,
MutableInt status,
int options)
throws ErrnoException
ErrnoExceptionint write(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException, InterruptedIOException
ErrnoExceptionInterruptedIOExceptionint write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException
ErrnoExceptionInterruptedIOExceptionint writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException
ErrnoExceptionInterruptedIOException