Lines Matching refs:pe

37 	struct protoent *pe = getprotobyname(name);  in getprotobyname_r()  local
41 if (pe == NULL || (n = copy_protoent(pe, pptr, PROTO_R_COPY)) != 0) in getprotobyname_r()
48 if (pe == NULL) in getprotobyname_r()
51 return (copy_protoent(pe, pptr, PROTO_R_COPY)); in getprotobyname_r()
57 struct protoent *pe = getprotobynumber(proto); in getprotobynumber_r() local
61 if (pe == NULL || (n = copy_protoent(pe, pptr, PROTO_R_COPY)) != 0) in getprotobynumber_r()
68 if (pe == NULL) in getprotobynumber_r()
71 return (copy_protoent(pe, pptr, PROTO_R_COPY)); in getprotobynumber_r()
83 struct protoent *pe = getprotoent(); in getprotoent_r() local
87 if (pe == NULL || (n = copy_protoent(pe, pptr, PROTO_R_COPY)) != 0) in getprotoent_r()
94 if (pe == NULL) in getprotoent_r()
97 return (copy_protoent(pe, pptr, PROTO_R_COPY)); in getprotoent_r()
135 copy_protoent(struct protoent *pe, struct protoent *pptr, PROTO_R_COPY_ARGS) { in copy_protoent() argument
143 for (i = 0; pe->p_aliases[i]; i++, numptr++) { in copy_protoent()
144 len += strlen(pe->p_aliases[i]) + 1; in copy_protoent()
146 len += strlen(pe->p_name) + 1; in copy_protoent()
155 pptr->p_proto = pe->p_proto; in copy_protoent()
160 n = strlen(pe->p_name) + 1; in copy_protoent()
161 strcpy(cp, pe->p_name); in copy_protoent()
167 for (i = 0 ; pe->p_aliases[i]; i++) { in copy_protoent()
168 n = strlen(pe->p_aliases[i]) + 1; in copy_protoent()
169 strcpy(cp, pe->p_aliases[i]); in copy_protoent()
179 copy_protoent(struct protoent *pe, struct protoent *pptr, PROTO_R_COPY_ARGS) { in copy_protoent() argument
184 pptr->p_proto = pe->p_proto; in copy_protoent()
189 if ((n = strlen(pe->p_name) + 1) < (eob - cp)) { in copy_protoent()
190 strcpy(cp, pe->p_name); in copy_protoent()
200 while (pe->p_aliases[i] && i < (_MAXALIASES-1)) { in copy_protoent()
201 if ((n = strlen(pe->p_aliases[i]) + 1) < (eob - cp)) { in copy_protoent()
202 strcpy(cp, pe->p_aliases[i]); in copy_protoent()