Home
last modified time | relevance | path

Searched refs:hp (Results 1 – 25 of 283) sorted by relevance

12345678910>>...12

/third_party/mksh/
Dhistrap.c93 char **hfirst, **hlast, **hp, *editor = NULL; in c_fc() local
184 hp = first ? hist_get(first, false, false) : in c_fc()
186 if (!hp) in c_fc()
190 strdupx(line, *hp, ATEMP); in c_fc()
201 for (s = *hp; (s1 = strstr(s, pat)) && in c_fc()
272 for (hp = rflag ? hlast : hfirst; in c_fc()
273 hp >= hfirst && hp <= hlast; hp += rflag ? -1 : 1) { in c_fc()
277 (unsigned long)(histptr - hp)); in c_fc()
280 s = *hp; in c_fc()
300 for (hp = rflag ? hlast : hfirst; in c_fc()
[all …]
/third_party/python/Modules/
Dgetaddrinfo.c493 struct hostent *hp; local
501 hp = getipnodebyaddr(addr, gai_afd->a_addrlen, gai_afd->a_af, &h_error);
503 hp = gethostbyaddr(addr, gai_afd->a_addrlen, AF_INET);
505 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) {
506 GET_AI(cur, gai_afd, hp->h_addr_list[0], port);
507 GET_CANONNAME(cur, hp->h_name);
512 if (hp)
513 freehostent(hp);
521 if (hp)
522 freehostent(hp);
[all …]
Dgetnameinfo.c100 struct hostent *hp; local
181 hp = getipnodebyaddr(addr, gni_afd->a_addrlen, gni_afd->a_af, &h_error);
183 hp = gethostbyaddr(addr, gni_afd->a_addrlen, gni_afd->a_af);
187 if (hp) {
189 p = strchr(hp->h_name, '.');
192 if (strlen(hp->h_name) > hostlen) {
194 freehostent(hp);
198 strcpy(host, hp->h_name);
200 freehostent(hp);
/third_party/ltp/lib/
Dtst_hugepage.c23 unsigned long tst_reserve_hugepages(struct tst_hugepage *hp) in tst_reserve_hugepages() argument
33 if (hp->policy == TST_NEEDS) in tst_reserve_hugepages()
42 tst_hugepages = hp->number; in tst_reserve_hugepages()
44 if (hp->number == TST_NO_HUGEPAGES) { in tst_reserve_hugepages()
51 if (hp->policy == TST_NEEDS) { in tst_reserve_hugepages()
76 if (hp->policy == TST_NEEDS) { in tst_reserve_hugepages()
78 if (hp->number > free_hpages) in tst_reserve_hugepages()
81 free_hpages, hp->number); in tst_reserve_hugepages()
/third_party/libwebsockets/lib/misc/
Dieeehalfprecision.c88 lws_singles2halfp(uint16_t *hp, uint32_t x) in lws_singles2halfp() argument
96 *hp = (uint16_t)(x >> 16); in lws_singles2halfp()
106 *hp = (uint16_t) (xs >> 16); in lws_singles2halfp()
112 *hp = (uint16_t) ((xs >> 16) | 0x7C00u); // Signed Inf in lws_singles2halfp()
116 *hp = (uint16_t) 0xFE00u; // NaN, only 1st mantissa bit set in lws_singles2halfp()
128 *hp = (uint16_t) ((xs >> 16) | 0x7C00u); // Signed Inf in lws_singles2halfp()
148 *hp = hs | hm; in lws_singles2halfp()
158 *hp = (uint16_t)((hs | he | hm) + (uint16_t)1u); in lws_singles2halfp()
160 *hp = hs | he | hm; // No rounding in lws_singles2halfp()
/third_party/ltp/testcases/network/tcp_cmds/sendfile/
Dtestsf_c.c37 struct addrinfo *hp; in main() local
73 if ((gai = getaddrinfo(argv[1], NULL, &hints, &hp)) != 0) { in main()
77 if (!hp || !hp->ai_addr || hp->ai_addr->sa_family != AFI) { in main()
83 memcpy(&sai, hp->ai_addr, hp->ai_addrlen); in main()
Dtestsf_s.c34 struct addrinfo *hp; in main() local
59 if ((gai = getaddrinfo(argv[1], NULL, &hints, &hp)) != 0) { in main()
62 if (!hp || !hp->ai_addr || hp->ai_addr->sa_family != AFI) { in main()
67 memcpy(&sa, hp->ai_addr, hp->ai_addrlen); in main()
/third_party/lzma/CPP/7zip/UI/Common/
DHashCalc.cpp1064 const CHashPair &hp = HashPairs[index]; in Z7_COM7F_IMF() local
1065 if (hp.Hash.Size() > 0) in Z7_COM7F_IMF()
1067 *data = hp.Hash; in Z7_COM7F_IMF()
1068 *dataSize = (UInt32)hp.Hash.Size(); in Z7_COM7F_IMF()
1159 CHashPair &hp = HashPairs[index]; in Z7_COM7F_IMF() local
1164 prop = hp.IsDir(); in Z7_COM7F_IMF()
1170 hp.Get_UString_Path(path); in Z7_COM7F_IMF()
1181 if (hp.Size_from_Disk_Defined) in Z7_COM7F_IMF()
1182 prop = (UInt64)hp.Size_from_Disk; in Z7_COM7F_IMF()
1183 else if (hp.Size_from_Arc_Defined) in Z7_COM7F_IMF()
[all …]
/third_party/curl/lib/
Dsocks.c366 struct Curl_addrinfo *hp = NULL; in do_SOCKS4() local
372 hp = dns->addr; in do_SOCKS4()
375 while(hp && (hp->ai_family != AF_INET)) in do_SOCKS4()
376 hp = hp->ai_next; in do_SOCKS4()
378 if(hp) { in do_SOCKS4()
381 Curl_printable_address(hp, buf, sizeof(buf)); in do_SOCKS4()
383 saddr_in = (struct sockaddr_in *)(void *)hp->ai_addr; in do_SOCKS4()
400 if(!hp) in do_SOCKS4()
838 struct Curl_addrinfo *hp = NULL; in do_SOCKS5() local
840 hp = dns->addr; in do_SOCKS5()
[all …]
/third_party/ffmpeg/libavcodec/
Dvp9mvs.c236 static av_always_inline int read_mv_component(VP9TileData *td, int idx, int hp) in read_mv_component() argument
258 if (hp) { in read_mv_component()
259 bit = vp56_rac_get_prob(td->c, s->prob.p.mv_comp[idx].hp); in read_mv_component()
260 td->counts.mv_comp[idx].hp[bit]++; in read_mv_component()
266 td->counts.mv_comp[idx].hp[1]++; in read_mv_component()
276 if (hp) { in read_mv_component()
299 int hp; in ff_vp9_fill_mv() local
306 !(hp = s->s.h.highprecisionmvs && in ff_vp9_fill_mv()
327 mv[0].y += read_mv_component(td, 0, hp); in ff_vp9_fill_mv()
329 mv[0].x += read_mv_component(td, 1, hp); in ff_vp9_fill_mv()
[all …]
/third_party/ltp/testcases/network/multicast/mc_opts/
Dmc_verify_opts_error.c22 struct hostent *hp, *gethostbyname(); in main() local
39 hp = gethostbyname(argv[1]); in main()
40 if (hp) in main()
41 memcpy(&simr.s_addr, hp->h_addr, hp->h_length); in main()
Dmc_verify_opts.c28 struct hostent *hp, *gethostbyname(); in main() local
47 hp = gethostbyname(argv[1]); in main()
48 if (hp) in main()
49 memcpy(&simr.imr_interface.s_addr, hp->h_addr, hp->h_length); in main()
/third_party/ltp/testcases/network/rpc/basic_tests/rpc01/
Drpc1.c26 struct hostent *hp; in main() local
89 hp = gethostbyname(server); in main()
90 if (hp == NULL) { in main()
96 memcpy(&server_sin.sin_addr, hp->h_addr, sizeof(hp->h_addr)); in main()
104 if ((hp = gethostbyname(host_name)) != NULL) in main()
105 host_address = (long)*((int *)hp->h_addr_list[0]); in main()
/third_party/python/Modules/_decimal/libmpdec/
Dtranspose.c79 mpd_uint_t *readbuf, *writebuf, *hp; in swap_halfrows_pow2() local
119 hp = matrix + hn*cols/2; in swap_halfrows_pow2()
120 memcpy(readbuf, hp+offset, stride*(sizeof *readbuf)); in swap_halfrows_pow2()
124 hp = matrix + next*cols/2; in swap_halfrows_pow2()
128 memcpy(readbuf, hp+offset, stride*(sizeof *readbuf)); in swap_halfrows_pow2()
129 memcpy(hp+offset, writebuf, stride*(sizeof *writebuf)); in swap_halfrows_pow2()
135 hp = matrix + next*cols/2; in swap_halfrows_pow2()
139 memcpy(hp+offset, writebuf, stride*(sizeof *writebuf)); in swap_halfrows_pow2()
/third_party/ffmpeg/libavfilter/
Daf_aexciter.c32 double hp[5], lp[5]; member
111 p->hp[0] =-a1 / a0; in set_params()
112 p->hp[1] =-a2 / a0; in set_params()
113 p->hp[2] = b0 / a0; in set_params()
114 p->hp[3] = b1 / a0; in set_params()
115 p->hp[4] = b2 / a0; in set_params()
148 proc = bprocess(proc, p->hp, &p->hw[0][0], &p->hw[0][1]); in distortion_process()
149 proc = bprocess(proc, p->hp, &p->hw[1][0], &p->hw[1][1]); in distortion_process()
161 proc = bprocess(proc, p->hp, &p->hw[2][0], &p->hw[2][1]); in distortion_process()
162 proc = bprocess(proc, p->hp, &p->hw[3][0], &p->hw[3][1]); in distortion_process()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/
Drpc_clnttcp_create.c56 struct hostent *hp = NULL; in main() local
60 if ((hp = gethostbyname(argc[1])) == NULL) { in main()
65 memcpy((caddr_t) & server_addr.sin_addr, hp->h_addr, hp->h_length); in main()
Drpc_clnttcp_create_stress.c57 struct hostent *hp = NULL; in main() local
64 if ((hp = gethostbyname(argc[1])) == NULL) { in main()
69 memcpy((caddr_t) & server_addr.sin_addr, hp->h_addr, hp->h_length); in main()
Drpc_clnttcp_create_limits.c67 struct hostent *hp = NULL; in main() local
71 if ((hp = gethostbyname(argc[1])) == NULL) { in main()
76 memcpy((caddr_t) & server_addr.sin_addr, hp->h_addr, hp->h_length); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_create/
Drpc_clntudp_create.c56 struct hostent *hp = NULL; in main() local
61 if ((hp = gethostbyname(argc[1])) == NULL) { in main()
69 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
Drpc_clntudp_create_stress.c57 struct hostent *hp = NULL; in main() local
65 if ((hp = gethostbyname(argc[1])) == NULL) { in main()
73 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_bufcreate/
Drpc_clntudp_bufcreate.c56 struct hostent *hp = NULL; in main() local
61 if ((hp = gethostbyname(argc[1])) == NULL) { in main()
69 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
Drpc_clntudp_bufcreate_limits.c67 struct hostent *hp = NULL; in main() local
72 if ((hp = gethostbyname(argc[1])) == NULL) { in main()
80 bcopy(hp->h_addr, (caddr_t) & server_addr.sin_addr, hp->h_length); in main()
/third_party/curl/tests/unit/
Dunit1305.c45 static struct Curl_hash hp; variable
57 Curl_init_dnscache(&hp, 7); in unit_setup()
68 Curl_hash_destroy(&hp); in unit_stop()
126 nodep = Curl_hash_add(&hp, data_key, key_len + 1, data_node);
/third_party/libwebsockets/lib/misc/lwsac/
Dlwsac.c99 size_t ofs, alloc, al, hp; in _lwsac_use() local
132 hp = sizeof(*bf); /* always need the normal header part... */ in _lwsac_use()
134 hp += sizeof(struct lwsac_head); in _lwsac_use()
137 alloc = LWSAC_CHUNK_SIZE + hp; in _lwsac_use()
139 alloc = chunk_size + hp; in _lwsac_use()
146 if (al >= alloc - hp) in _lwsac_use()
147 alloc = al + hp; in _lwsac_use()
/third_party/ltp/testcases/network/multicast/mc_commo/
Dmc_recv.c29 struct hostent *hp, *gethostbyname(); in main() local
48 if ((hp = gethostbyname(argv[2]))) in main()
49 memcpy(&imr.imr_interface.s_addr, hp->h_addr, hp->h_length); in main()

12345678910>>...12