From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.user Subject: Re: Guile: passing a file descriptor Date: Sat, 11 Oct 2014 13:40:38 -0400 Message-ID: <87r3yeijxl.fsf@yeeloong.lan> References: <877g073v5o.fsf@elektro.pacujo.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1413049311 13205 80.91.229.3 (11 Oct 2014 17:41:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Oct 2014 17:41:51 +0000 (UTC) Cc: guile-user@gnu.org To: Marko Rauhamaa Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Oct 11 19:41:42 2014 Return-path: Envelope-to: guile-user@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 1Xd0fi-0006uP-Pg for guile-user@m.gmane.org; Sat, 11 Oct 2014 19:41:38 +0200 Original-Received: from localhost ([::1]:54850 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xd0fi-0003nv-Dn for guile-user@m.gmane.org; Sat, 11 Oct 2014 13:41:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xd0fW-0003nq-CB for guile-user@gnu.org; Sat, 11 Oct 2014 13:41:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xd0fR-0005FA-3z for guile-user@gnu.org; Sat, 11 Oct 2014 13:41:26 -0400 Original-Received: from world.peace.net ([96.39.62.75]:37236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xd0fR-0005Ey-0Z for guile-user@gnu.org; Sat, 11 Oct 2014 13:41:21 -0400 Original-Received: from c-24-62-95-23.hsd1.ma.comcast.net ([24.62.95.23] helo=yeeloong.lan) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Xd0fH-0007hI-RE; Sat, 11 Oct 2014 13:41:12 -0400 In-Reply-To: <877g073v5o.fsf@elektro.pacujo.net> (Marko Rauhamaa's message of "Sat, 11 Oct 2014 10:47:15 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.94 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 96.39.62.75 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11574 Archived-At: Marko Rauhamaa writes: > A PF_UNIX socket can be used to pass an open file descriptor between > processes. However, the relevant control message seems to be missing in > Guile's POSIX facilities (send only accepts a data message). Indeed, we lack that functionality in core Guile. > Am I mistaken, and are there any plans to add control message support to > Guile's library? I'm not aware of any plans to add it, but if we can agree on an API and someone contributed a suitable implementation, I don't see why we couldn't add it. In the meantime, it's easy to extend Guile with your own bits of C code. http://www.gnu.org/software/guile/manual/html_node/C-Extensions.html You could also probably use our Dynamic FFI to do the job entirely from Scheme, although we don't have any automatic way of dealing with C preprocessor macros, so they would probably have to be hard-coded. http://www.gnu.org/software/guile/manual/html_node/Foreign-Function-Interface.html Mark