Home | History | Annotate | Download | only in irs

Lines Matching refs:se

45 	struct servent *se = getservbyname(name, proto);
49 if (se == NULL || (n = copy_servent(se, sptr, SERV_R_COPY)) != 0)
56 if (se == NULL)
59 return (copy_servent(se, sptr, SERV_R_COPY));
66 struct servent *se = getservbyport(port, proto);
70 if (se == NULL || (n = copy_servent(se, sptr, SERV_R_COPY)) != 0)
77 if (se == NULL)
80 return (copy_servent(se, sptr, SERV_R_COPY));
92 struct servent *se = getservent();
96 if (se == NULL || (n = copy_servent(se, sptr, SERV_R_COPY)) != 0)
103 if (se == NULL)
106 return (copy_servent(se, sptr, SERV_R_COPY));
144 copy_servent(struct servent *se, struct servent *sptr, SERV_R_COPY_ARGS) {
152 for (i = 0; se->s_aliases[i]; i++, numptr++) {
153 len += strlen(se->s_aliases[i]) + 1;
155 len += strlen(se->s_name) + 1;
156 len += strlen(se->s_proto) + 1;
165 sptr->s_port = se->s_port;
170 n = strlen(se->s_name) + 1;
171 strcpy(cp, se->s_name);
177 for (i = 0 ; se->s_aliases[i]; i++) {
178 n = strlen(se->s_aliases[i]) + 1;
179 strcpy(cp, se->s_aliases[i]);
186 n = strlen(se->s_proto) + 1;
187 strcpy(cp, se->s_proto);
195 copy_servent(struct servent *se, struct servent *sptr, SERV_R_COPY_ARGS) {
200 sptr->s_port = se->s_port;
205 if ((n = strlen(se->s_name) + 1) < (eob - cp)) {
206 strcpy(cp, se->s_name);
216 while (se->s_aliases[i] && i < (_MAXALIASES-1)) {
217 if ((n = strlen(se->s_aliases[i]) + 1) < (eob - cp)) {
218 strcpy(cp, se->s_aliases[i]);
229 if ((n = strlen(se->s_proto) + 1) < (eob - cp)) {
230 strcpy(cp, se->s_proto);