/netbsd-current/external/bsd/am-utils/dist/scripts/ |
H A D | wait4amd.in | 3 # usage: wait4amd <hostname> [<command> [args ...]] 4 # If only hostname is supplied, command defaults to rsh $hostname 12 echo "Usage: wait4amd <hostname> [<command> [args ...]]" 15 hostname=$1 27 amq -h $hostname > /dev/null 2>&1 34 echo "Amd is active on host $hostname!" 38 cmd="rlogin $hostname"
|
/netbsd-current/external/gpl2/xcvs/dist/lib/ |
H A D | xgethostname.c | 1 /* xgethostname.c -- return current hostname with unlimited length 49 /* Return the current hostname in malloc'd storage. 55 char *hostname = NULL; local 65 hostname = x2realloc (hostname, &size); 67 hostname[size_1 - 1] = '\0'; 70 if (gethostname (hostname, size_1) == 0) 72 if (! hostname[size_1 - 1]) 80 free (hostname); 86 return hostname; [all...] |
/netbsd-current/bin/hostname/ |
H A D | Makefile | 4 PROG= hostname
|
H A D | hostname.c | 1 /* $NetBSD: hostname.c,v 1.17 2011/08/29 14:51:18 joerg Exp $ */ 40 static char sccsid[] = "@(#)hostname.c 8.2 (Berkeley) 4/28/95"; 42 __RCSID("$NetBSD: hostname.c,v 1.17 2011/08/29 14:51:18 joerg Exp $"); 60 char *p, hostname[MAXHOSTNAMELEN + 1]; local 83 if (gethostname(hostname, sizeof(hostname))) 85 hostname[sizeof(hostname) - 1] = '\0'; 86 if (sflag && (p = strchr(hostname, '.'))) 88 (void)printf("%s\n", hostname); [all...] |
/netbsd-current/usr.sbin/bootp/common/ |
H A D | lookup.h | 7 extern u_char *lookup_hwa(char *hostname, int htype); 8 extern int lookup_ipa(char *hostname, u_int32 *addr);
|
H A D | lookup.c | 35 lookup_hwa(char *hostname, int htype) argument 46 if (ether_hostton(hostname, &ea)) { 48 hostname); 69 lookup_ipa(char *hostname, u_int32 *result) argument 72 hp = gethostbyname(hostname);
|
/netbsd-current/external/bsd/libevent/dist/sample/ |
H A D | hostcheck.h | 28 int Curl_cert_hostcheck(const char *match_pattern, const char *hostname);
|
H A D | hostcheck.c | 156 * Match a hostname against a wildcard pattern. 164 static int hostmatch(const char *hostname, const char *pattern) argument 171 return Curl_raw_equal(pattern, hostname) ? 184 return Curl_raw_equal(pattern, hostname) ? 187 hostname_label_end = strchr(hostname, '.'); 193 label of the hostname is at least as large as the left-most label 195 if(hostname_label_end - hostname < pattern_label_end - pattern) 200 return Curl_raw_nequal(pattern, hostname, prefixlen) && 206 int Curl_cert_hostcheck(const char *match_pattern, const char *hostname) argument 209 !hostname || !*hostnam [all...] |
H A D | openssl_hostname_validation.h | 27 * Helper functions to perform basic hostname validation using OpenSSL. 47 * Validates the server's identity by looking for the expected hostname in the 57 HostnameValidationResult validate_hostname(const char *hostname, const X509 *server_cert);
|
H A D | openssl_hostname_validation.c | 27 * Helper functions to perform basic hostname validation using OpenSSL. 58 * Tries to find a match for hostname in the certificate's Common Name field. 65 static HostnameValidationResult matches_common_name(const char *hostname, const X509 *server_cert) { argument 95 // Compare expected hostname with the CN 96 if (Curl_cert_hostcheck(common_name_str, hostname) == CURL_HOST_MATCH) { 106 * Tries to find a match for hostname in the certificate's Subject Alternative Name extension. 113 static HostnameValidationResult matches_subject_alternative_name(const char *hostname, const X509 *server_cert) { argument 139 else { // Compare expected hostname with the DNS name 140 if (Curl_cert_hostcheck(dns_name, hostname) 155 * Validates the server's identity by looking for the expected hostname i 165 validate_hostname(const char *hostname, const X509 *server_cert) argument [all...] |
/netbsd-current/external/bsd/ntp/dist/sntp/ |
H A D | kod_management.h | 9 char hostname[255]; member in struct:kod_entry 14 int search_entry(const char *hostname, struct kod_entry **dst); 15 void add_entry(const char *hostname, const char *type); 16 void delete_entry(const char *hostname, const char *type);
|
H A D | kod_management.c | 25 const char *hostname, 32 if (!strcmp(kod_db[a]->hostname, hostname)) 44 if (!strcmp(kod_db[a]->hostname, hostname)) { 55 const char * hostname, 66 strlcpy(pke->hostname, hostname, sizeof(pke->hostname)); 69 * insert in address ("hostname") orde 24 search_entry( const char *hostname, struct kod_entry **dst ) argument 54 add_entry( const char * hostname, const char * type ) argument 92 delete_entry( const char * hostname, const char * type ) argument [all...] |
/netbsd-current/usr.sbin/ypserv/common/ |
H A D | localhostname.c | 52 char hostname[MAXHOSTNAMELEN + 1]; local 55 if (gethostname(hostname, sizeof(hostname))) 57 hostname[sizeof(hostname) - 1] = '\0'; 62 * If hostname appears to be fully-qualified, 65 if (strchr(hostname, '.')) { 66 strlcpy(buf, hostname, buflen); 77 error = getaddrinfo(hostname, NULL, &hints, &res); 79 errx(1, "getaddrinfo(%s) failed: %s", hostname, [all...] |
/netbsd-current/external/apache2/mDNSResponder/dist/mDNSShared/ |
H A D | PlatformCommon.h | 18 extern void ReadDDNSSettingsFromConfFile(mDNS *const m, const char *const filename, domainname *const hostname, domainname *const domain, mDNSBool *DomainDiscoveryDisabled);
|
/netbsd-current/external/bsd/tre/dist/tests/ |
H A D | build-tests.sh | 9 hostname=`hostname` 29 echo "$hostname: Configure options \"$opts\"..." >&2
|
H A D | build-run.sh | 16 hostname=`hostname` 17 tmpdir=build-tmp-$dir-$hostname-$$
|
/netbsd-current/external/bsd/openpam/dist/lib/libpam/ |
H A D | pam_start.c | 68 char *hostname = NULL; local 86 if ((hostname = malloc(hostname_size)) == NULL) 88 if (gethostname(hostname, hostname_size) != 0) 89 strlcpy(hostname, "localhost", hostname_size); 90 if ((r = pam_set_item(ph, PAM_HOST, hostname)) != PAM_SUCCESS) 98 free(hostname); 103 free(hostname);
|
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/krb5/ |
H A D | sock_principal.c | 49 char hostname[NI_MAXHOST]; local 56 ret = getnameinfo (sa, salen, hostname, sizeof(hostname), NULL, 0, 0); 65 hostname,
|
/netbsd-current/external/bsd/openldap/dist/contrib/ldapc++/src/ |
H A D | LDAPRebind.h | 25 virtual LDAPRebindAuth* getRebindAuth(const std::string& hostname,
|
/netbsd-current/external/bsd/ipf/dist/lib/ |
H A D | printfraginfo.c | 30 PRINTF(" %s -> ", hostname(family, &ifr->ipfr_src)); 39 hostname(family, &ifr->ipfr_dst), ifr->ipfr_id,
|
/netbsd-current/usr.bin/talk/ |
H A D | get_names.c | 56 char hostname[MAXHOSTNAMELEN + 1]; local 78 (void)estrlcpy(hostname, cp, sizeof(hostname)); 80 if (gethostname(hostname, sizeof(hostname)) == -1) 82 hostname[sizeof(hostname) - 1] = '\0'; 84 my_machine_name = hostname;
|
/netbsd-current/libexec/httpd/testsuite/ |
H A D | html_cmp | 20 h=`hostname || uname -n`
|
/netbsd-current/sys/external/bsd/vchiq/dist/interface/vchiq_arm/ |
H A D | vchiq_genversion | 53 my $hostname = `hostname`; 54 $hostname =~ s/[ \r\n]*$//; # chomp may not be enough (cygwin). 55 $hostname =~ s/^[ \r\n]*//; # chomp may not be enough (cygwin). 63 VC_DEBUG_DECLARE_STRING_VAR( ${prefix}_build_hostname, "$hostname" );
|
/netbsd-current/external/ibm-public/postfix/dist/src/util/ |
H A D | inet_addr_host.c | 11 /* int inet_addr_host(addr_list, hostname) 13 /* const char *hostname; 67 int inet_addr_host(INET_ADDR_LIST *addr_list, const char *hostname) argument 88 if (*hostname == 0) { 91 } else if (*hostname == '[' 92 && hostname[(hostnamelen = strlen(hostname)) - 1] == ']') { 93 hname = mystrndup(hostname + 1, hostnamelen - 2); 96 hname = hostname; 109 myname, res->ai_family, hostname); [all...] |
/netbsd-current/lib/libc/compat/net/ |
H A D | compat_ns_addr.c | 59 char *hostname, *socketname, *cp; local 73 if ((hostname = strchr(buf, '#')) != NULL) 76 hostname = strchr(buf, '.'); 78 ((hostname && cp < hostname) || (hostname == 0))) { 79 hostname = cp; 84 if (hostname) 85 *hostname++ = 0; 89 if (hostname [all...] |