Commit Graph
22888 Commits
Author SHA1 Message Date
Jim Meyering 7df6daf8a4 *** empty log message *** 2003-02-01 15:21:45 +00:00
Jim Meyering 1a26ff6e02 . 2003-02-01 15:21:29 +00:00
Jim Meyering a7eac7f5fd *** empty log message *** 2003-02-01 15:21:18 +00:00
Jim Meyering d606b47598 (MAX_N_DESCRIPTORS): Define. 2003-02-01 15:20:36 +00:00
Jim Meyering 07d3a99375 *** empty log message *** 2003-02-01 11:05:25 +00:00
Jim Meyering 8323669455 (jm_MACROS): Require UTILS_SYS_OPEN_MAX. 2003-02-01 11:05:23 +00:00
Jim Meyering 5acb27d993 . 2003-02-01 11:04:50 +00:00
Jim Meyering be0c9150a0 . 2003-02-01 11:03:57 +00:00
Jim Meyering 40bc15c132 tweak syntax. duh 2003-02-01 11:03:28 +00:00
Jim Meyering 228544d08c Whoops. Swap fail/cross-compile cases. 2003-02-01 11:03:04 +00:00
Jim Meyering ba61c1af86 add comments 2003-02-01 11:00:45 +00:00
Jim Meyering 1973da17d0 *** empty log message *** 2003-02-01 09:59:17 +00:00
Jim Meyering 442dbd2429 (G_fail): New global.
(human_time): Diagnose failed localtime, not failed nstrftime.
(main): Fail if G_fail is set.
2003-02-01 09:59:09 +00:00
Jim Meyering 3507d9868f *** empty log message *** 2003-01-31 18:28:43 +00:00
Jim Meyering 4686f1f3fd 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'.
2003-01-31 18:28:39 +00:00
Jim Meyering fb9e95e6c3 (print_stat): Use S_ISLNK rather than an explicit
test using S_IFMT and S_IFLNK.  S_IFLNK may not be defined.
2003-01-31 13:52:18 +00:00
Jim Meyering d060450cc8 *** empty log message *** 2003-01-31 13:37:16 +00:00
Jim Meyering d85b93c0fb ditto for invalid options 2003-01-31 13:37:08 +00:00
Jim Meyering 4bee27ae43 (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.
2003-01-31 13:35:25 +00:00
Jim Meyering aaf8697ee9 *** empty log message *** 2003-01-31 10:43:35 +00:00
Jim Meyering d92da7460e (TAR_OPTIONS): Set and export, in order to make
tar archive easier to reproduce.
2003-01-31 10:43:29 +00:00
Jim Meyering 3f026f0448 *** empty log message *** 2003-01-31 10:39:47 +00:00
Jim Meyering de49951491 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.
2003-01-31 10:39:33 +00:00
Jim Meyering 129c735cda *** empty log message *** 2003-01-30 20:23:29 +00:00
Jim Meyering 9f90080b95 Ensure that with -L we get the same results even without the trailing slash. 2003-01-30 19:40:09 +00:00
Jim Meyering 1c976d1966 get latest 2003-01-30 13:55:20 +00:00
Jim Meyering c96b23c2ff *** empty log message *** 2003-01-30 10:42:45 +00:00
Jim Meyering 594fe72be0 no backticks in C comments 2003-01-29 20:52:02 +00:00
Jim Meyering 0267e219b7 *** empty log message *** 2003-01-29 20:36:41 +00:00
Jim Meyering f5ded0090d *** empty log message *** 2003-01-29 20:36:18 +00:00
Jim Meyering 651da6950f *** empty log message *** 2003-01-29 20:20:40 +00:00
Jim Meyering a3d30ef951 Detect broken re_search in e.g. glibc-2.2.93. 2003-01-29 20:20:36 +00:00
Jim Meyering 1c5a98512f . 2003-01-28 17:55:23 +00:00
Jim Meyering 88b5eb8ef1 . 2003-01-28 17:54:46 +00:00
Jim Meyering 09b1a0014b comments 2003-01-28 17:40:56 +00:00
Jim Meyering 77e740fff6 *** empty log message *** 2003-01-27 18:06:38 +00:00
Jim Meyering fd51c35ed6 *** empty log message *** 2003-01-27 18:04:46 +00:00
Jim Meyering 3ba60a0bc5 add comments 2003-01-27 15:16:01 +00:00
Jim Meyering 96332f0a7e (FTW_DCH, FTW_DCHP): Better comments. 2003-01-27 15:00:22 +00:00
Jim Meyering 336827087f (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.
2003-01-27 13:42:26 +00:00
Jim Meyering b9f33a9f76 *** empty log message *** 2003-01-27 13:40:47 +00:00
Jim Meyering d28d7b1814 (check-misc): Check for st_blocks, too. 2003-01-27 13:40:43 +00:00
Jim Meyering 88a5f079b4 (print_stat): Use ST_NBLOCKS rather than `->st_blocks'. 2003-01-27 13:32:44 +00:00
Jim Meyering 2a22320430 . 2003-01-27 13:26:45 +00:00
Jim Meyering 3ab066a0d6 *** empty log message *** 2003-01-27 10:45:51 +00:00
Jim Meyering 7f93a5421a (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.
2003-01-27 10:45:48 +00:00
Jim Meyering ab43d63c3a *** empty log message *** 2003-01-26 11:05:46 +00:00
Jim Meyering fe443ea297 *** empty log message *** 2003-01-26 11:03:44 +00:00
Jim Meyering 91b31aa87c [_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.
2003-01-25 20:32:44 +00:00
Jim Meyering 431d1b6241 (object_compare): Compare inode numbers before device numbers.
The former is much more likely to differ for any two given file objects.
2003-01-25 16:44:07 +00:00