/illumos-gate/usr/src/cmd/xstr/ |
H A D | xstr.c | 317 hp = hp->hnext; in hashit() 322 if ((hp = calloc(1, sizeof (*hp))) == NULL) { in hashit() 327 hp->hpt = mesgpt; in hashit() 331 hp->hnew = new; in hashit() 332 hp0->hnext = hp; in hashit() 333 return (hp->hpt); in hashit() 340 struct hash *hp; in flushsh() local 345 for (hp = bucket[i].hnext; hp != NULL; hp = hp->hnext) in flushsh() 346 if (hp->hnew) in flushsh() 356 for (hp = bucket[i].hnext; hp != NULL; hp = hp->hnext) { in flushsh() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db_dispatch.c | 208 DB_TXNHEAD *hp; local 216 hp = (DB_TXNHEAD *)listp; 218 if (txnid > hp->maxid) 219 hp->maxid = txnid; 237 DB_TXNHEAD *hp; local 260 DB_TXNHEAD *hp; local 263 hp = (DB_TXNHEAD *)listp; 264 while ((p = LIST_FIRST(&hp->head)) != LIST_END(&hp->head)) { 282 DB_TXNHEAD *hp; local 293 hp->generation += incr; [all …]
|
/illumos-gate/usr/src/lib/scsi/libscsi/common/ |
H A D | scsi_engine.c | 116 if ((ep = init(hp)) == NULL) { in get_engine() 138 eip->lsei_next = hp->lsh_engines; in get_engine() 139 hp->lsh_engines = eip; in get_engine() 183 libscsi_free(hp, tp); in libscsi_open() 191 tp->lst_hdl = hp; in libscsi_open() 195 ++hp->lsh_targets; in libscsi_open() 198 libscsi_close(hp, tp); in libscsi_open() 215 libscsi_free(hp, tp->lst_vendor); in libscsi_close() 218 libscsi_free(hp, tp); in libscsi_close() 219 --hp->lsh_targets; in libscsi_close() [all …]
|
/illumos-gate/usr/src/uts/common/fs/hsfs/ |
H A D | hsfs_node.c | 140 hp = VTOH(vp); in hs_access() 166 #define HS_HPASH(hp) HS_HASH((hp)->hs_nodeid) argument 229 for (hp = fsp->hsfs_free_f; hp != NULL; hp = fsp->hsfs_free_f) { in hs_hsnode_cache_reclaim() 296 bzero((caddr_t)hp, sizeof (*hp)); in hs_getfree() 298 return (hp); in hs_getfree() 340 bzero((caddr_t)hp, sizeof (*hp)); in hs_getfree() 344 return (hp); in hs_getfree() 355 hp->hs_freef->hs_freeb = hp->hs_freeb; in hs_remfree() 359 hp->hs_freeb->hs_freef = hp->hs_freef; in hs_remfree() 456 for (hp = fsp->hsfs_hash[i]; hp != NULL; hp = hp->hs_hash) { in hs_synchash() [all …]
|
H A D | hsfs_vnops.c | 157 struct hsnode *hp; in hsfs_read() local 160 hp = VTOH(vp); in hsfs_read() 258 hp = VTOH(vp); in hsfs_getattr() 303 hp = VTOH(vp); in hsfs_readlink() 322 hp = VTOH(vp); in hsfs_inactive() 593 hp = VTOH(vp); in hsfs_fid() 1038 hp = VTOH(vp); in hsfs_getapage() 1473 hp = VTOH(vp); in hsfs_getpage() 1716 hp = VTOH(vp); in hsfs_addmap() 1734 hp = VTOH(vp); in hsfs_delmap() [all …]
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | collect.c | 311 hp->h_to = addto(hp->h_to, hcontents(linebuf)); in collect() 324 hp->h_others = Xaddone(hp->h_others, linebuf); in collect() 450 hp->h_to = addto(hp->h_to, &linebuf[2]); in collect() 471 hp->h_cc = addto(hp->h_cc, &linebuf[2]); in collect() 479 hp->h_bcc = addto(hp->h_bcc, &linebuf[2]); in collect() 484 hp->h_defopt = addone(hp->h_defopt, myname); in collect() 931 hp->h_to = hp->h_subject = hp->h_cc = hp->h_bcc = hp->h_defopt = NOSTR; in mesedit() 936 hp->h_to = addto(hp->h_to, hcontents(hdr)); in mesedit() 940 hp->h_cc = addto(hp->h_cc, hcontents(hdr)); in mesedit() 942 hp->h_bcc = addto(hp->h_bcc, hcontents(hdr)); in mesedit() [all …]
|
H A D | send.c | 423 hp->h_seq = 1; in mail1() 424 if (hp->h_subject == NOSTR) in mail1() 425 hp->h_subject = sflag; in mail1() 441 orig_to = strcpy((char *)salloc(strlen(hp->h_to)+1), hp->h_to); in mail1() 454 extract(hp->h_cc, GCC))); in mail1() 462 hp->h_to = detract(to, GTO); in mail1() 463 hp->h_cc = detract(to, GCC); in mail1() 464 hp->h_bcc = detract(to, GBCC); in mail1() 661 if (hp->h_subject != NOSTR && *hp->h_subject) in puthead() 673 hp->h_defopt), gotcha++; in puthead() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | heap.c | 541 for (hp = &SmHeapTable[ptrhash(ptr)]; *hp != NULL; hp = &(**hp).hi_next) 547 hi = *hp; 562 *hp = hi->hi_next; 566 hi->hi_next = *hp; 567 *hp = hi; 611 for (hp = &SmHeapTable[ptrhash(ptr)]; *hp != NULL; hp = &(**hp).hi_next) 616 hi = *hp; 636 *hp = hi; 674 for (hp = &SmHeapTable[ptrhash(ptr)]; *hp != NULL; hp = &(**hp).hi_next) 725 SM_HEAP_ITEM_T *hp; local [all …]
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | sbd_cpu.c | 245 sbp = SBDH2BD(hp->h_sbd); in sbd_cpu_flags() 347 sbderror_t *ep = SBD_HD2ERR(hp); in sbd_pre_release_cpu() 449 hp->h_err, EIO, in sbd_pre_release_cpu() 534 sbderror_t *ep = SBD_HD2ERR(hp); in sbd_post_attach_cpu() 623 SBD_HD2ERR(hp)); in sbd_post_attach_cpu() 652 sbderror_t *ep = SBD_HD2ERR(hp); in sbd_pre_detach_cpu() 754 sbderror_t *ep = SBD_HD2ERR(hp); in sbd_post_detach_cpu() 798 SBD_HD2ERR(hp)); in sbd_post_detach_cpu() 830 sbderror_t *ep = SBD_HD2ERR(hp); in sbd_cancel_cpu() 880 hp->h_err, EIO, in sbd_cancel_cpu() [all …]
|
H A D | sbd_io.c | 55 sbd_board_t *sbp = SBDH2BD(hp->h_sbd); in sbd_attach_io() 76 sbd_board_t *sbp = SBDH2BD(hp->h_sbd); in sbd_detach_io() 133 _NOTE(ARGUNUSED(hp)) in sbd_pre_attach_io() 164 _NOTE(ARGUNUSED(hp)) in sbd_post_attach_io() 194 sbp = SBDH2BD(hp->h_sbd); in sbd_io_status() 196 ep = HD2MACHERR(hp); in sbd_io_status() 198 hdp = sbd_get_sbdp_handle(sbp, hp); in sbd_io_status() 302 sbp = SBDH2BD(hp->h_sbd); in sbd_io_cnt() 334 ep = HD2MACHERR(hp); in sbd_check_io_refs() 390 sbd_pre_release_io(sbd_handle_t *hp, in sbd_pre_release_io() argument [all …]
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_strtab.c | 99 dt_strhash_t *hp, *hq; in dt_strtab_destroy() local 103 for (hp = sp->str_hash[i]; hp != NULL; hp = hq) { in dt_strtab_destroy() 104 hq = hp->str_next; in dt_strtab_destroy() 105 free(hp); in dt_strtab_destroy() 207 dt_strhash_t *hp; in dt_strtab_index() local 216 for (hp = sp->str_hash[h]; hp != NULL; hp = hp->str_next) { in dt_strtab_index() 218 return (hp->str_off); in dt_strtab_index() 227 dt_strhash_t *hp; in dt_strtab_insert() local 247 hp->str_len = len; in dt_strtab_insert() 259 sp->str_hash[h] = hp; in dt_strtab_insert() [all …]
|
/illumos-gate/usr/src/cmd/getent/ |
H A D | dogethost.c | 44 if (hp == NULL) { in puthostent() 48 for (p = hp->h_addr_list; *p != 0; p++) { in puthostent() 54 inet_ntoa(in), hp->h_name) == EOF) in puthostent() 56 for (q = hp->h_aliases; *q != 0; q++) { in puthostent() 72 struct hostent *hp; in dogethost() local 76 while ((hp = gethostent()) != NULL) in dogethost() 77 (void) puthostent(hp, stdout); in dogethost() 83 hp = gethostbyaddr((char *)&addr, in dogethost() 86 hp = gethostbyname(*list); in dogethost() 87 if (hp == NULL) in dogethost() [all …]
|
H A D | dogetipnodes.c | 39 puthostent(const struct hostent *hp, FILE *fp) in puthostent() argument 45 if (hp == NULL) { in puthostent() 49 for (p = hp->h_addr_list; *p != 0; p++) { in puthostent() 56 if (hp->h_addrtype == AF_INET6) { in puthostent() 75 if (fprintf(fp, "%s\t%s", res, hp->h_name) == EOF) in puthostent() 77 for (q = hp->h_aliases; q && *q; q++) { in puthostent() 93 struct hostent *hp; in dogetipnodes() local 115 hp = getipnodebyaddr(addr, len, af, &err_ret); in dogetipnodes() 117 hp = getipnodebyname(*list, AF_INET6, in dogetipnodes() 119 if (hp == NULL) in dogetipnodes() [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | is_local_host.c | 45 static int is_local_if(struct hostent *hp); 58 struct hostent *hp; in is_local_host() local 63 if (is_local_if(hp)) in is_local_host() 66 if (is_local_if(hp)) in is_local_host() 73 is_local_if(struct hostent *hp) in is_local_if() argument 90 lifn.lifn_family = hp->h_addrtype; in is_local_if() 105 lifc.lifc_family = hp->h_addrtype; in is_local_if() 123 if (lifrp->lifr_addr.ss_family != hp->h_addrtype) { in is_local_if() 136 for (nha = 0; hp->h_addr_list[nha]; nha++) { in is_local_if() 137 if (memcmp(hp->h_addr_list[nha], lifraddrp(lifrp), in is_local_if() [all …]
|
/illumos-gate/usr/src/cmd/lastcomm/ |
H A D | lc_utils.c | 217 struct devhash *hp, *nhp; in getdev() local 233 for (hp = dev_hash[HASH(dev)]; hp; hp = hp->dev_nxt) in getdev() 234 if (hp->dev_dev == dev) { in getdev() 236 return (lastname = hp->dev_name); in getdev() 239 for (hp = dev_chain; hp; hp = nhp) { in getdev() 240 nhp = hp->dev_nxt; in getdev() 242 (void) strcat(name, hp->dev_name); in getdev() 247 hp->dev_dev = statb.st_rdev; in getdev() 248 hp->dev_nxt = dev_hash[HASH(hp->dev_dev)]; in getdev() 249 dev_hash[HASH(hp->dev_dev)] = hp; in getdev() [all …]
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | SLPFindSrvs.c | 116 if (!hp->async) { in slp_unpackSrvReply() 181 if (!hp->async) { in slp_unpackSrvReply() 190 if (hp->async) in slp_unpackSrvReply() 192 (SLPHandle) hp, in slp_unpackSrvReply() 232 if (!hp->async) { in unpackDAAdvert_srv() 254 if (hp->async) { in unpackDAAdvert_srv() 289 if (!hp->async) { in unpackSAAdvert_srv() 308 if (hp->async) { in unpackSAAdvert_srv() 327 slp_handle_impl_t *hp) { in slp_packSrvRqst() argument 330 slp_msg_t *msg = &(hp->msg); in slp_packSrvRqst() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/talk/ |
H A D | get_addrs.c | 56 struct hostent *hp; local 63 hp = gethostbyname(my_machine_name); 65 if (hp == (struct hostent *) 0) { 71 if (hp->h_addrtype != AF_INET) { 77 bcopy(hp->h_addr, (char *)&my_machine_addr, hp->h_length); 92 hp = gethostbyname(rem_machine_name); 94 if (hp == (struct hostent *) 0) { 100 if (hp->h_addrtype != AF_INET) { 106 bcopy(hp->h_addr, (char *) &rem_machine_addr, hp->h_length);
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_acache.c | 67 acache4_hash_t *hp; in nfs4_access_check() local 78 ap = hp->next; in nfs4_access_check() 95 rw_exit(&hp->lock); in nfs4_access_check() 100 rw_exit(&hp->lock); in nfs4_access_check() 114 acache4_hash_t *hp; in nfs4_access_cache() local 130 nap->hashq = hp; in nfs4_access_cache() 136 ap = hp->next; in nfs4_access_cache() 142 rw_exit(&hp->lock); in nfs4_access_cache() 157 nap->next = hp->next; in nfs4_access_cache() 158 hp->next = nap; in nfs4_access_cache() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | nfslog_ipaddr.c | 98 struct hostent *hp = NULL; local 131 hp = NULL; 134 return (addhost(AF_INET, ipaddr, hp ? hp->h_name : inet_ntoa(*ipaddr))); 142 struct hostent *hp = NULL; local 170 hp = NULL; 173 if (hp != NULL) 174 addname = hp->h_name; 181 freehostent(hp); 191 register struct hostdata **hp, *n; local 231 n->h_next = *hp; [all …]
|
/illumos-gate/usr/src/uts/common/fs/ |
H A D | dnlc.c | 343 nc_hash_t *hp; in dnlc_init() local 382 hp->hash_next = (ncache_t *)hp; in dnlc_init() 383 hp->hash_prev = (ncache_t *)hp; in dnlc_init() 608 for (ncp = hp->hash_next; ncp != (ncache_t *)hp; in dnlc_lookup() 900 if (hp->hash_next == (ncache_t *)hp) in dnlc_fs_purge1() 1000 nc_hash_t *hp = dnlc_free_rotor, *start_hp = hp; in do_dnlc_reduce_cache() local 1035 } while (hp->hash_next == (ncache_t *)hp && hp != start_hp); in do_dnlc_reduce_cache() 1038 if (hp->hash_next == (ncache_t *)hp) { in do_dnlc_reduce_cache() 1069 if (hp->hash_next == (ncache_t *)hp) { in do_dnlc_reduce_cache() 1344 *hp = dep; in dnlc_dir_add_entry() [all …]
|
/illumos-gate/usr/src/uts/sun4u/ngdr/sys/ |
H A D | dr.h | 77 #define DR_INTERNAL_ERROR(hp) \ argument 80 #define DR_OP_INTERNAL_ERROR(hp) \ argument 81 drerr_set_c(CE_WARN, &(hp)->h_err, \ 387 extern int dr_pre_attach_cpu(dr_handle_t *hp, 394 extern int dr_pre_detach_cpu(dr_handle_t *hp, 409 extern int dr_pre_attach_mem(dr_handle_t *hp, 418 extern int dr_pre_detach_mem(dr_handle_t *hp, 433 extern int dr_pre_attach_io(dr_handle_t *hp, 436 extern int dr_post_attach_io(dr_handle_t *hp, 440 extern int dr_pre_detach_io(dr_handle_t *hp, [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | rootnex.c | 1028 ddi_acc_hdl_t *hp; in rootnex_map_regspec() local 1063 if (hp == NULL) { in rootnex_map_regspec() 1113 if (hp != NULL) { in rootnex_map_regspec() 1193 if (hp) { in rootnex_map_regspec() 1262 ddi_acc_hdl_t *hp; in rootnex_map_handle() local 1732 if (hp == NULL) in rootnex_coredma_allochdl() 1736 hp->dmai_private = (void *)(((uintptr_t)hp + in rootnex_coredma_allochdl() 2244 hp->dmai_cookie++; in rootnex_coredma_bindhdl() 3392 hp->dmai_nwin--; in rootnex_bind_slowpath() 3682 hp->dmai_nwin++; in rootnex_init_win() [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 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() 202 if (hp != NULL) { in krb5_sname_to_principal() [all …]
|
/illumos-gate/usr/src/uts/i86pc/sys/ |
H A D | dr.h | 59 #define DR_INTERNAL_ERROR(hp) \ argument 62 #define DR_OP_INTERNAL_ERROR(hp) \ argument 63 drerr_set_c(CE_WARN, &(hp)->h_err, \ 418 extern int dr_pre_attach_cpu(dr_handle_t *hp, 425 extern int dr_pre_detach_cpu(dr_handle_t *hp, 440 extern int dr_pre_attach_mem(dr_handle_t *hp, 449 extern int dr_pre_detach_mem(dr_handle_t *hp, 463 extern int dr_pre_attach_io(dr_handle_t *hp, 466 extern int dr_post_attach_io(dr_handle_t *hp, 470 extern int dr_pre_detach_io(dr_handle_t *hp, [all …]
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.lex.c | 103 hp->next = hp->prev = hp; in lex() 115 wdp = hp; in lex() 164 wdp = hp; in copylex() 537 if (hp == 0) in getexcl() 581 hp = hp->next; in getexcl() 584 hp = getsub(hp); in getexcl() 740 wdp = hp; in dosub() 1037 if (hp) in gethent() 1062 if (hp) in gethent() 1078 for (hp = Histlist.Hnext; hp; hp = hp->Hnext) in gethent() [all …]
|