Lines Matching refs:pvt

70 struct pvt {
92 static void add_group_to_list(struct pvt *, const char *, int);
93 static void add_tuple_to_list(struct pvt *, const char *, char *);
94 static void tmpfree(struct pvt *);
101 struct pvt *pvt;
108 if (!(pvt = memget(sizeof *pvt))) {
113 memset(pvt, 0, sizeof *pvt);
114 pvt->nis_domain = ((struct nis_p *)this->private)->domain;
115 ng->private = pvt;
128 struct pvt *pvt = (struct pvt *)this->private;
130 tmpfree(pvt);
131 memput(pvt, sizeof *pvt);
137 struct pvt *pvt = (struct pvt *)this->private;
139 if (!pvt->cur)
141 *host = pvt->cur->host;
142 *user = pvt->cur->user;
143 *domain = pvt->cur->domain;
144 pvt->cur = pvt->cur->next;
152 struct pvt *pvt = (struct pvt *)this->private;
155 tmpfree(pvt);
156 add_group_to_list(pvt, name, strlen(name));
157 for (cur = pvt->tmp; cur; cur = cur->next) {
163 tmpfree(pvt);
169 struct pvt *pvt = (struct pvt *)this->private;
172 if (pvt->tmpgroup) {
173 if (pvt->tmp && !strcmp(pvt->tmpgroup, name))
175 tmpfree(pvt);
177 pvt->tmpgroup = strdup(name);
178 add_group_to_list(pvt, name, strlen(name));
180 pvt->cur = pvt->tmp;
192 add_group_to_list(struct pvt *pvt, const char *name, int len) {
199 for (tmp = pvt->tmp; tmp; tmp = tmp->next)
204 r = yp_match(pvt->nis_domain, netgroup_map, nametmp, len,
215 add_tuple_to_list(pvt, name, cp);
217 add_group_to_list(pvt, cp, strlen(cp));
224 add_tuple_to_list(struct pvt *pvt, const char *name, char *cp) {
279 tmp->next = pvt->tmp;
280 pvt->tmp = tmp;
288 tmpfree(struct pvt *pvt) {
291 if (pvt->tmpgroup) {
292 free(pvt->tmpgroup);
293 pvt->tmpgroup = NULL;
295 for (cur = pvt->tmp; cur; cur = next) {
299 pvt->tmp = NULL;