Os

class Os
kotlin.Any
   ↳ android.system.Os

Access to low-level system functionality. Most of these are system calls. Most users will want to use higher-level APIs where available, but this class provides access to the underlying primitives used to implement the higher-level APIs.

The corresponding constants can be found in OsConstants.
Requires API level 21 (Android 5.0, Lollipop)

Summary

Public methods
static FileDescriptor!
accept(fd: FileDescriptor!, peerAddress: InetSocketAddress!)

See accept(2).

static Boolean
access(path: String!, mode: Int)

See access(2).

static Unit
bind(fd: FileDescriptor!, address: InetAddress!, port: Int)

See bind(2).

static Unit
chmod(path: String!, mode: Int)

See chmod(2).

static Unit
chown(path: String!, uid: Int, gid: Int)

See chown(2).

static Unit

See close(2).

static Unit
connect(fd: FileDescriptor!, address: InetAddress!, port: Int)

See connect(2).

static FileDescriptor!

See dup(2).

static FileDescriptor!
dup2(oldFd: FileDescriptor!, newFd: Int)

See dup2(2).

static Array<String!>!

See environ(3).

static Unit
execv(filename: String!, argv: Array<String!>!)

See execv(2).

static Unit
execve(filename: String!, argv: Array<String!>!, envp: Array<String!>!)

See execve(2).

static Unit
fchmod(fd: FileDescriptor!, mode: Int)

See fchmod(2).

static Unit
fchown(fd: FileDescriptor!, uid: Int, gid: Int)

See fchown(2).

static Unit

See fdatasync(2).

static StructStat!

See fstat(2).

static StructStatVfs!

See fstatvfs(2).

static Unit

See fsync(2).

static Unit
ftruncate(fd: FileDescriptor!, length: Long)

See ftruncate(2).

static String!
gai_strerror(error: Int)

See gai_strerror(3).

static Int

See getegid(2).

static Int

See geteuid(2).

static Int

See getgid(2).

static String!
getenv(name: String!)

See getenv(3).

static SocketAddress!

See getpeername(2).

static Int

See getpid(2).

static Int

See getppid(2).

static SocketAddress!

See getsockname(2).

static Int

See gettid(2).

static Int

See getuid(2).

static ByteArray!
getxattr(path: String!, name: String!)

See getxattr(2)
Requires API level 26 (Android 8.0, Oreo)

static String!

See if_indextoname(3).

static Int

See if_nametoindex(3).

static InetAddress!
inet_pton(family: Int, address: String!)

See inet_pton(3).

static Boolean

See isatty(3).

static Unit
kill(pid: Int, signal: Int)

See kill(2).

static Unit
lchown(path: String!, uid: Int, gid: Int)

See lchown(2).

static Unit
link(oldPath: String!, newPath: String!)

See link(2).

static Unit
listen(fd: FileDescriptor!, backlog: Int)

See listen(2).

static Array<String!>!
listxattr(path: String!)

See listxattr(2)
Requires API level 26 (Android 8.0, Oreo)

static Long
lseek(fd: FileDescriptor!, offset: Long, whence: Int)

See lseek(2).

static StructStat!
lstat(path: String!)

See lstat(2).

static Unit
mincore(address: Long, byteCount: Long, vector: ByteArray!)

See mincore(2).

static Unit
mkdir(path: String!, mode: Int)

See mkdir(2).

static Unit
mkfifo(path: String!, mode: Int)

See mkfifo(3).

static Unit
mlock(address: Long, byteCount: Long)

See mlock(2).

static Long
mmap(address: Long, byteCount: Long, prot: Int, flags: Int, fd: FileDescriptor!, offset: Long)

See mmap(2).

static Unit
msync(address: Long, byteCount: Long, flags: Int)

See msync(2).

static Unit
munlock(address: Long, byteCount: Long)

See munlock(2).

static Unit
munmap(address: Long, byteCount: Long)

See munmap(2).

static FileDescriptor!
open(path: String!, flags: Int, mode: Int)

See open(2).

static Array<FileDescriptor!>!

See pipe(2).

static Int
poll(fds: Array<StructPollfd!>!, timeoutMs: Int)

See poll(2).

static Unit
posix_fallocate(fd: FileDescriptor!, offset: Long, length: Long)

See posix_fallocate(3).

