Home
last modified time | relevance | path

Searched refs:socketpair (Results 1 - 25 of 67) sorted by relevance

123

/third_party/musl/src/network/
H A Dsocketpair.c9 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 Dsocketpair.c24 * @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 Dmod.rs18 mod socketpair; modules
34 pub use socketpair::socketpair;
H A Dsocketpair.rs5 /// `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 Dtest_pty.py347 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 Dtest_selectors.py23 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.py188 @unittest.skipUnless(hasattr(socket, 'socketpair'), 'needs socketpair()')
190 rd, wr = socket.socketpair()
232 rd, wr = socket.socketpair()
/third_party/libuv/test/
H A Dtest-pipe-sendmsg.c118 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 Dtest-fork.c138 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 Dsocket_test.cpp61 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 Dtest_sockopt.rs14 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 Dtest_socket.rs284 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 Dsocketpair.h51 #define Curl_socketpair(a,b,c,d) socketpair(a,b,c,d)
H A Dcurl_memory.h84 #undef socketpair macro
/third_party/python/Lib/
H A Dsocket.py13 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 Dsocketpair02.c12 * 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 Dsocketpair01.c10 * 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 Dsocket_test.cpp490 * @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 Dgetpeername01.c162 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 Dsys_socket.c110 {int(*p)(int,int,int,int[]) = socketpair;} in f()
/third_party/musl/libc-test/src/functionalext/fortify/
H A Dsocket_ext.c40 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 Dplatform_interface.h142 #define MHD_pipe_(fdarr) socketpair(AF_LOCAL, SOCK_STREAM, 0, (fdarr))
/third_party/libuv/src/unix/
H A Dtcp.c622 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 Dmount.c322 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 Dtcp.c486 if (socketpair(AF_UNIX, flags, protocol, temp)) in uv_socketpair()
495 if (socketpair(AF_UNIX, type, protocol, temp)) in uv_socketpair()

Completed in 14 milliseconds

123