Home
last modified time | relevance | path

Searched refs:FileDescriptor (Results 1 – 25 of 76) sorted by relevance

1234

/libcore/luni/src/main/java/libcore/io/
DOs.java35 import java.io.FileDescriptor;
44 …public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, … in accept()
47 …public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketEx… in bind()
48 … public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException; in bind()
51 public void close(FileDescriptor fd) throws ErrnoException; in close()
52 …public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, Socke… in connect()
53 …public void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketExcepti… in connect()
54 public FileDescriptor dup(FileDescriptor oldFd) throws ErrnoException; in dup()
55 public FileDescriptor dup2(FileDescriptor oldFd, int newFd) throws ErrnoException; in dup2()
59 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException; in fchmod()
[all …]
DPosix.java35 import java.io.FileDescriptor;
47 …public native FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoExce… in accept()
50 …public native void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, S… in bind()
51 …public native void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketExc… in bind()
54 public native void close(FileDescriptor fd) throws ErrnoException; in close()
55 …public native void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException… in connect()
56 …public native void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, Socket… in connect()
57 public native FileDescriptor dup(FileDescriptor oldFd) throws ErrnoException; in dup()
58 public native FileDescriptor dup2(FileDescriptor oldFd, int newFd) throws ErrnoException; in dup2()
62 public native void fchmod(FileDescriptor fd, int mode) throws ErrnoException; in fchmod()
[all …]
DForwardingOs.java35 import java.io.FileDescriptor;
53 …public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, … in accept()
56 …public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketEx… in bind()
57 …public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException … in bind()
60 public void close(FileDescriptor fd) throws ErrnoException { os.close(fd); } in close()
61 …public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, Socke… in connect()
62 …public void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketExcepti… in connect()
63 public FileDescriptor dup(FileDescriptor oldFd) throws ErrnoException { return os.dup(oldFd); } in dup()
64 …public FileDescriptor dup2(FileDescriptor oldFd, int newFd) throws ErrnoException { return os.dup2… in dup2()
68 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException { os.fchmod(fd, mode); } in fchmod()
[all …]
DBlockGuardOs.java27 import java.io.FileDescriptor;
45 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()
82 @Override public void close(FileDescriptor fd) throws ErrnoException { in close()
105 private static boolean isLingerSocket(FileDescriptor fd) throws ErrnoException { in isLingerSocket()
110 …@Override public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoExcept… in connect()
115 @Override public void fchmod(FileDescriptor fd, int mode) throws ErrnoException { in fchmod()
120 @Override public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { in fchown()
127 @Override public void fdatasync(FileDescriptor fd) throws ErrnoException { in fdatasync()
[all …]
DIoBridge.java26 import java.io.FileDescriptor;
57 public static int available(FileDescriptor fd) throws IOException { in available()
81 … public static void bind(FileDescriptor fd, InetAddress address, int port) throws SocketException { in bind()
110 …public static void connect(FileDescriptor fd, InetAddress inetAddress, int port) throws SocketExce… in connect()
122 …public static void connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) th… in connect()
136 …private static void connectErrno(FileDescriptor fd, InetAddress inetAddress, int port, int timeout… in connectErrno()
196 public static void closeAndSignalBlockedThreads(FileDescriptor fd) throws IOException { in closeAndSignalBlockedThreads()
202 FileDescriptor oldFd = new FileDescriptor(); in closeAndSignalBlockedThreads()
212 …public static boolean isConnected(FileDescriptor fd, InetAddress inetAddress, int port, int timeou… in isConnected()
253 public static Object getSocketOption(FileDescriptor fd, int option) throws SocketException { in getSocketOption()
[all …]
DAsynchronousCloseMonitor.java19 import java.io.FileDescriptor;
25 public static native void signalBlockedThreads(FileDescriptor fd); in signalBlockedThreads()
/libcore/ojluni/src/main/java/sun/nio/ch/
DFileDispatcherImpl.java44 int read(FileDescriptor fd, long address, int len) throws IOException { in read()
49 int pread(FileDescriptor fd, long address, int len, long position) in pread()
56 long readv(FileDescriptor fd, long address, int len) throws IOException { in readv()
61 int write(FileDescriptor fd, long address, int len) throws IOException { in write()
66 int pwrite(FileDescriptor fd, long address, int len, long position) in pwrite()
73 long writev(FileDescriptor fd, long address, int len) in writev()
80 int force(FileDescriptor fd, boolean metaData) throws IOException { in force()
85 int truncate(FileDescriptor fd, long size) throws IOException { in truncate()
90 long size(FileDescriptor fd) throws IOException { in size()
95 int lock(FileDescriptor fd, boolean blocking, long pos, long size, in lock()
[all …]
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()
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()
DFileDispatcher.java37 abstract int force(FileDescriptor fd, boolean metaData) throws IOException; in force()
39 abstract int truncate(FileDescriptor fd, long size) throws IOException; in truncate()
41 abstract long size(FileDescriptor fd) throws IOException; in size()
43 abstract int lock(FileDescriptor fd, boolean blocking, long pos, long size, in lock()
46 abstract void release(FileDescriptor fd, long pos, long size) in release()
54 abstract FileDescriptor duplicateForMapping(FileDescriptor fd) in duplicateForMapping()
DNet.java331 static void setSocketOption(FileDescriptor fd, ProtocolFamily family,
386 static Object getSocketOption(FileDescriptor fd, ProtocolFamily family,
425 static FileDescriptor socket(boolean stream) throws IOException {
429 static FileDescriptor socket(ProtocolFamily family, boolean stream)
436 static FileDescriptor serverSocket(boolean stream) {
443 static void bind(FileDescriptor fd, InetAddress addr, int port)
449 static void bind(ProtocolFamily family, FileDescriptor fd,
457 private static native void bind0(FileDescriptor fd, boolean preferIPv6,
462 static native void listen(FileDescriptor fd, int backlog) throws IOException;
464 static int connect(FileDescriptor fd, InetAddress remote, int remotePort)
[all …]
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()
DPipeImpl.java45 FileDescriptor sourcefd = new FileDescriptor(); in PipeImpl()
48 FileDescriptor sinkfd = new FileDescriptor(); in PipeImpl()
DIOUtil.java28 import java.io.FileDescriptor;
46 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()
319 static FileDescriptor newFD(int i) { in newFD()
[all …]
DFileKey.java28 import java.io.FileDescriptor;
41 public static FileKey create(FileDescriptor fd) { in create()
69 private native void init(FileDescriptor fd) throws IOException; in init()
DInheritedChannel.java29 import java.io.FileDescriptor;
79 FileDescriptor fd, in InheritedSocketChannelImpl()
96 FileDescriptor fd) in InheritedServerSocketChannelImpl()
113 FileDescriptor fd) in InheritedDatagramChannelImpl()
172 FileDescriptor fd = (FileDescriptor)Reflect.invoke(ctr, args); in createChannel()
/libcore/ojluni/src/main/java/java/io/
DFileDescriptor.java49 public final class FileDescriptor { class
57 public FileDescriptor() { in FileDescriptor() method in FileDescriptor
61 private FileDescriptor(int descriptor) { in FileDescriptor() method in FileDescriptor
72 public static final FileDescriptor in = dupFd(0);
80 public static final FileDescriptor out = dupFd(1);
89 public static final FileDescriptor err = dupFd(2);
161 private static FileDescriptor dupFd(int fd) { in dupFd()
163 return new FileDescriptor(Os.fcntlInt(new FileDescriptor(fd), F_DUPFD_CLOEXEC, 0)); in dupFd()
DFileOutputStream.java63 private final FileDescriptor fd;
215 this.fd = new FileDescriptor(); in FileOutputStream()
248 public FileOutputStream(FileDescriptor fdObj) { in FileOutputStream()
258 public FileOutputStream(FileDescriptor fdObj, boolean isFdOwner) { in FileOutputStream()
371 public final FileDescriptor getFD() throws IOException { in getFD()
416 if (fd == FileDescriptor.out || fd == FileDescriptor.err) { in finalize()
DFileInputStream.java58 private final FileDescriptor fd;
141 fd = new FileDescriptor(); in FileInputStream()
170 public FileInputStream(FileDescriptor fdObj) { in FileInputStream()
175 public FileInputStream(FileDescriptor fdObj, boolean isFdOwner) { in FileInputStream()
374 public final FileDescriptor getFD() throws IOException { in getFD()
417 if ((fd != null) && (fd != FileDescriptor.in)) { in finalize()
/libcore/luni/src/main/java/android/system/
DOs.java21 import java.io.FileDescriptor;
43 …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()
78 public static void close(FileDescriptor fd) throws ErrnoException { Libcore.os.close(fd); } in close()
83 …public static void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException… in connect()
85 …/** @hide */ public static void connect(FileDescriptor fd, SocketAddress address) throws ErrnoExce… in connect()
90 …public static FileDescriptor dup(FileDescriptor oldFd) throws ErrnoException { return Libcore.os.d… in dup()
95 …public static FileDescriptor dup2(FileDescriptor oldFd, int newFd) throws ErrnoException { return … in dup2()
[all …]
/libcore/dalvik/src/main/java/dalvik/system/
DSocketTagger.java19 import java.io.FileDescriptor;
32 @Override public void tag(FileDescriptor socketDescriptor) throws SocketException {}
33 @Override public void untag(FileDescriptor socketDescriptor) throws SocketException {}
41 public abstract void tag(FileDescriptor socketDescriptor) throws SocketException; in tag()
51 public abstract void untag(FileDescriptor socketDescriptor) throws SocketException; in untag()
/libcore/ojluni/src/main/java/sun/net/
DNetHooks.java29 import java.io.FileDescriptor;
83 public static void beforeTcpBind(FileDescriptor fdObj, in beforeTcpBind()
95 public static void beforeTcpConnect(FileDescriptor fdObj, in beforeTcpConnect()
/libcore/ojluni/src/main/java/java/net/
DPlainSocketImpl.java29 import java.io.FileDescriptor;
43 this(new FileDescriptor()); in PlainSocketImpl()
49 PlainSocketImpl(FileDescriptor fd) { in PlainSocketImpl()
DSocketImpl.java32 import java.io.FileDescriptor;
55 protected FileDescriptor fd;
225 protected FileDescriptor getFileDescriptor() { in getFileDescriptor()
232 public FileDescriptor getFD$() { in getFD$()
DDatagramSocketImpl.java28 import java.io.FileDescriptor;
48 protected FileDescriptor fd;
241 protected FileDescriptor getFileDescriptor() { in getFileDescriptor()

1234