Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mlXQV-0006NA-D8 for pgsql-committers@arkaria.postgresql.org; Fri, 12 Nov 2021 14:21:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mlXQU-00074H-9j for pgsql-committers@arkaria.postgresql.org; Fri, 12 Nov 2021 14:21:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mlXQU-00073v-2X for pgsql-committers@lists.postgresql.org; Fri, 12 Nov 2021 14:21:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mlXQR-0003F0-MM for pgsql-committers@lists.postgresql.org; Fri, 12 Nov 2021 14:21:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1ACEL55E1683240; Fri, 12 Nov 2021 09:21:05 -0500 From: Tom Lane To: Peter Eisentraut cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Remove check for accept() argument types In-reply-to: <3863895c-d40b-4154-de8f-4961386b2515@enterprisedb.com> References: <1440792.1636558888@sss.pgh.pa.us> <3863895c-d40b-4154-de8f-4961386b2515@enterprisedb.com> Comments: In-reply-to Peter Eisentraut message dated "Fri, 12 Nov 2021 14:16:25 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1683238.1636726865.1@sss.pgh.pa.us> Date: Fri, 12 Nov 2021 09:21:05 -0500 Message-ID: <1683239.1636726865@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: > On 10.11.21 16:41, Tom Lane wrote: >> May I suggest that "unsigned int" would be a better choice >> than "int" for socklen_t? > I have been waiting for a few more buildfarm members to finish (mainly > the other AIX and HPUX instances), but they appear to be on strike right > now. I waited to see one of the AIX 7.1 instances report, and it does have socklen_t. So the only old buildfarm members that any uncertainty remains about are the HPUX 11 ones. Probably those have socklen_t; but if they don't, given that we know HPUX 10 wants "unsigned int", it seems certain that 11 would too. So I went ahead and pushed that change yesterday. > What does the man page say the correct type > would be? size_t? The machine's not booted up right now :-(. But I'm pretty sure we shouldn't consider using size_t here, as it's not real clear that that couldn't be 64 bits on any affected platforms. Your previous research said that the desired type is 32 bits on all such platforms, so I think that "int" is correct; we need only debate signedness. regards, tom lane