summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2003-06-03Avoid unnecessary copying of environment.Jim Meyering
(main): Rather than clearing the environment and -- unless told to ignore environment -- copying all settings from the saved, original environment, clear the environment only when that is requested. Suggested by Jens Elkner.
2003-06-02[!TEST_STANDALONE]: Remove #if-0'd block.Jim Meyering
(STREQ, S_IXUGO): Remove redundant (in system.h) definitions.
2003-06-02Always include <string.h>, since we assume C89.Jim Meyering
Include <limits.h> without checking for HAVE_LIMITS_H.
2003-06-01Avoid a race condition in `tail -f' described by Ken Raeburn inJim Meyering
http://mail.gnu.org/archive/html/bug-textutils/2003-05/msg00007.html (file_lines): Add new parameter, *read_pos, and set it. (pipe_lines, pipe_bytes, start_bytes, start_lines): Likewise. (tail_bytes, tail_lines, tail): Likewise. (tail_file): Use the new `read_pos' value as the size, rather than stats.st_size from the fstat call.
2003-05-29.Jim Meyering
2003-05-28.Jim Meyering
2003-05-28Allow expansion of `$file' in the here-Jim Meyering
document corresponding to comment at the top of fs.h.
2003-05-26Fix portability problem on FreeBSD5.0: don't includeJim Meyering
<sys/statvfs.h> on systems without HAVE_STRUCT_STATVFS_F_BASETYPE. Use #if/#elif/... cascade so we get only one set of include files.
2003-05-24(split_3): Accept the BSD format only when in MD5 mode.Jim Meyering
2003-05-24(bsd_split_3): New function.Jim Meyering
(split_3): Detect checksums from BSD 'md5' command and handle them using bsd_split_3.
2003-05-21(elide_tail_lines_pipe): Fix a thinko.Jim Meyering
This sort of thing is why it'd be *Really Good* to factor out the common code used here and in tail.c.
2003-05-14(usage): Document new feature: --bytes=-N and --lines=-N.Jim Meyering
2003-05-14.Jim Meyering
2003-05-14(AUTHORS): Enclose string in N_(...), now that it includes `and'.Jim Meyering
2003-05-14(usage): Don't use `,' as the thousands separatorJim Meyering
in e.g. 1,000,000 and 1,048,576. Instead, do this: `SIZE may be ..., MB 1000*1000, M 1024*1024 and so on...'
2003-05-14(usage): Don't use `,' as the thousands separatorJim Meyering
in e.g. 1,000,000 and 1,048,576. Instead, do this: `SIZE may be ..., MB 1000*1000, M 1024*1024 and so on...'
2003-05-14Fix uniq to conform to POSIX, which requires that "uniq -d -u"Jim Meyering
must output nothing. Problem reported by Josh Hyman. (enum output_mode, mode): Remove, replacing with: (output_unique, output_first_repeated, output_later_repeated): New vars. All uses of "mode" changed to use these variables, which are not mutually exclusive as "mode" was. (writeline): New arg "match", used to control whether to obey output_first_repeated or output_later_repeated. All callers changed. (check_file, main): Adjust to above changes.
2003-05-13Handle argc < optind.Jim Meyering
2003-05-13(elide_tail_lines_pipe): Don't apply cast to argument of free.Jim Meyering
2003-05-13(struct F_triple) [name]: Remove const attribute.Jim Meyering
(triple_free): Don't apply cast to argument of free. (seen_file): Add cast here instead.
2003-05-13(sort): Don't apply cast to argument of free.Jim Meyering
2003-05-13(struct Src_to_dest) [name]: Remove const attribute.Jim Meyering
(src_to_dest_free): Don't apply cast to argument of free.
2003-05-13(OLD): Don't apply cast to argument of free.Jim Meyering
2003-05-13(delseq, freeline): Don't apply cast to argument of free.Jim Meyering
2003-05-13shorten long lineJim Meyering
2003-05-13(init_fps, init_store_cols): Don't apply cast to argument of free.Jim Meyering
2003-05-13(zaptemp): Don't apply cast to argument of free.Jim Meyering
2003-05-13Remove unnecessary cast of argument to free. twice moreJim Meyering
2003-05-13Remove unnecessary cast of argument to free.Jim Meyering
2003-05-13Include "quote.h".Jim Meyering
Use quote in diagnostics. Change many error format strings from just `%s' to e.g., `error reading %s'. (pipe_lines): Change type of parameter, n_lines, to uintmax_t. Rewrite newline-counting loop to use memchr.
2003-05-13(elide_tail_lines_pipe): Use `if', not an assert.Jim Meyering
Now that assert is no longer used, don't include <assert.h>.
2003-05-12Include <assert.h>.Jim Meyering
(AUTHORS): Add my name. (elide_tail_lines_pipe): New function.
2003-05-11.Jim Meyering
2003-05-11(main): Handle argc < optind.Jim Meyering
2003-05-10(main): Handle argc < optind.Jim Meyering
2003-05-10(main): Handle argc == 0.Jim Meyering
2003-05-10(main): Handle argc < optind.Jim Meyering
2003-05-10(main): Handle argc == 0.Jim Meyering
2003-05-10Handle argc < optind.Jim Meyering
2003-05-10(main): Handle argc == 0.Jim Meyering
2003-05-10Handle argc < optind.Jim Meyering
2003-05-10(send_signals): Don't check command line arguments here.Jim Meyering
(main): Check them here instead. Handle argc < optind.
2003-05-10Handle argc < optind.Jim Meyering
2003-05-10Handle argc < optind.Jim Meyering
2003-05-10Handle argc < optind.Jim Meyering
2003-05-10Handle argc < optind.Jim Meyering
2003-05-10(main): Set program_name before first use.Jim Meyering
Remove that (redundant) first use. Don't exit successfully just because --verbose was specified. Pass 0, not EXIT_SUCCESS, as first argument to error; when that parameter is 0, error does not exit.
2003-05-10(main): Handle argc < optind.Jim Meyering
2003-05-10(main): Handle argc < optind.Jim Meyering
2003-05-10(main): Handle argc < optind.Jim Meyering