Home
last modified time | relevance | path

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

123456

/libcore/ojluni/src/main/java/sun/nio/ch/
DFileDispatcherImpl.java46 int read(FileDescriptor fd, long address, int len) throws IOException { in read()
52 int pread(FileDescriptor fd, long address, int len, long position) in pread()
60 long readv(FileDescriptor fd, long address, int len) throws IOException { in readv()
66 int write(FileDescriptor fd, long address, int len) throws IOException { in write()
72 int pwrite(FileDescriptor fd, long address, int len, long position) in pwrite()
80 long writev(FileDescriptor fd, long address, int len) in writev()
88 int force(FileDescriptor fd, boolean metaData) throws IOException { in force()
94 int truncate(FileDescriptor fd, long size) throws IOException { in truncate()
100 long size(FileDescriptor fd) throws IOException { in size()
106 int lock(FileDescriptor fd, boolean blocking, long pos, long size, in lock()
[all …]
DDatagramDispatcher.java45 int read(FileDescriptor fd, long address, int len) throws IOException { in read()
51 long readv(FileDescriptor fd, long address, int len) throws IOException { in readv()
57 int write(FileDescriptor fd, long address, int len) throws IOException { in write()
63 long writev(FileDescriptor fd, long address, int len) throws IOException { in writev()
69 void close(FileDescriptor fd) throws IOException { in close()
73 void preClose(FileDescriptor fd) throws IOException { in preClose()
77 static native int read0(FileDescriptor fd, long address, int len) in read0()
80 static native long readv0(FileDescriptor fd, long address, int len) in readv0()
83 static native int write0(FileDescriptor fd, long address, int len) in write0()
86 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.java40 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()
52 int write(FileDescriptor fd, long address, int len) throws IOException { in write()
58 long writev(FileDescriptor fd, long address, int len) throws IOException { in writev()
64 void close(FileDescriptor fd) throws IOException { in close()
68 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()
DUnixDomainSockets.java82 static UnixDomainSocketAddress localAddress(FileDescriptor fd) throws IOException { in localAddress()
87 private static native byte[] localAddress0(FileDescriptor fd) throws IOException; in localAddress0()
111 static void bind(FileDescriptor fd, Path addr) throws IOException { in bind()
146 static int connect(FileDescriptor fd, SocketAddress sa) throws IOException { in connect()
150 static int connect(FileDescriptor fd, Path path) throws IOException { in connect()
154 static int accept(FileDescriptor fd, FileDescriptor newfd, String[] paths) in accept()
170 private static native void bind0(FileDescriptor fd, byte[] path) in bind0()
173 private static native int connect0(FileDescriptor fd, byte[] path) in connect0()
176 private static native int accept0(FileDescriptor fd, FileDescriptor newfd, Object[] array) in accept0()
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()
/libcore/ojluni/src/main/java/jdk/net/
DExtendedSocketOptions.java193 sun.net.ext.ExtendedSocketOptions.register( in sun.net.ext.ExtendedSocketOptions.register()
194 new sun.net.ext.ExtendedSocketOptions(extendedOptions) { in sun.net.ext.ExtendedSocketOptions.register()
212 setFlowOption(fd, flow); in sun.net.ext.ExtendedSocketOptions.register()
270 private static void setFlowOption(FileDescriptor fd, SocketFlow f) in setFlowOption()
279 private static void getFlowOption(FileDescriptor fd, SocketFlow f) in getFlowOption()
285 private static void setQuickAckOption(FileDescriptor fd, boolean enable) in setQuickAckOption()
290 private static Object getQuickAckOption(FileDescriptor fd) in getQuickAckOption()
295 private static void setTcpkeepAliveProbes(FileDescriptor fd, int value) in setTcpkeepAliveProbes()
300 private static void setTcpKeepAliveTime(FileDescriptor fd, int value) in setTcpKeepAliveTime()
305 private static void setTcpKeepAliveIntvl(FileDescriptor fd, int value) in setTcpKeepAliveIntvl()
[all …]
/libcore/luni/src/main/java/libcore/io/
DBlockGuardOs.java53 private FileDescriptor tagSocket(FileDescriptor fd) throws ErrnoException { in tagSocket()
62 …@Override public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoE… in accept()
94 @Override public void close(FileDescriptor fd) throws ErrnoException { in close()
116 public static boolean isNonBlockingFile(FileDescriptor fd) throws ErrnoException { in isNonBlockingFile()
124 public static boolean isUnixSocket(FileDescriptor fd) throws ErrnoException { in isUnixSocket()
132 private static boolean isInetSocket(FileDescriptor fd) throws ErrnoException{ in isInetSocket()
141 private static boolean isLingerSocket(FileDescriptor fd) throws ErrnoException { in isLingerSocket()
146 private static boolean isUdpSocket(FileDescriptor fd) throws ErrnoException { in isUdpSocket()
150 @Override public void connect(FileDescriptor fd, InetAddress address, int port) in connect()
161 @Override public void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, in connect()
[all …]
DOs.java67 …public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, … in accept()
82 …public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketEx… in bind()
87 … public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException; in bind()
114 public void close(FileDescriptor fd) throws ErrnoException; in close()
119 …public void android_fdsan_exchange_owner_tag(FileDescriptor fd, long previousOwnerId, long newOwne… in android_fdsan_exchange_owner_tag()
124 public long android_fdsan_get_owner_tag(FileDescriptor fd); in android_fdsan_get_owner_tag()
141 …public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, Socke… in connect()
146 …public void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketExcepti… in connect()
176 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException; in fchmod()
181 public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; in fchown()
[all …]
DForwardingOs.java91 …public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, … in accept()
138 …public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketEx… in bind()
143 …public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException … in bind()
176 public void close(FileDescriptor fd) throws ErrnoException { os.close(fd); } in close()
181 …public void android_fdsan_exchange_owner_tag(FileDescriptor fd, long previousOwnerId, long newOwne… in android_fdsan_exchange_owner_tag()
186 …public long android_fdsan_get_owner_tag(FileDescriptor fd) { return os.android_fdsan_get_owner_tag… in android_fdsan_get_owner_tag()
201 …public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, Socke… in connect()
206 …public void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketExcepti… in connect()
236 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException { os.fchmod(fd, mode); } in fchmod()
241 …public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { os.fchown(fd, uid,… in fchown()
[all …]
DLinux.java51 …public native FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoExce… in accept()
54 …public native void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, S… in bind()
55 …public native void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketExc… in bind()
64 public native void close(FileDescriptor fd) throws ErrnoException; in close()
65 …public native void android_fdsan_exchange_owner_tag(FileDescriptor fd, long previousOwnerId, long … in android_fdsan_exchange_owner_tag()
66 public native long android_fdsan_get_owner_tag(FileDescriptor fd); in android_fdsan_get_owner_tag()
70 …public native void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException… in connect()
71 …public native void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, Socket… in connect()
77 public native void fchmod(FileDescriptor fd, int mode) throws ErrnoException; in fchmod()
78 public native void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; in fchown()
[all …]
DIoBridge.java104 public static int available(FileDescriptor fd) throws IOException { in available()
127 … public static void bind(FileDescriptor fd, InetAddress address, int port) throws SocketException { in bind()
163 …public static void connect(FileDescriptor fd, InetAddress inetAddress, int port) throws SocketExce… in connect()
177 …public static void connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) th… in connect()
198 …private static void connectErrno(FileDescriptor fd, InetAddress inetAddress, int port, int timeout… in connectErrno()
246 private static String createMessageForException(FileDescriptor fd, InetAddress inetAddress, in createMessageForException()
296 public static void closeAndSignalBlockedThreads(@NonNull FileDescriptor fd) throws IOException { in closeAndSignalBlockedThreads()
319 public static boolean isConnected(FileDescriptor fd, InetAddress inetAddress, int port, in isConnected()
365 public static Object getSocketOption(FileDescriptor fd, int option) throws SocketException { in getSocketOption()
374 …private static Object getSocketOptionErrno(FileDescriptor fd, int option) throws ErrnoException, S… in getSocketOptionErrno()
[all …]
DIoUtils.java67 public static int acquireRawFd(@NonNull FileDescriptor fd) { in acquireRawFd()
152 public static void setFdOwner(@NonNull FileDescriptor fd, @NonNull Object owner) { in setFdOwner()
179 public static void close(@Nullable FileDescriptor fd) throws IOException { in close()
212 public static void closeQuietly(@Nullable FileDescriptor fd) { in closeQuietly()
250 … public static void setBlocking(@NonNull FileDescriptor fd, boolean blocking) throws IOException { in setBlocking()
331 FileDescriptor fd = Libcore.os.open(path, O_RDONLY, 0); in canOpenReadOnly() local
364 private FileDescriptor fd; field in IoUtils.FileReader
/libcore/luni/src/main/java/android/system/
DOs.java51 …public static FileDescriptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws Errno… in accept()
57 …public static FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoExce… in accept()
70 …public static void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, S… in bind()
75 …ull SocketAddress address) throws ErrnoException, SocketException { Libcore.os.bind(fd, address); } in bind()
129 public static void close(FileDescriptor fd) throws ErrnoException { Libcore.os.close(fd); } in close()
134 …public static void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException… in connect()
139 … SocketAddress address) throws ErrnoException, SocketException { Libcore.os.connect(fd, address); } in connect()
169 …public static void fchmod(FileDescriptor fd, int mode) throws ErrnoException { Libcore.os.fchmod(f… in fchmod()
174 …public static void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { Libcore.os.… in fchown()
179 …escriptor fd, int cmd, int arg) throws ErrnoException { return Libcore.os.fcntlInt(fd, cmd, arg); } in fcntlInt()
[all …]
/libcore/ojluni/src/main/native/
DFileDispatcherImpl.c69 jint fd = fdval(env, fdo); in FileDispatcherImpl_read0() local
79 jint fd = fdval(env, fdo); in FileDispatcherImpl_pread0() local
89 jint fd = fdval(env, fdo); in FileDispatcherImpl_readv0() local
98 jint fd = fdval(env, fdo); in FileDispatcherImpl_write0() local
108 jint fd = fdval(env, fdo); in FileDispatcherImpl_pwrite0() local
118 jint fd = fdval(env, fdo); in FileDispatcherImpl_writev0() local
138 jint fd = fdval(env, fdo); in FileDispatcherImpl_force0() local
174 jint fd = fdval(env, fdo); in FileDispatcherImpl_size0() local
197 jint fd = fdval(env, fdo); in FileDispatcherImpl_lock0() local
234 jint fd = fdval(env, fdo); in FileDispatcherImpl_release0() local
[all …]
Dio_util_md.c84 FD fd; in handleOpen() local
150 FD fd = (*env)->GetIntField(env, this, IO_fd_fdID); in fileDescriptorClose() local
198 handleRead(FD fd, void *buf, jint len) in handleRead()
206 handleWrite(FD fd, const void *buf, jint len) in handleWrite()
214 handleAvailable(FD fd, jlong *pbytes) in handleAvailable()
253 handleSetLength(FD fd, jlong length) in handleSetLength()
261 handleGetLength(FD fd) in handleGetLength()
DFileInputStream.c77 FD fd; in Java_java_io_FileInputStream_length0() local
93 FD fd; in Java_java_io_FileInputStream_position0() local
111 FD fd = getFD(env, this, fis_fd); in Java_java_io_FileInputStream_skip0() local
128 static int available(int fd, jlong *bytes) { in available()
165 FD fd = getFD(env, this, fis_fd); in Java_java_io_FileInputStream_available0() local
DFileDescriptor_md.c57 int fd = (*env)->GetIntField(env, this, IO_fd_fdID); in FileDescriptor_sync() local
63 JNIEXPORT jboolean JNICALL FileDescriptor_isSocket(jint fd) { in FileDescriptor_isSocket()
72 FileDescriptor_getAppend(jint fd) { in FileDescriptor_getAppend()
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()
/libcore/luni/src/test/java/libcore/libcore/io/
DFdsanTest.java35 FileDescriptor fd = fis.getFD(); in testFileInputStream() local
45 FileDescriptor fd = fis.getFD(); in testFileOutputStream() local
55 FileDescriptor fd = fis.getFD(); in testRandomAccessFile() local
79 FileDescriptor fd = (FileDescriptor)pfdMethodGetFileDescriptor.invoke(pfd); in testParcelFileDescriptor() local
90 FileDescriptor fd = socket.getFileDescriptor$(); in testDatagramSocket() local
101 public void assertFdOwnedBySocket(FileDescriptor fd) throws Exception { in assertFdOwnedBySocket()
/libcore/ojluni/src/main/java/sun/net/ext/
DExtendedSocketOptions.java82 public abstract void setOption(FileDescriptor fd, SocketOption<?> option, Object value) in setOption()
86 public abstract Object getOption(FileDescriptor fd, SocketOption<?> option) in getOption()
123 public void setOption(FileDescriptor fd, SocketOption<?> option, Object value) in setOption()
131 public Object getOption(FileDescriptor fd, SocketOption<?> option) in getOption()
/libcore/luni/src/main/native/
DAsynchronousCloseMonitor.h54 explicit AsynchronousCloseMonitor(int fd) { in AsynchronousCloseMonitor()
68 static void signalBlockedThreads(int fd) { in signalBlockedThreads()
DAsynchronousCloseMonitor.cpp93 void AsynchronousCloseMonitorImpl::signalBlockedThreads(int fd) { in signalBlockedThreads()
108 AsynchronousCloseMonitorImpl::AsynchronousCloseMonitorImpl(int fd) { in AsynchronousCloseMonitorImpl()
147 void async_close_monitor_signal_blocked_threads(int fd) { in async_close_monitor_signal_blocked_threads()
151 void* async_close_monitor_create(int fd) { in async_close_monitor_create()

123456