diff options
Diffstat (limited to 'src/lib/libc/net/gethostbyname.3')
-rw-r--r-- | src/lib/libc/net/gethostbyname.3 | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/lib/libc/net/gethostbyname.3 b/src/lib/libc/net/gethostbyname.3 index f1353288c5..94a848eecc 100644 --- a/src/lib/libc/net/gethostbyname.3 +++ b/src/lib/libc/net/gethostbyname.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: gethostbyname.3,v 1.15 2000/04/18 03:01:31 aaron Exp $ | 1 | .\" $OpenBSD: gethostbyname.3,v 1.16 2000/12/24 00:30:56 aaron Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 1983, 1987, 1991, 1993 | 3 | .\" Copyright (c) 1983, 1987, 1991, 1993 |
4 | .\" The Regents of the University of California. All rights reserved. | 4 | .\" The Regents of the University of California. All rights reserved. |
@@ -68,10 +68,8 @@ The | |||
68 | .Fn gethostbyname | 68 | .Fn gethostbyname |
69 | and | 69 | and |
70 | .Fn gethostbyaddr | 70 | .Fn gethostbyaddr |
71 | functions | 71 | functions each return a pointer to an object with the following structure |
72 | each return a pointer to an object with the | 72 | describing an internet host referenced by name or by address, respectively. |
73 | following structure describing an internet host | ||
74 | referenced by name or by address, respectively. | ||
75 | This structure contains either information obtained from the name server (i.e., | 73 | This structure contains either information obtained from the name server (i.e., |
76 | .Xr resolver 3 | 74 | .Xr resolver 3 |
77 | and | 75 | and |
@@ -140,8 +138,7 @@ The only address family currently supported is | |||
140 | .Pp | 138 | .Pp |
141 | The | 139 | The |
142 | .Fn sethostent | 140 | .Fn sethostent |
143 | function | 141 | function may be used to request the use of a connected |
144 | may be used to request the use of a connected | ||
145 | .Tn TCP | 142 | .Tn TCP |
146 | socket for queries. | 143 | socket for queries. |
147 | If the | 144 | If the |
@@ -159,8 +156,7 @@ datagrams. | |||
159 | .Pp | 156 | .Pp |
160 | The | 157 | The |
161 | .Fn endhostent | 158 | .Fn endhostent |
162 | function | 159 | function closes the |
163 | closes the | ||
164 | .Tn TCP | 160 | .Tn TCP |
165 | connection. | 161 | connection. |
166 | .Pp | 162 | .Pp |
@@ -239,13 +235,11 @@ re-opening the file if necessary. | |||
239 | .Pp | 235 | .Pp |
240 | The | 236 | The |
241 | .Fn sethostent | 237 | .Fn sethostent |
242 | function | 238 | function opens and/or rewinds the file |
243 | opens and/or rewinds the file | ||
244 | .Pa /etc/hosts . | 239 | .Pa /etc/hosts . |
245 | If the | 240 | If the |
246 | .Fa stayopen | 241 | .Fa stayopen |
247 | argument is non-zero, | 242 | argument is non-zero, the file will not be closed after each call to |
248 | the file will not be closed after each call to | ||
249 | .Fn gethostbyname , | 243 | .Fn gethostbyname , |
250 | .Fn gethostbyname2 , | 244 | .Fn gethostbyname2 , |
251 | or | 245 | or |
@@ -253,8 +247,7 @@ or | |||
253 | .Pp | 247 | .Pp |
254 | The | 248 | The |
255 | .Fn endhostent | 249 | .Fn endhostent |
256 | function | 250 | function closes the file. |
257 | closes the file. | ||
258 | .Sh HISTORY | 251 | .Sh HISTORY |
259 | The | 252 | The |
260 | .Fn herror | 253 | .Fn herror |