| /NextBSD/contrib/ofed/management/infiniband-diags/scripts/ |
| HD | ibfindnodesusing.pl | 54 my @hosts = undef; 57 if ($sw_guid eq "") { return (@hosts); } 64 push @hosts, $2; 69 return (@hosts); 213 my @hosts = undef; 214 @hosts = get_hosts_routed($switch_guid, $target_port); 216 my $hosts = compress_hostlist(@hosts); 217 @hosts = split ",", $hosts; 220 print "@hosts\n\n"; 222 @hosts = get_hosts_routed($rem_sw_guid, $rem_sw_port); [all …]
|
| /NextBSD/usr.sbin/rpc.statd/ |
| HD | statd.c | 63 char **hosts, *svcport_str = NULL; variable 100 hosts_bak = hosts; in main() 101 hosts_bak = realloc(hosts, nhosts * sizeof(char *)); in main() 103 if (hosts != NULL) { in main() 105 free(hosts[i]); in main() 106 free(hosts); in main() 110 hosts = hosts_bak; in main() 111 hosts[nhosts - 1] = strdup(optarg); in main() 112 if (hosts[nhosts - 1] == NULL) { in main() 114 free(hosts[i]); in main() [all …]
|
| HD | file.c | 87 for (i = 0, hp = status_info->hosts; i < status_info->noOfHosts; i++, hp++) in find_host() 132 spare_slot = &status_info->hosts[status_info->noOfHosts]; in find_host() 229 HostInfo *this_host = &status_info->hosts[i]; in init_file() 303 for (i = status_info->noOfHosts, hp = status_info->hosts; i ; i--, hp++) in notify_hosts() 341 for (i = status_info->noOfHosts, hp = status_info->hosts; i ; i--, hp++) in notify_hosts()
|
| /NextBSD/usr.sbin/rpc.lockd/ |
| HD | lockd.c | 88 char **hosts, *svcport_str = NULL; variable 147 hosts_bak = hosts; in main() 148 hosts_bak = realloc(hosts, nhosts * sizeof(char *)); in main() 150 if (hosts != NULL) { in main() 152 free(hosts[i]); in main() 153 free(hosts); in main() 157 hosts = hosts_bak; in main() 158 hosts[nhosts - 1] = strdup(optarg); in main() 159 if (hosts[nhosts - 1] == NULL) { in main() 161 free(hosts[i]); in main() [all …]
|
| /NextBSD/usr.bin/systat/ |
| HD | netcmds.c | 67 } *hosts; variable 262 if (hosts == 0) in selecthost() 264 free((char *)hosts), hosts = 0; in selecthost() 268 for (p = hosts; p < hosts+nhosts; p++) in selecthost() 274 hosts = (struct hitem *)malloc(sizeof (*p)); in selecthost() 276 hosts = (struct hitem *)realloc(hosts, (nhosts+1)*sizeof (*p)); in selecthost() 277 p = &hosts[nhosts++]; in selecthost() 288 if (hosts) in checkhost() 289 for (p = hosts; p < hosts+nhosts; p++) in checkhost() 302 for (p = hosts; p < hosts+nhosts; p++) { in showhosts()
|
| /NextBSD/contrib/ntp/scripts/ntpsweep/ |
| HD | ntpsweep.in | 49 my @hosts; 52 push @hosts, $opts->{host}; 55 @hosts = read_hosts($hostsfile) if $hostsfile; 56 push @hosts, @{$opts->{'host-list'}}; 67 scan_hosts(@hosts); 73 my (@hosts) = @_; 76 for $host (@hosts) { 83 my @hosts; 85 open my $hosts, $hostsfile 88 while (<$hosts>) { [all …]
|
| /NextBSD/contrib/netbsd-tests/lib/libpthread/ |
| HD | h_resolv.c | 50 static StringList *hosts = NULL; variable 86 sl_add(hosts, strdup(ptr)); in load() 98 size_t i = (random() & 0x0fffffff) % hosts->sl_cur; in resolvone() 99 char *host = hosts->sl_str[i]; in resolvone() 147 hosts = sl_init(); in main() 169 if (hosts->sl_cur == 0) in main() 174 if ((ask = calloc(hosts->sl_cur, sizeof(int))) == NULL) in main() 176 if ((got = calloc(hosts->sl_cur, sizeof(int))) == NULL) in main() 196 for (i = 0; i < (int)hosts->sl_cur; i++) { in main() 199 hosts->sl_str[i], ask[i], got[i]); in main() [all …]
|
| /NextBSD/crypto/openssl/crypto/x509/ |
| HD | x509_vpm.c | 104 if (mode == SET_HOST && id->hosts) { in int_x509_param_set_hosts() 105 string_stack_free(id->hosts); in int_x509_param_set_hosts() 106 id->hosts = NULL; in int_x509_param_set_hosts() 115 if (id->hosts == NULL && in int_x509_param_set_hosts() 116 (id->hosts = sk_OPENSSL_STRING_new_null()) == NULL) { in int_x509_param_set_hosts() 121 if (!sk_OPENSSL_STRING_push(id->hosts, copy)) { in int_x509_param_set_hosts() 123 if (sk_OPENSSL_STRING_num(id->hosts) == 0) { in int_x509_param_set_hosts() 124 sk_OPENSSL_STRING_free(id->hosts); in int_x509_param_set_hosts() 125 id->hosts = NULL; in int_x509_param_set_hosts() 152 if (paramid->hosts) { in x509_verify_param_zero() [all …]
|
| /NextBSD/contrib/dma/ |
| HD | dns.c | 139 struct mx_hostentry *hosts = NULL; in dns_get_mx_list() local 209 err = add_host(pref, outname, port, &hosts, &nhosts); in dns_get_mx_list() 251 err = add_host(0, host, port, &hosts, &nhosts); in dns_get_mx_list() 262 qsort(hosts, nhosts, sizeof(*hosts), sort_pref); in dns_get_mx_list() 264 *hosts[nhosts].host = 0; in dns_get_mx_list() 266 if (hosts != NULL) in dns_get_mx_list() 267 free(hosts); in dns_get_mx_list() 268 hosts = NULL; in dns_get_mx_list() 271 *he = hosts; in dns_get_mx_list() 275 if (hosts != NULL) in dns_get_mx_list() [all …]
|
| /NextBSD/contrib/netbsd-tests/lib/libc/gen/ |
| HD | t_sethostname.c | 43 static const char hosts[][MAXHOSTNAMELEN] = { variable 64 for (i = 0; i < __arraycount(hosts); i++) { in ATF_TC_BODY() 73 ATF_REQUIRE_EQ(sizeof(hosts[i]), MAXHOSTNAMELEN); in ATF_TC_BODY() 76 ATF_REQUIRE(sethostname(hosts[i], sizeof(hosts[i]) - 1) == 0); in ATF_TC_BODY() 79 ATF_REQUIRE(sethostname(hosts[i], sizeof(hosts[i])) == 0); in ATF_TC_BODY() 82 ATF_REQUIRE(strcmp(hosts[i], name) == 0); in ATF_TC_BODY()
|
| /NextBSD/libexec/revnetgroup/ |
| HD | revnetgroup.c | 80 int hosts = -1, i; in main() local 88 if (hosts != -1) { in main() 92 hosts = 0; in main() 95 if (hosts != -1) { in main() 99 hosts = 1; in main() 110 if (hosts == -1) in main() 149 if (hosts ? host && strcmp(host,"-") : user && strcmp(user, "-")) in main() 150 mstore(mtable, hosts ? host : user, gcur->key, domain); in main()
|
| /NextBSD/contrib/ipfilter/lib/ |
| HD | load_url.c | 14 alist_t *hosts = NULL; in load_url() local 21 hosts = load_file(url); in load_url() 24 hosts = load_file(url); in load_url() 27 hosts = load_http(url); in load_url() 30 return hosts; in load_url()
|
| HD | alist_free.c | 11 alist_free(hosts) in alist_free() argument 12 alist_t *hosts; in alist_free() 16 for (a = hosts; a != NULL; a = next) {
|
| /NextBSD/usr.sbin/rpcbind/ |
| HD | rpcbind.c | 96 char **hosts = NULL; variable 334 hosts = realloc(hosts, nhostsbak * sizeof(char *)); in init_transport() 336 hosts[0] = "*"; in init_transport() 339 hosts[nhostsbak - 1] = "127.0.0.1"; in init_transport() 341 hosts[nhostsbak - 1] = "::1"; in init_transport() 366 if (inet_pton(AF_INET, hosts[nhostsbak], in init_transport() 374 hosts[nhostsbak], host_addr) == 1) { in init_transport() 381 if (inet_pton(AF_INET6, hosts[nhostsbak], in init_transport() 388 if (inet_pton(AF_INET, hosts[nhostsbak], in init_transport() 409 if (strcmp("*", hosts[nhostsbak]) == 0) in init_transport() [all …]
|
| /NextBSD/lib/libc/tests/resolv/ |
| HD | resolv_test.c | 57 static StringList *hosts = NULL; variable 85 sl_add(hosts, strdup(ptr)); in load() 179 size_t i = (random() & 0x0fffffff) % hosts->sl_cur; in resolvone() 180 char *host = hosts->sl_str[i]; in resolvone() 235 hosts = sl_init(); in run_tests() 241 ATF_REQUIRE_MSG(0 < hosts->sl_cur, "0 hosts in %s", hostlist_file); in run_tests() 246 ask = calloc(hosts->sl_cur, sizeof(int)); in run_tests() 249 got = calloc(hosts->sl_cur, sizeof(int)); in run_tests() 268 for (i = 0; i < hosts->sl_cur; i++) { in run_tests() 271 hosts->sl_str[i], ask[i], got[i]); in run_tests() [all …]
|
| /NextBSD/share/man/man5/ |
| HD | Makefile | 28 hosts.5 \ 29 hosts.equiv.5 \ 30 hosts.lpd.5 \ 71 MLINKS+=hosts.equiv.5 rhosts.5 86 bluetooth.hosts.5 \
|
| /NextBSD/share/examples/etc/ |
| HD | README.examples | 26 hosts - see hosts(5) 27 hosts.allow - defines allow trusted hosts 28 hosts.equiv - defines system-wide trusted hosts (see ruserok(3)) 29 hosts.lpd - defines trusted hosts for lpd(8)
|
| /NextBSD/contrib/netbsd-tests/lib/libc/net/getaddrinfo/ |
| HD | t_getaddrinfo.sh | 38 lcl=$( cat /etc/hosts | \ 81 check_output basics hosts 96 check_output spec_fam hosts 136 check_output no_serv hosts 154 check_output sock_raw hosts
|
| /NextBSD/crypto/openssh/ |
| HD | ssh-keyscan.0 | 12 number of hosts. It was designed to aid in building and verifying 16 ssh-keyscan uses non-blocking socket I/O to contact as many hosts as 18 1,000 hosts can be collected in tens of seconds, even when some of those 19 hosts are down or do not run ssh. For scanning, one does not need login 30 Read hosts or ``addrlist namelist'' pairs from file, one per 32 read hosts or ``addrlist namelist'' pairs from the standard 50 Specifies the type of the key to fetch from the scanned hosts. 90 Find all hosts from the file ssh_hosts which have new or different keys
|
| /NextBSD/usr.bin/rup/ |
| HD | rup.c | 64 } *hosts; variable 71 if (!hosts) in search_host() 74 for (hp = hosts; hp != NULL; hp = hp->next) { in search_host() 89 hp->next = hosts; in remember_host() 90 hosts = hp; in remember_host()
|
| /NextBSD/usr.bin/rusers/ |
| HD | rusers.c | 65 } *hosts; variable 72 if (hosts == NULL) in search_host() 75 for (hp = hosts; hp != NULL; hp = hp->next) { in search_host() 90 hp->next = hosts; in remember_host() 91 hosts = hp; in remember_host()
|
| /NextBSD/usr.sbin/bsdconfig/share/media/ |
| HD | httpproxy.subr | 150 local connect_only="$1" hosts= 162 f_host_lookup "$proxy_host" hosts 166 [ "$hosts" ] && f_dialog_msgbox "$hosts" 169 elif [ ! "$hosts" ]; then 171 hosts="$proxy_host" 175 for host in $hosts; do 363 local dev="$1" file="$2" probe_type="$3" hosts= 378 f_host_lookup "$proxy_host" hosts 382 [ "$hosts" ] && f_dialog_msgbox "$hosts" 384 elif [ ! "$hosts" ]; then [all …]
|
| /NextBSD/contrib/ntp/scripts/ntptrace/ |
| HD | invoke-ntptrace.texi | 44 * ntptrace max-hosts:: max-hosts option (-m) 69 -m, --max-hosts=num Maximum number of peers to trace 84 Output hosts as dotted-quad numeric format rather than converting to 86 @node ntptrace max-hosts 87 @subsection max-hosts option (-m) 88 @cindex ntptrace-max-hosts
|
| /NextBSD/release/picobsd/floppy.tree/etc/ |
| HD | rc.conf.defaults | 70 echo "# $main_ether $hostname" >> /etc/hosts 71 echo "$the_ip $hostname" >> /etc/hosts 106 done < /etc/hosts
|
| /NextBSD/sbin/natd/samples/ |
| HD | natd.cf.sample | 54 # numeric addresses or hosts that are in /etc/hosts. 71 # ipconfig must apply any legal IP numbers that inside hosts 81 # for aweb.company.com, then external hosts attempting to access 86 # NAT, because inside hosts will go through the NAT to get to the legal
|