• Home
  • Raw
  • Download

Lines Matching refs:aa

96 static int flush_exec(struct dirtree *new, struct exec_range *aa)  in flush_exec()  argument
98 struct execdir_data *bb = aa->execdir ? aa->execdir : &aa->exec; in flush_exec()
109 if (aa->dir && new && new->parent) { in flush_exec()
121 newargs = xmalloc(sizeof(char *)*(aa->arglen+bb->namecount+1)); in flush_exec()
122 if (aa->curly < 0) { in flush_exec()
123 memcpy(newargs, aa->argstart, sizeof(char *)*aa->arglen); in flush_exec()
124 newargs[aa->arglen] = 0; in flush_exec()
126 int pos = aa->curly, rest = aa->arglen - aa->curly; in flush_exec()
130 memcpy(newargs, aa->argstart, sizeof(char *)*pos); in flush_exec()
132 rest = aa->arglen - aa->curly - 1; in flush_exec()
133 memcpy(newargs+pos, aa->argstart+aa->curly+1, sizeof(char *)*rest); in flush_exec()
176 struct exec_range *aa; in execdir() local
183 aa = (void *)dl; in execdir()
184 if (!aa->plus || (new && !aa->dir)) continue; in execdir()
190 toys.exitval |= flush_exec(new, aa); in execdir()
193 if ((bb = aa->execdir)) { in execdir()
194 aa->execdir = bb->next; in execdir()
197 } else if (aa->dir) { in execdir()
202 bb->next = aa->execdir; in execdir()
203 aa->execdir = bb; in execdir()
518 struct exec_range *aa; in do_find() local
529 dlist_add_nomalloc(&TT.argdata, (void *)(aa = xzalloc(sizeof(*aa)))); in do_find()
530 aa->argstart = ++ss; in do_find()
531 aa->curly = -1; in do_find()
537 aa->curly = len; in do_find()
539 aa->plus++; in do_find()
543 } else aa->argsize += sizeof(char *) + strlen(ss[len]) + 1; in do_find()
546 aa->curly!=-1 ? "\\;" : "{}"); in do_find()
548 aa->arglen = len; in do_find()
549 aa->dir = !!strchr(s, 'd'); in do_find()
558 aa = (void *)llist_pop(&argdata); in do_find()
559 ss += aa->arglen + 1; in do_find()
563 name = aa->dir ? xstrdup(new->name) : dirtree_path(new, 0); in do_find()
574 bb = aa->execdir ? aa->execdir : &aa->exec; in do_find()
579 if (aa->plus) { in do_find()
583 aa->prev = (void *)1; in do_find()
588 if ((aa->plus += sizeof(char *)+strlen(name)+1) > TT.max_bytes) { in do_find()
589 aa->plus = 1; in do_find()
590 toys.exitval |= flush_exec(new, aa); in do_find()
592 } else test = !flush_exec(new, aa); in do_find()