Lines Matching defs:exec
100 execstr_t *exec = ent;
117 exec->next = NULL;
138 if ((exec->next = _dup_execstr(&nexec)) == NULL) {
145 exec->name = _strtok_escape(buf, sep, &last);
146 exec->policy = _strtok_escape(NULL, sep, &last);
147 exec->type = _strtok_escape(NULL, sep, &last);
148 exec->res1 = _strtok_escape(NULL, sep, &last);
149 exec->res2 = _strtok_escape(NULL, sep, &last);
150 exec->id = _strtok_escape(NULL, sep, &last);
151 exec->attr = _strtok_escape(NULL, sep, &last);
331 execstr_t *exec = argp->buf.result;
333 if ((pe->head_exec = _dup_execstr(exec)) != NULL)
338 if ((pe->prev_exec->next = _dup_execstr(exec)) != NULL)
435 _free_execstr(execstr_t *exec)
437 if (exec != NULL) {
438 free(exec->name);
439 free(exec->type);
440 free(exec->policy);
441 free(exec->res1);
442 free(exec->res2);
443 free(exec->id);
444 free(exec->attr);
445 _free_execstr(exec->next);
446 free(exec);
497 execstr_t exec;
500 tmp = _getexecattr(&exec, buf, NSS_BUFLEN_EXECATTR, &err);
502 return (_execstr2attr(tmp, &exec));
514 execstr_t exec;
518 (void) memset(&exec, 0, sizeof (execstr_t));
546 &exec,
551 return (_execstr2attr(tmp, &exec));
619 match_execattr(execattr_t *exec, const char *profname, const char *type,
624 for (execp = exec; execp != NULL; execp = execp->next) {
640 free_execattr(execattr_t *exec)
642 if (exec != NULL) {
643 free(exec->name);
644 free(exec->type);
645 free(exec->policy);
646 free(exec->res1);
647 free(exec->res2);
648 free(exec->id);
649 _kva_free(exec->attr);
650 free_execattr(exec->next);
651 free(exec);
670 execattr_t *exec;
674 if ((exec = getexecprof(prof, c->type, c->id, c->sflag)) != NULL) {
676 r->head = exec;
680 r->head = exec;
683 r->prev->next = exec;
684 r->prev = get_tail(exec);
721 get_tail(execattr_t *exec)
726 if (exec != NULL) {
727 if (exec->next == NULL) {
728 j_exec = exec;
730 for (i_exec = exec->next; i_exec != NULL;
788 print_execattr(execattr_t *exec)
793 if (exec != NULL) {
794 printf("name=%s\n", exec->name ? exec->name : empty);
795 printf("policy=%s\n", exec->policy ? exec->policy : empty);
796 printf("type=%s\n", exec->type ? exec->type : empty);
797 printf("res1=%s\n", exec->res1 ? exec->res1 : empty);
798 printf("res2=%s\n", exec->res2 ? exec->res2 : empty);
799 printf("id=%s\n", exec->id ? exec->id : empty);
801 print_kva(exec->attr);
803 if (exec->next) {
804 print_execattr(exec->next);