| /freebsd-14.2/libexec/bootpd/ |
| H A D | dumptab.c | 45 struct host *hp; in dumptab() local 103 for (hp = (struct host *) hash_FirstEntry(nmhashtable); hp != NULL; in dumptab() 105 dump_host(fp, hp); in dumptab() 125 if (hp) { in dump_host() 128 if (hp->flags.bootfile) { in dump_host() 161 if (hp->flags.gateway) { in dump_host() 167 if (hp->flags.homedir) { in dump_host() 173 if (hp->flags.name_switch && hp->flags.send_name) { in dump_host() 176 if (hp->flags.htype) { in dump_host() 179 if (hp->flags.haddr) { in dump_host() [all …]
|
| H A D | dovend.c | 112 hp->domain_server, in dovend_rfc1497() 134 hp->nis_server, in dovend_rfc1497() 154 hp->name_server, in dovend_rfc1497() 160 hp->rlp_server, in dovend_rfc1497() 167 hp->time_server, in dovend_rfc1497() 174 hp->ntp_server, in dovend_rfc1497() 188 if (hp->flags.name_switch && hp->flags.send_name) { in dovend_rfc1497() 224 hp->lpr_server, in dovend_rfc1497() 230 hp->cookie_server, in dovend_rfc1497() 236 hp->log_server, in dovend_rfc1497() [all …]
|
| H A D | readfile.c | 308 struct host *hp; in readtab() local 378 bzero((char *) hp, sizeof(*hp)); in readtab() 420 if (hp->flags.htype && hp->flags.haddr) { in readtab() 422 hp->linkcount++; in readtab() 423 hashcode = hash_HashFunction(hp->haddr, haddrlength(hp->htype)); in readtab() 424 if (hash_Insert(hwhashtable, hashcode, hwinscmp, hp, hp) < 0) { in readtab() 427 haddrtoa(hp->haddr, haddrlength(hp->htype))); in readtab() 435 if (hash_Insert(iphashtable, hashcode, nullcmp, hp, hp) < 0) { in readtab() 447 hp->hostname->string, hp) < 0) { in readtab() 453 hp->linkcount++; in readtab() [all …]
|
| H A D | bootpd.c | 621 struct host *hp = NULL; in handle_request() local 681 if (hp == NULL && in handle_request() 695 if (hp == NULL) { in handle_request() 720 if (hp == NULL) { in handle_request() 740 if (t < hp->min_wait) { in handle_request() 744 t, hp->min_wait); in handle_request() 869 if (hp->flags.homedir) in handle_request() 871 if (hp->flags.bootfile) in handle_request() 972 dovend_cmu(bp, hp); in handle_request() 1233 pktlen = hp->msg_size; in dovend_rfc1048() [all …]
|
| /freebsd-14.2/sbin/hastd/ |
| H A D | hooks.c | 174 hp = malloc(sizeof(*hp)); in hook_alloc() 182 hp->hp_birthtime = hp->hp_lastreport = time(NULL); in hook_alloc() 183 (void)strlcpy(hp->hp_comm, path, sizeof(hp->hp_comm)); in hook_alloc() 186 (void)snprlcat(hp->hp_comm, sizeof(hp->hp_comm), " %s", in hook_alloc() 189 if (strlen(hp->hp_comm) >= sizeof(hp->hp_comm) - 1) { in hook_alloc() 191 free(hp); in hook_alloc() 195 return (hp); in hook_alloc() 232 free(hp); in hook_free() 250 return (hp); in hook_find() 306 hp->hp_pid, hp->hp_comm); in hook_check() [all …]
|
| /freebsd-14.2/cddl/contrib/opensolaris/common/ctf/ |
| H A D | ctf_hash.c | 55 hp->h_buckets = ctf_alloc(sizeof (uint_t) * hp->h_nbuckets); in ctf_hash_create() 56 hp->h_chains = ctf_alloc(sizeof (ctf_helem_t) * hp->h_nelems); in ctf_hash_create() 58 if (hp->h_buckets == NULL || hp->h_chains == NULL) { in ctf_hash_create() 63 bzero(hp->h_buckets, sizeof (uint_t) * hp->h_nbuckets); in ctf_hash_create() 64 bzero(hp->h_chains, sizeof (ctf_helem_t) * hp->h_nelems); in ctf_hash_create() 72 return (hp->h_nelems ? hp->h_nelems - 1 : 0); in ctf_hash_size() 99 ctf_helem_t *hep = &hp->h_chains[hp->h_free]; in ctf_hash_insert() 105 if (hp->h_free >= hp->h_nelems) in ctf_hash_insert() 121 hp->h_buckets[h] = hp->h_free++; in ctf_hash_insert() 169 if (hp->h_buckets != NULL && hp->h_nbuckets != 1) { in ctf_hash_destroy() [all …]
|
| /freebsd-14.2/cddl/contrib/opensolaris/lib/libdtrace/common/ |
| H A D | dt_inttab.c | 57 dt_inthash_t *hp, *np; in dt_inttab_destroy() local 59 for (hp = ip->int_head; hp != NULL; hp = np) { in dt_inttab_destroy() 60 np = hp->inh_next; in dt_inttab_destroy() 72 dt_inthash_t *hp; in dt_inttab_insert() local 75 for (hp = ip->int_hash[h]; hp != NULL; hp = hp->inh_hash) { in dt_inttab_insert() 76 if (hp->inh_value == value && hp->inh_flags == flags) in dt_inttab_insert() 85 hp->inh_next = NULL; in dt_inttab_insert() 90 ip->int_hash[h] = hp; in dt_inttab_insert() 94 ip->int_head = hp; in dt_inttab_insert() 98 ip->int_tail = hp; in dt_inttab_insert() [all …]
|
| H A D | dt_strtab.c | 104 dt_strhash_t *hp, *hq; in dt_strtab_destroy() local 108 for (hp = sp->str_hash[i]; hp != NULL; hp = hq) { in dt_strtab_destroy() 109 hq = hp->str_next; in dt_strtab_destroy() 110 free(hp); in dt_strtab_destroy() 219 dt_strhash_t *hp; in dt_strtab_index() local 228 for (hp = sp->str_hash[h]; hp != NULL; hp = hp->str_next) { in dt_strtab_index() 239 dt_strhash_t *hp; in dt_strtab_insert() local 259 hp->str_len = len; in dt_strtab_insert() 267 free(hp); in dt_strtab_insert() 273 sp->str_hash[h] = hp; in dt_strtab_insert() [all …]
|
| /freebsd-14.2/sbin/ipf/libipf/ |
| H A D | printhashdata.c | 12 printhashdata(iphtable_t *hp, int opts) in printhashdata() argument 20 switch (hp->iph_type & ~IPHASH_ANON) in printhashdata() 27 if (hp->iph_flags & FR_INQUE) in printhashdata() 29 else if (hp->iph_flags & FR_OUTQUE) in printhashdata() 35 PRINTF("%#x", hp->iph_type); in printhashdata() 42 hp->iph_name); in printhashdata() 49 printunit(hp->iph_unit); in printhashdata() 56 hp->iph_name, (u_long)hp->iph_size); in printhashdata() 57 if (hp->iph_seed != 0) in printhashdata() 76 (u_long)hp->iph_size, hp->iph_seed); in printhashdata() [all …]
|
| /freebsd-14.2/usr.sbin/lpr/pac/ |
| H A D | pac.c | 267 *ap = hp; in dumpit() 268 hp = hp->h_link; in dumpit() 275 hp = *ap; in dumpit() 279 hp->h_feetpages, hp->h_count, hp->h_feetpages * price); in dumpit() 307 hp->h_name, hp->h_count); in rewrite() 308 hp = hp->h_link; in rewrite() 338 return(hp); in enter() 341 hp = (struct hent *) calloc(sizeof *hp, (size_t)1); in enter() 348 return(hp); in enter() 363 for (hp = hashtab[h]; hp != NULL; hp = hp->h_link) in lookup() [all …]
|
| /freebsd-14.2/contrib/atf/test-programs/ |
| H A D | srcdir_test.sh | 43 h=${hp##*/} 44 cp ${hp} tmp 65 h=${hp##*/} 66 cp ${hp} tmp 67 cp ${hp} tmp/.libs 75 h=${hp##*/} 76 cp ${hp} tmp 96 h=${hp##*/} 97 cp ${hp} tmp 119 h=${hp##*/} [all …]
|
| /freebsd-14.2/cddl/contrib/opensolaris/tools/ctf/dump/ |
| H A D | dump.c | 191 ref_to_str(hp->cth_parlabel, hp, cd)); in print_header() 193 ref_to_str(hp->cth_parname, hp, cd)); in print_header() 219 if (hp->cth_lbloff > hp->cth_objtoff) in print_labeltable() 282 if (hp->cth_objtoff > hp->cth_funcoff) in read_data() 333 if (hp->cth_funcoff > hp->cth_typeoff) in read_funcs() 417 if (hp->cth_typeoff > hp->cth_stroff) in read_types() 423 if (hp->cth_parlabel || hp->cth_parname) in read_types() 733 if (hp->cth_stroff + hp->cth_strlen > cd->cd_ctflen) in read_strtab() 1029 hp = v; in main() 1060 zstr.avail_out = hp->cth_stroff + hp->cth_strlen; in main() [all …]
|
| /freebsd-14.2/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| H A D | strtab.c | 69 strhash_t *hp, *hq; in strtab_destroy() local 73 for (hp = sp->str_hash[i]; hp != NULL; hp = hq) { in strtab_destroy() 74 hq = hp->str_next; in strtab_destroy() 75 free(hp); in strtab_destroy() 157 strhash_t *hp; in strtab_insert() local 170 for (hp = sp->str_hash[h]; hp != NULL; hp = hp->str_next) { in strtab_insert() 184 hp->str_len = len; in strtab_insert() 187 sp->str_hash[h] = hp; in strtab_insert() 197 return (hp->str_off); in strtab_insert() 233 const strhash_t *hp; in strtab_print() local [all …]
|
| /freebsd-14.2/lib/libc/net/ |
| H A D | name6.c | 284 hp = _hpcopy(hp, errp); in getipnodebyname() 287 hp = _hpreorder(hp); in getipnodebyname() 410 return hp; in _hpcopy() 484 hp = &hpbuf; in _hpaddr() 596 return hp; in _hpsort() 632 return hp; in _hpsort() 649 return hp; in _hpreorder() 658 return hp; in _hpreorder() 669 return hp; in _hpreorder() 681 return hp; in _hpreorder() [all …]
|
| /freebsd-14.2/lib/libcasper/services/cap_dns/ |
| H A D | cap_dns.c | 55 free(hp->h_name); in hostent_free() 56 hp->h_name = NULL; in hostent_free() 78 hostent_free(hp); in hostent_unpack() 87 hp->h_aliases = calloc(sizeof(hp->h_aliases[0]), nitems + 1); in hostent_unpack() 101 hp->h_addr_list = calloc(sizeof(hp->h_addr_list[0]), nitems + 1); in hostent_unpack() 105 hp->h_addr_list[ii] = malloc(hp->h_length); in hostent_unpack() 111 hp->h_addr_list[ii], hp->h_length); in hostent_unpack() 115 return (hp); in hostent_unpack() 117 hostent_free(hp); in hostent_unpack() 152 return (hp); in cap_gethostbyname2() [all …]
|
| /freebsd-14.2/usr.bin/xstr/ |
| H A D | xstr.c | 347 hp = hp->hnext; in hashit() 352 if ((hp = (struct hash *) calloc(1, sizeof (*hp))) == NULL) in hashit() 354 hp->hpt = mesgpt; in hashit() 359 hp->hnew = new; in hashit() 360 hp0->hnext = hp; in hashit() 368 struct hash *hp; in flushsh() local 373 for (hp = bucket[i].hnext; hp != NULL; hp = hp->hnext) in flushsh() 374 if (hp->hnew) in flushsh() 384 for (hp = bucket[i].hnext; hp != NULL; hp = hp->hnext) { in flushsh() 385 found(hp->hnew, hp->hpt, hp->hstr); in flushsh() [all …]
|
| /freebsd-14.2/contrib/tcp_wrappers/ |
| H A D | scaffold.c | 66 hb->host.h_length = hp->h_length; in dup_hostent() 119 struct hostent *hp; in find_inet_addr() local 143 if ((hp = gethostbyname(host)) == 0) { in find_inet_addr() 147 if (hp->h_addrtype != AF_INET) { in find_inet_addr() 151 if (STR_NE(host, hp->h_name)) { in find_inet_addr() 155 return (dup_hostent(hp)); in find_inet_addr() 166 struct addrinfo *hp, *res; local 169 struct hostent *hp; local 174 if ((hp = find_inet_addr(host)) == 0) 203 freeaddrinfo(hp); [all …]
|
| /freebsd-14.2/sbin/rcorder/ |
| H A D | hash.c | 116 register struct Hash_Entry **hp; in Hash_InitTable() local 130 t->bucketPtr = hp = (struct Hash_Entry **)emalloc(sizeof(*hp) * i); in Hash_InitTable() 132 *hp++ = NULL; in Hash_InitTable() 240 struct Hash_Entry **hp; in Hash_CreateEntry() local 267 e->next = *hp; in Hash_CreateEntry() 268 *hp = e; in Hash_CreateEntry() 299 register Hash_Entry **hp, *p; in Hash_DeleteEntry() local 304 (p = *hp) != NULL; hp = &p->next) { in Hash_DeleteEntry() 306 *hp = p->next; in Hash_DeleteEntry() 424 t->bucketPtr = hp = (struct Hash_Entry **) emalloc(sizeof(*hp) * i); in RebuildTable() [all …]
|
| /freebsd-14.2/libexec/bootpd/tools/bootpef/ |
| H A D | bootpef.c | 119 struct host *hp; in main() local 230 if (!hp) { in main() 234 if (!hp->flags.exten_file) { in main() 238 mktagfile(hp); in main() 246 while (hp != NULL) { in main() 247 mktagfile(hp); in main() 261 mktagfile(struct host *hp) in mktagfile() argument 267 if (!hp->flags.exten_file) in mktagfile() 280 len = dovend_rfc1497(hp, vp, bytesleft); in mktagfile() 286 hp->exten_file->string); in mktagfile() [all …]
|
| /freebsd-14.2/contrib/sendmail/libsm/ |
| H A D | heap.c | 548 for (hp = &SmHeapTable[ptrhash(ptr)]; *hp != NULL; hp = &(**hp).hi_next) 554 hi = *hp; 569 *hp = hi->hi_next; 573 hi->hi_next = *hp; 574 *hp = hi; 618 for (hp = &SmHeapTable[ptrhash(ptr)]; *hp != NULL; hp = &(**hp).hi_next) 623 hi = *hp; 643 *hp = hi; 681 for (hp = &SmHeapTable[ptrhash(ptr)]; *hp != NULL; hp = &(**hp).hi_next) 732 SM_HEAP_ITEM_T *hp; local [all …]
|
| /freebsd-14.2/usr.bin/mail/ |
| H A D | send.c | 307 grabh(hp, GCC); in mail1() 309 grabh(hp, GBCC); in mail1() 329 to = usermap(cat(hp->h_bcc, cat(hp->h_to, hp->h_cc))); in mail1() 356 fixhead(hp, to); in mail1() 430 hp->h_to = NULL; in fixhead() 431 hp->h_cc = NULL; in fixhead() 432 hp->h_bcc = NULL; in fixhead() 438 hp->h_to = in fixhead() 441 hp->h_cc = in fixhead() 444 hp->h_bcc = in fixhead() [all …]
|
| /freebsd-14.2/usr.bin/rup/ |
| H A D | rup.c | 68 struct host_list *hp; in search_host() local 73 for (hp = hosts; hp != NULL; hp = hp->next) { in search_host() 83 struct host_list *hp; in remember_host() local 88 hp->next = hosts; in remember_host() 89 hosts = hp; in remember_host() 100 struct hostent *hp; in rstat_reply() local 109 if (hp) in rstat_reply() 110 host = hp->h_name; in rstat_reply() 168 struct hostent *hp; in onehost() local 171 hp = gethostbyname(host); in onehost() [all …]
|
| /freebsd-14.2/contrib/tcpdump/ |
| H A D | print-hsrp.c | 97 const struct hsrp *hp = (const struct hsrp *) bp; in hsrp_print() local 101 version = GET_U_1(hp->hsrp_version); in hsrp_print() 110 tok2str(states, "Unknown (%u)", GET_U_1(hp->hsrp_state))); in hsrp_print() 111 ND_PRINT("group=%u ", GET_U_1(hp->hsrp_group)); in hsrp_print() 112 if (GET_U_1(hp->hsrp_reserved) != 0) { in hsrp_print() 113 ND_PRINT("[reserved=%u!] ", GET_U_1(hp->hsrp_reserved)); in hsrp_print() 115 ND_PRINT("addr=%s", GET_IPADDR_STRING(hp->hsrp_virtaddr)); in hsrp_print() 118 unsigned_relts_print(ndo, GET_U_1(hp->hsrp_hellotime)); in hsrp_print() 120 unsigned_relts_print(ndo, GET_U_1(hp->hsrp_holdtime)); in hsrp_print() 121 ND_PRINT(" priority=%u", GET_U_1(hp->hsrp_priority)); in hsrp_print() [all …]
|
| /freebsd-14.2/sys/netgraph/ |
| H A D | ng_tag.c | 135 return (hp->tag_len); in ng_tag_hookinary_getLength() 146 return (hp->tag_len); in ng_tag_hookoutary_getLength() 401 struct ng_tag_hookin *hp; in ng_tag_rcvmsg() local 418 bcopy(hp, resp->data, in ng_tag_rcvmsg() 442 bcopy(hp, resp->data, in ng_tag_rcvmsg() 647 struct ng_tag_hookin *hp; in ng_tag_setdata_in() local 654 bcopy(hp0, hp, size); in ng_tag_setdata_in() 659 hip->in = hp; in ng_tag_setdata_in() 697 struct ng_tag_hookout *hp; in ng_tag_setdata_out() local 704 bcopy(hp0, hp, size); in ng_tag_setdata_out() [all …]
|
| /freebsd-14.2/usr.bin/rusers/ |
| H A D | rusers.c | 69 struct host_list *hp; in search_host() local 74 for (hp = hosts; hp != NULL; hp = hp->next) { in search_host() 84 struct host_list *hp; in remember_host() local 89 hp->next = hosts; in remember_host() 90 hosts = hp; in remember_host() 99 struct hostent *hp; in rusers_reply() local 114 if (hp != NULL) in rusers_reply() 115 host = hp->h_name; in rusers_reply() 179 struct hostent *hp; in onehost() local 182 hp = gethostbyname(host); in onehost() [all …]
|