/freebsd/crypto/openssh/regress/ |
H A D | keygen-knownhosts.sh | 13 echo "# $x" >> $OBJ/kh.hosts 26 echo "" >> $OBJ/kh.hosts 27 ) >> $OBJ/kh.hosts 33 cat $OBJ/kh.hosts >> $OBJ/kh.invalid 37 cp $OBJ/kh.hosts $OBJ/kh.hosts.orig 164 cp $OBJ/kh.hosts.orig $OBJ/kh.hosts 165 ${SSHKEYGEN} -qf $OBJ/kh.hosts -R host-a 2>/dev/null 166 grep -v "^host-a " $OBJ/kh.hosts.orig > $OBJ/kh.expect 167 diff $OBJ/kh.hosts $OBJ/kh.expect || fail "remove simple" 170 cp $OBJ/kh.hosts.orig $OBJ/kh.hosts [all …]
|
/freebsd/usr.sbin/rpc.statd/ |
H A D | statd.c | 63 static char **hosts, *svcport_str = NULL; variable 105 hosts_bak = hosts; in main() 106 hosts_bak = realloc(hosts, nhosts * sizeof(char *)); in main() 108 if (hosts != NULL) { in main() 110 free(hosts[i]); in main() 111 free(hosts); in main() 115 hosts = hosts_bak; in main() 116 hosts[nhosts - 1] = strdup(optarg); in main() 117 if (hosts[nhosts - 1] == NULL) { in main() 119 free(hosts[i]); in main() [all …]
|
H A D | file.c | 88 for (i = 0, hp = status_info->hosts; i < status_info->noOfHosts; i++, hp++) in find_host() 135 spare_slot = &status_info->hosts[status_info->noOfHosts]; in find_host() 231 HostInfo *this_host = &status_info->hosts[i]; in init_file() 309 for (i = status_info->noOfHosts, hp = status_info->hosts; i ; i--, hp++) in notify_hosts() 347 for (i = status_info->noOfHosts, hp = status_info->hosts; i ; i--, hp++) in notify_hosts()
|
/freebsd/usr.bin/systat/ |
H A D | netcmds.c | 63 } *hosts; variable 258 if (hosts == NULL) in selecthost() 260 free((char *)hosts), hosts = 0; in selecthost() 264 for (p = hosts; p < hosts+nhosts; p++) in selecthost() 270 hosts = (struct hitem *)malloc(sizeof (*p)); in selecthost() 272 hosts = (struct hitem *)realloc(hosts, (nhosts+1)*sizeof (*p)); in selecthost() 273 p = &hosts[nhosts++]; in selecthost() 284 if (hosts) in checkhost() 285 for (p = hosts; p < hosts+nhosts; p++) in checkhost() 298 for (p = hosts; p < hosts+nhosts; p++) { in showhosts()
|
/freebsd/contrib/ntp/scripts/ntpsweep/ |
H A D | ntpsweep.in | 50 my @hosts; 53 push @hosts, $opts->{host}; 56 @hosts = read_hosts($hostsfile) if $hostsfile; 57 push @hosts, @{$opts->{'host-list'}}; 68 scan_hosts(@hosts); 74 my (@hosts) = @_; 77 for $host (@hosts) { 84 my @hosts; 86 open my $hosts, $hostsfile 89 while (<$hosts>) { [all...] |
/freebsd/usr.sbin/rpc.lockd/ |
H A D | lockd.c | 89 char **hosts, *svcport_str = NULL; variable 151 hosts_bak = realloc(hosts, nhosts * sizeof(char *)); in main() 153 if (hosts != NULL) { in main() 155 free(hosts[i]); in main() 156 free(hosts); in main() 160 hosts = hosts_bak; in main() 161 hosts[nhosts - 1] = strdup(optarg); in main() 162 if (hosts[nhosts - 1] == NULL) { in main() 164 free(hosts[i]); in main() 165 free(hosts); in main() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libpthread/ |
H A D | h_resolv.c | 50 static StringList *hosts = NULL; variable 87 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 …]
|
/freebsd/contrib/netbsd-tests/lib/libc/gen/ |
H A D | 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()
|
/freebsd/libexec/revnetgroup/ |
H A D | revnetgroup.c | 77 int hosts = -1, i; in main() local 85 if (hosts != -1) { in main() 89 hosts = 0; in main() 92 if (hosts != -1) { in main() 96 hosts = 1; in main() 107 if (hosts == -1) in main() 146 if (hosts ? host && strcmp(host,"-") : user && strcmp(user, "-")) in main() 147 mstore(mtable, hosts ? host : user, gcur->key, domain); in main()
|
/freebsd/sbin/ipf/libipf/ |
H A D | 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()
|
H A D | alist_free.c | 11 alist_free(alist_t *hosts) in alist_free() argument 15 for (a = hosts; a != NULL; a = next) { in alist_free()
|
/freebsd/contrib/dma/ |
H A D | dns.c | 140 struct mx_hostentry *hosts = NULL; in dns_get_mx_list() local 210 err = add_host(pref, outname, port, &hosts, &nhosts); in dns_get_mx_list() 252 err = add_host(0, host, port, &hosts, &nhosts); in dns_get_mx_list() 263 qsort(hosts, nhosts, sizeof(*hosts), sort_pref); in dns_get_mx_list() 265 *hosts[nhosts].host = 0; in dns_get_mx_list() 267 if (hosts != NULL) in dns_get_mx_list() 268 free(hosts); in dns_get_mx_list() 269 hosts = NULL; in dns_get_mx_list() 272 *he = hosts; in dns_get_mx_list()
|
/freebsd/crypto/openssl/crypto/x509/ |
H A D | x509_vpm.c | 54 sk_OPENSSL_STRING_pop_free(vpm->hosts, str_free); in int_x509_param_set_hosts() 55 vpm->hosts = NULL; in int_x509_param_set_hosts() 64 if (vpm->hosts == NULL && in int_x509_param_set_hosts() 65 (vpm->hosts = sk_OPENSSL_STRING_new_null()) == NULL) { in int_x509_param_set_hosts() 70 if (!sk_OPENSSL_STRING_push(vpm->hosts, copy)) { in int_x509_param_set_hosts() 72 if (sk_OPENSSL_STRING_num(vpm->hosts) == 0) { in int_x509_param_set_hosts() 73 sk_OPENSSL_STRING_free(vpm->hosts); in int_x509_param_set_hosts() 74 vpm->hosts = NULL; in int_x509_param_set_hosts() 103 sk_OPENSSL_STRING_pop_free(param->hosts, str_free); in X509_VERIFY_PARAM_free() 197 if (test_x509_verify_param_copy(hosts, NULL)) { in X509_VERIFY_PARAM_inherit() [all …]
|
/freebsd/usr.sbin/rpcbind/ |
H A D | rpcbind.c | 95 static char **hosts = NULL; variable 360 hosts = realloc(hosts, nhostsbak * sizeof(char *)); in init_transport() 362 hosts[0] = "*"; in init_transport() 365 hosts[nhostsbak - 1] = "127.0.0.1"; in init_transport() 367 hosts[nhostsbak - 1] = "::1"; in init_transport() 392 if (inet_pton(AF_INET, hosts[nhostsbak], in init_transport() 400 hosts[nhostsbak], host_addr) == 1) { in init_transport() 407 if (inet_pton(AF_INET6, hosts[nhostsbak], in init_transport() 414 if (inet_pton(AF_INET, hosts[nhostsbak], in init_transport() 435 if (strcmp("*", hosts[nhostsbak]) == 0) in init_transport() [all …]
|
/freebsd/lib/libc/tests/resolv/ |
H A D | resolv_test.c | 59 static StringList *hosts = NULL; variable 91 sl_add(hosts, strdup(ptr)); in load() 177 size_t i = (random() & 0x0fffffff) % hosts->sl_cur; in resolvone() 178 char *host = hosts->sl_str[i]; in resolvone() 205 threadnum, hosts->sl_str[i], error, errstr); in resolvone() 259 hosts = sl_init(); in run_tests() 266 ATF_REQUIRE_MSG(0 < hosts->sl_cur, "0 hosts in %s", hostlist_file); in run_tests() 268 ask = calloc(hosts->sl_cur, sizeof(int)); in run_tests() 271 got = calloc(hosts->sl_cur, sizeof(int)); in run_tests() 290 for (i = 0; i < hosts->sl_cur; i++) { in run_tests() [all …]
|
/freebsd/contrib/tcsh/ |
H A D | dot.tcshrc | 48 # Setup $hosts from ~/.hosts, ~/.rhosts, ~/.ssh/known_hosts 51 if ( ! $?hosts ) then 52 set hosts=() 53 foreach f ( ~/.{,r,ssh/known_}hosts ) 55 set hosts=( \ 56 $hosts \
|
/freebsd/contrib/sendmail/contrib/ |
H A D | etrn.pl | 54 my @hosts = @ARGV; 59 if (!@hosts) { 60 push(@hosts, $hostname); 87 push(@hosts, $thishost) 100 push(@hosts, $thishost) 206 while (@hosts) { 207 $server = shift(@hosts);
|
/freebsd/share/man/man5/ |
H A D | Makefile | 22 hosts.5 \ 23 hosts.equiv.5 \ 24 hosts.lpd.5 \ 59 MLINKS+=hosts.equiv.5 rhosts.5 71 bluetooth.hosts.5 \
|
/freebsd/share/examples/etc/ |
H A D | README.examples | 25 hosts - see hosts(5) 26 hosts.allow - defines allow trusted hosts 27 hosts.equiv - defines system-wide trusted hosts (see ruserok(3)) 28 hosts.lpd - defines trusted hosts for lpd(8)
|
/freebsd/contrib/netbsd-tests/lib/libc/net/getaddrinfo/ |
H A D | 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
|
/freebsd/usr.bin/rup/ |
H A D | rup.c | 63 } *hosts; variable 70 if (!hosts) in search_host() 73 for (hp = hosts; hp != NULL; hp = hp->next) { in search_host() 88 hp->next = hosts; in remember_host() 89 hosts = hp; in remember_host()
|
/freebsd/usr.bin/rusers/ |
H A D | rusers.c | 64 } *hosts; variable 71 if (hosts == NULL) 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()
|
/freebsd/usr.sbin/bsdconfig/share/media/ |
H A D | httpproxy.subr | 148 local connect_only="$1" hosts= 160 f_host_lookup "$proxy_host" hosts 164 [ "$hosts" ] && f_dialog_msgbox "$hosts" 167 elif [ ! "$hosts" ]; then 169 hosts="$proxy_host" 173 for host in $hosts; do 361 local dev="$1" file="$2" probe_type="$3" hosts= 376 f_host_lookup "$proxy_host" hosts 380 [ "$hosts" ] && f_dialog_msgbox "$hosts" 382 elif [ ! "$hosts" ]; then [all …]
|
/freebsd/contrib/ntp/scripts/ntptrace/ |
H A D | 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
|
/freebsd/sbin/natd/samples/ |
H A D | natd.cf.sample | 53 # numeric addresses or hosts that are in /etc/hosts. 70 # ipconfig must apply any legal IP numbers that inside hosts 80 # for aweb.company.com, then external hosts attempting to access 85 # NAT, because inside hosts will go through the NAT to get to the legal
|