From owner-freebsd-hackers Fri Aug 28 14:25:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA24937 for freebsd-hackers-outgoing; Fri, 28 Aug 1998 14:25:03 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from indigo.ie (ts05-035.dublin.indigo.ie [194.125.220.45]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA24920 for ; Fri, 28 Aug 1998 14:24:39 -0700 (PDT) (envelope-from rotel@indigo.ie) Received: (from nsmart@localhost) by indigo.ie (8.8.8/8.8.7) id WAA01126; Fri, 28 Aug 1998 22:15:48 +0100 (IST) (envelope-from rotel@indigo.ie) From: Niall Smart Message-Id: <199808282115.WAA01126@indigo.ie> Date: Fri, 28 Aug 1998 22:15:22 +0000 In-Reply-To: <199808281628.SAA05374@labinfo.iet.unipi.it>; Luigi Rizzo Reply-To: rotel@indigo.ie X-Files: The truth is out there X-Mailer: Mail User's Shell (7.2.6 beta(3) 11/17/96) To: Luigi Rizzo , chanders@timing.com (Craig Anderson) Subject: Re: Help with passing fd on FreeBSD Cc: freebsd-hackers@FreeBSD.ORG, brhall@timing.com Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Aug 28, 6:28pm, Luigi Rizzo wrote: } Subject: Re: Help with passing fd on FreeBSD > > 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 ? I can imagine several uses for it, one of the most useful being a centralised authentication daemon which passes out raw sockets, sockets < 1024 etc to appropriately authorised processes. fhttpd also uses it a lot. Niall -- Niall Smart, rotel@indigo.ie. Amaze your friends and annoy your enemies: echo '#define if(x) if (!(x))' >> /usr/include/stdio.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message