static Int
prctl(option: Int, arg2: Long, arg3: Long, arg4: Long, arg5: Long)

See prctl(2).

static Int
pread(fd: FileDescriptor!, buffer: ByteBuffer!, offset: Long)

See pread(2).

static Int
pread(fd: FileDescriptor!, bytes: ByteArray!, byteOffset: Int, byteCount: Int, offset: Long)

See pread(2).

static Int
pwrite(fd: FileDescriptor!, buffer: ByteBuffer!, offset: Long)

See pwrite(2).

static Int
pwrite(fd: FileDescriptor!, bytes: ByteArray!, byteOffset: Int, byteCount: Int, offset: Long)

See pwrite(2).

static Int
read(fd: FileDescriptor!, buffer: ByteBuffer!)

See read(2).

static Int
read(fd: FileDescriptor!, bytes: ByteArray!, byteOffset: Int, byteCount: Int)

See read(2).

static String!
readlink(path: String!)

See readlink(2).

static Int
readv(fd: FileDescriptor!, buffers: Array<Any!>!, offsets: IntArray!, byteCounts: IntArray!)

See readv(2).

static Int
recvfrom(fd: FileDescriptor!, buffer: ByteBuffer!, flags: Int, srcAddress: InetSocketAddress!)

See recvfrom(2).

static Int
recvfrom(fd: FileDescriptor!, bytes: ByteArray!, byteOffset: Int, byteCount: Int, flags: Int, srcAddress: InetSocketAddress!)

See recvfrom(2).

static Unit
remove(path: String!)

See remove(3).

static Unit
removexattr(path: String!, name: String!)

See removexattr(2).

static Unit
rename(oldPath: String!, newPath: String!)

See rename(2).

static Long
sendfile(outFd: FileDescriptor!, inFd: FileDescriptor!, offset: Int64Ref!, byteCount: Long)

See sendfile(2).

static Int
sendto(fd: FileDescriptor!, buffer: ByteBuffer!, flags: Int, inetAddress: InetAddress!, port: Int)

See sendto(2).

static Int
sendto(fd: FileDescriptor!, bytes: ByteArray!, byteOffset: Int, byteCount: Int, flags: Int, inetAddress: InetAddress!, port: Int)

See sendto(2).

static Unit
setegid(egid: Int)

See setegid(2).

static Unit
setenv(name: String!, value: String!, overwrite: Boolean)

See setenv(3).

static Unit
seteuid(euid: Int)

See seteuid(2).

static Unit
setgid(gid: Int)

See setgid(2).

static Int

See setsid(2).

static Unit
setsockoptInt(fd: FileDescriptor!, level: Int, option: Int, value: Int)

See setsockopt(2).

static Unit
setuid(uid: Int)

See setuid(2).

static Unit
setxattr(path: String!, name: String!, value: ByteArray!, flags: Int)

See setxattr(2)
Requires API level 26 (Android 8.0, Oreo)

static Unit

See shutdown(2).

static FileDescriptor!
socket(domain: Int, type: Int, protocol: Int)

See socket(2).

static Unit
socketpair(domain: Int, type: Int, protocol: Int, fd1: FileDescriptor!, fd2: FileDescriptor!)

See socketpair(2).

static StructStat!
stat(path: String!)

See stat(2).

static StructStatVfs!
statvfs(path: String!)

See statvfs(2).

static String!
strerror(errno: Int)

See strerror(2).

static String!
strsignal(signal: Int)

See strsignal(3).

static Unit
symlink(oldPath: String!, newPath: String!)

See symlink(2).

static Long
sysconf(name: Int)

See sysconf(3).

static Unit

See tcdrain(3).

static Unit
tcsendbreak(fd: FileDescriptor!, duration: Int)

See tcsendbreak(3).

static Int
umask(mask: Int)

See umask(2).

static StructUtsname!

See uname(2).

static Unit
unsetenv(name: String!)

See unsetenv(3).

static Int
write(fd: FileDescriptor!, buffer: ByteBuffer!)

See write(2).

static Int
write(fd: FileDescriptor!, bytes: ByteArray!, byteOffset: Int, byteCount: Int)

See write(2).

static Int
writev(fd: FileDescriptor!, buffers: Array<Any!>!, offsets: IntArray!, byteCounts: IntArray!)

See writev(2).

Public methods

accept

added in API level 21
static fun accept(fd: FileDescriptor!, peerAddress: InetSocketAddress!): FileDescriptor!

