Re: pgsql: Remove check for accept() argument types

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Remove check for accept() argument types
Date: 2021-11-12 14:21:05
Message-ID: 1683239.1636726865@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com> 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

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2021-11-12 15:41:22 pgsql: Report found versions of required perl modules
Previous Message Peter Eisentraut 2021-11-12 13:16:25 Re: pgsql: Remove check for accept() argument types