[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Emulation of sendfile().



söndag den 16 februari 2014 klockan 12:19 skrev Robert Millan detta:
> On 16/02/2014 10:40, Mats Erik Andersson wrote:
> >> > This should seamlessly map sendfile() to the BSD version.
> >> > 
> >> > Alternatively, you can skip step 2 and use bsd_sendfile() instead.
> > I now doubt the sanity of your undertaking, as the
> > patch is shadowing an existing sendfile() of glibc,
> > using a macro of a radically different signature.
> 
> As I said, you can skip step 2 and use bsd_sendfile(). You don't have to override
> your namespace unless you want to.

But this raises a new question: Will present or future versions
of eglibc, with the architecture kfreebsd-any, expose a functional
library call

  ssize_t sendfile (int, int, off_t, size_t)

for general use? I.e., will the stub ever be replaced?  Otherwise
each and every software will need substantial patching on kFreeBSD
to achieve better throughput, since it would need to link to
freebsd-glue and rely on the FreeBSD signature of sendfile(),
or to be rewritten using bsd_sendfile.

Best regards,
  Mats E A


Reply to: