Searched refs:nhosts (Results 1 - 12 of 12) sorted by relevance

/freebsd-11-stable/contrib/netbsd-tests/lib/libpthread/
H A Dh_resolv.c67 "Usage: %s [-d] [-h <nhosts>] [-n <nthreads>] <file> ...\n",
124 int *nhosts = (int *)p; local
125 if (*nhosts == 0)
128 resolvone(*nhosts);
129 while (--(*nhosts));
134 run(int *nhosts) argument
137 if (pthread_create(&self, NULL, resolvloop, nhosts) != 0)
145 int nhosts = NHOSTS; local
157 nhosts = atoi(optarg);
181 nleft[i] = nhosts;
[all...]
/freebsd-11-stable/usr.sbin/rpc.statd/
H A Dstatd.c64 int nhosts = 0; variable
103 ++nhosts;
105 hosts_bak = realloc(hosts, nhosts * sizeof(char *));
108 for (i = 0; i < nhosts; i++)
115 hosts[nhosts - 1] = strdup(optarg);
116 if (hosts[nhosts - 1] == NULL) {
117 for (i = 0; i < (nhosts - 1); i++)
156 if (nhosts == 0) {
162 nhosts = 1;
166 hosts_bak = realloc(hosts, (nhosts
[all...]
/freebsd-11-stable/contrib/dma/
H A Ddns.c141 size_t nhosts = 0; local
210 err = add_host(pref, outname, port, &hosts, &nhosts);
237 if (nhosts == 0)
252 err = add_host(0, host, port, &hosts, &nhosts);
253 } else if (nhosts == 0) {
262 if (nhosts > 0) {
263 qsort(hosts, nhosts, sizeof(*hosts), sort_pref);
265 *hosts[nhosts].host = 0;
/freebsd-11-stable/usr.bin/systat/
H A Dnetcmds.c69 int nports, nhosts, protos; variable
265 nhosts = 0;
268 for (p = hosts; p < hosts+nhosts; p++)
273 if (nhosts == 0)
276 hosts = (struct hitem *)realloc(hosts, (nhosts+1)*sizeof (*p));
277 p = &hosts[nhosts++];
289 for (p = hosts; p < hosts+nhosts; p++)
302 for (p = hosts; p < hosts+nhosts; p++) {
H A Dextern.h53 extern int nhosts;
H A Dnetstat.c215 if (nhosts && !checkhost(&inpcb))
316 if (nhosts && !checkhost(inpcb))
/freebsd-11-stable/usr.bin/ruptime/
H A Druptime.c65 static size_t nhosts; variable
207 for (nhosts = hspace = 0; (dp = readdir(dirp)) != NULL;) {
215 if (nhosts == hspace) {
219 hsp = hs + nhosts;
251 ++nhosts;
253 if (nhosts == 0) {
260 qsort(hs, nhosts, sizeof(hs[0]), cmp);
264 for (i = 0; i < (int)nhosts; i++) {
/freebsd-11-stable/usr.sbin/rpc.lockd/
H A Dlockd.c93 int nhosts = 0; variable
149 ++nhosts;
150 hosts_bak = realloc(hosts, nhosts * sizeof(char *));
153 for (i = 0; i < nhosts; i++)
160 hosts[nhosts - 1] = strdup(optarg);
161 if (hosts[nhosts - 1] == NULL) {
162 for (i = 0; i < (nhosts - 1); i++)
223 if (nhosts == 0) {
229 nhosts = 1;
232 hosts_bak = realloc(hosts, (nhosts
[all...]
/freebsd-11-stable/lib/libc/tests/resolv/
H A Dresolv_test.c209 int *nhosts = (int *)p; local
210 if (*nhosts == 0)
213 resolvone(*nhosts);
214 while (--(*nhosts));
219 run(int *nhosts) argument
225 rc = pthread_create(&self, NULL, resolvloop, nhosts);
233 int nhosts = NHOSTS; local
253 nleft[i] = nhosts;
/freebsd-11-stable/usr.sbin/rpcbind/
H A Drpcbind.c99 static int nhosts = 0; variable
333 nhostsbak = nhosts + 1;
682 if (nhosts == 0)
684 bound_sa = malloc(sizeof(*bound_sa) * nhosts);
687 for (i = 0; i < nhosts; i++) {
707 * If nhosts == 0, then there were no -h options on the
711 if (nhosts == 0)
713 for (i = 0; i < nhosts; i++) {
812 ++nhosts;
813 hosts = realloc(hosts, nhosts * sizeo
[all...]
/freebsd-11-stable/libexec/bootpd/
H A Dreadfile.c149 PRIVATE int nhosts; /* Number of hosts (/w hw or IP address) */
384 nhosts = 0;
432 nhosts++;
477 nentries, nhosts, bootptab);
148 PRIVATE int nhosts; /* Number of hosts (/w hw or IP address) */ variable
/freebsd-11-stable/usr.sbin/mountd/
H A Dmountd.c278 static int nhosts = 0; variable
465 ++nhosts;
467 hosts_bak = realloc(hosts, nhosts * sizeof(char *));
470 for (k = 0; k < nhosts; k++)
477 hosts[nhosts - 1] = strdup(optarg);
478 if (hosts[nhosts - 1] == NULL) {
479 for (k = 0; k < (nhosts - 1); k++)
542 if (nhosts == 0) {
547 nhosts = 1;
551 hosts_bak = realloc(hosts, (nhosts
[all...]

Completed in 177 milliseconds