Lines Matching refs:se
43 struct servent *se = getservbyname(name, proto);
47 if (se == NULL || (n = copy_servent(se, sptr, SERV_R_COPY)) != 0)
54 if (se == NULL)
57 return (copy_servent(se, sptr, SERV_R_COPY));
64 struct servent *se = getservbyport(port, proto);
68 if (se == NULL || (n = copy_servent(se, sptr, SERV_R_COPY)) != 0)
75 if (se == NULL)
78 return (copy_servent(se, sptr, SERV_R_COPY));
90 struct servent *se = getservent();
94 if (se == NULL || (n = copy_servent(se, sptr, SERV_R_COPY)) != 0)
101 if (se == NULL)
104 return (copy_servent(se, sptr, SERV_R_COPY));
142 copy_servent(struct servent *se, struct servent *sptr, SERV_R_COPY_ARGS) {
150 for (i = 0; se->s_aliases[i]; i++, numptr++) {
151 len += strlen(se->s_aliases[i]) + 1;
153 len += strlen(se->s_name) + 1;
154 len += strlen(se->s_proto) + 1;
163 sptr->s_port = se->s_port;
168 n = strlen(se->s_name) + 1;
169 strcpy(cp, se->s_name);
175 for (i = 0 ; se->s_aliases[i]; i++) {
176 n = strlen(se->s_aliases[i]) + 1;
177 strcpy(cp, se->s_aliases[i]);
184 n = strlen(se->s_proto) + 1;
185 strcpy(cp, se->s_proto);
193 copy_servent(struct servent *se, struct servent *sptr, SERV_R_COPY_ARGS) {
198 sptr->s_port = se->s_port;
203 if ((n = strlen(se->s_name) + 1) < (eob - cp)) {
204 strcpy(cp, se->s_name);
214 while (se->s_aliases[i] && i < (_MAXALIASES-1)) {
215 if ((n = strlen(se->s_aliases[i]) + 1) < (eob - cp)) {
216 strcpy(cp, se->s_aliases[i]);
227 if ((n = strlen(se->s_proto) + 1) < (eob - cp)) {
228 strcpy(cp, se->s_proto);