/illumos-gate/usr/src/lib/libwrap/ |
H A D | eval.c | 8 * Routines for controlled evaluation of host names, user names, and so on. 43 * host name has the value STRING_PARANOID it means there was a name/address 64 char *eval_hostaddr(host) 65 struct host_info *host; 67 if (host->addr[0] == 0) { 68 strcpy(host->addr, unknown); 69 if (host->request->hostaddr != 0) 70 host->request->hostaddr(host); 72 return (host 133 char *host = eval_hostinfo(request->server); local [all...] |
H A D | socket.c | 11 * it provides methods to map a transport address to a printable host name 14 * The result from the hostname lookup method is STRING_PARANOID when a host 15 * pretends to have someone elses name, or when a host name is available but 54 * Speed up DNS lookups by terminating the host name with a dot. Should be 95 * Look up the client host address. Hal R. Brand <BRAND@addvax.llnl.gov> 96 * suggested how to get the client host info in case of UDP connections: 136 void sock_hostaddr(host) 137 struct host_info *host; 139 struct sockaddr_gen *sin = host->sin; 144 (void) inet_ntop(SGFAM(sin), SGADDRP(sin), host [all...] |
H A D | hosts_access.c | 10 * host (or domain) names, NIS (host) netgroup names, IP addresses (or 104 /* hosts_access - host access control facility */ 231 char *host; local 233 if ((host = split_at(tok + 1, '@')) == 0) { /* plain daemon */ 235 } else { /* daemon@host */ 237 && host_match(host, request->server)); 247 char *host; local 249 if ((host = split_at(tok + 1, '@')) == 0) { /* plain host */ [all...] |
/illumos-gate/usr/src/lib/librpcsvc/common/ |
H A D | rstat_simple.c | 33 rstat(host, statp) 34 char *host; 37 return (rpc_call(host, RSTATPROG, RSTATVERS_TIME, RSTATPROC_STATS, 43 havedisk(host) 44 char *host; 48 if (rpc_call(host, RSTATPROG, RSTATVERS_TIME, RSTATPROC_HAVEDISK,
|
H A D | rwallxdr.c | 45 rwall(host, msg) 46 char *host; 49 return (rpc_call(host, WALLPROG, WALLVERS, WALLPROC_WALL,
|
H A D | rusers_simple.c | 38 rusers3(host, uap) 39 char *host; 44 if (rpc_call(host, RUSERSPROG, RUSERSVERS_3, RUSERSPROC_NAMES, 53 if (rusers(host, &up) != 0) 109 rnusers(host) 110 char *host; 114 if (rpc_call(host, RUSERSPROG, RUSERSVERS_3, RUSERSPROC_NUM, 117 if (rpc_call(host, RUSERSPROG, RUSERSVERS_IDLE, RUSERSPROC_NUM, 126 rusers(host, up) 127 char *host; [all...] |
/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | sys_info.c | 41 char host[MAXHOSTNAMELEN + 1]; local 45 if (gethostname(host, sizeof (host)) == -1) { 50 ret_val = strdup(host);
|
/illumos-gate/usr/src/lib/libbc/libc/inet/ |
H A D | inet_makeaddr.c | 44 * Formulate an Internet address from network + host. Used in 48 inet_makeaddr(net, host) 49 int net, host; 55 addr = (net << IN_CLASSA_NSHIFT) | (host & IN_CLASSA_HOST); 57 addr = (net << IN_CLASSB_NSHIFT) | (host & IN_CLASSB_HOST); 59 addr = (net << IN_CLASSC_NSHIFT) | (host & IN_CLASSC_HOST);
|
/illumos-gate/usr/src/lib/libresolv2/common/inet/ |
H A D | inet_makeaddr.c | 47 * Formulate an Internet address from network + host. Used in 51 inet_makeaddr(net, host) 52 u_long net, host; 57 a.s_addr = (net << IN_CLASSA_NSHIFT) | (host & IN_CLASSA_HOST); 59 a.s_addr = (net << IN_CLASSB_NSHIFT) | (host & IN_CLASSB_HOST); 61 a.s_addr = (net << IN_CLASSC_NSHIFT) | (host & IN_CLASSC_HOST); 63 a.s_addr = net | host;
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | multi.awk.sh | 85 for (host in addr) { 86 if (index(addr[host], ",") == 0) 88 numaddr = split(addr[host], tmpaddr, ","); 92 if (namelist[addr[host]] == "") { 93 namelist[addr[host]] = tmpname[j]; 96 if (namelist[addr[host]] == tmpname[j]) { 99 if (index(namelist[addr[host]], tmpname[j]) == 0) { 100 namelist[addr[host]] = namelist[addr[host]] " " tmpname[j]; 111 namelist[addr[host]] [all...] |
/illumos-gate/usr/src/cmd/mailx/ |
H A D | hostname.c | 47 * Code to figure out what host we are on. 57 char host[64]; variable 60 * Initialize the network name of the current host. 71 nstrcpy(host, sizeof (host), fp); 74 nstrcpy(host, sizeof (host), name.nodename); 76 snprintf(domain, sizeof (domain), "%s%s", host, maildomain()); 82 gettext("Cannot find empty slot for dynamic host entry\n")); 85 np->nt_machine = host; [all...] |
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | inet_mkaddr.c | 46 * Formulate an Internet address from network + host. Used in 50 inet_makeaddr(ipaddr_t net, ipaddr_t host) argument 56 addr = (net << IN_CLASSA_NSHIFT) | (host & IN_CLASSA_HOST); 58 addr = (net << IN_CLASSB_NSHIFT) | (host & IN_CLASSB_HOST); 60 addr = (net << IN_CLASSC_NSHIFT) | (host & IN_CLASSC_HOST); 62 addr = net | host;
|
/illumos-gate/usr/src/cmd/sendmail/cf/sh/ |
H A D | makeinfo.sh | 84 host=`hostname` 86 host=`uname -n` 93 echo '#####' built by $user@$host on `date` 95 echo '#####' built automatically @$host on `date` 99 echo "define(\`__HOST__', $host)dnl"
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | dnssrv.c | 44 free(p->host); 63 char host[MAXDNAME], *h; local 87 sprintf(host, "%s.%s.%.*s", service, protocol, (int) realm->length, 99 h = host + strlen (host); 100 if ((h[-1] != '.') && ((h - host + 1) < sizeof(host))) 104 fprintf (stderr, "sending DNS SRV query for %s\n", host); 107 size = krb5int_dns_init(&ds, host, C_IN, T_SRV); 126 nlen = krb5int_dns_expand(ds, p, host, sizeo [all...] |
H A D | hst_realm.c | 35 Figures out the Kerberos realm names for host, filling in a 38 If host is NULL, the local host's realms are determined. 40 If there are no known realms for the host, the filled-in pointer is set 52 * this implementation only provides one realm per host, using the same 55 * Given a fully-qualified domain-style primary host name, 56 * return the name of the Kerberos realm for the host. 68 * host names should be in the usual form (e.g. FOO.BAR.BAZ) 96 char host[MAXDNAME], *h; local 105 if (strlen (prefix) >= sizeof(host) 200 krb5_get_host_realm(krb5_context context, const char *host, char ***realmsp) argument 346 char local_host[MAXDNAME+1], host[MAXDNAME+1]; local 420 krb5int_clean_hostname(krb5_context context, const char *host, char *local_host, size_t lhsize) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | replica.h | 42 char *host; member in struct:replica
|
/illumos-gate/usr/src/cmd/tcpd/ |
H A D | scaffold.c | 48 struct hostent host; member in struct:hostent_block 64 memset((char *) &hb->host, 0, sizeof(hb->host)); 65 hb->host.h_addrtype = hp->h_addrtype;; 66 hb->host.h_length = hp->h_length; 67 hb->host.h_addr_list = hb->addr_list; 68 hb->host.h_addr_list[count] = 0; 69 data = (char *) (hb->host.h_addr_list + count + 1); 72 hb->host.h_addr_list[count] = data + hp->h_length * count; 73 memcpy(hb->host [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | whois.c | 80 static struct addrinfo *gethostinfo(char const *host, int exit_on_error); 88 const char *country, *host; local 92 country = host = qnichost = NULL; 97 host = ANICHOST; 100 host = PNICHOST; 103 host = ABUSEHOST; 109 host = FNICHOST; 112 host = GNICHOST; 115 host = optarg; 118 host 219 gethostinfo(char const *host, int exit_on_error) argument 266 char *host, *nhost, *p; local [all...] |
/illumos-gate/usr/src/cmd/rexd/ |
H A D | where_main.c | 49 char host[MAXPATHLEN]; local 74 where(pn, host, fsname, within); 77 printf("%s:%s%s\n", host, fsname, within); 93 setproctitle(user, host) 94 char *user, *host; 100 strlen(user)+strlen(host)+3 > (LastArgv - tohere)) 103 sprintf(tohere, "%s@%s", user, host);
|
/illumos-gate/usr/src/cmd/hostid/smf/ |
H A D | svc-hostid | 39 host=`/usr/bin/hostid` 41 r=`echo "0x${host}" | /usr/bin/tr 'P-~!-O' '!-OP-~'`
|
/illumos-gate/usr/src/lib/libbc/libc/net/ |
H A D | getrpcport.c | 35 getrpcport(char *host, int prognum, int versnum, int proto) argument 40 if ((hp = gethostbyname(host)) == NULL)
|
/illumos-gate/usr/src/lib/pam_modules/rhosts_auth/ |
H A D | rhosts_auth.c | 54 char *host = NULL, *lusername = NULL; local 71 if (pam_get_item(pamh, PAM_RHOST, (void **) &host) != PAM_SUCCESS) 80 if (host == NULL || *host == '\0') 85 "rhosts authenticate: user = %s, host = %s", 86 lusername, host); 98 return (ruserok(host, is_superuser, rusername, lusername)
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | getipnodeby.c | 288 nssout.nss.host.hent = buf6->result; 289 nssout.nss.host.herrno_p = error_num; 323 nssin.arg.nss.host.name = name; 324 nssin.arg.nss.host.buf = buf4->buffer; 325 nssin.arg.nss.host.buflen = buf4->buflen; 326 nssout.nss.host.hent = buf4->result; 327 nssout.nss.host.herrno_p = error_num; 513 nssin.arg.nss.host.addr = (const char *)tmpbuf; 515 nssin.arg.nss.host.addr = (const char *)addr6; 517 nssin.arg.nss.host 837 struct hostent *host; local 1071 struct hostent *host; local [all...] |
H A D | gethostbyname_r.c | 127 nssin.arg.nss.host.name = nam; 128 nssin.arg.nss.host.buf = buffer; 129 nssin.arg.nss.host.buflen = buflen; 131 nssout.nss.host.hent = result; 132 nssout.nss.host.herrno_p = h_errnop; 143 return (nssout.nss.host.hent); 170 nssin.arg.nss.host.addr = addr; 171 nssin.arg.nss.host.len = length; 172 nssin.arg.nss.host.type = type; 173 nssin.arg.nss.host [all...] |
/illumos-gate/usr/src/cmd/tip/ |
H A D | remote.c | 17 * Attributes to be gleened from remote host description 33 getremcap(char *host) argument 41 if ((stat = rgetent(tbuf, host, sizeof (tbuf))) <= 0) { 43 host[0] == '/' && access(DV = host, R_OK | W_OK) == 0) { 48 if (host[0] == '/') 51 HO = host; 65 "tip: unknown host %s\n" : 66 "tip: can't open host description file\n", host); 150 getremote(char *host) argument [all...] |