Home
last modified time | relevance | path

Searched refs:nhosts (Results 1 – 8 of 8) sorted by relevance

/netbsd-src/tests/lib/libpthread/
H A Dh_resolv.c124 int *nhosts = (int *)p; in resolvloop() local
125 if (*nhosts == 0) in resolvloop()
128 resolvone(*nhosts); in resolvloop()
129 while (--(*nhosts)); in resolvloop()
134 run(int *nhosts) in run() argument
137 if (pthread_create(&self, NULL, resolvloop, nhosts) != 0) in run()
147 int nhosts = NHOSTS; in main() local
159 nhosts = atoi(optarg); in main()
185 nleft[i] = nhosts; in main()
/netbsd-src/usr.bin/ruptime/
H A Druptime.c67 static size_t nhosts; variable
124 for (nhosts = hspace = 0; (dp = readdir(dirp)) != NULL;) { in main()
136 if (nhosts == hspace) { in main()
140 hsp = hs + nhosts; in main()
156 ++nhosts; in main()
158 if (nhosts == 0) in main()
162 qsort(hs, nhosts, sizeof (hs[0]), cmp); in main()
163 for (i = 0; i < nhosts; i++) { in main()
/netbsd-src/usr.bin/systat/
H A Dnetcmds.c74 int nports, nhosts, protos; variable
303 nhosts = 0; in selecthost()
306 for (p = hosts; p < hosts+nhosts; p++) in selecthost()
313 if (reallocarr(&hosts, nhosts + 1, sizeof(*p)) != 0) { in selecthost()
317 p = &hosts[nhosts++]; in selecthost()
330 for (p = hosts; p < hosts+nhosts; p++) { in checkhost()
349 for (p = hosts; p < hosts+nhosts; p++) { in checkhost6()
374 for (p = hosts; p < hosts+nhosts; p++) { in showhosts()
H A Dextern.h56 extern int nhosts;
H A Dnetstat.c243 if (nhosts && !checkhost(inp)) in fetchnetstat4()
288 if (nhosts && !checkhost(inp)) in fetchnetstat6()
/netbsd-src/usr.sbin/rpcbind/
H A Drpcbind.c113 static int nhosts = 0; variable
369 nhostsbak = nhosts + 1; in init_transport()
750 if (nhosts == 0) in update_bound_sa()
752 bound_sa = calloc(nhosts, sizeof(*bound_sa)); in update_bound_sa()
757 for (i = 0; i < nhosts; i++) { in update_bound_sa()
783 if (nhosts == 0) in listen_addr()
785 for (i = 0; i < nhosts; i++) { in listen_addr()
902 ++nhosts; in parseargs()
903 if (reallocarr(&hosts, nhosts, sizeof(*hosts)) != 0) in parseargs()
905 hosts[nhosts - 1] = strdup(optarg); in parseargs()
[all …]
/netbsd-src/usr.bin/rwho/
H A Drwho.c86 size_t width, n, i, nhosts, nusers, namount; in main() local
91 aflg = nusers = nhosts = qflg = hflg = 0; in main()
142 nhosts++; in main()
172 if (nhosts == 0) in main()
/netbsd-src/usr.sbin/bootp/common/
H A Dreadfile.c145 PRIVATE int nhosts; /* Number of hosts (/w hw or IP address) */ variable
377 nhosts = 0; in readtab()
425 nhosts++; in readtab()
470 nentries, nhosts, bootptab); in readtab()