Re: pgsql: Remove check for accept() argument types - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: Remove check for accept() argument types
Date
Msg-id 1683239.1636726865@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgsql: Remove check for accept() argument types  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Responses Re: pgsql: Remove check for accept() argument types
List pgsql-committers
Peter Eisentraut <peter.eisentraut@enterprisedb.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



pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pgsql: Remove check for accept() argument types
Next
From: Andrew Dunstan
Date:
Subject: pgsql: Report found versions of required perl modules