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

123

/libcore/include/
H A DScopedFd.h22 // A smart pointer that closes the given fd on going out of scope.
23 // Use this when the fd is incidental to the purpose of your function,
27 explicit ScopedFd(int fd) : fd(fd) { argument
31 close(fd);
35 return fd;
39 int fd; member in class:ScopedFd
/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
42 public native void fchmod(FileDescriptor fd, int mode) throws ErrnoException; argument
43 public native void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; argument
44 public native int fcntlVoid(FileDescriptor fd, int cmd) throws ErrnoException; argument
45 public native int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException; argument
46 public native int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException; argument
47 public native void fdatasync(FileDescriptor fd) throw argument
48 fstat(FileDescriptor fd) argument
49 fstatfs(FileDescriptor fd) argument
50 fsync(FileDescriptor fd) argument
51 ftruncate(FileDescriptor fd, long length) argument
63 getsockname(FileDescriptor fd) argument
64 getsockoptByte(FileDescriptor fd, int level, int option) argument
65 getsockoptInAddr(FileDescriptor fd, int level, int option) argument
66 getsockoptInt(FileDescriptor fd, int level, int option) argument
67 getsockoptLinger(FileDescriptor fd, int level, int option) argument
68 getsockoptTimeval(FileDescriptor fd, int level, int option) argument
72 ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) argument
73 ioctlInt(FileDescriptor fd, int cmd, MutableInt arg) argument
74 isatty(FileDescriptor fd) argument
77 listen(FileDescriptor fd, int backlog) argument
78 lseek(FileDescriptor fd, long offset, int whence) argument
83 mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) argument
90 pread(FileDescriptor fd, ByteBuffer buffer, long offset) argument
97 pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument
101 preadBytes(FileDescriptor fd, Object buffer, int bufferOffset, int byteCount, long offset) argument
102 pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) argument
109 pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument
113 pwriteBytes(FileDescriptor fd, Object buffer, int bufferOffset, int byteCount, long offset) argument
114 read(FileDescriptor fd, ByteBuffer buffer) argument
121 read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument
125 readBytes(FileDescriptor fd, Object buffer, int offset, int byteCount) argument
126 readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument
127 recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) argument
134 recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) argument
138 recvfromBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) argument
142 sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) argument
149 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument
153 sendtoBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument
158 setsockoptByte(FileDescriptor fd, int level, int option, int value) argument
159 setsockoptIfreq(FileDescriptor fd, int level, int option, String value) argument
160 setsockoptInt(FileDescriptor fd, int level, int option, int value) argument
161 setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) argument
162 setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) argument
163 setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) argument
164 setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) argument
166 shutdown(FileDescriptor fd, int how) argument
174 tcdrain(FileDescriptor fd) argument
178 write(FileDescriptor fd, ByteBuffer buffer) argument
185 write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument
189 writeBytes(FileDescriptor fd, Object buffer, int offset, int byteCount) argument
190 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
48 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException { os.fchmod(fd, mod argument
49 fchown(FileDescriptor fd, int uid, int gid) argument
50 fcntlVoid(FileDescriptor fd, int cmd) argument
51 fcntlLong(FileDescriptor fd, int cmd, long arg) argument
52 fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) argument
53 fdatasync(FileDescriptor fd) argument
54 fstat(FileDescriptor fd) argument
55 fstatfs(FileDescriptor fd) argument
56 fsync(FileDescriptor fd) argument
57 ftruncate(FileDescriptor fd, long length) argument
69 getsockname(FileDescriptor fd) argument
70 getsockoptByte(FileDescriptor fd, int level, int option) argument
71 getsockoptInAddr(FileDescriptor fd, int level, int option) argument
72 getsockoptInt(FileDescriptor fd, int level, int option) argument
73 getsockoptLinger(FileDescriptor fd, int level, int option) argument
74 getsockoptTimeval(FileDescriptor fd, int level, int option) argument
78 ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) argument
79 ioctlInt(FileDescriptor fd, int cmd, MutableInt arg) argument
80 isatty(FileDescriptor fd) argument
83 listen(FileDescriptor fd, int backlog) argument
84 lseek(FileDescriptor fd, long offset, int whence) argument
89 mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) argument
96 pread(FileDescriptor fd, ByteBuffer buffer, long offset) argument
97 pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument
98 pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) argument
99 pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument
100 read(FileDescriptor fd, ByteBuffer buffer) argument
101 read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument
102 readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument
103 recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) argument
104 recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) argument
108 sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) argument
109 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument
114 setsockoptByte(FileDescriptor fd, int level, int option, int value) argument
115 setsockoptIfreq(FileDescriptor fd, int level, int option, String value) argument
116 setsockoptInt(FileDescriptor fd, int level, int option, int value) argument
117 setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) argument
118 setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) argument
119 setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) argument
120 setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) argument
122 shutdown(FileDescriptor fd, int how) argument
130 tcdrain(FileDescriptor fd) argument
134 write(FileDescriptor fd, ByteBuffer buffer) argument
135 write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument
136 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
39 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException; argument
40 public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; argument
41 public int fcntlVoid(FileDescriptor fd, int cmd) throws ErrnoException; argument
42 public int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException; argument
43 public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException; argument
44 public void fdatasync(FileDescriptor fd) throw argument
45 fstat(FileDescriptor fd) argument
46 fstatfs(FileDescriptor fd) argument
47 fsync(FileDescriptor fd) argument
48 ftruncate(FileDescriptor fd, long length) argument
61 getsockname(FileDescriptor fd) argument
62 getsockoptByte(FileDescriptor fd, int level, int option) argument
63 getsockoptInAddr(FileDescriptor fd, int level, int option) argument
64 getsockoptInt(FileDescriptor fd, int level, int option) argument
65 getsockoptLinger(FileDescriptor fd, int level, int option) argument
66 getsockoptTimeval(FileDescriptor fd, int level, int option) argument
70 ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) argument
71 ioctlInt(FileDescriptor fd, int cmd, MutableInt arg) argument
72 isatty(FileDescriptor fd) argument
75 listen(FileDescriptor fd, int backlog) argument
76 lseek(FileDescriptor fd, long offset, int whence) argument
81 mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) argument
89 pread(FileDescriptor fd, ByteBuffer buffer, long offset) argument
90 pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument
91 pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) argument
92 pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) argument
93 read(FileDescriptor fd, ByteBuffer buffer) argument
94 read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument
95 readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) argument
96 recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) argument
97 recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) argument
100 sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) argument
101 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument
107 setsockoptByte(FileDescriptor fd, int level, int option, int value) argument
108 setsockoptIfreq(FileDescriptor fd, int level, int option, String value) argument
109 setsockoptInt(FileDescriptor fd, int level, int option, int value) argument
110 setsockoptIpMreqn(FileDescriptor fd, int level, int option, int value) argument
111 setsockoptGroupReq(FileDescriptor fd, int level, int option, StructGroupReq value) argument
112 setsockoptLinger(FileDescriptor fd, int level, int option, StructLinger value) argument
113 setsockoptTimeval(FileDescriptor fd, int level, int option, StructTimeval value) argument
115 shutdown(FileDescriptor fd, int how) argument
124 tcdrain(FileDescriptor fd) argument
128 write(FileDescriptor fd, ByteBuffer buffer) argument
129 write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument
130 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
242 getSocketOption(FileDescriptor fd, int option) argument
250 getSocketOptionErrno(FileDescriptor fd, int option) argument
309 setSocketOption(FileDescriptor fd, int option, Object value) argument
317 setSocketOptionErrno(FileDescriptor fd, int option, Object value) argument
426 read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument
450 write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) argument
466 sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) argument
480 sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) argument
509 recvfrom(boolean isRead, FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, DatagramPacket packet, boolean isConnected) argument
521 recvfrom(boolean isRead, FileDescriptor fd, ByteBuffer buffer, int flags, DatagramPacket packet, boolean isConnected) argument
587 getSocketLocalAddress(FileDescriptor fd) argument
597 getSocketLocalPort(FileDescriptor fd) argument
[all...]
H A DIoUtils.java32 * Calls close(2) on 'fd'. Also resets the internal int to -1. Does nothing if 'fd' is null
35 public static void close(FileDescriptor fd) throws IOException { argument
37 if (fd != null && fd.valid()) {
38 Libcore.os.close(fd);
60 * Closes 'fd', ignoring any exceptions. Does nothing if 'fd' is null or invalid.
62 public static void closeQuietly(FileDescriptor fd) { argument
64 IoUtils.close(fd);
84 setBlocking(FileDescriptor fd, boolean blocking) argument
[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.cpp60 void AsynchronousSocketCloseMonitor::signalBlockedThreads(int fd) { argument
63 if (it->mFd == fd) {
70 AsynchronousSocketCloseMonitor::AsynchronousSocketCloseMonitor(int fd) { argument
74 mFd = fd;
H A Dlibcore_net_RawSocket.cpp102 NetFd fd(env, fileDescriptor);
104 if (fd.isClosed()) {
134 int intFd = fd.get();
136 err = NET_FAILURE_RETRY(fd, sendto(intFd, byteArray.get() + offset,
154 NetFd fd(env, fileDescriptor);
155 if (fd.isClosed()) {
168 fds[0].fd = fd.get();
178 int intFd = fd.get();
180 size = NET_FAILURE_RETRY(fd, rea
[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...]
/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...]
/libcore/luni/src/main/java/java/lang/
H A DProcessManager.java342 /** Automatically closes fd when collected. */
345 private FileDescriptor fd; field in class:ProcessManager.ProcessInputStream
347 private ProcessInputStream(FileDescriptor fd) { argument
348 super(fd);
349 this.fd = fd;
359 IoUtils.close(fd);
361 fd = null;
368 /** Automatically closes fd when collected. */
371 private FileDescriptor fd; field in class:ProcessManager.ProcessOutputStream
373 ProcessOutputStream(FileDescriptor fd) argument
[all...]

Completed in 426 milliseconds

123