From owner-freebsd-hackers Sat Aug 29 22:27:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA13730 for freebsd-hackers-outgoing; Sat, 29 Aug 1998 22:27:36 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from phobos.illtel.denver.co.us (phobos.illtel.denver.co.us [207.33.75.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA13725 for ; Sat, 29 Aug 1998 22:27:34 -0700 (PDT) (envelope-from abelits@phobos.illtel.denver.co.us) Received: from localhost (abelits@localhost) by phobos.illtel.denver.co.us (8.8.8/8.6.9) with SMTP id WAA22341; Sat, 29 Aug 1998 22:24:42 -0700 Date: Sat, 29 Aug 1998 22:24:42 -0700 (PDT) From: Alex Belits To: Craig Anderson cc: freebsd-hackers@FreeBSD.ORG, brhall@timing.com Subject: Re: Help with passing fd on FreeBSD In-Reply-To: <199808281426.IAA10588@count.timing.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 28 Aug 1998, Craig Anderson wrote: > Can someone give me pointers on passing open file descriptors on FreeBSD? > This is covered in W. Richard Stevens Advanced programming book, but See R. Stevens "TCP/IP Illustrated", volume 3, chapter 18.3 or R. Stevens "Unix Network Programming", second edition (1997), volume 1, chapter 14.7. Previous books describe 4.3BSD and SVR4 fd passing that is more than slightly different. > the structs in FreeBSD are slightly different, and I've never done this. In FreeBSD CMSG_DATA(cm) macro is the equivalent to cm->cmsg_data that is commented out in include files in 4.4BSD-derived, but exists in other compatible systems. Beware of the known bug in FreeBSD kernel (PR kern/4345). -- Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message