Bug#739281: provides sendfile() prototype (in <sys/sendfile.h>) but no sendfile symbol
- To: Eric Wong <normalperson@yhbt.net>
- Cc: Mats Erik Andersson <mats.andersson@gisladisker.se>, debian-bsd@lists.debian.org
- Subject: Bug#739281: provides sendfile() prototype (in <sys/sendfile.h>) but no sendfile symbol
- From: Robert Millan <rmh@debian.org>
- Date: Mon, 17 Feb 2014 12:56:11 +0000
- Message-id: <[🔎] 530206EB.1000904@debian.org>
- Reply-to: Robert Millan <rmh@debian.org>, 739281@bugs.debian.org
- In-reply-to: <20140217091201.GA18513@dcvr.yhbt.net>
- References: <20131026144352.GA12502@gisladisker.se> <526BDCD3.6010500@debian.org> <20131026154928.GA13270@gisladisker.se> <526BE939.9080104@debian.org> <20140216104042.GA15173@mail.gisladisker.se> <5300ACDB.7040702@debian.org> <20140216123351.GA16466@mail.gisladisker.se> <5300B28A.7080301@debian.org> <20140217091201.GA18513@dcvr.yhbt.net>
Package: libc0.1-dev
Severity: normal
Perhaps we could use emulated Linux-like sendfile() from Eric Wong. See:
On 17/02/2014 09:12, Eric Wong wrote:
> Robert Millan <rmh@debian.org> 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 <sys/sendfile.h>).
>
> I emulate Linux sendfile on (non-Debian) FreeBSD that way in cmogstored.
> Feel free to grab the linux_sendfile() wrapper from cmogstored:
> http://bogomips.org/cmogstored.git/plain/http_get.c
> The linux_sendfile wrapper is trivial and I'm OK with relicensing from
> the existing GPLv3+ to any DFSG-approved license
--
Robert Millan
Reply to: