| /src/external/bsd/am-utils/dist/scripts/ |
| 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"
|
| /src/external/gpl2/xcvs/dist/lib/ |
| 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 61 SunOS 5.5's gethostname whereby it NUL-terminates HOSTNAME 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); [all...] |
| /src/bin/hostname/ |
| Makefile | 4 PROG= hostname
|
| hostname.c | 1 /* $NetBSD: hostname.c,v 1.21 2014/02/13 12:00:29 elric Exp $ */ 40 static char sccsid[] = "@(#)hostname.c 8.2 (Berkeley) 4/28/95"; 42 __RCSID("$NetBSD: hostname.c,v 1.21 2014/02/13 12:00:29 elric 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...] |
| /src/usr.sbin/bootp/common/ |
| lookup.h | 7 extern u_char *lookup_hwa(char *hostname, int htype); 8 extern int lookup_ipa(char *hostname, u_int32 *addr);
|
| lookup.c | 35 lookup_hwa(char *hostname, int htype) 46 if (ether_hostton(hostname, &ea)) { 48 hostname); 69 lookup_ipa(char *hostname, u_int32 *result) 72 hp = gethostbyname(hostname);
|
| /src/external/bsd/libevent/dist/sample/ |
| hostcheck.h | 28 int Curl_cert_hostcheck(const char *match_pattern, const char *hostname);
|
| hostcheck.c | 156 * Match a hostname against a wildcard pattern. 164 static int hostmatch(const char *hostname, const char *pattern) 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) 209 !hostname || !*hostname) /* sanity check * [all...] |
| 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);
|
| 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) { 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) { 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 in th [all...] |
| /src/external/bsd/ntp/dist/sntp/ |
| 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);
|
| 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") order to find duplicate [all...] |
| /src/usr.sbin/ypserv/common/ |
| 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...] |
| /src/external/bsd/tre/dist/tests/ |
| build-run.sh | 16 hostname=`hostname` 17 tmpdir=build-tmp-$dir-$hostname-$$
|
| build-tests.sh | 9 hostname=`hostname` 29 echo "$hostname: Configure options \"$opts\"..." >&2
|
| /src/external/bsd/openpam/dist/lib/libpam/ |
| 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);
|
| /src/crypto/external/bsd/heimdal/dist/lib/krb5/ |
| sock_principal.c | 49 char hostname[NI_MAXHOST]; local 56 ret = getnameinfo (sa, salen, hostname, sizeof(hostname), NULL, 0, 0); 65 hostname,
|
| /src/external/bsd/openldap/dist/contrib/ldapc++/src/ |
| LDAPRebind.h | 25 virtual LDAPRebindAuth* getRebindAuth(const std::string& hostname,
|
| /src/libexec/httpd/testsuite/ |
| html_cmp | 20 h=`hostname || uname -n`
|
| /src/usr.bin/talk/ |
| 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;
|
| /src/external/bsd/ipf/dist/lib/ |
| printfraginfo.c | 30 PRINTF(" %s -> ", hostname(family, &ifr->ipfr_src)); 39 hostname(family, &ifr->ipfr_dst), ifr->ipfr_id,
|
| /src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/ |
| 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" );
|
| /src/external/ibm-public/postfix/dist/src/util/ |
| 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) 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...] |
| /src/lib/libc/compat/net/ |
| compat_ns_addr.c | 60 char *hostname, *socketname, *cp; local 74 if ((hostname = strchr(buf, '#')) != NULL) 77 hostname = strchr(buf, '.'); 79 ((hostname && cp < hostname) || (hostname == 0))) { 80 hostname = cp; 85 if (hostname) 86 *hostname++ = 0; 90 if (hostname == 0 [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/forward/ns4/ |
| named-tls.conf.j2 | 21 tls tls-forward-secrecy-remote-hostname { 24 remote-hostname "srv02.crt01.example.nil"; 27 tls tls-forward-secrecy-bad-remote-hostname { 30 remote-hostname "srv02-bad.crt01.example.nil"; 70 forwarders port @EXTRAPORT1@ tls tls-forward-secrecy-remote-hostname { 10.53.0.2; }; 76 forwarders port @EXTRAPORT1@ tls tls-forward-secrecy-bad-remote-hostname { 10.53.0.2; };
|