See accept(2).
Requires API level 21 (Android 5.0, Lollipop)

access

added in API level 21
static fun access(path: String!, mode: Int): Boolean

See access(2).
Requires API level 21 (Android 5.0, Lollipop)

bind

added in API level 21
static fun bind(fd: FileDescriptor!, address: InetAddress!, port: Int): Unit

See bind(2).
Requires API level 21 (Android 5.0, Lollipop)

chmod

added in API level 21
static fun chmod(path: String!, mode: Int): Unit

See chmod(2).
Requires API level 21 (Android 5.0, Lollipop)

chown

added in API level 21
static fun chown(path: String!, uid: Int, gid: Int): Unit

See chown(2).
Requires API level 21 (Android 5.0, Lollipop)

close

added in API level 21
static fun close(fd: FileDescriptor!): Unit

See close(2).
Requires API level 21 (Android 5.0, Lollipop)

connect

added in API level 21
static fun connect(fd: FileDescriptor!, address: InetAddress!, port: Int): Unit

See connect(2).
Requires API level 21 (Android 5.0, Lollipop)

dup

added in API level 21
static fun dup(oldFd: FileDescriptor!): FileDescriptor!

See dup(2).
Requires API level 21 (Android 5.0, Lollipop)

dup2

added in API level 21
static fun dup2(oldFd: FileDescriptor!, newFd: Int): FileDescriptor!

See dup2(2).
Requires API level 21 (Android 5.0, Lollipop)

environ

added in API level 21
static fun environ(): Array<String!>!

See environ(3).
Requires API level 21 (Android 5.0, Lollipop)

execv

added in API level 21
static fun execv(filename: String!, argv: Array<String!>!): Unit

See execv(2).
Requires API level 21 (Android 5.0, Lollipop)

execve

added in API level 21
static fun execve(filename: String!, argv: Array<String!>!, envp: Array<String!>!): Unit

See execve(2).
Requires API level 21 (Android 5.0, Lollipop)

fchmod

added in API level 21
static fun fchmod(fd: FileDescriptor!, mode: Int): Unit

See fchmod(2).
Requires API level 21 (Android 5.0, Lollipop)

fchown

added in API level 21
static fun fchown(fd: FileDescriptor!, uid: Int, gid: Int): Unit

See fchown(2).
Requires API level 21 (Android 5.0, Lollipop)

fdatasync

added in API level 21
static fun fdatasync(fd: FileDescriptor!): Unit

See fdatasync(2).
Requires API level 21 (Android 5.0, Lollipop)

fstat

added in API level 21
static fun fstat(fd: FileDescriptor!): StructStat!

See fstat(2).
Requires API level 21 (Android 5.0, Lollipop)

fstatvfs

added in API level 21
static fun fstatvfs(fd: FileDescriptor!): StructStatVfs!

See fstatvfs(2).
Requires API level 21 (Android 5.0, Lollipop)

fsync

added in API level 21
static fun fsync(fd: FileDescriptor!): Unit

See fsync(2).
Requires API level 21 (Android 5.0, Lollipop)

ftruncate

added in API level 21
static fun ftruncate(fd: FileDescriptor!, length: Long): Unit

See ftruncate(2).
Requires API level 21 (Android 5.0, Lollipop)

gai_strerror

added in API level 21
static fun gai_strerror(error: Int): String!

See gai_strerror(3).
Requires API level 21 (Android 5.0, Lollipop)

getegid

added in API level 21
static fun getegid(): Int

See getegid(2).
Requires API level 21 (Android 5.0, Lollipop)

geteuid

added in API level 21
static fun geteuid(): Int

See geteuid(2).
Requires API level 21 (Android 5.0, Lollipop)

getgid

added in API level 21
static fun getgid(): Int

See getgid(2).
Requires API level 21 (Android 5.0, Lollipop)

getenv

added in API level 21
static fun getenv(name: String!): String!

See getenv(3).
Requires API level 21 (Android 5.0, Lollipop)

getpeername

added in API level 21
static fun getpeername(fd: FileDescriptor!): SocketAddress!

See getpeername(2).
Requires API level 21 (Android 5.0, Lollipop)

getpid

added in API level 21
static fun getpid(): Int

See getpid(2).
Requires API level 21 (Android 5.0, Lollipop)

getppid

