/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/ |
H A D | hostname.pl | 11 sub hostname subroutine 13 local(*P,@tmp,$hostname,$_); 14 if (open(P,"hostname 2>&1 |") && (@tmp = <P>) && close(P)) 16 chop($hostname = $tmp[$#tmp]); 20 chop($hostname = $tmp[$#tmp]); 24 die "$0: Cannot get hostname from 'hostname' or 'uname -n'\n"; 28 $hostname;
|
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/Sys/Hostname/ |
H A D | Hostname.pm | 11 our @EXPORT = qw/ hostname /; 30 sub hostname { subroutine 46 # TCP/IP stack to advertise the hostname via a logical name. (Are 53 # method 4 - does hostname happen to work? 54 my($rslt) = `hostname`; 65 chomp($host = `hostname 2> NUL`) unless defined $host; 78 # XXX: is it such a good idea to return hostname untainted? 96 # method 3 - trusty old hostname command 100 $host = `(hostname) 2>/dev/null`; # bsdish 139 Sys::Hostname - Try every conceivable way to get hostname [all...] |
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Net/ |
H A D | Domain.pm | 17 @EXPORT_OK = qw(hostname hostdomain hostfqdn domainname); 23 # Try every conceivable way to get hostname. 47 chomp ($host = `hostname`); 85 # trusty old hostname command 87 chop($host = `(hostname) 2>/dev/null`); # BSD'ish 143 # just try hostname and system calls 280 sub hostname { subroutine 302 use Net::Domain qw(hostname hostfqdn hostdomain); 317 =item hostname () 323 Returns the remainder of the FQDN after the I<hostname> ha [all...] |
/osnet-11/usr/src/lib/libslp/clib/ |
H A D | SLPGetRefreshInterval.c | 53 char hostname[MAXHOSTNAMELEN]; /* name of this host */ local 65 (void) gethostname(hostname, MAXHOSTNAMELEN); 68 hostname,
|
/osnet-11/usr/src/lib/libnsl/yp/ |
H A D | yp_rsvd.c | 35 __yp_clnt_create_rsvdport_netid_req(const char *hostname, rpcprog_t prog, argument 53 return (clnt_create(hostname, prog, vers, nt)); 73 if (!rpcb_getaddr(prog, vers, nconf, svcaddr, hostname)) { 94 __yp_clnt_create_rsvdport(const char *hostname, rpcprog_t prog, argument 100 ret = __yp_clnt_create_rsvdport_netid_req(hostname, prog, 103 ret = __yp_clnt_create_rsvdport_netid_req(hostname, 107 return (__yp_clnt_create_rsvdport_netid_req(hostname, prog,
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | mk_req.c | 55 krb5_flags ap_req_options, char *service, char *hostname, 63 retval = krb5_sname_to_principal(context, hostname, service, 54 krb5_mk_req(krb5_context context, krb5_auth_context *auth_context, krb5_flags ap_req_options, char *service, char *hostname, krb5_data *in_data, krb5_ccache ccache, krb5_data *outbuf) argument
|
/osnet-11/usr/src/lib/libwrap/ |
H A D | eval.c | 14 * results are really needed. Examples are hostname lookups and double 16 * given the value "unknown" ("paranoid" in case of hostname problems). 18 * When ALWAYS_HOSTNAME is off, hostname lookup is done only when required by 82 if (host->request->hostname != 0) 83 host->request->hostname(host); 93 char *hostname; local 99 hostname = eval_hostname(host); 100 if (HOSTNAME_KNOWN(hostname)) {
|
/osnet-11/usr/src/lib/libntsvcs/common/ |
H A D | wkssvc_svc.c | 74 char hostname[MAXHOSTNAMELEN]; local 86 if ((rc = smb_getnetbiosname(hostname, MAXHOSTNAMELEN)) == 0) { 87 name = NDR_STRDUP(mxa, hostname);
|
/osnet-11/usr/src/lib/nsswitch/files/common/ |
H A D | ether_addr.c | 83 char hostname[MAXHOSTNAMELEN]; local 91 argp->buf.buffer = hostname;
|
/osnet-11/usr/src/lib/libsocket/inet/ |
H A D | rexec.c | 67 static char hostname[MAXHOSTNAMELEN]; local 93 (void) strlcpy(hostname, res->ai_canonname, MAXHOSTNAMELEN); 94 *ahost = hostname;
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | sn2princ.c | 31 * Convert a hostname and service name to a principal in the "standard" 106 krb5_sname_to_principal(krb5_context context, const char *hostname, const char *sname, krb5_int32 type, krb5_principal *ret_princ) argument 113 printf("krb5_sname_to_principal(host=%s, sname=%s, type=%d)\n",hostname,sname,type); 120 /* if hostname is NULL, use local hostname */ 121 if (! hostname) { 125 hostname = localname; 132 /* copy the hostname into non-volatile storage */ 159 hp = res_getipnodebyname(hostname, addr_family, 0, &err); 162 printf("sname_to_princ: probably punting due to bad hostname o [all...] |
/osnet-11/usr/src/lib/nsswitch/ldap/common/ |
H A D | getbootparams.c | 99 * adds hostname as a boot param and it should be filtered. 138 char hostname[3 * MAXHOSTNAMELEN]; local 144 if (_ldap_filter_name(hostname, argp->key.name, sizeof (hostname)) != 0) 148 _F_GETBOOTPARAMBYNAME, hostname); 153 _F_GETBOOTPARAMBYNAME_SSD, hostname);
|
H A D | getether.c | 105 * getbyhost gets an ethernet address by hostname. This function 106 * constructs an ldap search filter using the hostname invocation 121 char hostname[3 * MAXHOSTNAMELEN]; local 128 if (_ldap_filter_name(hostname, argp->key.name, sizeof (hostname)) != 0) 132 _F_GETETHERBYHOST, hostname); 138 _F_GETETHERBYHOST_SSD, hostname);
|
H A D | gethostent6.c | 76 * getbyname gets a struct hostent by hostname. This function constructs 87 char hostname[3 * MAXHOSTNAMELEN]; local 95 if (_ldap_filter_name(hostname, argp->key.ipnode.name, 96 sizeof (hostname)) != 0) 100 _F_GETHOSTS6BYNAME, hostname); 104 _F_GETHOSTS6BYNAME_SSD, hostname); 114 if (DOTTEDSUBDOMAIN(hostname)) { 123 (void) strcpy(hname, hostname); 136 _F_GETHOSTS6DOTTEDBYNAME, hostname, host); 141 _F_GETHOSTS6DOTTEDBYNAME_SSD, hostname, hos [all...] |
/osnet-11/usr/src/lib/libsmbns/common/ |
H A D | libsmbns.h | 44 char *hostname; /* fully qualified hostname */ member in struct:smb_ads_handle 51 char name[MAXHOSTNAMELEN]; /* fully qualified hostname */
|
H A D | smbns_kpasswd.c | 609 char hostname[MAXHOSTNAMELEN]; local 618 (void) smb_gethostname(hostname, MAXHOSTNAMELEN, SMB_CASE_LOWER); 640 pn->p_svc, hostname, dns_domain);
|
/osnet-11/usr/src/lib/libldap4/common/ |
H A D | open.c | 71 * ld = ldap_open( hostname, port ); 221 * default to localhost when hostname is not specified 222 * or if null string is passed as hostname 257 char *curhost, hostname[ 2*MAXHOSTNAMELEN ]; local 269 (void) strncpy(hostname, p, q - p); 270 hostname[ q - p ] = '\0'; 271 curhost = hostname; 282 if (curhost != hostname) { 284 (void) strcpy(hostname, curhost); 285 r = hostname [all...] |
/osnet-11/usr/src/lib/libnsl/rpc/ |
H A D | netname.c | 258 * - - unix.m@y.z (hostname=m) 259 * - a.b unix.m@a.b (hostname=m) 260 * - - unix.m@y.z (hostname=m.w.x) 261 * - a.b unix.m@a.b (hostname=m.w.x) 272 char hostname[MAXHOSTNAMELEN + 1]; local 281 (void) strncpy(hostname, nis_local_host(), sizeof (hostname)); 282 p = (char *)strchr(hostname, '.'); 292 if (len >= sizeof (hostname)) { 295 (void) strcpy(hostname, hos [all...] |
/osnet-11/usr/src/lib/libadt_jni/com/sun/audit/ |
H A D | AuditSession.java | 68 String hostname, int context) 205 String hostname, int context) { 210 hostname, context); 66 sessionAttr(byte[] sessionHandle, int euid, int egid, int ruid, int rgid, String hostname, int context) argument 204 setUser(int euid, int egid, int ruid, int rgid, String hostname, int context) argument
|
/osnet-11/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_set_med.c | 89 char *hostname; local 110 if (clnt_med_hostname(nm, &hostname, ep)) 114 if (strcmp(nm, hostname) != 0) { 115 Free(hostname); 122 if (strcmp(nodename, hostname) != 0) { 123 Free(hostname); 129 Free(hostname);
|
/osnet-11/usr/src/lib/pam_modules/list/ |
H A D | list.c | 89 char hostname[MAXHOSTNAMELEN]; local 217 if (gethostname(hostname, MAXHOSTNAMELEN) == 0) { 218 rhost = hostname;
|
/osnet-11/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_ia_open.c | 510 char hostname[NAMELEN]; local 520 * <hostname>-ib<index> 526 rc = gethostname(hostname, NAMELEN); 530 for (str = hostname; *str && *str != '.'; ) { 536 dapl_os_strcat(hostname, "-ib"); 538 dapl_os_strcat(hostname, adapter_num); 540 rc = dapls_osd_getaddrinfo(hostname, &addr); 544 dapli_setup_dummy_addr(hca_ptr, hostname);
|
/osnet-11/usr/src/lib/librdc/common/ |
H A D | netaddrs.c | 146 self_check(char *hostname) argument 163 * Get the IP address for hostname 173 hs.h_host = hostname; 327 * Get the network address on "hostname" for program "prog" 338 get_the_addr(char *hostname, ulong_t prog, ulong_t vers, argument 360 hostname) == FALSE) { 398 hp = getipnodebyname(hostname, AF_INET6, 0, &errnum); 402 hp = getipnodebyname(hostname, AF_INET, 0, &errnum); 409 "Could not find host %s\n"), hostname); 433 hp = gethostbyname(hostname); 518 get_addr(char *hostname, ulong_t prog, ulong_t vers, struct netconfig **nconfp, char *proto, char *srvport, struct t_info *tinfo, int portmap) argument [all...] |
/osnet-11/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_data.c | 305 local_hostname_length(const char *hostname) { argument 310 len_host = strlen(hostname); 313 !strcasecmp(hostname + len_host - len_domain, _res.defdname) && 314 hostname[len_host - len_domain - 1] == '.')
|
/osnet-11/usr/src/lib/libsmb/common/ |
H A D | smb_sam.c | 110 /* Only Netbios hostname is accepted */ 208 char hostname[MAXHOSTNAMELEN]; local 278 if (smb_getnetbiosname(hostname, MAXHOSTNAMELEN) == 0) 279 account->a_domain = strdup(hostname);
|