/external/llvm-project/lldb/unittests/Host/ |
D | MainLoopTest.cpp | 48 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/ |
D | io_async_fd.rs | 138 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/ |
D | epoll_wakeup_test.c | 152 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/ |
D | test_pty.py | 260 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/ |
D | test_pty.py | 250 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/ |
D | hfp_slc_unittest.cc | 66 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()
|
D | util_unittest.cc | 34 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()
|
D | hfp_info_unittest.cc | 179 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/ |
D | resources-test.c | 43 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/ |
D | socketpair.h | 30 #define Curl_socketpair(a,b,c,d) socketpair(a,b,c,d)
|
/external/autotest/client/common_lib/ |
D | barrier_unittest.py | 76 sender, receiver = socket.socketpair() 85 sender, receiver = socket.socketpair()
|
/external/llvm-project/compiler-rt/test/tsan/ |
D | fd_socketpair_norace.cpp | 28 socketpair(AF_UNIX, SOCK_STREAM, 0, fds); in main()
|
/external/compiler-rt/test/tsan/ |
D | fd_socketpair_norace.cc | 28 socketpair(AF_UNIX, SOCK_STREAM, 0, fds); in main()
|
/external/strace/tests-mx32/ |
D | mmsg-silent.c | 39 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds)) in main()
|
D | erestartsys.c | 50 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv)) in main()
|
/external/strace/tests/ |
D | mmsg-silent.c | 39 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds)) in main()
|
D | erestartsys.c | 50 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv)) in main()
|
/external/strace/tests-m32/ |
D | mmsg-silent.c | 39 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds)) in main()
|
D | erestartsys.c | 50 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv)) in main()
|
/external/libbrillo/brillo/ |
D | unittest_utils.cc | 39 if (socketpair(PF_LOCAL, SOCK_STREAM, 0, fds) != 0) { in ScopedSocketPair()
|
/external/crosvm/seccomp/aarch64/ |
D | cras_audio_device.policy | 11 socketpair: arg0 == AF_UNIX
|
/external/crosvm/seccomp/arm/ |
D | cras_audio_device.policy | 13 socketpair: arg0 == AF_UNIX
|
/external/crosvm/seccomp/x86_64/ |
D | cras_audio_device.policy | 13 socketpair: arg0 == AF_UNIX
|
D | common_device.frequency | 40 socketpair: 30
|
/external/rust/crates/nix/test/sys/ |
D | test_socket.rs | 154 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 …]
|