added in API level 21
static fun getppid(): Int

See getppid(2).
Requires API level 21 (Android 5.0, Lollipop)

getsockname

added in API level 21
static fun getsockname(fd: FileDescriptor!): SocketAddress!

See getsockname(2).
Requires API level 21 (Android 5.0, Lollipop)

gettid

added in API level 21
static fun gettid(): Int

See gettid(2).
Requires API level 21 (Android 5.0, Lollipop)

getuid

added in API level 21
static fun getuid(): Int

See getuid(2).
Requires API level 21 (Android 5.0, Lollipop)

getxattr

added in API level 26
static fun getxattr(path: String!, name: String!): ByteArray!

See getxattr(2)
Requires API level 26 (Android 8.0, Oreo)

if_indextoname

added in API level 21
static fun if_indextoname(index: Int): String!

See if_indextoname(3).
Requires API level 21 (Android 5.0, Lollipop)

if_nametoindex

added in API level 26
static fun if_nametoindex(name: String!): Int

See if_nametoindex(3).
Requires API level 26 (Android 8.0, Oreo)

inet_pton

added in API level 21
static fun inet_pton(family: Int, address: String!): InetAddress!

See inet_pton(3).
Requires API level 21 (Android 5.0, Lollipop)

isatty

added in API level 21
static fun isatty(fd: FileDescriptor!): Boolean

See isatty(3).
Requires API level 21 (Android 5.0, Lollipop)

kill

added in API level 21
static fun kill(pid: Int, signal: Int): Unit

See kill(2).
Requires API level 21 (Android 5.0, Lollipop)

lchown

added in API level 21
static fun lchown(path: String!, uid: Int, gid: Int): Unit

See lchown(2).
Requires API level 21 (Android 5.0, Lollipop)

link

added in API level 21
static fun link(oldPath: String!, newPath: String!): Unit

See link(2).
Requires API level 21 (Android 5.0, Lollipop)

listen

added in API level 21
static fun listen(fd: FileDescriptor!, backlog: Int): Unit

See listen(2).
Requires API level 21 (Android 5.0, Lollipop)

listxattr

added in API level 26
static fun listxattr(path: String!): Array<String!>!

See listxattr(2)
Requires API level 26 (Android 8.0, Oreo)

lseek

added in API level 21
static fun lseek(fd: FileDescriptor!, offset: Long, whence: Int): Long

See lseek(2).
Requires API level 21 (Android 5.0, Lollipop)

lstat

added in API level 21
static fun lstat(path: String!): StructStat!

See lstat(2).
Requires API level 21 (Android 5.0, Lollipop)

mincore

added in API level 21
static fun mincore(address: Long, byteCount: Long, vector: ByteArray!): Unit

See mincore(2).
Requires API level 21 (Android 5.0, Lollipop)

mkdir

added in API level 21
static fun mkdir(path: String!, mode: Int): Unit

See mkdir(2).
Requires API level 21 (Android 5.0, Lollipop)

mkfifo

added in API level 21
static fun mkfifo(path: String!, mode: Int): Unit

See mkfifo(3).
Requires API level 21 (Android 5.0, Lollipop)

mlock

added in API level 21
static fun mlock(address: Long, byteCount: Long): Unit

See mlock(2).
Requires API level 21 (Android 5.0, Lollipop)

mmap

added in API level 21
static fun mmap(address: Long, byteCount: Long, prot: Int, flags: Int, fd: FileDescriptor!, offset: Long): Long

See mmap(2).
Requires API level 21 (Android 5.0, Lollipop)

msync

added in API level 21
static fun msync(address: Long, byteCount: Long, flags: Int): Unit

See msync(2).
Requires API level 21 (Android 5.0, Lollipop)

munlock

added in API level 21
static fun munlock(address: Long, byteCount: Long): Unit

See munlock(2).
Requires API level 21 (Android 5.0, Lollipop)

munmap

added in API level 21
static fun munmap(address: Long, byteCount: Long): Unit

See munmap(2).
Requires API level 21 (Android 5.0, Lollipop)

open

added in API level 21
static fun open(path: String!, flags: Int, mode: Int): FileDescriptor!

See open(2).
Requires API level 21 (Android 5.0, Lollipop)

pipe

added in API level 21
static fun pipe(): Array<FileDescriptor!>!

See pipe(2).
Requires API level 21 (Android 5.0, Lollipop)

