Lines Matching defs:cur
185 struct addrinfo hints, *ai, *cur;
226 cur = ai;
227 while (cur != NULL && cur->ai_canonname == NULL &&
228 cur->ai_next != NULL)
229 cur = cur->ai_next;
230 if (cur != NULL && cur->ai_canonname != NULL &&
231 strcasecmp(cur->ai_canonname, namebuf) != 0 &&
237 cur->ai_canonname);
276 for (cur = ai; cur != NULL; cur = cur->ai_next) {
277 if (cur->ai_family != AF_INET)
279 ptr = &((struct sockaddr_in *)(cur->ai_addr))->sin_addr;
306 for (cur = ai; cur != NULL; cur = cur->ai_next) {
307 if (cur->ai_family != AF_INET6)
309 ptr = &((struct sockaddr_in6 *)(cur->ai_addr))->sin6_addr;
335 for (cur = ai; cur != NULL; cur = cur->ai_next) {
336 switch (cur->ai_family) {
339 ptr = &((struct sockaddr_in *)(cur->ai_addr))->sin_addr;
344 ptr = &((struct sockaddr_in6 *)(cur->ai_addr))->sin6_addr;
366 inet_ntop(cur->ai_family, ptr,
386 struct addrinfo hints, *ai, *cur;
416 cur = ai;
417 while (cur != NULL && cur->ai_canonname == NULL &&
418 cur->ai_next != NULL)
419 cur = cur->ai_next;
420 if (cur != NULL && cur->ai_canonname != NULL &&
421 strcasecmp(cur->ai_canonname, namebuf) != 0) {
431 cur->ai_canonname);
472 struct addrinfo hints, *ai, *cur;
502 cur = ai;
503 while (cur != NULL && cur->ai_canonname == NULL &&
504 cur->ai_next != NULL)
505 cur = cur->ai_next;
506 if (cur != NULL && cur->ai_canonname != NULL &&
507 strcasecmp(cur->ai_canonname, namebuf) != 0) {
516 cur->ai_canonname);