Lines Matching refs:sockfd
243 timeout_connect(int sockfd, const struct sockaddr *serv_addr,
254 result = connect(sockfd, serv_addr, addrlen);
258 set_nonblock(sockfd);
259 rc = connect(sockfd, serv_addr, addrlen);
261 unset_nonblock(sockfd);
270 fdset = (fd_set *)xcalloc(howmany(sockfd + 1, NFDBITS),
272 FD_SET(sockfd, fdset);
276 rc = select(sockfd + 1, NULL, fdset, NULL, &tv);
294 if (getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &optval,
304 unset_nonblock(sockfd);