Home
last modified time | relevance | path

Searched defs:fd (Results 1 – 25 of 111) sorted by relevance

12345

/libcore/ojluni/src/main/java/sun/nio/ch/
DFileDispatcherImpl.java43 int read(FileDescriptor fd, long address, int len) throws IOException { in read()
48 int pread(FileDescriptor fd, long address, int len, long position) in pread()
55 long readv(FileDescriptor fd, long address, int len) throws IOException { in readv()
60 int write(FileDescriptor fd, long address, int len) throws IOException { in write()
65 int pwrite(FileDescriptor fd, long address, int len, long position) in pwrite()
72 long writev(FileDescriptor fd, long address, int len) in writev()
79 int force(FileDescriptor fd, boolean metaData) throws IOException { in force()
84 int truncate(FileDescriptor fd, long size) throws IOException { in truncate()
89 long size(FileDescriptor fd) throws IOException { in size()
94 int lock(FileDescriptor fd, boolean blocking, long pos, long size, in lock()
[all …]
DDatagramDispatcher.java40 int read(FileDescriptor fd, long address, int len) throws IOException { in read()
45 long readv(FileDescriptor fd, long address, int len) throws IOException { in readv()
50 int write(FileDescriptor fd, long address, int len) throws IOException { in write()
55 long writev(FileDescriptor fd, long address, int len) throws IOException { in writev()
60 void close(FileDescriptor fd) throws IOException { in close()
64 void preClose(FileDescriptor fd) throws IOException { in preClose()
68 static native int read0(FileDescriptor fd, long address, int len) in read0()
71 static native long readv0(FileDescriptor fd, long address, int len) in readv0()
74 static native int write0(FileDescriptor fd, long address, int len) in write0()
77 static native long writev0(FileDescriptor fd, long address, int len) in writev0()
DNativeDispatcher.java38 abstract int read(FileDescriptor fd, long address, int len) in read()
49 int pread(FileDescriptor fd, long address, int len, long position) in pread()
55 abstract long readv(FileDescriptor fd, long address, int len) in readv()
58 abstract int write(FileDescriptor fd, long address, int len) in write()
61 int pwrite(FileDescriptor fd, long address, int len, long position) in pwrite()
67 abstract long writev(FileDescriptor fd, long address, int len) in writev()
70 abstract void close(FileDescriptor fd) throws IOException; in close()
76 void preClose(FileDescriptor fd) throws IOException { in preClose()
DSocketDispatcher.java41 int read(FileDescriptor fd, long address, int len) throws IOException { in read()
46 long readv(FileDescriptor fd, long address, int len) throws IOException { in readv()
51 int write(FileDescriptor fd, long address, int len) throws IOException { in write()
56 long writev(FileDescriptor fd, long address, int len) throws IOException { in writev()
61 void close(FileDescriptor fd) throws IOException { in close()
65 void preClose(FileDescriptor fd) throws IOException { in preClose()
DFileDispatcher.java39 abstract int force(FileDescriptor fd, boolean metaData) throws IOException; in force()
41 abstract int truncate(FileDescriptor fd, long size) throws IOException; in truncate()
43 abstract long size(FileDescriptor fd) throws IOException; in size()
45 abstract int lock(FileDescriptor fd, boolean blocking, long pos, long size, in lock()
48 abstract void release(FileDescriptor fd, long pos, long size) in release()
56 abstract FileDescriptor duplicateForMapping(FileDescriptor fd) in duplicateForMapping()
DIOUtil.java46 static int write(FileDescriptor fd, ByteBuffer src, long position, in write()
76 private static int writeFromNativeBuffer(FileDescriptor fd, ByteBuffer bb, in writeFromNativeBuffer()
100 static long write(FileDescriptor fd, ByteBuffer[] bufs, NativeDispatcher nd) in write()
106 static long write(FileDescriptor fd, ByteBuffer[] bufs, int offset, int length, in write()
185 static int read(FileDescriptor fd, ByteBuffer dst, long position, in read()
207 private static int readIntoNativeBuffer(FileDescriptor fd, ByteBuffer bb, in readIntoNativeBuffer()
230 static long read(FileDescriptor fd, ByteBuffer[] bufs, NativeDispatcher nd) in read()
236 static long read(FileDescriptor fd, ByteBuffer[] bufs, int offset, int length, in read()
320 FileDescriptor fd = new FileDescriptor(); in newFD() local
334 static native boolean drain(int fd) throws IOException; in drain()
[all …]
DPort.java64 final void register(int fd, PollableChannel ch) { in register()
79 protected void preUnregister(int fd) { in preUnregister()
86 final void unregister(int fd) { in unregister()
114 abstract void startPoll(int fd, int events); in startPoll()
127 final Object attachForeignChannel(final Channel channel, FileDescriptor fd) { in attachForeignChannel()
DFileKey.java41 public static FileKey create(FileDescriptor fd) { in create()
69 private native void init(FileDescriptor fd) throws IOException; in init()
DEPollPort.java172 void startPoll(int fd, int events) { in startPoll()
205 int fd = getDescriptor(eventAddress); in poll() local
314 private static native void interrupt(int fd) throws IOException; in interrupt()
316 private static native void drain1(int fd) throws IOException; in drain1()
318 private static native void close0(int fd); in close0()
/libcore/luni/src/main/java/libcore/io/
DBlockGuardOs.java45 private FileDescriptor tagSocket(FileDescriptor fd) throws ErrnoException { in tagSocket()
54 private void untagSocket(FileDescriptor fd) throws ErrnoException { in untagSocket()
62 …@Override public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoE… in accept()
86 @Override public void close(FileDescriptor fd) throws ErrnoException { in close()
111 private static boolean isInetSocket(FileDescriptor fd) throws ErrnoException{ in isInetSocket()
119 private static boolean isLingerSocket(FileDescriptor fd) throws ErrnoException { in isLingerSocket()
124 …@Override public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoExcept… in connect()
129 @Override public void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, in connect()
135 @Override public void fchmod(FileDescriptor fd, int mode) throws ErrnoException { in fchmod()
140 @Override public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { in fchown()
[all …]
DOs.java47 …public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, … in accept()
50 …public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketEx… in bind()
51 … public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException; in bind()
56 public void close(FileDescriptor fd) throws ErrnoException; in close()
57 …public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, Socke… in connect()
58 …public void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketExcepti… in connect()
64 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException; in fchmod()
65 public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; in fchown()
66 …public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException, Interrup… in fcntlFlock()
67 public int fcntlInt(FileDescriptor fd, int cmd, int arg) throws ErrnoException; in fcntlInt()
[all …]
DForwardingOs.java56 …public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, … in accept()
59 …public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketEx… in bind()
60 …public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException … in bind()
71 public void close(FileDescriptor fd) throws ErrnoException { os.close(fd); } in close()
72 …public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, Socke… in connect()
73 …public void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketExcepti… in connect()
79 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException { os.fchmod(fd, mode); } in fchmod()
80 …public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { os.fchown(fd, uid,… in fchown()
81 …public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException, Interrup… in fcntlFlock()
82 …public int fcntlInt(FileDescriptor fd, int cmd, int arg) throws ErrnoException { return os.fcntlIn… in fcntlInt()
[all …]
DLinux.java50 …public native FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoExce… in accept()
53 …public native void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, S… in bind()
54 …public native void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketExc… in bind()
62 public native void close(FileDescriptor fd) throws ErrnoException; in close()
63 …public native void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException… in connect()
64 …public native void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, Socket… in connect()
70 public native void fchmod(FileDescriptor fd, int mode) throws ErrnoException; in fchmod()
71 public native void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; in fchown()
72 …public native int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException, I… in fcntlFlock()
73 public native int fcntlInt(FileDescriptor fd, int cmd, int arg) throws ErrnoException; in fcntlInt()
[all …]
DIoBridge.java58 public static int available(FileDescriptor fd) throws IOException { in available()
82 … public static void bind(FileDescriptor fd, InetAddress address, int port) throws SocketException { in bind()
116 …public static void connect(FileDescriptor fd, InetAddress inetAddress, int port) throws SocketExce… in connect()
128 …public static void connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) th… in connect()
149 …private static void connectErrno(FileDescriptor fd, InetAddress inetAddress, int port, int timeout… in connectErrno()
192 private static String connectDetail(FileDescriptor fd, InetAddress inetAddress, int port, in connectDetail()
232 public static void closeAndSignalBlockedThreads(FileDescriptor fd) throws IOException { in closeAndSignalBlockedThreads()
248 …public static boolean isConnected(FileDescriptor fd, InetAddress inetAddress, int port, int timeou… in isConnected()
290 public static Object getSocketOption(FileDescriptor fd, int option) throws SocketException { in getSocketOption()
298 …private static Object getSocketOptionErrno(FileDescriptor fd, int option) throws ErrnoException, S… in getSocketOptionErrno()
[all …]
DIoUtils.java40 public static void close(FileDescriptor fd) throws IOException { in close()
67 public static void closeQuietly(FileDescriptor fd) { in closeQuietly()
89 public static void setBlocking(FileDescriptor fd, boolean blocking) throws IOException { in setBlocking()
163 FileDescriptor fd = Libcore.os.open(path, O_RDONLY, 0); in canOpenReadOnly() local
193 private FileDescriptor fd; field in IoUtils.FileReader
/libcore/luni/src/main/java/android/system/
DOs.java43 …public static FileDescriptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws Errno… in accept()
49 …public static FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoExce… in accept()
61 …public static void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, S… in bind()
63 …/** @hide */ public static void bind(FileDescriptor fd, SocketAddress address) throws ErrnoExcepti… in bind()
97 public static void close(FileDescriptor fd) throws ErrnoException { Libcore.os.close(fd); } in close()
102 …public static void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException… in connect()
104 …/** @hide */ public static void connect(FileDescriptor fd, SocketAddress address) throws ErrnoExce… in connect()
134 …public static void fchmod(FileDescriptor fd, int mode) throws ErrnoException { Libcore.os.fchmod(f… in fchmod()
139 …public static void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { Libcore.os.… in fchown()
141 …/** @hide */ public static int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws Errn… in fcntlFlock()
[all …]
/libcore/ojluni/src/main/native/
DFileDispatcherImpl.c67 jint fd = fdval(env, fdo); in FileDispatcherImpl_read0() local
77 jint fd = fdval(env, fdo); in FileDispatcherImpl_pread0() local
87 jint fd = fdval(env, fdo); in FileDispatcherImpl_readv0() local
96 jint fd = fdval(env, fdo); in FileDispatcherImpl_write0() local
106 jint fd = fdval(env, fdo); in FileDispatcherImpl_pwrite0() local
116 jint fd = fdval(env, fdo); in FileDispatcherImpl_writev0() local
136 jint fd = fdval(env, fdo); in FileDispatcherImpl_force0() local
172 jint fd = fdval(env, fdo); in FileDispatcherImpl_size0() local
195 jint fd = fdval(env, fdo); in FileDispatcherImpl_lock0() local
232 jint fd = fdval(env, fdo); in FileDispatcherImpl_release0() local
[all …]
DEPollPort.c52 Java_sun_nio_ch_EPollPort_interrupt(JNIEnv *env, jclass c, jint fd) { in Java_sun_nio_ch_EPollPort_interrupt()
63 Java_sun_nio_ch_EPollPort_drain1(JNIEnv *env, jclass cl, jint fd) { in Java_sun_nio_ch_EPollPort_drain1()
73 Java_sun_nio_ch_EPollPort_close0(JNIEnv *env, jclass c, jint fd) { in Java_sun_nio_ch_EPollPort_close0()
Dsocket_tagger_util.cpp26 int tagSocket(JNIEnv* env, int fd) { in tagSocket()
40 void untagSocket(JNIEnv* env, int fd) { in untagSocket()
Dio_util_md.c67 FD fd; in handleOpen() local
92 FD fd; in fileOpen() local
113 FD fd = GET_FD(this, fid); in fileClose() local
DDatagramDispatcher.c54 jint fd = fdval(env, fdo); in Java_sun_nio_ch_DatagramDispatcher_read0() local
71 jint fd = fdval(env, fdo); in Java_sun_nio_ch_DatagramDispatcher_readv0() local
101 jint fd = fdval(env, fdo); in Java_sun_nio_ch_DatagramDispatcher_write0() local
115 jint fd = fdval(env, fdo); in Java_sun_nio_ch_DatagramDispatcher_writev0() local
DFileInputStream.c74 FD fd = GET_FD(this, fis_fd); in FileInputStream_skip0() local
91 static int available(int fd, jlong *bytes) { in available()
120 FD fd = GET_FD(this, fis_fd); in FileInputStream_available0() local
/libcore/luni/src/test/java/libcore/io/
DOsTest.java89 final FileDescriptor fd = Libcore.os.socket(AF_UNIX, SOCK_STREAM, 0); in testUnixDomainSocket_unnamed() local
151 private static void checkSockName(FileDescriptor fd, boolean isAbstract, in checkSockName()
164 private void checkNoPeerName(FileDescriptor fd) throws Exception { in checkNoPeerName()
168 private void checkNoSockName(FileDescriptor fd) throws Exception { in checkNoSockName()
179 FileDescriptor fd = fos.getFD(); in test_byteBufferPositions_write_pwrite() local
208 FileDescriptor fd = fis.getFD(); in test_byteBufferPositions_read_pread() local
311 FileDescriptor fd = Libcore.os.socket(AF_PACKET, SOCK_DGRAM, ETH_P_IPV6); in test_PacketSocketAddress() local
364 FileDescriptor fd = Libcore.os.socket(AF_INET6, SOCK_STREAM, 0); in test_socketFamilies() local
391 private static void checkSocketPing(FileDescriptor fd, InetAddress to, byte[] packet, in checkSocketPing()
425 FileDescriptor fd = Libcore.os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_ICMPV6); in test_socketPing() local
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DJavaIOFileDescriptorAccess.java34 public void set(FileDescriptor obj, int fd); in set()
35 public int get(FileDescriptor fd); in get()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileDescriptorTest.java43 FileDescriptor fd = fos.getFD(); in test_sync() local
79 FileDescriptor fd = fos.getFD(); in test_valid() local

12345