Re: Whats the practical maximum file size using indexed allocation
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Re: Whats the practical maximum file size using indexed allocation




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Whats the practical maximum file size using indexed allocation  
Logan Shaw


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-26-06 10:51 PM

Jordan Abel wrote:
> On 2006-02-24, Gordon Burditt <gordonb.l20vx@burditt.org> wrote: 
>
> I bet he uses Linux. Linux has traditionally maintained two separate and
> parallel APIs, one in which off_t is a 'long' (32 on a 32-bit system),
> the other in which it's 64 bits. llseek is one of the underlying system
> calls for the latter mode, and it is also sometimes misused (where
> lseek64 _should_ be used) to be able to access files in "large file"
> mode in the former. O_LARGEFILE (misspelled above as O_LARGE) is a bit
> used internally by open64() which is also sometimes misused in the same
> way.

Just a data point:  on Solaris 8 (and presumably later versions as well
since Sun is anal-retentive about keeping interface compatibility at
both the binary and source levels[1]), the documentation says that
calling open() with O_LARGEFILE is equivalent to calling open64(),
which to me indicates that using O_LARGEFILE with open() is kosher.
Solaris also maintains a parallel set of APIs, so that 32-bit
applications can use either 32-bit or 64-bit file offsets, so Linux
isn't unique in that regard.  (I don't even think Linux was first,
but I can't remember.)

- Logan

[1]  which, by the way, is a good thing in many cases





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:17 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register