summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/getaddrinfo.3
diff options
context:
space:
mode:
authorderaadt <>1999-07-03 20:26:55 +0000
committerderaadt <>1999-07-03 20:26:55 +0000
commitfa1ff4d7c9e3e11ade89bbcf0fdb6d4a24cc8eae (patch)
tree0e20e61bfdadc60456daf40355efcd3f27316282 /src/lib/libc/net/getaddrinfo.3
parentc078dc2c32bc3dbb78efe49ded77e3dbf16e00c6 (diff)
downloadopenbsd-fa1ff4d7c9e3e11ade89bbcf0fdb6d4a24cc8eae.tar.gz
openbsd-fa1ff4d7c9e3e11ade89bbcf0fdb6d4a24cc8eae.tar.bz2
openbsd-fa1ff4d7c9e3e11ade89bbcf0fdb6d4a24cc8eae.zip
cleaner
Diffstat (limited to 'src/lib/libc/net/getaddrinfo.3')
-rw-r--r--src/lib/libc/net/getaddrinfo.312
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libc/net/getaddrinfo.3 b/src/lib/libc/net/getaddrinfo.3
index cff60d9d4e..5d644ba549 100644
--- a/src/lib/libc/net/getaddrinfo.3
+++ b/src/lib/libc/net/getaddrinfo.3
@@ -30,7 +30,7 @@
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" From: @(#)gethostbyname.3 8.4 (Berkeley) 5/25/95 32.\" From: @(#)gethostbyname.3 8.4 (Berkeley) 5/25/95
33.\" $Id: getaddrinfo.3,v 1.1 1999/07/03 20:22:21 deraadt Exp $ 33.\" $Id: getaddrinfo.3,v 1.2 1999/07/03 20:26:55 deraadt Exp $
34.\" 34.\"
35.Dd May 25, 1995 35.Dd May 25, 1995
36.Dt GETADDRINFO 3 36.Dt GETADDRINFO 3
@@ -54,11 +54,11 @@
54The 54The
55.Fn getaddrinfo 55.Fn getaddrinfo
56function is defined for protocol-independent nodename-to-address translation. 56function is defined for protocol-independent nodename-to-address translation.
57It performs functionality of 57It performs the functionality of
58.Xr gethostbyname 3 58.Xr gethostbyname 3
59and 59and
60.Xr getservbyname 3 , 60.Xr getservbyname 3 ,
61in more sophisticated manner. 61but in a more sophisticated manner.
62.Pp 62.Pp
63The addrinfo structure is defined as a result of including the 63The addrinfo structure is defined as a result of including the
64.Li <netdb.h> 64.Li <netdb.h>
@@ -256,7 +256,7 @@ Otherwise an error of
256.Dv EAI_NONAME 256.Dv EAI_NONAME
257is returned. 257is returned.
258This flag prevents any type of name resolution service (e.g., the DNS) 258This flag prevents any type of name resolution service (e.g., the DNS)
259from being called. 259from being called.
260.Pp 260.Pp
261All of the information returned by 261All of the information returned by
262.Fn getaddrinfo 262.Fn getaddrinfo
@@ -299,7 +299,7 @@ indicate an unknown error.
299.It Pa /etc/resolv.conf 299.It Pa /etc/resolv.conf
300.El 300.El
301.Sh DIAGNOSTICS 301.Sh DIAGNOSTICS
302Error return status from 302Error return status from
303.Fn getaddrinfo 303.Fn getaddrinfo
304is zero on success and non-zero on errors. 304is zero on success and non-zero on errors.
305Non-zero error codes are defined in 305Non-zero error codes are defined in
@@ -307,7 +307,7 @@ Non-zero error codes are defined in
307and as follows: 307and as follows:
308.Pp 308.Pp
309.Bl -tag -width EAI_ADDRFAMILY -compact 309.Bl -tag -width EAI_ADDRFAMILY -compact
310.It Dv EAI_ADDRFAMILY 310.It Dv EAI_ADDRFAMILY
311address family for nodename not supported 311address family for nodename not supported
312.It Dv EAI_AGAIN 312.It Dv EAI_AGAIN
313temporary failure in name resolution 313temporary failure in name resolution