Lines Matching defs:proto
51 struct protoent proto;
112 if (pvt->proto.p_aliases)
113 free(pvt->proto.p_aliases);
125 struct protoent *proto;
131 proto = parse_hes_list(this, hes_list);
133 return (proto);
140 struct protoent *proto;
148 proto = parse_hes_list(this, hes_list);
150 return (proto);
218 pvt->proto.p_name = p;
225 pvt->proto.p_proto = atoi(p);
232 if ((num + 1) >= max || !pvt->proto.p_aliases) {
234 new = realloc(pvt->proto.p_aliases,
240 pvt->proto.p_aliases = new;
242 pvt->proto.p_aliases[num++] = p;
248 if (!pvt->proto.p_aliases)
249 pvt->proto.p_aliases = malloc(sizeof(char *));
250 if (!pvt->proto.p_aliases)
252 pvt->proto.p_aliases[num] = NULL;
253 return (&pvt->proto);
257 if (pvt->proto.p_aliases) {
258 free(pvt->proto.p_aliases);
259 pvt->proto.p_aliases = NULL;