Paul Eggert [Fri, 20 May 2005 22:34:44 +0000 (22:34 +0000)]
Split fts into LGPL'ed and GPL'ed parts.
Paul Eggert [Fri, 20 May 2005 22:34:19 +0000 (22:34 +0000)]
Don't include "cycle-check.h" or "hash.h".
(setup_dir, free_dir): New functions.
(enter_dir, leave_dir): Define trivial
alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
(HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
(LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
(struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
Move to fts-cycle.c.
(fts_open): Use setup_dir.
(fts_close): Use free_dir.
(fts_read): Have just one copy of the ENTER_DIR code rather than three.
This adds a label and some gotos, but the alternatives were messier.
Check for memory allocation failure when entering a dir.
(fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
Paul Eggert [Fri, 20 May 2005 22:33:59 +0000 (22:33 +0000)]
(_LGPL_PACKAGE) [defined _LIBC]: New macro.
(FTS): New member fts_cycle, that is a union that contains the
old active_dir_ht and cycle_state. All uses changed to mention
fts_cycle.ht and fts_cycle.state.
Paul Eggert [Fri, 20 May 2005 22:33:32 +0000 (22:33 +0000)]
* fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
(gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
Paul Eggert [Fri, 20 May 2005 22:33:12 +0000 (22:33 +0000)]
(gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
(gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
Paul Eggert [Fri, 20 May 2005 22:32:50 +0000 (22:32 +0000)]
New file, containing GPL'ed code migrated out of
fts.c, with the following changes:
(setup_dir, free_dir): New functions.
(enter_dir): Now returns bool. Return true if successful, false
if memory exhausted. All callers changed.
Do not bother partly cleaning up on
memory allocation failure; that is free_dir's job.
However, free ad if hash_insert fails, to avoid memory leak.
(enter_dir, leave_dir): Accommodate change to FTS by inspecting
fts->fts_options to see which union member to use.
Jim Meyering [Fri, 20 May 2005 04:27:00 +0000 (04:27 +0000)]
*** empty log message ***
Jim Meyering [Fri, 20 May 2005 04:26:35 +0000 (04:26 +0000)]
(fts_open): Remove useless but otherwise harmless malloc call.
Spotted by Paul Eggert.
Jim Meyering [Thu, 19 May 2005 10:37:43 +0000 (10:37 +0000)]
*** empty log message ***
Jim Meyering [Thu, 19 May 2005 10:37:40 +0000 (10:37 +0000)]
(AD_mark_helper, AD_mark_current_as_unremovable):
Remove inaccurate-but-harmless `const' attributes.
Jim Meyering [Thu, 19 May 2005 10:34:52 +0000 (10:34 +0000)]
*** empty log message ***
Jim Meyering [Thu, 19 May 2005 10:34:46 +0000 (10:34 +0000)]
(decode_field_spec): Add an abort after
`error (EXIT_FAILURE, ...' to avoid a gcc warning in caller,
about variables being used uninitialized.
Jim Meyering [Thu, 19 May 2005 08:54:44 +0000 (08:54 +0000)]
*** empty log message ***
Jim Meyering [Thu, 19 May 2005 08:54:40 +0000 (08:54 +0000)]
(cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
Use #define rather than a static function, to avoid a warning
when the function was not used.
Jim Meyering [Wed, 18 May 2005 21:39:11 +0000 (21:39 +0000)]
remove trailing blanks
Paul Eggert [Wed, 18 May 2005 19:36:47 +0000 (19:36 +0000)]
Regenerate.
Paul Eggert [Wed, 18 May 2005 19:34:04 +0000 (19:34 +0000)]
Import localcharset.m4 from gnulib.
Paul Eggert [Wed, 18 May 2005 19:32:57 +0000 (19:32 +0000)]
Remove some dependencies and old cruft from fts etc.
Paul Eggert [Wed, 18 May 2005 19:32:28 +0000 (19:32 +0000)]
Remove test for HAVE_LIMITS_H; we can assume
it's always true now.
Paul Eggert [Wed, 18 May 2005 19:32:11 +0000 (19:32 +0000)]
Add copyright notice.
(factor_LDADD): Remove, as factor no longer needs sqrt.
Paul Eggert [Wed, 18 May 2005 19:31:47 +0000 (19:31 +0000)]
Add copyright notice.
(gl_PREREQ): Add gl_LOCALCHARSET.
Paul Eggert [Wed, 18 May 2005 19:31:20 +0000 (19:31 +0000)]
lib-check.m4: Add copyright notice.
(cu_LIB_CHECK): Renamed from gl_LIB_CHECK.
Don't check for sqrt; factor no longer needs it.
Revamp tests for floor, modf, rint, to define SEQ_LIBM.
Redo tests for fesetround to act like the other wons.
Use "cu_saved_libs" for local var name, not "ac_su_saved_lib".
Paul Eggert [Wed, 18 May 2005 19:31:00 +0000 (19:31 +0000)]
(gl_MACROS): Require AC_FUNC_LSTAT.
Don't check for memcpy, strchr, strerror, strrchr, float.h.
Use AC_REQUIRE on AM_LANGINFO_CODESET and gl_GLIBC21 rather
than invoking them directly.
(gl_CHECK_ALL_HEADERS): Don't check for errno.h, float.h,
limits.h, stddef.h, since we assume C89 now.
Paul Eggert [Wed, 18 May 2005 19:30:31 +0000 (19:30 +0000)]
(AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
Paul Eggert [Wed, 18 May 2005 19:30:06 +0000 (19:30 +0000)]
(gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
don't use its results.
Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
since we include them unconditionally. Don't require
AM_STDBOOL_H, since stdbool is a prerequisite.
Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
since we assume C89 or better.
Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
as we don't use their results.
Don't check for fchdir, memmove, memset, strrchr, as we use
them unconditionally.
Paul Eggert [Wed, 18 May 2005 19:29:41 +0000 (19:29 +0000)]
(AC_FUNC_CANONICALIZE_FILE_NAME]): Don't check for stddef.h.
Paul Eggert [Wed, 18 May 2005 19:29:11 +0000 (19:29 +0000)]
Do not include hash.h or cycle-check.h; no longer needed.
(FTS): Use struct hash_table * instead of Hash_table, so that
we no longer need to include hash.h here.
Paul Eggert [Wed, 18 May 2005 19:28:48 +0000 (19:28 +0000)]
Include fts_.h first, to check interface.
Do not include intprops.h; no longer needed.
Include cycle-check.h and hash.h, since fts_.h no longer does.
Remove unnecessary casts of closedir to void.
(fts_build): Use a simpler method (not involving TYPE_SIGNED) to
decide whether to decrement nlinks.
Paul Eggert [Wed, 18 May 2005 19:28:21 +0000 (19:28 +0000)]
Include canonicalize.h first, to test interface.
Include <stddef.h> unconditionally, since we assume C89 now.
All uses of PTR_INT_TYPE replaced by ptrdiff_t.
Paul Eggert [Wed, 18 May 2005 19:27:39 +0000 (19:27 +0000)]
Add copyright notice. gl_LIB_CHECK -> cu_LIB_CHECK.
Paul Eggert [Mon, 16 May 2005 20:29:08 +0000 (20:29 +0000)]
Fix Cygwin porting problem reported by Eric Blake.
Paul Eggert [Mon, 16 May 2005 20:28:53 +0000 (20:28 +0000)]
Fix Cygwin porting problem reported by Eric Blake.
(DT_IS_DIR): Remove.
(DT_IS_KNOWN, DT_MUST_BE): New macros.
(remove_entry): Use them.
Jim Meyering [Mon, 16 May 2005 13:11:04 +0000 (13:11 +0000)]
*** empty log message ***
Jim Meyering [Mon, 16 May 2005 13:10:53 +0000 (13:10 +0000)]
(gl_FUNC_FTS): Don't require AC_FUNC_MALLOC or AC_FUNC_REALLOC.
They are not needed.
Paul Eggert [Sun, 15 May 2005 07:03:04 +0000 (07:03 +0000)]
Sync from gnulib (scriptversion change only).
Paul Eggert [Sun, 15 May 2005 05:57:31 +0000 (05:57 +0000)]
Use geteuid, not getuid. Set "initialized" only if it was clear.
Paul Eggert [Sun, 15 May 2005 04:35:48 +0000 (04:35 +0000)]
Sync from gnulib.
Jim Meyering [Sat, 14 May 2005 19:13:51 +0000 (19:13 +0000)]
.
Jim Meyering [Sat, 14 May 2005 10:34:13 +0000 (10:34 +0000)]
*** empty log message ***
Jim Meyering [Sat, 14 May 2005 10:34:00 +0000 (10:34 +0000)]
Register unlinkdir.c and unlinkdir.h via AC_LIBSOURCES.
Add `AC_LIBOBJ([unlinkdir])'.
Paul Eggert [Sat, 14 May 2005 08:17:38 +0000 (08:17 +0000)]
Regenerate.
Jim Meyering [Sat, 14 May 2005 08:14:47 +0000 (08:14 +0000)]
tweak cpp indentation on one line
Paul Eggert [Sat, 14 May 2005 08:12:17 +0000 (08:12 +0000)]
New unlinkdir module.
Paul Eggert [Sat, 14 May 2005 08:11:32 +0000 (08:11 +0000)]
(gl_PREREQ): Require gl_UNLINKDIR.
Paul Eggert [Sat, 14 May 2005 08:09:23 +0000 (08:09 +0000)]
* unlinkdir.c, unlinkdir.h: New files.
Paul Eggert [Sat, 14 May 2005 08:06:22 +0000 (08:06 +0000)]
* src/remove.c: Use new unlinkdir module.
Paul Eggert [Sat, 14 May 2005 08:05:35 +0000 (08:05 +0000)]
Include unlinkdir.h.
(UNLINK_CAN_UNLINK_DIRS): Remove.
(remove_entry): Use cannot_unlink_dirs () rather than
UNLINK_CAN_UNLINK_DIRS.
Jim Meyering [Sat, 14 May 2005 08:05:04 +0000 (08:05 +0000)]
remove recent temporary additions
Jim Meyering [Sat, 14 May 2005 08:03:44 +0000 (08:03 +0000)]
Correct cpp indentation
Paul Eggert [Sat, 14 May 2005 08:01:17 +0000 (08:01 +0000)]
New unlinkdir module.
Jim Meyering [Sat, 14 May 2005 07:58:31 +0000 (07:58 +0000)]
Update FSF postal mail address.
Jim Meyering [Sat, 14 May 2005 07:58:06 +0000 (07:58 +0000)]
Update FSF postal mail address.
Jim Meyering [Sat, 14 May 2005 07:57:58 +0000 (07:57 +0000)]
One more
gethrxtime.c
Jim Meyering [Sat, 14 May 2005 07:57:36 +0000 (07:57 +0000)]
Add these temporarily:
unlocked-io.h
gethrxtime.h
mountlist.h
xtime.h
path-concat.c
Jim Meyering [Sat, 14 May 2005 07:56:31 +0000 (07:56 +0000)]
unlocked-io.h
Jim Meyering [Sat, 14 May 2005 07:40:16 +0000 (07:40 +0000)]
.
Jim Meyering [Sat, 14 May 2005 07:36:16 +0000 (07:36 +0000)]
don't add gl_UNLINKDIR just yet :)
Jim Meyering [Sat, 14 May 2005 07:34:36 +0000 (07:34 +0000)]
.
Jim Meyering [Sat, 14 May 2005 07:27:24 +0000 (07:27 +0000)]
*** empty log message ***
Jim Meyering [Sat, 14 May 2005 07:27:21 +0000 (07:27 +0000)]
Don't require gl_FUNC_STAT or gl_FUNC_LSTAT.
Jim Meyering [Sat, 14 May 2005 07:27:06 +0000 (07:27 +0000)]
Remove unnecessary file.
Jim Meyering [Sat, 14 May 2005 07:25:57 +0000 (07:25 +0000)]
*** empty log message ***
Jim Meyering [Sat, 14 May 2005 07:25:26 +0000 (07:25 +0000)]
Update FSF postal mail address.
Jim Meyering [Sat, 14 May 2005 06:58:11 +0000 (06:58 +0000)]
*** empty log message ***
Jim Meyering [Sat, 14 May 2005 06:57:06 +0000 (06:57 +0000)]
Update FSF postal mail address.
Paul Eggert [Fri, 13 May 2005 19:35:06 +0000 (19:35 +0000)]
"bytes, words and lines" -> "lines, words, and bytes" in comment
Jim Meyering [Fri, 13 May 2005 08:42:35 +0000 (08:42 +0000)]
fix grammar typo in comment
Jim Meyering [Fri, 13 May 2005 08:20:32 +0000 (08:20 +0000)]
.
Jim Meyering [Fri, 13 May 2005 08:16:53 +0000 (08:16 +0000)]
rm now performs run-time test to work around buggy readdir implementations
Jim Meyering [Fri, 13 May 2005 07:53:57 +0000 (07:53 +0000)]
*** empty log message ***
Jim Meyering [Fri, 13 May 2005 07:53:47 +0000 (07:53 +0000)]
(gl_MACROS): Don't require GL_FUNC_READDIR.
Jim Meyering [Fri, 13 May 2005 07:53:30 +0000 (07:53 +0000)]
(GL_FUNC_READDIR): Remove, now that remove.c no longer needs it.
Jim Meyering [Fri, 13 May 2005 07:39:56 +0000 (07:39 +0000)]
*** empty log message ***
Jim Meyering [Fri, 13 May 2005 07:39:50 +0000 (07:39 +0000)]
* NEWS: `rm -r' now removes all of the files it should, even on
systems with a buggy readdir affecting file systems inaccessible
at configure time.
In some unusual circumstances `rm -r' would fail to remove --
or even consider -- all entries in a directory with more than 254
(SunOS) or 338 (Darwin) entries. This could cause trouble even on
other types of systems when using an affected file system via e.g.,
NFS. The underlying cause was a bug in readdir on those systems.
Coreutils-5.2.1 and earlier used a configure-time test designed
to detect precisely those problem systems, but it would detect
the problem and enable remove.c's work-around code only when its
configure-time test was run on a losing file system. Obviously,
it couldn't detect a problem if the offending file system wasn't
tested or even mounted at coreutils configure time. Now, rm itself
performs a minimal-cost run-time test to detect the problem.
(CONSECUTIVE_READDIR_UNLINK_THRESHOLD): Define.
(remove_cwd_entries): When readdir returns NULL for a directory from
which we've removed more than CONSECUTIVE_READDIR_UNLINK_THRESHOLD
entries, call rewinddir and then resume the readdir/unlink loop.
(UNLINK_CAN_UNLINK_DIRS): Rename from ROOT_CAN_UNLINK_DIRS.
Paul Eggert [Thu, 12 May 2005 09:25:16 +0000 (09:25 +0000)]
nohup now closes stdin if it is a terminal, unless POSIXLY_CORRECT is set.
Paul Eggert [Thu, 12 May 2005 09:24:56 +0000 (09:24 +0000)]
(main): nohup now closes stdin if it is a terminal, unless
POSIXLY_CORRECT is set.
Paul Eggert [Thu, 12 May 2005 09:24:27 +0000 (09:24 +0000)]
(nohup invocation): nohup now closes stdin if it is a terminal, unless
POSIXLY_CORRECT is set.
Paul Eggert [Thu, 12 May 2005 09:23:56 +0000 (09:23 +0000)]
nohup now closes stdin if it is a terminal, unless POSIXLY_CORRECT is set.
Jim Meyering [Thu, 12 May 2005 08:24:03 +0000 (08:24 +0000)]
*** empty log message ***
Jim Meyering [Thu, 12 May 2005 07:56:14 +0000 (07:56 +0000)]
Assume `free (NULL)' works.
Jim Meyering [Thu, 12 May 2005 07:55:15 +0000 (07:55 +0000)]
Assume `free (NULL)' works.
Jim Meyering [Thu, 12 May 2005 07:54:10 +0000 (07:54 +0000)]
Assume `free (NULL)' works.
Jim Meyering [Thu, 12 May 2005 07:53:37 +0000 (07:53 +0000)]
Assume `free (NULL)' works.
Paul Eggert [Wed, 11 May 2005 20:27:11 +0000 (20:27 +0000)]
Update copyright date.
Paul Eggert [Wed, 11 May 2005 20:25:01 +0000 (20:25 +0000)]
* getdate.texi (General date syntax): Don't say that date
date --iso-8601=ns generates acceptable dates.
Paul Eggert [Wed, 11 May 2005 20:24:42 +0000 (20:24 +0000)]
(General date syntax): Don't say that date
date --iso-8601=ns generates acceptable dates; it doesn't yet.
Paul Eggert [Tue, 10 May 2005 19:10:23 +0000 (19:10 +0000)]
* getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when possible.
Paul Eggert [Tue, 10 May 2005 19:09:23 +0000 (19:09 +0000)]
(gl_GETOPT): Check for Solaris 10 bug, not decl, when possible.
Jim Meyering [Tue, 10 May 2005 13:46:21 +0000 (13:46 +0000)]
.
Jim Meyering [Tue, 10 May 2005 13:39:19 +0000 (13:39 +0000)]
*** empty log message ***
Jim Meyering [Tue, 10 May 2005 13:39:15 +0000 (13:39 +0000)]
Add Vietnamese (vi).
Jim Meyering [Tue, 10 May 2005 13:38:31 +0000 (13:38 +0000)]
version: 5.3.0
Jim Meyering [Tue, 10 May 2005 13:30:39 +0000 (13:30 +0000)]
Skip this test if the user running it owns `/' or has write access to it.
Jim Meyering [Tue, 10 May 2005 13:30:33 +0000 (13:30 +0000)]
*** empty log message ***
Jim Meyering [Tue, 10 May 2005 12:59:49 +0000 (12:59 +0000)]
*** empty log message ***
Jim Meyering [Tue, 10 May 2005 12:59:44 +0000 (12:59 +0000)]
Skip the test if the user running it has write access to `/'.
Jim Meyering [Tue, 10 May 2005 07:42:12 +0000 (07:42 +0000)]
.
Jim Meyering [Tue, 10 May 2005 07:42:01 +0000 (07:42 +0000)]
(TESTS): Add reply-no.
Jim Meyering [Tue, 10 May 2005 07:38:20 +0000 (07:38 +0000)]
*** empty log message ***
Jim Meyering [Tue, 10 May 2005 07:35:46 +0000 (07:35 +0000)]
*** empty log message ***