Lines Matching refs:ii
74 unsigned int ii; in hostent_free() local
79 for (ii = 0; hp->h_aliases[ii] != NULL; ii++) in hostent_free()
80 free(hp->h_aliases[ii]); in hostent_free()
85 for (ii = 0; hp->h_addr_list[ii] != NULL; ii++) in hostent_free()
86 free(hp->h_addr_list[ii]); in hostent_free()
95 unsigned int ii, nitems; in hostent_unpack() local
111 for (ii = 0; ii < nitems; ii++) { in hostent_unpack()
112 n = snprintf(nvlname, sizeof(nvlname), "alias%u", ii); in hostent_unpack()
114 hp->h_aliases[ii] = in hostent_unpack()
116 if (hp->h_aliases[ii] == NULL) in hostent_unpack()
119 hp->h_aliases[ii] = NULL; in hostent_unpack()
125 for (ii = 0; ii < nitems; ii++) { in hostent_unpack()
126 hp->h_addr_list[ii] = malloc(hp->h_length); in hostent_unpack()
127 if (hp->h_addr_list[ii] == NULL) in hostent_unpack()
129 n = snprintf(nvlname, sizeof(nvlname), "addr%u", ii); in hostent_unpack()
132 hp->h_addr_list[ii], hp->h_length); in hostent_unpack()
134 hp->h_addr_list[ii] = NULL; in hostent_unpack()
287 unsigned int ii; in cap_getaddrinfo() local
320 for (ii = 0; ; ii++) { in cap_getaddrinfo()
321 n = snprintf(nvlname, sizeof(nvlname), "res%u", ii); in cap_getaddrinfo()
748 unsigned int ii; in hostent_pack() local
759 for (ii = 0; hp->h_aliases[ii] != NULL; ii++) { in hostent_pack()
760 n = snprintf(nvlname, sizeof(nvlname), "alias%u", ii); in hostent_pack()
762 nvlist_add_string(nvl, nvlname, hp->h_aliases[ii]); in hostent_pack()
764 nvlist_add_number(nvl, "naliases", (uint64_t)ii); in hostent_pack()
770 for (ii = 0; hp->h_addr_list[ii] != NULL; ii++) { in hostent_pack()
771 n = snprintf(nvlname, sizeof(nvlname), "addr%u", ii); in hostent_pack()
773 nvlist_add_binary(nvl, nvlname, hp->h_addr_list[ii], in hostent_pack()
776 net_add_hostent_to_cache(hp->h_addr_list[ii], in hostent_pack()
780 nvlist_add_number(nvl, "naddrs", (uint64_t)ii); in hostent_pack()
963 unsigned int ii; in net_getaddrinfo() local
1008 for (cur = res, ii = 0; cur != NULL; cur = cur->ai_next, ii++) { in net_getaddrinfo()
1010 n = snprintf(nvlname, sizeof(nvlname), "res%u", ii); in net_getaddrinfo()