Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/bind/
Dbind03.c23 static int sock1, sock2; variable
66 sock2 = SAFE_SOCKET(PF_UNIX, SOCK_STREAM, 0); in run()
72 if (bind(sock2, (struct sockaddr *)&sun1, sizeof(sun1)) == 0) { in run()
88 close(sock2); in cleanup()
/external/adhd/cras/client/libcras/src/
Daudio_socket.rs228 let (sock1, sock2) = UnixStream::pair().unwrap(); in init_audio_socket_pair()
230 let receiver = AudioSocket::new(sock2); in init_audio_socket_pair()
259 let (sock1, sock2) = UnixStream::pair().unwrap(); in audio_socket_data_ready_send_and_recv()
261 let mut audio_socket_recv = AudioSocket::new(sock2); in audio_socket_data_ready_send_and_recv()
279 let (sock1, sock2) = UnixStream::pair().unwrap(); in audio_socket_capture_ready()
281 let mut audio_socket_recv = AudioSocket::new(sock2); in audio_socket_capture_ready()
Dlibcras.rs430 let (sock1, sock2) = UnixStream::pair()?; in create_stream()
433 let socks = [sock2.as_raw_fd()]; in create_stream()
669 let (sock1, sock2) = UnixStream::pair()?;
672 let fds = [sock2.as_raw_fd(), client_shm.as_raw_fd()];
/external/python/cpython3/Lib/test/
Dtest_signal.py191 sock2 = socket.socket()
192 self.addCleanup(sock2.close)
193 sock2.setblocking(False)
194 fd2 = sock2.fileno()
Dtest_socket.py6575 sock1, sock2 = socket.socketpair(socket.AF_UNIX, socket.SOCK_STREAM)
6576 with sock1, sock2:
6579 msg, fds2, flags, addr = socket.recv_fds(sock2, len(MSG) * 2, len(fds) * 2)
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_proactor_events.py804 sock2 = mock.Mock()
808 sock2.fileno(): future2
815 self.assertFalse(sock2.close.called)