diff options
author | Sergey Kandaurov <pluknet@FreeBSD.org> | 2019-02-10 19:07:47 +0000 |
---|---|---|
committer | Sergey Kandaurov <pluknet@FreeBSD.org> | 2019-02-10 19:07:47 +0000 |
commit | 9b9a527843591d3e269e68c42932820759d2f416 (patch) | |
tree | 73798d11d60142761597f6831764150d51313299 | |
parent | f6d281e8aaad3f89c48b5c4b637fce625e8e5a87 (diff) | |
download | src-9b9a527843591d3e269e68c42932820759d2f416.tar.gz src-9b9a527843591d3e269e68c42932820759d2f416.zip |
Sync "struct addrinfo" declaration with netdb.h.
Notably, unlike in OpenBSD, which the man page was copied from,
ai_canonname and ai_addr come in different order.
PR: 225880
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=343967
-rw-r--r-- | lib/libc/net/getaddrinfo.3 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/libc/net/getaddrinfo.3 b/lib/libc/net/getaddrinfo.3 index fdfaddb98b0e..bd0084db2b3c 100644 --- a/lib/libc/net/getaddrinfo.3 +++ b/lib/libc/net/getaddrinfo.3 @@ -18,7 +18,7 @@ .\" .\" $FreeBSD$ .\" -.Dd September 13, 2017 +.Dd February 10, 2019 .Dt GETADDRINFO 3 .Os .Sh NAME @@ -78,14 +78,14 @@ as defined by .Aq Pa netdb.h : .Bd -literal struct addrinfo { - int ai_flags; /* input flags */ - int ai_family; /* address family for socket */ - int ai_socktype; /* socket type */ - int ai_protocol; /* protocol for socket */ - socklen_t ai_addrlen; /* length of socket-address */ - struct sockaddr *ai_addr; /* socket-address for socket */ - char *ai_canonname; /* canonical name for service location */ - struct addrinfo *ai_next; /* pointer to next in list */ + int ai_flags; /* AI_PASSIVE, AI_CANONNAME, .. */ + int ai_family; /* AF_xxx */ + int ai_socktype; /* SOCK_xxx */ + int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and IPv6 */ + socklen_t ai_addrlen; /* length of ai_addr */ + char *ai_canonname; /* canonical name for hostname */ + struct sockaddr *ai_addr; /* binary address */ + struct addrinfo *ai_next; /* next structure in linked list */ }; .Ed .Pp |