poll

added in API level 21
static fun poll(fds: Array<StructPollfd!>!, timeoutMs: Int): Int

See poll(2).

Note that in Lollipop this could throw an ErrnoException with EINTR. In later releases, the implementation will automatically just restart the system call with an appropriately reduced timeout.
Requires API level 21 (Android 5.0, Lollipop)

posix_fallocate

added in API level 21
static fun posix_fallocate(fd: FileDescriptor!, offset: Long, length: Long): Unit

See posix_fallocate(3).
Requires API level 21 (Android 5.0, Lollipop)

prctl

added in API level 21
static fun prctl(option: Int, arg2: Long, arg3: Long, arg4: Long, arg5: Long): Int

See prctl(2).
Requires API level 21 (Android 5.0, Lollipop)

pread

added in API level 21
static fun pread(fd: FileDescriptor!, buffer: ByteBuffer!, offset: Long): Int

See pread(2).
Requires API level 21 (Android 5.0, Lollipop)

pread

added in API level 21
static fun pread(fd: FileDescriptor!, bytes: ByteArray!, byteOffset: Int, byteCount: Int, offset: Long): Int

See pread(2).
Requires API level 21 (Android 5.0, Lollipop)

pwrite

added in API level 21
static fun pwrite(fd: FileDescriptor!, buffer: ByteBuffer!, offset: Long): Int

See pwrite(2).
Requires API level 21 (Android 5.0, Lollipop)

pwrite

added in API level 21
static fun pwrite(fd: FileDescriptor!, bytes: ByteArray!, byteOffset: Int, byteCount: Int, offset: Long): Int

See pwrite(2).
Requires API level 21 (Android 5.0, Lollipop)

read

added in API level 21
static fun read(fd: FileDescriptor!, buffer: ByteBuffer!): Int

See read(2).
Requires API level 21 (Android 5.0, Lollipop)

read

added in API level 21
static fun read(fd: FileDescriptor!, bytes: ByteArray!, byteOffset: Int, byteCount: Int): Int

See read(2).
Requires API level 21 (Android 5.0, Lollipop)

readlink

added in API level 21
static fun readlink(path: String!): String!

See readlink(2).
Requires API level 21 (Android 5.0, Lollipop)

readv

added in API level 21
static fun readv(fd: FileDescriptor!, buffers: Array<Any!>!, offsets: IntArray!, byteCounts: IntArray!): Int

See readv(2).
Requires API level 21 (Android 5.0, Lollipop)

recvfrom

added in API level 21
static fun recvfrom(fd: FileDescriptor!, buffer: ByteBuffer!, flags: Int, srcAddress: InetSocketAddress!): Int

See recvfrom(2).
Requires API level 21 (Android 5.0, Lollipop)

recvfrom

added in API level 21
static fun recvfrom(fd: FileDescriptor!, bytes: ByteArray!, byteOffset: Int, byteCount: Int, flags: Int, srcAddress: InetSocketAddress!): Int

See recvfrom(2).
Requires API level 21 (Android 5.0, Lollipop)

remove

added in API level 21
static fun remove(path: String!): Unit

See remove(3).
Requires API level 21 (Android 5.0, Lollipop)

removexattr

added in API level 26
static fun removexattr(path: String!, name: String!): Unit

See removexattr(2).
Requires API level 26 (Android 8.0, Oreo)

rename

added in API level 21
static fun rename(oldPath: String!, newPath: String!): Unit

See rename(2).
Requires API level 21 (Android 5.0, Lollipop)

sendfile

added in API level 28
static fun sendfile(outFd: FileDescriptor!, inFd: FileDescriptor!, offset: Int64Ref!, byteCount: Long): Long

See sendfile(2).
Requires API level 28 (Android 8.+, P)

sendto

added in API level 21
static fun sendto(fd: FileDescriptor!, buffer: ByteBuffer!, flags: Int, inetAddress: InetAddress!, port: Int): Int

See sendto(2).
Requires API level 21 (Android 5.0, Lollipop)

sendto

added in API level 21
static fun sendto(fd: FileDescriptor!, bytes: ByteArray!, byteOffset: Int, byteCount: Int, flags: Int, inetAddress: InetAddress!, port: Int): Int

See sendto(2).
Requires API level 21 (Android 5.0, Lollipop)

setegid

added in API level 21
static fun setegid(egid: Int): Unit

See setegid(2).
Requires API level 21 (Android 5.0, Lollipop)

setenv

added in API level 21
static fun setenv(name: String!, value: String!, overwrite: Boolean): Unit

See setenv(3).
Requires API level 21 (Android 5.0, Lollipop)

seteuid

added in API level 21
static fun seteuid(euid: Int): Unit

See seteuid(2).
Requires API level 21 (Android 5.0, Lollipop)

setgid

added in API level 21
static fun setgid(gid: Int): Unit

See setgid(2).
Requires API level 21 (Android 5.0, Lollipop)

setsid

added in API level 21
static fun setsid(): Int

See setsid(2).
Requires API level 21 (Android 5.0, Lollipop)

setsockoptInt

added in API level 26
static fun setsockoptInt(fd: FileDescriptor!, level: Int, option: Int, value: Int): Unit

See setsockopt(2).
Requires API level 26 (Android 8.0, Oreo)

setuid

added in API level 21
static fun setuid(uid: Int): Unit

See setuid(2).
Requires API level 21 (Android 5.0, Lollipop)

setxattr

added in API level 26
static fun setxattr(path: String!, name: String!, value: ByteArray!, flags: Int): Unit

See setxattr(2)
Requires API level 26 (Android 8.0, Oreo)

shutdown

added in API level 21
static fun shutdown(fd: FileDescriptor!, how: Int): Unit

See shutdown(2).
Requires API level 21 (Android 5.0, Lollipop)

socket

added in API level 21
static fun socket(domain: Int, type: Int, protocol: Int): FileDescriptor!

See socket(2).
Requires API level 21 (Android 5.0, Lollipop)

socketpair

added in API level 21
static fun socketpair(domain: Int, type: Int, protocol: Int, fd1: FileDescriptor!, fd2: FileDescriptor!): Unit

See socketpair(2).
Requires API level 21 (Android 5.0, Lollipop)

stat

added in API level 21
static fun stat(path: String!): StructStat!

See stat(2).
Requires API level 21 (Android 5.0, Lollipop)

statvfs

added in API level 21
static fun statvfs(path: String!): StructStatVfs!

See statvfs(2).
Requires API level 21 (Android 5.0, Lollipop)

strerror

added in API level 21
static fun strerror(errno: Int): String!

See strerror(2).
Requires API level 21 (Android 5.0, Lollipop)

strsignal

added in API level 21
static fun strsignal(signal: Int): String!

See strsignal(3).
Requires API level 21 (Android 5.0, Lollipop)

symlink

added in API level 21
static fun symlink(oldPath: String!, newPath: String!): Unit

See symlink(2).
Requires API level 21 (Android 5.0, Lollipop)

sysconf

added in API level 21
static fun sysconf(name: Int): Long

See sysconf(3).
Requires API level 21 (Android 5.0, Lollipop)

tcdrain

added in API level 21
static fun tcdrain(fd: FileDescriptor!): Unit

See tcdrain(3).
Requires API level 21 (Android 5.0, Lollipop)

tcsendbreak

added in API level 21
static fun tcsendbreak(fd: FileDescriptor!, duration: Int): Unit

See tcsendbreak(3).
Requires API level 21 (Android 5.0, Lollipop)

umask

added in API level 21
static fun umask(mask: Int): Int

See umask(2).
Requires API level 21 (Android 5.0, Lollipop)

uname

added in API level 21
static fun uname(): StructUtsname!

See uname(2).
Requires API level 21 (Android 5.0, Lollipop)

unsetenv

added in API level 21
static fun unsetenv(name: String!): Unit

See unsetenv(3).
Requires API level 21 (Android 5.0, Lollipop)

write

added in API level 21
static fun write(fd: FileDescriptor!, buffer: ByteBuffer!): Int

See write(2).
Requires API level 21 (Android 5.0, Lollipop)

write

added in API level 21
static fun write(fd: FileDescriptor!, bytes: ByteArray!, byteOffset: Int, byteCount: Int): Int

See write(2).
Requires API level 21 (Android 5.0, Lollipop)

writev

added in API level 21
static fun writev(fd: FileDescriptor!, buffers: Array<Any!>!, offsets: IntArray!, byteCounts: IntArray!): Int

See writev(2).
Requires API level 21 (Android 5.0, Lollipop)