[1181] in linux-net channel archive
Re: availability and usage of a function
daemon@ATHENA.MIT.EDU (Alan Cox)
Mon Oct 9 19:05:52 1995
From: iialan@iifeak.swan.ac.uk (Alan Cox)
To: dwreski@ultrix.ramapo.edu (Dave Wreski)
Date: Mon, 9 Oct 1995 09:38:52 +0100 (BST)
Cc: linux-net@vger.rutgers.edu
In-Reply-To: <Pine.ULT.3.91.951008180423.9821B-100000@ultrix.ramapo.edu> from "Dave Wreski" at Oct 8, 95 06:09:51 pm
> I'm trying to figure out the best way to send file descriptors (actually
> socket descriptors) to another process.
Via /proc at the moment is your only choice.
> Is the struct msghdr supported under linux? I have been unable to find
> any references to it. I do know that we have sendmsg and recvmsg, but I
> don't know if they are supported. Is it possible, for simplicity, to
> just used shared memory to pass file descriptors?
They are supported in 1.3.x but not yet for fd passing. I've got all the bits
for this now as Bark Pearlmutter wrote me a nice garbage collector as is needed
for fd passing. Its just not all in yet, as I have to get the code put together
and BSD semantics exactly right.
Alan