Lines Matching refs:ent
16 struct hostent *ent; in do_test() local
21 ent = gethostbyaddr (&hostaddr, sizeof (hostaddr), AF_INET); in do_test()
22 if (ent == NULL) in do_test()
27 printf ("h_name: %s\n", ent->h_name); in do_test()
29 if (ent->h_aliases == NULL) in do_test()
32 printf ("h_aliases[0]: %s\n", ent->h_aliases[0]); in do_test()
35 ent = gethostbyname ("127.0.0.1"); in do_test()
36 if (ent == NULL) in do_test()
44 printf ("h_name: %s\n", ent->h_name); in do_test()
45 if (strcmp (ent->h_name, "127.0.0.1") != 0) in do_test()
51 if (ent->h_aliases == NULL) in do_test()
58 printf ("h_aliases[0]: %s\n", ent->h_aliases[0]); in do_test()
59 result |= ent->h_aliases[0] != NULL; in do_test()