Jim Meyering [Wed, 5 Feb 2003 20:29:14 +0000 (20:29 +0000)]
(check-texinfo): Allow bare `POSIX' to be used on direntry lines.
Jim Meyering [Wed, 5 Feb 2003 20:19:46 +0000 (20:19 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Feb 2003 20:19:31 +0000 (20:19 +0000)]
(ftw_startup): When using FTW_DEPTH, call `func', the
user-supplied callback, once for the current directory before calling
ftw_dir, in case that part of the hierarchy should be pruned.
`func' does that by setting `data->skip'.
Jim Meyering [Wed, 5 Feb 2003 16:35:07 +0000 (16:35 +0000)]
Include <limits.h>.
(PATH_MAX): Define to 1024, if not already defined.
(process_entry): Allocate enough space to hold the resulting
file name. Don't presume that 2*dirbufsize is enough.
(ftw_startup): Always use PATH_MAX to compute buffer size, now that
it is guaranteed to be defined.
Jim Meyering [Wed, 5 Feb 2003 15:08:15 +0000 (15:08 +0000)]
(process_entry): When using FTW_DEPTH, call `func',
the user-supplied callback, once before any of its entries,
in case that part of the hierarchy should be pruned. `func'
does that by setting `data->skip'.
Jim Meyering [Wed, 5 Feb 2003 14:29:59 +0000 (14:29 +0000)]
make sure excluding an entire hierarchy works
Jim Meyering [Wed, 5 Feb 2003 09:47:23 +0000 (09:47 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Feb 2003 09:47:17 +0000 (09:47 +0000)]
(TESTS): Add exclude.
Jim Meyering [Wed, 5 Feb 2003 09:18:43 +0000 (09:18 +0000)]
don't use diff -u
Jim Meyering [Wed, 5 Feb 2003 09:18:33 +0000 (09:18 +0000)]
typos
Jim Meyering [Wed, 5 Feb 2003 09:17:22 +0000 (09:17 +0000)]
*** empty log message ***
Jim Meyering [Wed, 5 Feb 2003 07:01:27 +0000 (07:01 +0000)]
(show_entry): Update sole use of show_disk.
Jim Meyering [Tue, 4 Feb 2003 16:36:18 +0000 (16:36 +0000)]
*** empty log message ***
Jim Meyering [Tue, 4 Feb 2003 11:48:40 +0000 (11:48 +0000)]
*** empty log message ***
Jim Meyering [Tue, 4 Feb 2003 11:48:27 +0000 (11:48 +0000)]
`df /dev/block-or-char-device-file--not-mounted' now reports
the name of the file system on which the file resides, usually `/'.
Before, it would leave the `Mounted on' field blank.
(show_disk): Add parameter: STATP.
If we don't find a matching device name, then resort to calling
find_mount_point.
Jim Meyering [Tue, 4 Feb 2003 10:28:23 +0000 (10:28 +0000)]
(show_disk): Move function to precede find_mount_point.
Jim Meyering [Mon, 3 Feb 2003 13:57:21 +0000 (13:57 +0000)]
bump to 4.5.6
Jim Meyering [Sun, 2 Feb 2003 23:16:49 +0000 (23:16 +0000)]
.
Jim Meyering [Sun, 2 Feb 2003 22:11:13 +0000 (22:11 +0000)]
.
Jim Meyering [Sun, 2 Feb 2003 22:10:41 +0000 (22:10 +0000)]
duh
Jim Meyering [Sun, 2 Feb 2003 21:48:00 +0000 (21:48 +0000)]
.
Jim Meyering [Sun, 2 Feb 2003 20:53:56 +0000 (20:53 +0000)]
Remove junk that somehow was improperly pasted into an entry from 2002-10-12.
Jim Meyering [Sun, 2 Feb 2003 20:51:24 +0000 (20:51 +0000)]
add a couple newlines
Jim Meyering [Sun, 2 Feb 2003 20:35:15 +0000 (20:35 +0000)]
*** empty log message ***
Jim Meyering [Sun, 2 Feb 2003 20:34:45 +0000 (20:34 +0000)]
.
Jim Meyering [Sun, 2 Feb 2003 20:34:20 +0000 (20:34 +0000)]
(check-x-vs-1): Use @PATH_SEPARATOR@, not `:'.
Jim Meyering [Sun, 2 Feb 2003 20:31:48 +0000 (20:31 +0000)]
(makefile_path_separator_check): New rule.
(local-check): Add it to the list.
Jim Meyering [Sun, 2 Feb 2003 20:17:21 +0000 (20:17 +0000)]
*** empty log message ***
Jim Meyering [Sun, 2 Feb 2003 20:17:04 +0000 (20:17 +0000)]
*** empty log message ***
Jim Meyering [Sun, 2 Feb 2003 20:15:11 +0000 (20:15 +0000)]
*** empty log message ***
Jim Meyering [Sun, 2 Feb 2003 20:14:53 +0000 (20:14 +0000)]
Use @PATH_SEPARATOR@ instead of hard-coding the path-separator.
Also double-quote the new PATH, to avoid problems when the
path-separator is a semi-colon or when `pwd` contains e.g. a space.
Jim Meyering [Sun, 2 Feb 2003 20:14:20 +0000 (20:14 +0000)]
*** empty log message ***
Jim Meyering [Sun, 2 Feb 2003 20:14:00 +0000 (20:14 +0000)]
*** empty log message ***
Jim Meyering [Sun, 2 Feb 2003 20:11:33 +0000 (20:11 +0000)]
Use @PATH_SEPARATOR@ instead of hard-coding the path-separator.
Also double-quote the new PATH, to avoid problems when the
path-separator is a semi-colon or when `pwd` contains e.g. a space.
Jim Meyering [Sun, 2 Feb 2003 19:36:48 +0000 (19:36 +0000)]
tweak syntax to make it consistent with others
Jim Meyering [Sun, 2 Feb 2003 18:25:33 +0000 (18:25 +0000)]
*** empty log message ***
Jim Meyering [Sun, 2 Feb 2003 18:25:22 +0000 (18:25 +0000)]
.
Jim Meyering [Sun, 2 Feb 2003 18:24:09 +0000 (18:24 +0000)]
*** empty log message ***
Jim Meyering [Sun, 2 Feb 2003 18:23:56 +0000 (18:23 +0000)]
.
Jim Meyering [Sun, 2 Feb 2003 18:18:47 +0000 (18:18 +0000)]
*** empty log message ***
Jim Meyering [Sun, 2 Feb 2003 18:18:43 +0000 (18:18 +0000)]
(jm_PREREQ_REGEX): Remove.
Jim Meyering [Sun, 2 Feb 2003 18:18:05 +0000 (18:18 +0000)]
(jm_PREREQ_REGEX): New function, from gnulib.
(jm_INCLUDED_REGEX): Use it.
Jim Meyering [Sun, 2 Feb 2003 17:15:01 +0000 (17:15 +0000)]
*** empty log message ***
Jim Meyering [Sun, 2 Feb 2003 17:14:59 +0000 (17:14 +0000)]
(lstat) [LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
Jim Meyering [Sun, 2 Feb 2003 17:10:25 +0000 (17:10 +0000)]
Require jm_FUNC_LSTAT.
Jim Meyering [Sat, 1 Feb 2003 22:52:45 +0000 (22:52 +0000)]
Don't put decl after non-decl.
Jim Meyering [Sat, 1 Feb 2003 15:21:45 +0000 (15:21 +0000)]
*** empty log message ***
Jim Meyering [Sat, 1 Feb 2003 15:21:29 +0000 (15:21 +0000)]
.
Jim Meyering [Sat, 1 Feb 2003 15:21:18 +0000 (15:21 +0000)]
*** empty log message ***
Jim Meyering [Sat, 1 Feb 2003 15:20:36 +0000 (15:20 +0000)]
(MAX_N_DESCRIPTORS): Define.
Jim Meyering [Sat, 1 Feb 2003 11:05:25 +0000 (11:05 +0000)]
*** empty log message ***
Jim Meyering [Sat, 1 Feb 2003 11:05:23 +0000 (11:05 +0000)]
(jm_MACROS): Require UTILS_SYS_OPEN_MAX.
Jim Meyering [Sat, 1 Feb 2003 11:04:50 +0000 (11:04 +0000)]
.
Jim Meyering [Sat, 1 Feb 2003 11:03:57 +0000 (11:03 +0000)]
.
Jim Meyering [Sat, 1 Feb 2003 11:03:28 +0000 (11:03 +0000)]
tweak syntax. duh
Jim Meyering [Sat, 1 Feb 2003 11:03:04 +0000 (11:03 +0000)]
Whoops. Swap fail/cross-compile cases.
Jim Meyering [Sat, 1 Feb 2003 11:00:45 +0000 (11:00 +0000)]
add comments
Jim Meyering [Sat, 1 Feb 2003 09:59:17 +0000 (09:59 +0000)]
*** empty log message ***
Jim Meyering [Sat, 1 Feb 2003 09:59:09 +0000 (09:59 +0000)]
(G_fail): New global.
(human_time): Diagnose failed localtime, not failed nstrftime.
(main): Fail if G_fail is set.
Jim Meyering [Fri, 31 Jan 2003 18:28:43 +0000 (18:28 +0000)]
*** empty log message ***
Jim Meyering [Fri, 31 Jan 2003 18:28:39 +0000 (18:28 +0000)]
Include "file-type.h"
(print_human_type): Remove function.
(human_access): Rename from print_human_access. Return a string.
(human_time): Rename from print_human_time. Return a string.
(print_stat): Arrange so that field width and an alignment specifier
are honored for the %A, %F, %x, %y, and %z formats.
[%F]: Use file_type; this gives slightly different file type strings,
e.g., `directory' instead of `Directory' and `regular file' or
`regular empty file' instead of `Regular file'.
Jim Meyering [Fri, 31 Jan 2003 13:52:18 +0000 (13:52 +0000)]
(print_stat): Use S_ISLNK rather than an explicit
test using S_IFMT and S_IFLNK. S_IFLNK may not be defined.
Jim Meyering [Fri, 31 Jan 2003 13:37:16 +0000 (13:37 +0000)]
*** empty log message ***
Jim Meyering [Fri, 31 Jan 2003 13:37:08 +0000 (13:37 +0000)]
ditto for invalid options
Jim Meyering [Fri, 31 Jan 2003 13:35:25 +0000 (13:35 +0000)]
(main): Upon processing a bad --exclude-from or --max-depth
option argument, don't exit right away, in case there are others.
Rather record the failure and exit after processing other options.
Jim Meyering [Fri, 31 Jan 2003 10:43:35 +0000 (10:43 +0000)]
*** empty log message ***
Jim Meyering [Fri, 31 Jan 2003 10:43:29 +0000 (10:43 +0000)]
(TAR_OPTIONS): Set and export, in order to make
tar archive easier to reproduce.
Jim Meyering [Fri, 31 Jan 2003 10:39:47 +0000 (10:39 +0000)]
*** empty log message ***
Jim Meyering [Fri, 31 Jan 2003 10:39:33 +0000 (10:39 +0000)]
Rewrite to perform directory traversal using nftw.
Include "dirname.h", "ftw.h", and "quotearg.h".
(AUTHORS): Add self.
(opt_one_file_system): Move global into `main'.
(path, xstat, exit_status): Remove declarations.
(arg_length, suffix_length): New globals.
(G_fail): New global, sort of like the old `exit_status'.
(IS_FTW_DIR_TYPE): Define.
(print_only_size): New function.
(process_file): New function.
(str_init, ensure_space, str_copyc, str_concatc): Remove functions.
(str_trunc, pop_dir, count_entry): Likewise.
(du_files): Rewrite to use nftw.
Jim Meyering [Thu, 30 Jan 2003 20:23:29 +0000 (20:23 +0000)]
*** empty log message ***
Jim Meyering [Thu, 30 Jan 2003 19:40:09 +0000 (19:40 +0000)]
Ensure that with -L we get the same results even without the trailing slash.
Jim Meyering [Thu, 30 Jan 2003 13:55:20 +0000 (13:55 +0000)]
get latest
Jim Meyering [Thu, 30 Jan 2003 10:42:45 +0000 (10:42 +0000)]
*** empty log message ***
Jim Meyering [Wed, 29 Jan 2003 20:52:02 +0000 (20:52 +0000)]
no backticks in C comments
Jim Meyering [Wed, 29 Jan 2003 20:36:41 +0000 (20:36 +0000)]
*** empty log message ***
Jim Meyering [Wed, 29 Jan 2003 20:36:18 +0000 (20:36 +0000)]
*** empty log message ***
Jim Meyering [Wed, 29 Jan 2003 20:20:40 +0000 (20:20 +0000)]
*** empty log message ***
Jim Meyering [Wed, 29 Jan 2003 20:20:36 +0000 (20:20 +0000)]
Detect broken re_search in e.g. glibc-2.2.93.
Jim Meyering [Tue, 28 Jan 2003 17:55:23 +0000 (17:55 +0000)]
.
Jim Meyering [Tue, 28 Jan 2003 17:54:46 +0000 (17:54 +0000)]
.
Jim Meyering [Tue, 28 Jan 2003 17:40:56 +0000 (17:40 +0000)]
comments
Jim Meyering [Mon, 27 Jan 2003 18:06:38 +0000 (18:06 +0000)]
*** empty log message ***
Jim Meyering [Mon, 27 Jan 2003 18:04:46 +0000 (18:04 +0000)]
*** empty log message ***
Jim Meyering [Mon, 27 Jan 2003 15:16:01 +0000 (15:16 +0000)]
add comments
Jim Meyering [Mon, 27 Jan 2003 15:00:22 +0000 (15:00 +0000)]
(FTW_DCH, FTW_DCHP): Better comments.
Jim Meyering [Mon, 27 Jan 2003 13:42:26 +0000 (13:42 +0000)]
(quote_name): Add fourth parameter, width, into which to
store the screen columns, and return the number of bytes instead.
(print_dir): Pass NULL as fourth parameter of quote_name.
(print_name_with_quoting): Likewise.
(length_of_file_name_and_frills): Get the width from the fourth
parameter of quote_name instead of return value.
Jim Meyering [Mon, 27 Jan 2003 13:40:47 +0000 (13:40 +0000)]
*** empty log message ***
Jim Meyering [Mon, 27 Jan 2003 13:40:43 +0000 (13:40 +0000)]
(check-misc): Check for st_blocks, too.
Jim Meyering [Mon, 27 Jan 2003 13:32:44 +0000 (13:32 +0000)]
(print_stat): Use ST_NBLOCKS rather than `->st_blocks'.
Jim Meyering [Mon, 27 Jan 2003 13:26:45 +0000 (13:26 +0000)]
.
Jim Meyering [Mon, 27 Jan 2003 10:45:51 +0000 (10:45 +0000)]
*** empty log message ***
Jim Meyering [Mon, 27 Jan 2003 10:45:48 +0000 (10:45 +0000)]
(decode_switches): If `dired' is set without
`format == long_format', then silently reset dired. This doesn't
change the behavior of ls (all prior uses of dired were protected
by `&& format == long_format'), and lets us...
(DIRED_INDENT): ... remove `format == long_format' conjunct.
(PUSH_CURRENT_DIRED_POS): Likewise.
(main): Likewise.
Jim Meyering [Sun, 26 Jan 2003 11:05:46 +0000 (11:05 +0000)]
*** empty log message ***
Jim Meyering [Sun, 26 Jan 2003 11:03:44 +0000 (11:03 +0000)]
*** empty log message ***
Jim Meyering [Sat, 25 Jan 2003 20:32:44 +0000 (20:32 +0000)]
[_LIBC] (ISSLASH, FILESYSTEM_PREFIX_LEN): Define.
(base_name): New function.
(ftw_startup): Don't strip trailing slashes.
Use base_name to find the offset of the basename.
Jim Meyering [Sat, 25 Jan 2003 16:44:07 +0000 (16:44 +0000)]
(object_compare): Compare inode numbers before device numbers.
The former is much more likely to differ for any two given file objects.
Jim Meyering [Sat, 25 Jan 2003 16:31:35 +0000 (16:31 +0000)]
*** empty log message ***
Jim Meyering [Sat, 25 Jan 2003 16:31:23 +0000 (16:31 +0000)]
(cut invocation): Describe new functionality of --output-delimiter=STR.
Jim Meyering [Sat, 25 Jan 2003 08:00:05 +0000 (08:00 +0000)]
.
Jim Meyering [Fri, 24 Jan 2003 14:58:38 +0000 (14:58 +0000)]
Tweak mysql output to match input :-) From Jan.