Home
last modified time | relevance | path

Searched refs:prots (Results 1 - 13 of 13) sorted by relevance

/third_party/musl/src/network/
H A Dgetservbyport_r.c10 int getservbyport_r(int port, const char *prots, in getservbyport_r() argument
19 if (!prots) { in getservbyport_r()
34 if (strcmp(prots, "tcp") && strcmp(prots, "udp")) return EINVAL; in getservbyport_r()
37 se->s_proto = (char *)prots; in getservbyport_r()
45 strcmp(prots, "udp") ? 0 : NI_DGRAM)) { in getservbyport_r()
H A Dgetservbyname_r.c13 int getservbyname_r(const char *name, const char *prots, in getservbyname_r() argument
32 if (!prots) proto = 0; in getservbyname_r()
33 else if (!strcmp(prots, "tcp")) proto = IPPROTO_TCP; in getservbyname_r()
34 else if (!strcmp(prots, "udp")) proto = IPPROTO_UDP; in getservbyname_r()
H A Dgetservbyport.c4 struct servent *getservbyport(int port, const char *prots) in getservbyport() argument
9 if (getservbyport_r(port, prots, &se, (void *)buf, sizeof buf, &res)) in getservbyport()
H A Dgetservbyname.c4 struct servent *getservbyname(const char *name, const char *prots) in getservbyname() argument
9 if (getservbyname_r(name, prots, &se, (void *)buf, sizeof buf, &res)) in getservbyname()
/third_party/musl/porting/liteos_a/user/src/network/
H A Dgetservbyport_r.c10 int getservbyport_r(int port, const char *prots, in getservbyport_r() argument
19 if (!prots) { in getservbyport_r()
34 if (strcmp(prots, "tcp") && strcmp(prots, "udp")) return EINVAL; in getservbyport_r()
37 se->s_proto = (char *)prots; in getservbyport_r()
45 strcmp(prots, "udp") ? 0 : NI_DGRAM)) { in getservbyport_r()
H A Dgetservbyname_r.c13 int getservbyname_r(const char *name, const char *prots, in getservbyname_r() argument
32 if (!prots) proto = 0; in getservbyname_r()
33 else if (!strcmp(prots, "tcp")) proto = IPPROTO_TCP; in getservbyname_r()
34 else if (!strcmp(prots, "udp")) proto = IPPROTO_UDP; in getservbyname_r()
H A Dgetservbyport.c4 struct servent *getservbyport(int port, const char *prots) in getservbyport() argument
9 if (getservbyport_r(port, prots, &se, (void *)buf, sizeof buf, &res)) in getservbyport()
H A Dgetservbyname.c4 struct servent *getservbyname(const char *name, const char *prots) in getservbyname() argument
9 if (getservbyname_r(name, prots, &se, (void *)buf, sizeof buf, &res)) in getservbyname()
/third_party/curl/tests/libtest/
H A Dlib1597.c52 static const struct pair prots[] = { in test() local
99 for(i = 0; prots[i].in; i++) { in test()
100 result = curl_easy_setopt(curl, CURLOPT_PROTOCOLS_STR, prots[i].in); in test()
101 if(result != *prots[i].exp) { in test()
103 prots[i].in, result); in test()
/third_party/openssl/test/ssl-tests/
H A Dprotocol_version.pm345 my @prots = @$protocols;
363 && $prots[$orig_c_max] eq "TLSv1.3"
375 if ($prots[$c_max] eq "TLSv1.3") {
/third_party/curl/docs/cmdline-opts/
H A Dgen.pl918 my %prots;
922 $prots{$p}++;
925 for(sort keys %prots) {
926 printf "$_ (%d options)\n", $prots{$_};
/third_party/node/deps/openssl/openssl/ssl/statem/
H A Dextensions_clnt.c853 PACKET prots, alpnpkt; in tls_construct_ctos_early_data() local
856 if (!PACKET_buf_init(&prots, s->ext.alpn, s->ext.alpn_len)) { in tls_construct_ctos_early_data()
860 while (PACKET_get_length_prefixed_1(&prots, &alpnpkt)) { in tls_construct_ctos_early_data()
/third_party/openssl/ssl/statem/
H A Dextensions_clnt.c853 PACKET prots, alpnpkt; in tls_construct_ctos_early_data() local
856 if (!PACKET_buf_init(&prots, s->ext.alpn, s->ext.alpn_len)) { in tls_construct_ctos_early_data()
860 while (PACKET_get_length_prefixed_1(&prots, &alpnpkt)) { in tls_construct_ctos_early_data()

Completed in 10 milliseconds