diff options
author | jmc <> | 2003-05-01 19:10:09 +0000 |
---|---|---|
committer | jmc <> | 2003-05-01 19:10:09 +0000 |
commit | 4fee542bdc3c7525d3cdec0f32496a4c4c857c2b (patch) | |
tree | 136ea65dbdc5dbe9fd99b800986f8865ac130e5e /src/lib/libc/net/getnameinfo.3 | |
parent | b0b363c41fb5798849f7ca119b2c07c293a9d690 (diff) | |
download | openbsd-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.3 | 16 |
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 | |||
56 | function is defined for protocol-independent address-to-nodename translation. | 56 | function is defined for protocol-independent address-to-nodename translation. |
57 | Its functionality is a reverse conversion of | 57 | Its functionality is a reverse conversion of |
58 | .Xr getaddrinfo 3 , | 58 | .Xr getaddrinfo 3 , |
59 | and implements similar functionality with | 59 | and implements similar functionality to |
60 | .Xr gethostbyaddr 3 | 60 | .Xr gethostbyaddr 3 |
61 | and | 61 | and |
62 | .Xr getservbyport 3 | 62 | .Xr getservbyport 3 |
63 | in more sophisticated manner. | 63 | in a more sophisticated manner. |
64 | .Pp | 64 | .Pp |
65 | This function looks up an IP address and port number provided by the | 65 | This function looks up an IP address and port number provided by the |
66 | caller in the DNS and system-specific database, and returns text | 66 | caller 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 |
181 | The implementation allows experimental numeric IPv6 address notation with | 181 | The implementation allows experimental numeric IPv6 address notation with |
182 | scope identifier. | 182 | scope identifier. |
183 | IPv6 link-local address will appear as string like | 183 | IPv6 link-local address will appear as a string like |
184 | .Dq Li fe80::1%ne0 . | 184 | .Dq Li fe80::1%ne0 . |
185 | Refer to | 185 | Refer to |
186 | .Xr getaddrinfo 3 | 186 | .Xr getaddrinfo 3 |
187 | for the notation. | 187 | for the notation. |
188 | .\" | 188 | .\" |
189 | .Sh EXAMPLES | 189 | .Sh EXAMPLES |
190 | The following code tries to get numeric hostname, and service name, | 190 | The following code tries to get a numeric hostname, and service name, |
191 | for given socket address. | 191 | for given socket address. |
192 | Observe that there is no hardcoded reference to particular address family. | 192 | Observe that there is no hardcoded reference to a particular address family. |
193 | .Bd -literal -offset indent | 193 | .Bd -literal -offset indent |
194 | struct sockaddr *sa; /* input */ | 194 | struct sockaddr *sa; /* input */ |
195 | char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; | 195 | char 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 |
282 | The | 282 | The |
283 | .Fn getaddrinfo | 283 | .Fn getaddrinfo |
284 | function is defined IEEE POSIX 1003.1g draft specification, | 284 | function is defined in IEEE POSIX 1003.1g draft specification, |
285 | and documented in | 285 | and 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. | |||
292 | The text was shamelessly copied from RFC2553. | 292 | The text was shamelessly copied from RFC2553. |
293 | .Pp | 293 | .Pp |
294 | .Ox | 294 | .Ox |
295 | intentionally uses different | 295 | intentionally uses a different |
296 | .Dv NI_MAXHOST | 296 | .Dv NI_MAXHOST |
297 | value from what RFC2553 suggests, to avoid buffer length handling mistakes. | 297 | value from what RFC2553 suggests, to avoid buffer length handling mistakes. |