From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Gaylard Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Bindings for =?UTF-8?B?4oCYc2VuZGZpbGXigJk=?= Date: Thu, 21 Mar 2013 12:04:45 +0200 Message-ID: <514ADB3D.4090006@computer.org> References: <87ip4liufs.fsf@gnu.org> <8738vp3yhe.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1363860300 30652 80.91.229.3 (21 Mar 2013 10:05:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2013 10:05:00 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Mar 21 11:05:26 2013 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UIcNB-00073d-Vf for guile-devel@m.gmane.org; Thu, 21 Mar 2013 11:05:26 +0100 Original-Received: from localhost ([::1]:37159 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIcMo-0007zE-Kf for guile-devel@m.gmane.org; Thu, 21 Mar 2013 06:05:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIcMh-0007sT-E5 for guile-devel@gnu.org; Thu, 21 Mar 2013 06:04:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIcMd-0008Ie-60 for guile-devel@gnu.org; Thu, 21 Mar 2013 06:04:55 -0400 Original-Received: from mail-ea0-x22d.google.com ([2a00:1450:4013:c01::22d]:49073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIcMc-0008HY-Vq for guile-devel@gnu.org; Thu, 21 Mar 2013 06:04:51 -0400 Original-Received: by mail-ea0-f173.google.com with SMTP id h14so766503eak.18 for ; Thu, 21 Mar 2013 03:04:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=QAC6tEWocIBFTRVVhK1mwGMEoZRWsZLLzQ9SQPIYNpY=; b=LbxwfmnVoJhaXlp3lhTyaYJoZM+fyxBc7ujJ6V4cZVA+mm3SF2eoLA/VpXOdCMZCqL tE93PDnUbDxq45zevusaUG6CVA5n0HthQfcQ2V7MwHrhWjuxqNmV4IP6iUJRqPLB7iM/ lSSbHx1zWoN2fZf4TmZUj7k+slc5L0o0ZxKtMgNR72aJS85lWgnxhHgtmR+7LXBYlyiB cws5URsZWQMRtaUIl+ROw1xibnkwGfRIsSo6NoqCVB2KdaOzRSlMbfrK+6p74zn0Wc7N yvCJW7z5XAZ8a40SRbPkQN6YkQAuE+txboZ+sEMiTto8G+YbU8VOsltF8in8NqS85/Sc GmHw== X-Received: by 10.14.183.67 with SMTP id p43mr80519031eem.10.1363860289458; Thu, 21 Mar 2013 03:04:49 -0700 (PDT) Original-Received: from [10.0.0.3] (41-133-147-144.dsl.mweb.co.za. [41.133.147.144]) by mx.google.com with ESMTPS id m46sm7385481eeo.16.2013.03.21.03.04.47 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Mar 2013 03:04:48 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; SunOS sun4u; rv:17.0) Gecko/20130108 Thunderbird/17.0.2 In-Reply-To: <8738vp3yhe.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::22d X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:15951 Archived-At: On 03/21/13 11:15, Ludovic Courtès wrote: > Noah Lavine skribis: >> I've thought for a while that if I had time (which I know I won't) I would >> make a module called (linux) with bindings for non-POSIX Linux kernel >> features. What do you think of this idea? If so, what do you think of >> putting sendfile there and expanding it with other functions as we need >> them? > I’ve thought about it, but ended up with making sendfile work whether or > not the syscall is available (just like glibc does, after all). > > So for this particular case, I’d rather keep it in the global name > space. There’s also the untold argument that even if sendfile(2) is > unavailable, the loop written in C is going to be faster than the > equivalent bytecode. Just another datapoint: Solaris 10 has sendfile. So it's not just a Linux feature. -- Andrew