summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libc/net/getaddrinfo.37
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libc/net/getaddrinfo.3 b/src/lib/libc/net/getaddrinfo.3
index fd9f7fece5..b82dda5937 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.39 2005/01/29 00:49:47 jmc Exp $ 1.\" $OpenBSD: getaddrinfo.3,v 1.40 2005/03/12 00:02:07 claudio 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")
@@ -279,6 +279,11 @@ structure created by a call to
279returns zero on success or one of the error codes listed in 279returns zero on success or one of the error codes listed in
280.Xr gai_strerror 3 280.Xr gai_strerror 3
281if an error occurs. 281if an error occurs.
282If an error occurs, no memory is allocated by
283.Fn getaddrinfo ,
284therefore it is not necessary to release the
285.Li addrinfo
286structure(s).
282.Sh EXAMPLES 287.Sh EXAMPLES
283The following code tries to connect to 288The following code tries to connect to
284.Dq Li www.kame.net 289.Dq Li www.kame.net