Lines Matching refs:sac
93 struct sec_action *sac; in is_remove_section() local
95 sac = lookup_sec_act(ecp, name, 0); in is_remove_section()
96 if ((ecp->flags & SEC_REMOVE) && sac != NULL && sac->remove) in is_remove_section()
98 if ((ecp->flags & SEC_COPY) && (sac == NULL || !sac->copy)) in is_remove_section()
148 struct sec_action *sac; in is_append_section() local
150 sac = lookup_sec_act(ecp, name, 0); in is_append_section()
151 if (sac != NULL && sac->append != 0 && sac->string != NULL) in is_append_section()
160 struct sec_action *sac; in is_compress_section() local
162 sac = lookup_sec_act(ecp, name, 0); in is_compress_section()
163 if (sac != NULL && sac->compress != 0) in is_compress_section()
172 struct sec_action *sac; in check_section_rename() local
179 sac = lookup_sec_act(ecp, s->name, 0); in check_section_rename()
180 if (sac != NULL && sac->rename) in check_section_rename()
181 s->name = sac->newname; in check_section_rename()
206 struct sec_action *sac; in get_section_flags() local
208 sac = lookup_sec_act(ecp, name, 0); in get_section_flags()
209 if (sac != NULL && sac->flags) in get_section_flags()
210 return sac->flags; in get_section_flags()
254 struct sec_action *sac; in is_print_section() local
256 sac = lookup_sec_act(ecp, name, 0); in is_print_section()
257 if (sac != NULL && sac->print != 0) in is_print_section()
277 struct sec_action *sac; in lookup_sec_act() local
282 STAILQ_FOREACH(sac, &ecp->v_sac, sac_list) { in lookup_sec_act()
283 if (strcmp(name, sac->name) == 0) in lookup_sec_act()
284 return sac; in lookup_sec_act()
290 if ((sac = malloc(sizeof(*sac))) == NULL) in lookup_sec_act()
292 memset(sac, 0, sizeof(*sac)); in lookup_sec_act()
293 sac->name = name; in lookup_sec_act()
294 STAILQ_INSERT_TAIL(&ecp->v_sac, sac, sac_list); in lookup_sec_act()
296 return (sac); in lookup_sec_act()
302 struct sec_action *sac, *sac_temp; in free_sec_act() local
304 STAILQ_FOREACH_SAFE(sac, &ecp->v_sac, sac_list, sac_temp) { in free_sec_act()
305 STAILQ_REMOVE(&ecp->v_sac, sac, sec_action, sac_list); in free_sec_act()
306 free(sac); in free_sec_act()
1029 struct sec_action *sac; in modify_section() local
1044 sac = lookup_sec_act(ecp, s->name, 0); in modify_section()
1045 dstsz += strlen(sac->string) + 1; in modify_section()
1087 sac = lookup_sec_act(ecp, s->name, 0); in modify_section()
1088 len = strlen(sac->string); in modify_section()
1089 strncpy(&b[p], sac->string, len); in modify_section()