Skip to contentSkip to conversation

Changed type of ai_addrlen in struct addrinfo

DISCUSSION Jak 2 participants 2 messages Apr 3, 2012 – Apr 14, 2012 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore

Jak

author
#0 lore raw

Hi,

<http://man7.org/linux/man-pages/man3/getaddrinfo.3.html> says that struct addrinfo contains:

        size_t    ai_addrlen;

However, in the GNU C Library, the type was changed on 2000-04-01 from size_t to socklen_t, as ChangeLog.11 in the glibc source shows:

* resolv/netdb.h
[...]
(struct addrinfo): Use socklen_t for ai_addrlen element.

Please could the manpage be updated?

Thanks,
Jak.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to a message not in the archive

Hi Kak,

Quoted 7 lines · Jak

Hi,

<http://man7.org/linux/man-pages/man3/getaddrinfo.3.html> says that struct addrinfo contains:

       size_t    ai_addrlen;

Quoted 8 lines

However, in the GNU C Library, the type was changed on 2000-04-01 from size_t to socklen_t, as ChangeLog.11 in the glibc source shows:

       * resolv/netdb.h
       [...]
       (struct addrinfo): Use socklen_t for ai_addrlen element.

Please could the manpage be updated?

Thanks for the report. Fixed for man-pages-3.39.

Cheers,

Michael

Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html