468,512 Members | 1,492 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

What is sizeof(std::streamsize) ?

Hi,

I was trying to work around the #define _LARGEFILE_SOURCE/
_FILE_OFFSET_BITS... nightmare to get large file support in C,
thinking that things were nicely done in C++. But at least on my
compiler the size of std::streamsize is 4 !
How am I supposed to deal with large file in this case ?

Thanks,
-Mathieu
Ps: for some reason a google search did not reveal anything
interesting...
Mar 6 '08 #1
2 3274
mathieu schrieb:
I was trying to work around the #define _LARGEFILE_SOURCE/
_FILE_OFFSET_BITS... nightmare to get large file support in C,
thinking that things were nicely done in C++. But at least on my
compiler the size of std::streamsize is 4 !
How am I supposed to deal with large file in this case ?
Use the nativce operating system API.
Marcel
Mar 6 '08 #2
On Mar 6, 5:22 pm, Marcel Müller <news.5.ma...@spamgourmet.comwrote:
mathieu schrieb:
I was trying to work around the #define _LARGEFILE_SOURCE/
_FILE_OFFSET_BITS... nightmare to get large file support in C,
thinking that things were nicely done in C++. But at least on my
compiler the size of std::streamsize is 4 !
How am I supposed to deal with large file in this case ?

Use the nativce operating system API.

$ wc boost_1_34_1/libs/filesystem/src/operations.cpp
1298 5115 46354 boost_1_34_1/libs/filesystem/src/operations.cpp

Great... all I wanted was simply the file size of a file...

-Mathieu
Mar 6 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by William Payne | last post: by
5 posts views Thread by Chris Mantoulidis | last post: by
4 posts views Thread by Christopher | last post: by
1 post views Thread by Alex Vinokur | last post: by
6 posts views Thread by Jason K | last post: by
5 posts views Thread by ma740988 | last post: by
13 posts views Thread by Gianni Mariani | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.