diff options
| author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2005-07-22 18:21:28 +0000 |
|---|---|---|
| committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2005-07-22 18:21:28 +0000 |
| commit | 85a71a15c8ef3d1051e5610f4392a1e9357f0af0 (patch) | |
| tree | 49d40cc722284a0b53454874a81ae5392fc8d374 /include | |
| parent | e99623322036848ee6ee3eebf267dff8d4d66987 (diff) | |
Notes
Diffstat (limited to 'include')
| -rw-r--r-- | include/netdb.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/netdb.h b/include/netdb.h index f003c2590462e..2e7caae369af0 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -63,8 +63,6 @@ #include <sys/cdefs.h> #include <sys/_types.h> -#include <machine/_limits.h> -#include <machine/endian.h> #ifndef _SIZE_T_DECLARED typedef __size_t size_t; @@ -125,29 +123,12 @@ struct protoent { int p_proto; /* protocol # */ }; -/* - * Note: ai_addrlen used to be a size_t, per RFC 2553. - * In XNS5.2, and subsequently in POSIX-2001 and RFC 3493 it was - * changed to a socklen_t. - * To accomodate for this while preserving binary compatibility with the - * old interface, we prepend or append 32 bits of padding, depending on - * the (LP64) architecture's endianness. - * - * This should be deleted the next time the libc major number is - * incremented. - */ struct addrinfo { int ai_flags; /* AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST */ int ai_family; /* PF_xxx */ int ai_socktype; /* SOCK_xxx */ int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and IPv6 */ -#if __LONG_BIT == 64 && _BYTE_ORDER == _BIG_ENDIAN - uint32_t __ai_pad0; /* ABI compatibility */ -#endif socklen_t ai_addrlen; /* length of ai_addr */ -#if __LONG_BIT == 64 && _BYTE_ORDER == _LITTLE_ENDIAN - uint32_t __ai_pad0; /* ABI compatibility */ -#endif char *ai_canonname; /* canonical name for hostname */ struct sockaddr *ai_addr; /* binary address */ struct addrinfo *ai_next; /* next structure in linked list */ |
