Lines Matching refs:pptr

36 getprotobyname_r(const char *name, struct protoent *pptr, PROTO_R_ARGS) {  in getprotobyname_r()  argument
41 if (pe == NULL || (n = copy_protoent(pe, pptr, PROTO_R_COPY)) != 0) in getprotobyname_r()
44 *answerp = pptr; in getprotobyname_r()
51 return (copy_protoent(pe, pptr, PROTO_R_COPY)); in getprotobyname_r()
56 getprotobynumber_r(int proto, struct protoent *pptr, PROTO_R_ARGS) { in getprotobynumber_r() argument
61 if (pe == NULL || (n = copy_protoent(pe, pptr, PROTO_R_COPY)) != 0) in getprotobynumber_r()
64 *answerp = pptr; in getprotobynumber_r()
71 return (copy_protoent(pe, pptr, PROTO_R_COPY)); in getprotobynumber_r()
82 getprotoent_r(struct protoent *pptr, PROTO_R_ARGS) { in getprotoent_r() argument
87 if (pe == NULL || (n = copy_protoent(pe, pptr, PROTO_R_COPY)) != 0) in getprotoent_r()
90 *answerp = pptr; 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
155 pptr->p_proto = pe->p_proto; in copy_protoent()
162 pptr->p_name = cp; in copy_protoent()
166 pptr->p_aliases = (char **)ALIGN(buf); in copy_protoent()
170 pptr->p_aliases[i] = cp; in copy_protoent()
173 pptr->p_aliases[i] = NULL; 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()
191 pptr->p_name = cp; in copy_protoent()
199 pptr->p_aliases = pdptr->proto_aliases; in copy_protoent()
203 pptr->p_aliases[i] = cp; in copy_protoent()
210 pptr->p_aliases[i] = NULL; in copy_protoent()