Home
last modified time | relevance | path

Searched refs:socketpair (Results 1 – 25 of 258) sorted by relevance

1234567891011

/external/llvm-project/lldb/unittests/Host/
DMainLoopTest.cpp48 socketpair[0] = std::move(connect_socket_up); in SetUp()
49 socketpair[1].reset(accept_socket); in SetUp()
53 socketpair[0].reset(); in TearDown()
54 socketpair[1].reset(); in TearDown()
64 std::shared_ptr<Socket> socketpair[2]; member in __anond9afe8720111::MainLoopTest
72 ASSERT_TRUE(socketpair[0]->Write(&X, len).Success()); in TEST_F()
77 auto handle = loop.RegisterReadObject(socketpair[1], make_callback(), error); in TEST_F()
87 ASSERT_TRUE(socketpair[0]->Write(&X, len).Success()); in TEST_F()
88 ASSERT_TRUE(socketpair[1]->Write(&X, len).Success()); in TEST_F()
92 auto handle0 = loop.RegisterReadObject(socketpair[0], make_callback(), error); in TEST_F()
[all …]
/external/rust/crates/tokio/tests/
Dio_async_fd.rs138 fn socketpair() -> (FileDescriptor, FileDescriptor) { in socketpair() function
141 let (fd_a, fd_b) = socket::socketpair( in socketpair()
171 let (a, b) = socketpair(); in initially_writable()
188 let (a, mut b) = socketpair(); in reset_readable()
232 let (a, b) = socketpair(); in reset_writable()
269 let (a, mut b) = socketpair(); in drop_closes()
284 let (a, mut b) = socketpair(); in drop_closes()
294 let (a, mut b) = socketpair(); in drop_closes()
309 let (a, _b) = socketpair(); in reregister()
318 let (a, mut b) = socketpair(); in try_io()
[all …]
/external/linux-kselftest/tools/testing/selftests/filesystems/epoll/
Depoll_wakeup_test.c152 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0); in TEST()
183 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0); in TEST()
214 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST()
215 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0); in TEST()
252 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST()
253 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0); in TEST()
291 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST()
330 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST()
370 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST()
371 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0); in TEST()
[all …]
/external/python/cpython3/Lib/test/
Dtest_pty.py260 socketpair = socket.socketpair()
261 self.files.extend(socketpair)
262 return socketpair
275 socketpair = self._socketpair()
276 masters = [s.fileno() for s in socketpair]
303 socketpair = self._socketpair()
304 masters = [s.fileno() for s in socketpair]
306 socketpair[1].close()
/external/python/cpython2/Lib/test/
Dtest_pty.py250 socketpair = socket.socketpair()
251 masters = [s.fileno() for s in socketpair]
279 socketpair = socket.socketpair()
280 masters = [s.fileno() for s in socketpair]
284 socketpair[1].close()
/external/adhd/cras/src/tests/
Dhfp_slc_unittest.cc66 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, sock)); in TEST()
122 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, sock)); in TEST()
146 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, sock)); in TEST()
249 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, sock)); in TEST()
306 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, sock)); in TEST()
Dutil_unittest.cc34 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, sock)); in TEST()
79 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, sock)); in TEST()
116 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, sock)); in TEST()
144 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, sock)); in TEST()
Dhfp_info_unittest.cc179 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, sock)); in TEST()
230 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, sock)); in TEST()
253 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, sock)); in TEST()
298 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, sock)); in TEST()
381 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, sock)); in TEST()
481 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, sock)); in TEST()
/external/wayland/tests/
Dresources-test.c43 assert(socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, s) == 0); in TEST()
114 assert(socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, s) == 0); in TEST()
162 assert(socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, s) == 0); in TEST()
/external/curl/lib/
Dsocketpair.h30 #define Curl_socketpair(a,b,c,d) socketpair(a,b,c,d)
/external/autotest/client/common_lib/
Dbarrier_unittest.py76 sender, receiver = socket.socketpair()
85 sender, receiver = socket.socketpair()
/external/llvm-project/compiler-rt/test/tsan/
Dfd_socketpair_norace.cpp28 socketpair(AF_UNIX, SOCK_STREAM, 0, fds); in main()
/external/compiler-rt/test/tsan/
Dfd_socketpair_norace.cc28 socketpair(AF_UNIX, SOCK_STREAM, 0, fds); in main()
/external/strace/tests-mx32/
Dmmsg-silent.c39 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds)) in main()
Derestartsys.c50 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv)) in main()
/external/strace/tests/
Dmmsg-silent.c39 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds)) in main()
Derestartsys.c50 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv)) in main()
/external/strace/tests-m32/
Dmmsg-silent.c39 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds)) in main()
Derestartsys.c50 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv)) in main()
/external/libbrillo/brillo/
Dunittest_utils.cc39 if (socketpair(PF_LOCAL, SOCK_STREAM, 0, fds) != 0) { in ScopedSocketPair()
/external/crosvm/seccomp/aarch64/
Dcras_audio_device.policy11 socketpair: arg0 == AF_UNIX
/external/crosvm/seccomp/arm/
Dcras_audio_device.policy13 socketpair: arg0 == AF_UNIX
/external/crosvm/seccomp/x86_64/
Dcras_audio_device.policy13 socketpair: arg0 == AF_UNIX
Dcommon_device.frequency40 socketpair: 30
/external/rust/crates/nix/test/sys/
Dtest_socket.rs154 use nix::sys::socket::{socketpair, AddressFamily, SockType, SockFlag}; in test_socketpair()
156 let (fd1, fd2) = socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::empty()) in test_socketpair()
202 let (fd2, fd1) = socketpair(AddressFamily::Unix, SockType::Stream, in stream()
541 use nix::sys::socket::{socketpair, sendmsg, recvmsg, in test_scm_rights()
545 let (fd1, fd2) = socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::empty()) in test_scm_rights()
911 use nix::sys::socket::{socketpair, sendmsg, recvmsg, in test_sendmsg_empty_cmsgs()
914 let (fd1, fd2) = socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::empty()) in test_sendmsg_empty_cmsgs()
948 use nix::sys::socket::{socketpair, sendmsg, recvmsg, in test_scm_credentials()
955 let (send, recv) = socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::empty()) in test_scm_credentials()
1031 use nix::sys::socket::{socketpair, sendmsg, recvmsg, setsockopt, in test_impl_scm_credentials_and_rights()
[all …]

1234567891011