summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
1995-08-04.Jim Meyering
1995-08-04(SOURCES, OBJECTS, DISTFILES): Update for new files.Jim Meyering
1995-08-04.Jim Meyering
1995-08-04(_getopt_internal) [lint]: Initialize INDFOUND toJim Meyering
avoid warning from gcc.
1995-08-03.Jim Meyering
1995-08-02.Jim Meyering
1995-07-30.Jim Meyering
1995-07-30.Jim Meyering
1995-07-30(md5_check): Use getline instead of fgets.Jim Meyering
1995-07-30New version -- now derived from the line in libc.Jim Meyering
1995-07-30Get new copy from FSF.Jim Meyering
1995-07-30[memcpy]: Define to bcopy if needed.Jim Meyering
(md5_buffer): Explicitely cast SWAP expressions to unsigned to avoid warning.
1995-07-30Add parens to clarify ?: expression.Jim Meyering
1995-07-30(check): Print `disorder on...' message on standard error, not stdout.Jim Meyering
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-27.Jim Meyering
1995-07-27Initial revisionJim Meyering
1995-07-27remove trailing blanksJim Meyering
1995-07-27.Jim Meyering
1995-07-27.Jim Meyering
1995-07-27Remove spurious space.Jim Meyering
1995-07-27(tail_bytes) [from_start]: For regular files, seekJim Meyering
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
(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-25(main): When too few arguments are given, don't justJim Meyering
issue the usage message; also report why.
1995-07-25[_LIBC || STDC_HEADERS] (TOLOWER): Define to tolower.Jim Meyering
1995-07-22(md5_check): New function -- extracted from main.Jim Meyering
1995-07-21reformat commentJim Meyering
1995-07-21.Jim Meyering
1995-07-21(md5_file): New function -- extracted from main.Jim Meyering
(main): Call the new function instead of doing all that in an if stmt. Always use "%s" format rather than raw filename as format argument in printf-style functions like error. Otherwise, filenames containing e.g. `%s' lose. Remove all traces of `old format'. There is only one format now. The compatible one.
1995-07-21(md5_stream): Update prototype.Jim Meyering
[__P]: Define macro.
1995-07-21(md5_stream): Check for read failure and returnJim Meyering
indication of success rather than second argument.
1995-07-21Use EXIT_FAILURE and EXIT_SUCCESS.Jim Meyering
(main): Report an error if md5_stream fails. Otherwise, running `md5sum dir-on-mounted-filesystem' always reported the checksum for an empty file. Now it gets the `is a directory' error. Greg McGary reported that the released version got stuck in an infinite loop with such arguments.
1995-07-20(split_3): Accept only old format.Jim Meyering
Properly handle file names with leading and trailing white space.
1995-07-20more comment tweaksJim Meyering
1995-07-20Correct typo in Copyright.Jim Meyering
Reformat paragraph so line with new FSF address fits in 80 columns.
1995-07-20(usage): Move it to precede all other functions.Jim Meyering
Fiddle comments.
1995-07-20New version from Drepper.Jim Meyering
1995-07-20.Jim Meyering
1995-07-16.Jim Meyering
1995-07-16.Jim Meyering
1995-07-16.Jim Meyering
1995-07-16Add #else block after #ifdef VMS.Jim Meyering
(main): Rename local variable. Add FIXME: allow newlines in filenames. Detect and report failed fclose calls on stdout and checkfile_stream.
1995-07-16(build_spec_list): Declare CLOSING_DELIM_IDX and CLOSING_BRACKET_IDX toJim Meyering
be of type size_t, not int. (main): Declare NR and CHARS_READ to be of type long, not int.
1995-07-12(unqote): Comment out unreachable break stmts.Jim Meyering
(append_range): Declare FIRST and LAST parameters to be unsigned int, not size_t. (find_closing_delim): Clean up interface, separating boolean success indicator and index. (find_bracketed_repeat): Likewise. (build_spec_list): Adapt to use new interfaces.
1995-07-12(main): Comment out unreachable break stmt.Jim Meyering
1995-07-12(dump): Convert to use smaller -- but seemingly equivalent -- patch.Jim Meyering
1995-07-12Reorder functions so main is last, so no forward dcls are needed.Jim Meyering
1995-07-12(tail): Explicitly cast to long the N_UNITS argumennt inJim Meyering
call to tail_lines. Otherwise, NetBSD lost because N_UNITS (of type off_t, a 64-bit type on NetBSD) wasn't converted to the target type, long. Reported by Dan Hagerty (hag@gnu.ai.it.edu).
1995-07-09(main): Add UCHAR casts.Jim Meyering
1995-07-09.Jim Meyering
1995-07-09(main): When using obsolescent +pos -pos syntax, allowJim Meyering
omission of field spec only when character offset is specified. Otherwise, -. +. would be accepted.