Lines Matching refs:ld
70 struct label_default *ld;
72 while ((ld = LIST_FIRST(&label_default_head))) {
73 free(ld->ld_name);
74 free(ld->ld_labels);
75 LIST_REMOVE(ld, ld_entries);
76 free(ld);
92 struct label_default *ld, *ld_new;
110 ld_new = malloc(sizeof(*ld));
122 for (ld = LIST_FIRST(&label_default_head); ld != NULL;
123 ld = LIST_NEXT(ld, ld_entries)) {
124 if (strcmp(name, ld->ld_name) == 0)
128 if (ld != NULL) {
129 free(ld->ld_labels);
130 ld->ld_labels = labels_dup;
133 ld = ld_new;
134 ld->ld_name = name_dup;
135 ld->ld_labels = labels_dup;
141 LIST_INSERT_HEAD(&label_default_head, ld, ld_entries);
362 struct label_default *ld;
369 for (ld = LIST_FIRST(&label_default_head); ld != NULL;
370 ld = LIST_NEXT(ld, ld_entries)) {
371 if (strcmp(name, ld->ld_name) == 0)
372 return (mac_prepare(mac, ld->ld_labels));