/titanic_50/usr/src/lib/libresolv2/common/irs/ |
H A D | gethostent_r.c | 42 struct hostent *he = gethostbyname(name); in gethostbyname_r() local 52 if (he == NULL || (n = copy_hostent(he, hptr, HOST_R_COPY)) != 0) in gethostbyname_r() 59 if (he == NULL) in gethostbyname_r() 62 return (copy_hostent(he, hptr, HOST_R_COPY)); in gethostbyname_r() 69 struct hostent *he = gethostbyaddr(addr, len, type); in gethostbyaddr_r() local 79 if (he == NULL || (n = copy_hostent(he, hptr, HOST_R_COPY)) != 0) in gethostbyaddr_r() 86 if (he == NULL) in gethostbyaddr_r() 89 return (copy_hostent(he, hptr, HOST_R_COPY)); in gethostbyaddr_r() 101 struct hostent *he = gethostent(); in gethostent_r() local 111 if (he == NULL || (n = copy_hostent(he, hptr, HOST_R_COPY)) != 0) in gethostent_r() [all …]
|
H A D | gethostent.c | 276 struct hostent he, *he1 = NULL, *he2 = NULL, *he3; in getipnodebyname() local 315 DE_CONST(name, he.h_name); in getipnodebyname() 316 he.h_addr_list = addr_list; in getipnodebyname() 317 he.h_addr_list[0] = (v4 == 1) ? (char *)&in4 : (char *)&in6; in getipnodebyname() 318 he.h_addr_list[1] = NULL; in getipnodebyname() 319 he.h_aliases = aliases; in getipnodebyname() 320 he.h_aliases[0] = NULL; in getipnodebyname() 321 he.h_length = (v4 == 1) ? INADDRSZ : IN6ADDRSZ; in getipnodebyname() 322 he.h_addrtype = (v4 == 1) ? AF_INET : AF_INET6; in getipnodebyname() 323 return (copyandmerge(&he, NULL, af, error_num)); in getipnodebyname() [all …]
|
H A D | irpmarshall.c | 2126 struct hostent he, *hp; in main() local 2131 if (irp_unmarshall_ho(&he, argv[1]) != 0) { in main() 2136 printf("Host: \"%s\"\nAliases:", he.h_name); in main() 2137 for (i = 0 ; he.h_aliases[i] != NULL ; i++) in main() 2138 printf("\n\t\t\"%s\"", he.h_aliases[i]); in main() 2140 ADDR_T_STR(he.h_addrtype)); in main() 2141 printf("Length: %d\nAddresses:", he.h_length); in main() 2142 for (i = 0 ; he.h_addr_list[i] != 0 ; i++) { in main() 2143 inet_ntop(he.h_addrtype, he.h_addr_list[i], in main() 2149 irp_marshall_ho(&he, &b, &len); in main()
|
/titanic_50/usr/src/lib/nsswitch/dns/common/ |
H A D | gethostent6.c | 284 struct hostent *he = NULL; local 303 he = _nss_dns_gethostbyname2(&argp->h_errno, 305 if (he != NULL) { 311 v6Name = cloneName(he, &converr); 318 v6Addrs = cloneAddrList(he, 0, &converr); 327 v6Aliases = cloneAliasList(he, 0, &converr); 356 ((flags & AI_V4MAPPED) && he == NULL)))) 357 he = _gethostbyname(&argp->h_errno, argp->key.ipnode.name); 359 he = NULL; 362 if (he != NULL) { [all …]
|
H A D | gethostent.c | 137 struct hostent *he; local 145 he = _gethostbyname(&argp->h_errno, argp->key.name); 146 if (he != NULL) { 153 ret = ent2str(he, a, AF_INET); 157 ret = ent2result(he, a, AF_INET); 197 struct hostent *he; local 219 he = _gethostbyaddr(&argp->h_errno, addrp, addrlen, af); 221 if (he != NULL) { 227 ret = ent2str(he, a, argp->key.hostaddr.type); 229 ret = ent2result(he, a, argp->key.hostaddr.type);
|
H A D | dns_common.c | 106 ent2result(he, argp, af_type) in ent2result() argument 107 struct hostent *he; in ent2result() 129 len = strlen(he->h_name) + 1; 133 (void) memcpy(host->h_name, he->h_name, len); 141 ret = dns_netdb_aliases(he->h_addr_list, host->h_addr_list, 147 ret = dns_netdb_aliases(he->h_aliases, host->h_aliases, 154 if (he->h_addrtype == AF_INET && af_type == AF_INET6) { 155 ret = dns_netdb_aliases(he->h_addr_list, 159 ret = dns_netdb_aliases(he->h_addr_list, 167 ret = dns_netdb_aliases(he->h_aliases, host->h_aliases,
|
/titanic_50/usr/src/lib/print/libipp-listener/common/ |
H A D | print-job.c | 114 struct hostent *he; in ipp_print_job() local 121 if ((he = getipnodebyaddr((const char *)&peer.sin_addr, in ipp_print_job() 134 if (is_localhost(he->h_name) != 0) in ipp_print_job() 140 else if (he->h_name != NULL) in ipp_print_job() 145 he->h_name); in ipp_print_job()
|
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | def_realm.c | 86 struct hostent *he = NULL; in krb5int_address_get_realm() local 90 he = res_gethostbyaddr((char*)(&sa2sin(addr)->sin_addr), in krb5int_address_get_realm() 94 he = res_gethostbyaddr( in krb5int_address_get_realm() 100 if (he) { in krb5int_address_get_realm() 102 krb5int_fqdn_get_realm(context, he->h_name, in krb5int_address_get_realm()
|
/titanic_50/usr/src/cmd/fs.d/nfs/clear_locks/ |
H A D | clear_locks.c | 62 struct hostent host_ent, *he; in nfs4_clr_state() local 66 if ((he = gethostbyname_r(client, &host_ent, he_buf, sizeof (he_buf), in nfs4_clr_state() 85 arg.addr_type = he->h_addrtype; in nfs4_clr_state() 91 for (ap = he->h_addr_list; *ap; ap++) { in nfs4_clr_state()
|
/titanic_50/usr/src/lib/libnsl/nss/ |
H A D | getipnodeby.c | 1064 __mappedtov4(struct hostent *he, int *extract_error) in __mappedtov4() argument 1075 if (he == NULL) { in __mappedtov4() 1079 if ((__find_mapped(he, 0)) == 0) { in __mappedtov4() 1103 for (i = 0; he->h_addr_list[i] != NULL; i++) { in __mappedtov4() 1106 he->h_addr_list[i])) in __mappedtov4() 1123 (struct in6_addr *)he->h_addr_list[i], addr4p); in __mappedtov4() 1133 buff_locp -= (len = strlen(he->h_name) + 1); in __mappedtov4() 1134 h_namep = he->h_name; in __mappedtov4() 1142 if (he->h_aliases != NULL) { in __mappedtov4() 1143 for (i = 0; he->h_aliases[i] != NULL; i++) { in __mappedtov4() [all …]
|
H A D | netdir_inet.c | 493 struct hostent *he = NULL, *tmphe; in _get_hostserv_inetnetdir_byname() local 502 he = DOOR_GETHOSTBYNAME_R(args->arg.nss.host.name, in _get_hostserv_inetnetdir_byname() 506 if (he == NULL) in _get_hostserv_inetnetdir_byname() 512 he = DOOR_GETIPNODEBYNAME_R(args->arg.nss.host6.name, in _get_hostserv_inetnetdir_byname() 519 if (he == NULL) in _get_hostserv_inetnetdir_byname() 584 he = __mappedtov4(tmphe, &h_errnop); in _get_hostserv_inetnetdir_byname() 586 if (he == NULL) { in _get_hostserv_inetnetdir_byname() 588 he = DOOR_GETHOSTBYNAME_R( in _get_hostserv_inetnetdir_byname() 592 if (he == NULL) { in _get_hostserv_inetnetdir_byname() 602 ret = hent2ndaddr(AF_INET, he->h_addr_list, in _get_hostserv_inetnetdir_byname() [all …]
|
/titanic_50/usr/src/cmd/dtrace/test/tst/common/printf/ |
H A D | tst.precs.d.out | 4 he 10 he
|
H A D | tst.wp.d.out | 4 he 14 he
|
/titanic_50/usr/src/uts/common/io/ |
H A D | neti_impl.c | 482 net_event_register(net_handle_t info, hook_event_t *he) in net_event_register() argument 487 ASSERT(he != NULL); in net_event_register() 493 hei = hook_event_add(info->netd_hooks, he); in net_event_register() 506 net_event_unregister(net_handle_t info, hook_event_t *he) in net_event_unregister() argument 510 ASSERT(he != NULL); in net_event_unregister() 515 return (hook_event_remove(info->netd_hooks, he)); in net_event_unregister() 519 net_event_shutdown(net_handle_t info, hook_event_t *he) in net_event_shutdown() argument 523 ASSERT(he != NULL); in net_event_shutdown() 528 return (hook_event_shutdown(info->netd_hooks, he)); in net_event_shutdown()
|
H A D | hook.c | 208 static hook_event_int_t *hook_event_checkdup(hook_event_t *he, 1294 hook_event_add(hook_family_int_t *hfi, hook_event_t *he) in hook_event_add() argument 1300 ASSERT(he != NULL); in hook_event_add() 1301 ASSERT(he->he_name != NULL); in hook_event_add() 1303 new = hook_event_copy(he); in hook_event_add() 1318 hei = hook_event_checkdup(he, hks); in hook_event_add() 1353 hfi->hfi_family.hf_name, NULL, he->he_name, HN_REGISTER); in hook_event_add() 1414 hook_event_remove(hook_family_int_t *hfi, hook_event_t *he) in hook_event_remove() argument 1421 ASSERT(he != NULL); in hook_event_remove() 1436 hei = hook_event_find(hfi, he->he_name); in hook_event_remove() [all …]
|
/titanic_50/usr/src/lib/libsmbfs/smb/ |
H A D | nb_net.c | 66 struct hostent he, *h; in nb_resolvehost_in() local 69 h = gethostbyname_r(name, &he, he_buf, sizeof (he_buf), &err); in nb_resolvehost_in()
|
/titanic_50/usr/src/cmd/auditreduce/ |
H A D | option.c | 319 struct hostent *he; in proc_object() local 357 he = getipnodebyname((const void *)obj_val, AF_INET6, 0, &err); in proc_object() 358 if (he == 0) { in proc_object() 359 he = getipnodebyname((const void *)obj_val, AF_INET, in proc_object() 361 if (he == 0) { in proc_object() 370 if (he->h_addrtype == AF_INET6) { in proc_object() 373 (in6_addr_t *)he->h_addr_list[0])) { in proc_object() 376 he->h_addr_list[0] + 12, 4); in proc_object() 379 (void) memcpy(ip_ipv6, he->h_addr_list[0], 16); in proc_object() 384 (void) memcpy(&obj_id, he->h_addr_list[0], 4); in proc_object() [all …]
|
/titanic_50/usr/src/cmd/svc/svcadm/ |
H A D | svcadm.c | 210 struct ht_elt *he; in visited_find_or_add() local 215 for (he = visited[i]; he != NULL; he = he->next) { in visited_find_or_add() 216 if (strcmp(he->str, str) == 0) { in visited_find_or_add() 218 *hep = he; in visited_find_or_add() 223 he = malloc(offsetof(struct ht_elt, str) + strlen(str) + 1); in visited_find_or_add() 224 if (he == NULL) in visited_find_or_add() 227 (void) strcpy(he->str, str); in visited_find_or_add() 229 he->next = visited[i]; in visited_find_or_add() 230 visited[i] = he; in visited_find_or_add() 233 *hep = he; in visited_find_or_add() [all …]
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
H A D | ipseckey.c | 730 struct hostent he; member 768 dummy.he.h_addr_list = dummy.addtl; in parseaddr() 771 hp = &dummy.he; in parseaddr() 772 dummy.he.h_addrtype = AF_INET6; in parseaddr() 773 dummy.he.h_length = sizeof (struct in6_addr); in parseaddr() 778 dummy.he.h_addr_list = dummy.addtl; in parseaddr() 781 hp = &dummy.he; in parseaddr() 782 dummy.he.h_addrtype = AF_INET6; in parseaddr() 783 dummy.he.h_length = sizeof (struct in6_addr); in parseaddr() 1254 if (srchp == &dummy.he) { in doaddresses() [all …]
|
/titanic_50/usr/src/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.substrminate.d.out | 2 he's not a dummy
|
/titanic_50/usr/src/cmd/cvcd/sparc/sun4u/starfire/ |
H A D | cvcd.c | 587 struct hostent *he; local 634 he = gethostbyname(ssphostname); 635 if (he == NULL) { 664 for (pp = he->h_addr_list; *pp != 0; pp++) { 667 he->h_length) == 0) {
|
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | options.c | 901 hashentry_t *he; local 907 he = (hashentry_t *)malloc(sizeof(*he)); 908 if (he == NULL) { 911 he->opt.p = sopt; 912 he->next = NULL; 932 bucket->next = he; 934 hash_tbl[loc] = he;
|
/titanic_50/usr/src/lib/librstp/common/ |
H A D | TODO | 18 5. To move the project in he direction toward 802.1s (MSTP)
|
/titanic_50/usr/src/lib/passwdutil/ |
H A D | README.SunOS-aging | 68 forced to change his/her passwd the next time he/she logs in. The 73 forced to change his/her passwd the next time he/she logs in. Password
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_ipaddr.c | 355 static struct hostent he; /* host entry */ in lgetipnodebyname() local 359 struct hostent *hp = &he; in lgetipnodebyname()
|