/third_party/ltp/testcases/kernel/syscalls/bind/ |
D | bind03.c | 22 static int sock1, sock2; variable 31 TST_EXP_FAIL(bind(sock1, (struct sockaddr *)&sun2, sizeof(sun2)), in run() 52 sock1 = SAFE_SOCKET(PF_UNIX, SOCK_STREAM, 0); in setup() 68 SAFE_BIND(sock1, (struct sockaddr *)&sun1, sizeof(sun1)); in setup() 73 SAFE_CLOSE(sock1); in cleanup()
|
/third_party/ltp/testcases/network/can/cve/ |
D | can_bcm01.c | 38 static int sock1 = -1, sock2 = -1; variable 57 sock1 = SAFE_SOCKET(AF_CAN, SOCK_DGRAM, CAN_BCM); in setup() 58 SAFE_CONNECT(sock1, (struct sockaddr *)&addr, sizeof(addr)); in setup() 86 SAFE_SENDMSG(iov.iov_len, sock1, &msg, 0); in thread_run() 129 if (sock1 >= 0) in cleanup() 130 SAFE_CLOSE(sock1); in cleanup()
|
/third_party/node/test/parallel/ |
D | test-net-persistent-nodelay.js | 25 const sock1 = new Socket(); 29 const s = sock1.setNoDelay(); 31 sock1.connect(this.address().port); 32 sock1.on('end', function() {
|
/third_party/toybox/toys/pending/ |
D | dhcp6.c | 49 int length, state, request_length, sock, sock1, status, retval, retries; 297 sendlength = sendto(TT.sock1, &mesg, sendlength , 0,(struct sockaddr *)&addr6, in send_msg() 474 xclose(TT.sock1); in lease_fail() 566 TT.sock1 = xsocket(PF_INET6, SOCK_DGRAM, 0); in dhcp6_main() 573 xsetsockopt(TT.sock1, SOL_SOCKET, SO_REUSEADDR, &constone, sizeof(constone)); in dhcp6_main() 575 xbind(TT.sock1, (struct sockaddr *)&sinaddr6, sizeof(sinaddr6)); in dhcp6_main() 684 xclose(TT.sock1); in dhcp6_main()
|
/third_party/libuv/test/ |
D | test-udp-open.c | 198 uv_os_sock_t sock1, sock2; in TEST_IMPL() local 202 sock1 = create_udp_socket(); in TEST_IMPL() 208 r = uv_udp_open(&client, sock1); in TEST_IMPL()
|
D | test-tcp-open.c | 287 uv_os_sock_t sock1, sock2; in TEST_IMPL() local 291 sock1 = create_tcp_socket(); in TEST_IMPL() 297 r = uv_tcp_open(&client, sock1); in TEST_IMPL()
|
/third_party/glib/gio/tests/ |
D | socket.c | 1535 GSocket *sock1, *sock2; in test_reuse_tcp() local 1540 sock1 = g_socket_new (G_SOCKET_FAMILY_IPV4, in test_reuse_tcp() 1549 g_socket_bind (sock1, addr, TRUE, &error); in test_reuse_tcp() 1553 g_socket_listen (sock1, &error); in test_reuse_tcp() 1562 addr = g_socket_get_local_address (sock1, &error); in test_reuse_tcp() 1569 g_object_unref (sock1); in test_reuse_tcp() 1576 GSocket *sock1, *sock2; in test_reuse_udp() local 1581 sock1 = g_socket_new (G_SOCKET_FAMILY_IPV4, in test_reuse_udp() 1590 g_socket_bind (sock1, addr, TRUE, &error); in test_reuse_udp() 1600 addr = g_socket_get_local_address (sock1, &error); in test_reuse_udp() [all …]
|
/third_party/python/Lib/test/ |
D | test_signal.py | 197 sock1 = socket.socket() 198 self.addCleanup(sock1.close) 199 sock1.setblocking(False) 200 fd1 = sock1.fileno()
|
D | test_socket.py | 6576 sock1, sock2 = socket.socketpair(socket.AF_UNIX, socket.SOCK_STREAM) 6577 with sock1, sock2: 6578 socket.send_fds(sock1, [MSG], fds)
|
/third_party/python/Lib/test/test_asyncio/ |
D | test_proactor_events.py | 818 sock1 = mock.Mock() 823 sock1.fileno(): future1, 827 self.loop._stop_serving(sock1) 828 self.assertTrue(sock1.close.called) 830 self.proactor._stop_serving.assert_called_with(sock1)
|
/third_party/toybox/generated/ |
D | globals.h | 562 int length, state, request_length, sock, sock1, status, retval, retries; member
|