From owner-freebsd-hackers Fri Aug 28 12:35:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA06766 for freebsd-hackers-outgoing; Fri, 28 Aug 1998 12:35:43 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id MAA06736 for ; Fri, 28 Aug 1998 12:35:36 -0700 (PDT) (envelope-from leisner@sdsp.mc.xerox.com) Received: from gemini.sdsp.mc.xerox.com ([13.231.132.20]) by alpha.xerox.com with SMTP id <52391(1)>; Fri, 28 Aug 1998 12:34:04 PDT Received: from gnu.sdsp.mc.xerox.com (gnu [13.231.133.90]) by gemini.sdsp.mc.xerox.com (8.8.7/8.8.7) with SMTP id PAA29501; Fri, 28 Aug 1998 15:29:44 -0400 (EDT) Received: from gnu (localhost) by gnu.sdsp.mc.xerox.com (4.1/client-1.3) id AA27016; Fri, 28 Aug 98 15:29:43 EDT Message-Id: <9808281929.AA27016@gnu.sdsp.mc.xerox.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Luigi Rizzo Cc: chanders@timing.com (Craig Anderson), freebsd-hackers@FreeBSD.ORG, brhall@timing.com Subject: Re: Help with passing fd on FreeBSD In-Reply-To: Your message of "Fri, 28 Aug 1998 09:28:36 PDT." <199808281628.SAA05374@labinfo.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 28 Aug 1998 12:29:43 PDT From: "Marty Leisner" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Oops, I turned the page and the BSD4.3+ example looks like the FreeBSD > > struct. The Stevens book appears to have a good example. > > > > > Can someone give me pointers on passing open file descriptors on FreeBSD? > > still, this looks to me one of the most obscure interfaces in the OS. > Does any real application use that ? > > cheers > luigi If you have cooperating processes, and you want to create a pipe at runtime, how do you pass it between processes? (wihtout having to make a named pipe)... In the systems I build at work, its fundaemntal. When I was first asked to do it (and told how), I never knew it existed before... I think bsd4.4 can pass an array of fd's, older bsd style OSes were limited to one fd...(?) -- marty leisner@sdsp.mc.xerox.com The Feynman problem solving Algorithm 1) Write down the problem 2) Think real hard 3) Write down the answer Murray Gell-mann in the NY Times To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message