| /NextBSD/release/picobsd/floppy.tree/etc/ |
| HD | rc.conf.defaults | 11 hostname="" # Should not need to set it 68 read hostname the_ip 69 if [ "${hostname}" != "" ] ; then 70 echo "# $main_ether $hostname" >> /etc/hosts 71 echo "$the_ip $hostname" >> /etc/hosts 73 hostname=default 113 hostname="" 119 while [ "$b" != "" -a "${hostname}" = "" ] ; do 123 eval hostname=\${eth_host_${i}} 129 echo "fetch_hostname for <${key}> returns <${hostname}>" [all …]
|
| /NextBSD/usr.sbin/bsdconfig/networking/share/ |
| HD | hostname.subr | 33 f_dprintf "%s: loading includes..." networking/hostname.subr 44 # f_dialog_hnerror $error $hostname 65 # f_dialog_validate_hostname $hostname 67 # Returns zero if the given argument (a fully-qualified hostname) is compliant 76 # If the hostname is determined to be invalid, the appropriate error will be 94 # Edits the current hostname. 99 local hostname="$( f_sysrc_get 'hostname:-$(hostname)' )" 100 local hostname_orig="$hostname" # for change-tracking 113 f_dialog_input hostname "$msg" "$hostname" \ 116 f_dialog_validate_hostname "$hostname" && break [all …]
|
| /NextBSD/crypto/heimdal/appl/login/ |
| HD | utmp_login.c | 42 shrink_hostname (const char *hostname, in shrink_hostname() argument 50 if (strlen(hostname) < dst_sz) { in shrink_hostname() 51 strlcpy (dst, hostname, dst_sz); in shrink_hostname() 55 hd = strchr (hostname, '.'); in shrink_hostname() 58 && hd - hostname < dst_sz) { in shrink_hostname() 59 strlcpy (dst, hostname, dst_sz); in shrink_hostname() 60 dst[hd - hostname] = '\0'; in shrink_hostname() 64 ret = getaddrinfo (hostname, NULL, NULL, &ai); in shrink_hostname() 66 strncpy (dst, hostname, dst_sz); in shrink_hostname() 75 strncpy (dst, hostname, dst_sz); in shrink_hostname() [all …]
|
| /NextBSD/etc/mail/ |
| HD | virtusertable.sample | 3 # Map one or all usernames at a source hostname to a specific (or the same) 4 # username at another target hostname. Remember to add the source hostname 6 # source hostname. 8 username@a.sample.hostname localuser 9 username@a.sample.hostname specificuser@a.possibly.different.hostname 10 @another.sample.hostname specificuser@a.possibly.different.hostname 11 @yet.another.sample.hostname %1@a.possibly.different.hostname
|
| /NextBSD/contrib/ntp/sntp/ |
| HD | kod_management.c | 23 const char *hostname, in search_entry() argument 30 if (!strcmp(kod_db[a]->hostname, hostname)) in search_entry() 42 if (!strcmp(kod_db[a]->hostname, hostname)) { in search_entry() 53 const char * hostname, in add_entry() argument 64 strlcpy(pke->hostname, hostname, sizeof(pke->hostname)); in add_entry() 70 if (strcmp(kod_db[n]->hostname, pke->hostname) >= 0) in add_entry() 74 0 == strcmp(kod_db[n]->hostname, pke->hostname)) { in add_entry() 91 const char * hostname, in delete_entry() argument 98 if (!strcmp(kod_db[a]->hostname, hostname) in delete_entry() 168 kod_db[a]->hostname); in write_kod_db() [all …]
|
| /NextBSD/crypto/openssh/ |
| HD | auth-rhosts.c | 55 check_rhosts_file(const char *filename, const char *hostname, in check_rhosts_file() argument 149 if (!innetgr(host + 1, hostname, NULL, NULL) && in check_rhosts_file() 152 } else if (strcasecmp(host, hostname) && strcmp(host, ipaddr) != 0) in check_rhosts_file() 189 const char *hostname, *ipaddr; in auth_rhosts() local 191 hostname = get_canonical_hostname(options.use_dns); in auth_rhosts() 193 return auth_rhosts2(pw, client_user, hostname, ipaddr); in auth_rhosts() 197 auth_rhosts2_raw(struct passwd *pw, const char *client_user, const char *hostname, in auth_rhosts2_raw() argument 206 client_user, hostname, ipaddr); in auth_rhosts2_raw() 234 if (check_rhosts_file(_PATH_RHOSTS_EQUIV, hostname, ipaddr, in auth_rhosts2_raw() 237 hostname, ipaddr); in auth_rhosts2_raw() [all …]
|
| HD | dns.c | 164 is_numeric_hostname(const char *hostname) in is_numeric_hostname() argument 172 if (hostname == NULL) { in is_numeric_hostname() 181 if (getaddrinfo(hostname, NULL, &hints, &ai) == 0) { in is_numeric_hostname() 194 verify_host_key_dns(const char *hostname, struct sockaddr *address, in verify_host_key_dns() argument 217 if (is_numeric_hostname(hostname)) { in verify_host_key_dns() 222 result = getrrsetbyname(hostname, DNS_RDATACLASS_IN, in verify_host_key_dns() 305 export_dns_rr(const char *hostname, Key *key, FILE *f, int generic) in export_dns_rr() argument 320 hostname, DNS_RDATATYPE_SSHFP, in export_dns_rr() 324 fprintf(f, "%s IN SSHFP %d %d ", hostname, in export_dns_rr()
|
| /NextBSD/usr.sbin/bsdconfig/share/media/ |
| HD | http.subr | 149 # http://hostname:OTHER_PORT 150 # http://hostname:OTHER_PORT/* 234 local hostname="${url#*://}" port=80 dir=/ 235 case "$hostname" in 241 "$hostname" 242 hostname="${hostname#\[}" 243 port="${hostname#*\]:}" 245 dir="/${hostname#*/}" 246 hostname="${hostname%%\]:*}" 249 f_dprintf "Looks like an IPv6 addr with port: %s" "$hostname" [all …]
|
| HD | ftp.subr | 238 # contain directory prefix after hostname/port. Valid examples 261 # ftp://hostname:OTHER_PORT 262 # ftp://hostname:OTHER_PORT/* 347 local hostname="${url#*://}" port=21 dir=/ 348 case "$hostname" in 354 "$hostname" 355 hostname="${hostname#\[}" 356 port="${hostname#*\]:}" 358 dir="/${hostname#*/}" 359 hostname="${hostname%%\]:*}" [all …]
|
| /NextBSD/contrib/apr/network_io/unix/ |
| HD | sockaddr.c | 308 const char *hostname, apr_int32_t family, argument 338 if(hostname == NULL) { 352 hostname = family == AF_INET6 ? "::" : "0.0.0.0"; 367 error = getaddrinfo(hostname, servname, &hints, &ai_list); 390 error = getaddrinfo(hostname, servname, &hints, &ai_list); 439 if (hostname) { 440 new_sa->hostname = apr_pstrdup(p, hostname); 445 new_sa->hostname = prev_sa->hostname; 466 const char *hostname, apr_int32_t family, argument 471 apr_status_t error = call_resolver(sa, hostname, AF_INET, port, flags, p); [all …]
|
| /NextBSD/usr.sbin/bootparamd/bootparamd/ |
| HD | bootparamd.c | 38 static char hostname[MAX_MACHINE_NAME]; variable 77 if (checkhost(askname, hostname, sizeof hostname) ) { 78 res.client_name = hostname; 138 strncpy(hostname, buffer, where - buffer); 139 hostname[where - buffer] = '\0'; 142 he = gethostbyname(hostname); 145 res.server_name = hostname; 209 while ( fscanf(bpf, "%255s", hostname) > 0 && !match ) { 210 if ( *hostname != '#' ) { /* comment */ 211 if ( ! strcmp(hostname, askname) ) { [all …]
|
| /NextBSD/usr.sbin/rpc.statd/ |
| HD | file.c | 77 HostInfo *find_host(char *hostname, int create) in find_host() argument 85 if (getaddrinfo(hostname, NULL, NULL, &ai1) != 0) in find_host() 89 if (!strncasecmp(hostname, hp->hostname, SM_MAXSTRLEN)) in find_host() 94 if (hp->hostname[0] && in find_host() 95 getaddrinfo(hp->hostname, NULL, NULL, &ai2) != 0) in find_host() 153 strncpy(spare_slot->hostname, hostname, SM_MAXSTRLEN); in find_host() 249 static int notify_one_host(char *hostname) in notify_one_host() argument 262 if (debug) syslog (LOG_DEBUG, "Sending SM_NOTIFY to host %s from %s", hostname, our_hostname); in notify_one_host() 264 cli = clnt_create(hostname, SM_PROG, SM_VERS, "udp"); in notify_one_host() 267 syslog(LOG_ERR, "Failed to contact host %s%s", hostname, in notify_one_host() [all …]
|
| /NextBSD/libexec/bootpd/ |
| HD | lookup.c | 37 lookup_hwa(hostname, htype) in lookup_hwa() argument 38 char *hostname; in lookup_hwa() 50 if (ether_hostton(hostname, &ea)) { 52 hostname); 73 lookup_ipa(hostname, result) in lookup_ipa() argument 74 char *hostname; in lookup_ipa() 78 hp = gethostbyname(hostname);
|
| /NextBSD/etc/rc.d/ |
| HD | hostname | 53 if [ -z "${hostname}" -a \ 55 hostname=`/bin/kenv dhcp.host-name` 61 if [ -z "${hostname}" ]; then 72 check_startmsgs && echo -n "Setting hostname: ${hostname}" 73 /bin/hostname "${hostname}"
|
| /NextBSD/usr.sbin/rpc.umntall/ |
| HD | rpc.umntall.c | 172 do_umntall(char *hostname) { in do_umntall() argument 179 clp = clnt_create_timed(hostname, MOUNTPROG, MOUNTVERS, "udp", in do_umntall() 182 warnx("%s: %s", hostname, clnt_spcreateerror("MOUNTPROG")); in do_umntall() 190 warnx("%s: %s", hostname, clnt_sperror(clp, "MOUNTPROC_UMNTALL")); in do_umntall() 200 do_umount(char *hostname, char *dirp) { in do_umount() argument 207 clp = clnt_create_timed(hostname, MOUNTPROG, MOUNTVERS, "udp", in do_umount() 210 warnx("%s: %s", hostname, clnt_spcreateerror("MOUNTPROG")); in do_umount() 217 warnx("%s: %s", hostname, clnt_sperror(clp, "MOUNTPROC_UMNT")); in do_umount() 227 is_mounted(char *hostname, char *dirp) { in is_mounted() argument 233 if (strlen(hostname) + strlen(dirp) >= MNAMELEN) in is_mounted() [all …]
|
| /NextBSD/contrib/amd/fsinfo/ |
| HD | fsinfo.c | 60 char hostname[MAXHOSTNAMELEN + 1]; variable 127 xstrlcpy(hostname, optarg, sizeof(hostname)); in fsi_get_args() 234 if (!*hostname && gethostname(hostname, sizeof(hostname)) < 0) { in main() 238 hostname[sizeof(hostname) - 1] = '\0'; in main()
|
| /NextBSD/crypto/heimdal/lib/krb5/ |
| HD | krbhst.c | 133 strlcpy(hi->hostname, rr->u.srv->target, len + 1); in srv_find_realm() 227 memcpy(hi->hostname, &p[1], q - p - 1); in parse_hostspec() 228 hi->hostname[q - p - 1] = '\0'; in parse_hostspec() 233 } else if(strsep_copy(&p, ":", hi->hostname, strlen(spec) + 1) < 0) { in parse_hostspec() 239 hi->hostname[strcspn(hi->hostname, "/")] = '\0'; in parse_hostspec() 240 strlwr(hi->hostname); in parse_hostspec() 269 size_t hostnamelen = strlen(from->hostname); in _krb5_krbhost_info_move() 284 memcpy((*to)->hostname, from->hostname, hostnamelen + 1); in _krb5_krbhost_info_move() 297 strcmp(h->hostname, host->hostname) == 0) { in append_host_hostinfo() 325 char *hostname, size_t hostlen) in krb5_krbhst_format_string() argument [all …]
|
| /NextBSD/contrib/openpam/lib/libpam/ |
| HD | pam_start.c | 70 char hostname[HOST_NAME_MAX + 1]; in pam_start() local 79 if (gethostname(hostname, sizeof hostname) != 0) in pam_start() 80 strlcpy(hostname, "localhost", sizeof hostname); in pam_start() 81 if ((r = pam_set_item(ph, PAM_HOST, hostname)) != PAM_SUCCESS) in pam_start()
|
| /NextBSD/contrib/llvm/tools/lldb/source/Utility/ |
| HD | ModuleCache.cpp | 63 CreateHostSysRootModuleLink (const FileSpec &root_dir_spec, const char *hostname, const FileSpec &p… in CreateHostSysRootModuleLink() argument 66 JoinPath (root_dir_spec, hostname), platform_module_spec.GetPath ().c_str ()); in CreateHostSysRootModuleLink() 81 const char *hostname, in Put() argument 94 …const auto error = CreateHostSysRootModuleLink(root_dir_spec, hostname, module_spec.GetFileSpec(),… in Put() 102 const char *hostname, in Get() argument 125 …const auto error = CreateHostSysRootModuleLink(root_dir_spec, hostname, module_spec.GetFileSpec(),… in Get() 144 const char *hostname, in GetAndPut() argument 169 error = Get (root_dir_spec, hostname, module_spec, cached_module_sp, did_create_ptr); in GetAndPut() 180 error = Put (root_dir_spec, hostname, module_spec, tmp_download_file_spec); in GetAndPut() 185 return Get (root_dir_spec, hostname, module_spec, cached_module_sp, did_create_ptr); in GetAndPut()
|
| /NextBSD/lib/libc/net/ |
| HD | ether_addr.c | 69 ether_line(const char *l, struct ether_addr *e, char *hostname) in ether_line() argument 74 &o[4], &o[5], hostname); in ether_line() 140 ether_ntohost(char *hostname, const struct ether_addr *e) in ether_ntohost() argument 176 strcpy(hostname, local_host); in ether_ntohost() 190 ether_hostton(const char *hostname, struct ether_addr *e) in ether_hostton() argument 211 if (yp_match(yp_domain, "ethers.byname", hostname, in ether_hostton() 212 strlen(hostname), &result, &resultlen)) { in ether_hostton() 221 if (!strcmp(hostname, local_host)) { in ether_hostton()
|
| HD | eui64.c | 90 static int eui64_line(const char *l, struct eui64 *e, char *hostname, 98 eui64_line(const char *l, struct eui64 *e, char *hostname, size_t len) in eui64_line() argument 120 if (strlcpy(hostname, cur, len) <= len) in eui64_line() 219 eui64_ntohost(char *hostname, size_t len, const struct eui64 *id) in eui64_ntohost() argument 256 strcpy(hostname, local_host); in eui64_ntohost() 270 eui64_hostton(const char *hostname, struct eui64 *id) in eui64_hostton() argument 291 if (yp_match(yp_domain, "eui64.byname", hostname, in eui64_hostton() 292 strlen(hostname), &result, &resultlen)) { in eui64_hostton() 302 if (strcmp(hostname, local_host) == 0) { in eui64_hostton()
|
| /NextBSD/contrib/ntp/ntpd/ |
| HD | ntp_peer.c | 176 const char * hostname, in findexistingpeer_name() argument 189 if (p->hostname != NULL in findexistingpeer_name() 194 && !strcasecmp(p->hostname, hostname)) in findexistingpeer_name() 258 const char * hostname, in findexistingpeer() argument 264 if (hostname != NULL) in findexistingpeer() 265 return findexistingpeer_name(hostname, AF(addr), in findexistingpeer() 507 if (p->hostname != NULL) in free_peer() 508 free(p->hostname); in free_peer() 556 const char * hostname, in peer_config() argument 584 if (hostname != NULL && SOCK_UNSPEC(srcadr)) in peer_config() [all …]
|
| /NextBSD/bin/hostname/ |
| HD | hostname.c | 58 char *p, hostname[MAXHOSTNAMELEN]; in main() local 87 if (gethostname(hostname, (int)sizeof(hostname))) in main() 90 p = strchr(hostname, '.'); in main() 94 (void)printf("%s\n", hostname); in main()
|
| /NextBSD/contrib/gdb/gdb/ |
| HD | ser-tcp.c | 60 char *port_str, hostname[100]; in net_open() local 80 tmp = min (port_str - name, (int) sizeof hostname - 1); in net_open() 81 strncpy (hostname, name, tmp); /* Don't want colon */ in net_open() 82 hostname[tmp] = '\000'; /* Tie off host name */ in net_open() 86 if (!hostname[0]) in net_open() 87 strcpy (hostname, "localhost"); in net_open() 89 hostent = gethostbyname (hostname); in net_open() 92 fprintf_unfiltered (gdb_stderr, "%s: unknown host\n", hostname); in net_open()
|
| /NextBSD/tools/regression/rpcsec_gss/ |
| HD | rpctest.c | 87 char hostname[128], service[128+5]; in test_client() local 98 strlcpy(hostname, argv[1], sizeof(hostname)); in test_client() 100 gethostname(hostname, sizeof(hostname)); in test_client() 102 client = clnt_create(hostname, prog, vers, netid); in test_client() 113 strcat(service, hostname); in test_client() 135 hostname); in test_client() 284 char hostname[128]; in test_server() local 298 gethostname(hostname, sizeof(hostname));; in test_server() 299 snprintf(principal, sizeof(principal), "host@%s", hostname); in test_server()
|