/original-bsd/sys/deprecated/netimp/ |
H A D | if_imphost.c | 49 if (hp->h_imp == imp && hp->h_host == host) { 76 if (hp->h_imp == imp && hp->h_host == host) { 83 hp0 = hp; 100 hp = hp0; 109 return (hp); 129 hp++; 143 if (hp->h_q) 154 hostflush(hp) in hostflush() argument 217 for (; hm->hm_count > 0 && hp < lp; hp++) { in hostslowtimo() 218 if (hp->h_timer && --hp->h_timer == 0) { in hostslowtimo() [all …]
|
H A D | if_imphost.h | 48 #define hostfree(hp) { \ argument 49 if ((hp)->h_timer == 0 && (hp)->h_qcnt == 0 && \ 51 hostrelease(hp); \ 57 #define hostidle(hp) { (hp)->h_timer = HOSTTIMER; } argument 81 #define HOST_ENQUE(hp, m) { \ argument 83 (hp)->h_qcnt++; \ 84 if ((n = (hp)->h_q) == 0) \ 91 #define HOST_DEQUE(hp, m) { \ argument 92 if ((m) = (hp)->h_q) { \ 94 (hp)->h_q = 0; \ [all …]
|
H A D | if_imp.c | 320 if (hp) 321 hostfree(hp); 339 MIN(hp->h_qcnt, IMP_MAXHOSTMSG - hp->h_rfnm); 354 MIN(hp->h_qcnt, IMP_MAXHOSTMSG - hp->h_rfnm); 583 if (hp) { 596 } else if (hp->h_rfnm + hp->h_qcnt < imphqlen) { 598 if (hp->h_rfnm + hp->h_qcnt <= IMP_MAXHOSTMSG) 658 if (hp->h_qcnt && hp->h_rfnm < IMP_MAXHOSTMSG) { 697 if (hp->h_qcnt > IMP_MAXHOSTMSG - 1 - hp->h_rfnm) { 702 if (hp->h_rfnm == 0 && hp->h_qcnt == 0) [all …]
|
/original-bsd/old/vpr/ |
H A D | vpac.c | 190 *ap = hp; in dumpit() 191 hp = hp->h_link; in dumpit() 199 hp = *ap; in dumpit() 203 hp->h_count, hp->h_feetpages * price); in dumpit() 231 hp->h_name, hp->h_count); in rewrite() 232 hp = hp->h_link; in rewrite() 264 return(hp); 267 hp = (struct hent *) calloc(sizeof *hp, 1); 273 return(hp); 289 for (hp = hashtab[h]; hp != NIL; hp = hp->h_link) [all …]
|
/original-bsd/usr.sbin/lpr/pac/ |
H A D | pac.c | 228 *ap = hp; in dumpit() 229 hp = hp->h_link; in dumpit() 236 hp = *ap; in dumpit() 240 hp->h_feetpages, hp->h_count, hp->h_feetpages * price); in dumpit() 268 hp->h_name, hp->h_count); in rewrite() 269 hp = hp->h_link; in rewrite() 300 return(hp); 303 hp = (struct hent *) calloc(sizeof *hp, 1); 310 return(hp); 326 for (hp = hashtab[h]; hp != NULL; hp = hp->h_link) [all …]
|
/original-bsd/sys/deprecated/bbnnet/ |
H A D | hmp_subr.c | 54 register struct hmpcb *hp; variable 95 hp = intohmpcb(inp); 96 (void) m_free(dtom(hp)); 152 hp->hp_inpcb = inp; 201 hp = intohmpcb(inp); 227 hp = intohmpcb(inp); 231 hp->hp_rsystyp = 0; 232 hp->hp_rmsgtyp = 0; 233 hp->hp_rseq = 0; 234 hp->hp_rpasswd = 0; [all …]
|
H A D | hmp.c | 63 struct hmpcb *hp; variable 111 hp = intohmpcb(inp); 119 if ((hp->hp_lsystyp) && (hh->hh_systyp != hp->hp_lsystyp)) 122 if ((hp->hp_lpasswd) && (hh->hh_passwd != hp->hp_lpasswd)) 126 else if ((hp->hp_flags & HM_SEQOPT) && (hh->hh_passwd != hp->hp_lseq)) 129 hp->hp_lseq = htons(ntohs(hp->hp_lseq)+1); 134 if ((hp->hp_lmsgtyp) && (hh->hh_msgtyp != hp->hp_lmsgtyp) && 183 if ((hp->hp_rmsgtyp <=0) || (hp->hp_rmsgtyp > 102) || 184 ((hp->hp_rmsgtyp > 7) && (hp->hp_rmsgtyp < 100))) 223 hh->hh_seq = hp->hp_rseq; [all …]
|
/original-bsd/bin/csh/ |
H A D | hist.c | 50 for (hp = &Histlist; (np = hp->Hnext) != NULL;) 54 hp = np; 83 hfree(hp) in hfree() argument 87 freelex(&hp->Hlex); 88 xfree((ptr_t) hp); 135 struct Hist *hp; in dohist1() 140 for (; hp != 0; hp = hp->Hnext) { 142 hp->Href++; 146 phist(hp, hflg); 150 phist(hp, hflg); [all …]
|
/original-bsd/usr.sbin/amd/fsinfo/ |
H A D | wr_bparam.c | 39 static int write_boot_info(ef, hp) in write_boot_info() argument 41 host *hp; 44 fprintf(ef, "%s\troot=", hp->h_hostname); 45 errors += write_nfsname(ef, hp->h_netroot, hp->h_hostname); 47 errors += write_nfsname(ef, hp->h_netswap, hp->h_hostname); 64 host *hp; local 65 ITER(hp, host, q) 66 if (hp->h_netroot && hp->h_netswap) 67 errors += write_boot_info(ef, hp);
|
H A D | wr_fstab.c | 30 char *p = strchr(hp, '.'); 42 free(hp); 51 char *hp = strdup(h); local 58 hp, 66 free(hp); 195 host *hp; in find_fstab_type() 203 os_name = hp->h_os; 252 host *hp; local 254 ITER(hp, host, q) { 255 if (hp->h_disk_fs || hp->h_mount) { [all …]
|
H A D | wr_exportfs.c | 57 host *hp; local 59 ITER(hp, host, q) { 60 if (hp->h_disk_fs) { 61 FILE *ef = pref_open(exportfs_pref, hp->h_hostname, gen_hdr, hp->h_hostname); 63 show_new(hp->h_hostname); 64 errors += write_dkexports(ef, hp->h_disk_fs);
|
/original-bsd/usr.sbin/config.new/ |
H A D | hash.c | 146 hp->h_name = name; 147 hp->h_hash = h; 148 hp->h_next = NULL; 149 return (hp); 190 for (; (hp = *hpp) != NULL; hpp = &hp->h_next) 191 if (hp->h_hash == h && strcmp(hp->h_name, s) == 0) 192 return (hp->h_name); 227 for (; (hp = *hpp) != NULL; hpp = &hp->h_next) { 230 hp->h_value = val; 235 hp->h_value = val; [all …]
|
/original-bsd/usr.bin/xstr/ |
H A D | xstr.c | 298 hp = hp->hnext; 303 if ((hp = (struct hash *) calloc(1, sizeof (*hp))) == NULL) { 307 hp->hpt = mesgpt; 314 hp->hnew = new; 315 hp0->hnext = hp; 316 return (hp->hpt); 327 for (hp = bucket[i].hnext; hp != NULL; hp = hp->hnext) in flushsh() 328 if (hp->hnew) in flushsh() 338 for (hp = bucket[i].hnext; hp != NULL; hp = hp->hnext) { in flushsh() 339 found(hp->hnew, hp->hpt, hp->hstr); in flushsh() [all …]
|
/original-bsd/old/talk/talk/ |
H A D | get_addrs.c | 23 struct hostent *hp; local 28 hp = gethostbyname(my_machine_name); 29 if (hp == (struct hostent *) 0) { 33 bcopy(hp->h_addr, (char *)&my_machine_addr, hp->h_length); 41 hp = gethostbyname(his_machine_name); 42 if (hp == (struct hostent *) 0 ) { 46 bcopy(hp->h_addr, (char *) &his_machine_addr, hp->h_length);
|
/original-bsd/usr.bin/talk/ |
H A D | get_addrs.c | 23 struct hostent *hp; local 28 hp = gethostbyname(my_machine_name); 29 if (hp == NULL) { 34 bcopy(hp->h_addr, (char *)&my_machine_addr, hp->h_length); 40 hp = gethostbyname(his_machine_name); 41 if (hp == NULL) { 46 bcopy(hp->h_addr, (char *) &his_machine_addr, hp->h_length);
|
/original-bsd/usr.bin/make/ |
H A D | hash.c | 68 register struct Hash_Entry **hp; local 82 t->bucketPtr = hp = (struct Hash_Entry **)emalloc(sizeof(*hp) * i); 84 *hp++ = NULL; 193 struct Hash_Entry **hp; local 220 e->next = *hp; 221 *hp = e; 254 register Hash_Entry **hp, *p; local 259 (p = *hp) != NULL; hp = &p->next) { 261 *hp = p->next; 380 t->bucketPtr = hp = (struct Hash_Entry **) emalloc(sizeof(*hp) * i); [all …]
|
/original-bsd/old/mkhosts/ |
H A D | mkhosts.c | 29 register struct hostent *hp; local 60 while (hp = gethostent()) { 62 tp = hp->h_name; 68 for (sp = hp->h_aliases; *sp; sp++) { 79 bcopy(hp->h_addr, cp, hp->h_length); 80 cp += hp->h_length; 85 key.dptr = hp->h_name; 86 key.dsize = strlen(hp->h_name); 88 perror(hp->h_name); 99 key.dptr = hp->h_addr; [all …]
|
/original-bsd/libexec/bugfiler/ |
H A D | gethead.c | 55 register HEADER *hp; /* mail header pointer */ local 72 for (hp = mailhead; hp->found != ERR; ++hp) 73 if (!hp->found) 74 if (!strncmp(hp->tag, bfr, hp->len)) { 75 if (hp->valid && !((*(hp->valid))(bfr))) 77 if (!(hp->line = 80 (void)strcpy(hp->line, bfr); 81 hp->found = YES; 84 if ((hp->found == ERR || hp->redist) && redist)
|
/original-bsd/usr.bin/mail/ |
H A D | send.c | 286 grabh(hp, GCC); 302 to = usermap(cat(hp->h_bcc, cat(hp->h_to, hp->h_cc))); 317 fixhead(hp, to); 376 hp->h_to = NIL; 377 hp->h_cc = NIL; 378 hp->h_bcc = NIL; 381 hp->h_to = 384 hp->h_cc = 387 hp->h_bcc = 396 infix(hp, fi) in infix() argument [all …]
|
/original-bsd/usr.sbin/timed/timedc/ |
H A D | cmds.c | 45 struct hostent *hp; variable 176 hp = gethostbyname(*argv); 177 if (hp == NULL) { 184 bcopy(hp->h_addr, &server.sin_addr.s_addr, hp->h_length); 200 hp->h_name); 215 hp->h_length); 279 if (hp == 0) { 284 bcopy(hp->h_addr, &dest.sin_addr.s_addr, hp->h_length); 362 if (hp == NULL) { 370 bcopy(hp->h_addr, &sin.sin_addr.s_addr, hp->h_length); [all …]
|
/original-bsd/usr.bin/mkstr/ |
H A D | mkstr.c | 228 register struct hash *hp; local 241 for (hp = bucket[i]; hp != 0; hp = hp->hnext) 242 if (hp->hval == hashval) { 243 fseek(mesgread, (long) hp->hpt, 0); 251 if (!really || hp == 0) { 252 hp = (struct hash *) calloc(1, sizeof *hp); 253 hp->hnext = bucket[i]; 254 hp->hval = hashval; 255 hp->hpt = really ? ftell(mesgwrite) : fakept; 260 bucket[i] = hp; [all …]
|
/original-bsd/usr.bin/rlogin/ |
H A D | kcmd.c | 71 struct hostent *hp; local 77 hp = gethostbyname(*ahost); 78 if (hp == NULL) { 84 strcpy(host_save, hp->h_name); 106 sin.sin_family = hp->h_addrtype; 108 bcopy(hp->h_addr, (caddr_t)&sin.sin_addr, hp->h_length); 110 bcopy(hp->h_addr_list[0], (caddr_t)&sin.sin_addr, hp->h_length); 129 if (hp->h_addr_list[1] != NULL) { 137 hp->h_addr_list++; 139 hp->h_length); [all …]
|
/original-bsd/usr.bin/finger/ |
H A D | net.c | 37 struct hostent *hp, def; local 53 hp = &def; 54 } else if (!(hp = gethostbyname(host))) { 63 sin.sin_family = hp->h_addrtype; 64 bcopy(hp->h_addr, (char *)&sin.sin_addr, hp->h_length); 66 if ((s = socket(hp->h_addrtype, SOCK_STREAM, 0)) < 0) { 72 (void)printf("[%s]\n", hp->h_name);
|
/original-bsd/lib/libcompat/4.3/ |
H A D | rexec.c | 33 struct hostent *hp; local 38 hp = gethostbyname(*ahost); 39 if (hp == 0) { 43 *ahost = hp->h_name; 44 ruserpass(hp->h_name, &name, &pass); 51 sin.sin_family = hp->h_addrtype; 53 bcopy(hp->h_addr, (caddr_t)&sin.sin_addr, hp->h_length); 61 perror(hp->h_name);
|
/original-bsd/usr.bin/whois/ |
H A D | whois.c | 35 struct hostent *hp; local 56 hp = gethostbyname(host); 57 if (hp == NULL) { 62 host = hp->h_name; 63 s = socket(hp->h_addrtype, SOCK_STREAM, 0); 69 sin.sin_family = hp->h_addrtype; 74 bcopy(hp->h_addr, (char *)&sin.sin_addr, hp->h_length);
|