Lines Matching refs:lp
140 struct linelist *lp, *olp; in __endnetgrent() local
143 lp = linehead; in __endnetgrent()
144 while (lp) { in __endnetgrent()
145 olp = lp; in __endnetgrent()
146 lp = lp->l_next; in __endnetgrent()
184 struct linelist *lp = linehead; in parse_netgrp() local
189 while (lp) { in parse_netgrp()
190 if (!strcmp(group, lp->l_groupname)) in parse_netgrp()
192 lp = lp->l_next; in parse_netgrp()
194 if (lp == (struct linelist *)0 && in parse_netgrp()
195 (lp = read_for_group(group)) == (struct linelist *)0) in parse_netgrp()
197 if (lp->l_parsed) { in parse_netgrp()
205 warnx("cycle in netgroup %s", lp->l_groupname); in parse_netgrp()
209 lp->l_parsed = 1; in parse_netgrp()
210 pos = lp->l_line; in parse_netgrp()
265 lp->l_groupname); in parse_netgrp()
290 struct linelist *lp; in read_for_group() local
311 lp = (struct linelist *)malloc(sizeof (*lp)); in read_for_group()
312 lp->l_parsed = 0; in read_for_group()
313 lp->l_groupname = (char *)malloc(len + 1); in read_for_group()
314 bcopy(spos, lp->l_groupname, len); in read_for_group()
315 *(lp->l_groupname + len) = '\0'; in read_for_group()
350 lp->l_line = linep; in read_for_group()
351 lp->l_next = linehead; in read_for_group()
352 linehead = lp; in read_for_group()
357 if (!strcmp(lp->l_groupname, group)) in read_for_group()
359 return (lp); in read_for_group()