read from file after calling lseek64 - Linux

Posted by rursw1 on Stack Overflow See other posts from Stack Overflow or by rursw1
Published on 2010-05-09T14:51:45Z Indexed on 2010/05/09 14:58 UTC
Read the original article Hit count: 199

Filed under:
|
|

Hi,

I'm trying to read a large file (> 2.0 GB). The seeking is done by lseek64, then I tried to read using read(fileHandle, buffer, bufferLength)\ pread64(fileHandle, buffer, bufferLength, offset) - but both return with -1.

What could it be?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about linux

Related posts about files