diff options
author | James Youngman <jay@gnu.org> | 2005-11-21 05:42:27 +0000 |
---|---|---|
committer | James Youngman <jay@gnu.org> | 2005-11-21 05:42:27 +0000 |
commit | f0759ab8db9cab16699fba45fa6117ef06620194 (patch) | |
tree | e375ece29064e99ec905967d5db7490cade4e1c4 /find/finddata.c | |
parent | db906d83c368cdc9914e293335dbc9ba81bbbac1 (diff) | |
download | findutils-f0759ab8db9cab16699fba45fa6117ef06620194.tar.gz |
Findutils 4.3.x defaults to using the the FTS implementation of find.
Diffstat (limited to 'find/finddata.c')
-rw-r--r-- | find/finddata.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/find/finddata.c b/find/finddata.c new file mode 100644 index 00000000..2a3a9618 --- /dev/null +++ b/find/finddata.c @@ -0,0 +1,48 @@ +/* finddata.c -- global data for "find". + Copyright (C) 1990, 91, 92, 93, 94, 2000, + 2003, 2004, 2005 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. +*/ + +#include "defs.h" + + +/* Name this program was run with. */ +char *program_name; + +/* All predicates for each path to process. */ +struct predicate *predicates; + +/* The last predicate allocated. */ +struct predicate *last_pred; + +/* The root of the evaluation tree. */ +struct predicate *eval_tree = NULL; + + +struct options options; +struct state state; + +/* The full path of the initial working directory, or "." if + STARTING_DESC is nonnegative. */ +char const *starting_dir = "."; + +/* A file descriptor open to the initial working directory. + Doing it this way allows us to work when the i.w.d. has + unreadable parents. */ +int starting_desc; + |