Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/syscalls/bind/
Dbind03.c22 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/
Dcan_bcm01.c38 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/
Dtest-net-persistent-nodelay.js25 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/
Ddhcp6.c49 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/
Dtest-udp-open.c198 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()
Dtest-tcp-open.c287 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/python/Lib/test/
Dtest_signal.py197 sock1 = socket.socket()
198 self.addCleanup(sock1.close)
199 sock1.setblocking(False)
200 fd1 = sock1.fileno()
Dtest_socket.py6576 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/
Dtest_proactor_events.py818 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/
Dglobals.h585 int length, state, request_length, sock, sock1, status, retval, retries; member