Lines Matching refs:_vcsock
787 if (statp->_vcsock >= 0 && (statp->_flags & RES_F_VC) != 0) { in send_vc()
792 if (getpeername(statp->_vcsock, in send_vc()
795 getsockopt(statp->_vcsock, SOL_SOCKET, SO_MARK, &old_mark, &mark_size) < 0 || in send_vc()
802 if (statp->_vcsock < 0 || (statp->_flags & RES_F_VC) == 0) { in send_vc()
803 if (statp->_vcsock >= 0) in send_vc()
806 statp->_vcsock = socket(nsap->sa_family, SOCK_STREAM | SOCK_CLOEXEC, 0); in send_vc()
807 if (statp->_vcsock < 0) { in send_vc()
822 fchown(statp->_vcsock, AID_DNS, -1); in send_vc()
824 if (setsockopt(statp->_vcsock, SOL_SOCKET, in send_vc()
832 if (random_bind(statp->_vcsock,nsap->sa_family) < 0) { in send_vc()
839 if (connect_with_timeout(statp->_vcsock, nsap, (socklen_t)nsaplen, in send_vc()
866 if (writev(statp->_vcsock, iov, 2) != (INT16SZ + buflen)) { in send_vc()
878 while ((n = read(statp->_vcsock, (char *)cp, (size_t)len)) > 0) { in send_vc()
924 while (len != 0 && (n = read(statp->_vcsock, (char *)cp, (size_t)len)) > 0){ in send_vc()
944 n = read(statp->_vcsock, junk, in send_vc()