Searched refs:nhosts (Results 1 - 11 of 11) sorted by relevance
/freebsd-10.0-release/usr.sbin/rpc.statd/ |
H A D | statd.c | 64 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.0-release/tools/regression/lib/libc/resolv/ |
H A D | resolv.c | 75 "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-10.0-release/usr.bin/ruptime/ |
H A D | ruptime.c | 65 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.0-release/usr.bin/systat/ |
H A D | netcmds.c | 69 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 D | extern.h | 53 extern int nhosts;
|
H A D | netstat.c | 215 if (nhosts && !checkhost(&inpcb)) 316 if (nhosts && !checkhost(inpcb))
|
/freebsd-10.0-release/usr.sbin/rpc.lockd/ |
H A D | lockd.c | 93 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-10.0-release/usr.sbin/rpcbind/ |
H A D | rpcbind.c | 97 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-10.0-release/contrib/ntp/sntp/ |
H A D | main.c | 1116 void run_daemon (char *hostnames[], int nhosts, int initial) { argument 1150 cycle = (nhosts > 0 ? cycle%nhosts : 0); 1158 for (i = 0; i < nhosts; ++i) open_socket(i,hostnames[i],delay); 1275 if (++cycle >= nhosts) cycle = 0; 1371 void run_client (char *hostnames[], int nhosts) { argument 1391 for (k = 0; k < nhosts; ++k) open_socket(k,hostnames[k],delay); 1485 if (++cycle >= nhosts) cycle = 0; 1519 for (k = 0; k < nhosts; ++k) close_socket(k); 1544 int daemon = 0, nhosts local [all...] |
/freebsd-10.0-release/usr.sbin/mountd/ |
H A D | mountd.c | 238 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-10.0-release/libexec/bootpd/ |
H A D | readfile.c | 149 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 125 milliseconds