/dragonfly/contrib/tcp_wrappers/ |
H A D | eval.c | 54 char *eval_hostaddr(host) in eval_hostaddr() argument 55 struct host_info *host; in eval_hostaddr() 60 host->request->hostaddr(host); 62 return (host->addr); 67 char *eval_hostname(host) in eval_hostname() argument 68 struct host_info *host; in eval_hostname() 73 host->request->hostname(host); 75 return (host->name); 80 char *eval_hostinfo(host) in eval_hostinfo() argument 81 struct host_info *host; in eval_hostinfo() [all …]
|
H A D | scaffold.c | 50 struct hostent host; member 66 memset((char *) &hb->host, 0, sizeof(hb->host)); 67 hb->host.h_length = hp->h_length; 69 hb->host.h_addr_list[count] = 0; 76 return (&hb->host); 84 char *host; in find_inet_addr() 119 char *host; in find_inet_addr() 142 if (NOT_INADDR(host) == 0) { 154 if (STR_NE(host, hp->h_name)) { 164 int check_dns(host) in check_dns() argument [all …]
|
H A D | socket.c | 142 void sock_hostaddr(host) in sock_hostaddr() argument 143 struct host_info *host; in sock_hostaddr() 157 getnameinfo(sin, salen, host->addr, sizeof(host->addr), 163 STRN_CPY(host->addr, inet_ntoa(sin->sin_addr), sizeof(host->addr)); 169 void sock_hostname(host) in sock_hostname() argument 170 struct host_info *host; in sock_hostname() 214 STRN_CPY(host->name, hname, sizeof(host->name)); 225 host->name); 258 host->name, 340 STRN_CPY(host->name, hp->h_name, sizeof(host->name)); [all …]
|
H A D | hosts_access.c | 229 char *host; local 235 && host_match(host, request->server)); 245 char *host; local 250 return (host_match(host, request->client) 257 static int hostfile_match(path, host) in hostfile_match() argument 259 struct hosts_info *host; 277 static int host_match(tok, host) in host_match() argument 279 struct host_info *host; 303 return (hostfile_match(tok, host)); 305 char *name = eval_hostname(host); [all …]
|
H A D | tli.c | 244 static void tli_hostaddr(host) in tli_hostaddr() argument 245 struct host_info *host; in tli_hostaddr() 247 struct request_info *request = host->request; 249 struct t_unitdata *unit = host->unit; 254 STRN_CPY(host->addr, uaddr, sizeof(host->addr)); 261 static void tli_hostname(host) in tli_hostname() argument 262 struct host_info *host; in tli_hostname() 264 struct request_info *request = host->request; 266 struct t_unitdata *unit = host->unit; 297 char *uaddr = eval_hostaddr(host); [all …]
|
/dragonfly/usr.bin/whois/ |
H A D | whois.c | 101 host = ANICHOST; in main() 104 host = PNICHOST; in main() 113 host = DNICHOST; in main() 116 host = GNICHOST; in main() 119 host = optarg; in main() 122 host = INICHOST; in main() 125 host = IANAHOST; in main() 128 host = KNICHOST; in main() 171 host = NICHOST; in main() 306 (int)(buf + len - host), host); in whois() [all …]
|
/dragonfly/bin/cpdup/scripts/ |
H A D | do_mirror_host | 17 set host = "$argv[1]" 20 if ( ! -d $backup_nfs/$host ) then 24 if ( ! -d $backup_path/mirrors/$host ) then 25 mkdir $backup_path/mirrors/$host 30 set target = $host.$date 40 if ( -f $backup_path/mirrors/$host.log ) then 41 ln $backup_path/mirrors/$host.log $backup_path/mirrors/$target/INPROGRESS 49 foreach fs ( $backup_nfs/$host/* ) 78 cpdup -i0 -s0 -I -H $backup_path/mirrors/$host/$dirname $fs $backup_path/mirrors/$target/$dirname 98 rm -f $backup_path/mirrors/$host [all …]
|
H A D | do_remote_host | 16 set host = "$argv[1]" 19 if ( ! -d $backup_nfs/$host ) then 23 if ( ! -d $backup_path/mirrors/$host ) then 24 echo "No backup found for $host" 30 set source = `readlink $backup_path/mirrors/$host` 32 echo "No backup found for $host at $backup_path/mirrors/$host" 42 set hlbase = `ssh $remote_host -n "readlink ${remote_path}/mirrors/$host"` 44 echo "Missing softlink at ${remote_host}:${remote_path}/mirrors/${host}" 102 …ssh $remote_host -n "rm -f ${remote_path}/mirrors/$host; ln -s $basename ${remote_path}/mirrors/$h…
|
H A D | do_mirror | 14 set host = ${i:t} 16 ./do_mirror_host $host $argv >& $backup_path/mirrors/${host}.log & 22 set host = ${i:t} 24 echo -n "${host}: " 25 tail -1 $backup_path/mirrors/${host}.log
|
H A D | do_remote | 14 set host = ${i:t} 16 ./do_remote_host $host $argv >& $backup_path/mirrors/remote.${host}.log & 22 set host = ${i:t} 24 echo -n "${host}: " 25 tail -1 $backup_path/mirrors/remote.${host}.log
|
/dragonfly/libexec/dma/ |
H A D | net.c | 332 h->host, h->addr); in open_connection() 486 host->host, host->addr, c, neterr); \ in deliver_to_host() 488 host->host, host->addr, c, neterr); \ in deliver_to_host() 493 host->host, host->addr, c, neterr); \ in deliver_to_host() 522 host->host, host->addr, neterr); in deliver_to_host() 531 if (strcmp(a->host, host->host) == 0) { in deliver_to_host() 547 snprintf(errmsg, sizeof(errmsg), "SMTP login to %s failed", host->host); in deliver_to_host() 623 const char *host; in deliver_remote() local 638 if (host == NULL) { in deliver_remote() 644 host++; in deliver_remote() [all …]
|
H A D | conf.c | 128 au->host = strsep(&data, DP); in parse_authfile() 132 au->host == NULL || in parse_authfile() 204 char *user = NULL, *host = NULL; in parse_conf() local 206 host = strrchr(data, '@'); in parse_conf() 207 *host = 0; in parse_conf() 208 host++; in parse_conf() 211 host = data; in parse_conf() 213 if (host && *host == 0) in parse_conf() 214 host = NULL; in parse_conf() 217 config.masquerade_host = host; in parse_conf()
|
H A D | dns.c | 66 add_host(int pref, const char *host, int port, struct mx_hostentry **he, size_t *ps) in add_host() argument 79 switch (getaddrinfo(host, servname, &hints, &res0)) { in add_host() 109 strlcpy(p->host, host, sizeof(p->host)); in add_host() 132 dns_get_mx_list(const char *host, int port, struct mx_hostentry **he, int no_mx) in dns_get_mx_list() argument 150 searchhost = host; in dns_get_mx_list() 252 err = add_host(0, host, port, &hosts, &nhosts); in dns_get_mx_list() 265 *hosts[nhosts].host = 0; in dns_get_mx_list() 287 for (p = he; *p->host != 0; p++) { in main() 288 printf("%d\t%s\t%s\n", p->pref, p->host, p->addr); in main()
|
/dragonfly/lib/libc/net/ |
H A D | getnameinfo.c | 211 if (host == NULL || hostlen == 0) { in getnameinfo_inet() 244 strlcpy(host, numaddr, hostlen); in getnameinfo_inet() 267 strlcpy(host, hp->h_name, hostlen); in getnameinfo_inet() 286 if (inet_ntop(afd->a_af, addr, host, in getnameinfo_inet() 310 strlcpy(host, numaddr, hostlen); in ip6_parsenumeric() 325 memcpy(host + numaddrlen + 1, zonebuf, in ip6_parsenumeric() 327 host[numaddrlen] = SCOPE_DELIMITER; in ip6_parsenumeric() 393 *host = '\0'; in getnameinfo_link() 422 host, hostlen); in getnameinfo_link() 430 char *outp = host; in hexname() [all …]
|
/dragonfly/sys/dev/drm/ |
H A D | drm_mipi_dsi.c | 139 dsi->host = host; 141 dsi->dev.parent = host->dev; 151 struct mipi_dsi_host *host = dsi->host; 162 struct device *dev = host->dev; 209 struct device *dev = host->dev; 222 dsi = mipi_dsi_device_alloc(host); 268 struct mipi_dsi_host *host; 273 if (host->dev->of_node == node) { 275 return host; 318 list_del_init(&host->list); [all …]
|
/dragonfly/contrib/gcc-4.7/gcc/doc/ |
H A D | configterms.texi | 18 (@dfn{host}), and the machine that GCC will produce code for 20 @option{--build=}, @option{--host=}, and @option{--target=}. 22 Specifying the host without specifying the build should be avoided, as 23 @command{configure} may (and once did) assume that the host you specify 26 If build, host, and target are all the same, this is called a 27 @dfn{native}. If build and host are the same but target is different, 28 this is called a @dfn{cross}. If build, host, and target are all 33 different system. Some people call this a @dfn{host-x-host}, 40 If build and host are the same, the GCC you are building will also be 49 you're building on (no change there), host is the machine you're [all …]
|
/dragonfly/lib/libfetch/ |
H A D | common.c | 341 host = hbuf; in fetch_resolve() 343 host = hb; in fetch_resolve() 459 strncpy(ptr, host, strlen(host)); in fetch_socks5_init() 534 *host = NULL; in fetch_socks5_getenv() 573 free(*host); in fetch_socks5_getenv() 574 *host = NULL; in fetch_socks5_getenv() 864 char *host; in fetch_ssl_get_numeric_addrinfo() local 877 free(host); in fetch_ssl_get_numeric_addrinfo() 971 fetch_ssl_hname_match(host, strlen(host), ns, nslen)) in fetch_ssl_verify_altname() 1006 fetch_ssl_hname_match(host, strlen(host), cn, cnlen)) in fetch_ssl_verify_cn() [all …]
|
/dragonfly/usr.bin/tip/ |
H A D | remote.c | 97 getremcap(char *host) in getremcap() argument 115 if ((stat = cgetent(&bp, db_array, host)) < 0) { in getremcap() 117 (host[0] == '/' && access(DV = host, R_OK | W_OK) == 0)) { in getremcap() 119 HO = host; in getremcap() 129 warnx("unknown host %s", host); in getremcap() 153 fprintf(stderr, "%s: missing device spec\n", host); in getremcap() 159 fprintf(stderr, "%s: missing phone number\n", host); in getremcap() 171 HO = host; in getremcap() 245 getremote(char *host) in getremote() argument 252 if (host == NULL && (host = getenv("HOST")) == NULL) in getremote() [all …]
|
/dragonfly/crypto/openssh/ |
H A D | hostfile.c | 138 ssh_hmac_update(ctx, host, strlen(host)) < 0 || in host_hash() 225 const char *host; member 252 hostkeys->entries[hostkeys->num_entries].host = xstrdup(ctx->host); in record_hostkey() 272 ctx.host = host; in load_hostkeys_file() 306 free(hostkeys->entries[i].host); in free_hostkeys() 443 lhost = xstrdup(host); in write_host_entry() 534 const char *host, *ip; member 601 ctx.host = host; in hostfile_replace_entries() 656 if (!write_host_entry(ctx.out, host, ip, in hostfile_replace_entries() 747 return match_hostname(host, names) == 1; in match_maybe_hashed() [all …]
|
H A D | auth-rhosts.c | 88 char *host, *user, *cp; in check_rhosts_file() local 127 host = hostbuf; in check_rhosts_file() 132 if (host[0] == '-') { in check_rhosts_file() 134 host++; in check_rhosts_file() 135 } else if (host[0] == '+') in check_rhosts_file() 136 host++; in check_rhosts_file() 145 if (!host[0] || !user[0]) { in check_rhosts_file() 152 if (host[0] == '@') { in check_rhosts_file() 154 !innetgr(host + 1, ipaddr, NULL, NULL)) in check_rhosts_file() 156 } else if (strcasecmp(host, hostname) && in check_rhosts_file() [all …]
|
H A D | sshconnect.c | 99 "h", host, in expand_proxy_command() 130 host, host_arg, port); in ssh_proxy_fdpass_connect() 486 host, ntop, strport); in ssh_connect_direct() 681 const char *host, *ip; member 778 ctx.host = host; in hostkeys_find_by_key() 1202 hostp = host; in check_host_key() 1387 free(host); in check_host_key() 1410 free(host); in check_host_key() 1544 char *host; in ssh_login() local 1553 lowercase(host); in ssh_login() [all …]
|
/dragonfly/usr.sbin/arp/ |
H A D | arp.c | 79 static int get(char *host); 286 if (!(hp = gethostbyname(host))) { in set() 311 host); in set() 329 warn("%s", host); in set() 369 get(char *host) in get() argument 377 if (!(hp = gethostbyname(host))) in get() 398 delete(char *host, char *info) in delete() argument 424 warn("%s", host); in delete() 527 const char *host; in print_entry() local 537 host = hp->h_name; in print_entry() [all …]
|
/dragonfly/usr.bin/logger/ |
H A D | logger.c | 77 char *tag, *host, buf[1024]; in main() local 80 host = NULL; in main() 102 host = optarg; in main() 135 logmessage(pri, host, buf); in main() 139 logmessage(pri, host, *argv++); in main() 148 logmessage(pri, host, buf); in main() 151 logmessage(pri, host, buf); in main() 167 if (host == NULL) { in logmessage() 177 error = getaddrinfo(host, "syslog", &hints, &res); in logmessage() 180 error = getaddrinfo(host, "514", &hints, &res); in logmessage() [all …]
|
/dragonfly/usr.bin/rup/ |
H A D | rup.c | 93 char *host; in rstat_reply() local 103 host = hp->h_name; in rstat_reply() 105 host = inet_ntoa(raddrp->sin_addr); in rstat_reply() 108 if (strlen(host) > HOST_WIDTH) in rstat_reply() 109 host[HOST_WIDTH] = '\0'; in rstat_reply() 111 printf("%-*s\t", HOST_WIDTH, host); in rstat_reply() 168 onehost(const char *host) in onehost() argument 176 hp = gethostbyname(host); in onehost() 182 rstat_clnt = clnt_create(host, RSTATPROG, RSTATVERS_TIME, "udp"); in onehost() 184 clnt_pcreateerror(host); in onehost() [all …]
|
/dragonfly/sys/netgraph/bridge/ |
H A D | ng_bridge.c | 521 struct ng_bridge_host *host; in ng_bridge_rcvdata() local 574 host->staleness = 0; in ng_bridge_rcvdata() 616 host->linkNum = linkNum; in ng_bridge_rcvdata() 617 host->age = 0; in ng_bridge_rcvdata() 789 return (&hent->host); in ng_bridge_get() 820 hent->host.linkNum = linkNum; in ng_bridge_put() 821 hent->host.staleness = 0; in ng_bridge_put() 822 hent->host.age = 0; in ng_bridge_put() 963 hent->host.linkNum)); in ng_bridge_timeout() 971 if (hent->host.age < 0xffff) in ng_bridge_timeout() [all …]
|