Lines Matching refs:res0
592 struct addrinfo *res, *res0; in remote_connect() local
598 res0 = res; in remote_connect()
600 if ((s = socket(res0->ai_family, res0->ai_socktype, in remote_connect()
601 res0->ai_protocol)) < 0) in remote_connect()
621 ahints.ai_family = res0->ai_family; in remote_connect()
636 if (timeout_connect(s, res0->ai_addr, res0->ai_addrlen) == 0) in remote_connect()
644 } while ((res0 = res0->ai_next) != NULL); in remote_connect()
696 struct addrinfo *res, *res0; in local_listen() local
713 res0 = res; in local_listen()
715 if ((s = socket(res0->ai_family, res0->ai_socktype, in local_listen()
716 res0->ai_protocol)) < 0) in local_listen()
737 if (bind(s, (struct sockaddr *)res0->ai_addr, in local_listen()
738 res0->ai_addrlen) == 0) in local_listen()
743 } while ((res0 = res0->ai_next) != NULL); in local_listen()