This is the mail archive of the
cygwin
mailing list for the Cygwin project.
lseek 2GB wrap problem (with tail)?
- From: Alexander Geraldy <geraldy at informatik dot uni-kl dot de>
- To: cygwin at cygwin dot com
- Date: Wed, 13 Oct 2004 18:24:00 +0200
- Subject: lseek 2GB wrap problem (with tail)?
Hello!
I've seen the following problem and don't know how to handle it.
Configuration: Cygwin 1.5.11-1, tail (textutils) 2.0.21, strace (cygwin)
1.21
I noticed that various utilities (including grep and tail) have problems
with the following textfile (let's call it test.txt):
"ls -l test.txt" gives 44589740378 (i.e. about 44 GB)
"tail test.txt" outputs some lines taken somewhere in the text file, but
not the last lines of the file.
"strace tail test.txt" reports "lseek64: 1640067418=lseek(3,0,2)"
which obviously is filesize(test.txt) mod 2GB and which definitely does
not point at the end of the input file.
I dont't know where to search the error, could anybody give me a hint?
Alexander Geraldy
--
------------------------------------------------------
Alexander Geraldy <geraldy@informatik.uni-kl.de>
AG Rechnernetze, Fachbereich Informatik
Universität Kaiserslautern
Tel.: +49(631) 205-2591, Fax: -3956
PGP : http://rn.informatik.uni-kl.de/~geraldy/pgp.asc
Fingerprint:
D7D0 6505 B731 2D4F 0481 FD86 EF5D B98A D05B 5F7E
------------------------------------------------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/