Home | History | Annotate | Download | only in libpthread

Lines Matching defs:hosts

50 static StringList *hosts = NULL;
86 sl_add(hosts, strdup(ptr));
98 size_t i = (random() & 0x0fffffff) % hosts->sl_cur;
99 char *host = hosts->sl_str[i];
149 hosts = sl_init();
171 if (hosts->sl_cur == 0)
176 if ((ask = calloc(hosts->sl_cur, sizeof(int))) == NULL)
178 if ((got = calloc(hosts->sl_cur, sizeof(int))) == NULL)
200 for (i = 0; i < (int)hosts->sl_cur; i++) {
203 hosts->sl_str[i], ask[i], got[i]);
213 sl_free(hosts, 1);