Re: lseek: Value too large for defined data type
- From: "spacecriter \(Bill C\)" <spacecriter@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 21 Jul 2007 08:11:12 -0500
guru wrote:
Hi All,
I have written 21GB file and updating the file by seeking 1K and
writing 100MB of data consecutively 10240 times. when after writing
2GB(2100 times) of file it was giving
lseek: Value too large for defined data type error.
What is got is the value passed to 'Offset' argument is too large to
handle.
The last return value of seek is '2099270656'
Is there any way to overcome this.
As others have said, add -D_FILE_OFFSET_BITS=64 to the compiler command line
I have found that it is a good idea to also add -D_LARGEFILE64_SOURCE to the
command line as well.
--
Bill C.
.
- Follow-Ups:
- Re: lseek: Value too large for defined data type
- From: phil-news-nospam
- Re: lseek: Value too large for defined data type
- From: guru
- Re: lseek: Value too large for defined data type
- From: guru
- Re: lseek: Value too large for defined data type
- References:
- lseek: Value too large for defined data type
- From: guru
- lseek: Value too large for defined data type
- Prev by Date: Question on getimeofday
- Next by Date: Re: How to set timezone
- Previous by thread: Re: lseek: Value too large for defined data type
- Next by thread: Re: lseek: Value too large for defined data type
- Index(es):
Relevant Pages
|