Most visited

Recently visited

Added in API level 21

Os

public final class Os
extends Object

java.lang.Object
    android.system.Os


访问低级系统功能。 其中大部分是系统调用。 大多数用户都希望在可用的地方使用更高级别的API,但该类提供对用于实现更高级别API的基础原语的访问。

相应的常量可以在 OsConstants找到。

摘要(Summary)

公共方法(Public methods)

static FileDescriptor accept(FileDescriptor fd, InetSocketAddress peerAddress)

accept(2)

static boolean access(String path, int mode)

access(2)

static void bind(FileDescriptor fd, InetAddress address, int port)

bind(2)

static void chmod(String path, int mode)

chmod(2)

static void chown(String path, int uid, int gid)

chown(2)

static void close(FileDescriptor fd)

close(2)

static void connect(FileDescriptor fd, InetAddress address, int port)

connect(2)

static FileDescriptor dup(FileDescriptor oldFd)

dup(2)

static FileDescriptor dup2(FileDescriptor oldFd, int newFd)

dup2(2)

static String[] environ()

environ(3)

static void execv(String filename, String[] argv)

execv(2)

static void execve(String filename, String[] argv, String[] envp)

execve(2)

static void fchmod(FileDescriptor fd, int mode)

fchmod(2)

static void fchown(FileDescriptor fd, int uid, int gid)

fchown(2)

static void fdatasync(FileDescriptor fd)

fdatasync(2)

static StructStat fstat(FileDescriptor fd)

fstat(2)

static StructStatVfs fstatvfs(FileDescriptor fd)

fstatvfs(2)

static void fsync(FileDescriptor fd)

fsync(2)

static void ftruncate(FileDescriptor fd, long length)

ftruncate(2)

static String gai_strerror(int error)

gai_strerror(3)

static int getegid()

getegid(2)

static String getenv(String name)

getenv(3)

static int geteuid()

geteuid(2)

static int getgid()

getgid(2)

static SocketAddress getpeername(FileDescriptor fd)

getpeername(2)

static int getpid()

getpid(2)

static int getppid()

getppid(2)

static SocketAddress getsockname(FileDescriptor fd)

getsockname(2)

static int gettid()

gettid(2)

static int getuid()

getuid(2)

static String if_indextoname(int index)

if_indextoname(3)

static InetAddress inet_pton(int family, String address)

inet_pton(3)

static boolean isatty(FileDescriptor fd)

isatty(3)

static void kill(int pid, int signal)

kill(2)

static void lchown(String path, int uid, int gid)

lchown(2)

static void link(String oldPath, String newPath)

link(2)

static void listen(FileDescriptor fd, int backlog)

listen(2)

static long lseek(FileDescriptor fd, long offset, int whence)

lseek(2)

static StructStat lstat(String path)

lstat(2)

static void mincore(long address, long byteCount, byte[] vector)

mincore(2)

static void mkdir(String path, int mode)

mkdir(2)

static void mkfifo(String path, int mode)

mkfifo(3)

static void mlock(long address, long byteCount)

mlock(2)

static long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset)

mmap(2)

static void msync(long address, long byteCount, int flags)

msync(2)

static void munlock(long address, long byteCount)

munlock(2)

static void munmap(long address, long byteCount)

munmap(2)

static FileDescriptor open(String path, int flags, int mode)

open(2)

static FileDescriptor[] pipe()

pipe(2)

static int poll(StructPollfd[] fds, int timeoutMs)

poll(2)

static void posix_fallocate(FileDescriptor fd, long offset, long length)

posix_fallocate(2)

static int prctl(int option, long arg2, long arg3, long arg4, long arg5)

prctl(2)

static int pread(FileDescriptor fd, ByteBuffer buffer, long offset)

pread(2)

static int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset)

pread(2)

static int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset)

pwrite(2)

static int pwrite(FileDescriptor fd, ByteBuffer buffer, long offset)

pwrite(2)

static int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount)

read(2)

static int read(FileDescriptor fd, ByteBuffer buffer)

read(2)

static String readlink(String path)

readlink(2)

static int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts)

readv(2)

static int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress)

recvfrom(2)

static int recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress)

recvfrom(2)

static void remove(String path)

remove(3)

static void rename(String oldPath, String newPath)

rename(2)

static long sendfile(FileDescriptor outFd, FileDescriptor inFd, MutableLong inOffset, long byteCount)

sendfile(2)

static int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port)

sendto(2)

static int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port)

sendto(2)

static void setegid(int egid)

setegid(2)

static void setenv(String name, String value, boolean overwrite)

setenv(3)

static void seteuid(int euid)

seteuid(2)

static void setgid(int gid)

setgid(2)

static int setsid()

setsid(2)

static void setuid(int uid)

setuid(2)

static void shutdown(FileDescriptor fd, int how)

shutdown(2)

static FileDescriptor socket(int domain, int type, int protocol)

socket(2)

static void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2)

socketpair(2)

static StructStat stat(String path)

stat(2)

static StructStatVfs statvfs(String path)

statvfs(2)

static String strerror(int errno)

strerror(2)

static String strsignal(int signal)

strsignal(3)

static void symlink(String oldPath, String newPath)

symlink(2)

static long sysconf(int name)

sysconf(3)

static void tcdrain(FileDescriptor fd)

tcdrain(3)

static void tcsendbreak(FileDescriptor fd, int duration)

tcsendbreak(3)

static int umask(int mask)

umask(2)

static StructUtsname uname()

uname(2)

static void unsetenv(String name)

unsetenv(3)

static int waitpid(int pid, MutableInt status, int options)

waitpid(2)

static int write(FileDescriptor fd, ByteBuffer buffer)

write(2)

static int write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount)

write(2)

static int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts)

writev(2)

继承方法(Inherited methods)

From class java.lang.Object

公共方法(Public methods)

accept

Added in API level 21
FileDescriptor accept (FileDescriptor fd, 
                InetSocketAddress peerAddress)

accept(2)

参数(Parameters)
fd FileDescriptor
peerAddress InetSocketAddress
返回(Returns)
FileDescriptor
抛出异常(Throws)
ErrnoException
SocketException

access

Added in API level 21
boolean access (String path, 
                int mode)

access(2)

参数(Parameters)
path String
mode int
返回(Returns)
boolean
抛出异常(Throws)
ErrnoException

bind

Added in API level 21
void bind (FileDescriptor fd, 
                InetAddress address, 
                int port)

bind(2)

参数(Parameters)
fd FileDescriptor
address InetAddress
port int
抛出异常(Throws)
ErrnoException
SocketException

chmod

Added in API level 21
void chmod (String path, 
                int mode)

chmod(2)

参数(Parameters)
path String
mode int
抛出异常(Throws)
ErrnoException

chown

Added in API level 21
void chown (String path, 
                int uid, 
                int gid)

chown(2)

参数(Parameters)
path String
uid int
gid int
抛出异常(Throws)
ErrnoException

close

Added in API level 21
void close (FileDescriptor fd)

close(2)

参数(Parameters)
fd FileDescriptor
抛出异常(Throws)
ErrnoException

connect

Added in API level 21
void connect (FileDescriptor fd, 
                InetAddress address, 
                int port)

connect(2)

参数(Parameters)
fd FileDescriptor
address InetAddress
port int
抛出异常(Throws)
ErrnoException
SocketException

dup

Added in API level 21
FileDescriptor dup (FileDescriptor oldFd)

dup(2)

参数(Parameters)
oldFd FileDescriptor
返回(Returns)
FileDescriptor
抛出异常(Throws)
ErrnoException

dup2

Added in API level 21
FileDescriptor dup2 (FileDescriptor oldFd, 
                int newFd)

dup2(2)

参数(Parameters)
oldFd FileDescriptor
newFd int
返回(Returns)
FileDescriptor
抛出异常(Throws)
ErrnoException

environ

Added in API level 21
String[] environ ()

environ(3)

返回(Returns)
String[]

execv

Added in API level 21
void execv (String filename, 
                String[] argv)

execv(2)

参数(Parameters)
filename String
argv String
抛出异常(Throws)
ErrnoException

execve

Added in API level 21
void execve (String filename, 
                String[] argv, 
                String[] envp)

execve(2)

参数(Parameters)
filename String
argv String
envp String
抛出异常(Throws)
ErrnoException

fchmod

Added in API level 21
void fchmod (FileDescriptor fd, 
                int mode)

fchmod(2)

参数(Parameters)
fd FileDescriptor
mode int
抛出异常(Throws)
ErrnoException

fchown

Added in API level 21
void fchown (FileDescriptor fd, 
                int uid, 
                int gid)

fchown(2)

参数(Parameters)
fd FileDescriptor
uid int
gid int
抛出异常(Throws)
ErrnoException

fdatasync

Added in API level 21
void fdatasync (FileDescriptor fd)

fdatasync(2)

参数(Parameters)
fd FileDescriptor
抛出异常(Throws)
ErrnoException

fstat

Added in API level 21
StructStat fstat (FileDescriptor fd)

fstat(2)

参数(Parameters)
fd FileDescriptor
返回(Returns)
StructStat
抛出异常(Throws)
ErrnoException

fstatvfs

Added in API level 21
StructStatVfs fstatvfs (FileDescriptor fd)

fstatvfs(2)

参数(Parameters)
fd FileDescriptor
返回(Returns)
StructStatVfs
抛出异常(Throws)
ErrnoException

fsync

Added in API level 21
void fsync (FileDescriptor fd)

fsync(2)

参数(Parameters)
fd FileDescriptor
抛出异常(Throws)
ErrnoException

ftruncate

Added in API level 21
void ftruncate (FileDescriptor fd, 
                long length)

ftruncate(2)

参数(Parameters)
fd FileDescriptor
length long
抛出异常(Throws)
ErrnoException

gai_strerror

Added in API level 21
String gai_strerror (int error)

gai_strerror(3)

参数(Parameters)
error int
返回(Returns)
String

getegid

Added in API level 21
int getegid ()

getegid(2)

返回(Returns)
int

getenv

Added in API level 21
String getenv (String name)

getenv(3)

参数(Parameters)
name String
返回(Returns)
String

geteuid

Added in API level 21
int geteuid ()

geteuid(2)

返回(Returns)
int

getgid

Added in API level 21
int getgid ()

getgid(2)

返回(Returns)
int

getpeername

Added in API level 21
SocketAddress getpeername (FileDescriptor fd)

getpeername(2)

参数(Parameters)
fd FileDescriptor
返回(Returns)
SocketAddress
抛出异常(Throws)
ErrnoException

getpid

Added in API level 21
int getpid ()

getpid(2)

返回(Returns)
int

getppid

Added in API level 21
int getppid ()

getppid(2)

返回(Returns)
int

getsockname

Added in API level 21
SocketAddress getsockname (FileDescriptor fd)

getsockname(2)

参数(Parameters)
fd FileDescriptor
返回(Returns)
SocketAddress
抛出异常(Throws)
ErrnoException

gettid

Added in API level 21
int gettid ()

gettid(2)

返回(Returns)
int

getuid

Added in API level 21
int getuid ()

getuid(2)

返回(Returns)
int

if_indextoname

Added in API level 21
String if_indextoname (int index)

if_indextoname(3)

参数(Parameters)
index int
返回(Returns)
String

inet_pton

Added in API level 21
InetAddress inet_pton (int family, 
                String address)

inet_pton(3)

参数(Parameters)
family int
address String
返回(Returns)
InetAddress

isatty

Added in API level 21
boolean isatty (FileDescriptor fd)

isatty(3)

参数(Parameters)
fd FileDescriptor
返回(Returns)
boolean

kill

Added in API level 21
void kill (int pid, 
                int signal)

kill(2)

参数(Parameters)
pid int
signal int
抛出异常(Throws)
ErrnoException

lchown

Added in API level 21
void lchown (String path, 
                int uid, 
                int gid)

lchown(2)

参数(Parameters)
path String
uid int
gid int
抛出异常(Throws)
ErrnoException

link

Added in API level 21
void link (String oldPath, 
                String newPath)

link(2)

参数(Parameters)
oldPath String
newPath String
抛出异常(Throws)
ErrnoException

listen

Added in API level 21
void listen (FileDescriptor fd, 
                int backlog)

listen(2)

参数(Parameters)
fd FileDescriptor
backlog int
抛出异常(Throws)
ErrnoException

lseek

Added in API level 21
long lseek (FileDescriptor fd, 
                long offset, 
                int whence)

lseek(2)

参数(Parameters)
fd FileDescriptor
offset long
whence int
返回(Returns)
long
抛出异常(Throws)
ErrnoException

lstat

Added in API level 21
StructStat lstat (String path)

lstat(2)

参数(Parameters)
path String
返回(Returns)
StructStat
抛出异常(Throws)
ErrnoException

mincore

Added in API level 21
void mincore (long address, 
                long byteCount, 
                byte[] vector)

mincore(2)

参数(Parameters)
address long
byteCount long
vector byte
抛出异常(Throws)
ErrnoException

mkdir

Added in API level 21
void mkdir (String path, 
                int mode)

mkdir(2)

参数(Parameters)
path String
mode int
抛出异常(Throws)
ErrnoException

mkfifo

Added in API level 21
void mkfifo (String path, 
                int mode)

mkfifo(3)

参数(Parameters)
path String
mode int
抛出异常(Throws)
ErrnoException

mlock

Added in API level 21
void mlock (long address, 
                long byteCount)

mlock(2)

参数(Parameters)
address long
byteCount long
抛出异常(Throws)
ErrnoException

mmap

Added in API level 21
long mmap (long address, 
                long byteCount, 
                int prot, 
                int flags, 
                FileDescriptor fd, 
                long offset)

mmap(2)

参数(Parameters)
address long
byteCount long
prot int
flags int
fd FileDescriptor
offset long
返回(Returns)
long
抛出异常(Throws)
ErrnoException

msync

Added in API level 21
void msync (long address, 
                long byteCount, 
                int flags)

msync(2)

参数(Parameters)
address long
byteCount long
flags int
抛出异常(Throws)
ErrnoException

munlock

Added in API level 21
void munlock (long address, 
                long byteCount)

munlock(2)

参数(Parameters)
address long
byteCount long
抛出异常(Throws)
ErrnoException

munmap

Added in API level 21
void munmap (long address, 
                long byteCount)

munmap(2)

参数(Parameters)
address long
byteCount long
抛出异常(Throws)
ErrnoException

open

Added in API level 21
FileDescriptor open (String path, 
                int flags, 
                int mode)

open(2)

参数(Parameters)
path String
flags int
mode int
返回(Returns)
FileDescriptor
抛出异常(Throws)
ErrnoException

pipe

Added in API level 21
FileDescriptor[] pipe ()

pipe(2)

返回(Returns)
FileDescriptor[]
抛出异常(Throws)
ErrnoException

poll

Added in API level 21
int poll (StructPollfd[] fds, 
                int timeoutMs)

poll(2)

请注意,在棒棒糖中,这可能会抛出ErrnoExceptionEINTR 在以后的版本中,实现将自动以适当减少的超时重新启动系统调用。

参数(Parameters)
fds StructPollfd
timeoutMs int
返回(Returns)
int
抛出异常(Throws)
ErrnoException

posix_fallocate

Added in API level 21
void posix_fallocate (FileDescriptor fd, 
                long offset, 
                long length)

posix_fallocate(2)

参数(Parameters)
fd FileDescriptor
offset long
length long
抛出异常(Throws)
ErrnoException

prctl

Added in API level 21
int prctl (int option, 
                long arg2, 
                long arg3, 
                long arg4, 
                long arg5)

prctl(2)

参数(Parameters)
option int
arg2 long
arg3 long
arg4 long
arg5 long
返回(Returns)
int
抛出异常(Throws)
ErrnoException

pread

Added in API level 21
int pread (FileDescriptor fd, 
                ByteBuffer buffer, 
                long offset)

pread(2)

参数(Parameters)
fd FileDescriptor
buffer ByteBuffer
offset long
返回(Returns)
int
抛出异常(Throws)
ErrnoException
InterruptedIOException

pread

Added in API level 21
int pread (FileDescriptor fd, 
                byte[] bytes, 
                int byteOffset, 
                int byteCount, 
                long offset)

pread(2)

参数(Parameters)
fd FileDescriptor
bytes byte
byteOffset int
byteCount int
offset long
返回(Returns)
int
抛出异常(Throws)
ErrnoException
InterruptedIOException

pwrite

Added in API level 21
int pwrite (FileDescriptor fd, 
                byte[] bytes, 
                int byteOffset, 
                int byteCount, 
                long offset)

pwrite(2)

参数(Parameters)
fd FileDescriptor
bytes byte
byteOffset int
byteCount int
offset long
返回(Returns)
int
抛出异常(Throws)
ErrnoException
InterruptedIOException

pwrite

