httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject Re: sendfile API
Date Wed, 21 Oct 1998 17:54:41 GMT
On Wed, 21 Oct 1998, Manoj Kasichainula wrote:

> On Tue, Oct 20, 1998 at 10:45:05PM -0700, Marc Slemko wrote:
> >    The only limitation this API appears to have is that nbytes is a size_t,
> > which is 32bits. Thus if you want to send less than the whole file, but more
> > than 4GB, you must do it in 4GB or less chunks via multiple calls. I don't
> > think this will be a serious problem, especially since most usage of
> > sendfile(2) will likely be with nbytes=0 (send until EOF).
> 
> No big deal here, but what does an OS with > 4GB files use to indicate
> sizes? Can we use that type instead?

It gets kinda complicatedon OSes that are on 32 bit hardware and support
64 bit file sizes.  Not overly worth worrying about.

> 
> What situation are we talking about here specifically? A particular OS
> or a wrapper function? That might affect comment on the API call.

A particular OS.


Mime
View raw message