Lines Matching defs:serv
54 struct servent serv;
126 if (pvt->serv.s_aliases)
127 free(pvt->serv.s_aliases);
218 pvt->serv.s_name = p;
225 pvt->serv.s_proto = p;
232 pvt->serv.s_port = htons((u_short) atoi(p));
239 if ((num + 1) >= max || !pvt->serv.s_aliases) {
241 new = realloc(pvt->serv.s_aliases,
247 pvt->serv.s_aliases = new;
249 pvt->serv.s_aliases[num++] = p;
255 if (!pvt->serv.s_aliases)
256 pvt->serv.s_aliases = malloc(sizeof(char *));
257 if (!pvt->serv.s_aliases)
259 pvt->serv.s_aliases[num] = NULL;
260 return (&pvt->serv);
264 if (pvt->serv.s_aliases) {
265 free(pvt->serv.s_aliases);
266 pvt->serv.s_aliases = NULL;