Package libcore.io
Class ForwardingOs
- java.lang.Object
-
- libcore.io.ForwardingOs
-
- All Implemented Interfaces:
Os
- Direct Known Subclasses:
BlockGuardOs
public class ForwardingOs extends Object implements Os
Subclass this if you want to override someOsmethods but otherwise delegate.
-
-
Constructor Summary
Constructors Constructor Description ForwardingOs(Os os)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileDescriptoraccept(FileDescriptor fd, SocketAddress peerAddress)booleanaccess(String path, int mode)InetAddress[]android_getaddrinfo(String node, StructAddrinfo hints, int netId)voidbind(FileDescriptor fd, InetAddress address, int port)voidbind(FileDescriptor fd, SocketAddress address)voidchmod(String path, int mode)voidchown(String path, int uid, int gid)voidclose(FileDescriptor fd)voidconnect(FileDescriptor fd, InetAddress address, int port)voidconnect(FileDescriptor fd, SocketAddress address)FileDescriptordup(FileDescriptor oldFd)FileDescriptordup2(FileDescriptor oldFd, int newFd)String[]environ()voidexecv(String filename, String[] argv)voidexecve(String filename, String[] argv, String[] envp)voidfchmod(FileDescriptor fd, int mode)voidfchown(FileDescriptor fd, int uid, int gid)intfcntlFlock(FileDescriptor fd, int cmd, StructFlock arg)intfcntlInt(FileDescriptor fd, int cmd, int arg)intfcntlVoid(FileDescriptor fd, int cmd)voidfdatasync(FileDescriptor fd)StructStatfstat(FileDescriptor fd)StructStatVfsfstatvfs(FileDescriptor fd)voidfsync(FileDescriptor fd)voidftruncate(FileDescriptor fd, long length)Stringgai_strerror(int error)intgetegid()Stringgetenv(String name)intgeteuid()intgetgid()Stringgetnameinfo(InetAddress address, int flags)SocketAddressgetpeername(FileDescriptor fd)intgetpgid(int pid)intgetpid()intgetppid()StructPasswdgetpwnam(String name)StructPasswdgetpwuid(int uid)SocketAddressgetsockname(FileDescriptor fd)intgetsockoptByte(FileDescriptor fd, int level, int option)InetAddressgetsockoptInAddr(FileDescriptor fd, int level, int option)intgetsockoptInt(FileDescriptor fd, int level, int option)StructLingergetsockoptLinger(FileDescriptor fd, int level, int option)StructTimevalgetsockoptTimeval(FileDescriptor fd, int level, int option)StructUcredgetsockoptUcred(FileDescriptor fd, int level, int option)intgettid()intgetuid()intgetxattr(String path, String name, byte[] outValue)Stringif_indextoname(int index)InetAddressinet_pton(int family, String address)InetAddressioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName)intioctlInt(FileDescriptor fd, int cmd, MutableInt arg)booleanisatty(FileDescriptor fd)voidkill(int pid, int signal)voidlchown(String path, int uid, int gid)voidlink(String oldPath, String newPath)voidlisten(FileDescriptor fd, int backlog)longlseek(FileDescriptor fd, long offset, int whence)StructStatlstat(String path)voidmincore(long address, long byteCount, byte[] vector)voidmkdir(String path, int mode)voidmkfifo(String path, int mode)voidmlock(long address, long byteCount)longmmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset)voidmsync(long address, long byteCount, int flags)voidmunlock(long address, long byteCount)voidmunmap(long address, long byteCount)FileDescriptoropen(String path, int flags, int mode)FileDescriptor[]pipe2(int flags)intpoll(StructPollfd[] fds, int timeoutMs)voidposix_fallocate(FileDescriptor fd, long offset, long length)intprctl(int option, long arg2, long arg3, long arg4, long arg5)intpread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset)intpread(FileDescriptor fd, ByteBuffer buffer, long offset)intpwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset)intpwrite(FileDescriptor fd, ByteBuffer buffer, long offset)intread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount)intread(FileDescriptor fd, ByteBuffer buffer)Stringreadlink(String path)intreadv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts)intrecvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress)intrecvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress)voidremove(String path)voidremovexattr(String path, String name)voidrename(String oldPath, String newPath)longsendfile(FileDescriptor outFd, FileDescriptor inFd, MutableLong inOffset, long byteCount)intsendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port)intsendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, SocketAddress address)intsendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port)voidsetegid(int egid)voidsetenv(String name, String value, boolean overwrite)voidseteuid(int euid)voidsetgid(int gid)voidsetpgid(int pid, int pgid)voidsetregid(int rgid, int egid)voidsetreuid(int ruid, int euid)intsetsid()voidsetsockoptByte(FileDescriptor fd, int level, int option, int value)voidsetsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value)voidsetsockoptGroupSourceReq(FileDescriptor fd, int level, int option, StructGroupSourceReq value)voidsetsockoptIfreq(FileDescriptor fd, int level, int option, String value)voidsetsockoptInt(FileDescriptor fd, int level, int option, int value)voidsetsockoptIpMreqn(FileDescriptor fd, int level, int option, int value)voidsetsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value)voidsetsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value)voidsetuid(int uid)voidsetxattr(String path, String name, byte[] value, int flags)voidshutdown(FileDescriptor fd, int how)FileDescriptorsocket(int domain, int type, int protocol)voidsocketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2)StructStatstat(String path)StructStatVfsstatvfs(String path)Stringstrerror(int errno)Stringstrsignal(int signal)voidsymlink(String oldPath, String newPath)longsysconf(int name)voidtcdrain(FileDescriptor fd)voidtcsendbreak(FileDescriptor fd, int duration)intumask(int mask)StructUtsnameuname()voidunlink(String pathname)voidunsetenv(String name)intwaitpid(int pid, MutableInt status, int options)intwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount)intwrite(FileDescriptor fd, ByteBuffer buffer)intwritev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts)
-
-
-
Field Detail
-
os
protected final Os os
-
-
Constructor Detail
-
ForwardingOs
public ForwardingOs(Os os)
-
-
Method Detail
-
accept
public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, SocketException
- Specified by:
acceptin interfaceOs- Throws:
ErrnoExceptionSocketException
-
access
public boolean access(String path, int mode) throws ErrnoException
- Specified by:
accessin interfaceOs- Throws:
ErrnoException
-
android_getaddrinfo
public InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) throws GaiException
- Specified by:
android_getaddrinfoin interfaceOs- Throws:
GaiException
-
bind
public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException
- Specified by:
bindin interfaceOs- Throws:
ErrnoExceptionSocketException
-
bind
public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException
- Specified by:
bindin interfaceOs- Throws:
ErrnoExceptionSocketException
-
chmod
public void chmod(String path, int mode) throws ErrnoException
- Specified by:
chmodin interfaceOs- Throws:
ErrnoException
-
chown
public void chown(String path, int uid, int gid) throws ErrnoException
- Specified by:
chownin interfaceOs- Throws:
ErrnoException
-
close
public void close(FileDescriptor fd) throws ErrnoException
- Specified by:
closein interfaceOs- Throws:
ErrnoException
-
connect
public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException
- Specified by:
connectin interfaceOs- Throws:
ErrnoExceptionSocketException
-
connect
public void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException
- Specified by:
connectin interfaceOs- Throws:
ErrnoExceptionSocketException
-
dup
public FileDescriptor dup(FileDescriptor oldFd) throws ErrnoException
- Specified by:
dupin interfaceOs- Throws:
ErrnoException
-
dup2
public FileDescriptor dup2(FileDescriptor oldFd, int newFd) throws ErrnoException
- Specified by:
dup2in interfaceOs- Throws:
ErrnoException
-
execv
public void execv(String filename, String[] argv) throws ErrnoException
- Specified by:
execvin interfaceOs- Throws:
ErrnoException
-
execve
public void execve(String filename, String[] argv, String[] envp) throws ErrnoException
- Specified by:
execvein interfaceOs- Throws:
ErrnoException
-
fchmod
public void fchmod(FileDescriptor fd, int mode) throws ErrnoException
- Specified by:
fchmodin interfaceOs- Throws:
ErrnoException
-
fchown
public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException
- Specified by:
fchownin interfaceOs- Throws:
ErrnoException
-
fcntlFlock
public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException, InterruptedIOException
- Specified by:
fcntlFlockin interfaceOs- Throws:
ErrnoExceptionInterruptedIOException
-
fcntlInt
public int fcntlInt(FileDescriptor fd, int cmd, int arg) throws ErrnoException
- Specified by:
fcntlIntin interfaceOs- Throws:
ErrnoException
-
fcntlVoid
public int fcntlVoid(FileDescriptor fd, int cmd) throws ErrnoException
- Specified by:
fcntlVoidin interfaceOs- Throws:
ErrnoException
-
fdatasync
public void fdatasync(FileDescriptor fd) throws ErrnoException
- Specified by:
fdatasyncin interfaceOs- Throws:
ErrnoException
-
fstat
public StructStat fstat(FileDescriptor fd) throws ErrnoException
- Specified by:
fstatin interfaceOs- Throws:
ErrnoException
-
fstatvfs
public StructStatVfs fstatvfs(FileDescriptor fd) throws ErrnoException
- Specified by:
fstatvfsin interfaceOs- Throws:
ErrnoException
-
fsync
public void fsync(FileDescriptor fd) throws ErrnoException
- Specified by:
fsyncin interfaceOs- Throws:
ErrnoException
-
ftruncate
public void ftruncate(FileDescriptor fd, long length) throws ErrnoException
- Specified by:
ftruncatein interfaceOs- Throws:
ErrnoException
-
gai_strerror
public String gai_strerror(int error)
- Specified by:
gai_strerrorin interfaceOs
-
getnameinfo
public String getnameinfo(InetAddress address, int flags) throws GaiException
- Specified by:
getnameinfoin interfaceOs- Throws:
GaiException
-
getpeername
public SocketAddress getpeername(FileDescriptor fd) throws ErrnoException
- Specified by:
getpeernamein interfaceOs- Throws:
ErrnoException
-
getpgid
public int getpgid(int pid) throws ErrnoException- Specified by:
getpgidin interfaceOs- Throws:
ErrnoException
-
getpwnam
public StructPasswd getpwnam(String name) throws ErrnoException
- Specified by:
getpwnamin interfaceOs- Throws:
ErrnoException
-
getpwuid
public StructPasswd getpwuid(int uid) throws ErrnoException
- Specified by:
getpwuidin interfaceOs- Throws:
ErrnoException
-
getsockname
public SocketAddress getsockname(FileDescriptor fd) throws ErrnoException
- Specified by:
getsocknamein interfaceOs- Throws:
ErrnoException
-
getsockoptByte
public int getsockoptByte(FileDescriptor fd, int level, int option) throws ErrnoException
- Specified by:
getsockoptBytein interfaceOs- Throws:
ErrnoException
-
getsockoptInAddr
public InetAddress getsockoptInAddr(FileDescriptor fd, int level, int option) throws ErrnoException
- Specified by:
getsockoptInAddrin interfaceOs- Throws:
ErrnoException
-
getsockoptInt
public int getsockoptInt(FileDescriptor fd, int level, int option) throws ErrnoException
- Specified by:
getsockoptIntin interfaceOs- Throws:
ErrnoException
-
getsockoptLinger
public StructLinger getsockoptLinger(FileDescriptor fd, int level, int option) throws ErrnoException
- Specified by:
getsockoptLingerin interfaceOs- Throws:
ErrnoException
-
getsockoptTimeval
public StructTimeval getsockoptTimeval(FileDescriptor fd, int level, int option) throws ErrnoException
- Specified by:
getsockoptTimevalin interfaceOs- Throws:
ErrnoException
-
getsockoptUcred
public StructUcred getsockoptUcred(FileDescriptor fd, int level, int option) throws ErrnoException
- Specified by:
getsockoptUcredin interfaceOs- Throws:
ErrnoException
-
getxattr
public int getxattr(String path, String name, byte[] outValue) throws ErrnoException
- Specified by:
getxattrin interfaceOs- Throws:
ErrnoException
-
if_indextoname
public String if_indextoname(int index)
- Specified by:
if_indextonamein interfaceOs
-
inet_pton
public InetAddress inet_pton(int family, String address)
-
ioctlInetAddress
public InetAddress ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) throws ErrnoException
- Specified by:
ioctlInetAddressin interfaceOs- Throws:
ErrnoException
-
ioctlInt
public int ioctlInt(FileDescriptor fd, int cmd, MutableInt arg) throws ErrnoException
- Specified by:
ioctlIntin interfaceOs- Throws:
ErrnoException
-
isatty
public boolean isatty(FileDescriptor fd)
-
kill
public void kill(int pid, int signal) throws ErrnoException- Specified by:
killin interfaceOs- Throws:
ErrnoException
-
lchown
public void lchown(String path, int uid, int gid) throws ErrnoException
- Specified by:
lchownin interfaceOs- Throws:
ErrnoException
-
link
public void link(String oldPath, String newPath) throws ErrnoException
- Specified by:
linkin interfaceOs- Throws:
ErrnoException
-
listen
public void listen(FileDescriptor fd, int backlog) throws ErrnoException
- Specified by:
listenin interfaceOs- Throws:
ErrnoException
-
lseek
public long lseek(FileDescriptor fd, long offset, int whence) throws ErrnoException
- Specified by:
lseekin interfaceOs- Throws:
ErrnoException
-
lstat
public StructStat lstat(String path) throws ErrnoException
- Specified by:
lstatin interfaceOs- Throws:
ErrnoException
-
mincore
public void mincore(long address, long byteCount, byte[] vector) throws ErrnoException- Specified by:
mincorein interfaceOs- Throws:
ErrnoException
-
mkdir
public void mkdir(String path, int mode) throws ErrnoException
- Specified by:
mkdirin interfaceOs- Throws:
ErrnoException
-
mkfifo
public void mkfifo(String path, int mode) throws ErrnoException
- Specified by:
mkfifoin interfaceOs- Throws:
ErrnoException
-
mlock
public void mlock(long address, long byteCount) throws ErrnoException- Specified by:
mlockin interfaceOs- Throws:
ErrnoException
-
mmap
public long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException- Specified by:
mmapin interfaceOs- Throws:
ErrnoException
-
msync
public void msync(long address, long byteCount, int flags) throws ErrnoException- Specified by:
msyncin interfaceOs- Throws:
ErrnoException
-
munlock
public void munlock(long address, long byteCount) throws ErrnoException- Specified by:
munlockin interfaceOs- Throws:
ErrnoException
-
munmap
public void munmap(long address, long byteCount) throws ErrnoException- Specified by:
munmapin interfaceOs- Throws:
ErrnoException
-
open
public FileDescriptor open(String path, int flags, int mode) throws ErrnoException
- Specified by:
openin interfaceOs- Throws:
ErrnoException
-
pipe2
public FileDescriptor[] pipe2(int flags) throws ErrnoException
- Specified by:
pipe2in interfaceOs- Throws:
ErrnoException
-
poll
public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException
- Specified by:
pollin interfaceOs- Throws:
ErrnoException
-
posix_fallocate
public void posix_fallocate(FileDescriptor fd, long offset, long length) throws ErrnoException
- Specified by:
posix_fallocatein interfaceOs- Throws:
ErrnoException
-
prctl
public int prctl(int option, long arg2, long arg3, long arg4, long arg5) throws ErrnoException- Specified by:
prctlin interfaceOs- Throws:
ErrnoException
-
pread
public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException, InterruptedIOException
- Specified by:
preadin interfaceOs- Throws:
ErrnoExceptionInterruptedIOException
-
pread
public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException
- Specified by:
preadin interfaceOs- Throws:
ErrnoExceptionInterruptedIOException
-
pwrite
public int pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException, InterruptedIOException
- Specified by:
pwritein interfaceOs- Throws:
ErrnoExceptionInterruptedIOException
-
pwrite
public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException
- Specified by:
pwritein interfaceOs- Throws:
ErrnoExceptionInterruptedIOException
-
read
public int read(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException, InterruptedIOException
- Specified by:
readin interfaceOs- Throws:
ErrnoExceptionInterruptedIOException
-
read
public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException
- Specified by:
readin interfaceOs- Throws:
ErrnoExceptionInterruptedIOException
-
readlink
public String readlink(String path) throws ErrnoException
- Specified by:
readlinkin interfaceOs- Throws:
ErrnoException
-
readv
public int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException
- Specified by:
readvin interfaceOs- Throws:
ErrnoExceptionInterruptedIOException
-
recvfrom
public int recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException
- Specified by:
recvfromin interfaceOs- Throws:
ErrnoExceptionSocketException
-
recvfrom
public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException
- Specified by:
recvfromin interfaceOs- Throws:
ErrnoExceptionSocketException
-
remove
public void remove(String path) throws ErrnoException
- Specified by:
removein interfaceOs- Throws:
ErrnoException
-
removexattr
public void removexattr(String path, String name) throws ErrnoException
- Specified by:
removexattrin interfaceOs- Throws:
ErrnoException
-
rename
public void rename(String oldPath, String newPath) throws ErrnoException
- Specified by:
renamein interfaceOs- Throws:
ErrnoException
-
sendfile
public long sendfile(FileDescriptor outFd, FileDescriptor inFd, MutableLong inOffset, long byteCount) throws ErrnoException
- Specified by:
sendfilein interfaceOs- Throws:
ErrnoException
-
sendto
public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException
- Specified by:
sendtoin interfaceOs- Throws:
ErrnoExceptionSocketException
-
sendto
public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException
- Specified by:
sendtoin interfaceOs- Throws:
ErrnoExceptionSocketException
-
sendto
public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, SocketAddress address) throws ErrnoException, SocketException
- Specified by:
sendtoin interfaceOs- Throws:
ErrnoExceptionSocketException
-
setegid
public void setegid(int egid) throws ErrnoException- Specified by:
setegidin interfaceOs- Throws:
ErrnoException
-
setenv
public void setenv(String name, String value, boolean overwrite) throws ErrnoException
- Specified by:
setenvin interfaceOs- Throws:
ErrnoException
-
seteuid
public void seteuid(int euid) throws ErrnoException- Specified by:
seteuidin interfaceOs- Throws:
ErrnoException
-
setgid
public void setgid(int gid) throws ErrnoException- Specified by:
setgidin interfaceOs- Throws:
ErrnoException
-
setpgid
public void setpgid(int pid, int pgid) throws ErrnoException- Specified by:
setpgidin interfaceOs- Throws:
ErrnoException
-
setregid
public void setregid(int rgid, int egid) throws ErrnoException- Specified by:
setregidin interfaceOs- Throws:
ErrnoException
-
setreuid
public void setreuid(int ruid, int euid) throws ErrnoException- Specified by:
setreuidin interfaceOs- Throws:
ErrnoException
-
setsid
public int setsid() throws ErrnoException- Specified by:
setsidin interfaceOs- Throws:
ErrnoException
-
setsockoptByte
public void setsockoptByte(FileDescriptor fd, int level, int option, int value) throws ErrnoException
- Specified by:
setsockoptBytein interfaceOs- Throws:
ErrnoException
-
setsockoptIfreq
public void setsockoptIfreq(FileDescriptor fd, int level, int option, String value) throws ErrnoException
- Specified by:
setsockoptIfreqin interfaceOs- Throws:
ErrnoException
-
setsockoptInt
public void setsockoptInt(FileDescriptor fd, int level, int option, int value) throws ErrnoException
- Specified by:
setsockoptIntin interfaceOs- Throws:
ErrnoException
-
setsockoptIpMreqn
public void setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) throws ErrnoException
- Specified by:
setsockoptIpMreqnin interfaceOs- Throws:
ErrnoException
-
setsockoptGroupReq
public void setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) throws ErrnoException
- Specified by:
setsockoptGroupReqin interfaceOs- Throws:
ErrnoException
-
setsockoptGroupSourceReq
public void setsockoptGroupSourceReq(FileDescriptor fd, int level, int option, StructGroupSourceReq value) throws ErrnoException
- Specified by:
setsockoptGroupSourceReqin interfaceOs- Throws:
ErrnoException
-
setsockoptLinger
public void setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) throws ErrnoException
- Specified by:
setsockoptLingerin interfaceOs- Throws:
ErrnoException
-
setsockoptTimeval
public void setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) throws ErrnoException
- Specified by:
setsockoptTimevalin interfaceOs- Throws:
ErrnoException
-
setuid
public void setuid(int uid) throws ErrnoException- Specified by:
setuidin interfaceOs- Throws:
ErrnoException
-
setxattr
public void setxattr(String path, String name, byte[] value, int flags) throws ErrnoException
- Specified by:
setxattrin interfaceOs- Throws:
ErrnoException
-
shutdown
public void shutdown(FileDescriptor fd, int how) throws ErrnoException
- Specified by:
shutdownin interfaceOs- Throws:
ErrnoException
-
socket
public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException
- Specified by:
socketin interfaceOs- Throws:
ErrnoException
-
socketpair
public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException- Specified by:
socketpairin interfaceOs- Throws:
ErrnoException
-
stat
public StructStat stat(String path) throws ErrnoException
- Specified by:
statin interfaceOs- Throws:
ErrnoException
-
statvfs
public StructStatVfs statvfs(String path) throws ErrnoException
- Specified by:
statvfsin interfaceOs- Throws:
ErrnoException
-
symlink
public void symlink(String oldPath, String newPath) throws ErrnoException
- Specified by:
symlinkin interfaceOs- Throws:
ErrnoException
-
tcdrain
public void tcdrain(FileDescriptor fd) throws ErrnoException
- Specified by:
tcdrainin interfaceOs- Throws:
ErrnoException
-
tcsendbreak
public void tcsendbreak(FileDescriptor fd, int duration) throws ErrnoException
- Specified by:
tcsendbreakin interfaceOs- Throws:
ErrnoException
-
uname
public StructUtsname uname()
-
unlink
public void unlink(String pathname) throws ErrnoException
- Specified by:
unlinkin interfaceOs- Throws:
ErrnoException
-
unsetenv
public void unsetenv(String name) throws ErrnoException
- Specified by:
unsetenvin interfaceOs- Throws:
ErrnoException
-
waitpid
public int waitpid(int pid, MutableInt status, int options) throws ErrnoException- Specified by:
waitpidin interfaceOs- Throws:
ErrnoException
-
write
public int write(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException, InterruptedIOException
- Specified by:
writein interfaceOs- Throws:
ErrnoExceptionInterruptedIOException
-
write
public int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException
- Specified by:
writein interfaceOs- Throws:
ErrnoExceptionInterruptedIOException
-
writev
public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException
- Specified by:
writevin interfaceOs- Throws:
ErrnoExceptionInterruptedIOException
-
-