Lines Matching refs:lp
135 struct linelist *lp, *olp; in __endnetgrent() local
138 lp = linehead; in __endnetgrent()
139 while (lp) { in __endnetgrent()
140 olp = lp; in __endnetgrent()
141 lp = lp->l_next; in __endnetgrent()
179 struct linelist *lp = linehead; in parse_netgrp() local
184 while (lp) { in parse_netgrp()
185 if (!strcmp(group, lp->l_groupname)) in parse_netgrp()
187 lp = lp->l_next; in parse_netgrp()
189 if (lp == (struct linelist *)0 && in parse_netgrp()
190 (lp = read_for_group(group)) == (struct linelist *)0) in parse_netgrp()
192 if (lp->l_parsed) { in parse_netgrp()
200 warnx("cycle in netgroup %s", lp->l_groupname); in parse_netgrp()
204 lp->l_parsed = 1; in parse_netgrp()
205 pos = lp->l_line; in parse_netgrp()
260 lp->l_groupname); in parse_netgrp()
285 struct linelist *lp; in read_for_group() local
306 lp = (struct linelist *)malloc(sizeof (*lp)); in read_for_group()
307 lp->l_parsed = 0; in read_for_group()
308 lp->l_groupname = (char *)malloc(len + 1); in read_for_group()
309 bcopy(spos, lp->l_groupname, len); in read_for_group()
310 *(lp->l_groupname + len) = '\0'; in read_for_group()
345 lp->l_line = linep; in read_for_group()
346 lp->l_next = linehead; in read_for_group()
347 linehead = lp; in read_for_group()
352 if (!strcmp(lp->l_groupname, group)) in read_for_group()
354 return (lp); in read_for_group()