From owner-freebsd-arch@FreeBSD.ORG Tue May 31 20:08:36 2005 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F0BB16A41C; Tue, 31 May 2005 20:08:36 +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 AA75643D49; Tue, 31 May 2005 20:08:35 +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 <0IHD002XAKHVVR90@osl1smout1.broadpark.no>; Wed, 01 Jun 2005 00:15:32 +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 <0IHD00BM3ESG2ZP8@osl1sminn1.broadpark.no>; Tue, 31 May 2005 22:12:16 +0200 (CEST) Received: by dsa.des.no (Pony Express, from userid 666) id EEB4645165; Tue, 31 May 2005 22:08:32 +0200 (CEST) Received: from xps.des.no (xps.des.no [10.0.0.12]) by dsa.des.no (Pony Express) with ESMTP id 3A03C45131; Tue, 31 May 2005 22:08:30 +0200 (CEST) Received: by xps.des.no (Postfix, from userid 1001) id 2E20E33C3B; Tue, 31 May 2005 22:08:30 +0200 (CEST) Date: Tue, 31 May 2005 22:08:30 +0200 From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) In-reply-to: <20050531.140334.74683681.imp@bsdimp.com> To: Warner Losh Message-id: <867jhfb1kx.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: <86k6lfbafu.fsf@xps.des.no> <20050531.115338.74685129.imp@bsdimp.com> <86fyw3b4c2.fsf@xps.des.no> <20050531.140334.74683681.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-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2005 20:08:36 -0000 Warner Losh writes: > Dag-Erling Sm=F8rgrav writes: > > 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: [...] > Did you bother reading what I posted? I don't think so since you'd > have known that ai_addrlen was changed to be socklen_t for posix > compliance, and the padding was added for ABI compatibility. The > removal of padding is the normal sort of thing that's done during > major revisions. It was there, indirectly, for POSIX compliance. I know that. I am questioning the need to *remove* the padding, as you would know if *you* had bothered reading what *I* posted. I've included it so you can double-check. > Maybe the padding removal is too painful given all the extra 'oh, by > the ways' that we're stumbling over. That is exactly what I'm saying. BTW, could you please fix your MUA to correctly attribute quotes? DES --=20 Dag-Erling Sm=F8rgrav - des@des.no