Skip site navigation (1) Skip section navigation (2)

Re: Bug Report with Postgres 7.4 on AIX 5.3

From: Andrew - Supernews <andrew+nonews(at)supernews(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug Report with Postgres 7.4 on AIX 5.3
Date: 2005-05-11 20:27:12
Message-ID: slrnd84ql0.tqf.andrew+nonews@trinity.supernews.net (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-ports
On 2005-05-11, Vincent Vanwynsberghe <vvanwynsberghe(at)ccncsi(dot)net> wrote:
> The AIX 5.3 provide the structure sockaddr_storage :
>
> struct sockaddr_storage {
>         ushort_t        __ss_family;    /* address family */
>         char            __ss_pad1[_SS_PAD1SIZE]; /* pad up to alignment
> field */
> #if defined(__64BIT__) || (defined(_ALL_SOURCE) && defined(_LONG_LONG))
>         int64_t         __ss_align;     /* field to force desired structure
> */
>                                         /* storage alignment */
> #else
>         int             __ss_align[2];
> #endif
>         char            __ss_pad2[_SS_PAD2SIZE];
>                                 /* pad to achieve desired size */
> };

If the size of sockaddr_storage is less than the size of sockaddr_un
(or any sockaddr_* structure) then this is a bug in AIX, because the
Unix standards clearly specify that sockaddr_storage must be both sized
and aligned such that a sockaddr_* struct for any supported protocol
can be stored there.

See the entry for <sys/socket.h> in the Headers chapter of the
Base Definitions volume of the SUSv3.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services

In response to

pgsql-ports by date

Next:From: Mohan, RossDate: 2005-05-19 00:22:33
Subject: Re: [PORTS] Bug Report with Postgres 7.4 on AIX 5.3
Previous:From: Tom LaneDate: 2005-05-11 16:02:04
Subject: Re: Bug Report with Postgres 7.4 on AIX 5.3

pgsql-bugs by date

Next:From: Alvaro HerreraDate: 2005-05-11 20:44:29
Subject: Re: BUG #1660: Growing used memory and critical performance loss
Previous:From: Pavel KrupetsDate: 2005-05-11 19:30:52
Subject: BUG #1661: JDBC DatabaseMetaData.getExportedKeys() returns invalid keys.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group