summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/getaddrinfo.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/net/getaddrinfo.3')
-rw-r--r--src/lib/libc/net/getaddrinfo.332
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
126bit is set, a successful call to 126bit is set, a successful call to
127.Fn getaddrinfo 127.Fn getaddrinfo
128will return a NUL-terminated string containing the canonical name 128will return a NUL-terminated string containing the canonical name
129of the specified hostname in the 129of the specified host name in the
130.Fa ai_canonname 130.Fa ai_canonname
131element of the first 131element of the first
132.Li addrinfo 132.Li addrinfo
133structure returned. 133structure returned.
134.It Dv AI_FQDN
135If the
136.Dv AI_FQDN
137bit is set, a successful call to
138.Fn getaddrinfo
139will return a NUL-terminated string containing the fully qualified domain name
140of the specified host name in the
141.Fa ai_canonname
142element of the first
143.Li addrinfo
144structure returned.
145.Pp
146This is different from the
147.Dv AI_CANONNAME
148bit flag that returns the canonical name registered in DNS,
149which may be different from the fully qualified domain name
150that the host name resolved to.
151Only one of the
152.Dv AI_FQDN
153and
154.Dv AI_CANONNAME
155bits can be set.
134.It Dv AI_NUMERICHOST 156.It Dv AI_NUMERICHOST
135If the 157If the
136.Dv AI_NUMERICHOST 158.Dv AI_NUMERICHOST
@@ -438,6 +460,10 @@ function is defined by the
438draft specification and documented in 460draft 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
464The
465.Dv AI_FQDN
466flag bit first appeared in Windows 7.
441.Sh BUGS 467.Sh BUGS
442The implementation of 468The implementation of
443.Fn getaddrinfo 469.Fn getaddrinfo