Lines Matching refs:he
959 #define EXPECT_HOSTENT_NOT_POISONED(he) \ argument
961 EXPECT_NOT_POISONED(*(he)); \
962 ASSERT_NE((void *) 0, (he)->h_name); \
963 ASSERT_NE((void *) 0, (he)->h_aliases); \
964 ASSERT_NE((void *) 0, (he)->h_addr_list); \
965 EXPECT_NOT_POISONED(strlen((he)->h_name)); \
966 char **p = (he)->h_aliases; \
971 char **q = (he)->h_addr_list; \
980 struct hostent *he = gethostent(); in TEST() local
981 ASSERT_NE((void *)NULL, he); in TEST()
982 EXPECT_HOSTENT_NOT_POISONED(he); in TEST()
988 struct hostent *he = gethostbyname("localhost"); in TEST() local
989 ASSERT_NE((void *)NULL, he); in TEST()
990 EXPECT_HOSTENT_NOT_POISONED(he); in TEST()
1066 struct hostent *he = gethostbyname2("localhost", AF_INET); in TEST() local
1067 ASSERT_NE((void *)NULL, he); in TEST()
1068 EXPECT_HOSTENT_NOT_POISONED(he); in TEST()
1074 struct hostent *he = gethostbyaddr(&addr, sizeof(addr), AF_INET); in TEST() local
1075 ASSERT_NE((void *)NULL, he); in TEST()
1076 EXPECT_HOSTENT_NOT_POISONED(he); in TEST()
1081 struct hostent he; in TEST() local
1084 int res = gethostent_r(&he, buf, sizeof(buf), &result, &err); in TEST()
1094 struct hostent he; in TEST() local
1097 int res = gethostbyname_r("localhost", &he, buf, sizeof(buf), &result, &err); in TEST()
1107 struct hostent he; in TEST() local
1110 int res = gethostbyname_r("bad-host-name", &he, buf, sizeof(buf), &result, &err); in TEST()
1117 struct hostent he; in TEST() local
1120 int res = gethostbyname_r("localhost", &he, buf, sizeof(buf), &result, &err); in TEST()
1127 struct hostent he; in TEST() local
1130 int res = gethostbyname2_r("localhost", AF_INET, &he, buf, sizeof(buf), in TEST()
1141 struct hostent he; in TEST() local
1146 int res = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &he, buf, sizeof(buf), in TEST()