summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorLines
1995-10-06Include limits.h.Jim Meyering-0/+12
[!INT_MAX]: Define it.
1995-10-06[!HAVE_UTIME_H]: Don't declare struct utimbuf here.Jim Meyering-1/+5
[!HAVE_STRUCT_UTIMBUF]: Declare struct utimbuf here instead.
1995-10-05(show_point): Cast -2 to dev_t before assignment.Jim Meyering-1/+2
1995-10-04protoizeJim Meyering-40/+15
1995-10-04Remove forward dcl of usage.Jim Meyering-1/+0
1995-10-04(usage): Move to precede all other functions.Jim Meyering-42/+42
1995-10-04(main): Report `too few/many non-option arguments' then print --helpJim Meyering-11/+20
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-04Test SA_INTERRUPT, not _POSIX_VERSION,Jim Meyering-21/+21
to determine whether `sigaction' functions are available. Reported by Paul Nevai <nevai@ops.mps.ohio-state.edu>. Fix suggested by Karl Berry.
1995-10-03(set_fields): Use memset (not open coded loop) to initialize array.Jim Meyering-2/+1
1995-10-03Convert a lot of `int' types to `unsigned int' to avoid warnings fromJim Meyering-11/+11
`gcc -Wall' about comparing signed and unsigned types.
1995-10-03(main): Declare counter, N_STRINGS, to be an integral type, not `char'.Jim Meyering-1/+1
1995-10-01Declare stat, xstat.Jim Meyering-0/+3
1995-10-01Declare stat, xstat.Jim Meyering-0/+3
1995-09-29(dired_dump_obstack): Don't generate any output if the obstack is empty.Jim Meyering-13/+19
(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-27(decode_one_format): Remove spurious semicolon.Jim Meyering-1/+1
1995-09-26(show_point): Ignore mtab entries with eitherJim Meyering-0/+4
nonexistent mount points or with inconsistent device number. From Eirik Fuller <eirik@synopsys.com>.
1995-09-24Protoize.Jim Meyering-30/+12
1995-09-23(print_kth): Change order of args in compare, and reverse sense of comparisonJim Meyering-1/+1
(Hence, no semantic change).
1995-09-23(md5_check): Distinguish between open/read failure and checksum mismatch.Jim Meyering-20/+41
1995-09-20(main): Reverse order of `check' and `compute sums' blocks in if-elseJim Meyering-12/+12
chain to make it a little more readable.
1995-09-19Rewrite confusing comment.Jim Meyering-2/+2
1995-09-19(checkfp): Rearrange loop to avoid duplicate test.Jim Meyering-45/+49
Move a couple dcls from function scope into inner block.
1995-09-18Protoize.Jim Meyering-17/+6
1995-09-18(main, usage): Remove -h, -s, -v short options.Jim Meyering-51/+57
Rename --verbose to --warn, --quiet to --status. (main): Handle --help and --version using parse_long_options. (md5_check): Check ferror.
1995-09-14(tempname): Replace `16' with a more readable expansion.Jim Meyering-6/+13
Make sure that SEQ never exceeds 99999.
1995-09-14(sort): Rename local: ntemp -> n_temp_files, to avoid confusionJim Meyering-7/+7
with another local, ntmp.
1995-08-10(main) [handling --string option]: Don't output nonstandard `b' binary flag.Jim Meyering-6/+9
1995-08-09(my_strtol): Remove function.Jim Meyering-32/+5
(main): Use xstrtol instead.
1995-08-09(main): Fail if either --verbose or --quiet is specifiedJim Meyering-8/+15
when not verifying checksums.
1995-08-09Include system.h.Jim Meyering-0/+1
1995-08-09(md5_check): Fail if no valid line is found.Jim Meyering-8/+25
Don't use the word `fail' unless there were failures -- say `all N tests passed.'
1995-08-08(mergefps) [lint]: Initialize SAVEALLOC to avoid spuriousJim Meyering-0/+4
compiler warning. From Ulrich Drepper.
1995-08-08(read_line) [lint]: Initialize CHARS to avoid spuriousJim Meyering-0/+4
compiler warning. From Ulrich Drepper.
1995-08-08Annotate localizable strings with _(...). From Franc,ois.Jim Meyering-280/+282
1995-08-07(is_number): Rename from isnumber.Jim Meyering-4/+4
1995-08-07Annotate localizable strings with _(...). From Franc,ois.Jim Meyering-343/+343
1995-08-05(validate): Remove const attribute from formal #1.Jim Meyering-1/+1
It may be modified.
1995-08-05(__P): No longer define this. It's not used.Jim Meyering-7/+0
1995-08-05Protoize.Jim Meyering-11/+4
1995-08-05Protoize.Jim Meyering-106/+31
1995-08-05(save_cwd, restore_cwd, free_cwd): Remove functions.Jim Meyering-83/+12
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(decode_switches): Set SORT_TYPE. Before, ls -c was sortingJim Meyering-0/+1
by name, rather than change time. Reported by Ken Estes (m-ke0082@sparky.cs.nyu.edu).
1995-08-05(isnumber): Rename to is_number to avoid conflict withJim Meyering-18/+20
FreeBSD 2.0.5 macro definition. Reported by David O'Brien (obrien@sea.legent.com).
1995-08-02.Jim Meyering-0/+458
1995-07-30(md5_check): Use getline instead of fgets.Jim Meyering-6/+14
1995-07-30Add parens to clarify ?: expression.Jim Meyering-1/+1
1995-07-30(check): Print `disorder on...' message on standard error, not stdout.Jim Meyering-1/+8
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-27Remove spurious space.Jim Meyering-1/+1
1995-07-27(tail_bytes) [from_start]: For regular files, seekJim Meyering-8/+39
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(have_read_stdin): New global variable.Jim Meyering-54/+84
(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.