From owner-freebsd-arch Mon Sep 10 6: 9: 3 2001 Delivered-To: freebsd-arch@freebsd.org Received: from amsfep12-int.chello.nl (amsfep12-int.chello.nl [213.46.243.17]) by hub.freebsd.org (Postfix) with ESMTP id CA36237B405 for ; Mon, 10 Sep 2001 06:08:57 -0700 (PDT) Received: from daemon.chronias.ninth-circle.org ([62.163.96.180]) by amsfep12-int.chello.nl (InterMail vM.5.01.03.06 201-253-122-118-106-20010523) with ESMTP id <20010910130611.PKPT7460.amsfep12-int.chello.nl@daemon.chronias.ninth-circle.org>; Mon, 10 Sep 2001 15:06:11 +0200 Received: (from asmodai@localhost) by daemon.chronias.ninth-circle.org (8.11.3/8.11.3) id f8AD8hi84307; Mon, 10 Sep 2001 15:08:43 +0200 (CEST) (envelope-from asmodai) Date: Mon, 10 Sep 2001 15:08:42 +0200 From: Jeroen Ruigrok/Asmodai To: Terry Lambert Cc: karels@BSDI.COM, Bill Fenner , arch@FreeBSD.ORG Subject: Re: Causing to depend on Message-ID: <20010910150842.G67566@daemon.ninth-circle.org> References: <200109072110.f87LADX15133@redrock.eng.bsdi.com> <3B9A112D.5909ECE@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3B9A112D.5909ECE@mindspring.com> User-Agent: Mutt/1.3.19i Organisation: Ninth-Circle Enterprises Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -On [20010908 15:00], Terry Lambert (tlambert2@mindspring.com) wrote: >I haven't seen where the sockaddr_storage type is used, yet >(no one has posted anything), 217 occurences in the /usr/src tree. >but it seems to me that if, when it is used, it is used as an opaque >pointer type, where possible, then this avoids the need to pollute the >namespace unless someone is referencing members of the structure, which >means they are actually using it, which means that they can darn well >include a header file to get the non-opaque version of the structure >declaration so that they can instance the thing. It needs to be defined in [as per POSIX and SUS decree]. ``The sockaddr_storage structure solves the problem of declaring storage for automatic variables which is both large enough and aligned enough for storing the socket address data structure of any family.'' It's an opaque type yes, but for all I know just an opaque struct, not a pointer. -- Jeroen Ruigrok van der Werven/Asmodai asmodai@[wxs.nl|freebsd.org|xmach.org] Documentation nutter/C-rated Coder, finger asmodai@ninth-circle.dnsalias.net http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/ I search the outside, search inside for you... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message