diff options
author | jmc <> | 2003-07-27 15:34:03 +0000 |
---|---|---|
committer | jmc <> | 2003-07-27 15:34:03 +0000 |
commit | 0dde535676cc51e1561135d3dec1db9a9341b8d8 (patch) | |
tree | 2436473ffdda9a1f46373d9f52908c9e8cdb9255 /src | |
parent | a6f9fd486a778379e9320a63e464bdaf567a1e47 (diff) | |
download | openbsd-0dde535676cc51e1561135d3dec1db9a9341b8d8.tar.gz openbsd-0dde535676cc51e1561135d3dec1db9a9341b8d8.tar.bz2 openbsd-0dde535676cc51e1561135d3dec1db9a9341b8d8.zip |
sync struct addrinfo with what's in <netdb.h>;
ok itojun@
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libc/net/getaddrinfo.3 | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/libc/net/getaddrinfo.3 b/src/lib/libc/net/getaddrinfo.3 index dc91b7078d..f91681dbcd 100644 --- a/src/lib/libc/net/getaddrinfo.3 +++ b/src/lib/libc/net/getaddrinfo.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: getaddrinfo.3,v 1.23 2003/06/02 20:18:35 millert Exp $ | 1 | .\" $OpenBSD: getaddrinfo.3,v 1.24 2003/07/27 15:34:03 jmc Exp $ |
2 | .\" $KAME: getaddrinfo.3,v 1.29 2001/02/12 09:24:45 itojun Exp $ | 2 | .\" $KAME: getaddrinfo.3,v 1.29 2001/02/12 09:24:45 itojun Exp $ |
3 | .\" | 3 | .\" |
4 | .\" Copyright (c) 1983, 1987, 1991, 1993 | 4 | .\" Copyright (c) 1983, 1987, 1991, 1993 |
@@ -67,16 +67,16 @@ The | |||
67 | structure is defined as a result of including the | 67 | structure is defined as a result of including the |
68 | .Aq Pa netdb.h | 68 | .Aq Pa netdb.h |
69 | header: | 69 | header: |
70 | .Bd -literal -offset | 70 | .Bd -literal |
71 | struct addrinfo { * | 71 | struct addrinfo { |
72 | int ai_flags; /* AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST */ | 72 | int ai_flags; /* input flags */ |
73 | int ai_family; /* PF_xxx */ | 73 | int ai_family; /* protocol family for socket */ |
74 | int ai_socktype; /* SOCK_xxx */ | 74 | int ai_socktype; /* socket type */ |
75 | int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and IPv6 */ | 75 | int ai_protocol; /* protocol for socket */ |
76 | size_t ai_addrlen; /* length of ai_addr */ | 76 | socklen_t ai_addrlen; /* length of socket-address */ |
77 | char *ai_canonname; /* canonical name for nodename */ | 77 | struct sockaddr *ai_addr; /* socket-address for socket */ |
78 | struct sockaddr *ai_addr; /* binary address */ | 78 | char *ai_canonname; /* canonical name for service location */ |
79 | struct addrinfo *ai_next; /* next structure in linked list */ | 79 | struct addrinfo *ai_next; /* pointer to next in list */ |
80 | }; | 80 | }; |
81 | .Ed | 81 | .Ed |
82 | .Pp | 82 | .Pp |