Jim Meyering
d5c69ef797
(my_setlocale): Guard definition within #ifdef ENABLE_NLS.
1998-08-01 15:47:26 +00:00
Jim Meyering
da68f39411
* src/sort.c (usage): Add angle brackets to make `Report bugs...'
...
message consistent with all the rest.
1998-07-30 12:13:39 +00:00
Jim Meyering
4ead0cb8df
(NEGATION_SIGN): Renamed from NEGATIVE_SIGN to avoid
...
clash with <langinfo.h>. All uses changed.
From Andreas Schwab.
1998-07-29 13:29:10 +00:00
Jim Meyering
6a9aa3cf98
(show_all_fs):
...
Revert to boolean value; the old negative value is
now in show_local_fs.
(show_local_fs): New variable.
(show_dev): New args me_dummy and me_class. Use show_local_fs
and boolean show_all_fs in combination with these new args
to decide whether to show a device.
(show_disk): Pass flags to show_dev.
(show_point): Use a non-dummy mount entry if possible.
(show_all_entries): Pass flags to show_dev.
(main): --local sets show_local_fs now. Ask for file system types if
show_local_fs is nonzero, since ME_REMOTE might need them.
From Paul.
1998-07-29 04:01:29 +00:00
Jim Meyering
6e132bee5e
Make copy create each destination file initially
...
with mode 0600 so strip will work, then apply specified mode.
Arne Henrik Juul reported that `./ginstall -s -c -m 555 dd /tmp' failed.
1998-07-27 13:39:36 +00:00
Jim Meyering
b49807bfb2
Convert some char* dcls to `unsigned char*' and remove a cast --
...
to placate irix4's cc.
1998-07-26 20:43:50 +00:00
Jim Meyering
d71367f33e
(check_punctuation): Add cast to placate irix4's cc. Reported by Kaveh Ghazi.
1998-07-26 20:42:02 +00:00
Jim Meyering
bd85887daf
(split_3): Add cast to placate irix4's cc. From Kaveh Ghazi.
1998-07-26 20:09:25 +00:00
Jim Meyering
82988e97cf
(chown): Remove unused definition.
...
Reported by Kaveh Ghazi.
1998-07-26 04:13:57 +00:00
Jim Meyering
5c9345dbd1
(cut_fields): Honor new --output-delimiter option.
...
(main): Fix handling of --delimiter='' (-d ''). Until now, it has
never worked as advertised. I guess no one tried it.
1998-07-26 04:05:07 +00:00
Jim Meyering
165718775f
(main): Stat all non-`-' input file files (and fail if a
...
stat fails) when an output file is specified by `-o' but doesn't exist.
1998-07-26 02:54:01 +00:00
Jim Meyering
613f0e187f
(main): rmdir fails with EEXIST on some systems.
...
Handle that, so --ignore-fail-on-non-empty works.
(EEXIST): Define to zero if not defined.
(ENOTEMPTY): Likewise.
1998-07-26 00:29:30 +00:00
Jim Meyering
69835e9fb6
(SAME_INODE): Define it here instead.
1998-07-25 15:31:23 +00:00
Jim Meyering
3ba948db7e
(SAME_INODE): Remove definition.
1998-07-25 15:30:08 +00:00
Jim Meyering
d04604664a
(same_file): New function
...
(remove_dir): Use it to give a better diagnostic when rmdir fails
because it can't remove the current directory.
1998-07-25 15:27:55 +00:00
Jim Meyering
4e9a99dd9a
(long_options): Changes table entries not to use this form:
...
{"all", no_argument, &show_all_fs, 1},
but rather this form:
{"all", no_argument, NULL, 'a'},
Using the latter, all the option handling in one place: the getopt loop.
1998-07-25 15:14:16 +00:00
Jim Meyering
0f4fcb1fbd
(show_dev): Omit local devices if show_all_fs is negative.
...
(show_all_fs): If negative, omit non-local filesystems.
All uses of (all_fs != 0) changed to (all_fs > 0).
(long_options, usage, main): Add -l or --local option.
(main): When asking for df of an explicit file name, get all
the mount points, so that we're more likely to find it when
we look it up.
1998-07-25 14:36:07 +00:00
Jim Meyering
fc13bb65df
(utime_now): Moved into m4/utimes.m4.
...
(touch) [!HAVE_UTIME_NULL]: Remove #ifdef and use of utime_now in if-block.
1998-07-25 13:20:49 +00:00
Jim Meyering
a97f821233
(copy_internal): Add another exclusion from the
...
sameness test: when --force has been specified, the destination
is unlinked before any copy.
(copy_internal): Add yet another: when both src and dest are symlinks.
1998-07-19 04:14:52 +00:00
Jim Meyering
7ac1d190bc
Include lchown.h.
1998-07-16 23:41:03 +00:00
Jim Meyering
75b6b90fe1
[!ENOSYS] (ENOSYS): Define to ENOTSUP or ENOMSG.
1998-07-16 23:20:03 +00:00
Jim Meyering
8d4d2c4cf4
(check_format): Add `5' to the list of digits.
...
Reported by Donni Erpel.
1998-07-15 12:39:58 +00:00
Jim Meyering
6cdd12a9f2
(print_header): Print "1k-blocks", not "1.0k-blocks".
1998-07-13 00:17:57 +00:00
Jim Meyering
a4e98775a4
Remove FCLOSE_UNLOCKED block.
1998-07-08 01:07:39 +00:00
Jim Meyering
73b7370917
(parse_line): Add casts to avoid errors from Irix4's `cc' C compiler.
...
From Kaveh Ghazi.
1998-07-05 00:25:10 +00:00
Jim Meyering
218c464b91
tweak comment
1998-07-04 15:46:38 +00:00
Jim Meyering
52fa9ac235
Remove #ifdef around <regex.h> inclusion.
1998-07-04 14:45:29 +00:00
Jim Meyering
9b809393be
Remove #ifdef around <regex.h> inclusion.
...
(extract_regexp): Remove #if !WITH_REGEX...#endif block.
1998-07-04 14:45:12 +00:00
Jim Meyering
4475ffda48
(remove_dir): Use fprintf, not error to avoid newline in prompt.
1998-07-04 03:59:34 +00:00
Jim Meyering
345c323ffd
(copy_internal): Rename variable and reverse sense of tests
...
to make the code a little clearer.
1998-07-03 23:56:44 +00:00
Jim Meyering
1f682431ae
(df_readable): Rename local so as not to shadow global.
1998-07-03 21:05:06 +00:00
Jim Meyering
698a43f363
(SAME_INODE): New macro.
...
Use it to replace open-coded equivalents.
1998-07-03 20:57:31 +00:00
Jim Meyering
def9c2bf0b
(copy_internal): Try harder identifying a relative
...
symbolic link in the current directory.
From Andreas Schwab.
1998-07-03 20:32:37 +00:00
Jim Meyering
184870f9bb
(copy_internal): Don't skip test for same file if creating a hardlink
...
from symlink over a non-symlink while making backups.
1998-07-03 20:06:50 +00:00
Jim Meyering
6ccae5e2d8
(copy_internal): Don't call chown on a symlink.
1998-07-03 19:57:42 +00:00
Jim Meyering
3fa1d4bb24
(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.
1998-06-30 02:27:51 +00:00
Jim Meyering
f3c14cb59f
revert back to using lower case _unlocked wrapper names
1998-06-29 16:24:01 +00:00
Jim Meyering
8ba97d963e
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.
1998-06-29 16:23:15 +00:00
Jim Meyering
83d4b736d2
revert back to using lower case _unlocked wrapper names
1998-06-29 15:59:39 +00:00
Jim Meyering
257c5c4737
revert back to using lower case _unlocked wrapper names
1998-06-29 15:57:45 +00:00
Jim Meyering
391c960cba
Update call to human_readable -- now there's one fewer arg.
1998-06-29 15:56:23 +00:00
Jim Meyering
60ae0b81a5
(__xstrtol), src/dd.c (parse_integer):
...
Add support for SI-like suffixes like "GB" and "TD".
(usage): Describe it.
1998-06-29 15:36:28 +00:00
Jim Meyering
09d344df5b
(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.
1998-06-29 15:34:54 +00:00
Jim Meyering
43f4099c95
(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.
1998-06-29 15:33:38 +00:00
Jim Meyering
868ed3b0af
(usage): Make --kilobytes description consistent with
...
that in du and df. From Göran Uddeborg.
1998-06-29 03:42:50 +00:00
Jim Meyering
c5eb9edf26
Change all uses of unlocked-wrapped functions to their upper case wrapper names.
1998-06-29 02:13:21 +00:00
Jim Meyering
dd9470cb58
Change all uses of unlocked-wrapped functions to their upper case wrapper names.
1998-06-29 02:11:07 +00:00
Jim Meyering
02fc5fa0d0
Change all uses of unlocked-wrapped functions to their upper case wrapper names.
1998-06-29 02:10:24 +00:00
Jim Meyering
e989012b57
add #undefs, alphabetize
1998-06-29 01:00:51 +00:00
Jim Meyering
73ab48d4e7
experimental support for -t [optional fd] -- probably soon to be backed out
1998-06-28 21:53:05 +00:00