apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davi Arnaut <d...@apache.org>
Subject Re: sendfile(2) misbehaves when header iovecs are specified
Date Tue, 13 Nov 2007 21:34:03 GMT
Wilfredo Sánchez Vega wrote:
> Davi-
>    Regarding this issue:
> 	http://people.apache.org/~davi/leopard-sendfile.c
>    Our kernel folks say this isn't a bug:
> 	No, this is not a bug.  Our sendfile(2) implementation is
> 	similar to FreeBSD 4.x, where the 4th argument to the system
> 	call (the value-result length parameter) includes the header
> 	length.  In FreeBSD 5.x, this length does not include the
> 	header, but that is not the semantics followed by Mac OS X.
>    Is this sufficient information?  I've still got the bug open until  
> I hear from you.

Yes, makes more sense now. I just think the man page should be corrected:

"The len argument is a value-result parameter, that specifies how many
bytes of the file should be sent and/or"

It should remove the part "bytes of the file".



Davi Arnaut

View raw message