Lines Matching defs:dgrp
135 struct dgrptabent *dgrp; /* Dgrp information struct */
179 while (!errorflag && (dgrp = _getdgrptabent())) {
180 if (!dgrp->comment && (listallflag ||
181 isindevlist(dgrp, devlist)))
182 errorflag = !addtodgrplist(dgrp);
183 _freedgrptabent(dgrp);
195 while (!errorflag && (dgrp = _getdgrptabent())) {
196 if (!dgrp->comment && isincallerslist(dgrp, dgroups) &&
197 (listallflag || isindevlist(dgrp, devlist))) {
198 errorflag = !addtodgrplist(dgrp);
200 _freedgrptabent(dgrp);
210 while (!errorflag && (dgrp = _getdgrptabent())) {
211 if (!dgrp->comment && !isincallerslist(dgrp, dgroups) &&
212 (listallflag || isindevlist(dgrp, devlist))) {
213 errorflag = !addtodgrplist(dgrp);
215 _freedgrptabent(dgrp);
250 * int addtodgrplist(dgrp)
251 * struct dgrptabent *dgrp
253 * Adds the device group described by the "dgrp" structure to the
257 * dgrp Describes the device-group we're adding
264 addtodgrplist(struct dgrptabent *dgrp)
268 struct dgrplist *p; /* Running dgrp list ptr */
269 struct dgrplist *q; /* Another Running dgrp list ptr */
280 while (p && ((cmpval = strcmp(p->name, dgrp->name)) < 0)) {
293 if (newstr = malloc(strlen(dgrp->name)+1)) {
296 newnode->name = strcpy(newstr, dgrp->name);
313 * int isindevlist(dgrp, devlist)
314 * struct dgrptabent *dgrp
318 * group <dgrp> for any of the devices listed in the list of devices
320 * found in <dgrp>, otherwise it returns false.
323 * dgrp The device group to examine
328 * group <dgrp>, FALSE otherwise
333 struct dgrptabent *dgrp, /* Dgrp to search for */
337 struct member *pmbr; /* Next member of the dgrp list */
341 int notfound; /* TRUE if no mbr of dgrp is in dev list */
351 for (pmbr = dgrp->membership; notfound && pmbr; pmbr = pmbr->next) {
388 * int isincallerslist(dgrp, dgroups)
389 * struct dgrptabent *dgrp
393 * group described by "dgrp"
396 * dgrp Device group to search for
406 struct dgrptabent *dgrp, /* Dgrp to search for */
415 * in the structure described by <dgrp>.
423 if (strcmp(dgrp->name, *pdgrp) == 0) notfound = FALSE;