/src/etc/ |
nsswitch.conf | 12 hosts: files dns key 24 # hosts: dns, files, nis, mdnsd, multicast_dns
|
/src/tests/lib/libc/gen/ |
t_sethostname.c | 43 static const char hosts[][MAXHOSTNAMELEN] = { variable in typeref:typename:const char[][] 62 for (i = 0; i < __arraycount(hosts); i++) { 66 ATF_REQUIRE(sethostname(hosts[i], sizeof(hosts[i])) == 0); 68 ATF_REQUIRE(strcmp(hosts[i], name) == 0);
|
/src/share/examples/emul/ultrix/etc/ |
svc.conf | 16 hosts=local,bind # /etc/hosts (no yp) then DNS key
|
/src/usr.sbin/ypserv/revnetgroup/ |
revnetgroup.c | 92 int hosts = -1; local in function:main 100 if (hosts != -1) { 104 hosts = 0; 107 if (hosts != -1) { 111 hosts = 1; 122 if (hosts == -1) 159 if (hosts) {
|
/src/tests/lib/libpthread/ |
h_resolv.c | 50 static StringList *hosts = NULL; variable in typeref:typename:StringList * 86 sl_add(hosts, strdup(ptr)); 98 size_t i = (random() & 0x0fffffff) % hosts->sl_cur; 99 char *host = hosts->sl_str[i]; 149 hosts = sl_init(); 171 if (hosts->sl_cur == 0) 176 if ((ask = calloc(hosts->sl_cur, sizeof(int))) == NULL) 178 if ((got = calloc(hosts->sl_cur, sizeof(int))) == NULL) 200 for (i = 0; i < (int)hosts->sl_cur; i++) { 203 hosts->sl_str[i], ask[i], got[i]) [all...] |
/src/usr.bin/rdist/ |
main.c | 130 fprintf(stderr, "rdist: too many destination hosts\n"); 256 struct namelist *files, *hosts; local in function:docmdargs 281 hosts = expand(&tnl, E_ALL); 296 printf("hosts = "); 297 prnames(hosts); 299 insert(NULL, files, hosts, cmds); 302 freenl(hosts);
|
/src/usr.bin/systat/ |
netcmds.c | 72 } *hosts = NULL; variable in typeref:struct:hitem * 119 else if (strstr(args, "hosts") == args) 300 if (hosts == 0) 302 free((char *)hosts), hosts = 0; 306 for (p = hosts; p < hosts+nhosts; p++) 313 if (reallocarr(&hosts, nhosts + 1, sizeof(*p)) != 0) { 317 p = &hosts[nhosts++]; 329 if (hosts) [all...] |
/src/usr.bin/rup/ |
rup.c | 70 } *hosts; variable in typeref:struct:host_list * 83 if (!hosts) 86 for (hp = hosts; hp != NULL; hp = hp->next) { 117 hp->next = hosts; 133 hosts = hp; 383 (void)fprintf(stderr, "Usage: %s [-dhlt] [hosts ...]\n",
|
/src/usr.bin/rusers/ |
rusers.c | 79 } *hosts; variable in typeref:struct:host_list * 89 if (!hosts) 92 for (hp = hosts; hp != NULL; hp = hp->next) { 123 hp->next = hosts; 137 hosts = hp; 274 fprintf(stderr, "usage: %s [-la] [hosts ...]\n", getprogname());
|
/src/usr.sbin/rpcbind/ |
rpcbind.c | 110 static char **hosts = NULL; variable in typeref:typename:char ** 366 * If no hosts were specified, just bind to INADDR_ANY. 370 if (reallocarr(&hosts, nhostsbak, sizeof(*hosts)) != 0) { 371 syslog(LOG_ERR, "Can't grow hosts array"); 375 hosts[0] = __UNCONST("*"); 378 hosts[nhostsbak - 1] = __UNCONST("127.0.0.1"); 380 hosts[nhostsbak - 1] = __UNCONST("::1"); 406 if (inet_pton(AF_INET, hosts[nhostsbak], 414 hosts[nhostsbak], host_addr) == 1) [all...] |
/src/usr.bin/getent/ |
getent.c | 74 static int hosts(int, char *[]); 99 { "hosts", hosts, }, 283 * hosts 298 hosts(int argc, char *argv[]) function in typeref:typename:int
|
/src/usr.sbin/sysinst/ |
net.c | 1090 * write the new contents of /etc/hosts to the specified file 1155 FILE *hosts; local in function:mnt_net_config 1172 * Add IPaddr/hostname to /etc/hosts. 1174 * Relies on ordered search of /etc/hosts. XXX YP? 1176 hosts = target_fopen("/etc/hosts", "a"); 1177 if (hosts != 0) { 1178 scripting_fprintf(NULL, "cat <<EOF >>%s/etc/hosts\n", 1180 write_etc_hosts(hosts); 1181 (void)fclose(hosts); [all...] |