Searched refs:pipe_fds (Results 1 - 8 of 8) sorted by relevance

/external/chromium_org/remoting/host/
H A Dipc_util_posix.cc26 int pipe_fds[2]; local
27 if (socketpair(AF_UNIX, SOCK_STREAM, 0, pipe_fds) != 0) {
33 if (fcntl(pipe_fds[0], F_SETFL, O_NONBLOCK) == -1 ||
34 fcntl(pipe_fds[1], F_SETFL, O_NONBLOCK) == -1) {
36 if (IGNORE_EINTR(close(pipe_fds[0])) < 0)
38 if (IGNORE_EINTR(close(pipe_fds[1])) < 0)
46 base::FileDescriptor fd(pipe_fds[0], false);
53 *client_out = base::FileDescriptor(pipe_fds[1], false);
/external/chromium_org/content/zygote/
H A Dzygote_linux.cc296 int pipe_fds[2] = { -1, -1 }; local
308 if (pipe(pipe_fds) != 0) {
322 fds.push_back(pipe_fds[0]); // kParentFDIndex
331 close(pipe_fds[1]);
337 if (!base::ReadFromFD(pipe_fds[0], reinterpret_cast<char*>(&real_pid),
353 close(pipe_fds[0]);
360 close(pipe_fds[0]);
361 pipe_fds[0] = -1;
401 if (!helper_->AckChild(pipe_fds[1], channel_switch)) {
407 HANDLE_EINTR(write(pipe_fds[
[all...]
/external/chromium_org/ipc/
H A Dipc_send_fds_test.cc213 int pipe_fds[2]; local
214 CHECK_EQ(0, HANDLE_EINTR(socketpair(AF_UNIX, SOCK_STREAM, 0, pipe_fds)));
215 return std::pair<int, int>(pipe_fds[0], pipe_fds[1]);
316 std::pair<int, int> pipe_fds = make_socket_pair(); local
321 pipe_fds.second));
323 CHECK_EQ(1, HANDLE_EINTR(write(pipe_fds.first, &tmp, 1)));
324 CHECK_EQ(0, IGNORE_EINTR(close(pipe_fds.first)));
H A Dipc_channel_posix_unittest.cc211 int pipe_fds[2]; local
212 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, pipe_fds));
214 ASSERT_GE(fcntl(pipe_fds[0], F_SETFL, O_NONBLOCK), 0);
216 base::FileDescriptor fd(pipe_fds[0], false);
222 ASSERT_TRUE(IGNORE_EINTR(close(pipe_fds[1])) == 0);
H A Dipc_channel_posix.cc199 int pipe_fds[2]; local
200 if (socketpair(AF_UNIX, SOCK_STREAM, 0, pipe_fds) != 0) {
206 if (fcntl(pipe_fds[0], F_SETFL, O_NONBLOCK) == -1 ||
207 fcntl(pipe_fds[1], F_SETFL, O_NONBLOCK) == -1) {
209 if (IGNORE_EINTR(close(pipe_fds[0])) < 0)
211 if (IGNORE_EINTR(close(pipe_fds[1])) < 0)
216 *fd1 = pipe_fds[0];
217 *fd2 = pipe_fds[1];
/external/chromium_org/chrome/browser/mac/
H A Drelauncher.cc123 int pipe_fds[2]; local
124 if (HANDLE_EINTR(pipe(pipe_fds)) != 0) {
135 file_util::ScopedFD pipe_read_fd(&pipe_fds[0]);
136 file_util::ScopedFD pipe_write_fd(&pipe_fds[1]);
159 pipe_write_fd.reset(); // close(pipe_fds[1]);
/external/chromium/net/tools/flip_server/
H A Depoll_server.cc96 int pipe_fds[2]; local
97 if (pipe(pipe_fds) < 0) {
107 read_fd_ = pipe_fds[0];
108 write_fd_ = pipe_fds[1];
/external/chromium_org/net/tools/epoll_server/
H A Depoll_server.cc96 int pipe_fds[2]; local
97 if (pipe(pipe_fds) < 0) {
107 read_fd_ = pipe_fds[0];
108 write_fd_ = pipe_fds[1];

Completed in 210 milliseconds