| /netbsd-src/usr.bin/systat/ |
| H A D | netcmds.c | 72 } *hosts = NULL; variable 300 if (hosts == 0) in selecthost() 302 free((char *)hosts), hosts = 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() 329 if (hosts) in checkhost() 330 for (p = hosts; p < hosts+nhosts; p++) { in checkhost() 348 if (hosts) in checkhost6() 349 for (p = hosts; p < hosts+nhosts; p++) { in checkhost6() [all …]
|
| /netbsd-src/tests/lib/libpthread/ |
| H A D | 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() 149 hosts = sl_init(); in main() 171 if (hosts->sl_cur == 0) in main() 176 if ((ask = calloc(hosts->sl_cur, sizeof(int))) == NULL) in main() 178 if ((got = calloc(hosts->sl_cur, sizeof(int))) == NULL) in main() 200 for (i = 0; i < (int)hosts->sl_cur; i++) { in main() 203 hosts->sl_str[i], ask[i], got[i]); in main() [all …]
|
| /netbsd-src/external/bsd/tre/dist/tests/ |
| H A D | build-on-hosts.sh | 12 for f in tests/build-hosts/*; do 14 hosts="$hosts `basename $f`" 18 hosts="$*" 21 for hostfile in $hosts; do 23 . tests/build-hosts/$hostfile 32 cat tests/build-hosts/$hostfile > $hostfile.tmp
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/back-dnssrv/ |
| H A D | referral.c | 46 char **hosts = NULL; in dnssrv_back_referrals() local 90 hosts = ldap_str2charray( hostlist, " " ); in dnssrv_back_referrals() 92 if( hosts == NULL ) { in dnssrv_back_referrals() 98 for( i=0; hosts[i] != NULL; i++) { in dnssrv_back_referrals() 101 url.bv_len = STRLENOF( "ldap://" ) + strlen( hosts[i] ); in dnssrv_back_referrals() 105 strcpy( &url.bv_val[STRLENOF( "ldap://" )], hosts[i] ); in dnssrv_back_referrals() 131 if( hosts != NULL ) ldap_charray_free( hosts ); in dnssrv_back_referrals()
|
| H A D | search.c | 47 char **hosts = NULL; in dnssrv_back_search() local 98 hosts = ldap_str2charray( hostlist, " " ); in dnssrv_back_search() 100 if( hosts == NULL ) { in dnssrv_back_search() 107 for( i=0; hosts[i] != NULL; i++) { in dnssrv_back_search() 110 url.bv_len = STRLENOF( "ldap://" ) + strlen(hosts[i]); in dnssrv_back_search() 114 strcpy( &url.bv_val[STRLENOF( "ldap://" )], hosts[i] ); in dnssrv_back_search() 241 if( hosts != NULL ) ldap_charray_free( hosts ); in dnssrv_back_search()
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/x509/ |
| H A D | x509_vpm.c | 53 sk_OPENSSL_STRING_pop_free(vpm->hosts, str_free); in int_x509_param_set_hosts() 54 vpm->hosts = NULL; in int_x509_param_set_hosts() 63 if (vpm->hosts == NULL && in int_x509_param_set_hosts() 64 (vpm->hosts = sk_OPENSSL_STRING_new_null()) == NULL) { in int_x509_param_set_hosts() 69 if (!sk_OPENSSL_STRING_push(vpm->hosts, copy)) { in int_x509_param_set_hosts() 71 if (sk_OPENSSL_STRING_num(vpm->hosts) == 0) { in int_x509_param_set_hosts() 72 sk_OPENSSL_STRING_free(vpm->hosts); in int_x509_param_set_hosts() 73 vpm->hosts = NULL; in int_x509_param_set_hosts() 103 sk_OPENSSL_STRING_pop_free(param->hosts, str_free); in X509_VERIFY_PARAM_free() 204 if (test_x509_verify_param_copy(hosts, NULL)) { in X509_VERIFY_PARAM_inherit() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/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 …]
|
| /netbsd-src/external/bsd/ipf/dist/lib/ |
| H A D | load_url.c | 16 alist_t *hosts = NULL; in load_url() local 23 hosts = load_file(url); in load_url() 26 hosts = load_file(url); in load_url() 29 hosts = load_http(url); in load_url() 32 return hosts; in load_url()
|
| H A D | alist_free.c | 13 alist_free(hosts) in alist_free() argument 14 alist_t *hosts; in alist_free() 18 for (a = hosts; a != NULL; a = next) {
|
| /netbsd-src/usr.sbin/ypserv/revnetgroup/ |
| H A D | revnetgroup.c | 92 int hosts = -1; in main() local 100 if (hosts != -1) { in main() 104 hosts = 0; in main() 107 if (hosts != -1) { in main() 111 hosts = 1; in main() 122 if (hosts == -1) in main() 159 if (hosts) { in main()
|
| /netbsd-src/external/ibm-public/postfix/dist/src/global/ |
| H A D | dict_pgsql.c | 146 ARGV *hosts; member 632 char *hosts; in pgsql_parse_config() local 685 hosts = cfg_get_str(p, "hosts", "", 0, 0); in pgsql_parse_config() 687 dict_pgsql->hosts = argv_split(hosts, CHARS_COMMA_SP); in pgsql_parse_config() 688 if (dict_pgsql->hosts->argc == 0) { in pgsql_parse_config() 689 argv_add(dict_pgsql->hosts, "localhost", ARGV_END); in pgsql_parse_config() 690 argv_terminate(dict_pgsql->hosts); in pgsql_parse_config() 693 myname, pgsqlcf, dict_pgsql->hosts->argv[0]); in pgsql_parse_config() 695 myfree(hosts); in pgsql_parse_config() 728 dict_pgsql->pldb = plpgsql_init(dict_pgsql->hosts); in dict_pgsql_open() [all …]
|
| H A D | dict_mysql.c | 152 ARGV *hosts; member 646 char *hosts; in mysql_parse_config() local 704 hosts = cfg_get_str(p, "hosts", "", 0, 0); in mysql_parse_config() 706 dict_mysql->hosts = argv_split(hosts, CHARS_COMMA_SP); in mysql_parse_config() 707 if (dict_mysql->hosts->argc == 0) { in mysql_parse_config() 708 argv_add(dict_mysql->hosts, "localhost", ARGV_END); in mysql_parse_config() 709 argv_terminate(dict_mysql->hosts); in mysql_parse_config() 712 myname, mysqlcf, dict_mysql->hosts->argv[0]); in mysql_parse_config() 714 myfree(hosts); in mysql_parse_config() 749 dict_mysql->pldb = plmysql_init(dict_mysql->hosts); in dict_mysql_open() [all …]
|
| H A D | own_inet_addr.c | 84 char *hosts; in own_inet_addr_init() local 147 bufp = hosts = mystrdup(var_inet_interfaces); in own_inet_addr_init() 152 myfree(hosts); in own_inet_addr_init() 233 char *hosts; in proxy_inet_addr_init() local 243 bufp = hosts = mystrdup(var_proxy_interfaces); in proxy_inet_addr_init() 248 myfree(hosts); in proxy_inet_addr_init()
|
| /netbsd-src/usr.sbin/rpcbind/ |
| H A D | rpcbind.c | 110 static char **hosts = NULL; variable 370 if (reallocarr(&hosts, nhostsbak, sizeof(*hosts)) != 0) { in init_transport() 375 hosts[0] = __UNCONST("*"); in init_transport() 378 hosts[nhostsbak - 1] = __UNCONST("127.0.0.1"); in init_transport() 380 hosts[nhostsbak - 1] = __UNCONST("::1"); in init_transport() 406 if (inet_pton(AF_INET, hosts[nhostsbak], in init_transport() 414 hosts[nhostsbak], host_addr) == 1) { in init_transport() 421 if (inet_pton(AF_INET6, hosts[nhostsbak], in init_transport() 428 if (inet_pton(AF_INET, hosts[nhostsbak], in init_transport() 449 if (strcmp("*", hosts[nhostsbak]) == 0) in init_transport() [all …]
|
| /netbsd-src/usr.sbin/ypserv/ypinit/ |
| H A D | Makefile.yp | 59 all: passwd aliases ${AMDMAPS} ethers group hosts ipnodes netgroup networks rpc services protocols … 260 hosts.time: ${DIR}/hosts 264 ${SORT} | ${MAKEDBM} - hosts.byname; \ 267 ${SORT} | ${MAKEDBM} - hosts.byaddr; \ 271 ${YPPUSH} -d ${DOMAIN} hosts.byname; \ 272 ${YPPUSH} -d ${DOMAIN} hosts.byaddr; \ 282 ipnodes.time: ${DIR}/hosts 407 netid.time: ${DIR}/passwd ${DIR}/group ${DIR}/hosts ${DIR}/netid 409 ${DIR}/hosts -m ${DIR}/netid | \ 435 hosts: hosts.time [all …]
|
| /netbsd-src/tests/lib/libc/gen/ |
| H A D | t_sethostname.c | 43 static const char hosts[][MAXHOSTNAMELEN] = { variable 62 for (i = 0; i < __arraycount(hosts); i++) { in ATF_TC_BODY() 66 ATF_REQUIRE(sethostname(hosts[i], sizeof(hosts[i])) == 0); in ATF_TC_BODY() 68 ATF_REQUIRE(strcmp(hosts[i], name) == 0); in ATF_TC_BODY()
|
| /netbsd-src/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
|
| /netbsd-src/usr.bin/rdist/ |
| H A D | main.c | 256 struct namelist *files, *hosts; in docmdargs() local 281 hosts = expand(&tnl, E_ALL); in docmdargs() 297 prnames(hosts); in docmdargs() 299 insert(NULL, files, hosts, cmds); in docmdargs() 302 freenl(hosts); in docmdargs()
|
| /netbsd-src/usr.bin/rusers/ |
| H A D | rusers.c | 79 } *hosts; variable 89 if (!hosts) in search_host() 92 for (hp = hosts; hp != NULL; hp = hp->next) { in search_host() 123 hp->next = hosts; in remember_host() 137 hosts = hp; in remember_host()
|
| /netbsd-src/share/man/man5/ |
| H A D | Makefile | 10 hosts.5 hosts.equiv.5 ifaliases.5 ifconfig.if.5 intro.5 \ 24 MLINKS+=hosts.equiv.5 rhosts.5
|
| /netbsd-src/external/bsd/libbind/dist/doc/ |
| H A D | irs.conf.cat5 | 12 the following: passwd, group, services, protocols, hosts, networks and 34 hosts Network hosts directory 81 hosts dns continue 82 hosts local 100 NIS takes a long time to time out. Especially for hosts if you use the 118 groups(5), hosts(5), netgroup(5), networks(5), passwd(5), protocols(5),
|
| /netbsd-src/usr.bin/rup/ |
| H A D | rup.c | 70 } *hosts; variable 83 if (!hosts) in search_host() 86 for (hp = hosts; hp != NULL; hp = hp->next) { in search_host() 117 hp->next = hosts; in remember_host() 133 hosts = hp; in remember_host()
|
| /netbsd-src/external/bsd/ipf/dist/perl/ |
| H A D | plog | 152 my %hosts; 617 $hosts{$host} = 621 } unless (exists ($hosts{$host})); 624 my $trafficHash = $hosts{$host}->{$dir}; 673 foreach $host (sort ipSort (keys %hosts)) 675 my $traffic = $hosts{$host}->{$dir};
|
| /netbsd-src/external/bsd/unbound/dist/testdata/hostsfileosx.tdir/ |
| H A D | hostsfileosx.test | 49 # test hosts reading (directed at local auth info) 50 echo '> $PRE/asynclook $THR -H hostsfileosx.hosts virtual.virtual.virtual.local 2>&1 | tee outfile' 51 $PRE/asynclook $THR -H hostsfileosx.hosts virtual.virtual.virtual.local 2>&1 | tee outfile
|
| /netbsd-src/usr.bin/ypcat/ |
| H A D | nicknames | 4 hosts hosts.byaddr
|