diff options
author | Jim Meyering <jim@meyering.net> | 2006-09-29 15:58:04 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-09-29 15:58:04 +0000 |
commit | 31c77a2fde27888aead246cde6eb88724450e5e1 (patch) | |
tree | c1416ea548d77f30a1744696cbdf061afd2fb830 /src | |
parent | af46184a80169c95bd0f8115a758d293836aa444 (diff) | |
download | coreutils-31c77a2fde27888aead246cde6eb88724450e5e1.tar.xz |
[ChangeLog]
Since any system may be affected by the Darwin readdir bug,
perform the extra rewinddir unconditionally. The performance
impact of rewinding a directory is negligible.
* src/remove.c (NEED_REWIND): Define to use
CONSECUTIVE_READDIR_UNLINK_THRESHOLD unconditionally.
[m4/ChangeLog]
* readdir.m4: Remove file once again.
* jm-macros.m4: Remove reference to gl_FUNC_READDIR.
Diffstat (limited to 'src')
-rw-r--r-- | src/remove.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/remove.c b/src/remove.c index 1ea7773f7..1fcf79ff3 100644 --- a/src/remove.c +++ b/src/remove.c @@ -64,12 +64,11 @@ enum CONSECUTIVE_READDIR_UNLINK_THRESHOLD = 10 }; -#ifdef HAVE_WORKING_READDIR -# define NEED_REWIND(readdir_unlink_count) 0 -#else -# define NEED_REWIND(readdir_unlink_count) \ +/* FIXME: in 2009, or whenever Darwin 7.9.0 (aka MacOS X 10.3.9) is no + longer relevant, remove this work-around code. Then, there will be + no need to perform the extra rewinddir call, ever. */ +#define NEED_REWIND(readdir_unlink_count) \ (CONSECUTIVE_READDIR_UNLINK_THRESHOLD <= (readdir_unlink_count)) -#endif enum Ternary { |