/external/libchrome/base/posix/ |
eintr_wrapper.h | 14 // Don't wrap close calls in HANDLE_EINTR. Use IGNORE_EINTR if the return 28 #define HANDLE_EINTR(x) ({ \ 38 #define HANDLE_EINTR(x) ({ \ 63 #define HANDLE_EINTR(x) (x)
|
file_descriptor_shuffle.cc | 87 *result = HANDLE_EINTR(dup(fd)); 92 return HANDLE_EINTR(dup2(src, dest)) != -1;
|
/external/google-breakpad/src/common/tests/ |
file_utils.cc | 45 int infile = HANDLE_EINTR(open(from_path, O_RDONLY)); 51 int outfile = HANDLE_EINTR(creat(to_path, 0666)); 64 ssize_t bytes_read = HANDLE_EINTR(read(infile, buffer, sizeof(buffer))); 74 ssize_t bytes_written_partial = HANDLE_EINTR(write( 100 int fd = HANDLE_EINTR(open(path, O_RDONLY)); 109 *buffer_size = HANDLE_EINTR(read(fd, buffer, *buffer_size)); 123 int fd = HANDLE_EINTR(open(path, O_CREAT | O_TRUNC | O_WRONLY, S_IRWXU)); 136 HANDLE_EINTR(write(fd, data + bytes_written_total,
|
/external/google-breakpad/src/common/linux/ |
eintr_wrapper.h | 39 #define HANDLE_EINTR(x) ({ \
|
/external/libchrome/base/ |
rand_util_posix.cc | 29 URandomFd() : fd_(HANDLE_EINTR(open("/dev/urandom", O_RDONLY))) { 33 URandomFd() : fd_(HANDLE_EINTR(open("/dev/urandom", O_RDONLY | O_CLOEXEC))) {
|
/build/kati/ |
fileutil.h | 53 #define HANDLE_EINTR(x) \
|
file.cc | 45 ssize_t r = HANDLE_EINTR(read(fd, &buf_[0], len));
|
/external/libchrome/mojo/core/test/ |
test_utils.cc | 19 int rv = HANDLE_EINTR(dup(fileno(fp.get())));
|
/external/libchrome/base/files/ |
file_posix.cc | 54 return HANDLE_EINTR(ftruncate(file, length)); 81 if (HANDLE_EINTR(fcntl(file, F_SETLK, &lock)) == -1) 216 rv = HANDLE_EINTR(pread(file_.get(), data + bytes_read, 238 rv = HANDLE_EINTR(read(file_.get(), data + bytes_read, size - bytes_read)); 252 return HANDLE_EINTR(pread(file_.get(), data, size, offset)); 262 return HANDLE_EINTR(read(file_.get(), data, size)); 285 rv = HANDLE_EINTR(pwrite64(file_.get(), data + bytes_written, 288 rv = HANDLE_EINTR(pwrite(file_.get(), data + bytes_written, 311 rv = HANDLE_EINTR(write(file_.get(), data + bytes_written, 329 return HANDLE_EINTR(write(file_.get(), data, size)) [all...] |
/external/google-breakpad/src/client/linux/crash_generation/ |
crash_generation_client.cc | 75 ssize_t ret = HANDLE_EINTR(sys_sendmsg(server_fd_, &msg, 0)); 84 IGNORE_RET(HANDLE_EINTR(sys_read(fds[0], &b, 1)));
|
/external/libchrome/base/memory/ |
shared_memory_posix.cc | 124 fd.reset(HANDLE_EINTR( 135 fd.reset(HANDLE_EINTR( 140 fd.reset(HANDLE_EINTR(open(path.value().c_str(), O_RDWR | O_APPEND))); 163 readonly_fd.reset(HANDLE_EINTR(open(path.value().c_str(), O_RDONLY))); 178 if (HANDLE_EINTR(ftruncate(fd.get(), options.size)) != 0) 232 ScopedFD fd(HANDLE_EINTR(open(path.value().c_str(), mode))); 233 ScopedFD readonly_fd(HANDLE_EINTR(open(path.value().c_str(), O_RDONLY)));
|
shared_memory_helper.cc | 59 readonly_fd->reset(HANDLE_EINTR(open(path->value().c_str(), O_RDONLY))); 97 *mapped_file = HANDLE_EINTR(dup(fd.get()));
|
shared_memory_handle_posix.cc | 56 int duped_handle = HANDLE_EINTR(dup(file_descriptor_.fd));
|
/external/libbrillo/brillo/ |
file_utils.cc | 68 base::ScopedFD scoped_fd(HANDLE_EINTR(openat( 121 base::ScopedFD scoped_fd(HANDLE_EINTR(openat( 172 HANDLE_EINTR(fchmod(scoped_fd.get(), new_file_permissions)) == -1) { 221 int fd = HANDLE_EINTR(open(path.value().c_str(), flags)); 229 (data_sync ? HANDLE_EINTR(fdatasync(fd)) : HANDLE_EINTR(fsync(fd))); 268 HANDLE_EINTR(open(temp_name.c_str(), O_CREAT | O_EXCL | O_WRONLY, mode)); 278 HANDLE_EINTR(write(fd, data + position, size - position)); 288 if (HANDLE_EINTR(fdatasync(fd)) < 0) {
|
process.cc | 250 HANDLE_EINTR(open(input_file_.c_str(), 261 if (HANDLE_EINTR(dup2(input_handle, STDIN_FILENO)) < 0) { 270 int output_handle = HANDLE_EINTR(open( 278 HANDLE_EINTR(dup2(output_handle, STDOUT_FILENO)); 279 HANDLE_EINTR(dup2(output_handle, STDERR_FILENO)); 334 if (HANDLE_EINTR(waitpid(pid_, &status, 0)) < 0) {
|
/external/libchrome/base/test/ |
test_file_util_posix.cc | 33 int rv = HANDLE_EINTR(chmod(path.value().c_str(), stat_buf.st_mode)); 67 int rv = HANDLE_EINTR(chmod(path.value().c_str(), *mode));
|
/external/libchrome/mojo/public/cpp/platform/ |
socket_utils_posix.cc | 84 return HANDLE_EINTR(write(socket, bytes, num_bytes)); 94 return HANDLE_EINTR(writev(socket, iov, static_cast<int>(num_iov))); 99 return HANDLE_EINTR(sendmsg(socket, &msg, kSendmsgFlags)); 126 return HANDLE_EINTR(sendmsg(socket, &msg, kSendmsgFlags)); 142 HANDLE_EINTR(recvmsg(socket, &msg, block ? 0 : MSG_DONTWAIT)); 179 base::ScopedFD accepted_handle(HANDLE_EINTR(accept(server_fd, nullptr, 0)));
|
/external/libchrome/base/debug/ |
proc_maps_linux.cc | 52 base::ScopedFD fd(HANDLE_EINTR(open("/proc/self/maps", O_RDONLY))); 66 ssize_t bytes_read = HANDLE_EINTR(read(fd.get(), buffer, kReadSize));
|
/external/google-breakpad/src/common/linux/tests/ |
auto_testfile.h | 109 ssize_t r = HANDLE_EINTR(write(fd_, text, text_len));
|
/external/libchrome/base/process/ |
process_posix.cc | 57 return HANDLE_EINTR(waitpid(handle, status, 0)) > 0; 60 pid_t ret_pid = HANDLE_EINTR(waitpid(handle, status, WNOHANG)); 80 ret_pid = HANDLE_EINTR(waitpid(handle, status, WNOHANG)); 107 int result = HANDLE_EINTR(kevent(kq.get(), &change, 1, NULL, 0, NULL));
|
/external/libchrome/ipc/ |
ipc_platform_file.cc | 67 int fd = close_source_handle ? handle : HANDLE_EINTR(::dup(handle));
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
minidump_writer_unittest.cc | 75 IGNORE_RET(HANDLE_EINTR(read(fds[0], &b, sizeof(b)))); 104 HANDLE_EINTR(read(fds[0], &b, sizeof(b))); 169 IGNORE_RET(HANDLE_EINTR(read(fds[0], &b, sizeof(b)))); 290 IGNORE_RET(HANDLE_EINTR(read(fds[0], &b, sizeof(b)))); 379 const int r = HANDLE_EINTR(poll(&pfd, 1, 1000)); 383 const int nr = HANDLE_EINTR(read(fds[0], &junk, sizeof(junk))); 456 HANDLE_EINTR(read(fds[0], &b, sizeof(b))); 514 HANDLE_EINTR(read(fds[0], &b, sizeof(b))); 623 const int r = HANDLE_EINTR(poll(&pfd, 1, 1000));
|
/external/libbrillo/brillo/streams/ |
file_stream.cc | 42 return HANDLE_EINTR(read(fd_, buf, nbyte)); 46 return HANDLE_EINTR(write(fd_, buf, nbyte)); 68 return HANDLE_EINTR(ftruncate(fd_, length)); 147 int res = HANDLE_EINTR(select(fd_ + 1, &read_fds, &write_fds, &error_fds, 242 int fd = HANDLE_EINTR(open(path.value().c_str(), open_flags, creation_mode)); 247 if (HANDLE_EINTR(fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_NONBLOCK)) < 0) { 274 int fd = HANDLE_EINTR(open(path.value().c_str(), open_flags, creation_mode)); 298 int fd_flags = HANDLE_EINTR(fcntl(file_descriptor, F_GETFL)); 314 if (HANDLE_EINTR(fcntl(file_descriptor, F_SETFL, fd_flags)) < 0) {
|
/external/libbrillo/brillo/message_loops/ |
message_loop_unittest.cc | 157 EXPECT_EQ(0, HANDLE_EINTR(close(pipe.writer))); 174 EXPECT_EQ(1, HANDLE_EINTR(write(pipe.writer, "a", 1))); 191 EXPECT_EQ(1, HANDLE_EINTR(write(pipe.writer, "a", 1))); 209 EXPECT_EQ(1, HANDLE_EINTR(write(socks.right, "a", 1))); 342 EXPECT_EQ(1, HANDLE_EINTR(read(pipes[i].reader, &c, 1))); 357 HANDLE_EINTR(write(pipes[i].writer, blob.data(), blob.size())));
|
/external/libchrome/base/message_loop/ |
message_pump_glib.cc | 237 const int num_bytes = HANDLE_EINTR(read(wakeup_pipe_read_, msg, 2)); 342 if (HANDLE_EINTR(write(wakeup_pipe_write_, &msg, 1)) != 1) {
|