1 /* Test case by Sam Varshavchik <mrsam@courier-mta.com>. */
10 struct addrinfo hints, *res;
14 for (i = 0; i < 100; i++)
16 memset (&hints, 0, sizeof (hints));
17 hints.ai_family = PF_UNSPEC;
18 hints.ai_socktype = SOCK_STREAM;
20 ret = getaddrinfo ("www.gnu.org", "http", &hints, &res);
24 printf ("%s\n", gai_strerror (ret));