Searched refs:sock2 (Results 1 – 7 of 7) sorted by relevance
/third_party/ltp/testcases/network/can/cve/ |
D | can_bcm01.c | 38 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/ |
D | bind03.c | 22 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/libuv/test/ |
D | test-udp-open.c | 198 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()
|
D | test-tcp-open.c | 287 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/ |
D | test_signal.py | 202 sock2 = socket.socket() 203 self.addCleanup(sock2.close) 204 sock2.setblocking(False) 205 fd2 = sock2.fileno()
|
D | test_socket.py | 6576 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/python/Lib/test/test_asyncio/ |
D | test_proactor_events.py | 820 sock2 = mock.Mock() 824 sock2.fileno(): future2 831 self.assertFalse(sock2.close.called)
|