/external/chromium_org/remoting/host/ |
ipc_util_posix.cc | 27 int pipe_fds[2]; local 28 if (socketpair(AF_UNIX, SOCK_STREAM, 0, pipe_fds) != 0) { 34 if (fcntl(pipe_fds[0], F_SETFL, O_NONBLOCK) == -1 || 35 fcntl(pipe_fds[1], F_SETFL, O_NONBLOCK) == -1) { 37 if (IGNORE_EINTR(close(pipe_fds[0])) < 0) 39 if (IGNORE_EINTR(close(pipe_fds[1])) < 0) 47 base::FileDescriptor fd(pipe_fds[0], false); 54 *client_out = base::File(pipe_fds[1]);
|
/external/chromium_org/sandbox/linux/services/ |
scoped_process_unittest.cc | 76 int pipe_fds[2]; local 77 ASSERT_EQ(0, pipe(pipe_fds)); 78 base::ScopedFD read_end_closer(pipe_fds[0]); 79 base::ScopedFD write_end_closer(pipe_fds[1]); 85 pipe_fds[1] = -1; 87 ASSERT_EQ(0, fcntl(pipe_fds[0], F_SETFL, O_NONBLOCK)); 91 ASSERT_EQ(0, read(pipe_fds[0], &c, 1)); 111 int pipe_fds[2]; local 112 ASSERT_EQ(0, pipe(pipe_fds)); 113 base::ScopedFD read_end_closer(pipe_fds[0]) [all...] |
unix_domain_socket_unittest.cc | 69 int pipe_fds[2]; local 70 CHECK_EQ(0, pipe(pipe_fds)); 71 base::ScopedFD read_pipe(pipe_fds[0]); 72 base::ScopedFD write_pipe(pipe_fds[1]);
|
/external/chromium_org/chromeos/dbus/ |
pipe_reader.cc | 28 int pipe_fds[2]; local 29 const int status = HANDLE_EINTR(pipe(pipe_fds)); 34 base::File pipe_write_end(pipe_fds[1]); 35 // Pass ownership of pipe_fds[0] to data_stream_, which will close it. 37 base::File(pipe_fds[0]), task_runner_));
|
/bionic/tests/ |
fcntl_test.cpp | 158 int pipe_fds[2]; local 159 ASSERT_EQ(0, pipe(pipe_fds)); 166 ssize_t bytes_read = splice(in, 0, pipe_fds[1], NULL, 8*1024, SPLICE_F_MORE | SPLICE_F_MOVE); 169 ssize_t bytes_written = splice(pipe_fds[0], NULL, tf.fd, 0, bytes_read, SPLICE_F_MORE | SPLICE_F_MOVE); 172 close(pipe_fds[0]); 173 close(pipe_fds[1]); 178 int pipe_fds[2]; local 179 ASSERT_EQ(0, pipe(pipe_fds)); 186 ssize_t bytes_written = vmsplice(pipe_fds[1], v, sizeof(v)/sizeof(iovec), 0); 188 close(pipe_fds[1]) [all...] |
/system/core/debuggerd/ |
crasher.c | 153 int pipe_fds[2]; local 154 pipe(pipe_fds); 155 close(pipe_fds[0]); 156 write(pipe_fds[1], "oops", 4);
|
/external/chromium_org/ipc/ |
ipc_send_fds_test.cc | 213 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]); 313 std::pair<int, int> pipe_fds = make_socket_pair(); local 318 pipe_fds.second)); 320 CHECK_EQ(1, HANDLE_EINTR(write(pipe_fds.first, &tmp, 1))); 321 CHECK_EQ(0, IGNORE_EINTR(close(pipe_fds.first)));
|
ipc_channel_posix.cc | 211 int pipe_fds[2]; local 212 if (socketpair(AF_UNIX, SOCK_STREAM, 0, pipe_fds) != 0) { 218 if (fcntl(pipe_fds[0], F_SETFL, O_NONBLOCK) == -1 || 219 fcntl(pipe_fds[1], F_SETFL, O_NONBLOCK) == -1) { 221 if (IGNORE_EINTR(close(pipe_fds[0])) < 0) 223 if (IGNORE_EINTR(close(pipe_fds[1])) < 0) 228 *fd1 = pipe_fds[0]; 229 *fd2 = pipe_fds[1]; [all...] |
ipc_channel_posix_unittest.cc | 218 int pipe_fds[2]; local 219 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, pipe_fds)); 221 ASSERT_GE(fcntl(pipe_fds[0], F_SETFL, O_NONBLOCK), 0); 223 base::FileDescriptor fd(pipe_fds[0], false); 230 ASSERT_TRUE(IGNORE_EINTR(close(pipe_fds[1])) == 0);
|
/external/chromium_org/chrome/browser/mac/ |
relauncher.cc | 124 int pipe_fds[2]; local 125 if (HANDLE_EINTR(pipe(pipe_fds)) != 0) { 136 base::ScopedFD pipe_read_fd(pipe_fds[0]); 137 base::ScopedFD pipe_write_fd(pipe_fds[1]); 160 pipe_write_fd.reset(); // close(pipe_fds[1]);
|
/external/chromium_org/sandbox/linux/suid/client/ |
setuid_sandbox_client.cc | 303 int pipe_fds[2]; local 304 PCHECK(0 == pipe(pipe_fds)); 305 PCHECK(0 == IGNORE_EINTR(close(pipe_fds[1]))); 306 dummy_fd->reset(pipe_fds[0]);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_pty.py | 221 pipe_fds = os.pipe() 222 self.fds.extend(pipe_fds) 223 return pipe_fds
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_pty.py | 221 pipe_fds = os.pipe() 222 self.fds.extend(pipe_fds) 223 return pipe_fds
|
/external/chromium_org/net/tools/epoll_server/ |
epoll_server.cc | 96 int pipe_fds[2]; local 97 if (pipe(pipe_fds) < 0) { 107 read_fd_ = pipe_fds[0]; 108 write_fd_ = pipe_fds[1];
|
/hardware/ti/omap4xxx/hwc/ |
hwc.c | 134 int pipe_fds[2]; /* pipe to event thread */ member in struct:omap4_hwc_device [all...] |