Lines Matching defs:hp

751 	struct hostent *hp = NULL;
836 if (hp == NULL)
837 hp = gethostbyaddr((caddr_t)&saddr,
839 if (hp)
840 add_mlist(hp->h_name, dirpath);
871 hp = gethostbyaddr((caddr_t)&saddr, sizeof(saddr), AF_INET);
872 if (hp)
873 del_mlist(hp->h_name, dirpath);
883 hp = gethostbyaddr((caddr_t)&saddr, sizeof(saddr), AF_INET);
884 if (hp)
885 del_mlist(hp->h_name, NULL);
996 struct hostlist *hp;
1013 hp = dp->dp_hosts;
1014 while (hp) {
1015 grp = hp->ht_grp;
1031 hp = hp->ht_next;
1032 if (gotalldir && hp == NULL) {
1033 hp = adp->dp_hosts;
1520 struct hostlist *hp;
1531 hp = get_ht();
1532 hp->ht_grp = grp;
1533 hp->ht_next = ep->ex_defdir->dp_hosts;
1534 ep->ex_defdir->dp_hosts = hp;
1559 struct hostlist *hp;
1584 hp = get_ht();
1585 hp->ht_grp = grp;
1586 hp->ht_next = dp->dp_hosts;
1587 dp->dp_hosts = hp;
1621 struct hostlist *hp;
1628 hp = dp->dp_hosts;
1629 while (hp) {
1630 grp = hp->ht_grp;
1637 *hostsetp = (hp->ht_flag | DP_HOSTSET);
1646 *hostsetp = (hp->ht_flag | DP_HOSTSET);
1651 hp = hp->ht_next;
1793 struct hostent *hp, *nhp, t_host;
1802 if ((hp = gethostbyname(cp)) == NULL) {
1808 if ((hp = gethostbyaddr((caddr_t)&saddr.s_addr,
1810 hp = &t_host;
1811 hp->h_name = cp;
1812 hp->h_addrtype = AF_INET;
1813 hp->h_length = sizeof (u_int32_t);
1814 hp->h_addr_list = aptr;
1829 !strcmp(checkgrp->gr_ptr.gt_hostent->h_name, hp->h_name)) {
1839 memcpy(nhp, hp, sizeof(struct hostent));
1840 i = strlen(hp->h_name)+1;
1844 memcpy(nhp->h_name, hp->h_name, i);
1845 addrp = hp->h_addr_list;
1852 addrp = hp->h_addr_list;
1854 *naddrp = malloc(hp->h_length);
1857 memcpy(*naddrp, *addrp, hp->h_length);
1863 fprintf(stderr, "got host %s\n", hp->h_name);
1887 free_host(struct hostlist *hp)
1891 while (hp) {
1892 hp2 = hp;
1893 hp = hp->ht_next;
1901 struct hostlist *hp;
1903 hp = malloc(sizeof (struct hostlist));
1904 if (hp == NULL)
1906 hp->ht_next = NULL;
1907 hp->ht_flag = 0;
1908 return (hp);