Source-Changes archive

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

getaddr/nameinfo size_t -> socklen_t



>Log Message:
>struct addrinfo.ai_addrlen used to be a size_t, per RFC 2553.
>
>In XNS5.2, and subsequently in POSIX-2001 and draft-ietf-ipngwg-rfc2553bis-02
>it was changed to a socklen_t.
>
>To accomodate for this while preserving binary compatibility with the
>old interface, prepend or append 32 bits of padding, depending on
>the (LP64 data model) architecture's endianness.
>
>This should be deleted the next time the libc major number is
>incremented.

        thanks for looking into this,

        i'm not sure if "#if __sparc64__" is the best way to deal
        with this issue, will this be okay for new ports?

        btw, do you plan to do anything about getaddr/nameinfo function
        arguments?  POSIX-2001 changed some of size_t into socklen_t.
        (i don't really understand why they changed it, though)

itojun



Home | Main Index | Thread Index | Old Index