Search Postgresql Archives

Re: AIX and getaddrinfo (was Re: Upgrade problem)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tom Lane wrote:
> Can anyone else confirm the behavior of getaddrinfo wanting port 5432
> to be listed in /etc/services?  If this is real, we ought to have
> something about it in FAQ_AIX.

I can compile (64 bit) and run the following code without problem:

#include <sys/socket.h>
#include <netdb.h>
#include <stdio.h>

int main(int argc, char **argv) {
        struct addrinfo *res;
        int rc;

        rc = getaddrinfo("localhost", "5432", NULL, &res);
        if (0 != rc) {
                if (EAI_SYSTEM == rc)
                        perror("System error");
                else
                        fprintf(stderr, "Error: %s\n",
gai_strerror(rc));
                return rc;
        }

        return 0;
}

5432 is not in /etc/services.

This is AIX 5.3 ML 3.

Yours,
Laurenz Albe


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux