Commit Graph

17 Commits

Author SHA1 Message Date
Paul Eggert
ab2edb9e33 Don't use "path" or "filename" to mean "file name"
in comments or local variable names.
2005-06-02 05:05:29 +00:00
Paul Eggert
fea1ba2d14 (_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.
2005-05-20 22:33:59 +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
Jim Meyering
116e6fb244 Update FSF postal mail address. 2005-05-14 07:58:06 +00:00
Paul Eggert
3ed3fb2d81 (FTS): Use correct type for fts_compar member.
(FTSENT): New member fts_fts.  Remove members fts_ino, fts_dev,
fts_nlink; no longer needed now that fts_statp is always there.
All uses changed to use fts_statp instead.
2005-05-09 18:53:11 +00:00
Paul Eggert
905aee9238 (FTSENT): Use "unsigned short int" rather than the unportable "u_short". 2004-09-02 23:57:30 +00:00
Paul Eggert
787b4d50d0 Add an FSF copyright notice, since our changes are becoming nontrivial.
Include stddef.h, for ptrdiff_t.
(FTS.fts_nitems): Now size_t, not int, for hosts that allow more
than INT_MAX entries in a directory.
(FTS_ROOTPARENTLEVEL): Parenthesize properly.
(FTSENT.fts_level): Now ptrdiff_t, not int, to allow recursing more
than INT_MAX levels deep on 64-bit hosts.
(FTSENT.fts_namelen): Now size_t, not u_short, to support hosts like
the Hurd that don't have arbitrary limits on directory entry lengths.
(FTSENT.fts_statp): Now an array, not a pointer, so that we don't
have to play unportable games with pointer arithmetic.  Keep it array
for the benefit of user code that assumes it is a pointer.
2004-08-02 19:41:35 +00:00
Jim Meyering
7f49957342 Include hash.h and cycle-check.h.
(FTS_TIGHT_CYCLE_CHECK): New value.
(FTS_OPTIONMASK): Adjust to include the new value.
(FTS_NAMEONLY, FTS_STOP): Increase to allow room for new value.
(struct FTS) [active_dir_ht]: New member.  Replaces fts_dir_signatures.
(struct FTS) [cycle_state]: New member.
2003-12-19 12:40:05 +00:00
Jim Meyering
6b963304ff add FIXME 2003-12-12 05:43:17 +00:00
Jim Meyering
dbbf897562 (FTS) [fts_dir_signatures]: Add comment. 2003-12-12 05:41:29 +00:00
Jim Meyering
7cc1940663 Include <features.h> only if _LIBC.
[!_LIBC]: Define-away __THROW, __BEGIN_DECLS, __END_DECLS.
2003-10-25 15:24:07 +00:00
Jim Meyering
caf4f07912 Don't require that the maximum length of a file name
encountered in a traversal fit in an `unsigned short',
and fix some portability bugs (don't depend on gcc).

[FTS] (fts_pathlen): Change type from int to size_t.
[FTSENT] (fts_pathlen): Change type from u_short to size_t.
(fts_level): Change type from u_short to int.
2003-10-02 17:33:42 +00:00
Jim Meyering
66d8a81ef3 filter through cppi 2003-02-24 10:09:19 +00:00
Jim Meyering
0eb448466a [__USE_FILE_OFFSET64]: Remove #error directive. 2003-02-24 10:08:57 +00:00
Jim Meyering
4c283a1dc0 [struct FTS] (fts_dir_signatures): New, opaque member. 2003-02-24 08:57:06 +00:00
Jim Meyering
f30cda6bd2 virgin copy from glibc 2003-02-24 08:24:59 +00:00
Jim Meyering
1656a5880b hacked from the versions in glibc 2003-02-13 21:28:58 +00:00