Jim Meyering
965c0bf39d
[!HAVE_UTIME_H]: Don't declare struct utimbuf here.
...
[!HAVE_STRUCT_UTIMBUF]: Declare struct utimbuf here instead.
1995-10-06 02:53:42 +00:00
Jim Meyering
e387fd1471
(show_point): Cast -2 to dev_t before assignment.
1995-10-05 14:12:29 +00:00
Jim Meyering
1c7bc6028a
protoize
1995-10-04 21:21:23 +00:00
Jim Meyering
74f061de82
Remove forward dcl of usage.
1995-10-04 21:20:40 +00:00
Jim Meyering
47b91b8948
(usage): Move to precede all other functions.
1995-10-04 21:19:28 +00:00
Jim Meyering
2d73c959cc
(main): Report `too few/many non-option arguments' then print --help
...
output rather than just the latter.
Properly interpret obsolescent usage like `join -o 2.1 2.1 2.2'.
(usage): Describe POSIX -1, -2 options and deprecate -j* ones
1995-10-04 21:17:43 +00:00
Jim Meyering
a9de4d485a
Test SA_INTERRUPT, not _POSIX_VERSION,
...
to determine whether `sigaction' functions are available.
Reported by Paul Nevai <nevai@ops.mps.ohio-state.edu >.
Fix suggested by Karl Berry.
1995-10-04 03:46:35 +00:00
Jim Meyering
111cb717e8
(set_fields): Use memset (not open coded loop) to initialize array.
1995-10-03 20:28:44 +00:00
Jim Meyering
6a45f61547
Convert a lot of int' types to unsigned int' to avoid warnings from
...
`gcc -Wall' about comparing signed and unsigned types.
1995-10-03 20:21:32 +00:00
Jim Meyering
026d10d369
(main): Declare counter, N_STRINGS, to be an integral type, not `char'.
1995-10-03 20:18:39 +00:00
Jim Meyering
b3303ba072
Declare stat, xstat.
1995-10-01 22:40:11 +00:00
Jim Meyering
eddb25aa26
Declare stat, xstat.
1995-10-01 20:17:25 +00:00
Jim Meyering
527d04d44b
(dired_dump_obstack): Don't generate any output if the obstack is empty.
...
(main): Always initialize and dump subdired_obstack, not just if -R.
`ls -lDR dir dir2' was using uninitialized subdired_obstack.
Reported by Samuli K{rkk{inen <hskarkka@snakemail.hut.fi >.
1995-09-29 04:09:22 +00:00
Jim Meyering
9a12d05216
(decode_one_format): Remove spurious semicolon.
1995-09-27 15:58:18 +00:00
Jim Meyering
744393f0f4
(show_point): Ignore mtab entries with either
...
nonexistent mount points or with inconsistent device number.
From Eirik Fuller <eirik@synopsys.com >.
1995-09-26 04:18:55 +00:00
Jim Meyering
12e85d31e2
Protoize.
1995-09-24 13:36:13 +00:00
Jim Meyering
528390fa58
(print_kth): Change order of args in compare, and reverse sense of comparison
...
(Hence, no semantic change).
1995-09-23 20:42:52 +00:00
Jim Meyering
f344b7fab6
(md5_check): Distinguish between open/read failure and checksum mismatch.
1995-09-23 20:22:05 +00:00
Jim Meyering
1b16c152bd
(main): Reverse order of check' and compute sums' blocks in if-else
...
chain to make it a little more readable.
1995-09-20 12:47:37 +00:00
Jim Meyering
0e15d57a89
Rewrite confusing comment.
1995-09-19 12:59:49 +00:00
Jim Meyering
c253d247ca
(checkfp): Rearrange loop to avoid duplicate test.
...
Move a couple dcls from function scope into inner block.
1995-09-19 12:50:34 +00:00
Jim Meyering
dde2c138e9
Protoize.
1995-09-18 12:44:47 +00:00
Jim Meyering
7823351d6b
(main, usage): Remove -h, -s, -v short options.
...
Rename --verbose to --warn, --quiet to --status.
(main): Handle --help and --version using parse_long_options.
(md5_check): Check ferror.
1995-09-18 12:36:12 +00:00
Jim Meyering
b23b6bbcf7
(tempname): Replace `16' with a more readable expansion.
...
Make sure that SEQ never exceeds 99999.
1995-09-14 13:31:52 +00:00
Jim Meyering
800e219a2d
(sort): Rename local: ntemp -> n_temp_files, to avoid confusion
...
with another local, ntmp.
1995-09-14 13:09:27 +00:00
Jim Meyering
b0453a43c0
(main) [handling --string option]: Don't output nonstandard `b' binary flag.
1995-08-10 21:11:24 +00:00
Jim Meyering
a030007908
(my_strtol): Remove function.
...
(main): Use xstrtol instead.
1995-08-09 05:33:19 +00:00
Jim Meyering
b014a71007
(main): Fail if either --verbose or --quiet is specified
...
when not verifying checksums.
1995-08-09 04:21:14 +00:00
Jim Meyering
a6fdb5b75d
Include system.h.
1995-08-09 03:57:17 +00:00
Jim Meyering
26574d5284
(md5_check): Fail if no valid line is found.
...
Don't use the word `fail' unless there were failures --
say `all N tests passed.'
1995-08-09 02:50:09 +00:00
Jim Meyering
f03f8dcc44
(mergefps) [lint]: Initialize SAVEALLOC to avoid spurious
...
compiler warning. From Ulrich Drepper.
1995-08-08 04:58:46 +00:00
Jim Meyering
a5656326f0
(read_line) [lint]: Initialize CHARS to avoid spurious
...
compiler warning. From Ulrich Drepper.
1995-08-08 04:58:23 +00:00
Jim Meyering
f0556f3517
Annotate localizable strings with _(...). From Franc,ois.
1995-08-08 04:37:34 +00:00
Jim Meyering
9c3f1711e2
(is_number): Rename from isnumber.
1995-08-07 16:06:43 +00:00
Jim Meyering
92c50e7f52
Annotate localizable strings with _(...). From Franc,ois.
1995-08-07 14:57:29 +00:00
Jim Meyering
00dadad79c
(validate): Remove const attribute from formal #1 .
...
It may be modified.
1995-08-05 05:09:21 +00:00
Jim Meyering
767768457c
(__P): No longer define this. It's not used.
1995-08-05 04:58:31 +00:00
Jim Meyering
cbc82e5cc3
Protoize.
1995-08-05 03:36:29 +00:00
Jim Meyering
b0aa8e6985
Protoize.
1995-08-05 03:19:56 +00:00
Jim Meyering
be22aff966
(save_cwd, restore_cwd, free_cwd): Remove functions.
...
New versions have been broken out into save-cwd.c.
(du_files): Adapt to handle status code returned by new versions
of save_cwd and restore_cwd.
(count_entry): Likewise.
1995-08-05 03:10:27 +00:00
Jim Meyering
0159470d3d
(decode_switches): Set SORT_TYPE. Before, ls -c was sorting
...
by name, rather than change time. Reported by Ken Estes
(m-ke0082@sparky.cs.nyu.edu ).
1995-08-05 03:09:41 +00:00
Jim Meyering
351cf87351
(isnumber): Rename to is_number to avoid conflict with
...
FreeBSD 2.0.5 macro definition. Reported by David O'Brien
(obrien@sea.legent.com ).
1995-08-05 03:06:41 +00:00
Jim Meyering
b1ab76f3e4
.
1995-08-02 04:26:31 +00:00
Jim Meyering
fc88df7458
(md5_check): Use getline instead of fgets.
1995-07-30 23:57:03 +00:00
Jim Meyering
ba477b681a
Add parens to clarify ?: expression.
1995-07-30 05:03:26 +00:00
Jim Meyering
f2fc6e4cad
(check): Print `disorder on...' message on standard error, not stdout.
...
This is a minor concession to POSIX which says `no output shall be produced'.
(main): Fix -k so it works. -k 2,3 was being treated like -k 2.
Reported by Marcus Daniels <marcus@sysc.pdx.edu >.
1995-07-30 05:02:37 +00:00
Jim Meyering
8904d4a45c
Remove spurious space.
1995-07-27 03:57:10 +00:00
Jim Meyering
8c17f50aea
(tail_bytes) [from_start]: For regular files, seek
...
relative to the initial input file pointer position, not
necessarily from the beginning of the file.
[!from_start]: Don't back up past the initial position of the
input file pointer.
(tail_lines): Call file_lines only if FD refers to a regular file
with its file pointer positioned at beginning of file. Otherwise,
call pipe_lines. This is a kludge. Once there's a decent test
suite, fix this properly.
Before, (echo 1; echo 2) > k; sh -c 'read x; tail' < k
would output both lines of the input file even though the first had
already been read. Reported by John Roll (john@panic.harvard.edu ).
1995-07-27 03:56:35 +00:00
Jim Meyering
28e28e6d74
(have_read_stdin): New global variable.
...
(md5_file, md5_check): Set it.
(main): Use it.
[OPENOPTS]: Depend explicitly on BINARY.
(md5_file): Take a new parameter, MD5_RESULT, and no longer
generate output.
(md5_check): Invoke md5_file instead of calling fopen directly.
When giving a diagnostic for a line with invalid format, also report
the line number.
(main): Generate output after a successful md5_file call.
[in many places]: Upon detection of an error, rather than exiting
immediately, issue a diagnostic, note that an error occurred and
exit later.
1995-07-27 03:45:11 +00:00
Jim Meyering
7732d5d7cf
(main): When too few arguments are given, don't just
...
issue the usage message; also report why.
1995-07-25 04:50:04 +00:00