Lines Matching defs:slp
965 struct valuelist *slp;
973 slp = (struct valuelist *)malloc(sizeof(struct valuelist));
974 if (!slp)
976 slp->name = strdup(sp->s_name);
977 slp->proto = strdup(sp->s_proto);
978 if ((slp->name == NULL) || (slp->proto == NULL)) {
979 if (slp->name) free(slp->name);
980 if (slp->proto) free(slp->proto);
981 free(slp);
984 slp->port = ntohs((u_int16_t)sp->s_port); /*%< host byte order */
985 slp->next = servicelist;
986 slp->prev = NULL;
988 servicelist->prev = slp;
989 servicelist = slp;
996 struct valuelist *slp, *slp_next;
998 for (slp = servicelist; slp != NULL; slp = slp_next) {
999 slp_next = slp->next;
1000 free(slp->name);
1001 free(slp->proto);
1002 free(slp);
1010 struct valuelist *slp;
1018 slp = (struct valuelist *)malloc(sizeof(struct valuelist));
1019 if (!slp)
1021 slp->name = strdup(pp->p_name);
1022 if (slp->name == NULL) {
1023 free(slp);
1026 slp->port = pp->p_proto; /*%< host byte order */
1027 slp->next = protolist;
1028 slp->prev = NULL;
1030 protolist->prev = slp;
1031 protolist = slp;