From: Oisin McGuinness <oisin@smbc-cm.com>
Subject: Re: passing an open file or socket descriptor
Date: Fri, 30 Nov 2001 18:38:46 -0500 [thread overview]
Message-ID: <3C081886.CC7D67A9@smbc-cm.com> (raw)
In-Reply-To: 3C080C76.71BBD7B2@smbc-cm.com
Oisin McGuinness wrote:
>
> David Nicol wrote:
> ?
> ? is there a way to pass an open fd to another process?
>
> Read Chapter 15 in the late great W. Richard Stevens' book, "Advanced
> Programming in the Unix Environment",
> published by Addison Wesley, 1992, ISBN 0-201-56317-7. (Everyone should
> own this book.)
> He describes the ins and outs of this, with lots of source code.
>
> --
>
> Oisin McGuinness
It is sort of obnoxious to follow up on my own reply, but all three of
the techniques
described in section 15.3 of Stevens are supported under Tru64Unix: see
streamio(7) for the SVR4 method
used in Stevens 15.3.1, and sendmsg(2) for support for both BSD4.4 and
BSD4.3 methods
as used in Stevens 15.3.3 and 15.3.2 respectively.
--
Oisin McGuinness
SMBC Capital Markets
277 Park Avenue
New York NY 10172
USA
(212)-224-4913, email: oisin@smbc-cm.com
prev parent reply other threads:[~2001-11-30 23:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-29 22:16 passing an open file or socket descriptor David Nicol
2001-11-30 22:47 ` Oisin McGuinness
2001-11-30 23:38 ` Oisin McGuinness [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox