/third_party/musl/libc-test/src/functionalext/supplement/manual/network/ |
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 = gethostbyname2("127.0.w.1", AF_INET6); in gethostbyname2_0300() [all …]
|
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_EQ("gethostbyaddre_0100", strcmp(hptr->h_name, ptr), 0); 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/optimized-routines/networking/test/ |
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/ejdb/src/bindings/ejdb2_dart/lib/ |
D | ejdb2_dart.c | 634 int64_t hptr = 0; in ejd_exec_check() local 636 EJTH(Dart_GetNativeIntegerArgument(args, 1, &hptr)); in ejd_exec_check() 639 if (hptr < 1) { in ejd_exec_check() 643 QCTX qctx = (void*) hptr; in ejd_exec_check() 863 static iwrc ejdb2_isolate_shared_open(const EJDB_OPTS *opts, EJDB2Handle **hptr) { in ejdb2_isolate_shared_open() argument 880 *hptr = h; in ejdb2_isolate_shared_open() 904 *hptr = h; in ejdb2_isolate_shared_open()
|
/third_party/boost/boost/asio/detail/impl/ |
D | socket_ops.ipp | 3429 hostent* hptr = socket_ops::gethostbyname(sptr->host, 3431 if (hptr == 0) 3453 && hints.ai_family != hptr->h_addrtype) 3457 socket_ops::freehostent(hptr); 3462 if (host != 0 && host[0] != '\0' && hptr->h_name && hptr->h_name[0] 3465 std::size_t canon_len = strlen(hptr->h_name) + 1; 3470 socket_ops::freehostent(hptr); 3473 gai_strcpy(canon, hptr->h_name, canon_len); 3477 for (char** ap = hptr->h_addr_list; *ap; ++ap) 3479 rc = gai_aistruct(&ainext, &hints, *ap, hptr->h_addrtype); [all …]
|
/third_party/boost/libs/asio/include/boost/asio/detail/impl/ |
D | socket_ops.ipp | 3429 hostent* hptr = socket_ops::gethostbyname(sptr->host, 3431 if (hptr == 0) 3453 && hints.ai_family != hptr->h_addrtype) 3457 socket_ops::freehostent(hptr); 3462 if (host != 0 && host[0] != '\0' && hptr->h_name && hptr->h_name[0] 3465 std::size_t canon_len = strlen(hptr->h_name) + 1; 3470 socket_ops::freehostent(hptr); 3473 gai_strcpy(canon, hptr->h_name, canon_len); 3477 for (char** ap = hptr->h_addr_list; *ap; ++ap) 3479 rc = gai_aistruct(&ainext, &hints, *ap, hptr->h_addrtype); [all …]
|
/third_party/e2fsprogs/misc/ |
D | fuse2fs.c | 202 unsigned char *hptr; in fuse_to_ext4_acl() local 215 hptr = (unsigned char *) (h + 1); in fuse_to_ext4_acl() 217 e = (ext4_acl_entry *) hptr; in fuse_to_ext4_acl() 225 hptr += sizeof(ext4_acl_entry); in fuse_to_ext4_acl() 231 hptr += sizeof(ext4_acl_entry_short); in fuse_to_ext4_acl() 255 unsigned char *hptr; in ext4_to_fuse_acl() local 269 hptr = (unsigned char *) (eacl + 1); in ext4_to_fuse_acl() 271 e = (ext4_acl_entry *) hptr; in ext4_to_fuse_acl() 279 hptr += sizeof(ext4_acl_entry); in ext4_to_fuse_acl() 285 hptr += sizeof(ext4_acl_entry_short); in ext4_to_fuse_acl()
|
/third_party/mksh/ |
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/ |
D | pcre2_compile.c | 1642 PCRE2_SPTR hptr = ptr + 1; in PRIV() local 1645 while (hptr < ptrend && (xc = XDIGIT(*hptr)) != 0xff) in PRIV() 1650 ptr = hptr; /* Show where */ in PRIV() 1654 hptr++; in PRIV() 1657 if (hptr == ptr + 1 || /* No hex digits */ in PRIV() 1658 hptr >= ptrend || /* Hit end of input */ in PRIV() 1659 *hptr != CHAR_RIGHT_CURLY_BRACKET) /* No } terminator */ in PRIV() 1663 ptr = hptr + 1; in PRIV()
|
/third_party/python/Modules/ |
D | socketmodule.c | 6438 const char *hptr, *pptr; local 6452 hptr = NULL; 6458 hptr = PyBytes_AS_STRING(idna); 6460 hptr = PyBytes_AsString(hobj); 6505 error = getaddrinfo(hptr, pptr, &hints, &res0);
|