diff options
author | 2003-07-27 15:34:03 +0000 | |
---|---|---|
committer | 2003-07-27 15:34:03 +0000 | |
commit | 1331d812b8704566de2dd021fd83a158f3746f34 (patch) | |
tree | 759a04c69bd94c29ea8ccc634af611a71d964e48 /lib/libc | |
parent | USD docs for ed are 9-10, not 12,13; (diff) | |
download | wireguard-openbsd-1331d812b8704566de2dd021fd83a158f3746f34.tar.xz wireguard-openbsd-1331d812b8704566de2dd021fd83a158f3746f34.zip |
sync struct addrinfo with what's in <netdb.h>;
ok itojun@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/getaddrinfo.3 | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/libc/net/getaddrinfo.3 b/lib/libc/net/getaddrinfo.3 index dc91b7078d2..f91681dbcdc 100644 --- a/lib/libc/net/getaddrinfo.3 +++ b/lib/libc/net/getaddrinfo.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getaddrinfo.3,v 1.23 2003/06/02 20:18:35 millert Exp $ +.\" $OpenBSD: getaddrinfo.3,v 1.24 2003/07/27 15:34:03 jmc Exp $ .\" $KAME: getaddrinfo.3,v 1.29 2001/02/12 09:24:45 itojun Exp $ .\" .\" Copyright (c) 1983, 1987, 1991, 1993 @@ -67,16 +67,16 @@ The structure is defined as a result of including the .Aq Pa netdb.h header: -.Bd -literal -offset -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 */ - size_t ai_addrlen; /* length of ai_addr */ - char *ai_canonname; /* canonical name for nodename */ - struct sockaddr *ai_addr; /* binary address */ - struct addrinfo *ai_next; /* next structure in linked list */ +.Bd -literal +struct addrinfo { + int ai_flags; /* input flags */ + int ai_family; /* protocol 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 */ }; .Ed .Pp |