Added in API level 21
int pwrite (FileDescriptor fd, 
                ByteBuffer buffer, 
                long offset)

pwrite(2)

参数(Parameters)
fd FileDescriptor
buffer ByteBuffer
offset long
返回(Returns)
int
抛出异常(Throws)
ErrnoException
InterruptedIOException

read

Added in API level 21
int read (FileDescriptor fd, 
                byte[] bytes, 
                int byteOffset, 
                int byteCount)

read(2)

参数(Parameters)
fd FileDescriptor
bytes byte
byteOffset int
byteCount int
返回(Returns)
int
抛出异常(Throws)
ErrnoException
InterruptedIOException

read

Added in API level 21
int read (FileDescriptor fd, 
                ByteBuffer buffer)

read(2)

参数(Parameters)
fd FileDescriptor
buffer ByteBuffer
返回(Returns)
int
抛出异常(Throws)
ErrnoException
InterruptedIOException

readlink

Added in API level 21
String readlink (String path)

readlink(2)

参数(Parameters)
path String
返回(Returns)
String
抛出异常(Throws)
ErrnoException

readv

Added in API level 21
int readv (FileDescriptor fd, 
                Object[] buffers, 
                int[] offsets, 
                int[] byteCounts)

readv(2)

参数(Parameters)
fd FileDescriptor
buffers Object
offsets int
byteCounts int
返回(Returns)
int
抛出异常(Throws)
ErrnoException
InterruptedIOException

recvfrom

Added in API level 21
int recvfrom (FileDescriptor fd, 
                byte[] bytes, 
                int byteOffset, 
                int byteCount, 
                int flags, 
                InetSocketAddress srcAddress)

recvfrom(2)

参数(Parameters)
fd FileDescriptor
bytes byte
byteOffset int
byteCount int
flags int
srcAddress InetSocketAddress
返回(Returns)
int
抛出异常(Throws)
ErrnoException
SocketException

recvfrom

Added in API level 21
int recvfrom (FileDescriptor fd, 
                ByteBuffer buffer, 
                int flags, 
                InetSocketAddress srcAddress)

recvfrom(2)

参数(Parameters)
fd FileDescriptor
buffer ByteBuffer
flags int
srcAddress InetSocketAddress
返回(Returns)
int
抛出异常(Throws)
ErrnoException
SocketException

remove

Added in API level 21
void remove (String path)

remove(3)

参数(Parameters)
path String
抛出异常(Throws)
ErrnoException

rename

Added in API level 21
void rename (String oldPath, 
                String newPath)

rename(2)

参数(Parameters)
oldPath String
newPath String
抛出异常(Throws)
ErrnoException

sendfile

Added in API level 21
long sendfile (FileDescriptor outFd, 
                FileDescriptor inFd, 
                MutableLong inOffset, 
                long byteCount)

sendfile(2)

参数(Parameters)
outFd FileDescriptor
inFd FileDescriptor
inOffset MutableLong
byteCount long
返回(Returns)
long
抛出异常(Throws)
ErrnoException

sendto

Added in API level 21
int sendto (FileDescriptor fd, 
                byte[] bytes, 
                int byteOffset, 
                int byteCount, 
                int flags, 
                InetAddress inetAddress, 
                int port)

sendto(2)

参数(Parameters)
fd FileDescriptor
bytes byte
byteOffset int
byteCount int
flags int
inetAddress InetAddress
port int
返回(Returns)
int
抛出异常(Throws)
ErrnoException
SocketException

sendto

Added in API level 21
int sendto (FileDescriptor fd, 
                ByteBuffer buffer, 
                int flags, 
                InetAddress inetAddress, 
                int port)

sendto(2)

参数(Parameters)
fd FileDescriptor
buffer ByteBuffer
flags int
inetAddress InetAddress
port int
返回(Returns)
int
抛出异常(Throws)
ErrnoException
SocketException

setegid

Added in API level 21
void setegid (int egid)

setegid(2)

参数(Parameters)
egid int
抛出异常(Throws)
ErrnoException

setenv

Added in API level 21
void setenv (String name, 
                String value, 
                boolean overwrite)

setenv(3)

参数(Parameters)
name String
value String
overwrite boolean
抛出异常(Throws)
ErrnoException

seteuid

Added in API level 21
void seteuid (int euid)

seteuid(2)

参数(Parameters)
euid int
抛出异常(Throws)
ErrnoException

