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

/freebsd-10-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-10-stable/usr.sbin/rpc.statd/
H A Dstatd.c64 int nhosts = 0; variable
99 ++nhosts;
101 hosts_bak = realloc(hosts, nhosts * sizeof(char *));
104 for (i = 0; i < nhosts; i++)
111 hosts[nhosts - 1] = strdup(optarg);
112 if (hosts[nhosts - 1] == NULL) {
113 for (i = 0; i < (nhosts - 1); i++)
152 if (nhosts == 0) {
158 nhosts = 1;
162 hosts_bak = realloc(hosts, (nhosts
[all...]
/freebsd-10-stable/tools/regression/lib/libc/resolv/
H A Dresolv.c75 "Usage: %s [-AdHIr] [-h <nhosts>] [-n <nthreads>] <file> ...\n",
230 int *nhosts = (int *)p; local
231 if (*nhosts == 0)
234 resolvone(*nhosts);
235 while (--(*nhosts));
240 run(int *nhosts) argument
243 if (pthread_create(&self, NULL, resolvloop, nhosts) != 0)
251 int nhosts = NHOSTS; local
266 nhosts = atoi(optarg);
299 nleft[i] = nhosts;
[all...]
/freebsd-10-stable/usr.bin/ruptime/
H A Druptime.c65 static size_t nhosts; variable
188 for (nhosts = hspace = 0; (dp = readdir(dirp)) != NULL;) {
196 if (nhosts == hspace) {
200 hsp = hs + nhosts;
226 ++nhosts;
228 if (nhosts == 0) {
235 qsort(hs, nhosts, sizeof(hs[0]), cmp);
236 for (i = 0; i < (int)nhosts; i++) {
/freebsd-10-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-10-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-10-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-10-stable/usr.sbin/rpcbind/
H A Drpcbind.c97 static int nhosts = 0; variable
331 nhostsbak = nhosts + 1;
680 if (nhosts == 0)
682 bound_sa = malloc(sizeof(*bound_sa) * nhosts);
685 for (i = 0; i < nhosts; i++) {
705 * If nhosts == 0, then there were no -h options on the
709 if (nhosts == 0)
711 for (i = 0; i < nhosts; i++) {
805 ++nhosts;
806 hosts = realloc(hosts, nhosts * sizeo
[all...]
/freebsd-10-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-10-stable/usr.sbin/mountd/
H A Dmountd.c239 int nhosts = 0; variable
415 ++nhosts;
417 hosts_bak = realloc(hosts, nhosts * sizeof(char *));
420 for (k = 0; k < nhosts; k++)
427 hosts[nhosts - 1] = strdup(optarg);
428 if (hosts[nhosts - 1] == NULL) {
429 for (k = 0; k < (nhosts - 1); k++)
514 if (nhosts == 0) {
519 nhosts = 1;
523 hosts_bak = realloc(hosts, (nhosts
[all...]

Completed in 239 milliseconds