Lines Matching defs:sptr
42 struct servent *sptr, SERV_R_ARGS) {
47 if (se == NULL || (n = copy_servent(se, sptr, SERV_R_COPY)) != 0)
50 *answerp = sptr;
57 return (copy_servent(se, sptr, SERV_R_COPY));
63 struct servent *sptr, SERV_R_ARGS) {
68 if (se == NULL || (n = copy_servent(se, sptr, SERV_R_COPY)) != 0)
71 *answerp = sptr;
78 return (copy_servent(se, sptr, SERV_R_COPY));
89 getservent_r(struct servent *sptr, SERV_R_ARGS) {
94 if (se == NULL || (n = copy_servent(se, sptr, SERV_R_COPY)) != 0)
97 *answerp = sptr;
104 return (copy_servent(se, sptr, SERV_R_COPY));
142 copy_servent(struct servent *se, struct servent *sptr, SERV_R_COPY_ARGS) {
163 sptr->s_port = se->s_port;
170 sptr->s_name = cp;
174 sptr->s_aliases = (char **)ALIGN(buf);
178 sptr->s_aliases[i] = cp;
181 sptr->s_aliases[i] = NULL;
186 sptr->s_proto = cp;
193 copy_servent(struct servent *se, struct servent *sptr, SERV_R_COPY_ARGS) {
198 sptr->s_port = se->s_port;
205 sptr->s_name = cp;
213 sptr->s_aliases = sdptr->serv_aliases;
217 sptr->s_aliases[i] = cp;
224 sptr->s_aliases[i] = NULL;
229 sptr->s_proto = cp;