From owner-freebsd-standards@FreeBSD.ORG Tue May 31 19:09:09 2005 Return-Path: X-Original-To: standards@freebsd.org Delivered-To: freebsd-standards@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EA4A16A41C; Tue, 31 May 2005 19:09:09 +0000 (GMT) (envelope-from des@des.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E37A43D4C; Tue, 31 May 2005 19:09:08 +0000 (GMT) (envelope-from des@des.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IHD002S3HQTVS70@osl1smout1.broadpark.no>; Tue, 31 May 2005 23:16:05 +0200 (CEST) Received: from dsa.des.no ([80.203.228.37]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IHD00BLXC1E3EW7@osl1sminn1.broadpark.no>; Tue, 31 May 2005 21:12:50 +0200 (CEST) Received: by dsa.des.no (Pony Express, from userid 666) id 376D045165; Tue, 31 May 2005 21:09:07 +0200 (CEST) Received: from xps.des.no (xps.des.no [10.0.0.12]) by dsa.des.no (Pony Express) with ESMTP id 20B8245131; Tue, 31 May 2005 21:09:02 +0200 (CEST) Received: by xps.des.no (Postfix, from userid 1001) id C751733C3B; Tue, 31 May 2005 21:09:01 +0200 (CEST) Date: Tue, 31 May 2005 21:09:01 +0200 From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) In-reply-to: <20050531.115338.74685129.imp@bsdimp.com> To: Warner Losh Message-id: <86fyw3b4c2.fsf@xps.des.no> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on dsa.des.no References: <86fyw32yqm.fsf@xps.des.no> <86k6lfbafu.fsf@xps.des.no> <20050531.115338.74685129.imp@bsdimp.com> User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.0.2 X-Spam-Level: Cc: nectar@freebsd.org, standards@freebsd.org, freebsd-arch@freebsd.org, current@freebsd.org Subject: Re: [CFR] correct type of addrinfo.ai_addrlen and netent.n_net X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2005 19:09:09 -0000 Warner Losh writes: > Dag-Erling Sm=F8rgrav writes: > > What do we gain from removing the padding? Is there even a single > > practical benefit to doing so? > It is for posix compatibility. Nonsense. POSIX does not forbid padding or additional structure members. The exact wording is: > The header shall define the addrinfo structure that includes > at least the following members: -------- > > int ai_flags Input flags. > int ai_family Address family of socket. > int ai_socktype Socket type. > int ai_protocol Protocol of socket. > socklen_t ai_addrlen Length of socket address. > struct sockaddr *ai_addr Socket address of socket. > char *ai_canonname Canonical name of service location. > struct addrinfo *ai_next Pointer to next in list. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no