Jim Meyering
1d3c57118b
(find_mount_point): Convert from K&R style header to ANSI.
...
Patch from Kaveh Ghazi.
1996-12-10 00:28:02 +00:00
Jim Meyering
ba788477a8
Include config.h before testing for TERMIOS_NEEDS_XOPEN_SOURCE.
...
Patch from Karl Heuer.
1996-12-10 00:20:17 +00:00
Jim Meyering
2a1d6f9b5f
(get_win_size): Rename formal parameter from fileno to FD.
1996-12-08 06:09:21 +00:00
Jim Meyering
acc8601b65
(main): Call setlocale, bindtextdomain, and textdomain.
...
From Michel Robitaille.
1996-12-08 04:24:35 +00:00
Jim Meyering
0ccd71dd94
(init_header): Fix typo: cons tchar' -> const char'. From Roland.
1996-12-07 19:12:44 +00:00
Jim Meyering
f86df3250c
(init_store_cols): Put parens around ... ? ... : ... expr.
1996-12-05 05:01:30 +00:00
Jim Meyering
65a915647c
Use NULL instead of e.g., `(char *) 0'.
1996-12-05 04:59:26 +00:00
Jim Meyering
2882d4477d
(init_header): Move dcl of FMT into block where it's used.
1996-12-05 04:55:51 +00:00
Jim Meyering
2793223907
Reindent with -TCOLUMN.
...
(main): Add two sets of curly braces for readability.
1996-12-05 04:49:12 +00:00
Jim Meyering
a5937bbc71
(usage): Add \n\ at end of first line.
1996-12-05 04:43:19 +00:00
Jim Meyering
d0cac59c72
(separator_string): dcl parameter const.
...
Add __P in fwd dcl.
1996-12-05 04:35:39 +00:00
Jim Meyering
ed0923a11c
Apply big patch (patch-20) from Roland Huebner.
1996-12-05 04:33:33 +00:00
Jim Meyering
4a1512e4b2
(main) [!POSIXLY_CORRECT]: Allow the identity mappings:
...
[:upper:] to [:upper:] and [:lower:] to [:lower:].
(main) [POSIXLY_CORRECT]: Give a more specific diagnostic for the
identity mappings [:upper:] to [:upper:] and [:lower:] to [:lower:].
(class_ok): Update table to reflect that tr now allows these
identity mappings.
1996-12-05 03:13:33 +00:00
Jim Meyering
ad44ac84c8
(print_color_indicator): Initialize EXT to NULL.
1996-12-04 01:21:28 +00:00
Jim Meyering
b87899c834
(print_color_indicator): Check the file's suffix only
...
if it's a regular file.
(print_type_indicator): Use S_IXUGO instead of writing out
(S_IEXEC | S_IXGRP | S_IXOTH).
(length_of_file_name_and_frills): Likewise.
1996-12-03 02:33:09 +00:00
Jim Meyering
4accfeb4e0
[!S_IXUGO] (S_IXUGO): Define it.
1996-12-03 02:32:44 +00:00
Jim Meyering
0682a5efe9
(copy_file): Allow installation from non-directory (rather than only regular)
...
files. Suggestion from Charles Karney.
1996-11-30 04:33:30 +00:00
Jim Meyering
f03282e857
(main) [HAVE_SYSINFO && SI_ARCHITECTURE]: Support -p (print processor type).
...
(usage): Document it.
1996-11-30 04:18:19 +00:00
Jim Meyering
7e9e29f392
(main): Accept -F as a synonym for -t for compatibility
...
with Solaris. From Peter Eriksson.
1996-11-30 04:08:02 +00:00
Jim Meyering
d740a98d4a
(main): Close stdout and check result, in case any deferred writes fail.
...
Use EXIT_SUCCESS and EXIT_FAILURE in exit and usage calls.
1996-11-30 03:20:48 +00:00
Jim Meyering
be44044a29
(find_mount_point): Use strip_trailing_slashes and dirname
...
instead of open-coding them. When given FILE containing no slashes,
chdir to the directory containing it (the current directory) rather
than to `..'.
1996-11-28 23:50:13 +00:00
Jim Meyering
ac66871c65
(find_mount_point): Use save_cwd/restore_cwd.
...
"save-cwd.h": New include.
(show_dev): Deal with null values for DISK and FSTYPE,
including interpreting special 0 errno return from get_fs_usage.
(show_point): Don't fail if we can't find a mount entry for POINT,
just call show_dev with 0 values and let it fail if necessary.
(main): Require a non-zero MOUNT_LIST only if showing all filesystems.
(find_mount_point): New function.
(xgetcwd): New declaration.
All from Miles.
1996-11-28 19:35:33 +00:00
Jim Meyering
952a4436eb
(fraccompare): Add explicit int' in register' dcl, to
...
avoid new warning from gcc.
1996-11-27 05:05:52 +00:00
Jim Meyering
0d43bad18e
(set_ordering): Revert 1994-05-04 change to this function
...
so that blanks are not unconditionally ignored when computing start
and end positions for numeric keys. Reported by Markus Demleitner.
1996-11-25 03:07:52 +00:00
Jim Meyering
161db26bd1
(get_win_size): Take a FILENO parameter rather than
...
trying to get a size from both stdin and stdout.
Update callers.
Use STDIN_FILENO and STDOUT_FILENO instead of literal 0, 1.
1996-11-24 18:06:35 +00:00
Jim Meyering
a992c841ae
Big patch from Karl Heuer. FIXME: fill in details
1996-11-24 17:03:24 +00:00
Jim Meyering
d7e8ccb6f3
(usage): Remove trailing pair of blanks.
1996-11-24 03:00:37 +00:00
Jim Meyering
fa9f16326a
(usage): Alphabetize option descriptions the way sort -f would.
1996-11-23 22:16:19 +00:00
Jim Meyering
bded355394
(usage): Alphabetize option descriptions the way sort -f would.
1996-11-23 22:13:00 +00:00
Jim Meyering
e298f1f300
(usage): Alphabetize options like sort -f would.
1996-11-23 22:06:55 +00:00
Jim Meyering
94d1ea4fa9
(copy): With -i and not -f, prompt for any type of
...
(non-directory) source file before overwriting an existing target.
Reported by Mark A. Thomas.
1996-11-23 04:15:35 +00:00
Jim Meyering
38da840313
(main): Warn if excess arguments are ignored.
...
E.g., printf foo bar now ignores the single non-format argument, bar.
1996-11-23 02:34:31 +00:00
Jim Meyering
0d3f6a6665
(process_regexp): Update CURRENT_LINE only if
...
the new value would be larger. This avoids the infinite loop
otherwise provoked by situations like this:
printf "\na\n" | csplit - '/a/-1' '{*}'
From Jens Schmidt.
1996-11-23 02:32:10 +00:00
Jim Meyering
4b7c7e9d33
Remove unused declaration of mktime. From Tony Leneis.
1996-11-18 02:54:14 +00:00
Jim Meyering
a4f0dde547
(main): Ignore -a, for compatibility with SVR4.
1996-11-18 02:50:21 +00:00
Jim Meyering
25abc2a9b4
(recover_mode): Fail also if there are too many fields. From Karl Heuer.
1996-11-04 00:22:26 +00:00
Jim Meyering
5582e6dad3
change bug-reporting address
1996-11-03 03:16:27 +00:00
Jim Meyering
2e55854100
change bug-reporting address
1996-11-03 03:16:23 +00:00
Jim Meyering
17c0c658f1
change bug-reporting address
1996-11-02 20:44:52 +00:00
Jim Meyering
b8e689dc67
change bug-reporting address
1996-11-02 20:44:15 +00:00
Jim Meyering
1a58046071
(gobble_file): Set linkok for non-orphaned symlinks.
...
From Bauke Jan Douma.
(gobble_file): Initialize linkok.
With these two changes, ls --color should display orphaned symlinks
as blinking text on terminals that support it.
1996-11-02 15:28:08 +00:00
Jim Meyering
f1af346ad5
(main): Give better diagnostic.
...
Suggestion from Karl Berry.
1996-11-02 06:16:44 +00:00
Jim Meyering
950325ee23
.
1996-11-02 05:14:21 +00:00
Jim Meyering
febf70b73f
[!ENABLE_ASSERTIONS]: Guard NDEBUG definition.
...
(checkfp): Fix off-by-one error that resulted in writing one byte
beyond the end of a malloc'd buffer. It caused `sort -c' to segfault
on Linux systems having a relatively recent libc. Before, running
the command, perl -e "print 'x' x 30, \"\n\";"|sort -c
would provoke the memory overrun (though not necessarily the failure).
Add an assertion.
1996-11-02 03:47:04 +00:00
Jim Meyering
24e88142ba
(key_init): New function.
...
(main): Use key_init in the two places where it was open-coded.
1996-11-01 00:08:58 +00:00
Jim Meyering
f9cd2cf6e2
(decode_field_spec): Always give FIELD_INDEX a value.
...
This avoids spurious UMR from purify.
(prjoin): Add an assertion.
(add_field): Update assertion.
1996-10-31 23:55:04 +00:00
Jim Meyering
0a1ac00ad6
(es_free): New function.
...
(parse_str): Use it to plug small memory leak.
1996-10-31 23:49:42 +00:00
Jim Meyering
d7749da3e9
(decode_switches): Make -A set really_all_files to zero
...
as well as setting all_files to 1. With this change, ls -f -A prints
everything but . and .., unsorted. Before, the -A was effectively
ignored. From Karl Berry.
1996-10-29 12:51:37 +00:00
Jim Meyering
84b8cf9fcf
(main): Ignore SIGPIPE.
1996-10-29 04:16:59 +00:00
Jim Meyering
b8ad9be908
Guard inclusion of stdarg.h and definition of VA_START
...
with #if PROTOTYPES rather than with #ifdef __STDC__. The latter
loses with Dynix/PTX.
(wrapf) [PROTOTYPES]: Similarly, guard ANSI-style ... definition.
Suggestion from Marcus Daniels.
1996-10-24 04:46:33 +00:00