Lines Matching defs:pe
43 struct protoent *pe = getprotobyname(name);
47 if (pe == NULL || (n = copy_protoent(pe, pptr, PROTO_R_COPY)) != 0)
54 if (pe == NULL)
57 return (copy_protoent(pe, pptr, PROTO_R_COPY));
63 struct protoent *pe = getprotobynumber(proto);
67 if (pe == NULL || (n = copy_protoent(pe, pptr, PROTO_R_COPY)) != 0)
74 if (pe == NULL)
77 return (copy_protoent(pe, pptr, PROTO_R_COPY));
89 struct protoent *pe = getprotoent();
93 if (pe == NULL || (n = copy_protoent(pe, pptr, PROTO_R_COPY)) != 0)
100 if (pe == NULL)
103 return (copy_protoent(pe, pptr, PROTO_R_COPY));
141 copy_protoent(struct protoent *pe, struct protoent *pptr, PROTO_R_COPY_ARGS) {
149 for (i = 0; pe->p_aliases[i]; i++, numptr++) {
150 len += strlen(pe->p_aliases[i]) + 1;
152 len += strlen(pe->p_name) + 1;
161 pptr->p_proto = pe->p_proto;
166 n = strlen(pe->p_name) + 1;
167 strcpy(cp, pe->p_name);
173 for (i = 0 ; pe->p_aliases[i]; i++) {
174 n = strlen(pe->p_aliases[i]) + 1;
175 strcpy(cp, pe->p_aliases[i]);
185 copy_protoent(struct protoent *pe, struct protoent *pptr, PROTO_R_COPY_ARGS) {
190 pptr->p_proto = pe->p_proto;
195 if ((n = strlen(pe->p_name) + 1) < (eob - cp)) {
196 strcpy(cp, pe->p_name);
206 while (pe->p_aliases[i] && i < (_MAXALIASES-1)) {
207 if ((n = strlen(pe->p_aliases[i]) + 1) < (eob - cp)) {
208 strcpy(cp, pe->p_aliases[i]);