]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Implement support so that `head --lines=-N' works on seekable files.
authorJim Meyering <jim@meyering.net>
Wed, 7 May 2003 16:21:52 +0000 (16:21 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 7 May 2003 16:21:52 +0000 (16:21 +0000)
commit61ba51a61ec4307674ae4fd3f6d87a4bc3ab6cd7
tree4926e6f0e469284843ba3085d9ade674aea5a128
parentf8fdfad624a5691ee572b4d4ee4d5bac84d9b0ed
Implement support so that `head --lines=-N' works on seekable files.

(enum Copy_fd_status): Define.
(COPY_FD_DIAGNOSE): New macro.
(elide_tail_lines_seekable): New funtion.
(elide_tail_lines_file): Call it here.
src/head.c