From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,f4967cc8a7079829 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-11-30 15:37:32 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!easynews!sjc-peer.news.verio.net!news.verio.net!iad-read.news.verio.net.POSTED!not-for-mail Message-ID: <3C081886.CC7D67A9@smbc-cm.com> From: Oisin McGuinness Organization: SMBC Capital Markets X-Mailer: Mozilla 4.79 [en] (WinNT; U) X-Accept-Language: en,el MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: passing an open file or socket descriptor References: <3C06B3C9.E15E8A3C@umkc.edu> <3C080C76.71BBD7B2@smbc-cm.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 30 Nov 2001 18:38:46 -0500 NNTP-Posting-Host: 204.141.189.14 X-Complaints-To: abuse@verio.net X-Trace: iad-read.news.verio.net 1007163444 204.141.189.14 (Fri, 30 Nov 2001 23:37:24 GMT) NNTP-Posting-Date: Fri, 30 Nov 2001 23:37:24 GMT Xref: archiver1.google.com comp.unix.tru64:5996 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