Fds

Class of snx.android.os · Fds.java

public final class Fds

The host descriptors of java.io.FileDescriptor, which the runtime reads and makes (runtime/fds.c).

Methods

public static native int of(FileDescriptor fd) native source

the descriptor, -1 for none

public static native FileDescriptor wrap(int fd) native source

a FileDescriptor of the descriptor, which owns it from now on

public static native int dup(int fd) native source

a second descriptor of the same open file, or -errno

public static native int close(int fd) native source

0 or -errno

public static native long size(int fd) native source

the size of a regular file, else -1


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.