public class ForwardingOs extends Object implements Os
Os methods but otherwise delegate.| Constructor and Description |
|---|
ForwardingOs(Os 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) |
protected final Os os
public ForwardingOs(Os os)
public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketException
accept in interface OsErrnoExceptionSocketExceptionpublic boolean access(String path, int mode) throws ErrnoException
access in interface OsErrnoExceptionpublic InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) throws GaiException
android_getaddrinfo in interface OsGaiExceptionpublic void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException
bind in interface OsErrnoExceptionSocketExceptionpublic void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException
bind in interface OsErrnoExceptionSocketExceptionpublic void chmod(String path, int mode) throws ErrnoException
chmod in interface OsErrnoExceptionpublic void chown(String path, int uid, int gid) throws ErrnoException
chown in interface OsErrnoExceptionpublic void close(FileDescriptor fd) throws ErrnoException
close in interface OsErrnoExceptionpublic void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException
connect in interface OsErrnoExceptionSocketExceptionpublic void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException
connect in interface OsErrnoExceptionSocketExceptionpublic FileDescriptor dup(FileDescriptor oldFd) throws ErrnoException
dup in interface OsErrnoExceptionpublic FileDescriptor dup2(FileDescriptor oldFd, int newFd) throws ErrnoException
dup2 in interface OsErrnoExceptionpublic void execv(String filename, String[] argv) throws ErrnoException
execv in interface OsErrnoExceptionpublic void execve(String filename, String[] argv, String[] envp) throws ErrnoException
execve in interface OsErrnoExceptionpublic void fchmod(FileDescriptor fd, int mode) throws ErrnoException
fchmod in interface OsErrnoExceptionpublic void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException
fchown in interface OsErrnoExceptionpublic int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException, InterruptedIOException
fcntlFlock in interface OsErrnoExceptionInterruptedIOExceptionpublic int fcntlInt(FileDescriptor fd, int cmd, int arg) throws ErrnoException
fcntlInt in interface OsErrnoExceptionpublic int fcntlVoid(FileDescriptor fd, int cmd) throws ErrnoException
fcntlVoid in interface OsErrnoExceptionpublic void fdatasync(FileDescriptor fd) throws ErrnoException
fdatasync in interface OsErrnoExceptionpublic StructStat fstat(FileDescriptor fd) throws ErrnoException
fstat in interface OsErrnoExceptionpublic StructStatVfs fstatvfs(FileDescriptor fd) throws ErrnoException
fstatvfs in interface OsErrnoExceptionpublic void fsync(FileDescriptor fd) throws ErrnoException
fsync in interface OsErrnoExceptionpublic void ftruncate(FileDescriptor fd, long length) throws ErrnoException
ftruncate in interface OsErrnoExceptionpublic String gai_strerror(int error)
gai_strerror in interface Ospublic String getnameinfo(InetAddress address, int flags) throws GaiException
getnameinfo in interface OsGaiExceptionpublic SocketAddress getpeername(FileDescriptor fd) throws ErrnoException
getpeername in interface OsErrnoExceptionpublic int getpgid(int pid)
throws ErrnoException
getpgid in interface OsErrnoExceptionpublic StructPasswd getpwnam(String name) throws ErrnoException
getpwnam in interface OsErrnoExceptionpublic StructPasswd getpwuid(int uid) throws ErrnoException
getpwuid in interface OsErrnoExceptionpublic SocketAddress getsockname(FileDescriptor fd) throws ErrnoException
getsockname in interface OsErrnoExceptionpublic int getsockoptByte(FileDescriptor fd, int level, int option) throws ErrnoException
getsockoptByte in interface OsErrnoExceptionpublic InetAddress getsockoptInAddr(FileDescriptor fd, int level, int option) throws ErrnoException
getsockoptInAddr in interface OsErrnoExceptionpublic int getsockoptInt(FileDescriptor fd, int level, int option) throws ErrnoException
getsockoptInt in interface OsErrnoExceptionpublic StructLinger getsockoptLinger(FileDescriptor fd, int level, int option) throws ErrnoException
getsockoptLinger in interface OsErrnoExceptionpublic StructTimeval getsockoptTimeval(FileDescriptor fd, int level, int option) throws ErrnoException
getsockoptTimeval in interface OsErrnoExceptionpublic StructUcred getsockoptUcred(FileDescriptor fd, int level, int option) throws ErrnoException
getsockoptUcred in interface OsErrnoExceptionpublic int getxattr(String path, String name, byte[] outValue) throws ErrnoException
getxattr in interface OsErrnoExceptionpublic String if_indextoname(int index)
if_indextoname in interface Ospublic InetAddress inet_pton(int family, String address)
public InetAddress ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) throws ErrnoException
ioctlInetAddress in interface OsErrnoExceptionpublic int ioctlInt(FileDescriptor fd, int cmd, MutableInt arg) throws ErrnoException
ioctlInt in interface OsErrnoExceptionpublic boolean isatty(FileDescriptor fd)
public void kill(int pid,
int signal)
throws ErrnoException
kill in interface OsErrnoExceptionpublic void lchown(String path, int uid, int gid) throws ErrnoException
lchown in interface OsErrnoExceptionpublic void link(String oldPath, String newPath) throws ErrnoException
link in interface OsErrnoExceptionpublic void listen(FileDescriptor fd, int backlog) throws ErrnoException
listen in interface OsErrnoExceptionpublic long lseek(FileDescriptor fd, long offset, int whence) throws ErrnoException
lseek in interface OsErrnoExceptionpublic StructStat lstat(String path) throws ErrnoException
lstat in interface OsErrnoExceptionpublic void mincore(long address,
long byteCount,
byte[] vector)
throws ErrnoException
mincore in interface OsErrnoExceptionpublic void mkdir(String path, int mode) throws ErrnoException
mkdir in interface OsErrnoExceptionpublic void mkfifo(String path, int mode) throws ErrnoException
mkfifo in interface OsErrnoExceptionpublic void mlock(long address,
long byteCount)
throws ErrnoException
mlock in interface OsErrnoExceptionpublic long mmap(long address,
long byteCount,
int prot,
int flags,
FileDescriptor fd,
long offset)
throws ErrnoException
mmap in interface OsErrnoExceptionpublic void msync(long address,
long byteCount,
int flags)
throws ErrnoException
msync in interface OsErrnoExceptionpublic void munlock(long address,
long byteCount)
throws ErrnoException
munlock in interface OsErrnoExceptionpublic void munmap(long address,
long byteCount)
throws ErrnoException
munmap in interface OsErrnoExceptionpublic FileDescriptor open(String path, int flags, int mode) throws ErrnoException
open in interface OsErrnoExceptionpublic FileDescriptor[] pipe2(int flags) throws ErrnoException
pipe2 in interface OsErrnoExceptionpublic int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException
poll in interface OsErrnoExceptionpublic void posix_fallocate(FileDescriptor fd, long offset, long length) throws ErrnoException
posix_fallocate in interface OsErrnoExceptionpublic int prctl(int option,
long arg2,
long arg3,
long arg4,
long arg5)
throws ErrnoException
prctl in interface OsErrnoExceptionpublic int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException, InterruptedIOException
pread in interface OsErrnoExceptionInterruptedIOExceptionpublic int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException
pread in interface OsErrnoExceptionInterruptedIOExceptionpublic int pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException, InterruptedIOException
pwrite in interface OsErrnoExceptionInterruptedIOExceptionpublic int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException
pwrite in interface OsErrnoExceptionInterruptedIOExceptionpublic int read(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException, InterruptedIOException
read in interface OsErrnoExceptionInterruptedIOExceptionpublic int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException
read in interface OsErrnoExceptionInterruptedIOExceptionpublic String readlink(String path) throws ErrnoException
readlink in interface OsErrnoExceptionpublic int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException
readv in interface OsErrnoExceptionInterruptedIOExceptionpublic int recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException
recvfrom in interface OsErrnoExceptionSocketExceptionpublic int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException
recvfrom in interface OsErrnoExceptionSocketExceptionpublic void remove(String path) throws ErrnoException
remove in interface OsErrnoExceptionpublic void removexattr(String path, String name) throws ErrnoException
removexattr in interface OsErrnoExceptionpublic void rename(String oldPath, String newPath) throws ErrnoException
rename in interface OsErrnoExceptionpublic long sendfile(FileDescriptor outFd, FileDescriptor inFd, MutableLong inOffset, long byteCount) throws ErrnoException
sendfile in interface OsErrnoExceptionpublic int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException
sendto in interface OsErrnoExceptionSocketExceptionpublic int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException
sendto in interface OsErrnoExceptionSocketExceptionpublic int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, SocketAddress address) throws ErrnoException, SocketException
sendto in interface OsErrnoExceptionSocketExceptionpublic void setegid(int egid)
throws ErrnoException
setegid in interface OsErrnoExceptionpublic void setenv(String name, String value, boolean overwrite) throws ErrnoException
setenv in interface OsErrnoExceptionpublic void seteuid(int euid)
throws ErrnoException
seteuid in interface OsErrnoExceptionpublic void setgid(int gid)
throws ErrnoException
setgid in interface OsErrnoExceptionpublic void setpgid(int pid,
int pgid)
throws ErrnoException
setpgid in interface OsErrnoExceptionpublic void setregid(int rgid,
int egid)
throws ErrnoException
setregid in interface OsErrnoExceptionpublic void setreuid(int ruid,
int euid)
throws ErrnoException
setreuid in interface OsErrnoExceptionpublic int setsid()
throws ErrnoException
setsid in interface OsErrnoExceptionpublic void setsockoptByte(FileDescriptor fd, int level, int option, int value) throws ErrnoException
setsockoptByte in interface OsErrnoExceptionpublic void setsockoptIfreq(FileDescriptor fd, int level, int option, String value) throws ErrnoException
setsockoptIfreq in interface OsErrnoExceptionpublic void setsockoptInt(FileDescriptor fd, int level, int option, int value) throws ErrnoException
setsockoptInt in interface OsErrnoExceptionpublic void setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) throws ErrnoException
setsockoptIpMreqn in interface OsErrnoExceptionpublic void setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) throws ErrnoException
setsockoptGroupReq in interface OsErrnoExceptionpublic void setsockoptGroupSourceReq(FileDescriptor fd, int level, int option, StructGroupSourceReq value) throws ErrnoException
setsockoptGroupSourceReq in interface OsErrnoExceptionpublic void setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) throws ErrnoException
setsockoptLinger in interface OsErrnoExceptionpublic void setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) throws ErrnoException
setsockoptTimeval in interface OsErrnoExceptionpublic void setuid(int uid)
throws ErrnoException
setuid in interface OsErrnoExceptionpublic void setxattr(String path, String name, byte[] value, int flags) throws ErrnoException
setxattr in interface OsErrnoExceptionpublic void shutdown(FileDescriptor fd, int how) throws ErrnoException
shutdown in interface OsErrnoExceptionpublic FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException
socket in interface OsErrnoExceptionpublic void socketpair(int domain,
int type,
int protocol,
FileDescriptor fd1,
FileDescriptor fd2)
throws ErrnoException
socketpair in interface OsErrnoExceptionpublic StructStat stat(String path) throws ErrnoException
stat in interface OsErrnoExceptionpublic StructStatVfs statvfs(String path) throws ErrnoException
statvfs in interface OsErrnoExceptionpublic void symlink(String oldPath, String newPath) throws ErrnoException
symlink in interface OsErrnoExceptionpublic void tcdrain(FileDescriptor fd) throws ErrnoException
tcdrain in interface OsErrnoExceptionpublic void tcsendbreak(FileDescriptor fd, int duration) throws ErrnoException
tcsendbreak in interface OsErrnoExceptionpublic StructUtsname uname()
public void unlink(String pathname) throws ErrnoException
unlink in interface OsErrnoExceptionpublic void unsetenv(String name) throws ErrnoException
unsetenv in interface OsErrnoExceptionpublic int waitpid(int pid,
MutableInt status,
int options)
throws ErrnoException
waitpid in interface OsErrnoExceptionpublic int write(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException, InterruptedIOException
write in interface OsErrnoExceptionInterruptedIOExceptionpublic int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException
write in interface OsErrnoExceptionInterruptedIOExceptionpublic int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException
writev in interface OsErrnoExceptionInterruptedIOException