/dragonfly/libexec/bootpd/ |
H A D | dumptab.c | 54 struct host *hp; in dumptab() local 112 for (hp = (struct host *) hash_FirstEntry(nmhashtable); hp != NULL; in dumptab() 114 dump_host(fp, hp); in dumptab() 134 if (hp) { in dump_host() 137 if (hp->flags.bootfile) { in dump_host() 170 if (hp->flags.gateway) { in dump_host() 176 if (hp->flags.homedir) { in dump_host() 182 if (hp->flags.name_switch && hp->flags.send_name) { in dump_host() 185 if (hp->flags.htype) { in dump_host() 188 if (hp->flags.haddr) { in dump_host() [all …]
|
H A D | dovend.c | 123 hp->domain_server, in dovend_rfc1497() 145 hp->nis_server, in dovend_rfc1497() 165 hp->name_server, in dovend_rfc1497() 171 hp->rlp_server, in dovend_rfc1497() 178 hp->time_server, in dovend_rfc1497() 185 hp->ntp_server, in dovend_rfc1497() 199 if (hp->flags.name_switch && hp->flags.send_name) { in dovend_rfc1497() 235 hp->lpr_server, in dovend_rfc1497() 241 hp->cookie_server, in dovend_rfc1497() 247 hp->log_server, in dovend_rfc1497() [all …]
|
H A D | readfile.c | 319 struct host *hp; in readtab() local 389 bzero((char *) hp, sizeof(*hp)); in readtab() 431 if (hp->flags.htype && hp->flags.haddr) { in readtab() 433 hp->linkcount++; in readtab() 434 hashcode = hash_HashFunction(hp->haddr, haddrlength(hp->htype)); in readtab() 435 if (hash_Insert(hwhashtable, hashcode, hwinscmp, hp, hp) < 0) { in readtab() 438 haddrtoa(hp->haddr, haddrlength(hp->htype))); in readtab() 446 if (hash_Insert(iphashtable, hashcode, nullcmp, hp, hp) < 0) { in readtab() 458 hp->hostname->string, hp) < 0) { in readtab() 464 hp->linkcount++; in readtab() [all …]
|
H A D | bootpd.c | 621 struct host *hp = NULL; in handle_request() local 677 if (hp == NULL && in handle_request() 691 if (hp == NULL) { in handle_request() 716 if (hp == NULL) { in handle_request() 736 if (t < hp->min_wait) { in handle_request() 740 t, hp->min_wait); in handle_request() 865 if (hp->flags.homedir) in handle_request() 867 if (hp->flags.bootfile) in handle_request() 968 dovend_cmu(bp, hp); in handle_request() 1227 pktlen = hp->msg_size; in dovend_rfc1048() [all …]
|
/dragonfly/sys/vfs/hpfs/ |
H A D | hpfs_hash.c | 91 struct hpfsnode *hp; in hpfs_hphashlookup() local 94 for (hp = HPNOHASH(dev, ino)->lh_first; hp; hp = hp->h_hash.le_next) { in hpfs_hphashlookup() 95 if (ino == hp->h_no && dev == hp->h_dev) in hpfs_hphashlookup() 100 return (hp); in hpfs_hphashlookup() 111 for (hp = HPNOHASH(dev, ino)->lh_first; hp; hp = hp->h_hash.le_next) { in hpfs_hphashvget() 112 if (ino != hp->h_no || dev != hp->h_dev) in hpfs_hphashvget() 114 vp = HPTOV(hp); in hpfs_hphashvget() 122 for (hp = HPNOHASH(dev, ino)->lh_first; hp; hp = hp->h_hash.le_next) { in hpfs_hphashvget() 123 if (ino == hp->h_no && dev == hp->h_dev) in hpfs_hphashvget() 126 if (hp == NULL || vp != HPTOV(hp)) { in hpfs_hphashvget() [all …]
|
H A D | hpfs_vnops.c | 459 vap->va_uid = hp->h_uid; in hpfs_getattr() 460 vap->va_gid = hp->h_gid; in hpfs_getattr() 639 hpfs_hphashrem(hp); in hpfs_reclaim() 642 if (hp->h_devvp) { in hpfs_reclaim() 643 vrele(hp->h_devvp); in hpfs_reclaim() 644 hp->h_devvp = NULL; in hpfs_reclaim() 649 kfree(hp, M_HPFSNO); in hpfs_reclaim() 685 struct hpfsnode *hp; in hpfs_strategy() local 730 return (vop_helper_access(ap, hp->h_uid, hp->h_gid, hp->h_mode, 0)); in hpfs_access() 1021 struct hpfsnode *hp; in hpfs_lookup() local [all …]
|
H A D | hpfs_subr.c | 535 hp->h_no, hp->h_fn.fn_parent)); in hpfs_validateparent() 537 if (hp->h_no == hp->h_fn.fn_parent) { in hpfs_validateparent() 538 dhp = hp; in hpfs_validateparent() 646 if (hp != dhp) in hpfs_validateparent() 689 if (hp->h_no == hp->h_fn.fn_parent) { in hpfs_updateparent() 690 dhp = hp; in hpfs_updateparent() 699 error = hpfs_genlookupbyname (dhp, hp->h_name, hp->h_namelen, in hpfs_updateparent() 715 if (hp != dhp) in hpfs_updateparent() 735 bp = getblk(hp->h_devvp, dbtodoff(hp->h_no), FNODESIZE, 0, 0); in hpfs_update() 765 hp->h_no, hp->h_fn.fn_size, size)); in hpfs_truncate() [all …]
|
/dragonfly/usr.sbin/lpr/pac/ |
H A D | pac.c | 255 *ap = hp; in dumpit() 256 hp = hp->h_link; in dumpit() 263 hp = *ap; in dumpit() 267 hp->h_feetpages, hp->h_count, hp->h_feetpages * price); in dumpit() 295 hp->h_name, hp->h_count); in rewrite() 296 hp = hp->h_link; in rewrite() 326 return(hp); in enter() 329 hp = (struct hent *) calloc(sizeof *hp, (size_t)1); in enter() 336 return(hp); in enter() 351 for (hp = hashtab[h]; hp != NULL; hp = hp->h_link) in lookup() [all …]
|
/dragonfly/lib/libc/net/ |
H A D | name6.c | 282 hp = _hpcopy(hp, errp); in getipnodebyname() 405 return hp; in _hpcopy() 479 hp = &hpbuf; in _hpaddr() 510 hp = &hpbuf; in _hpmerge() 591 return hp; in _hpsort() 627 return hp; in _hpsort() 643 return hp; in _hpreorder() 653 return hp; in _hpreorder() 664 return hp; in _hpreorder() 676 return hp; in _hpreorder() [all …]
|
/dragonfly/contrib/binutils-2.34/libctf/ |
H A D | ctf-hash.c | 193 hp->key_free, hp->value_free); in ctf_dynhash_insert() 202 slot->key_free = hp->key_free; in ctf_dynhash_insert() 203 slot->value_free = hp->value_free; in ctf_dynhash_insert() 212 htab_remove_elt (hp->htab, &hep); in ctf_dynhash_remove() 218 htab_empty (hp->htab); in ctf_dynhash_empty() 286 if (hp != NULL) in ctf_dynhash_destroy() 287 htab_delete (hp->htab); in ctf_dynhash_destroy() 288 free (hp); in ctf_dynhash_destroy() 303 ctf_hash_size (const ctf_hash_t *hp) in ctf_hash_size() argument 363 ctf_hash_destroy (ctf_hash_t *hp) in ctf_hash_destroy() argument [all …]
|
H A D | ctf-open.c | 380 hp->cth_objtidxoff = hp->cth_funcidxoff; in upgrade_header() 1394 fp->ctf_size = hp->cth_stroff + hp->cth_strlen; in ctf_bufopen_internal() 1405 if (hp->cth_lbloff > hp->cth_objtoff in ctf_bufopen_internal() 1406 || hp->cth_objtoff > hp->cth_funcoff in ctf_bufopen_internal() 1407 || hp->cth_funcoff > hp->cth_typeoff in ctf_bufopen_internal() 1408 || hp->cth_funcoff > hp->cth_objtidxoff in ctf_bufopen_internal() 1409 || hp->cth_objtidxoff > hp->cth_funcidxoff in ctf_bufopen_internal() 1410 || hp->cth_funcidxoff > hp->cth_varoff in ctf_bufopen_internal() 1411 || hp->cth_varoff > hp->cth_typeoff || hp->cth_typeoff > hp->cth_stroff) in ctf_bufopen_internal() 1414 if ((hp->cth_lbloff & 3) || (hp->cth_objtoff & 2) in ctf_bufopen_internal() [all …]
|
/dragonfly/usr.bin/xstr/ |
H A D | xstr.c | 348 hp = hp->hnext; in hashit() 353 if ((hp = (struct hash *) calloc(1, sizeof (*hp))) == NULL) in hashit() 355 hp->hpt = mesgpt; in hashit() 360 hp->hnew = new; in hashit() 361 hp0->hnext = hp; in hashit() 369 struct hash *hp; in flushsh() local 374 for (hp = bucket[i].hnext; hp != NULL; hp = hp->hnext) in flushsh() 375 if (hp->hnew) in flushsh() 385 for (hp = bucket[i].hnext; hp != NULL; hp = hp->hnext) { in flushsh() 386 found(hp->hnew, hp->hpt, hp->hstr); in flushsh() [all …]
|
/dragonfly/contrib/tcp_wrappers/ |
H A D | scaffold.c | 46 static struct hostent *dup_hostent(hp) in dup_hostent() argument 47 struct hostent *hp; in dup_hostent() 67 hb->host.h_length = hp->h_length; 122 struct hostent *hp; local 150 if (hp->h_addrtype != AF_INET) { 154 if (STR_NE(host, hp->h_name)) { 158 return (dup_hostent(hp)); 170 struct addrinfo *hp, *res; local 173 struct hostent *hp; local 207 freeaddrinfo(hp); [all …]
|
/dragonfly/usr.bin/mail/ |
H A D | send.c | 302 grabh(hp, GCC); in mail1() 304 grabh(hp, GBCC); in mail1() 324 to = usermap(cat(hp->h_bcc, cat(hp->h_to, hp->h_cc))); in mail1() 333 to = outof(to, mtf, hp); in mail1() 351 fixhead(hp, to); in mail1() 425 hp->h_to = NULL; in fixhead() 426 hp->h_cc = NULL; in fixhead() 427 hp->h_bcc = NULL; in fixhead() 433 hp->h_to = in fixhead() 436 hp->h_cc = in fixhead() [all …]
|
/dragonfly/sbin/rcorder/ |
H A D | hash.c | 103 struct Hash_Entry **hp; in Hash_InitTable() local 117 t->bucketPtr = hp = (struct Hash_Entry **)emalloc(sizeof(*hp) * i); in Hash_InitTable() 119 *hp++ = NULL; in Hash_InitTable() 235 struct Hash_Entry **hp; in Hash_CreateEntry() local 262 e->next = *hp; in Hash_CreateEntry() 263 *hp = e; in Hash_CreateEntry() 293 Hash_Entry **hp, *p; in Hash_DeleteEntry() local 298 (p = *hp) != NULL; hp = &p->next) { in Hash_DeleteEntry() 300 *hp = p->next; in Hash_DeleteEntry() 423 t->bucketPtr = hp = (struct Hash_Entry **) emalloc(sizeof(*hp) * i); in RebuildTable() [all …]
|
/dragonfly/contrib/tcsh-6/ |
H A D | sh.hist.c | 80 hp->Hnext = fp, hp->Hprev = pp; in hinsert() 767 for (hp = &Histlist; (hp = hp->Hnext) != NULL;) { in createHistHashTable() 769 assert(!hp->Hhash || hp->Hhash == lpHash); in createHistHashTable() 877 else if (hp->Hhash == hashval && heq(lp, &(hp->Hlex))) in findHistHashTable() 1101 p = tprintf(FMT_HISTORY, cp, NULL, hp->Htime, hp); in phist() 1127 hp = hp->Hnext) in dophist() 1132 for (; hp != &Histlist; hp = hp->Hprev) in dophist() 1135 for (hp = Histlist.Hnext; n-- > 0 && hp != NULL; hp = hp->Hnext) in dophist() 1205 for (hp = &Histlist; (np = hp->Hnext) != NULL;) { in cleanhist() 1399 while ((hp = hp->Hnext)) in loadhist() [all …]
|
/dragonfly/sys/netgraph7/ |
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() 402 struct ng_tag_hookin *hp; in ng_tag_rcvmsg() local 419 bcopy(hp, resp->data, in ng_tag_rcvmsg() 443 bcopy(hp, resp->data, in ng_tag_rcvmsg() 646 struct ng_tag_hookin *hp; in ng_tag_setdata_in() local 653 bcopy(hp0, hp, size); in ng_tag_setdata_in() 658 hip->in = hp; in ng_tag_setdata_in() 696 struct ng_tag_hookout *hp; in ng_tag_setdata_out() local 703 bcopy(hp0, hp, size); in ng_tag_setdata_out() [all …]
|
/dragonfly/usr.sbin/rpc.statd/ |
H A D | procs.c | 84 HostInfo *hp; in sm_mon_1_svc() local 147 lp = hp->monList; in do_unmon() 183 HostInfo *hp; in sm_unmon_1_svc() local 222 HostInfo *hp; in sm_unmon_all_1_svc() local 231 for (i = status_info->noOfHosts, hp = status_info->hosts; i; i--, hp++) in sm_unmon_all_1_svc() 233 do_unmon(hp, arg); in sm_unmon_all_1_svc() 261 HostInfo *hp; in sm_simu_crash_1_svc() local 272 if (hp->monList) in sm_simu_crash_1_svc() 309 HostInfo *hp; in sm_notify_1_svc() local 316 if (!hp) in sm_notify_1_svc() [all …]
|
H A D | file.c | 77 HostInfo *hp; in find_host() local 82 for (i = 0, hp = status_info->hosts; i < status_info->noOfHosts; i++, hp++) in find_host() 86 result = hp; in find_host() 89 if (!spare_slot && !hp->monList && !hp->notifyReqd) in find_host() 90 spare_slot = hp; in find_host() 271 HostInfo *hp; in notify_hosts() local 275 for (i = status_info->noOfHosts, hp = status_info->hosts; i ; i--, hp++) in notify_hosts() 277 if (hp->notifyReqd) in notify_hosts() 313 for (i = status_info->noOfHosts, hp = status_info->hosts; i ; i--, hp++) in notify_hosts() 315 if (hp->notifyReqd) in notify_hosts() [all …]
|
/dragonfly/usr.bin/rup/ |
H A D | rup.c | 60 struct host_list *hp; in search_host() local 65 for (hp = hosts; hp != NULL; hp = hp->next) { in search_host() 75 struct host_list *hp; in remember_host() local 80 hp->next = hosts; in remember_host() 81 hosts = hp; in remember_host() 92 struct hostent *hp; in rstat_reply() local 102 if (hp) in rstat_reply() 103 host = hp->h_name; in rstat_reply() 173 struct hostent *hp; in onehost() local 176 hp = gethostbyname(host); in onehost() [all …]
|
/dragonfly/usr.bin/rusers/ |
H A D | rusers.c | 64 struct host_list *hp; in search_host() local 69 for (hp = hosts; hp != NULL; hp = hp->next) { in search_host() 79 struct host_list *hp; in remember_host() local 84 hp->next = hosts; in remember_host() 85 hosts = hp; in remember_host() 94 struct hostent *hp; in rusers_reply() local 109 if (hp != NULL) in rusers_reply() 110 host = hp->h_name; in rusers_reply() 175 struct hostent *hp; in onehost() local 178 hp = gethostbyname(host); in onehost() [all …]
|
/dragonfly/libexec/bootpd/tools/bootpef/ |
H A D | bootpef.c | 130 struct host *hp; in main() local 241 if (!hp) { in main() 245 if (!hp->flags.exten_file) { in main() 249 mktagfile(hp); in main() 257 while (hp != NULL) { in main() 258 mktagfile(hp); in main() 272 mktagfile(struct host *hp) in mktagfile() argument 278 if (!hp->flags.exten_file) in mktagfile() 291 len = dovend_rfc1497(hp, vp, bytesleft); in mktagfile() 297 hp->exten_file->string); in mktagfile() [all …]
|
/dragonfly/contrib/tcpdump/ |
H A D | print-hsrp.c | 99 const struct hsrp *hp = (const struct hsrp *) bp; in hsrp_print() local 103 version = GET_U_1(hp->hsrp_version); in hsrp_print() 112 tok2str(states, "Unknown (%u)", GET_U_1(hp->hsrp_state))); in hsrp_print() 113 ND_PRINT("group=%u ", GET_U_1(hp->hsrp_group)); in hsrp_print() 114 if (GET_U_1(hp->hsrp_reserved) != 0) { in hsrp_print() 115 ND_PRINT("[reserved=%u!] ", GET_U_1(hp->hsrp_reserved)); in hsrp_print() 117 ND_PRINT("addr=%s", GET_IPADDR_STRING(hp->hsrp_virtaddr)); in hsrp_print() 120 unsigned_relts_print(ndo, GET_U_1(hp->hsrp_hellotime)); in hsrp_print() 122 unsigned_relts_print(ndo, GET_U_1(hp->hsrp_holdtime)); in hsrp_print() 123 ND_PRINT(" priority=%u", GET_U_1(hp->hsrp_priority)); in hsrp_print() [all …]
|
/dragonfly/usr.bin/mkstr/ |
H A D | mkstr.c | 269 struct hash *hp; in hashit() local 282 for (hp = bucket[i]; hp != NULL; hp = hp->hnext) in hashit() 283 if (hp->hval == hashval) { in hashit() 284 fseek(mesgread, (long) hp->hpt, 0); in hashit() 292 if (!really || hp == NULL) { in hashit() 293 hp = (struct hash *) calloc(1, sizeof *hp); in hashit() 294 if (hp == NULL) in hashit() 296 hp->hnext = bucket[i]; in hashit() 297 hp->hval = hashval; in hashit() 303 bucket[i] = hp; in hashit() [all …]
|
/dragonfly/contrib/openbsd_libm/src/ |
H A D | e_remainder.c | 33 int32_t hx,hp; in remainder() local 38 EXTRACT_WORDS(hp,lp,p); in remainder() 40 hp &= 0x7fffffff; in remainder() 44 if((hp|lp)==0) return (x*p)/(x*p); /* p = 0 */ in remainder() 46 ((hp>=0x7ff00000)&& /* p is NaN */ in remainder() 47 (((hp-0x7ff00000)|lp)!=0))) in remainder() 51 if (hp<=0x7fdfffff) x = fmod(x,p+p); /* now x < 2p */ in remainder() 52 if (((hx-hp)|(lx-lp))==0) return zero*x; in remainder() 55 if (hp<0x00200000) { in remainder()
|