]> git.ipfire.org Git - thirdparty/coreutils.git/commit
head: omit unnecessary lseek
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 14 Jul 2025 18:07:21 +0000 (11:07 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 Aug 2025 02:48:04 +0000 (19:48 -0700)
commitca30c06e4cd0dbd74d9c95ccc2b05cb26bd053a3
treea76b134a35bd6e28fb788b038c0c97661b9d2d90
parent2ff3c65e940f152a7b56395a5828c052f30dba50
head: omit unnecessary lseek

* src/head.c (elseek_diagnostic): New function.
(elseek): Use it.
(head_lines): Use it to avoid an unnecessary lseek.
src/head.c