| @@ -1,33 +1,33 @@ | | | @@ -1,33 +1,33 @@ |
1 | .\" $NetBSD: getaddrinfo.3,v 1.48 2009/10/02 06:49:23 cegger Exp $ | | 1 | .\" $NetBSD: getaddrinfo.3,v 1.49 2009/10/02 06:59:37 wiz 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 | .\" $OpenBSD: getaddrinfo.3,v 1.35 2004/12/21 03:40:31 jaredy Exp $ | | 3 | .\" $OpenBSD: getaddrinfo.3,v 1.35 2004/12/21 03:40:31 jaredy Exp $ |
4 | .\" | | 4 | .\" |
5 | .\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC") | | 5 | .\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC") |
6 | .\" Copyright (C) 2000, 2001 Internet Software Consortium. | | 6 | .\" Copyright (C) 2000, 2001 Internet Software Consortium. |
7 | .\" | | 7 | .\" |
8 | .\" Permission to use, copy, modify, and distribute this software for any | | 8 | .\" Permission to use, copy, modify, and distribute this software for any |
9 | .\" purpose with or without fee is hereby granted, provided that the above | | 9 | .\" purpose with or without fee is hereby granted, provided that the above |
10 | .\" copyright notice and this permission notice appear in all copies. | | 10 | .\" copyright notice and this permission notice appear in all copies. |
11 | .\" | | 11 | .\" |
12 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH | | 12 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH |
13 | .\" REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | | 13 | .\" REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY |
14 | .\" AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, | | 14 | .\" AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, |
15 | .\" INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | | 15 | .\" INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
16 | .\" LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE | | 16 | .\" LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE |
17 | .\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | | 17 | .\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
18 | .\" PERFORMANCE OF THIS SOFTWARE. | | 18 | .\" PERFORMANCE OF THIS SOFTWARE. |
19 | .\" | | 19 | .\" |
20 | .Dd November 24, 2006 | | 20 | .Dd October 2, 2009 |
21 | .Dt GETADDRINFO 3 | | 21 | .Dt GETADDRINFO 3 |
22 | .Os | | 22 | .Os |
23 | .Sh NAME | | 23 | .Sh NAME |
24 | .Nm getaddrinfo , | | 24 | .Nm getaddrinfo , |
25 | .Nm freeaddrinfo , | | 25 | .Nm freeaddrinfo , |
26 | .Nm allocaddrinfo | | 26 | .Nm allocaddrinfo |
27 | .Nd host and service name to socket address structure | | 27 | .Nd host and service name to socket address structure |
28 | .Sh SYNOPSIS | | 28 | .Sh SYNOPSIS |
29 | .In netdb.h | | 29 | .In netdb.h |
30 | .Ft int | | 30 | .Ft int |
31 | .Fn getaddrinfo "const char * restrict hostname" \ | | 31 | .Fn getaddrinfo "const char * restrict hostname" \ |
32 | "const char * restrict servname" \ | | 32 | "const char * restrict servname" \ |
33 | "const struct addrinfo * restrict hints" "struct addrinfo ** restrict res" | | 33 | "const struct addrinfo * restrict hints" "struct addrinfo ** restrict res" |