Lines Matching defs:attrval

431 	struct attrval		*prevattrval;	/* * to prev attr/val struct */
432 struct attrval *attrval; /* * to current struct */
548 if ((attrval = devtabent->attrlist) != NULL)
550 if (strcmp(attrval->attr,
559 (attrval = attrval->next));
564 if (attrval =
565 malloc(sizeof (struct attrval))) {
568 attrval->attr = name;
569 attrval->val = val;
570 attrval->next = NULL;
576 prevattrval->next = attrval;
577 else devtabent->attrlist = attrval;
578 prevattrval = attrval;
581 /* malloc() for attrval failed */
641 struct attrval *attrval; /* Ptr to attr/val pair */
688 if ((attrval = rec->attrlist) != NULL) do { /* Attributes */
689 if (attrval->attr)
690 size += (strlen(attrval->attr)*2); /* attr */
691 if (attrval->val) {
693 size += (strlen(attrval->val)*2) +4;
695 } while ((attrval = attrval->next) != NULL); /* Next attr/val */
721 if ((attrval = rec->attrlist) != NULL)
723 p = strcatesc(p, attrval->attr);
726 p = strcatesc(p, attrval->val);
728 if ((attrval = attrval->next) != NULL)
730 } while (attrval);
747 * int _adddevtabrec(alias, attrval)
749 * char **attrval
753 * the list referenced by <attrval>.
760 * attrval The pointer to the first item of a list of attributes
771 char **attrval) /* Attributes for that device */
807 if (devtabent = mkdevtabent(alias, attrval)) {
829 * int _moddevtabrec(device, attrval)
831 * char **attrval
840 * attrval The first attr/val value in the list (attr=val) of
850 char **attrval) /* Attributes to add or change */
856 struct attrval *new; /* New attribute/value desc */
857 struct attrval *old; /* Old attribute/value desc */
858 struct attrval *newnew; /* Next "new" value to look at */
859 struct attrval *prevnew; /* Previous item in the 'new' list */
875 if (chg = mkdevtabent(device, attrval)) {
1096 struct attrval *attrval; /* Ptr to attr/val desc */
1097 struct attrval *prevattrval; /* Ptr to prev attr/val */
1171 if ((attrval = modent->attrlist) != NULL) do {
1172 if (strcmp(*pp, attrval->attr) == 0) {
1176 free(attrval->attr);
1177 free(attrval->val);
1179 prevattrval->next = attrval->next;
1180 free(attrval);
1181 attrval = prevattrval->next;
1183 modent->attrlist = attrval->next;
1184 free(attrval);
1185 attrval = modent->attrlist;
1188 prevattrval = attrval; /* Advance to next */
1189 attrval = attrval->next;
1191 } while (!found && attrval);