diff options
author | Bernhard Voelker <mail@bernhard-voelker.de> | 2021-08-22 18:41:17 +0200 |
---|---|---|
committer | Bernhard Voelker <mail@bernhard-voelker.de> | 2021-09-20 00:14:58 +0200 |
commit | 5768a03ddfb5e18b1682e339d6cdd24ff721c510 (patch) | |
tree | 9c7e587d8e43c2c655674245626787a97b252a0d /find/defs.h | |
parent | 2c56e00ec9d6a735b9054513a3842dad0ef73394 (diff) | |
download | findutils-5768a03ddfb5e18b1682e339d6cdd24ff721c510.tar.gz |
oldfind: remove
The FTS-based find is the default for a long time; oldfind has not been
installed since 4.5.18 (2015), and was only just used in tests.
* NEWS: Document the change.
* doc/find-maint.texi (Factor Out Repeated Code): Remove mentioning of
oldfind.
* find/.gitignore (/oldfind): Remove entry.
* find/Makefile.am (check_PROGRAMS): Remove.
(oldfind_SOURCES): Remove.
* find/defs.h (struct dir_id): Remove, it was only used in oldfind.c.
(symlink_handling): Likewise.
Adjust comments wrt oldfind otherwise.
* find/oldfind.c: Remove.
* find/testsuite/config/unix.exp: Remove the code to search for and
to run tests with oldfind.
* find/testsuite/find.posix/dotdotfiles.exp: Adjust comment.
* po/POTFILES.in (find/oldfind.c): Remove entry.
* tests/find/debug-missing-arg.sh: Remove run with oldfind.
* tests/find/exec-plus-last-file.sh: Likewise.
* tests/find/execdir-fd-leak.sh: Likewise.
* tests/find/many-dir-entries-vs-OOM.sh: Likewise.
* tests/find/name-lbracket-literal.sh: Likewise.
* tests/find/printf_escape_c.sh: Likewise.
* tests/find/printf_escapechars.sh: Likewise.
* tests/find/printf_inode.sh: Likewise.
* tests/find/refuse-noop.sh: Likewise.
* tests/find/type_list.sh: Likewise.
* tests/local.mk (built_programs): Remove oldfind from list.
Diffstat (limited to 'find/defs.h')
-rw-r--r-- | find/defs.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/find/defs.h b/find/defs.h index 1b02457d..cb519136 100644 --- a/find/defs.h +++ b/find/defs.h @@ -138,14 +138,6 @@ struct perm_val mode_t val[2]; }; -/* dir_id is used to support loop detection in oldfind.c - */ -struct dir_id -{ - ino_t ino; - dev_t dev; -}; - /* samefile_file_id is used to support the -samefile test. */ struct samefile_file_id @@ -346,14 +338,13 @@ struct predicate const struct parser_table* parser_entry; }; -/* oldfind.c, ftsfind.c */ +/* ftsfind.c */ bool is_fts_enabled(int *ftsoptions); /* find library function declarations. */ /* find global function declarations. */ -/* oldfind.c */ /* SymlinkOption represents the choice of * -P, -L or -P (default) on the command line. */ @@ -363,7 +354,6 @@ enum SymlinkOption SYMLINK_ALWAYS_DEREF, /* Option -L */ SYMLINK_DEREF_ARGSONLY /* Option -H */ }; -extern enum SymlinkOption symlink_handling; /* defined in oldfind.c. */ void set_follow_state (enum SymlinkOption opt); void cleanup(void); @@ -528,7 +518,7 @@ bool apply_predicate(const char *pathname, struct stat *stat_buf, struct predica # define pred_is(node, fn) ( ((node)->pred_func) == (fn) ) -/* oldfind.c. */ +/* util.c. */ int get_info (const char *pathname, struct stat *p, struct predicate *pred_ptr); bool following_links (void); bool digest_mode (mode_t *mode, const char *pathname, const char *name, struct stat *pstat, bool leaf); |