Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C++ (http://www.velocityreviews.com/forums/f39-c.html)
-   -   fopen large file (tera byte) support? (http://www.velocityreviews.com/forums/t621263-fopen-large-file-tera-byte-support.html)

Nagrik 06-19-2008 11:39 PM

fopen large file (tera byte) support?
 
Hello Group,

I have to support 200 Gigabyte support to open a file in my program.
My program exits with

open("/mnt/d1/tmp/<file name>", O_RDONLY) = -1 EFBIG (File too large)

This open system call is a result of fopen C++ library call, and there
is no way I can provide

O_LARGEFILE mode in fopen call.

Also the return valud of fopen is a file handle, where open system
call returns the file descriptor and hence I can not substitute one vs
other.

Is there a way I can get around this problem.

Thanks.

nagrik

Daniel Pitts 06-20-2008 01:24 AM

Re: fopen large file (tera byte) support?
 
Nagrik wrote:
> Hello Group,
>
> I have to support 200 Gigabyte support to open a file in my program.
> My program exits with
>
> open("/mnt/d1/tmp/<file name>", O_RDONLY) = -1 EFBIG (File too large)
>
> This open system call is a result of fopen C++ library call, and there
> is no way I can provide
>
> O_LARGEFILE mode in fopen call.
>
> Also the return valud of fopen is a file handle, where open system
> call returns the file descriptor and hence I can not substitute one vs
> other.
>
> Is there a way I can get around this problem.
>
> Thanks.
>
> nagrik

is fdopen OR _fdopen available on your compiler?

--
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>

Ian Collins 06-20-2008 08:42 AM

Re: fopen large file (tera byte) support?
 
Nagrik wrote:
> Hello Group,
>
> I have to support 200 Gigabyte support to open a file in my program.
> My program exits with
>
> open("/mnt/d1/tmp/<file name>", O_RDONLY) = -1 EFBIG (File too large)
>

comp.unix.programmer would be a better place to ask.

--
Ian Collins.


All times are GMT. The time now is 01:27 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57