Home
last modified time | relevance | path

Searched refs:prots (Results 1 – 10 of 10) sorted by relevance

/third_party/musl/src/network/
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()
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()
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()
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/
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()
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()
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()
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/openssl/test/ssl-tests/
Dprotocol_version.pm345 my @prots = @$protocols;
363 && $prots[$orig_c_max] eq "TLSv1.3"
375 if ($prots[$c_max] eq "TLSv1.3") {
/third_party/openssl/ssl/statem/
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()