Home
last modified time | relevance | path

Searched refs:sk1 (Results 1 – 24 of 24) sorted by relevance

/third_party/ltp/utils/sctp/func_tests/
Dtest_autoclose.c65 int sk1, sk2; in main() local
91 sk1 = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
95 test_enable_assoc_change(sk1); in main()
99 test_bind(sk1, &loop1.sa, sizeof(loop1)); in main()
109 test_setsockopt(sk1, SCTP_AUTOCLOSE, &autoclose, sizeof(autoclose)); in main()
121 test_sendmsg(sk1, &outmessage, 0, strlen(message)+1); in main()
139 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
153 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
167 close(sk1); in main()
Dtest_sctp_sendrecvmsg.c76 int sk1, sk2; in main() local
128 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
134 test_setsockopt(sk1, SCTP_MAXSEG, &val, sizeof(val)); in main()
141 test_setsockopt(sk1, SCTP_EVENTS, &subscribe, sizeof(subscribe)); in main()
145 test_bind(sk1, &loop1.sa, sizeof(loop1)); in main()
172 test_sctp_sendmsg(sk1, message, strlen(message) + 1, in main()
206 error = test_sctp_recvmsg(sk1, big_buffer, buflen, in main()
232 error = getsockopt(sk1, IPPROTO_SCTP, SCTP_STATUS, &gstatus, &len); in main()
246 test_sctp_sendmsg(sk1, fillmsg, gstatus.sstat_rwnd+RWND_SLOP, in main()
251 test_sctp_sendmsg(sk1, ttlmsg, strlen(ttlmsg) + 1, in main()
[all …]
Dtest_fragments.c78 int sk1, sk2; in main() local
131 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
135 test_enable_assoc_change(sk1); in main()
139 test_bind(sk1, &loop1.sa, sizeof(loop1)); in main()
168 test_sendmsg(sk1, &outmessage, 0, msg_len); in main()
192 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
209 test_setsockopt(sk1, SCTP_DISABLE_FRAGMENTS, &disable_frag, in main()
217 error = test_getsockopt(sk1, SCTP_DISABLE_FRAGMENTS, &disable_frag, in main()
233 error = sendmsg(sk1, &outmessage, 0); in main()
242 test_setsockopt(sk1, SCTP_DISABLE_FRAGMENTS, &disable_frag, in main()
[all …]
Dtest_1_to_1_initmsg_connect.c42 int sk1, sk2, sk3, msglen; in test_sctp() local
52 sk1 = SAFE_SOCKET(PF_INET, SOCK_STREAM, IPPROTO_SCTP); in test_sctp()
66 SAFE_SETSOCKOPT(sk1, SOL_SCTP, SCTP_INITMSG, &sinmsg, len); in test_sctp()
74 TEST(connect(sk1, (struct sockaddr *) &lstn_addr, len)); in test_sctp()
78 SAFE_CLOSE(sk1); in test_sctp()
88 TEST(sctp_sendmsg(sk1, message, msglen, (struct sockaddr *)&lstn_addr, in test_sctp()
105 SAFE_CLOSE(sk1); in test_sctp()
Dtest_timetolive.c93 int sk1, sk2; in main() local
150 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
162 test_setsockopt(sk1, SCTP_MAXSEG, &val, sizeof(val)); in main()
169 test_setsockopt(sk1, SCTP_EVENTS, &subscribe, sizeof(subscribe)); in main()
173 test_bind(sk1, &loop1.sa, sizeof(loop1)); in main()
216 test_sendmsg(sk1, &outmessage, 0, strlen(message)+1); in main()
240 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
265 error = getsockopt(sk1, IPPROTO_SCTP, SCTP_STATUS, &gstatus, &len); in main()
296 test_sendmsg(sk1, &outmessage, MSG_NOSIGNAL, in main()
308 test_sendmsg(sk1, &outmessage, MSG_NOSIGNAL, strlen(ttlmsg) + 1); in main()
[all …]
Dtest_inaddr_any.c68 int sk1, sk2; in main() local
120 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
124 test_enable_assoc_change(sk1); in main()
128 test_bind(sk1, &loop.sa, sizeof(loop)); in main()
138 error = getsockname(sk1, &loop.sa, &namelen); in main()
174 test_sendmsg(sk1, &outmessage, 0, strlen(message)+1); in main()
193 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
222 test_sendmsg(sk1, &outmessage, 0, strlen(telephone)+1); in main()
226 test_sendmsg(sk1, &outmessage, 0, strlen(telephone_resp)+1); in main()
240 close(sk1); in main()
Dtest_basic.c67 int sk1, sk2; in main() local
128 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
134 test_bind(sk1, &loop1.sa, sizeof(loop1)); in main()
140 test_enable_assoc_change(sk1); in main()
191 test_sendmsg(sk1, &outmessage, 0, strlen(message)+1); in main()
242 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL); in main()
308 bytes_sent = sendmsg(sk1, &outmessage, MSG_NOSIGNAL); in main()
317 bytes_sent = sendmsg(sk1, &outmessage, MSG_NOSIGNAL); in main()
327 test_sendmsg(sk1, &outmessage, 0, strlen(telephone)+1); in main()
333 test_sendmsg(sk1, &outmessage, 0, strlen(telephone_resp)+1); in main()
[all …]
Dtest_1_to_1_sendmsg.c77 int sk,sk1,pf_class,lstn_sk,acpt_sk,acpt1_sk, flag; in main() local
106 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
243 test_connect(sk1, (struct sockaddr *) &lstn_addr, len); in main()
245 test_sendmsg(sk1, &outmessage, flag, strlen(message)+1); in main()
247 close(sk1); in main()
348 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
352 count = sendmsg(sk1, &outmessage, flag); in main()
364 test_shutdown(sk1, SHUT_RD); in main()
367 count = sendmsg(sk1, &outmessage, flag); in main()
377 close(sk1); in main()
Dtest_1_to_1_sockopt.c86 int sk, sk1, sk2, acpt_sk, pf_class; in main() local
226 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
240 test_getsockopt(sk1, SCTP_INITMSG, &ginmsg, &len); in main()
249 test_setsockopt(sk1, SCTP_INITMSG, &sinmsg, sizeof(sinmsg)); in main()
251 test_getsockopt(sk1, SCTP_INITMSG, &ginmsg, &len); in main()
276 test_bind(sk1, (struct sockaddr *) &lstn_addr, sizeof(lstn_addr)); in main()
277 test_listen(sk1, 10 ); in main()
281 acpt_sk = test_accept(sk1, (struct sockaddr *)&addr, &len); in main()
434 close(sk1); in main()
Dtest_1_to_1_send.c70 int sk,sk1,pf_class,lstn_sk,acpt_sk,acpt1_sk, flag, count; in main() local
91 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
161 test_connect(sk1, (struct sockaddr *) &lstn_addr, len); in main()
163 count = test_send(sk1, message, len_snd, flag); in main()
165 close(sk1); in main()
240 close(sk1); in main()
Dtest_1_to_1_sendto.c66 int sk,sk1,pf_class,lstn_sk,acpt_sk,flag; in main() local
139 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
143 count = sendto(sk1, message, msg_count, flag, in main()
163 close(sk1); in main()
Dtest_1_to_1_connectx.c75 int sk1,clnt2_sk; in main() local
92 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
217 error = sctp_connectx(sk1, (struct sockaddr *)&conn_addr, 1, NULL); in main()
226 close(sk1); in main()
Dtest_1_to_1_connect.c75 int sk1,clnt2_sk; in main() local
93 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
225 error = connect(sk1, (const struct sockaddr *)&conn_addr, len); in main()
234 close(sk1); in main()
Dtest_1_to_1_addrs.c83 int lstn_sk,clnt_sk,acpt_sk,pf_class,sk1; in main() local
203 sk1 = socket(pf_class, SOCK_STREAM, IPPROTO_IP); in main()
204 error = sctp_getladdrs(sk1, 0, &laddrs); in main()
261 error = sctp_getpaddrs(sk1, 0, &laddrs); in main()
/third_party/mindspore/tests/ut/cpp/utils/
Dsymbolic_test.cc31 …auto sk1 = std::make_shared<SymbolicKeyInstance>(NewValueNode(static_cast<int64_t>(1)), abstract::… in TEST_F() local
34 ASSERT_EQ(*sk1, *sk1b); in TEST_F()
38 EnvInstance e = newenv->Set(sk1, 100); in TEST_F()
43 ASSERT_EQ(e.Get(sk1, 0), 100); in TEST_F()
48 ASSERT_EQ(e2.Get(sk1, 0), 200); in TEST_F()
53 ASSERT_EQ(e3.Get(sk1, 0), 200); in TEST_F()
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DUCAConformanceTest.java202 RawCollationKey sk1 = new RawCollationKey(), sk2 = new RawCollationKey(); in conformanceTest() local
203 RawCollationKey oldSk = null, newSk = sk1; in conformanceTest()
270 if (oldSk == sk1) { in conformanceTest()
273 newSk = sk1; in conformanceTest()
DCollationMiscTest.java3076 CollationKey sk1 = viescoll.getCollationKey(t); in TestImport() local
3078 if(!sk1.equals(sk2)){ in TestImport()
3105 CollationKey sk1 = videcoll.getCollationKey(t); in TestImportWithType() local
3107 if(!sk1.equals(sk2)){ in TestImportWithType()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/collator/
DUCAConformanceTest.java205 RawCollationKey sk1 = new RawCollationKey(), sk2 = new RawCollationKey(); in conformanceTest() local
206 RawCollationKey oldSk = null, newSk = sk1; in conformanceTest()
273 if (oldSk == sk1) { in conformanceTest()
276 newSk = sk1; in conformanceTest()
DCollationMiscTest.java3079 CollationKey sk1 = viescoll.getCollationKey(t); in TestImport() local
3081 if(!sk1.equals(sk2)){ in TestImport()
3108 CollationKey sk1 = videcoll.getCollationKey(t); in TestImportWithType() local
3110 if(!sk1.equals(sk2)){ in TestImportWithType()
/third_party/icu/icu4c/source/test/intltest/
Ducaconf.cpp197 uint8_t sk1[1024], sk2[1024]; in testConformance() local
198 uint8_t *oldSk = NULL, *newSk = sk1; in testConformance()
286 newSk = sk1; in testConformance()
Dtsmthred.cpp742 uint8_t sk1[1024], sk2[1024]; in run() local
743 uint8_t *oldSk = NULL, *newSk = sk1; in run()
788 newSk = (newSk == sk1)?sk2:sk1; in run()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/lite_cv/
Dimage_process.cc1031 float sk1 = scales[i]; in GetDefaultBoxes() local
1033 float sk3 = sqrt(sk1 * sk2); in GetDefaultBoxes()
1037 w = sk1 * sqrt(2); in GetDefaultBoxes()
1038 h = sk1 / sqrt(2); in GetDefaultBoxes()
1041 all_sizes = {{sk1, sk1}}; in GetDefaultBoxes()
1043 w = sk1 * sqrt(config.aspect_rations[i][j]); in GetDefaultBoxes()
1044 h = sk1 / sqrt(config.aspect_rations[i][j]); in GetDefaultBoxes()
/third_party/openssl/test/
Dsslapitest.c6342 STACK_OF(X509_NAME) *sk1 = NULL, *sk2 = NULL; in test_ca_names_int()
6366 if (!TEST_ptr(sk1 = sk_X509_NAME_new_null()) in test_ca_names_int()
6367 || !TEST_true(sk_X509_NAME_push(sk1, X509_NAME_dup(name[0]))) in test_ca_names_int()
6368 || !TEST_true(sk_X509_NAME_push(sk1, X509_NAME_dup(name[1]))) in test_ca_names_int()
6374 SSL_CTX_set0_CA_list(sctx, sk1); in test_ca_names_int()
6376 sk1 = sk2 = NULL; in test_ca_names_int()
6379 if (!TEST_ptr(sk1 = sk_X509_NAME_new_null()) in test_ca_names_int()
6380 || !TEST_true(sk_X509_NAME_push(sk1, X509_NAME_dup(name[2]))) in test_ca_names_int()
6381 || !TEST_true(sk_X509_NAME_push(sk1, X509_NAME_dup(name[3]))) in test_ca_names_int()
6387 SSL_CTX_set_client_CA_list(sctx, sk1); in test_ca_names_int()
[all …]
/third_party/icu/icu4c/source/test/cintltst/
Dcmsccoll.c5550 uint8_t sk1[500]; in TestImport() local
5605 ucol_getSortKey(viescoll, str, 1, sk1, 500); in TestImport()
5607 if(compare_uint8_t_arrays(sk1, sk2) != 0){ in TestImport()
5613 ucol_getSortKey(viescoll, str, strLength, sk1, 500); in TestImport()
5615 if(compare_uint8_t_arrays(sk1, sk2) != 0){ in TestImport()
5657 uint8_t sk1[500]; in TestImportWithType() local
5715 ucol_getSortKey(videcoll, str, 1, sk1, 500); in TestImportWithType()
5717 if(compare_uint8_t_arrays(sk1, sk2) != 0){ in TestImportWithType()
5723 ucol_getSortKey(videcoll, str, strLength, sk1, 500); in TestImportWithType()
5725 if(compare_uint8_t_arrays(sk1, sk2) != 0){ in TestImportWithType()