diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-03-31 12:16:44 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-04-02 07:45:58 -0700 |
commit | 9111dd2499ca5c26d2658bf85966e8160f51d280 (patch) | |
tree | 0e25c140b0dec0fcec211c5b698d465f47cf276c /THANKS.in | |
parent | d08381bc261d95502a205f7214686f80383c9692 (diff) | |
download | coreutils-9111dd2499ca5c26d2658bf85966e8160f51d280.tar.xz |
head: port to Darwin and use simpler seeks
This removes an unportable assumption that if lseek succeeds, the
file is capable of seeking. See: http://bugs.gnu.org/17145
* src/head.c (elseek): New function, for consistency in reporting
lseek failures.
(elide_tail_bytes_file, elide_tail_lines_seekable)
(elide_tail_lines_file, head_lines, head): Use it.
(elide_tail_bytes_file, elide_tail_lines_file):
New args CURRENT_POS and SIZE. All uses changed. Don't bother
invoking lseek, since we know the file's pos and size now.
(elide_tail_bytes_file): Change a local from uintmax_t to off_t,
since it fits.
(head): Use lseek only on regular files, since its behavior on
unseekable devices is implementation-defined.
* NEWS: Document this.
Diffstat (limited to 'THANKS.in')
-rw-r--r-- | THANKS.in | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -162,7 +162,7 @@ Davide Canova kc.canova@gmail.com Dawson Engler engler@stanford.edu Dean Gaudet dean-savannah@arctic.org Deepak Goel deego@gnufans.org -Denis Excoffier denis.excoffier@airbus.com +Denis Excoffier gcc@Denis-Excoffier.org Denis McKeon dmckeon@swcp.com Dennis Henriksen opus@flamingo.osrl.dk Dennis Clarke dclarke@blastwave.org |