Lines Matching refs:fd

44     private FileDescriptor fd;
45 /** whether fd is created internally */
62 FileDescriptor myFd = fd;
85 FileDescriptor myFd = fd;
103 FileDescriptor myFd = fd;
138 FileDescriptor myFd = fd;
152 FileDescriptor myFd = fd;
166 FileDescriptor myFd = fd;
193 private native int read_native(FileDescriptor fd) throws IOException;
195 FileDescriptor fd) throws IOException;
197 FileDescriptor fd) throws IOException;
198 private native void write_native(int b, FileDescriptor fd)
200 private native void connectLocal(FileDescriptor fd, String name,
202 private native void bindLocal(FileDescriptor fd, String name, int namespace)
205 FileDescriptor fd) throws IOException;
219 * @param fd non-null; bound file descriptor
221 /*package*/ LocalSocketImpl(FileDescriptor fd)
223 this.fd = fd;
227 return super.toString() + " fd:" + fd;
238 if (fd != null) {
239 throw new IOException("LocalSocketImpl already has an fd");
257 fd = Os.socket(OsConstants.AF_UNIX, osType, 0);
271 if ((fd == null) || (mFdCreatedInternally == false)) {
272 fd = null;
276 Os.close(fd);
280 fd = null;
288 if (fd == null) {
292 connectLocal(fd, address.getName(), address.getNamespace().getId());
304 if (fd == null) {
308 bindLocal(fd, endpoint.getName(), endpoint.getNamespace().getId());
313 if (fd == null) {
317 Os.listen(fd, backlog);
331 if (fd == null) {
336 s.fd = Os.accept(fd, null /* address */);
351 if (fd == null) {
372 if (fd == null) {
403 if (fd == null) {
408 Os.shutdown(fd, OsConstants.SHUT_RD);
421 if (fd == null) {
426 Os.shutdown(fd, OsConstants.SHUT_WR);
434 return fd;
449 if (fd == null) {
457 StructTimeval timeval = Os.getsockoptTimeval(fd, OsConstants.SOL_SOCKET,
465 toReturn = Os.getsockoptInt(fd, OsConstants.SOL_SOCKET, osOpt);
469 Os.getsockoptLinger(fd, OsConstants.SOL_SOCKET, OsConstants.SO_LINGER);
477 toReturn = Os.getsockoptInt(fd, OsConstants.IPPROTO_TCP,
492 if (fd == null) {
516 Os.setsockoptLinger(fd, OsConstants.SOL_SOCKET, OsConstants.SO_LINGER, linger);
522 Os.setsockoptTimeval(fd, OsConstants.SOL_SOCKET, OsConstants.SO_RCVTIMEO,
524 Os.setsockoptTimeval(fd, OsConstants.SOL_SOCKET, OsConstants.SO_SNDTIMEO,
531 Os.setsockoptInt(fd, OsConstants.SOL_SOCKET, osOpt, intValue);
534 Os.setsockoptInt(fd, OsConstants.IPPROTO_TCP, OsConstants.TCP_NODELAY,
587 return getPeerCredentials_native(fd);