Commit Graph
17442 Commits
Author SHA1 Message Date
Jim Meyering a086112e73 Duh. Fix last change. 2003-12-19 22:30:14 +00:00
Jim Meyering 6f438344f1 *** empty log message *** 2003-12-19 21:48:41 +00:00
Jim Meyering ddf8b7b638 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME if no library is required. 2003-12-19 21:48:35 +00:00
Jim Meyering 02dd87543e *** empty log message *** 2003-12-19 16:13:34 +00:00
Jim Meyering 5b4206c914 Double quote back-ticked expression,
in case it ends up having an unexpected value.
2003-12-19 16:13:28 +00:00
Jim Meyering 3d8e62a14b *** empty log message *** 2003-12-19 13:15:27 +00:00
Jim Meyering 8f4b3c1b4f Use ls's -1 option in both runs. 2003-12-19 13:15:23 +00:00
Jim Meyering 7cc2e159d1 *** empty log message *** 2003-12-19 12:55:49 +00:00
Jim Meyering bcb7e37261 . 2003-12-19 12:53:40 +00:00
Jim Meyering 70266a8783 *** empty log message *** 2003-12-19 12:53:25 +00:00
Jim Meyering 55186d55b0 (FTS_CROSS_CHECK, DEBUG_OPT): Define.
(main): Make fts use FTS_TIGHT_CYCLE_CHECK.
(main) [DU_DEBUG]: Accept -d option.
2003-12-19 12:52:33 +00:00
Jim Meyering 16972646cf Don't include <search.h>.
[HAVE_INTTYPES_H]: Include <inttypes.h>.
(tdestroy, tfind, tsearch): Remove definitions.
(struct Active_dir): Rename from `known_object'.
(AD_compare, AD_hash): New functions.
(enter_dir, leave_dir): Rewrite to manipulate a hash table
rather than a tree.
(fts_open): Initialize hash table or cycle_state buffer.
(free_node): Remove function.
(find_matching_ancestor): Renamed/rewritten from look_up_active_dir.
(fts_cross_check): Adapt to use new data structure.
2003-12-19 12:50:33 +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 38e0d07456 (libfetish_a_SOURCES): Remove search_.h.
(DISTCLEANFILES): Remove definition.
2003-12-19 12:34:35 +00:00
Jim Meyering 56fef712cf Rewrite cycle detection code to work properly.
Add some framework (compiled out by default) to test it.

(Dprintf, ENTER_DIR, LEAVE_DIR): Define.
(add_object): Remove function.  Rewritten as...
(enter_dir): New function.
(leave_dir, free_node): New functions.
(fts_read): Ensure that we call ENTER_DIR or LEAVE_DIR,
as appropriate, before returning.
(look_up_active_dir, fts_cross_check) [FTS_DEBUG]: New functions.
(fts_stat): Don't perform the cycle check here.
Now it's done via enter_dir.
2003-12-18 21:11:11 +00:00
Jim Meyering 628c1e33a6 *** empty log message *** 2003-12-18 17:15:47 +00:00
Jim Meyering 513aae0e6a (format_user): Increment dired_pos via two statements,
`dired_pos += width; dired_pos++;' rather than one,
`dired_pos += width + 1;' since the latter could conceivably overflow.
(format_group): Likewise.
2003-12-18 17:15:38 +00:00
Jim Meyering 4679a73192 *** empty log message *** 2003-12-18 10:39:50 +00:00
Jim Meyering 35998d368f . 2003-12-18 10:39:35 +00:00
Jim Meyering 63b84fa7c1 Require automake-1.8. 2003-12-18 10:39:26 +00:00
Jim Meyering d46798e6aa . 2003-12-18 10:38:45 +00:00
Jim Meyering 2e1934cb77 . 2003-12-18 10:38:22 +00:00
Jim Meyering a5d08fb15d *** empty log message *** 2003-12-18 10:33:49 +00:00
Jim Meyering b36b20d24d (jm_PREREQ): Require AC_FUNC_GETLOADAVG, not gl_FUNC_GETLOADAVG. 2003-12-18 10:33:39 +00:00
Jim Meyering 117a62aa37 Remove now-unnecessary file. 2003-12-18 10:31:00 +00:00
Jim Meyering 501bc93bb3 (AC_ISC_POSIX): Remove file/macro. No longer needed. 2003-12-18 10:15:13 +00:00
Jim Meyering 8b68994571 *** empty log message *** 2003-12-18 10:08:46 +00:00
Jim Meyering 7ec843cfd2 (AC_SEARCH_LIBS): Remove file/macro, now that
this replacement is no longer needed.  Besides, this macro has
no effect with autoconf-2.58, since its `undefine' is not honored.
2003-12-18 10:08:32 +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 057d6add25 *** empty log message *** 2003-12-12 04:56:03 +00:00
Jim Meyering b44464be69 . 2003-12-12 04:55:00 +00:00
Jim Meyering 6a24a621cb *** empty log message *** 2003-12-08 10:17:27 +00:00
Jim Meyering 5e912b475a (news-date-check): New rule.
(alpha beta major): Depend on it.
2003-12-08 10:17:16 +00:00
Jim Meyering 2288fdf91e add release dates 2003-12-08 10:16:26 +00:00
Jim Meyering 91adac3eab Don't assume that 'ls' output is fixed-width. 2003-12-08 09:04:48 +00:00
Jim Meyering 710dca5363 Don't assume that 'ls' output is fixed-width. 2003-12-08 09:03:51 +00:00
Jim Meyering a6616a3786 * NEWS: ls -l (and similar options) now adjust all columns to
fit the data.  Generalized from a suggestion by Leah Q for file sizes.
2003-12-08 08:38:37 +00:00
Jim Meyering db98a73a39 *** empty log message *** 2003-12-08 08:38:33 +00:00
Jim Meyering a8404d3cf8 *** empty log message *** 2003-12-08 08:37:41 +00:00
Jim Meyering 131083bdbc (What information is listed, chroot invocation):
Adjust example 'ls' output to match new behavior with narrower
output columns.
(The cut command): Remove example that cut the output of
'ls -l'.  The output was incorrect even with the old 'ls', and
the whole idea of using 'cut' on 'ls -l' output is bogus anyway.
2003-12-08 08:37:36 +00:00
Jim Meyering f8822b3232 *** empty log message *** 2003-12-08 08:36:20 +00:00
Jim Meyering a010053815 (INODE_DIGITS, LOGIN_NAME_MAX, ID_LENGTH_MAX): Remove.
(format_user_width, format_group_width, unsigned_file_size,
format_group): New functions.
(block_size_width): Renamed from block_size_size.
(inode_number_width, nlink_width, owner_width, group_width,
author_width, major_device_number_width, minor_device_number_width,
file_size_width): New vars.
(clear_files): Initialize them.
(gobble_file): Set them.  Don't ceiling block_size_width to 7.
(print_long_file): Use them.
(gobble_file): Use a new local variable 'f' to make the code
smaller and more consistent with other functions.
(format_user): Output to stdout, not to a buffer, so that we
don't have to worry about buffer overrun.  Update dired_pos.
(print_long_file): Don't put owner, group, author into buffer;
just print them directly.  Don't assume link counts and
major and minor numbers fit into unsigned long int.
From Paul Eggert.
2003-12-08 08:34:40 +00:00
Jim Meyering 8a0f4de82a . 2003-12-03 10:32:34 +00:00
Jim Meyering 8954da8514 *** empty log message *** 2003-12-03 10:31:55 +00:00
Jim Meyering a146b69be1 . 2003-12-03 10:31:37 +00:00
Jim Meyering 554a8298c9 *** empty log message *** 2003-12-03 10:28:45 +00:00
Jim Meyering 54594d2b21 (getgroups): xmalloc takes one argument, not two. 2003-12-03 10:28:39 +00:00
Jim Meyering d82b470324 *** empty log message *** 2003-12-02 10:06:55 +00:00
Jim Meyering 5c72eac595 Include sha1.h (reflect renaming: sha.h -> sha1.h. 2003-12-02 10:06:36 +00:00