/freebsd-9.3-release/usr.bin/mkstr/ |
H A D | mkstr.c | 280 struct hash *hp; local 293 for (hp = bucket[i]; hp != 0; hp = hp->hnext) 294 if (hp->hval == hashval) { 295 fseek(mesgread, (long) hp->hpt, 0); 298 fprintf(stderr, "Got (from %d) %s\n", hp->hpt, buf); 303 if (!really || hp == 0) { 304 hp [all...] |
/freebsd-9.3-release/contrib/ipfilter/ipsend/ |
H A D | arp.c | 47 struct hostent *hp; local 53 if (!(hp = gethostbyname(host))) 58 bcopy((char *)hp->h_addr, (char *)address, 4); 78 struct hostent *hp; local 95 if ((hp = gethostbyaddr(ip, 4, AF_INET))) 97 if (!(ether_hostton(hp->h_name, (struct ether_addr *)ether))) 99 if (!(ether_hostton(hp->h_name, ether)))
|
H A D | larp.c | 35 struct hostent *hp; local 41 if (!(hp = gethostbyname(host))) 46 bcopy((char *)hp->h_addr, (char *)address, 4);
|
/freebsd-9.3-release/lib/libutil/ |
H A D | realhostname.c | 53 struct hostent *hp; local 56 hp = gethostbyaddr((const char *)ip, sizeof(*ip), AF_INET); 58 if (hp != NULL) { 59 strlcpy(trimmed, hp->h_name, sizeof(trimmed)); 64 strlcpy(lookup, hp->h_name, sizeof(lookup)); 65 hp = gethostbyname(lookup); 66 if (hp == NULL) 68 else for (; ; hp->h_addr_list++) { 69 if (*hp->h_addr_list == NULL) { 73 if (!memcmp(*hp [all...] |
/freebsd-9.3-release/sys/kern/ |
H A D | subr_hash.c | 92 LIST_HEAD(generic, generic) *hashtbl, *hp; 95 for (hp = hashtbl; hp <= &hashtbl[hashmask]; hp++) 96 KASSERT(LIST_EMPTY(hp), ("%s: hash not empty", __func__));
|
/freebsd-9.3-release/libexec/bootpd/ |
H A D | bootpd.c | 633 struct host *hp = NULL; 687 hp = (struct host *) hash_Lookup(hwhashtable, hashcode, hwlookcmp, 689 if (hp == NULL && 700 hp = (struct host *) hash_Lookup(hwhashtable, hashcode, 703 if (hp == NULL) { 713 (bp->bp_yiaddr).s_addr = hp->iaddr.s_addr; 726 hp = (struct host *) hash_Lookup(iphashtable, hashcode, iplookcmp, 728 if (hp == NULL) { 738 report(LOG_INFO, "found %s (%s)", inet_ntoa(hp->iaddr), 739 hp 629 struct host *hp = NULL; local [all...] |
/freebsd-9.3-release/cddl/contrib/opensolaris/common/ctf/ |
H A D | ctf_open.c | 110 init_symtab(ctf_file_t *fp, const ctf_header_t *hp, argument 117 uint_t objtoff = hp->cth_objtoff; 118 uint_t funcoff = hp->cth_funcoff; 151 if (objtoff >= hp->cth_funcoff || 162 if (funcoff >= hp->cth_typeoff) { 208 ctf_hash_t *hp; local 453 hp = &fp->ctf_structs; 456 hp = &fp->ctf_unions; 459 hp = &fp->ctf_enums; 462 hp 547 ctf_header_t hp; local [all...] |
/freebsd-9.3-release/contrib/tcp_wrappers/ |
H A D | tcpdmatch.c | 63 struct addrinfo hints, *hp, *res; local 65 struct hostent *hp; 184 if ((hp = find_inet_addr(server)) == 0) 193 for (res = hp, count = 0; res; res = res->ai_next, count++) { 196 for (count = 0; (addr = hp->h_addr_list[count]) != 0; count++) { 216 freeaddrinfo(hp); 218 free((char *) hp); 264 if ((hp = find_inet_addr(client)) == 0) 269 for (res = hp, count = 0; res; res = res->ai_next, count++) { 292 freeaddrinfo(hp); [all...] |
/freebsd-9.3-release/lib/libc/resolv/ |
H A D | res_mkquery.c | 105 HEADER *hp; local 123 hp = (HEADER *) buf; 124 hp->id = htons(++statp->id); 125 hp->opcode = op; 126 hp->rd = (statp->options & RES_RECURSE) != 0U; 127 hp->rcode = NOERROR; 150 hp->qdcount = htons(1); 171 hp->arcount = htons(1); 193 hp->ancount = htons(1); 212 HEADER *hp; local [all...] |
H A D | res_query.c | 117 HEADER *hp = (HEADER *) answer; local 125 hp->rcode = NOERROR; /*%< default */ 173 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { 177 p_rcode(hp->rcode), 178 ntohs(hp->ancount), 179 ntohs(hp->nscount), 180 ntohs(hp->arcount)); 182 switch (hp->rcode) { 218 HEADER *hp local [all...] |
/freebsd-9.3-release/usr.bin/mail/ |
H A D | tty.c | 60 grabh(struct header *hp, int gflags) argument 111 if (!ttyset && hp->h_to != NULL) 114 hp->h_to = 115 extract(readtty("To: ", detract(hp->h_to, 0)), GTO); 119 if (!ttyset && hp->h_subject != NULL) 122 hp->h_subject = readtty("Subject: ", hp->h_subject); 126 if (!ttyset && hp->h_cc != NULL) 129 hp->h_cc = 130 extract(readtty("Cc: ", detract(hp [all...] |
/freebsd-9.3-release/contrib/amd/fsinfo/ |
H A D | fsi_util.c | 303 compute_automount_point(char *buf, size_t l, host *hp, char *vn) argument 305 xsnprintf(buf, l, "%s/%s%s", autodir, hp->h_lochost, vn); 343 host *hp = CALLOC(struct host); local 345 hp->h_ioloc = current_location(); 346 hp->h_mask = 0; 348 return hp; 353 set_host(host *hp, int k, char *v) argument 357 if (hp->h_mask & m) { 361 hp->h_mask |= m; 372 dict_add(dict_of_hosts, v, (char *) hp); [all...] |
/freebsd-9.3-release/contrib/amd/wire-test/ |
H A D | wire-test.c | 62 struct hostent *hp = 0; local 93 hp = gethostbyname(testhost); 94 if (!hp) { 102 memmove((voidp) &ip->sin_addr, (voidp) hp->h_addr, sizeof(ip->sin_addr));
|
/freebsd-9.3-release/share/examples/find_interface/ |
H A D | find_interface.c | 60 struct hostent *hp; local 69 hp = gethostbyname(*argv); 70 if (!hp) { 74 memcpy(&remote.sin_addr, hp->h_addr_list[0], sizeof remote.sin_addr);
|
/freebsd-9.3-release/sys/netgraph/ |
H A D | ng_bpf.c | 111 static int ng_bpf_setprog(hook_p hook, const struct ng_bpf_hookprog *hp); 131 const struct ng_bpf_hookprog *hp; local 133 hp = (const struct ng_bpf_hookprog *) 135 return hp->bpf_prog_len; 318 hp = (struct ng_bpf_hookprog *)msg->data; local 322 if (msg->header.arglen < sizeof(*hp) 324 != NG_BPF_HOOKPROG_SIZE(hp->bpf_prog_len)) 328 if ((hook = ng_findhook(node, hp->thisHook)) == NULL) 332 if ((error = ng_bpf_setprog(hook, hp)) != 0) 339 struct ng_bpf_hookprog *hp; local 559 struct ng_bpf_hookprog *hp; local [all...] |
/freebsd-9.3-release/sys/fs/hpfs/ |
H A D | hpfs_vfsops.c | 447 struct hpfsnode *hp; local 458 hp = NULL; 473 hp = malloc(sizeof(struct hpfsnode), 479 free(hp, M_HPFSNO); 485 vp->v_data = hp; 491 mtx_init(&hp->h_interlock, "hpfsnode interlock", NULL, MTX_DEF); 493 hp->h_flag = H_INVAL; 494 hp->h_vp = vp; 495 hp->h_hpmp = hpmp; 496 hp [all...] |
/freebsd-9.3-release/usr.bin/talk/ |
H A D | io.c | 66 struct hostent *hp, *hp2; local 73 hp = gethostbyaddr((const char *)&his_machine_addr.s_addr, 75 if (hp != NULL) { 76 hp2 = gethostbyname(hp->h_name); 82 his_machine_name = strdup(hp->h_name);
|
/freebsd-9.3-release/usr.sbin/IPXrouted/ |
H A D | af.c | 88 ipxnet_hash(sipx, hp) 90 struct afhash *hp; 108 hp->afh_nethash = hash; 109 hp->afh_nethash ^= (hash >> 8); 110 hp->afh_nethash ^= (hash >> 16); 111 hp->afh_nethash ^= (hash >> 24); 116 hp->afh_hosthash = hash; 228 null_hash(addr, hp) 230 struct afhash *hp; 233 hp [all...] |
/freebsd-9.3-release/contrib/tcsh/ |
H A D | sh.lex.c | 148 lex(struct wordent *hp) argument 158 hp->next = hp->prev = hp; 159 hp->word = STRNULL; 169 cleanup_push(hp, lex_cleanup); 170 wdp = hp; 181 new->next = hp; 183 hp->prev = new; 188 cleanup_ignore(hp); 239 copylex(struct wordent *hp, struct wordent *fp) argument 676 struct wordent *hp, *ip; local 887 struct wordent *hp = &lexi; local 1150 struct Hist *hp; local 1276 struct Hist *hp; local [all...] |
/freebsd-9.3-release/contrib/sendmail/src/ |
H A D | daemon.c | 1657 register struct hostent *hp; local 1659 hp = sm_gethostbyname(addr, AF_INET); 1660 if (hp == NULL) 1665 while (*(hp->h_addr_list) != NULL && 1666 hp->h_addrtype != AF_INET) 1667 hp->h_addr_list++; 1668 if (*(hp->h_addr_list) == NULL) 1673 *(hp->h_addr_list), 1676 freehostent(hp); 1677 hp 1689 register struct hostent *hp; local 2113 register struct hostent *volatile hp = (struct hostent *) NULL; local 3222 register struct hostent *hp; local 3410 struct hostent *hp; local 3920 register struct hostent *hp; local 4400 register struct hostent *hp; local [all...] |
/freebsd-9.3-release/crypto/heimdal/lib/roken/ |
H A D | iruserok.c | 65 struct hostent *hp; local 75 if ((hp = gethostbyname(lhost)) == NULL) 79 for (pp = hp->h_addr_list; *pp; ++pp) 99 struct hostent *hp; local 111 if ((hp = gethostbyaddr((char *)&raddr, 115 strlcpy(hname, hp->h_name, sizeof(hname));
|
/freebsd-9.3-release/lib/libc/db/hash/ |
H A D | ndbm.c | 205 HTAB *hp; local 207 hp = (HTAB *)db->internal; 208 return (hp->error); 215 HTAB *hp; local 217 hp = (HTAB *)db->internal; 218 hp->error = 0;
|
/freebsd-9.3-release/lib/libc/gen/ |
H A D | getusershell.c | 155 char **hp; local 167 hp = hesiod_resolve(context, shellname, "shells"); 168 if (hp == NULL) { 177 for (hpi = 0; hp[hpi]; hpi++) 178 sl_add(sl, hp[hpi]); 179 free(hp);
|
/freebsd-9.3-release/lib/libipx/ |
H A D | ipx_addr.c | 105 int hb[6], *hp; local 189 hp = hb + i - 1; 191 while (hp > hb) { 192 (void)sscanf(bp, fmt, hp); 194 hp--; 197 (void)sscanf(buf, fmt, hp);
|
/freebsd-9.3-release/contrib/ntp/ntpd/ |
H A D | refclock_jupiter.c | 531 struct jheader *hp; local 554 while (instance->ssize > (int)sizeof(*hp) && (cc = jupiter_recv(instance)) > 0) { 558 hp = (struct jheader *)instance->sbuf; 559 sp = (u_short *)(hp + 1); 560 size = cc - sizeof(*hp); 561 switch (getshort(hp->id)) { 704 getshort(hp->id)); 915 jupiter_send(struct instance *instance, struct jheader *hp) argument 922 size = sizeof(*hp); 923 hp 959 struct jheader *hp; local 982 struct jheader *hp; local 1001 struct jheader *hp; local 1024 struct jheader *hp; local 1054 struct jheader *hp; local [all...] |