/illumos-gate/usr/src/lib/libipsecutil/common/ |
H A D | ipsec_util.c | 290 struct hostent *hp; in dump_sockaddr() local 347 hp = getipnodebyaddr((char *)addrptr, addrlen, in dump_sockaddr() 349 if (hp != NULL) { in dump_sockaddr() 351 " (%s)", hp->h_name) < 0) in dump_sockaddr() 353 freehostent(hp); in dump_sockaddr()
|
/illumos-gate/usr/src/common/smbios/ |
H A D | smb_info.c | 250 smb_info_bcopy_offset(const smb_header_t *hp, void *dst, size_t dstlen, in smb_info_bcopy_offset() argument 253 if (offset >= hp->smbh_len) { in smb_info_bcopy_offset() 255 } else if (offset + dstlen > hp->smbh_len) { in smb_info_bcopy_offset() 256 size_t nvalid = MIN(hp->smbh_len - offset, dstlen); in smb_info_bcopy_offset() 257 bcopy((char *)hp + offset, dst, nvalid); in smb_info_bcopy_offset() 260 bcopy((char *)hp + offset, dst, dstlen); in smb_info_bcopy_offset() 265 smb_info_bcopy(const smb_header_t *hp, void *dst, size_t dstlen) in smb_info_bcopy() argument 267 return (smb_info_bcopy_offset(hp, dst, dstlen, 0)); in smb_info_bcopy()
|
H A D | smb_open.c | 51 const smb_header_t *hp = shp->sh_structs[i].smbst_hdr; in smb_strip() local 55 if (hp->smbh_type == SMB_TYPE_SYSTEM && in smb_strip() 56 hp->smbh_len >= offsetof(smb_system_t, smbsi_wakeup)) { in smb_strip() 57 smb_system_t *sp = (smb_system_t *)(uintptr_t)hp; in smb_strip() 61 if (hp->smbh_type == SMB_TYPE_BATTERY && in smb_strip() 62 hp->smbh_len >= offsetof(smb_battery_t, smbbat_sdate)) { in smb_strip() 63 smb_battery_t *bp = (smb_battery_t *)(uintptr_t)hp; in smb_strip() 67 if (smbios_info_common(shp, hp->smbh_hdl, &info) != SMB_ERR) { in smb_strip() 219 const smb_header_t *hp, *nhp; in smbios_bufopen() local 273 hp = shp->sh_buf; in smbios_bufopen() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
H A D | ipseckey.c | 813 struct hostent *hp = NULL; in parseaddr() local 828 hp = getipnodebyname(addr, AF_INET6, in parseaddr() 841 hp = &dummy.he; in parseaddr() 851 hp = &dummy.he; in parseaddr() 860 hp = NULL; in parseaddr() 864 if (hp == NULL) in parseaddr() 867 *hpp = hp; in parseaddr()
|
H A D | ikeadm.c | 595 struct hostent *hp = NULL; in parse_addr() local 607 hp = getipnodebyname(argv[0], AF_INET6, AI_DEFAULT | AI_ALL, in parse_addr() 621 hp = &dhp->he; in parse_addr() 628 hp = &dhp->he; in parse_addr() 632 hp = NULL; in parse_addr() 636 *hpp = hp; in parse_addr() 638 if (hp == NULL) { in parse_addr()
|
/illumos-gate/usr/src/cmd/th_tools/ |
H A D | th_define.c | 1416 match_hinfo(struct handle_info *hp, int instance, uint_t access_type, in match_hinfo() argument 1421 hp->instance, instance, access_type, rnumber, in match_hinfo() 1422 hp->offset, offset, hp->len, len); in match_hinfo() 1424 if (instance != -1 && hp->instance != instance) in match_hinfo() 1427 (hp->access_type & BOFI_DMA_RW) && in match_hinfo() 1428 (rnumber == -1 || hp->rnumber == rnumber)) in match_hinfo() 1431 (hp->access_type & BOFI_INTR)) in match_hinfo() 1434 (hp->access_type & BOFI_PIO_RW) && in match_hinfo() 1435 (rnumber == -1 || hp->rnumber == rnumber) && in match_hinfo() 1436 (len == 0 || hp->offset < offset + len) && in match_hinfo() [all …]
|
/illumos-gate/usr/src/cmd/diskinfo/ |
H A D | diskinfo.c | 102 disk_walker(topo_hdl_t *hp, tnode_t *np, void *arg) in disk_walker() argument 171 if (topo_node_facility(hp, pnp, TOPO_FAC_TYPE_INDICATOR, in disk_walker() 219 populate_physical(topo_hdl_t *hp, di_phys_t *pp) in populate_physical() argument 228 wp = topo_walk_init(hp, FM_FMRI_SCHEME_HC, disk_walker, pp, &e); in populate_physical() 246 topo_hdl_t *hp = NULL; in enumerate_disks() local 265 hp = topo_open(TOPO_VERSION, NULL, &e); in enumerate_disks() 266 if (hp == NULL) { in enumerate_disks() 272 (void) topo_snap_hold(hp, NULL, &e); in enumerate_disks() 365 if (hp != NULL) { in enumerate_disks() 368 populate_physical(hp, &phys); in enumerate_disks() [all …]
|
/illumos-gate/usr/src/data/terminfo/ |
H A D | terminfo.src | 3613 xterm-hp|xterm with hpterm function keys, 4405 hpterm|X-hpterm|hp X11 terminal emulator, 6178 #### Hewlett-Packard (hp) 6194 hpgeneric|hp|hewlett-packard generic terminal, 6207 hp+pfk+cr|hp function keys with CR, 6211 hp+pfk-cr|hp function keys w/o CR, 6219 hp+pfk+arrows|hp alternate arrow definitions, 6224 hp+arrows|hp arrow definitions, 6257 rmkx@, smkx@, use=hp+arrows, use=hp2621, 6262 hp2621|hp2621a|hp2621A|2621|2621a|2621A|hp2621-wl|2621-wl|hp 2621 w/labels, [all …]
|
H A D | termcap.src | 3151 xterm-hp|xterm with hpterm function keys:\ 3867 hpterm|X-hpterm|hp X11 terminal emulator:\ 5454 #### Hewlett-Packard (hp) 5470 hpgeneric|hp|hewlett-packard generic terminal:\ 5482 hp+pfk+cr|hp function keys with CR:\ 5486 hp+pfk-cr|hp function keys w/o CR:\ 5493 hp+pfk+arrows|hp alternate arrow definitions:\ 5497 hp+arrows|hp arrow definitions:\ 5527 :ke@:ks@:tc=hp+arrows:tc=hp2621: 5532 hp2621|hp2621a|hp2621A|2621|2621a|2621A|hp2621-wl|2621-wl|hp 2621 w/labels:\ [all …]
|
/illumos-gate/usr/src/cmd/acct/lib/ |
H A D | pnpsplit.c | 89 struct hours *hp; in pnpsplit() local 115 for (hp = h; tmless(hp, &cur); hp++); in pnpsplit() 116 for (; hp->h_sec >= 0; hp++) { in pnpsplit() 117 if (sameday && tmless(&end, hp)) { in pnpsplit() 119 result[hp->h_type] += tend-tcur; in pnpsplit() 123 hours.tm_sec = hp->h_sec; in pnpsplit() 124 hours.tm_min = hp->h_min; in pnpsplit() 125 hours.tm_hour = hp->h_hour; in pnpsplit() 127 result[hp->h_type] += tmp; in pnpsplit() 129 cur.tm_sec = hp->h_sec; in pnpsplit() [all …]
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | ypwhich.c | 552 struct hostent *hp; local 611 struct hostent *hp; local 614 hp = gethostbyaddr((char *)&server->s_addr, 617 printf("%s\n", hp ? hp->h_name : buf);
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_subr.c | 3205 acache_hash_t *hp; in nfs_access_check() local 3213 hp = &acache[acachehash(rp, cr)]; in nfs_access_check() 3214 rw_enter(&hp->lock, RW_READER); in nfs_access_check() 3215 ap = hp->next; in nfs_access_check() 3216 while (ap != (acache_t *)hp) { in nfs_access_check() 3232 rw_exit(&hp->lock); in nfs_access_check() 3237 rw_exit(&hp->lock); in nfs_access_check() 3251 acache_hash_t *hp; in nfs_access_cache() local 3253 hp = &acache[acachehash(rp, cr)]; in nfs_access_cache() 3267 nap->hashq = hp; in nfs_access_cache() [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/pciex/ |
H A D | npe.c | 81 #define NPE_IS_HANDLE_FOR_STDCFG_ACC(hp) \ argument 82 ((hp) != NULL && \ 83 ((ddi_acc_hdl_t *)(hp))->ah_platform_private != NULL && \ 84 (((ddi_acc_impl_t *)((ddi_acc_hdl_t *)(hp))-> \ 486 ddi_acc_hdl_t *hp, off_t offset, off_t len) in npe_setup_std_pcicfg_acc() argument 490 if ((ret = pci_fm_acc_setup(hp, offset, len)) == in npe_setup_std_pcicfg_acc() 509 ddi_acc_hdl_t *hp; in npe_bus_map() local 662 hp = (ddi_acc_hdl_t *)mp->map_handlep; in npe_bus_map() 663 if (hp == NULL) in npe_bus_map() 667 cfp = (pci_acc_cfblk_t *)&hp->ah_bus_private; in npe_bus_map() [all …]
|
/illumos-gate/usr/src/uts/common/io/pciex/ |
H A D | pcie.c | 804 int hp, lbw; in pcie_intr() local 806 hp = pcie_hp_intr(dip); in pcie_intr() 809 if (hp == DDI_INTR_CLAIMED || lbw == DDI_INTR_CLAIMED) { in pcie_intr()
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | vm_page.c | 3512 page_t *hp; in page_do_hashout() local 3524 hp = *hpp; in page_do_hashout() 3525 if (hp == pp) in page_do_hashout() 3527 if (hp == NULL) { in page_do_hashout() 3531 hpp = &hp->p_hash; in page_do_hashout()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | bofi.c | 933 struct bofi_shadow *hp; in bofi_ioctl() local 1508 for (hp = hhashp->hnext; hp != hhashp; hp = hp->hnext) { in bofi_ioctl() 1509 if (!driver_under_test(hp->dip)) in bofi_ioctl() 1511 if (ddi_name_to_major(ddi_get_name(hp->dip)) != in bofi_ioctl() 1514 if (hp->instance != get_handles.instance) in bofi_ioctl() 1521 " %s %d %s ", hp->name, hp->instance, in bofi_ioctl() 1522 (hp->type == BOFI_INT_HDL) ? "INTR" : in bofi_ioctl() 1523 (hp->type == BOFI_ACC_HDL) ? "PIO" : in bofi_ioctl() 1524 (hp->type == BOFI_DMA_HDL) ? "DMA" : in bofi_ioctl() 1525 (hp->hparrayp != NULL) ? "DVMA" : "DMA*"); in bofi_ioctl() [all …]
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | printhashdata.c | 16 void printhashdata(hp, opts) in printhashdata() argument 17 iphtable_t *hp; in printhashdata() 22 if ((hp->iph_type & IPHASH_ANON) == IPHASH_ANON) 24 switch (hp->iph_type & ~IPHASH_ANON) 31 if (hp->iph_flags & FR_INQUE) 33 else if (hp->iph_flags & FR_OUTQUE) 39 PRINTF("%#x", hp->iph_type); 44 PRINTF("Hash Table Number: %s", hp->iph_name); 45 if ((hp->iph_type & IPHASH_ANON) == IPHASH_ANON) 51 switch (hp->iph_unit) [all …]
|
H A D | printhash.c | 16 iphtable_t *printhash(hp, copyfunc, name, opts) in printhash() argument 17 iphtable_t *hp; in printhash() 27 if ((*copyfunc)((char *)hp, (char *)&iph, sizeof(iph)))
|
H A D | printhash_live.c | 18 iphtable_t *printhash_live(hp, fd, name, opts) in printhash_live() argument 19 iphtable_t *hp; in printhash_live() 29 if ((name != NULL) && strncmp(name, hp->iph_name, FR_GROUPLEN)) 30 return hp->iph_next; 32 printhashdata(hp, opts); 46 iter.ili_unit = hp->iph_unit; 47 strncpy(iter.ili_name, hp->iph_name, FR_GROUPLEN); 64 (void) printhashnode(hp, node, bcopywrap, opts); 78 return hp->iph_next;
|
H A D | hostname.c | 17 struct hostent *hp; local 29 hp = gethostbyaddr(ip, 4, AF_INET); 30 if (hp != NULL && hp->h_name != NULL && 31 *hp->h_name != '\0') { 32 strncpy(hostbuf, hp->h_name, sizeof(hostbuf));
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/fac_prov_libhp/ |
H A D | fac_prov_libhp.c | 138 fac_prov_libhp_set_val(topo_mod_t *mod, hp_node_t hp, const char *opt_name, in fac_prov_libhp_set_val() argument 151 ret = hp_set_private(hp, buf, &res); in fac_prov_libhp_set_val() 163 fac_prov_libhp_get_opt(topo_mod_t *mod, hp_node_t hp, const char *opt_name, in fac_prov_libhp_get_opt() argument 178 ret = hp_get_private(hp, opt_name, &val); in fac_prov_libhp_get_opt() 213 hp_node_t hp = NULL; in fac_prov_libhp_opt_set() local 234 hp = fac_prov_libhp_find_node(mod, conn); in fac_prov_libhp_opt_set() 235 if (hp == NULL) { in fac_prov_libhp_opt_set() 252 ret = fac_prov_libhp_set_val(mod, hp, opt_name, opt_on); in fac_prov_libhp_opt_set() 255 ret = fac_prov_libhp_set_val(mod, hp, opt_name, in fac_prov_libhp_opt_set() 264 ret = fac_prov_libhp_get_opt(mod, hp, opt_name, opt_on, nvout); in fac_prov_libhp_opt_set() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | sn2princ.c | 119 struct hostent *hp = NULL; in krb5_sname_to_principal() local 144 hp = res_getipnodebyname(hostname, addr_family, 0, &err); in krb5_sname_to_principal() 145 if (!hp) { in krb5_sname_to_principal() 166 remote_host = strdup(hp ? hp->h_name : hostname); in krb5_sname_to_principal() 168 if (hp != NULL) in krb5_sname_to_principal() 169 res_freehostent(hp); in krb5_sname_to_principal() 185 hp2 = res_getipnodebyaddr(hp->h_addr, hp->h_length, in krb5_sname_to_principal() 186 hp->h_addrtype, &err); in krb5_sname_to_principal() 193 if (hp != NULL) in krb5_sname_to_principal() 194 res_freehostent(hp); in krb5_sname_to_principal() [all …]
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | getaddrinfo.c | 604 struct hostent *hp; in get_addr() local 705 hp = getipnodebyname(_hostname, AF_INET6, in get_addr() 709 hp = getipnodebyname(_hostname, family, aip->ai_flags, &errnum); in get_addr() 712 if (hp == NULL) { in get_addr() 729 for (i = 0; hp->h_addr_list[i]; i++) { in get_addr() 736 if (hp->h_addrtype == AF_INET6) { in get_addr() 739 v6addrp = (struct in6_addr *)hp->h_addr_list[i]; in get_addr() 746 hp->h_addr_list[i], in get_addr() 749 } else if (hp->h_addrtype == AF_INET) { in get_addr() 751 (void) memcpy(&v4addr.s_addr, hp->h_addr_list[i], in get_addr() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_mkquery.c | 121 register HEADER *hp; in res_nmkquery() local 151 hp = (HEADER *) buf; in res_nmkquery() 153 hp->id = htons(statp->id); in res_nmkquery() 154 hp->opcode = op; in res_nmkquery() 155 hp->rd = (statp->options & RES_RECURSE) != 0U; in res_nmkquery() 156 hp->rcode = NOERROR; in res_nmkquery() 179 hp->qdcount = htons(1); in res_nmkquery() 200 hp->arcount = htons(1); in res_nmkquery() 222 hp->ancount = htons(1); in res_nmkquery() 241 register HEADER *hp; in res_nopt() local [all …]
|
H A D | res_mkupdate.c | 79 HEADER *hp; in res_nmkupdate() local 99 hp = (HEADER *) buf; in res_nmkupdate() 101 hp->id = htons(statp->id); in res_nmkupdate() 102 hp->opcode = ns_o_update; in res_nmkupdate() 103 hp->rcode = NOERROR; in res_nmkupdate() 704 hp->qdcount = htons(counts[0]); in res_nmkupdate() 705 hp->ancount = htons(counts[1]); in res_nmkupdate() 706 hp->nscount = htons(counts[2]); in res_nmkupdate() 707 hp->arcount = htons(counts[3]); in res_nmkupdate()
|