unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Marko Rauhamaa <marko@pacujo.net>
Cc: guile-user@gnu.org
Subject: Re: Guile: passing a file descriptor
Date: Sat, 11 Oct 2014 13:40:38 -0400	[thread overview]
Message-ID: <87r3yeijxl.fsf@yeeloong.lan> (raw)
In-Reply-To: <877g073v5o.fsf@elektro.pacujo.net> (Marko Rauhamaa's message of "Sat, 11 Oct 2014 10:47:15 +0300")

Marko Rauhamaa <marko@pacujo.net> 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



  reply	other threads:[~2014-10-11 17:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-11  7:47 Guile: passing a file descriptor Marko Rauhamaa
2014-10-11 17:40 ` Mark H Weaver [this message]
2014-10-11 22:20   ` Marko Rauhamaa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r3yeijxl.fsf@yeeloong.lan \
    --to=mhw@netris.org \
    --cc=guile-user@gnu.org \
    --cc=marko@pacujo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).