Lines Matching defs:newlc
112 struct loginclass *lc, *newlc;
117 newlc = malloc(sizeof(*newlc), M_LOGINCLASS, M_ZERO | M_WAITOK);
118 racct_create(&newlc->lc_racct);
128 racct_destroy(&newlc->lc_racct);
129 free(newlc, M_LOGINCLASS);
134 strcpy(newlc->lc_name, name);
135 refcount_init(&newlc->lc_refcount, 1);
136 LIST_INSERT_HEAD(&loginclasses, newlc, lc_next);
139 return (newlc);
190 struct loginclass *newlc;
200 newlc = loginclass_find(lcname);
201 if (newlc == NULL)
207 newcred->cr_loginclass = newlc;