Searched refs:nssocks (Results 1 – 3 of 3) sorted by relevance
436 if (statp->_u._ext.nssocks[ns] == -1) continue; in res_nsend()438 if (getpeername(statp->_u._ext.nssocks[ns], (struct sockaddr*) (void*) &peer, in res_nsend()461 statp->_u._ext.nssocks[ns] = -1; in res_nsend()481 fd = statp->_u._ext.nssocks[0]; in res_nsend()487 statp->_u._ext.nssocks[ns] = statp->_u._ext.nssocks[ns + 1]; in res_nsend()492 statp->_u._ext.nssocks[lastns] = fd; in res_nsend()989 if (statp->_u._ext.nssocks[ns] == -1) { in send_dg()990 statp->_u._ext.nssocks[ns] = socket(nsap->sa_family, SOCK_DGRAM | SOCK_CLOEXEC, 0); in send_dg()991 if (statp->_u._ext.nssocks[ns] < 0) { in send_dg()1005 fchown(statp->_u._ext.nssocks[ns], AID_DNS, -1); in send_dg()[all …]
288 if (statp->_u._ext.nssocks[ns] != -1) { in res_nclose()289 (void) close(statp->_u._ext.nssocks[ns]); in res_nclose()290 statp->_u._ext.nssocks[ns] = -1; in res_nclose()
115 int nssocks[MAXNS]; member