Home
last modified time | relevance | path

Searched refs:sock2 (Results 1 – 9 of 9) sorted by relevance

/third_party/ltp/testcases/network/can/cve/
Dcan_bcm01.c38 static int sock1 = -1, sock2 = -1; variable
114 sock2 = SAFE_SOCKET(AF_CAN, SOCK_DGRAM, CAN_BCM); in run()
115 SAFE_CONNECT(sock2, (struct sockaddr *)&addr, sizeof(addr)); in run()
116 SAFE_SENDMSG(iov.iov_len, sock2, &msg, 0); in run()
118 SAFE_CLOSE(sock2); in run()
132 if (sock2 >= 0) in cleanup()
133 SAFE_CLOSE(sock2); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/bind/
Dbind03.c22 static int sock1, sock2; variable
38 TST_EXP_FAIL(bind(sock2, (struct sockaddr *)&sun1, sizeof(sun1)), in run()
53 sock2 = SAFE_SOCKET(PF_UNIX, SOCK_STREAM, 0); in setup()
74 SAFE_CLOSE(sock2); in cleanup()
/third_party/libsoup/tests/
Dsocket-test.c240 SoupSocket *sock, *sock2; in do_socket_from_fd_bad_test() local
309 sock2 = g_initable_new (SOUP_TYPE_SOCKET, NULL, &error, in do_socket_from_fd_bad_test()
313 g_assert_nonnull (sock2); in do_socket_from_fd_bad_test()
315 g_object_get (G_OBJECT (sock2), in do_socket_from_fd_bad_test()
320 g_assert_cmpint (soup_socket_get_fd (sock2), ==, g_socket_get_fd (gsock2)); in do_socket_from_fd_bad_test()
321 g_assert_true (soup_socket_is_connected (sock2)); in do_socket_from_fd_bad_test()
338 g_object_unref (sock2); in do_socket_from_fd_bad_test()
/third_party/libuv/test/
Dtest-udp-open.c198 uv_os_sock_t sock1, sock2; in TEST_IMPL() local
203 sock2 = create_udp_socket(); in TEST_IMPL()
211 r = uv_udp_open(&client, sock2); in TEST_IMPL()
213 close_socket(sock2); in TEST_IMPL()
Dtest-tcp-open.c287 uv_os_sock_t sock1, sock2; in TEST_IMPL() local
292 sock2 = create_tcp_socket(); in TEST_IMPL()
300 r = uv_tcp_open(&client, sock2); in TEST_IMPL()
302 close_socket(sock2); in TEST_IMPL()
/third_party/python/Lib/test/
Dtest_signal.py202 sock2 = socket.socket()
203 self.addCleanup(sock2.close)
204 sock2.setblocking(False)
205 fd2 = sock2.fileno()
Dtest_socket.py6576 sock1, sock2 = socket.socketpair(socket.AF_UNIX, socket.SOCK_STREAM)
6577 with sock1, sock2:
6580 msg, fds2, flags, addr = socket.recv_fds(sock2, len(MSG) * 2, len(fds) * 2)
/third_party/glib/gio/tests/
Dsocket.c1535 GSocket *sock1, *sock2; in test_reuse_tcp() local
1556 sock2 = g_socket_new (G_SOCKET_FAMILY_IPV4, in test_reuse_tcp()
1564 g_socket_bind (sock2, addr, TRUE, &error); in test_reuse_tcp()
1570 g_object_unref (sock2); in test_reuse_tcp()
1576 GSocket *sock1, *sock2; in test_reuse_udp() local
1594 sock2 = g_socket_new (G_SOCKET_FAMILY_IPV4, in test_reuse_udp()
1602 g_socket_bind (sock2, addr, TRUE, &error); in test_reuse_udp()
1607 g_object_unref (sock2); in test_reuse_udp()
/third_party/python/Lib/test/test_asyncio/
Dtest_proactor_events.py820 sock2 = mock.Mock()
824 sock2.fileno(): future2
831 self.assertFalse(sock2.close.called)