summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/getnameinfo.3
diff options
context:
space:
mode:
authorjmc <>2003-05-01 19:10:09 +0000
committerjmc <>2003-05-01 19:10:09 +0000
commit4fee542bdc3c7525d3cdec0f32496a4c4c857c2b (patch)
tree136ea65dbdc5dbe9fd99b800986f8865ac130e5e /src/lib/libc/net/getnameinfo.3
parentb0b363c41fb5798849f7ca119b2c07c293a9d690 (diff)
downloadopenbsd-4fee542bdc3c7525d3cdec0f32496a4c4c857c2b.tar.gz
openbsd-4fee542bdc3c7525d3cdec0f32496a4c4c857c2b.tar.bz2
openbsd-4fee542bdc3c7525d3cdec0f32496a4c4c857c2b.zip
typos;
ok itojun@
Diffstat (limited to 'src/lib/libc/net/getnameinfo.3')
-rw-r--r--src/lib/libc/net/getnameinfo.316
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libc/net/getnameinfo.3 b/src/lib/libc/net/getnameinfo.3
index 76c6449906..e151157949 100644
--- a/src/lib/libc/net/getnameinfo.3
+++ b/src/lib/libc/net/getnameinfo.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getnameinfo.3,v 1.17 2001/11/15 06:53:09 itojun Exp $ 1.\" $OpenBSD: getnameinfo.3,v 1.18 2003/05/01 19:10:09 jmc Exp $
2.\" $KAME: getnameinfo.3,v 1.20 2001/01/05 13:37:37 itojun Exp $ 2.\" $KAME: getnameinfo.3,v 1.20 2001/01/05 13:37:37 itojun Exp $
3.\" 3.\"
4.\" Copyright (c) 1983, 1987, 1991, 1993 4.\" Copyright (c) 1983, 1987, 1991, 1993
@@ -56,11 +56,11 @@ The
56function is defined for protocol-independent address-to-nodename translation. 56function is defined for protocol-independent address-to-nodename translation.
57Its functionality is a reverse conversion of 57Its functionality is a reverse conversion of
58.Xr getaddrinfo 3 , 58.Xr getaddrinfo 3 ,
59and implements similar functionality with 59and implements similar functionality to
60.Xr gethostbyaddr 3 60.Xr gethostbyaddr 3
61and 61and
62.Xr getservbyport 3 62.Xr getservbyport 3
63in more sophisticated manner. 63in a more sophisticated manner.
64.Pp 64.Pp
65This function looks up an IP address and port number provided by the 65This function looks up an IP address and port number provided by the
66caller in the DNS and system-specific database, and returns text 66caller in the DNS and system-specific database, and returns text
@@ -180,16 +180,16 @@ flags are defined in
180.Ss Extension for scoped IPv6 address 180.Ss Extension for scoped IPv6 address
181The implementation allows experimental numeric IPv6 address notation with 181The implementation allows experimental numeric IPv6 address notation with
182scope identifier. 182scope identifier.
183IPv6 link-local address will appear as string like 183IPv6 link-local address will appear as a string like
184.Dq Li fe80::1%ne0 . 184.Dq Li fe80::1%ne0 .
185Refer to 185Refer to
186.Xr getaddrinfo 3 186.Xr getaddrinfo 3
187for the notation. 187for the notation.
188.\" 188.\"
189.Sh EXAMPLES 189.Sh EXAMPLES
190The following code tries to get numeric hostname, and service name, 190The following code tries to get a numeric hostname, and service name,
191for given socket address. 191for given socket address.
192Observe that there is no hardcoded reference to particular address family. 192Observe that there is no hardcoded reference to a particular address family.
193.Bd -literal -offset indent 193.Bd -literal -offset indent
194struct sockaddr *sa; /* input */ 194struct sockaddr *sa; /* input */
195char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; 195char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV];
@@ -281,7 +281,7 @@ The implementation first appeared in WIDE Hydrangea IPv6 protocol stack kit.
281.Sh STANDARDS 281.Sh STANDARDS
282The 282The
283.Fn getaddrinfo 283.Fn getaddrinfo
284function is defined IEEE POSIX 1003.1g draft specification, 284function is defined in IEEE POSIX 1003.1g draft specification,
285and documented in 285and documented in
286.Dq Basic Socket Interface Extensions for IPv6 286.Dq Basic Socket Interface Extensions for IPv6
287.Pq RFC2553 . 287.Pq RFC2553 .
@@ -292,6 +292,6 @@ The current implementation is not thread-safe.
292The text was shamelessly copied from RFC2553. 292The text was shamelessly copied from RFC2553.
293.Pp 293.Pp
294.Ox 294.Ox
295intentionally uses different 295intentionally uses a different
296.Dv NI_MAXHOST 296.Dv NI_MAXHOST
297value from what RFC2553 suggests, to avoid buffer length handling mistakes. 297value from what RFC2553 suggests, to avoid buffer length handling mistakes.