Searched refs:hostname (Results 1 - 25 of 787) sorted by relevance

1234567891011>>

/netbsd-current/external/bsd/am-utils/dist/scripts/
H A Dwait4amd.in3 # 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 Dxgethostname.c1 /* 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 DMakefile4 PROG= hostname
H A Dhostname.c1 /* $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 Dlookup.h7 extern u_char *lookup_hwa(char *hostname, int htype);
8 extern int lookup_ipa(char *hostname, u_int32 *addr);
H A Dlookup.c35 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 Dhostcheck.h28 int Curl_cert_hostcheck(const char *match_pattern, const char *hostname);
H A Dhostcheck.c156 * 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 Dopenssl_hostname_validation.h27 * 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 Dopenssl_hostname_validation.c27 * 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 Dkod_management.h9 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 Dkod_management.c25 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 Dlocalhostname.c52 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 DPlatformCommon.h18 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 Dbuild-tests.sh9 hostname=`hostname`
29 echo "$hostname: Configure options \"$opts\"..." >&2
H A Dbuild-run.sh16 hostname=`hostname`
17 tmpdir=build-tmp-$dir-$hostname-$$
/netbsd-current/external/bsd/openpam/dist/lib/libpam/
H A Dpam_start.c68 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 Dsock_principal.c49 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 DLDAPRebind.h25 virtual LDAPRebindAuth* getRebindAuth(const std::string& hostname,
/netbsd-current/external/bsd/ipf/dist/lib/
H A Dprintfraginfo.c30 PRINTF(" %s -> ", hostname(family, &ifr->ipfr_src));
39 hostname(family, &ifr->ipfr_dst), ifr->ipfr_id,
/netbsd-current/usr.bin/talk/
H A Dget_names.c56 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 Dhtml_cmp20 h=`hostname || uname -n`
/netbsd-current/sys/external/bsd/vchiq/dist/interface/vchiq_arm/
H A Dvchiq_genversion53 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 Dinet_addr_host.c11 /* 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 Dcompat_ns_addr.c59 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...]

Completed in 229 milliseconds

1234567891011>>