Age | Commit message (Collapse) | Author | |
---|---|---|---|
2004-01-21 | (usage): Use EXIT_SUCCESS, not 0, for clarity. | Jim Meyering | |
(usage): Don't bother normalizing exit status since the arg is already the correct exit status now. | |||
2003-10-18 | Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS change | Jim Meyering | |
of 2003-09-19. Now, AUTHORS is a comma-separated list of strings. Update the call to parse_long_options so that `AUTHORS, NULL' are the last parameters. * src/true.c (main): Append NULL to version_etc argument list. * src/sys2.h (case_GETOPT_VERSION_CHAR): Likewise. | |||
2003-09-18 | (WRITTEN_BY): Rename from AUTHORS. | Jim Meyering | |
Begin each WRITTEN_BY string with `Written by ' and end it with `.'. Mark each WRITTEN_BY string as translatable. | |||
2003-09-18 | revert previous change | Jim Meyering | |
2003-09-18 | Update AUTHORS definition to be a comma-separated list of strings and/or update | Jim Meyering | |
the call to parse_long_options so that `AUTHORS, NULL' are the last parameters. | |||
2003-09-05 | (elide_tail_lines_pipe): Don't assign 0 or SAFE_READ_ERROR to tmp->nbytes. | Jim Meyering | |
(struct linebuffer): Change nbytes and nlines from unsigned int to size_t. unsigned int is safe (after the 2003-09-03 patch) but size_t is cleaner. Standardize on BUFSIZ as opposed to other macro names and values. (BUFSIZE): Remove. All uses changed to BUFSIZ. | |||
2003-09-04 | (elide_tail_lines_pipe): Don't truncate return value from safe_read. | Jim Meyering | |
2003-07-23 | Don't include headers already included by system.h: | Jim Meyering | |
Don't include closeout.h. | |||
2003-07-11 | (diagnose_copy_fd_failure): New function, renamed from | Jim Meyering | |
the macro, COPY_FD_DIAGNOSE. (diagnose_copy_fd_failure): Enclose diagnostic in _(...). (head_file): Likewise. | |||
2003-07-10 | (usage): Use 1024*1024 in place of 1048576. | Jim Meyering | |
2003-06-17 | (main): Call initialize_main. | Jim Meyering | |
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 | (AUTHORS): Enclose string in N_(...), now that it includes `and'. | Jim Meyering | |
2003-05-13 | (elide_tail_lines_pipe): Don't apply cast to argument of free. | Jim Meyering | |
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-12 | Include <assert.h>. | Jim Meyering | |
(AUTHORS): Add my name. (elide_tail_lines_pipe): New function. | |||
2003-05-07 | Implement support so that `head --lines=-N' works on seekable files. | Jim Meyering | |
(enum Copy_fd_status): Define. (COPY_FD_DIAGNOSE): New macro. (elide_tail_lines_seekable): New funtion. (elide_tail_lines_file): Call it here. | |||
2003-05-03 | Extend head to accept --lines=-N (--bytes=-N) and to print all | Jim Meyering | |
but the N lines (bytes) at the end of the file. Include full-write.h, full-read.h, inttostr.h, quote.h. Use quote() in diagnostics, rather than literal `' marks. (copy_fd, elide_tail_bytes_pipe, elide_tail_bytes_file): New functions. (elide_tail_lines_pipe, elide_tail_lines_file): New functions. (head_file): Reorganize so as to call head from only one place. (main): Likewise, for head_file. Handle new, undocumented option, --presume-input-pipe. Handle negative line and byte counts. | |||
2002-10-07 | (head_bytes, head_lines): Adapt to new safe_read ABI. | Jim Meyering | |
2002-08-31 | Change `exit (0)' to `exit (EXIT_SUCCESS)', | Jim Meyering | |
`exit (1)' to `exit (EXIT_FAILURE)', and `usage (1)' to `usage (EXIT_FAILURE)'. | |||
2002-07-02 | (usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it. | Jim Meyering | |
2002-02-16 | Include posixver.h. | Jim Meyering | |
(usage): Document only the intersection of the old and new behaviors, to encourage portability. (main): Revert to previous behavior, except report an error and exit if the obsolete syntax is used and if conforming to the new standard. | |||
2002-02-11 | (head_lines): If we have read too much data, try | Jim Meyering | |
to seek back to the position we would have gotten to had we been reading one byte at a time. POSIX currently doesn't require this, but it's easy to do and some software relies on it. | |||
2002-02-02 | Add more support for POSIX 1003.1-2001, which requires removal for | Jim Meyering | |
support of obsolete "-N" option syntax in expand, head, fold, split, tail, unexpand, uniq, and which prohibits options with optional arguments in od and pr. (usage): Document it. (main): Check for obsolete options. (header_mode_option): New constant. | |||
2001-12-01 | Reflect renaming to, and new usage of these macros: | Jim Meyering | |
HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION. | |||
2001-12-01 | (usage): Use new macros, EMIT_HELP_DESCRIPTION and EMIT_VERSION_DESCRIPTION | Jim Meyering | |
instead of hard-coding --help and --version descriptions. | |||
2001-11-23 | Factor out some common strings to make translation easier. | Jim Meyering | |
Split usage strings so that --help and --version descriptions are alone in their own string. Likewise for the one that says: Mandatory arguments to long options are mandatory for short options too. | |||
2001-11-11 | (usage): Split --help output into smaller pieces. | Jim Meyering | |
Use fputs, not printf. | |||
2001-11-04 | (usage): Say that | Jim Meyering | |
``Mandatory arguments to long options are mandatory for short options too.\n\'' | |||
2001-10-27 | Give an accurate diagnostic when `head --bytes=30M' fails. | Jim Meyering | |
(string_to_integer): Check explicitly for overflow, and lump everything else together as `invalid'. | |||
2001-08-18 | (head_bytes): Read no more than the specified number of bytes. | Jim Meyering | |
2000-08-07 | (head): Call write_header here. | Jim Meyering | |
(head_file): ... not here. | |||
2000-05-24 | (head_file): Use STDIN_FILENO in place of `0'. | Jim Meyering | |
(main): Likewise. | |||
2000-05-20 | Arrange to call close_stdout upon exit. Don't close stdout explicitly. | Jim Meyering | |
2000-05-12 | (string_to_integer): Restrict base to 10. | Jim Meyering | |
1999-04-24 | Include new "xstrtol.h", not "xstrtoul.h". | Jim Meyering | |
Change all U_LONG_LONG to uintmax_t. (head_lines): Move a couple dcls into an inner scope. (string_to_integer): Rename from string_to_ull. | |||
1999-04-04 | Standardize --help and --version processing. | Jim Meyering | |
1999-04-03 | Use AUTHORS in place of string in parse_long_options call. | Jim Meyering | |
1999-04-03 | Insert AUTHORS definition. | Jim Meyering | |
1999-04-03 | Use PROGRAM_NAME in place of string in parse_long_options call. | Jim Meyering | |
1999-04-03 | define PROGRAM_NAME | Jim Meyering | |
1999-03-04 | Include long-options.h | Jim Meyering | |
[long_options]: Remove the "help" and "version" entries. Remove declarations of show_help and show_version. (main): Use parse_long_options, including author name(s). Remove the show_version and show_help blocks. | |||
1999-02-16 | update copyright dates | Jim Meyering | |
1999-01-14 | Don't prototype usage as static. | Jim Meyering | |
1999-01-01 | (head_bytes, head_lines) [O_BINARY]: Use binary I/O. | Jim Meyering | |
1998-09-19 | update bug-reporting address | Jim Meyering | |
1998-06-29 | revert back to using lower case _unlocked wrapper names | Jim Meyering | |
1998-06-29 | Change all uses of unlocked-wrapped functions to their upper case wrapper names. | Jim Meyering | |
1998-04-12 | Use STREQ rather than strcmp | Jim Meyering | |