summaryrefslogtreecommitdiff
path: root/src/head.c
AgeCommit message (Expand)AuthorFilesLines
2005-05-12Assume `free (NULL)' works.Jim Meyering1-2/+1
2005-04-26Remove posixver.h and its uses.Paul Eggert1-18/+0
2005-04-11(head_file): Don't assume open does not return 0.Paul Eggert1-2/+3
2005-01-30(elide_tail_bytes_pipe): Correct wording in diagnostic.Jim Meyering1-2/+2
2004-09-21Remove unused "case 0".Paul Eggert1-3/+0
2004-08-03(presume_input_pipe, print_headers, have_read_stdin,Paul Eggert1-85/+85
2004-05-06(elide_tail_bytes_pipe): Use xnmalloc, rather than xmalloc.Jim Meyering1-1/+1
2004-01-21(usage): Use EXIT_SUCCESS, not 0, for clarity.Jim Meyering1-3/+3
2003-10-18Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS changeJim Meyering1-2/+2
2003-09-18(WRITTEN_BY): Rename from AUTHORS.Jim Meyering1-2/+2
2003-09-18revert previous changeJim Meyering1-1/+1
2003-09-18Update AUTHORS definition to be a comma-separated list of strings and/or updateJim Meyering1-1/+1
2003-09-05(elide_tail_lines_pipe): Don't assign 0 or SAFE_READ_ERROR to tmp->nbytes.Jim Meyering1-11/+9
2003-09-04(elide_tail_lines_pipe): Don't truncate return value from safe_read.Jim Meyering1-1/+2
2003-07-23Don't include headers already included by system.h:Jim Meyering1-1/+0
2003-07-11(diagnose_copy_fd_failure): New function, renamed fromJim Meyering1-25/+23
2003-07-10(usage): Use 1024*1024 in place of 1048576.Jim Meyering1-1/+1
2003-06-17(main): Call initialize_main.Jim Meyering1-0/+1
2003-05-21(elide_tail_lines_pipe): Fix a thinko.Jim Meyering1-2/+3
2003-05-14(usage): Document new feature: --bytes=-N and --lines=-N.Jim Meyering1-4/+8
2003-05-14(AUTHORS): Enclose string in N_(...), now that it includes `and'.Jim Meyering1-1/+1
2003-05-13(elide_tail_lines_pipe): Don't apply cast to argument of free.Jim Meyering1-1/+1
2003-05-13(elide_tail_lines_pipe): Use `if', not an assert.Jim Meyering1-15/+15
2003-05-12Include <assert.h>.Jim Meyering1-21/+140
2003-05-07Implement support so that `head --lines=-N' works on seekable files.Jim Meyering1-31/+173
2003-05-03Extend head to accept --lines=-N (--bytes=-N) and to print allJim Meyering1-22/+430
2002-10-07(head_bytes, head_lines): Adapt to new safe_read ABI.Jim Meyering1-6/+7
2002-08-31Change `exit (0)' to `exit (EXIT_SUCCESS)',Jim Meyering1-2/+2
2002-07-02(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.Jim Meyering1-1/+1
2002-02-16Include posixver.h.Jim Meyering1-15/+11
2002-02-11(head_lines): If we have read too much data, tryJim Meyering1-1/+14
2002-02-02Add more support for POSIX 1003.1-2001, which requires removal forJim Meyering1-17/+29
2001-12-01Reflect renaming to, and new usage of these macros:Jim Meyering1-2/+2
2001-12-01(usage): Use new macros, EMIT_HELP_DESCRIPTION and EMIT_VERSION_DESCRIPTIONJim Meyering1-4/+2
2001-11-23Factor out some common strings to make translation easier.Jim Meyering1-0/+8
2001-11-11(usage): Split --help output into smaller pieces.Jim Meyering1-2/+4
2001-11-04(usage): Say thatJim Meyering1-0/+1
2001-10-27Give an accurate diagnostic when `head --bytes=30M' fails.Jim Meyering1-8/+8
2001-08-18(head_bytes): Read no more than the specified number of bytes.Jim Meyering1-4/+5
2000-08-07(head): Call write_header here.Jim Meyering1-6/+4
2000-05-24(head_file): Use STDIN_FILENO in place of `0'.Jim Meyering1-3/+2
2000-05-20Arrange to call close_stdout upon exit. Don't close stdout explicitly.Jim Meyering1-2/+4
2000-05-12(string_to_integer): Restrict base to 10.Jim Meyering1-3/+3
1999-04-24Include new "xstrtol.h", not "xstrtoul.h".Jim Meyering1-21/+17
1999-04-04Standardize --help and --version processing.Jim Meyering1-4/+6
1999-04-03Use AUTHORS in place of string in parse_long_options call.Jim Meyering1-1/+1
1999-04-03Insert AUTHORS definition.Jim Meyering1-0/+2
1999-04-03Use PROGRAM_NAME in place of string in parse_long_options call.Jim Meyering1-1/+1
1999-04-03define PROGRAM_NAMEJim Meyering1-0/+3
1999-03-04Include long-options.hJim Meyering1-17/+4