Overview
Features
Download
Documentation
Community
Add-Ons & Services

Mac/Unix 64bit file size/operaion

Please post support and help requests here.

Mac/Unix 64bit file size/operaion

Postby nminkov » 10 Oct 2008, 15:37

I am currently investigating cross platform libraries for Windows/MacOSX applications.
Poco is a very clean library and I like very much like the coding style.

Was checking the source code, it seem that the Unix/Mac implementation of File does not support 64bit file sizes/operations (stat() returns int). Am I missing something or is that really the case. (I think GNU and VC++ have stat64())
nminkov
 
Posts: 2
Joined: 10 Oct 2008, 15:17

Re: Mac/Unix 64bit file size/operaion

Postby guenter » 10 Oct 2008, 16:00

On Mac OS X and Linux (with the proper -D_FILE_OFFSET_BITS=64) it is not necessary to explicitely use the 64-bit file functions, as the normal functions (e.g., stat) can handle 64-bit file offsets and lengths as well (e.g., off_t is 64 bit on Mac OS X).
Also, the Poco::FileSize type is 64 bit as well, so there shouldn't be any problems dealing with large files.

The situation might be different with other Unix platforms, though.
guenter
 
Posts: 1138
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Mac/Unix 64bit file size/operaion

Postby nminkov » 10 Oct 2008, 16:16

Thanks for the quick reply.

Great news the 64 bit works as it's supposed to.

I am really new to cross platform programming and just beggining to discover it's "joys".

Next steps: find IDE and GUI library (real pain)
nminkov
 
Posts: 2
Joined: 10 Oct 2008, 15:17

Re: Re: Mac/Unix 64bit file size/operaion

Postby alex » 10 Oct 2008, 23:44

> I am really new to cross platform programming and just beggining to discover it's "joys".

At least you're starting at the right place :-)

> Next steps: find IDE

Eclipse/CDT may be a good choice, but I could not wean myself from Visual Studio, so I have somewhat exotic approach to non-Windows development - I keep the code on a shared Linux or Solaris drive, edit with VS, use two monitors with [url=http://synergy2.sourceforge.net/|Synergy] and debug with gdb/http://sources.redhat.com/insight/|Insight] or dbx/[http://www.gnu.org/software/ddd/]DDD[/url.

and GUI library (real pain)

Poco::WebWidgets should be released in 1.4 (I hope). If you need thick native GUI, we'd really like to see it in POCO but so far only [url=http://pocoproject.org/poco/wiki/tiki-view_forum_thread.php?comments_parentId=910&topics_offset=4&forumId=3|ideas] have been tossed around. After much research, my favorite wrapping candidate is http://www.tecgraf.puc-rio.br/iup/]IUP[/url.
alex
 
Posts: 1132
Joined: 11 Jul 2006, 16:27
Location: United_States


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron