Home | History | Annotate | Download | only in openbsd-compat

Lines Matching defs:cp

57 	struct ncache *cp;
59 cp = c_uid + (uid & MASK);
60 if (cp->uid != uid || cp->name == NULL) {
72 cp->uid = uid;
73 if (cp->name != NULL)
74 free(cp->name);
75 cp->name = strdup(pw ? pw->pw_name : nbuf);
77 return (cp->name);
92 struct ncache *cp;
94 cp = c_gid + (gid & MASK);
95 if (cp->gid != gid || cp->name == NULL) {
107 cp->gid = gid;
108 if (cp->name != NULL)
109 free(cp->name);
110 cp->name = strdup(gr ? gr->gr_name : nbuf);
112 return (cp->name);