Searched refs:hptr (Results 1 - 7 of 7) sorted by relevance
/third_party/musl/libc-test/src/functionalext/supplement/manual/network/ |
H A D | gethostbyname2.c | 35 struct hostent *hptr; in gethostbyname2_0100() local 36 hptr = gethostbyname2("127.0.0.1", AF_INET); in gethostbyname2_0100() 37 if (hptr != NULL) { in gethostbyname2_0100() 41 EXPECT_STREQ("gethostbyname2_0100", hptr->h_name, "127.0.0.1"); in gethostbyname2_0100() 52 struct hostent *hptr; in gethostbyname2_0200() local 53 hptr = gethostbyname2("::1", AF_INET6); in gethostbyname2_0200() 54 if (hptr != NULL) { in gethostbyname2_0200() 58 EXPECT_STREQ("gethostbyname2_0200", hptr->h_name, "::1"); in gethostbyname2_0200() 69 struct hostent *hptr; in gethostbyname2_0300() local 70 hptr in gethostbyname2_0300() 85 struct hostent *hptr; gethostbyname2_0400() local [all...] |
H A D | gethostbyaddr.c | 29 struct hostent *hptr = NULL; in gethostbyaddre_0100() local 34 hptr = gethostbyaddr((const char *)&addr, sizeof(addr), AF_INET); in gethostbyaddre_0100() 35 if (hptr == NULL) { in gethostbyaddre_0100() 38 EXPECT_TRUE("gethostbyaddre_0100", hptr != NULL); in gethostbyaddre_0100() 39 EXPECT_STREQ("gethostbyaddre_0100", hptr->h_name, "localhost"); in gethostbyaddre_0100() 50 struct hostent *hptr = NULL; in gethostbyaddre_0200() local 53 hptr = gethostbyaddr((void *)&addr.s_addr, 16, AF_INET6); in gethostbyaddre_0200() 54 EXPECT_TRUE("gethostbyaddre_0200", hptr != NULL); in gethostbyaddre_0200()
|
/third_party/musl/libc-test/src/functionalext/supplement/network/network_gtest/ |
H A D | netdb_test.cpp | 275 hostent* hptr = gethostbyname("localhost"); in HWTEST_F() local 276 ASSERT_NE(hptr, nullptr); in HWTEST_F() 277 EXPECT_EQ(hptr->h_addrtype, AF_INET); in HWTEST_F() 281 EXPECT_TRUE(memcmp(hptr->h_addr, &hostAddr, sizeof(in_addr)) == 0); in HWTEST_F() 352 hostent* hptr = gethostbyname2("localhost", AF_INET); in HWTEST_F() local 353 ASSERT_NE(hptr, nullptr); in HWTEST_F() 354 EXPECT_EQ(hptr->h_addrtype, AF_INET); in HWTEST_F() 358 EXPECT_TRUE(memcmp(hptr->h_addr, &hostAddr, sizeof(in_addr)) == 0); in HWTEST_F() 370 hostent* hptr = nullptr; in HWTEST_F() local 375 int result = gethostbyname2_r("localhost", AF_INET, &ht, buf, buflen, &hptr, in HWTEST_F() 389 hostent* hptr = nullptr; HWTEST_F() local 408 hostent* hptr = gethostbyaddr(&addr, sizeof(addr), AF_INET); HWTEST_F() local [all...] |
/third_party/optimized-routines/networking/test/ |
H A D | chksum.c | 41 const uint16_t *may_alias hptr = ptr; in checksum_simple() local 47 sum += *hptr++; in checksum_simple() 53 sum += *(uint8_t *) hptr; in checksum_simple()
|
/third_party/mksh/ |
H A D | edit.c | 5123 char *hptr; in grabhist() local 5133 if ((hptr = *histpos()) == NULL) { in grabhist() 5139 if ((vs->linelen = strlen(hptr)) >= vs->cbufsize) in grabhist() 5141 memmove(vs->cbuf, hptr, vs->linelen); in grabhist() 5150 char *hptr; in grabsearch() local 5172 hptr = *histpos(); in grabsearch() 5173 if ((vs->linelen = strlen(hptr)) >= vs->cbufsize) in grabsearch() 5175 memmove(vs->cbuf, hptr, vs->linelen); in grabsearch()
|
/third_party/pcre2/pcre2/src/ |
H A D | pcre2_compile.c | 1646 PCRE2_SPTR hptr = ptr + 1; in check_escape() local 1649 while (hptr < ptrend && (xc = XDIGIT(*hptr)) != 0xff) in check_escape() 1654 ptr = hptr; /* Show where */ in check_escape() 1655 break; /* *hptr != } will cause another break below */ in check_escape() 1658 hptr++; in check_escape() 1661 if (hptr == ptr + 1 || /* No hex digits */ in check_escape() 1662 hptr >= ptrend || /* Hit end of input */ in check_escape() 1663 *hptr != CHAR_RIGHT_CURLY_BRACKET) /* No } terminator */ in check_escape() 1667 ptr = hptr in check_escape() [all...] |
/third_party/python/Modules/ |
H A D | socketmodule.c | 6544 const char *hptr, *pptr; local 6558 hptr = NULL; 6564 hptr = PyBytes_AS_STRING(idna); 6566 hptr = PyBytes_AsString(hobj); 6611 error = getaddrinfo(hptr, pptr, &hints, &res0);
|
Completed in 24 milliseconds