/third_party/musl/src/network/ |
H A D | socketpair.c | 9 int socketpair(int domain, int type, int protocol, int fd[2]) in socketpair() function 11 int r = socketcall(socketpair, domain, type, protocol, fd, 0, 0); in socketpair() 14 r = socketcall(socketpair, domain, in socketpair()
|
/third_party/musl/libc-test/src/functionalext/supplement/network/ |
H A D | socketpair.c | 24 * @tc.desc : Use the socketpair function to create a pair of unnamed, interconnected sockets. 32 int result = socketpair(AF_UNIX, SOCK_STREAM, 0, fb); in socketpair_0100() 34 t_error("%s socketpair get result error is -1\n", __func__); in socketpair_0100() 39 t_error("%s socketpair get buf is %s are not %s\n", __func__, buf, str); in socketpair_0100() 45 * @tc.desc : Pass in AF_INET when testing the socketpair function call 51 int result = socketpair(AF_INET, SOCK_STREAM, 0, fb); in socketpair_0200() 53 t_error("%s socketpair get result error is %d not -1\n", __func__, result); in socketpair_0200() 67 int result = socketpair(AF_UNIX, SOCK_STREAM, 0, fb); in socketpair_0300() 69 t_error("%s socketpair get result error is %d not -1\n", __func__, result); in socketpair_0300() 74 t_error("%s socketpair ge in socketpair_0300() [all...] |
/third_party/rust/crates/rustix/src/net/ |
H A D | mod.rs | 18 mod socketpair; modules 34 pub use socketpair::socketpair;
|
H A D | socketpair.rs | 5 /// `socketpair(domain, type_ | accept_flags, protocol)` 11 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/socketpair.html 12 /// [Linux]: https://man7.org/linux/man-pages/man2/socketpair.2.html 14 pub fn socketpair( in socketpair() functions 20 backend::net::syscalls::socketpair(domain, type_, flags, protocol) in socketpair()
|
/third_party/python/Lib/test/ |
H A D | test_pty.py | 347 socketpair = socket.socketpair() 348 self.files.extend(socketpair) 349 return socketpair 370 socketpair = self._socketpair() 371 masters = [s.fileno() for s in socketpair]
|
H A D | test_selectors.py | 23 raise unittest.SkipTest("Cannot create socketpair on Emscripten/WASI.") 26 if hasattr(socket, 'socketpair'): 27 socketpair = socket.socketpair variable 29 def socketpair(family=socket.AF_INET, type=socket.SOCK_STREAM, proto=0): function 59 rd, wr = socketpair()
|
H A D | _test_eintr.py | 188 @unittest.skipUnless(hasattr(socket, 'socketpair'), 'needs socketpair()') 190 rd, wr = socket.socketpair() 232 rd, wr = socket.socketpair()
|
/third_party/libuv/test/ |
H A D | test-pipe-sendmsg.c | 118 ASSERT_OK(socketpair(AF_UNIX, SOCK_STREAM, 0, fds)); in TEST_IMPL() 120 ASSERT_OK(socketpair(AF_UNIX, SOCK_STREAM, 0, send_fds + i)); in TEST_IMPL()
|
H A D | test-fork.c | 138 ASSERT_OK(socketpair(AF_UNIX, SOCK_STREAM, 0, socket_fds)); in TEST_IMPL() 184 ASSERT_OK(socketpair(AF_UNIX, SOCK_STREAM, 0, socket_fds)); in TEST_IMPL()
|
/third_party/musl/Benchmark/musl/ |
H A D | socket_test.cpp | 61 ret = socketpair(AF_LOCAL, SOCK_STREAM, 0, socks); in Bm_function_socketpair_sendmsg_recvmsg() 63 printf("socketpair sendmsg err\n"); in Bm_function_socketpair_sendmsg_recvmsg() 112 ret = socketpair(AF_LOCAL, SOCK_STREAM, 0, socks); in Bm_function_socketpair_sendmmsg_recvmmsg() 114 printf("socketpair sendmsg err\n"); in Bm_function_socketpair_sendmmsg_recvmmsg() 163 ret = socketpair(AF_LOCAL, SOCK_STREAM, 0, socks); in Bm_function_socketpair_sendto_recvfrom() 165 printf("socketpair sendto err\n"); in Bm_function_socketpair_sendto_recvfrom() 219 benchmark::DoNotOptimize(socketpair(0, SOCK_STREAM, 0, fd)); in Bm_function_sockpair()
|
/third_party/rust/crates/nix/test/sys/ |
H A D | test_sockopt.rs | 14 sys::socket::socketpair, in test_local_peercred_seqpacket() 18 let (fd1, _fd2) = socketpair( in test_local_peercred_seqpacket() 40 sys::socket::socketpair, in test_local_peercred_stream() 44 let (fd1, _fd2) = socketpair( in test_local_peercred_stream()
|
H A D | test_socket.rs | 284 use nix::sys::socket::{socketpair, AddressFamily, SockFlag, SockType}; in test_socketpair() 287 let (fd1, fd2) = socketpair( in test_socketpair() 356 let (fd2, fd1) = socketpair( in stream() 772 recvmsg, sendmsg, socketpair, AddressFamily, ControlMessage, in test_scm_rights() 778 let (fd1, fd2) = socketpair( in test_scm_rights() 1261 recvmsg, sendmsg, socketpair, AddressFamily, MsgFlags, SockFlag, in test_sendmsg_empty_cmsgs() 1267 let (fd1, fd2) = socketpair( in test_sendmsg_empty_cmsgs() 1317 recvmsg, sendmsg, socketpair, AddressFamily, ControlMessage, in test_scm_credentials() 1325 let (send, recv) = socketpair( in test_scm_credentials() 1417 recvmsg, sendmsg, setsockopt, socketpair, ControlMessag in test_impl_scm_credentials_and_rights() [all...] |
/third_party/curl/lib/ |
H A D | socketpair.h | 51 #define Curl_socketpair(a,b,c,d) socketpair(a,b,c,d)
|
H A D | curl_memory.h | 84 #undef socketpair macro
|
/third_party/python/Lib/ |
H A D | socket.py | 13 socketpair() -- create a pair of new socket objects [*] 593 if hasattr(_socket, "socketpair"): 595 def socketpair(family=None, type=SOCK_STREAM, proto=0): function 596 """socketpair([family[, type[, proto]]]) -> (socket object, socket object) 599 socketpair() function. 608 a, b = _socket.socketpair(family, type, proto) 616 def socketpair(family=AF_INET, type=SOCK_STREAM, proto=0): function 652 __all__.append("socketpair") 654 socketpair.__doc__ = """socketpair([famil [all...] |
/third_party/ltp/testcases/kernel/syscalls/socketpair/ |
H A D | socketpair02.c | 12 * in socketpair() in kernel 2.6.27. 44 TEST(socketpair(PF_UNIX, tc->type, 0, fds)); in verify_socketpair() 47 tst_brk(TFAIL | TTERRNO, "socketpair() failed"); in verify_socketpair() 53 tst_res(TFAIL, "socketpair() failed to set %s flag for fds[%d]", in verify_socketpair() 59 tst_res(TFAIL, "socketpair() failed to set %s flag for fds[%d]", in verify_socketpair() 65 tst_res(TPASS, "socketpair() passed to set %s flag", tc->des); in verify_socketpair()
|
H A D | socketpair01.c | 10 * Verify that socketpair() returns the proper errno for various failure cases 51 TEST(socketpair(tc->domain, tc->type, tc->proto, tc->sv)); in verify_socketpair()
|
/third_party/musl/libc-test/src/functionalext/supplement/network/network_gtest/ |
H A D | socket_test.cpp | 490 * @tc.desc: A pair of sockets created by testing socketpair can be used for inter process communication 497 int fd = socketpair(AF_UNIX, SOCK_STREAM, 0, sv); in HWTEST_F() 546 ret = socketpair(AF_LOCAL, SOCK_STREAM, 0, socks); in HWTEST_F() 606 int ret = socketpair(AF_LOCAL, SOCK_STREAM, 0, socks); in HWTEST_F()
|
/third_party/ltp/testcases/kernel/syscalls/getpeername/ |
H A D | getpeername01.c | 162 if (socketpair(PF_UNIX, SOCK_STREAM, 0, sv) < 0) { in setup4() 164 "socketpair failed for getpeername test %d", i); in setup4()
|
/third_party/musl/libc-test/src/api/ |
H A D | sys_socket.c | 110 {int(*p)(int,int,int,int[]) = socketpair;} in f()
|
/third_party/musl/libc-test/src/functionalext/fortify/ |
H A D | socket_ext.c | 40 TEST(socketpair(AF_UNIX, SOCK_STREAM, 0, sockets) == 0); in send_and_recv_0010()
|
/third_party/skia/third_party/externals/microhttpd/src/include/ |
H A D | platform_interface.h | 142 #define MHD_pipe_(fdarr) socketpair(AF_LOCAL, SOCK_STREAM, 0, (fdarr))
|
/third_party/libuv/src/unix/ |
H A D | tcp.c | 622 if (socketpair(AF_UNIX, flags, protocol, temp)) in uv_socketpair() 631 if (socketpair(AF_UNIX, type, protocol, temp)) in uv_socketpair()
|
/third_party/libfuse/lib/ |
H A D | mount.c | 322 res = socketpair(PF_UNIX, SOCK_STREAM, 0, fds); in setup_auto_unmount() 324 perror("fuse: socketpair() failed"); in setup_auto_unmount() 383 res = socketpair(PF_UNIX, SOCK_STREAM, 0, fds); in fuse_mount_fusermount() 385 perror("fuse: socketpair() failed"); in fuse_mount_fusermount()
|
/third_party/node/deps/uv/src/unix/ |
H A D | tcp.c | 486 if (socketpair(AF_UNIX, flags, protocol, temp)) in uv_socketpair() 495 if (socketpair(AF_UNIX, type, protocol, temp)) in uv_socketpair()
|