Paul Eggert
42aab6b2ae
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.
2005-05-20 22:32:50 +00:00
Jim Meyering
ca88d7c411
*** empty log message ***
2005-05-20 04:27:00 +00:00
Jim Meyering
1222461ca6
(fts_open): Remove useless but otherwise harmless malloc call.
...
Spotted by Paul Eggert.
2005-05-20 04:26:35 +00:00
Jim Meyering
ec4933bcee
*** empty log message ***
2005-05-19 10:37:43 +00:00
Jim Meyering
b3e741d36c
(AD_mark_helper, AD_mark_current_as_unremovable):
...
Remove inaccurate-but-harmless `const' attributes.
2005-05-19 10:37:40 +00:00
Jim Meyering
7f163f5ac7
*** empty log message ***
2005-05-19 10:34:52 +00:00
Jim Meyering
1dacfee21a
(decode_field_spec): Add an abort after
...
`error (EXIT_FAILURE, ...' to avoid a gcc warning in caller,
about variables being used uninitialized.
2005-05-19 10:34:46 +00:00
Jim Meyering
2334353619
*** empty log message ***
2005-05-19 08:54:44 +00:00
Jim Meyering
276ae5c469
(cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
...
Use #define rather than a static function, to avoid a warning
when the function was not used.
2005-05-19 08:54:40 +00:00
Jim Meyering
035c732c59
remove trailing blanks
2005-05-18 21:39:11 +00:00
Paul Eggert
666680ddaa
Regenerate.
2005-05-18 19:36:47 +00:00
Paul Eggert
83890c76a4
Import localcharset.m4 from gnulib.
2005-05-18 19:34:04 +00:00
Paul Eggert
0b5dba9efb
Remove some dependencies and old cruft from fts etc.
2005-05-18 19:32:57 +00:00
Paul Eggert
05218a8c7e
Remove test for HAVE_LIMITS_H; we can assume
...
it's always true now.
2005-05-18 19:32:28 +00:00
Paul Eggert
0045b9321d
Add copyright notice.
...
(factor_LDADD): Remove, as factor no longer needs sqrt.
2005-05-18 19:32:11 +00:00
Paul Eggert
c55596370d
Add copyright notice.
...
(gl_PREREQ): Add gl_LOCALCHARSET.
2005-05-18 19:31:47 +00:00
Paul Eggert
58d6230525
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".
2005-05-18 19:31:20 +00:00
Paul Eggert
1575fd4adc
(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.
2005-05-18 19:31:00 +00:00
Paul Eggert
30fd8394e1
(AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
...
GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
2005-05-18 19:30:31 +00:00
Paul Eggert
85d0299334
(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.
2005-05-18 19:30:06 +00:00
Paul Eggert
4dcf2356b7
(AC_FUNC_CANONICALIZE_FILE_NAME]): Don't check for stddef.h.
2005-05-18 19:29:41 +00:00
Paul Eggert
ae2b26dd0d
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.
2005-05-18 19:29:11 +00:00
Paul Eggert
b569baa020
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.
2005-05-18 19:28:48 +00:00
Paul Eggert
0d3649e30d
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.
2005-05-18 19:28:21 +00:00
Paul Eggert
d067c0cde3
Add copyright notice. gl_LIB_CHECK -> cu_LIB_CHECK.
2005-05-18 19:27:39 +00:00
Paul Eggert
0f10230a24
Fix Cygwin porting problem reported by Eric Blake.
2005-05-16 20:29:08 +00:00
Paul Eggert
002c26a153
Fix Cygwin porting problem reported by Eric Blake.
...
(DT_IS_DIR): Remove.
(DT_IS_KNOWN, DT_MUST_BE): New macros.
(remove_entry): Use them.
2005-05-16 20:28:53 +00:00
Jim Meyering
d3ea604602
*** empty log message ***
2005-05-16 13:11:04 +00:00
Jim Meyering
40cd9fdf30
(gl_FUNC_FTS): Don't require AC_FUNC_MALLOC or AC_FUNC_REALLOC.
...
They are not needed.
2005-05-16 13:10:53 +00:00
Paul Eggert
842c8c486f
Sync from gnulib (scriptversion change only).
2005-05-15 07:03:04 +00:00
Paul Eggert
99ad01b0d5
Use geteuid, not getuid. Set "initialized" only if it was clear.
2005-05-15 05:57:31 +00:00
Paul Eggert
6517e41a01
Sync from gnulib.
2005-05-15 04:35:48 +00:00
Jim Meyering
53a152ff60
.
2005-05-14 19:13:51 +00:00
Jim Meyering
10f6a16c7b
*** empty log message ***
2005-05-14 10:34:13 +00:00
Jim Meyering
4ecefdf18a
Register unlinkdir.c and unlinkdir.h via AC_LIBSOURCES.
...
Add `AC_LIBOBJ([unlinkdir])'.
2005-05-14 10:34:00 +00:00
Paul Eggert
070140df89
Regenerate.
2005-05-14 08:17:38 +00:00
Jim Meyering
afae3029ef
tweak cpp indentation on one line
2005-05-14 08:14:47 +00:00
Paul Eggert
676c76bee7
New unlinkdir module.
2005-05-14 08:12:17 +00:00
Paul Eggert
fe7b1c00b9
(gl_PREREQ): Require gl_UNLINKDIR.
2005-05-14 08:11:32 +00:00
Paul Eggert
7b18bf3811
* unlinkdir.c, unlinkdir.h: New files.
2005-05-14 08:09:23 +00:00
Paul Eggert
be13a1f653
* src/remove.c: Use new unlinkdir module.
2005-05-14 08:06:22 +00:00
Paul Eggert
0675749903
Include unlinkdir.h.
...
(UNLINK_CAN_UNLINK_DIRS): Remove.
(remove_entry): Use cannot_unlink_dirs () rather than
UNLINK_CAN_UNLINK_DIRS.
2005-05-14 08:05:35 +00:00
Jim Meyering
effcdb2647
remove recent temporary additions
2005-05-14 08:05:04 +00:00
Jim Meyering
8ac343fffa
Correct cpp indentation
2005-05-14 08:03:44 +00:00
Paul Eggert
2e71ba4dd2
New unlinkdir module.
2005-05-14 08:01:17 +00:00
Jim Meyering
44d59bb168
Update FSF postal mail address.
2005-05-14 07:58:31 +00:00
Jim Meyering
116e6fb244
Update FSF postal mail address.
2005-05-14 07:58:06 +00:00
Jim Meyering
a5d7b5f8aa
One more
...
gethrxtime.c
2005-05-14 07:57:58 +00:00
Jim Meyering
f9be76236b
Add these temporarily:
...
unlocked-io.h
gethrxtime.h
mountlist.h
xtime.h
path-concat.c
2005-05-14 07:57:36 +00:00
Jim Meyering
c6db442aee
unlocked-io.h
2005-05-14 07:56:31 +00:00