Jim Meyering [Sat, 4 Jul 1998 00:20:47 +0000 (00:20 +0000)]
.
Jim Meyering [Sat, 4 Jul 1998 00:20:36 +0000 (00:20 +0000)]
Require jm_WITH_REGEX.
Jim Meyering [Sat, 4 Jul 1998 00:19:23 +0000 (00:19 +0000)]
.
Jim Meyering [Sat, 4 Jul 1998 00:19:08 +0000 (00:19 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Jul 1998 00:17:52 +0000 (00:17 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Jul 1998 00:15:37 +0000 (00:15 +0000)]
Change guard on <regex.h> inclusion to use new
symbol `! HAVE_LIBC_REGEX' defined in m4/regex.m4.
Jim Meyering [Sat, 4 Jul 1998 00:05:23 +0000 (00:05 +0000)]
.
Jim Meyering [Fri, 3 Jul 1998 23:56:44 +0000 (23:56 +0000)]
(copy_internal): Rename variable and reverse sense of tests
to make the code a little clearer.
Jim Meyering [Fri, 3 Jul 1998 21:05:06 +0000 (21:05 +0000)]
(df_readable): Rename local so as not to shadow global.
Jim Meyering [Fri, 3 Jul 1998 20:57:31 +0000 (20:57 +0000)]
(SAME_INODE): New macro.
Use it to replace open-coded equivalents.
Jim Meyering [Fri, 3 Jul 1998 20:32:37 +0000 (20:32 +0000)]
(copy_internal): Try harder identifying a relative
symbolic link in the current directory.
From Andreas Schwab.
Jim Meyering [Fri, 3 Jul 1998 20:09:03 +0000 (20:09 +0000)]
Skip tests that depend on link(2) not following symlinks.
From Andreas Schwab.
Jim Meyering [Fri, 3 Jul 1998 20:06:50 +0000 (20:06 +0000)]
(copy_internal): Don't skip test for same file if creating a hardlink
from symlink over a non-symlink while making backups.
Jim Meyering [Fri, 3 Jul 1998 19:57:42 +0000 (19:57 +0000)]
(copy_internal): Don't call chown on a symlink.
Jim Meyering [Wed, 1 Jul 1998 12:46:39 +0000 (12:46 +0000)]
*** empty log message ***
Jim Meyering [Wed, 1 Jul 1998 12:44:22 +0000 (12:44 +0000)]
Don't define NDEBUG, now that it's done via configure's --disable-assert option.
Jim Meyering [Tue, 30 Jun 1998 14:32:53 +0000 (14:32 +0000)]
(read_filesystem_list):
Plug file descriptor leak on failure.
Report failure if lock file can't be opened for some reason
other than nonexistence.
Jim Meyering [Tue, 30 Jun 1998 14:32:33 +0000 (14:32 +0000)]
*** empty log message ***
Jim Meyering [Tue, 30 Jun 1998 03:57:55 +0000 (03:57 +0000)]
.
Jim Meyering [Tue, 30 Jun 1998 03:56:57 +0000 (03:56 +0000)]
(read_filesystem_list) [MOUNTED_GETMNTENT2]:
Always close stream and file descriptor before returning.
Jim Meyering [Tue, 30 Jun 1998 02:27:51 +0000 (02:27 +0000)]
(main): Move the test of the result of the read_filesystem_list call
up out of if-block -- code in the else-block depends on it too.
Jim Meyering [Tue, 30 Jun 1998 02:15:43 +0000 (02:15 +0000)]
(read_filesystem_list): If SVR4, lock /etc/.mnttab.lock if available,
to avoid race conditions (e.g. with the automounter on Solaris 2.6).
Include <errno.h>, <fcntl.h>, <unistd.h>.
Jim Meyering [Mon, 29 Jun 1998 20:34:02 +0000 (20:34 +0000)]
*** empty log message ***
Jim Meyering [Mon, 29 Jun 1998 20:33:24 +0000 (20:33 +0000)]
.
Jim Meyering [Mon, 29 Jun 1998 20:32:36 +0000 (20:32 +0000)]
.
Jim Meyering [Mon, 29 Jun 1998 20:29:28 +0000 (20:29 +0000)]
protoize
Jim Meyering [Mon, 29 Jun 1998 17:35:28 +0000 (17:35 +0000)]
.
Jim Meyering [Mon, 29 Jun 1998 17:31:11 +0000 (17:31 +0000)]
*** empty log message ***
Jim Meyering [Mon, 29 Jun 1998 17:19:30 +0000 (17:19 +0000)]
*** empty log message ***
Jim Meyering [Mon, 29 Jun 1998 17:03:13 +0000 (17:03 +0000)]
.
Jim Meyering [Mon, 29 Jun 1998 17:01:48 +0000 (17:01 +0000)]
(fstype_to_string): Guard with #if ! HAVE_F_FSTYPENAME_IN_STATFS.
Jim Meyering [Mon, 29 Jun 1998 16:57:09 +0000 (16:57 +0000)]
Include sys/param.h. NetBSD 1.3.1 requires this
for the definition of NGROUPS (used in a system header included
by sys/mount.h).
Jim Meyering [Mon, 29 Jun 1998 16:24:37 +0000 (16:24 +0000)]
*** empty log message ***
Jim Meyering [Mon, 29 Jun 1998 16:24:01 +0000 (16:24 +0000)]
revert back to using lower case _unlocked wrapper names
Jim Meyering [Mon, 29 Jun 1998 16:23:15 +0000 (16:23 +0000)]
Include system.h only after error.h and readutmp.h
so we don't get redefinition warnings about getc, etc.
Revert back to using lower case _unlocked wrapper names.
Jim Meyering [Mon, 29 Jun 1998 16:16:58 +0000 (16:16 +0000)]
*** empty log message ***
Jim Meyering [Mon, 29 Jun 1998 15:59:39 +0000 (15:59 +0000)]
revert back to using lower case _unlocked wrapper names
Jim Meyering [Mon, 29 Jun 1998 15:57:45 +0000 (15:57 +0000)]
revert back to using lower case _unlocked wrapper names
Jim Meyering [Mon, 29 Jun 1998 15:56:23 +0000 (15:56 +0000)]
Update call to human_readable -- now there's one fewer arg.
Jim Meyering [Mon, 29 Jun 1998 15:38:09 +0000 (15:38 +0000)]
.
Jim Meyering [Mon, 29 Jun 1998 15:36:28 +0000 (15:36 +0000)]
(__xstrtol), src/dd.c (parse_integer):
Add support for SI-like suffixes like "GB" and "TD".
(usage): Describe it.
Jim Meyering [Mon, 29 Jun 1998 15:34:54 +0000 (15:34 +0000)]
(human_readable_base, output_units): Remove;
replace with new variable output_block_size. All uses changed.
(long_options, usage, main): Add --block-size.
(main, decode_switches): Use new human_block_size function to
initialize output block size consistently with other programs.
From Paul Eggert.
Jim Meyering [Mon, 29 Jun 1998 15:33:38 +0000 (15:33 +0000)]
(human_readable_base, output_units): Remove;
replace with new variable output_block_size. All uses changed.
(long_options, usage, main): Add --block-size.
(main, decode_switches): Use new human_block_size function to
initialize output block size consistently with other programs.
(print_header, show_dev): Shrink some columns and expand
others, to squeeze in support for today's larger filesystems.
(print_header): Print output block size using power-of-1024 SI format.
(df_readable): Coalesce last two args into one, for convenience.
All callers changed.
(main): Remove check for portable output format and larger
or human-readable block sizes.
From Paul Eggert.
Jim Meyering [Mon, 29 Jun 1998 15:24:43 +0000 (15:24 +0000)]
* lib/xstrtol.c (bkm_scale): Don't assume that you can convert
unsigned long to double without losing information.
(bkm_scale_by_power): New function.
* lib/xstrtol.c (__xstrtol), src/dd.c (parse_integer):
Add support for SI-like suffixes like "GB" and "TD".
* src/dd.c (usage): Describe it.
Jim Meyering [Mon, 29 Jun 1998 15:24:15 +0000 (15:24 +0000)]
(__ZLONG_MAX): Remove.
Jim Meyering [Mon, 29 Jun 1998 15:23:45 +0000 (15:23 +0000)]
(human_readable): Coalesce last two args into one, for convenience.
Jim Meyering [Mon, 29 Jun 1998 15:23:04 +0000 (15:23 +0000)]
* lib/human.c, lib/human.h (human_readable): Coalesce last two args
into one, for convenience. All callers changed.
(human_block_size): New function.
* lib/human.c: Include <config.h> only if HAVE_CONFIG_H.
Include <stdlib.h> if HAVE_STDLIB_H;
declare getenv unless HAVE_DECL_GETENV.
(_): New macro.
Include <argmatch.h>, <error.h>, <xstrtoul.h>.
(DEFAULT_BLOCK_SIZE): New macro.
(block_size_args, block_size_types): New constants.
(humblock): New function.
Jim Meyering [Mon, 29 Jun 1998 14:27:03 +0000 (14:27 +0000)]
*** empty log message ***
Jim Meyering [Mon, 29 Jun 1998 03:42:55 +0000 (03:42 +0000)]
.
Jim Meyering [Mon, 29 Jun 1998 03:42:50 +0000 (03:42 +0000)]
(usage): Make --kilobytes description consistent with
that in du and df. From Göran Uddeborg.
Jim Meyering [Mon, 29 Jun 1998 03:42:18 +0000 (03:42 +0000)]
*** empty log message ***
Jim Meyering [Mon, 29 Jun 1998 02:27:55 +0000 (02:27 +0000)]
.
Jim Meyering [Mon, 29 Jun 1998 02:16:17 +0000 (02:16 +0000)]
.
Jim Meyering [Mon, 29 Jun 1998 02:15:29 +0000 (02:15 +0000)]
.
Jim Meyering [Mon, 29 Jun 1998 02:14:27 +0000 (02:14 +0000)]
.
Jim Meyering [Mon, 29 Jun 1998 02:13:56 +0000 (02:13 +0000)]
.
Jim Meyering [Mon, 29 Jun 1998 02:13:21 +0000 (02:13 +0000)]
Change all uses of unlocked-wrapped functions to their upper case wrapper names.
Jim Meyering [Mon, 29 Jun 1998 02:11:07 +0000 (02:11 +0000)]
Change all uses of unlocked-wrapped functions to their upper case wrapper names.
Jim Meyering [Mon, 29 Jun 1998 02:10:24 +0000 (02:10 +0000)]
Change all uses of unlocked-wrapped functions to their upper case wrapper names.
Jim Meyering [Mon, 29 Jun 1998 01:11:00 +0000 (01:11 +0000)]
.
Jim Meyering [Mon, 29 Jun 1998 01:10:24 +0000 (01:10 +0000)]
(fsp_to_string): Clean out some crufty #ifdefs
now that we're using the jm_FSTYPENAME autoconf macro.
Jim Meyering [Mon, 29 Jun 1998 01:00:51 +0000 (01:00 +0000)]
add #undefs, alphabetize
Jim Meyering [Sun, 28 Jun 1998 23:51:58 +0000 (23:51 +0000)]
.
Jim Meyering [Sun, 28 Jun 1998 23:51:47 +0000 (23:51 +0000)]
*** empty log message ***
Jim Meyering [Sun, 28 Jun 1998 23:12:10 +0000 (23:12 +0000)]
.
Jim Meyering [Sun, 28 Jun 1998 21:53:05 +0000 (21:53 +0000)]
experimental support for -t [optional fd] -- probably soon to be backed out
Jim Meyering [Sun, 28 Jun 1998 21:42:37 +0000 (21:42 +0000)]
.
Jim Meyering [Sun, 28 Jun 1998 21:41:08 +0000 (21:41 +0000)]
Require the new macro: jm_FUNC_GLIBC_UNLOCKED_IO.
Jim Meyering [Sun, 28 Jun 1998 21:40:12 +0000 (21:40 +0000)]
.
Jim Meyering [Sun, 28 Jun 1998 21:38:14 +0000 (21:38 +0000)]
Add macro definitions for GNU libc unlocked wrappers.
Jim Meyering [Sun, 28 Jun 1998 21:32:51 +0000 (21:32 +0000)]
add a FIXME for output delimiter
Jim Meyering [Sun, 28 Jun 1998 21:13:04 +0000 (21:13 +0000)]
remove `non-directory'
Jim Meyering [Sun, 28 Jun 1998 21:11:31 +0000 (21:11 +0000)]
*** empty log message ***
Jim Meyering [Sun, 28 Jun 1998 21:11:20 +0000 (21:11 +0000)]
*** empty log message ***
Jim Meyering [Sun, 28 Jun 1998 20:34:29 +0000 (20:34 +0000)]
Add DIRED_ prefix to the macros: FPUTS and FPUTS_LITERAL.
Jim Meyering [Sun, 28 Jun 1998 20:31:16 +0000 (20:31 +0000)]
s/PUTCHAR/DIRED_PUTCHAR/g.
Jim Meyering [Sun, 28 Jun 1998 02:35:08 +0000 (02:35 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Jun 1998 23:54:10 +0000 (23:54 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Jun 1998 23:45:46 +0000 (23:45 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Jun 1998 23:45:03 +0000 (23:45 +0000)]
Add two tests for double spacing.
Jim Meyering [Sat, 27 Jun 1998 23:43:40 +0000 (23:43 +0000)]
(print_page): Break out of loop before double space test
if cols_ready_to_print is zero.
Jim Meyering [Sat, 27 Jun 1998 22:10:02 +0000 (22:10 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Jun 1998 22:09:45 +0000 (22:09 +0000)]
(copy_internal): Fix it so hard-link test is no longer hidden inside
big if-(backup_type == none) block.
Jim Meyering [Sat, 27 Jun 1998 21:36:28 +0000 (21:36 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Jun 1998 21:14:40 +0000 (21:14 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Jun 1998 21:03:16 +0000 (21:03 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Jun 1998 20:44:23 +0000 (20:44 +0000)]
(copy_reg): Detect identical source and dest here.
(copy_internal): Make the test symmetric.
Jim Meyering [Sat, 27 Jun 1998 20:37:17 +0000 (20:37 +0000)]
.
Jim Meyering [Sat, 27 Jun 1998 20:35:26 +0000 (20:35 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Jun 1998 20:35:16 +0000 (20:35 +0000)]
(TESTS): Add same-file.
Jim Meyering [Sat, 27 Jun 1998 20:33:58 +0000 (20:33 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Jun 1998 20:33:22 +0000 (20:33 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Jun 1998 20:22:36 +0000 (20:22 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Jun 1998 20:20:25 +0000 (20:20 +0000)]
.
Jim Meyering [Sat, 27 Jun 1998 20:14:15 +0000 (20:14 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Jun 1998 20:10:29 +0000 (20:10 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Jun 1998 13:45:23 +0000 (13:45 +0000)]
*** empty log message ***
Jim Meyering [Sat, 27 Jun 1998 04:40:13 +0000 (04:40 +0000)]
changed --verbose message
Jim Meyering [Sat, 27 Jun 1998 04:39:25 +0000 (04:39 +0000)]
(remove_file): Remove `non-directory' part of
`removing non-directory FILE' verbose message.
Jim Meyering [Wed, 24 Jun 1998 03:02:06 +0000 (03:02 +0000)]
(show_dev): Increase field width for blocks, used,
and available columns from 7 to 8.