Lines Matching refs:execdir
48 -exec Run command with path -execdir Run command in file's dir
49 -ok Ask before exec -okdir Ask before execdir
79 struct execdir_data exec, *execdir;
85 struct execdir_data *bb = aa->execdir ? aa->execdir : &aa->exec;
93 // switch to directory for -execdir, or back to top if we have an -execdir
94 // _and_ a normal -exec, or are at top of tree in -execdir
107 // execdir: accumulated execs in this directory's children.
159 // Descend or ascend -execdir + directory level
160 static void execdir(struct dirtree *new, int flush)
175 // Flush pending "-execdir +" instances for this dir
180 if ((bb = aa->execdir)) {
181 aa->execdir = bb->next;
186 // Push new per-directory struct for -execdir/okdir + codepath. (Can't
187 // use new->extra because command line may have multiple -execdir)
189 bb->next = aa->execdir;
190 aa->execdir = bb;
228 execdir(new, 0);
234 execdir(new, 1);
432 || !strcmp(s, "execdir") || !strcmp(s, "okdir"))
490 bb = aa->execdir ? aa->execdir : &aa->exec;
530 if (S_ISDIR(new->st.st_mode)) execdir(new, 0);
567 execdir(0, 1);