/freebsd-current/contrib/netbsd-tests/lib/libpthread/ |
H A D | h_resolv.c | 67 "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-current/usr.sbin/rpc.statd/ |
H A D | statd.c | 64 static int nhosts = 0; variable 104 ++nhosts; 106 hosts_bak = realloc(hosts, nhosts * sizeof(char *)); 109 for (i = 0; i < nhosts; i++) 116 hosts[nhosts - 1] = strdup(optarg); 117 if (hosts[nhosts - 1] == NULL) { 118 for (i = 0; i < (nhosts - 1); i++) 157 if (nhosts == 0) { 163 nhosts = 1; 167 hosts_bak = realloc(hosts, (nhosts [all...] |
/freebsd-current/lib/libc/tests/resolv/ |
H A D | resolv_test.c | 209 int nhosts; member in struct:resolvloop_args 218 int nhosts = args->nhosts; local 220 if (nhosts == 0) { 226 resolvone(args->threadnum, nhosts, args->method); 227 } while (--nhosts); 229 return (void *)(uintptr_t)nhosts; 233 run(int nhosts, enum method method, long i) argument 243 args->nhosts = nhosts; 256 size_t nhosts = NHOSTS; local [all...] |
/freebsd-current/contrib/dma/ |
H A D | dns.c | 141 size_t nhosts = 0; local 210 err = add_host(pref, outname, port, &hosts, &nhosts); 237 if (nhosts == 0) 252 err = add_host(0, host, port, &hosts, &nhosts); 253 } else if (nhosts == 0) { 262 if (nhosts > 0) { 263 qsort(hosts, nhosts, sizeof(*hosts), sort_pref); 265 *hosts[nhosts].host = 0;
|
/freebsd-current/usr.bin/ruptime/ |
H A D | ruptime.c | 54 static size_t nhosts; variable 196 for (nhosts = hspace = 0; (dp = readdir(dirp)) != NULL;) { 204 if (nhosts == hspace) { 208 hsp = hs + nhosts; 240 ++nhosts; 242 if (nhosts == 0) { 249 qsort(hs, nhosts, sizeof(hs[0]), cmp); 253 for (i = 0; i < (int)nhosts; i++) {
|
/freebsd-current/usr.bin/systat/ |
H A D | netcmds.c | 65 int nports, nhosts, protos; variable 261 nhosts = 0; 264 for (p = hosts; p < hosts+nhosts; p++) 269 if (nhosts == 0) 272 hosts = (struct hitem *)realloc(hosts, (nhosts+1)*sizeof (*p)); 273 p = &hosts[nhosts++]; 285 for (p = hosts; p < hosts+nhosts; p++) 298 for (p = hosts; p < hosts+nhosts; p++) {
|
H A D | extern.h | 52 extern int nhosts;
|
H A D | netstat.c | 213 if (nhosts && !checkhost(&inpcb->inp_inc)) 302 if (nhosts && !checkhost(&xip->inp_inc))
|
/freebsd-current/usr.sbin/rpc.lockd/ |
H A D | lockd.c | 94 int nhosts = 0; variable 150 ++nhosts; 151 hosts_bak = realloc(hosts, nhosts * sizeof(char *)); 154 for (i = 0; i < nhosts; i++) 161 hosts[nhosts - 1] = strdup(optarg); 162 if (hosts[nhosts - 1] == NULL) { 163 for (i = 0; i < (nhosts - 1); i++) 225 if (nhosts == 0) { 231 nhosts = 1; 234 hosts_bak = realloc(hosts, (nhosts [all...] |
/freebsd-current/usr.sbin/rpcbind/ |
H A D | rpcbind.c | 95 static int nhosts = 0; variable 340 nhostsbak = nhosts + 1; 689 if (nhosts == 0) 691 bound_sa = malloc(sizeof(*bound_sa) * nhosts); 694 for (i = 0; i < nhosts; i++) { 714 * If nhosts == 0, then there were no -h options on the 718 if (nhosts == 0) 720 for (i = 0; i < nhosts; i++) { 818 ++nhosts; 819 hosts = realloc(hosts, nhosts * sizeo [all...] |
/freebsd-current/libexec/bootpd/ |
H A D | readfile.c | 139 PRIVATE int nhosts; /* Number of hosts (/w hw or IP address) */ 372 nhosts = 0; 420 nhosts++; 465 nentries, nhosts, bootptab); 138 PRIVATE int nhosts; /* Number of hosts (/w hw or IP address) */ variable
|
/freebsd-current/usr.sbin/mountd/ |
H A D | mountd.c | 278 static int nhosts = 0; variable 475 ++nhosts; 477 hosts_bak = realloc(hosts, nhosts * sizeof(char *)); 480 for (k = 0; k < nhosts; k++) 487 hosts[nhosts - 1] = strdup(optarg); 488 if (hosts[nhosts - 1] == NULL) { 489 for (k = 0; k < (nhosts - 1); k++) 507 if (nhosts > 0) { 509 for (k = 0; k < nhosts; k++) 513 nhosts [all...] |