diff options
Diffstat (limited to 'src/lib/libc/net/getaddrinfo.3')
-rw-r--r-- | src/lib/libc/net/getaddrinfo.3 | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/src/lib/libc/net/getaddrinfo.3 b/src/lib/libc/net/getaddrinfo.3 index 7250407d65..da6e64683f 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.47 2009/07/09 10:14:41 eric Exp $ | 1 | .\" $OpenBSD: getaddrinfo.3,v 1.48 2011/04/05 00:46:06 matthew Exp $ |
2 | .\" $KAME: getaddrinfo.3,v 1.36 2005/01/05 03:23:05 itojun Exp $ | 2 | .\" $KAME: getaddrinfo.3,v 1.36 2005/01/05 03:23:05 itojun Exp $ |
3 | .\" | 3 | .\" |
4 | .\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC") | 4 | .\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC") |
@@ -16,7 +16,7 @@ | |||
16 | .\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | 16 | .\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
17 | .\" PERFORMANCE OF THIS SOFTWARE. | 17 | .\" PERFORMANCE OF THIS SOFTWARE. |
18 | .\" | 18 | .\" |
19 | .Dd $Mdocdate: July 9 2009 $ | 19 | .Dd $Mdocdate: April 5 2011 $ |
20 | .Dt GETADDRINFO 3 | 20 | .Dt GETADDRINFO 3 |
21 | .Os | 21 | .Os |
22 | .Sh NAME | 22 | .Sh NAME |
@@ -126,11 +126,33 @@ If the | |||
126 | bit is set, a successful call to | 126 | bit is set, a successful call to |
127 | .Fn getaddrinfo | 127 | .Fn getaddrinfo |
128 | will return a NUL-terminated string containing the canonical name | 128 | will return a NUL-terminated string containing the canonical name |
129 | of the specified hostname in the | 129 | of the specified host name in the |
130 | .Fa ai_canonname | 130 | .Fa ai_canonname |
131 | element of the first | 131 | element of the first |
132 | .Li addrinfo | 132 | .Li addrinfo |
133 | structure returned. | 133 | structure returned. |
134 | .It Dv AI_FQDN | ||
135 | If the | ||
136 | .Dv AI_FQDN | ||
137 | bit is set, a successful call to | ||
138 | .Fn getaddrinfo | ||
139 | will return a NUL-terminated string containing the fully qualified domain name | ||
140 | of the specified host name in the | ||
141 | .Fa ai_canonname | ||
142 | element of the first | ||
143 | .Li addrinfo | ||
144 | structure returned. | ||
145 | .Pp | ||
146 | This is different from the | ||
147 | .Dv AI_CANONNAME | ||
148 | bit flag that returns the canonical name registered in DNS, | ||
149 | which may be different from the fully qualified domain name | ||
150 | that the host name resolved to. | ||
151 | Only one of the | ||
152 | .Dv AI_FQDN | ||
153 | and | ||
154 | .Dv AI_CANONNAME | ||
155 | bits can be set. | ||
134 | .It Dv AI_NUMERICHOST | 156 | .It Dv AI_NUMERICHOST |
135 | If the | 157 | If the |
136 | .Dv AI_NUMERICHOST | 158 | .Dv AI_NUMERICHOST |
@@ -438,6 +460,10 @@ function is defined by the | |||
438 | draft specification and documented in | 460 | draft specification and documented in |
439 | .Dv "RFC 3493" , | 461 | .Dv "RFC 3493" , |
440 | .Dq Basic Socket Interface Extensions for IPv6 . | 462 | .Dq Basic Socket Interface Extensions for IPv6 . |
463 | .Pp | ||
464 | The | ||
465 | .Dv AI_FQDN | ||
466 | flag bit first appeared in Windows 7. | ||
441 | .Sh BUGS | 467 | .Sh BUGS |
442 | The implementation of | 468 | The implementation of |
443 | .Fn getaddrinfo | 469 | .Fn getaddrinfo |