[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sys_socket: sockaddr_storage, new module alignof
From: |
Simon Josefsson |
Subject: |
Re: sys_socket: sockaddr_storage, new module alignof |
Date: |
Fri, 08 May 2009 13:03:32 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.93 (gnu/linux) |
Bruno Haible <address@hidden> writes:
> Simon Josefsson wrote:
>> +#define _SS_PADSIZE (_SS_SIZE - (max (sizeof (sa_family_t), \
>> + alignof (__ss_aligntype)) \
>> + + sizeof (__ss_aligntype)))
>
> Fine, except that 'alignof' is not a predefined macro. We have a definition
> of it in "malloca.h" and in some .c files from glibc. OSF/1 has it in a file
> <alignof.h>, but it contains nothing better than our alignof macro.
>
> I propose to create a module like this:
Looks fine to me. If you push it, I can make sys_socket depend on it.
/Simon
- sys_socket: sockaddr_storage, Simon Josefsson, 2009/05/07
- Re: sys_socket: sockaddr_storage, Tom G. Christensen, 2009/05/07
- Re: sys_socket: sockaddr_storage, Bruno Haible, 2009/05/07
- Re: sys_socket: sockaddr_storage, Tom G. Christensen, 2009/05/08
- Re: sys_socket: sockaddr_storage, Simon Josefsson, 2009/05/08
- Re: sys_socket: sockaddr_storage, new module alignof, Bruno Haible, 2009/05/08
- Re: sys_socket: sockaddr_storage, new module alignof,
Simon Josefsson <=
- Re: sys_socket: sockaddr_storage, new module alignof, Bruno Haible, 2009/05/08
- Re: sys_socket: sockaddr_storage, new module alignof, Simon Josefsson, 2009/05/08
- Re: sys_socket: sockaddr_storage, new module alignof, Simon Josefsson, 2009/05/08
- Re: sys_socket: sockaddr_storage, new module alignof, Bruno Haible, 2009/05/08
- Re: sys_socket: sockaddr_storage, new module alignof, Simon Josefsson, 2009/05/10
- Re: sys_socket: sockaddr_storage, new module alignof, Simon Josefsson, 2009/05/08
- Re: sys_socket: sockaddr_storage, new module alignof, Simon Josefsson, 2009/05/08
- Re: sys_socket: sockaddr_storage, new module alignof, Bruno Haible, 2009/05/12
- Re: sys_socket: sockaddr_storage, new module alignof, Eric Blake, 2009/05/12
- Re: new module alignof, Bruno Haible, 2009/05/31