![]() |
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 |
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/> |
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.