setgid

Added in API level 21
void setgid (int gid)

setgid(2)

参数(Parameters)
gid int
抛出异常(Throws)
ErrnoException

setsid

Added in API level 21
int setsid ()

setsid(2)

返回(Returns)
int
抛出异常(Throws)
ErrnoException

setuid

Added in API level 21
void setuid (int uid)

setuid(2)

参数(Parameters)
uid int
抛出异常(Throws)
ErrnoException

shutdown

Added in API level 21
void shutdown (FileDescriptor fd, 
                int how)

shutdown(2)

参数(Parameters)
fd FileDescriptor
how int
抛出异常(Throws)
ErrnoException

socket

Added in API level 21
FileDescriptor socket (int domain, 
                int type, 
                int protocol)

socket(2)

参数(Parameters)
domain int
type int
protocol int
返回(Returns)
FileDescriptor
抛出异常(Throws)
ErrnoException

socketpair

Added in API level 21
void socketpair (int domain, 
                int type, 
                int protocol, 
                FileDescriptor fd1, 
                FileDescriptor fd2)

socketpair(2)

参数(Parameters)
domain int
type int
protocol int
fd1 FileDescriptor
fd2 FileDescriptor
抛出异常(Throws)
ErrnoException

stat

Added in API level 21
StructStat stat (String path)

stat(2)

参数(Parameters)
path String
返回(Returns)
StructStat
抛出异常(Throws)
ErrnoException

statvfs

Added in API level 21
StructStatVfs statvfs (String path)

statvfs(2)

参数(Parameters)
path String
返回(Returns)
StructStatVfs
抛出异常(Throws)
ErrnoException

strerror

Added in API level 21
String strerror (int errno)

strerror(2)

参数(Parameters)
errno int
返回(Returns)
String

strsignal

Added in API level 21
String strsignal (int signal)

strsignal(3)

参数(Parameters)
signal int
返回(Returns)
String

symlink

Added in API level 21
void symlink (String oldPath, 
                String newPath)

symlink(2)

参数(Parameters)
oldPath String
newPath String
抛出异常(Throws)
ErrnoException

sysconf

Added in API level 21
long sysconf (int name)

sysconf(3)

参数(Parameters)
name int
返回(Returns)
long

tcdrain

Added in API level 21
void tcdrain (FileDescriptor fd)

tcdrain(3)

参数(Parameters)
fd FileDescriptor
抛出异常(Throws)
ErrnoException

tcsendbreak

Added in API level 21
void tcsendbreak (FileDescriptor fd, 
                int duration)

tcsendbreak(3)

参数(Parameters)
fd FileDescriptor
duration int
抛出异常(Throws)
ErrnoException

umask

Added in API level 21
int umask (int mask)

umask(2)

参数(Parameters)
mask int
返回(Returns)
int

uname

Added in API level 21
StructUtsname uname ()

uname(2)

返回(Returns)
StructUtsname

unsetenv

Added in API level 21
void unsetenv (String name)

unsetenv(3)

参数(Parameters)
name String
抛出异常(Throws)
ErrnoException

waitpid

Added in API level 21
int waitpid (int pid, 
                MutableInt status, 
                int options)

waitpid(2)

参数(Parameters)
pid int
status MutableInt
options int
返回(Returns)
int
抛出异常(Throws)
ErrnoException

write

Added in API level 21
int write (FileDescriptor fd, 
                ByteBuffer buffer)

write(2)

参数(Parameters)
fd FileDescriptor
buffer ByteBuffer
返回(Returns)
int
抛出异常(Throws)
ErrnoException
InterruptedIOException

write

Added in API level 21
int write (FileDescriptor fd, 
                byte[] bytes, 
                int byteOffset, 
                int byteCount)

write(2)

参数(Parameters)
fd FileDescriptor
bytes byte
byteOffset int
byteCount int
返回(Returns)
int
抛出异常(Throws)
ErrnoException
InterruptedIOException

writev

Added in API level 21
int writev (FileDescriptor fd, 
                Object[] buffers, 
                int[] offsets, 
                int[] byteCounts)

writev(2)

参数(Parameters)
fd FileDescriptor
buffers Object
offsets int
byteCounts int
返回(Returns)
int
抛出异常(Throws)
ErrnoException
InterruptedIOException

Hooray!