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

/freebsd-9.3-release/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-9.3-release/tools/regression/lib/libc/resolv/
H A Dresolv.c75 "Usage: %s [-AdHIr] [-h <nhosts>] [-n <nthreads>] <file> ...\n",
227 int *nhosts = (int *)p; local
228 if (*nhosts == 0)
231 resolvone(*nhosts);
232 while (--(*nhosts));
237 run(int *nhosts) argument
240 if (pthread_create(&self, NULL, resolvloop, nhosts) != 0)
248 int nhosts = NHOSTS; local
263 nhosts = atoi(optarg);
296 nleft[i] = nhosts;
[all...]
/freebsd-9.3-release/usr.bin/ruptime/
H A Druptime.c66 size_t nhosts; variable
191 for (nhosts = hspace = 0; (dp = readdir(dirp)) != NULL;) {
210 if (nhosts == hspace) {
214 hsp = hs + nhosts;
230 ++nhosts;
232 if (nhosts == 0) {
239 qsort(hs, nhosts, sizeof(hs[0]), cmp);
240 for (i = 0; i < (int)nhosts; i++) {
/freebsd-9.3-release/usr.bin/systat/
H A Dnetcmds.c69 int nports, nhosts, protos; variable
266 nhosts = 0;
269 for (p = hosts; p < hosts+nhosts; p++)
274 if (nhosts == 0)
277 hosts = (struct hitem *)realloc(hosts, (nhosts+1)*sizeof (*p));
278 p = &hosts[nhosts++];
290 for (p = hosts; p < hosts+nhosts; p++)
303 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-9.3-release/usr.sbin/rpc.lockd/
H A Dlockd.c93 int nhosts = 0; variable
150 ++nhosts;
152 hosts_bak = realloc(hosts, nhosts * sizeof(char *));
155 for (i = 0; i < nhosts; i++)
162 hosts[nhosts - 1] = strdup(optarg);
163 if (hosts[nhosts - 1] == NULL) {
164 for (i = 0; i < (nhosts - 1); i++)
226 if (nhosts == 0) {
232 nhosts = 1;
236 hosts_bak = realloc(hosts, (nhosts
[all...]
/freebsd-9.3-release/usr.sbin/rpcbind/
H A Drpcbind.c97 int nhosts = 0; variable
331 nhostsbak = nhosts + 1;
678 if (nhosts == 0)
680 bound_sa = malloc(sizeof(*bound_sa) * nhosts);
683 for (i = 0; i < nhosts; i++) {
703 * If nhosts == 0, then there were no -h options on the
707 if (nhosts == 0)
709 for (i = 0; i < nhosts; i++) {
802 ++nhosts;
803 hosts = realloc(hosts, nhosts * sizeo
[all...]
/freebsd-9.3-release/usr.sbin/mountd/
H A Dmountd.c238 int nhosts = 0; variable
347 ++nhosts;
349 hosts_bak = realloc(hosts, nhosts * sizeof(char *));
352 for (k = 0; k < nhosts; k++)
359 hosts[nhosts - 1] = strdup(optarg);
360 if (hosts[nhosts - 1] == NULL) {
361 for (k = 0; k < (nhosts - 1); k++)
437 if (nhosts == 0) {
442 nhosts = 1;
446 hosts_bak = realloc(hosts, (nhosts
[all...]
/freebsd-9.3-release/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

Completed in 74 milliseconds