Searched refs:nhosts (Results 1 – 8 of 8) sorted by relevance
| /netbsd-src/tests/lib/libpthread/ |
| H A D | h_resolv.c | 124 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 D | ruptime.c | 67 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 D | netcmds.c | 74 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 D | extern.h | 56 extern int nhosts;
|
| H A D | netstat.c | 243 if (nhosts && !checkhost(inp)) in fetchnetstat4() 288 if (nhosts && !checkhost(inp)) in fetchnetstat6()
|
| /netbsd-src/usr.sbin/rpcbind/ |
| H A D | rpcbind.c | 113 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 D | rwho.c | 86 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 D | readfile.c | 145 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()
|