Home | History | Annotate | Download | only in irs

Lines Matching defs:he

44 	struct hostent *he = gethostbyname(name);
54 if (he == NULL || (n = copy_hostent(he, hptr, HOST_R_COPY)) != 0)
61 if (he == NULL)
64 return (copy_hostent(he, hptr, HOST_R_COPY));
71 struct hostent *he = gethostbyaddr(addr, len, type);
81 if (he == NULL || (n = copy_hostent(he, hptr, HOST_R_COPY)) != 0)
88 if (he == NULL)
91 return (copy_hostent(he, hptr, HOST_R_COPY));
103 struct hostent *he = gethostent();
113 if (he == NULL || (n = copy_hostent(he, hptr, HOST_R_COPY)) != 0)
120 if (he == NULL)
123 return (copy_hostent(he, hptr, HOST_R_COPY));
161 copy_hostent(struct hostent *he, struct hostent *hptr, HOST_R_COPY_ARGS) {
170 for (i = 0; he->h_addr_list[i]; i++, nptr++) {
171 len += he->h_length;
173 for (i = 0; he->h_aliases[i]; i++, nptr++) {
174 len += strlen(he->h_aliases[i]) + 1;
176 len += strlen(he->h_name) + 1;
185 hptr->h_addrtype = he->h_addrtype;
186 n = hptr->h_length = he->h_length;
193 for (i = 0; he->h_addr_list[i]; i++ , ptr++) {
194 memcpy(cp, he->h_addr_list[i], n);
202 n = strlen(he->h_name) + 1;
203 strcpy(cp, he->h_name);
209 for (i = 0 ; he->h_aliases[i]; i++) {
210 n = strlen(he->h_aliases[i]) + 1;
211 strcpy(cp, he->h_aliases[i]);
221 copy_hostent(struct hostent *he, struct hostent *hptr, HOST_R_COPY_ARGS) {
226 hptr->h_addrtype = he->h_addrtype;
227 n = hptr->h_length = he->h_length;
234 while (he->h_addr_list[i] && i < (_MAXADDRS)) {
236 memcpy(cp, he->h_addr_list[i], n);
247 if ((n = strlen(he->h_name) + 1) < (eob - cp)) {
248 strcpy(cp, he->h_name);
258 while (he->h_aliases[i] && i < (_MAXALIASES-1)) {
259 if ((n = strlen(he->h_aliases[i]) + 1) < (eob - cp)) {
260 strcpy(cp, he->h_aliases[i]);