Lines Matching defs:he
1086 #define EXPECT_HOSTENT_NOT_POISONED(he) \
1088 EXPECT_NOT_POISONED(*(he)); \
1089 ASSERT_NE((void *)0, (he)->h_name); \
1090 ASSERT_NE((void *)0, (he)->h_aliases); \
1091 ASSERT_NE((void *)0, (he)->h_addr_list); \
1092 EXPECT_NOT_POISONED(strlen((he)->h_name)); \
1093 char **p = (he)->h_aliases; \
1098 char **q = (he)->h_addr_list; \
1108 struct hostent *he = gethostent();
1109 ASSERT_NE((void *)NULL, he);
1110 EXPECT_HOSTENT_NOT_POISONED(he);
1116 struct hostent *he = gethostbyname("localhost");
1117 ASSERT_NE((void *)NULL, he);
1118 EXPECT_HOSTENT_NOT_POISONED(he);
1156 struct hostent *he = gethostbyname2("localhost", AF_INET);
1157 ASSERT_NE((void *)NULL, he);
1158 EXPECT_HOSTENT_NOT_POISONED(he);
1164 struct hostent *he = gethostbyaddr(&addr, sizeof(addr), AF_INET);
1165 ASSERT_NE((void *)NULL, he);
1166 EXPECT_HOSTENT_NOT_POISONED(he);
1173 struct hostent he;
1176 int res = gethostent_r(&he, buf, sizeof(buf), &result, &err);
1188 struct hostent he;
1191 int res = gethostbyname_r("localhost", &he, buf, sizeof(buf), &result, &err);
1203 struct hostent he;
1206 int res = gethostbyname_r("bad-host-name", &he, buf, sizeof(buf), &result, &err);
1215 struct hostent he;
1218 gethostbyname_r("localhost", &he, buf, sizeof(buf), &result, &err);
1227 struct hostent he;
1230 int res = gethostbyname2_r("localhost", AF_INET, &he, buf, sizeof(buf),
1243 struct hostent he;
1248 int res = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &he, buf, sizeof(buf),