public class BlockGuardOs extends ForwardingOs
os| Constructor and Description |
|---|
BlockGuardOs(Os os) |
| Modifier and Type | Method and Description |
|---|---|
FileDescriptor |
accept(FileDescriptor fd,
SocketAddress peerAddress) |
boolean |
access(String path,
int mode) |
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 |
fchmod(FileDescriptor fd,
int mode) |
void |
fchown(FileDescriptor fd,
int uid,
int gid) |
void |
fdatasync(FileDescriptor fd) |
StructStat |
fstat(FileDescriptor fd) |
StructStatVfs |
fstatvfs(FileDescriptor fd) |
void |
fsync(FileDescriptor fd) |
void |
ftruncate(FileDescriptor fd,
long length) |
void |
lchown(String path,
int uid,
int gid) |
void |
link(String oldPath,
String newPath) |
long |
lseek(FileDescriptor fd,
long offset,
int whence) |
StructStat |
lstat(String path) |
void |
mkdir(String path,
int mode) |
void |
mkfifo(String path,
int mode) |
FileDescriptor |
open(String path,
int flags,
int mode) |
int |
poll(StructPollfd[] fds,
int timeoutMs) |
void |
posix_fallocate(FileDescriptor fd,
long offset,
long length) |
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 |
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,
ByteBuffer buffer,
int flags,
InetAddress inetAddress,
int port) |
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) |
void |
symlink(String oldPath,
String newPath) |
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) |
android_getaddrinfo, bind, bind, connect, dup, dup2, environ, execv, execve, fcntlFlock, fcntlInt, fcntlVoid, gai_strerror, getegid, getenv, geteuid, getgid, getnameinfo, getpeername, getpgid, getpid, getppid, getpwnam, getpwuid, getsockname, getsockoptByte, getsockoptInAddr, getsockoptInt, getsockoptLinger, getsockoptTimeval, getsockoptUcred, gettid, getuid, getxattr, if_indextoname, inet_pton, ioctlInetAddress, ioctlInt, isatty, kill, listen, mincore, mlock, mmap, msync, munlock, munmap, pipe2, prctl, removexattr, sendto, setegid, setenv, seteuid, setgid, setpgid, setregid, setreuid, setsid, setsockoptByte, setsockoptGroupReq, setsockoptGroupSourceReq, setsockoptIfreq, setsockoptInt, setsockoptIpMreqn, setsockoptLinger, setsockoptTimeval, setuid, setxattr, shutdown, strerror, strsignal, sysconf, tcdrain, tcsendbreak, umask, uname, unlink, unsetenv, waitpidpublic BlockGuardOs(Os os)
public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketException
accept in interface Osaccept in class ForwardingOsErrnoExceptionSocketExceptionpublic boolean access(String path, int mode) throws ErrnoException
access in interface Osaccess in class ForwardingOsErrnoExceptionpublic void chmod(String path, int mode) throws ErrnoException
chmod in interface Oschmod in class ForwardingOsErrnoExceptionpublic void chown(String path, int uid, int gid) throws ErrnoException
chown in interface Oschown in class ForwardingOsErrnoExceptionpublic void close(FileDescriptor fd) throws ErrnoException
close in interface Osclose in class ForwardingOsErrnoExceptionpublic void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException
connect in interface Osconnect in class ForwardingOsErrnoExceptionSocketExceptionpublic void fchmod(FileDescriptor fd, int mode) throws ErrnoException
fchmod in interface Osfchmod in class ForwardingOsErrnoExceptionpublic void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException
fchown in interface Osfchown in class ForwardingOsErrnoExceptionpublic void fdatasync(FileDescriptor fd) throws ErrnoException
fdatasync in interface Osfdatasync in class ForwardingOsErrnoExceptionpublic StructStat fstat(FileDescriptor fd) throws ErrnoException
fstat in interface Osfstat in class ForwardingOsErrnoExceptionpublic StructStatVfs fstatvfs(FileDescriptor fd) throws ErrnoException
fstatvfs in interface Osfstatvfs in class ForwardingOsErrnoExceptionpublic void fsync(FileDescriptor fd) throws ErrnoException
fsync in interface Osfsync in class ForwardingOsErrnoExceptionpublic void ftruncate(FileDescriptor fd, long length) throws ErrnoException
ftruncate in interface Osftruncate in class ForwardingOsErrnoExceptionpublic void lchown(String path, int uid, int gid) throws ErrnoException
lchown in interface Oslchown in class ForwardingOsErrnoExceptionpublic void link(String oldPath, String newPath) throws ErrnoException
link in interface Oslink in class ForwardingOsErrnoExceptionpublic long lseek(FileDescriptor fd, long offset, int whence) throws ErrnoException
lseek in interface Oslseek in class ForwardingOsErrnoExceptionpublic StructStat lstat(String path) throws ErrnoException
lstat in interface Oslstat in class ForwardingOsErrnoExceptionpublic void mkdir(String path, int mode) throws ErrnoException
mkdir in interface Osmkdir in class ForwardingOsErrnoExceptionpublic void mkfifo(String path, int mode) throws ErrnoException
mkfifo in interface Osmkfifo in class ForwardingOsErrnoExceptionpublic FileDescriptor open(String path, int flags, int mode) throws ErrnoException
open in interface Osopen in class ForwardingOsErrnoExceptionpublic int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException
poll in interface Ospoll in class ForwardingOsErrnoExceptionpublic void posix_fallocate(FileDescriptor fd, long offset, long length) throws ErrnoException
posix_fallocate in interface Osposix_fallocate in class ForwardingOsErrnoExceptionpublic int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException, InterruptedIOException
pread in interface Ospread in class ForwardingOsErrnoExceptionInterruptedIOExceptionpublic int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException
pread in interface Ospread in class ForwardingOsErrnoExceptionInterruptedIOExceptionpublic int pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException, InterruptedIOException
pwrite in interface Ospwrite in class ForwardingOsErrnoExceptionInterruptedIOExceptionpublic int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException
pwrite in interface Ospwrite in class ForwardingOsErrnoExceptionInterruptedIOExceptionpublic int read(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException, InterruptedIOException
read in interface Osread in class ForwardingOsErrnoExceptionInterruptedIOExceptionpublic int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException
read in interface Osread in class ForwardingOsErrnoExceptionInterruptedIOExceptionpublic String readlink(String path) throws ErrnoException
readlink in interface Osreadlink in class ForwardingOsErrnoExceptionpublic int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException
readv in interface Osreadv in class ForwardingOsErrnoExceptionInterruptedIOExceptionpublic int recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException
recvfrom in interface Osrecvfrom in class ForwardingOsErrnoExceptionSocketExceptionpublic int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException
recvfrom in interface Osrecvfrom in class ForwardingOsErrnoExceptionSocketExceptionpublic void remove(String path) throws ErrnoException
remove in interface Osremove in class ForwardingOsErrnoExceptionpublic void rename(String oldPath, String newPath) throws ErrnoException
rename in interface Osrename in class ForwardingOsErrnoExceptionpublic long sendfile(FileDescriptor outFd, FileDescriptor inFd, MutableLong inOffset, long byteCount) throws ErrnoException
sendfile in interface Ossendfile in class ForwardingOsErrnoExceptionpublic int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException
sendto in interface Ossendto in class ForwardingOsErrnoExceptionSocketExceptionpublic int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException
sendto in interface Ossendto in class ForwardingOsErrnoExceptionSocketExceptionpublic FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException
socket in interface Ossocket in class ForwardingOsErrnoExceptionpublic void socketpair(int domain,
int type,
int protocol,
FileDescriptor fd1,
FileDescriptor fd2)
throws ErrnoException
socketpair in interface Ossocketpair in class ForwardingOsErrnoExceptionpublic StructStat stat(String path) throws ErrnoException
stat in interface Osstat in class ForwardingOsErrnoExceptionpublic StructStatVfs statvfs(String path) throws ErrnoException
statvfs in interface Osstatvfs in class ForwardingOsErrnoExceptionpublic void symlink(String oldPath, String newPath) throws ErrnoException
symlink in interface Ossymlink in class ForwardingOsErrnoExceptionpublic int write(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException, InterruptedIOException
write in interface Oswrite in class ForwardingOsErrnoExceptionInterruptedIOExceptionpublic int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException
write in interface Oswrite in class ForwardingOsErrnoExceptionInterruptedIOExceptionpublic int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException
writev in interface Oswritev in class ForwardingOsErrnoExceptionInterruptedIOException