Searched refs:fd (Results 1 - 25 of 55) sorted by relevance

123

/libcore/luni/src/main/java/libcore/io/
H A DBlockGuardOs.java36 private FileDescriptor tagSocket(FileDescriptor fd) throws ErrnoException { argument
38 SocketTagger.get().tag(fd);
39 return fd;
45 private void untagSocket(FileDescriptor fd) throws ErrnoException { argument
47 SocketTagger.get().untag(fd);
53 @Override public FileDescriptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws ErrnoException, SocketException { argument
55 return tagSocket(os.accept(fd, peerAddress));
58 @Override public void close(FileDescriptor fd) throws ErrnoException { argument
60 if (S_ISSOCK(Libcore.os.fstat(fd).st_mode)) {
61 if (isLingerSocket(fd)) {
78 isLingerSocket(FileDescriptor fd) argument
83 connect(FileDescriptor fd, InetAddress address, int port) argument
90 fdatasync(FileDescriptor fd) argument
95 fsync(FileDescriptor fd) argument
100 ftruncate(FileDescriptor fd, long length) argument
122 pread(FileDescriptor fd, ByteBuffer buffer, long offset) argument
127 pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument
132 pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) argument
137 pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument
142 read(FileDescriptor fd, ByteBuffer buffer) argument
147 read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument
152 readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument
157 recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) argument
162 recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) argument
167 sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) argument
172 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument
190 write(FileDescriptor fd, ByteBuffer buffer) argument
195 write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument
200 writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument
[all...]
H A DStructPollfd.java27 public FileDescriptor fd; field in class:StructPollfd
30 * The events we're interested in. POLLIN corresponds to being in select(2)'s read fd set,
31 * POLLOUT to the write fd set.
40 * their fd belongs to. This is used by Selector, for example, to associate each
46 return "StructPollfd[fd=" + fd + ",events=" + events + ",revents=" + revents + "]";
H A DAsynchronousCloseMonitor.java25 public static native void signalBlockedThreads(FileDescriptor fd); argument
H A DPosix.java32 public native FileDescriptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws ErrnoException, SocketException; argument
34 public native void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; argument
37 public native void close(FileDescriptor fd) throws ErrnoException; argument
38 public native void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; argument
44 public native void fchmod(FileDescriptor fd, int mode) throws ErrnoException; argument
45 public native void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; argument
46 public native int fcntlVoid(FileDescriptor fd, int cmd) throws ErrnoException; argument
47 public native int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException; argument
48 public native int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException; argument
49 public native void fdatasync(FileDescriptor fd) throw argument
50 fstat(FileDescriptor fd) argument
51 fstatvfs(FileDescriptor fd) argument
52 fsync(FileDescriptor fd) argument
53 ftruncate(FileDescriptor fd, long length) argument
61 getpeername(FileDescriptor fd) argument
66 getsockname(FileDescriptor fd) argument
67 getsockoptByte(FileDescriptor fd, int level, int option) argument
68 getsockoptInAddr(FileDescriptor fd, int level, int option) argument
69 getsockoptInt(FileDescriptor fd, int level, int option) argument
70 getsockoptLinger(FileDescriptor fd, int level, int option) argument
71 getsockoptTimeval(FileDescriptor fd, int level, int option) argument
72 getsockoptUcred(FileDescriptor fd, int level, int option) argument
77 ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) argument
78 ioctlInt(FileDescriptor fd, int cmd, MutableInt arg) argument
79 isatty(FileDescriptor fd) argument
82 listen(FileDescriptor fd, int backlog) argument
83 lseek(FileDescriptor fd, long offset, int whence) argument
88 mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) argument
95 pread(FileDescriptor fd, ByteBuffer buffer, long offset) argument
102 pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument
106 preadBytes(FileDescriptor fd, Object buffer, int bufferOffset, int byteCount, long offset) argument
107 pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) argument
114 pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument
118 pwriteBytes(FileDescriptor fd, Object buffer, int bufferOffset, int byteCount, long offset) argument
119 read(FileDescriptor fd, ByteBuffer buffer) argument
126 read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument
130 readBytes(FileDescriptor fd, Object buffer, int offset, int byteCount) argument
131 readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument
132 recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) argument
139 recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) argument
143 recvfromBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) argument
147 sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) argument
154 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument
158 sendtoBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument
164 setsockoptByte(FileDescriptor fd, int level, int option, int value) argument
165 setsockoptIfreq(FileDescriptor fd, int level, int option, String value) argument
166 setsockoptInt(FileDescriptor fd, int level, int option, int value) argument
167 setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) argument
168 setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) argument
169 setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) argument
170 setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) argument
172 shutdown(FileDescriptor fd, int how) argument
181 tcdrain(FileDescriptor fd) argument
182 tcsendbreak(FileDescriptor fd, int duration) argument
193 write(FileDescriptor fd, ByteBuffer buffer) argument
200 write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument
204 writeBytes(FileDescriptor fd, Object buffer, int offset, int byteCount) argument
205 writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument
[all...]
H A DForwardingOs.java38 public FileDescriptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws ErrnoException, SocketException { return os.accept(fd, peerAddress); } argument
40 public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { os.bind(fd, address, port); } argument
43 public void close(FileDescriptor fd) throws ErrnoException { os.close(fd); } argument
44 public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { os.connect(fd, address, port); } argument
50 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException { os.fchmod(fd, mod argument
51 fchown(FileDescriptor fd, int uid, int gid) argument
52 fcntlVoid(FileDescriptor fd, int cmd) argument
53 fcntlLong(FileDescriptor fd, int cmd, long arg) argument
54 fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) argument
55 fdatasync(FileDescriptor fd) argument
56 fstat(FileDescriptor fd) argument
57 fstatvfs(FileDescriptor fd) argument
58 fsync(FileDescriptor fd) argument
59 ftruncate(FileDescriptor fd, long length) argument
67 getpeername(FileDescriptor fd) argument
72 getsockname(FileDescriptor fd) argument
73 getsockoptByte(FileDescriptor fd, int level, int option) argument
74 getsockoptInAddr(FileDescriptor fd, int level, int option) argument
75 getsockoptInt(FileDescriptor fd, int level, int option) argument
76 getsockoptLinger(FileDescriptor fd, int level, int option) argument
77 getsockoptTimeval(FileDescriptor fd, int level, int option) argument
78 getsockoptUcred(FileDescriptor fd, int level, int option) argument
83 ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) argument
84 ioctlInt(FileDescriptor fd, int cmd, MutableInt arg) argument
85 isatty(FileDescriptor fd) argument
88 listen(FileDescriptor fd, int backlog) argument
89 lseek(FileDescriptor fd, long offset, int whence) argument
94 mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) argument
101 pread(FileDescriptor fd, ByteBuffer buffer, long offset) argument
102 pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument
103 pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) argument
104 pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument
105 read(FileDescriptor fd, ByteBuffer buffer) argument
106 read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument
107 readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument
108 recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) argument
109 recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) argument
113 sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) argument
114 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument
120 setsockoptByte(FileDescriptor fd, int level, int option, int value) argument
121 setsockoptIfreq(FileDescriptor fd, int level, int option, String value) argument
122 setsockoptInt(FileDescriptor fd, int level, int option, int value) argument
123 setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) argument
124 setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) argument
125 setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) argument
126 setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) argument
128 shutdown(FileDescriptor fd, int how) argument
137 tcdrain(FileDescriptor fd) argument
138 tcsendbreak(FileDescriptor fd, int duration) argument
143 write(FileDescriptor fd, ByteBuffer buffer) argument
144 write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument
145 writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument
[all...]
H A DOs.java29 public FileDescriptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws ErrnoException, SocketException; argument
31 public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; argument
34 public void close(FileDescriptor fd) throws ErrnoException; argument
35 public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; argument
41 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException; argument
42 public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; argument
43 public int fcntlVoid(FileDescriptor fd, int cmd) throws ErrnoException; argument
44 public int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException; argument
45 public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException; argument
46 public void fdatasync(FileDescriptor fd) throw argument
47 fstat(FileDescriptor fd) argument
48 fstatvfs(FileDescriptor fd) argument
49 fsync(FileDescriptor fd) argument
50 ftruncate(FileDescriptor fd, long length) argument
59 getpeername(FileDescriptor fd) argument
64 getsockname(FileDescriptor fd) argument
65 getsockoptByte(FileDescriptor fd, int level, int option) argument
66 getsockoptInAddr(FileDescriptor fd, int level, int option) argument
67 getsockoptInt(FileDescriptor fd, int level, int option) argument
68 getsockoptLinger(FileDescriptor fd, int level, int option) argument
69 getsockoptTimeval(FileDescriptor fd, int level, int option) argument
70 getsockoptUcred(FileDescriptor fd, int level, int option) argument
75 ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) argument
76 ioctlInt(FileDescriptor fd, int cmd, MutableInt arg) argument
77 isatty(FileDescriptor fd) argument
80 listen(FileDescriptor fd, int backlog) argument
81 lseek(FileDescriptor fd, long offset, int whence) argument
86 mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) argument
94 pread(FileDescriptor fd, ByteBuffer buffer, long offset) argument
95 pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument
96 pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) argument
97 pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument
98 read(FileDescriptor fd, ByteBuffer buffer) argument
99 read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument
100 readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument
101 recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) argument
102 recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) argument
105 sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) argument
106 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument
113 setsockoptByte(FileDescriptor fd, int level, int option, int value) argument
114 setsockoptIfreq(FileDescriptor fd, int level, int option, String value) argument
115 setsockoptInt(FileDescriptor fd, int level, int option, int value) argument
116 setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) argument
117 setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) argument
118 setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) argument
119 setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) argument
121 shutdown(FileDescriptor fd, int how) argument
130 tcdrain(FileDescriptor fd) argument
131 tcsendbreak(FileDescriptor fd, int duration) argument
136 write(FileDescriptor fd, ByteBuffer buffer) argument
137 write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument
138 writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument
[all...]
H A DIoBridge.java49 public static int available(FileDescriptor fd) throws IOException { argument
52 Libcore.os.ioctlInt(fd, FIONREAD, available);
54 // If the fd refers to a regular file, the result is the difference between
56 // is past the end of the file. If the fd refers to a special file masquerading
65 // The fd is unwilling to opine about its read buffer.
73 public static void bind(FileDescriptor fd, InetAddress address, int port) throws SocketException { argument
87 Libcore.os.bind(fd, address, port);
95 * Connects socket 'fd' to 'inetAddress' on 'port', with no timeout. The lack of a timeout
98 public static boolean connect(FileDescriptor fd, InetAddress inetAddress, int port) throws SocketException { argument
100 return IoBridge.connect(fd, inetAddres
110 connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) argument
124 connectErrno(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) argument
177 closeSocket(FileDescriptor fd) argument
194 isConnected(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs, int remainingTimeoutMs) argument
235 getSocketOption(FileDescriptor fd, int option) argument
243 getSocketOptionErrno(FileDescriptor fd, int option) argument
302 setSocketOption(FileDescriptor fd, int option, Object value) argument
310 setSocketOptionErrno(FileDescriptor fd, int option, Object value) argument
419 read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument
443 write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument
459 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument
473 sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) argument
502 recvfrom(boolean isRead, FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, DatagramPacket packet, boolean isConnected) argument
514 recvfrom(boolean isRead, FileDescriptor fd, ByteBuffer buffer, int flags, DatagramPacket packet, boolean isConnected) argument
580 getSocketLocalAddress(FileDescriptor fd) argument
590 getSocketLocalPort(FileDescriptor fd) argument
[all...]
H A DIoUtils.java37 * Calls close(2) on 'fd'. Also resets the internal int to -1. Does nothing if 'fd' is null
40 public static void close(FileDescriptor fd) throws IOException { argument
42 if (fd != null && fd.valid()) {
43 Libcore.os.close(fd);
65 * Closes 'fd', ignoring any exceptions. Does nothing if 'fd' is null or invalid.
67 public static void closeQuietly(FileDescriptor fd) { argument
69 IoUtils.close(fd);
89 setBlocking(FileDescriptor fd, boolean blocking) argument
193 private FileDescriptor fd; field in class:IoUtils.FileReader
[all...]
H A DMemoryMappedFile.java51 FileDescriptor fd = Libcore.os.open(path, O_RDONLY, 0);
52 long size = Libcore.os.fstat(fd).st_size;
53 long address = Libcore.os.mmap(0L, size, PROT_READ, MAP_SHARED, fd, 0);
54 Libcore.os.close(fd);
/libcore/luni/src/main/java/java/io/
H A DFileInputStream.java58 private FileDescriptor fd; field in class:FileInputStream
78 this.fd = IoBridge.open(file.getAbsolutePath(), O_RDONLY);
84 * Constructs a new {@code FileInputStream} that reads from {@code fd}.
86 * @param fd
89 * if {@code fd} is {@code null}.
91 public FileInputStream(FileDescriptor fd) { argument
92 if (fd == null) {
93 throw new NullPointerException("fd == null");
95 this.fd = fd;
[all...]
H A DFileOutputStream.java55 private FileDescriptor fd; field in class:FileOutputStream
88 this.fd = IoBridge.open(file.getAbsolutePath(), mode);
94 * Constructs a new {@code FileOutputStream} that writes to {@code fd}.
96 * @throws NullPointerException if {@code fd} is null.
98 public FileOutputStream(FileDescriptor fd) { argument
99 if (fd == null) {
100 throw new NullPointerException("fd == null");
102 this.fd = fd;
105 this.channel = NioUtils.newFileChannel(this, fd, mod
[all...]
H A DFileReader.java46 * Construct a new FileReader on the given FileDescriptor {@code fd}. Since
50 * @param fd
53 public FileReader(FileDescriptor fd) { argument
54 super(new FileInputStream(fd));
H A DFileWriter.java62 * Creates a FileWriter using the existing FileDescriptor {@code fd}.
64 * @param fd
67 public FileWriter(FileDescriptor fd) { argument
68 super(new FileOutputStream(fd));
/libcore/luni/src/main/native/
H A DAsynchronousSocketCloseMonitor.h32 * AsynchronousSocketCloseMonitor monitor(fd);
33 * byteCount = ::read(fd, buf, sizeof(buf));
36 * To interrupt all threads currently blocked on file descriptor 'fd', call signalBlockedThreads:
38 * AsynchronousSocketCloseMonitor::signalBlockedThreads(fd);
42 AsynchronousSocketCloseMonitor(int fd);
47 static void signalBlockedThreads(int fd);
H A Dlibcore_io_AsynchronousCloseMonitor.cpp25 int fd = jniGetFDFromFileDescriptor(env, javaFd); local
26 AsynchronousSocketCloseMonitor::signalBlockedThreads(fd);
H A DNetFd.h58 #define NET_FAILURE_RETRY(fd, exp) ({ \
63 if (fd.isClosed() || errno != EINTR) { \
H A DAsynchronousSocketCloseMonitor.cpp64 void AsynchronousSocketCloseMonitor::signalBlockedThreads(int fd) { argument
67 if (it->mFd == fd) {
74 AsynchronousSocketCloseMonitor::AsynchronousSocketCloseMonitor(int fd) { argument
78 mFd = fd;
H A Dlibcore_net_RawSocket.cpp105 NetFd fd(env, fileDescriptor);
107 if (fd.isClosed()) {
137 int intFd = fd.get();
139 err = NET_FAILURE_RETRY(fd, sendto(intFd, byteArray.get() + offset,
157 NetFd fd(env, fileDescriptor);
158 if (fd.isClosed()) {
171 fds[0].fd = fd.get();
181 int intFd = fd.get();
183 size = NET_FAILURE_RETRY(fd, rea
[all...]
H A Djava_lang_ProcessManager.cpp39 // On Cygwin, Linux, and Solaris, the best way to close iterates over "/proc/self/fd/".
40 const char* fd_path = "/proc/self/fd";
42 // On Mac OS, there's "/dev/fd/" which Linux seems to link to "/proc/self/fd/",
44 fd_path = "/dev/fd";
47 // Keep track of the system properties fd so we don't close it.
59 int fd = strtol(e->d_name, &end, 10); local
61 if (fd > STDERR_FILENO && fd != dir_fd && fd !
73 int fd = pipes[i]; local
[all...]
/libcore/luni/src/main/java/libcore/net/
H A DRawSocket.java45 private static native void create(FileDescriptor fd, short argument
48 private static native int sendPacket(FileDescriptor fd, argument
51 private static native int recvPacket(FileDescriptor fd, byte[] packet, argument
54 private final FileDescriptor fd; field in class:RawSocket
66 fd = new FileDescriptor();
67 create(fd, mProtocolType, mInterfaceName);
93 return recvPacket(fd, packet, offset, byteCount, destPort,
119 return sendPacket(fd, mInterfaceName, mProtocolType, destMac, packet,
129 IoBridge.closeSocket(fd);
/libcore/luni/src/main/java/java/nio/
H A DPipeImpl.java61 private final FileDescriptor fd; field in class:PipeImpl.PipeSourceChannel
64 private PipeSourceChannel(SelectorProvider selectorProvider, FileDescriptor fd) throws IOException { argument
66 this.fd = fd;
67 this.channel = new SocketChannelImpl(selectorProvider, fd);
91 return fd;
96 private final FileDescriptor fd; field in class:PipeImpl.PipeSinkChannel
99 private PipeSinkChannel(SelectorProvider selectorProvider, FileDescriptor fd) throws IOException { argument
101 this.fd = fd;
[all...]
H A DNioUtils.java46 public static FileChannel newFileChannel(Object stream, FileDescriptor fd, int mode) { argument
47 return new FileChannelImpl(stream, fd, mode);
/libcore/luni/src/main/java/java/net/
H A DPlainServerSocketImpl.java32 public PlainServerSocketImpl(FileDescriptor fd) { argument
33 super(fd);
H A DPlainSocketImpl.java62 public PlainSocketImpl(FileDescriptor fd) { argument
63 this.fd = fd;
64 if (fd.valid()) {
78 public PlainSocketImpl(FileDescriptor fd, int localport, InetAddress addr, int port) { argument
79 this.fd = fd;
83 if (fd.valid()) {
98 FileDescriptor clientFd = Libcore.os.accept(fd, peerAddress);
100 // TODO: we can't just set newImpl.fd t
[all...]
H A DPlainDatagramSocketImpl.java55 public PlainDatagramSocketImpl(FileDescriptor fd, int localPort) { argument
56 this.fd = fd;
58 if (fd.valid()) {
64 fd = new FileDescriptor();
68 IoBridge.bind(fd, address, port);
72 localPort = IoBridge.getSocketLocalPort(fd);
84 IoBridge.closeSocket(fd);
91 this.fd = IoBridge.socket(false);
106 return IoBridge.getSocketOption(fd, optio
[all...]

Completed in 230 milliseconds

123