Re: Emulation of sendfile().

2014-02-17 Thread Robert Millan
On 17/02/2014 09:12, Eric Wong wrote: > Robert Millan wrote: >> If you can write a Linux-compatible sendfile() which uses BSD-ish >> SYS_sendfile >> as backend, I guess they'll have no problem exporting a new symbol in glibc? >> After all, it's glibc who claims to provide it (via ). > > I emulat

Re: Emulation of sendfile().

2014-02-17 Thread Eric Wong
Robert Millan wrote: > If you can write a Linux-compatible sendfile() which uses BSD-ish SYS_sendfile > as backend, I guess they'll have no problem exporting a new symbol in glibc? > After all, it's glibc who claims to provide it (via ). I emulate Linux sendfile on (non-Debian) FreeBSD that way i

Re: Emulation of sendfile().

2014-02-16 Thread Robert Millan
On 16/02/2014 12:33, Mats Erik Andersson wrote: > 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 r

Re: Emulation of sendfile().

2014-02-16 Thread Mats Erik Andersson
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 you

Re: Emulation of sendfile().

2014-02-16 Thread Robert Millan
On 16/02/2014 10:40, Mats Erik Andersson wrote: >> > 1. Rebuild freebsd-glue with attached patch >> > 2. Add "-I /usr/include/freebsd" to CFLAGS in your package. >> > 3. Add "-lfreebsd-glue" to LDFLAGS in your package. >> > >> > This should seamlessly map sendfile() to the BSD version. >> > >> > A

Re: Emulation of sendfile().

2014-02-16 Thread Mats Erik Andersson
lördag den 26 oktober 2013 klockan 18:09 skrev Robert Millan detta: > > Please could you try: > > 1. Rebuild freebsd-glue with attached patch > 2. Add "-I /usr/include/freebsd" to CFLAGS in your package. > 3. Add "-lfreebsd-glue" to LDFLAGS in your package. > > This should seamlessly map sendfile

Re: Emulation of sendfile().

2013-10-26 Thread Robert Millan
On 26/10/2013 17:49, Mats Erik Andersson wrote: > lördag den 26 oktober 2013 klockan 17:16 skrev Robert Millan detta: >> >> Which sendfile() do you want? >> >> There's the SYS_sendfile syscall, which is defined as bsd_sendfile() in >> but awkwardly not exported in Versions. > > I will have a go w

Re: Emulation of sendfile().

2013-10-26 Thread Mats Erik Andersson
lördag den 26 oktober 2013 klockan 17:16 skrev Robert Millan detta: > > Which sendfile() do you want? > > There's the SYS_sendfile syscall, which is defined as bsd_sendfile() in > but awkwardly not exported in Versions. I will have a go with this in due time. Presumably it exposes the same sign

Re: Emulation of sendfile().

2013-10-26 Thread Robert Millan
On 26/10/2013 16:43, Mats Erik Andersson wrote: > Dear all, > > I tried to activate the sendfile() call on Wheezy the other day, > since the package webfs provides it for Linux and FreeBSD. > > However, the emulation in glibc for kFreeBSD returns the annoying > "Function not implemented"! Is it a

Emulation of sendfile().

2013-10-26 Thread Mats Erik Andersson
Dear all, I tried to activate the sendfile() call on Wheezy the other day, since the package webfs provides it for Linux and FreeBSD. However, the emulation in glibc for kFreeBSD returns the annoying "Function not implemented"! Is it available in later libc versions, or is it on the infamous not-