Home
last modified time | relevance | path

Searched refs:send_fds (Results 1 – 25 of 61) sorted by relevance

123

/dports/www/chromium-legacy/chromium-88.0.4324.182/sandbox/linux/syscall_broker/
H A Dbroker_simple_message.cc37 base::span<const int> send_fds, in SendRecvMsgWithFlagsMultipleFds() argument
41 RAW_CHECK(send_fds.size() + 1 <= base::UnixDomainSocket::kMaxFileDescriptors); in SendRecvMsgWithFlagsMultipleFds()
52 for (size_t i = 0; i < send_fds.size(); i++) { in SendRecvMsgWithFlagsMultipleFds()
53 send_fds_with_reply_socket[i + 1] = send_fds[i]; in SendRecvMsgWithFlagsMultipleFds()
80 base::span<const int> send_fds) { in SendMsgMultipleFds() argument
84 RAW_CHECK(send_fds.size() <= base::UnixDomainSocket::kMaxFileDescriptors); in SendMsgMultipleFds()
92 const unsigned control_len = CMSG_SPACE(send_fds.size() * sizeof(int)); in SendMsgMultipleFds()
94 if (send_fds.size() >= 1) { in SendMsgMultipleFds()
103 for (size_t i = 0; i < send_fds.size(); i++) { in SendMsgMultipleFds()
104 if (send_fds[i] < 0) in SendMsgMultipleFds()
[all …]
H A Dbroker_simple_message_unittest.cc783 int send_fds[2]; in ReceiveThreeFdsSendTwoBack() local
784 send_fds[0] = recv_fds[1].get(); in ReceiveThreeFdsSendTwoBack()
785 send_fds[1] = recv_fds[2].get(); in ReceiveThreeFdsSendTwoBack()
787 ASSERT_TRUE(resp.SendMsgMultipleFds(recv_fds[0].get(), {send_fds})); in ReceiveThreeFdsSendTwoBack()
852 int send_fds[2]; in TEST_F() local
853 send_fds[0] = STDOUT_FILENO; in TEST_F()
854 send_fds[1] = STDIN_FILENO; in TEST_F()
855 ASSERT_TRUE(msg.SendMsgMultipleFds(ipc_writer.get(), {send_fds})); in TEST_F()
875 int send_fds[2]; in TEST_F() local
876 send_fds[0] = STDOUT_FILENO; in TEST_F()
[all …]
H A Dbroker_simple_message.h47 base::span<const int> send_fds,
56 bool SendMsgMultipleFds(int fd, base::span<const int> send_fds);
/dports/archivers/maxcso/maxcso-1.10.0/libuv/test/
H A Dtest-pipe-sendmsg.c111 int send_fds[ARRAY_SIZE(incoming)]; in TEST_IMPL() local
119 for (i = 0; i < ARRAY_SIZE(send_fds); i += 2) in TEST_IMPL()
120 ASSERT(0 == socketpair(AF_UNIX, SOCK_STREAM, 0, send_fds + i)); in TEST_IMPL()
121 ASSERT(i == ARRAY_SIZE(send_fds)); in TEST_IMPL()
132 msg.msg_controllen = CMSG_LEN(sizeof(send_fds)); in TEST_IMPL()
144 for (i = 0; i < ARRAY_SIZE(send_fds); i++) in TEST_IMPL()
145 pi[i] = send_fds[i]; in TEST_IMPL()
/dports/devel/py-uvloop/uvloop-0.16.0/vendor/libuv/test/
H A Dtest-pipe-sendmsg.c111 int send_fds[ARRAY_SIZE(incoming)]; in TEST_IMPL() local
119 for (i = 0; i < ARRAY_SIZE(send_fds); i += 2) in TEST_IMPL()
120 ASSERT(0 == socketpair(AF_UNIX, SOCK_STREAM, 0, send_fds + i)); in TEST_IMPL()
121 ASSERT(i == ARRAY_SIZE(send_fds)); in TEST_IMPL()
132 msg.msg_controllen = CMSG_LEN(sizeof(send_fds)); in TEST_IMPL()
144 for (i = 0; i < ARRAY_SIZE(send_fds); i++) in TEST_IMPL()
145 pi[i] = send_fds[i]; in TEST_IMPL()
/dports/devel/libuv/libuv-v1.42.0/test/
H A Dtest-pipe-sendmsg.c111 int send_fds[ARRAY_SIZE(incoming)]; in TEST_IMPL() local
119 for (i = 0; i < ARRAY_SIZE(send_fds); i += 2) in TEST_IMPL()
120 ASSERT(0 == socketpair(AF_UNIX, SOCK_STREAM, 0, send_fds + i)); in TEST_IMPL()
121 ASSERT(i == ARRAY_SIZE(send_fds)); in TEST_IMPL()
132 msg.msg_controllen = CMSG_LEN(sizeof(send_fds)); in TEST_IMPL()
144 for (i = 0; i < ARRAY_SIZE(send_fds); i++) in TEST_IMPL()
145 pi[i] = send_fds[i]; in TEST_IMPL()
/dports/www/R-cran-httpuv/httpuv/src/libuv/test/
H A Dtest-pipe-sendmsg.c111 int send_fds[ARRAY_SIZE(incoming)]; in TEST_IMPL() local
119 for (i = 0; i < ARRAY_SIZE(send_fds); i += 2) in TEST_IMPL()
120 ASSERT(0 == socketpair(AF_UNIX, SOCK_STREAM, 0, send_fds + i)); in TEST_IMPL()
121 ASSERT(i == ARRAY_SIZE(send_fds)); in TEST_IMPL()
132 msg.msg_controllen = CMSG_LEN(sizeof(send_fds)); in TEST_IMPL()
144 for (i = 0; i < ARRAY_SIZE(send_fds); i++) in TEST_IMPL()
145 pi[i] = send_fds[i]; in TEST_IMPL()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/crashpad/crashpad/util/linux/
H A Dsocket_test.cc101 ScopedFileHandle send_fds[UnixCredentialSocket::kMaxSendRecvMsgFDs]; in TEST() local
107 &send_fds[index], &recv_fds[index])); in TEST()
131 HANDLE_EINTR(send(send_fds[index].get(), &c, sizeof(c), MSG_NOSIGNAL)), in TEST()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/crashpad/crashpad/util/linux/
H A Dsocket_test.cc100 ScopedFileHandle send_fds[UnixCredentialSocket::kMaxSendRecvMsgFDs]; in TEST() local
106 &send_fds[index], &recv_fds[index])); in TEST()
130 HANDLE_EINTR(send(send_fds[index].get(), &c, sizeof(c), MSG_NOSIGNAL)), in TEST()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/sandbox/linux/integration_tests/
H A Dnamespace_unix_domain_socket_unittest.cc75 std::vector<int> send_fds; in SendHello() local
76 send_fds.push_back(write_pipe.get()); in SendHello()
77 CHECK(base::UnixDomainSocket::SendMsg(fd, kHello, sizeof(kHello), send_fds)); in SendHello()
/dports/www/chromium-legacy/chromium-88.0.4324.182/sandbox/linux/integration_tests/
H A Dnamespace_unix_domain_socket_unittest.cc76 std::vector<int> send_fds; in SendHello() local
77 send_fds.push_back(write_pipe.get()); in SendHello()
78 CHECK(base::UnixDomainSocket::SendMsg(fd, kHello, sizeof(kHello), send_fds)); in SendHello()
/dports/www/chromium-legacy/chromium-88.0.4324.182/base/posix/
H A Dunix_domain_socket.cc266 std::vector<int> send_fds; in SendRecvMsgWithFlags() local
267 send_fds.push_back(send_sock.get()); in SendRecvMsgWithFlags()
268 if (!SendMsg(fd, request.data(), request.size(), send_fds)) in SendRecvMsgWithFlags()
H A Dunix_domain_socket_unittest.cc143 std::vector<int> send_fds(UnixDomainSocket::kMaxFileDescriptors, in TEST() local
146 send_fds)); in TEST()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/base/posix/
H A Dunix_domain_socket.cc265 std::vector<int> send_fds; in SendRecvMsgWithFlags() local
266 send_fds.push_back(send_sock.get()); in SendRecvMsgWithFlags()
267 if (!SendMsg(fd, request.data(), request.size(), send_fds)) in SendRecvMsgWithFlags()
H A Dunix_domain_socket_unittest.cc143 std::vector<int> send_fds(UnixDomainSocket::kMaxFileDescriptors, in TEST() local
146 send_fds)); in TEST()
/dports/www/chromium-legacy/chromium-88.0.4324.182/chromecast/tracing/
H A Dtracing_service_main.cc291 std::vector<int> send_fds; in SendTracePipeToClient() local
292 send_fds.push_back(read_end.get()); in SendTracePipeToClient()
294 sizeof(response), send_fds)) { in SendTracePipeToClient()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/perfetto/include/perfetto/ext/base/
H A Dunix_socket.h86 const int* send_fds = nullptr,
245 bool Send(const void* msg, size_t len, const int* send_fds, size_t num_fds);
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/perfetto/include/perfetto/ext/base/
H A Dunix_socket.h86 const int* send_fds = nullptr,
243 bool Send(const void* msg, size_t len, const int* send_fds, size_t num_fds);
/dports/x11/libxcb/libxcb-1.14/src/
H A Dxcb_out.c186 static void send_fds(xcb_connection_t *c, int *fds, unsigned int num_fds) in send_fds() function
316 send_fds(c, fds, num_fds); in xcb_send_request_with_fds64()
368 send_fds(c, &fds[0], 1); in xcb_send_fd()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/perfetto/src/base/
H A Dunix_socket.cc346 const int* send_fds, in Send() argument
367 memcpy(CMSG_DATA(cmsg), send_fds, num_fds * sizeof(int)); in Send()
701 const int* send_fds, in Send() argument
709 const ssize_t sz = sock_raw_.Send(msg, len, send_fds, num_fds); in Send()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/perfetto/src/base/
H A Dunix_socket.cc317 const int* send_fds, in Send() argument
338 memcpy(CMSG_DATA(cmsg), send_fds, num_fds * sizeof(int)); in Send()
671 const int* send_fds, in Send() argument
679 const ssize_t sz = sock_raw_.Send(msg, len, send_fds, num_fds); in Send()
/dports/www/xsp/xsp-4.5/lib/
H A Dfpm_helper.c120 int send_fds(int sock, const int *fds, unsigned n_fds) in send_fds() function
/dports/x11/xtrans/xtrans-1.4.0/
H A DXtranssock.c2039 discardFd(&ciptr->send_fds, NULL, 0); in cleanupFds()
2065 appendFd(&ciptr->send_fds, fd, do_close); in TRANS()
2194 if (ciptr->send_fds) in TRANS()
2197 int nfd = nFd(&ciptr->send_fds); in TRANS()
2198 struct _XtransConnFd *cf = ciptr->send_fds; in TRANS()
2224 discardFd(&ciptr->send_fds, cf, 0); in TRANS()
2248 if (ciptr->send_fds) in TRANS()
H A DXtransint.h149 struct _XtransConnFd *send_fds; member
/dports/devel/py-anyio/anyio-3.4.0/src/anyio/abc/
H A D_sockets.py91 async def send_fds(self, message: bytes, fds: Collection[Union[int, IOBase]]) -> None: member in UNIXSocketStream

123