/external/chromium/base/ |
eintr_wrapper.h | 20 #define HANDLE_EINTR(x) ({ \ 30 #define HANDLE_EINTR(x) x
|
platform_file_posix.cc | 70 HANDLE_EINTR(open(name.value().c_str(), open_flags, S_IRUSR | S_IWUSR)); 82 descriptor = HANDLE_EINTR( 139 return !HANDLE_EINTR(close(file)); 146 return HANDLE_EINTR(pread(file, data, size, offset)); 154 return HANDLE_EINTR(pwrite(file, data, size, offset)); 158 return ((file >= 0) && !HANDLE_EINTR(ftruncate(file, length))); 162 return !HANDLE_EINTR(fsync(file));
|
file_descriptor_shuffle.cc | 83 *result = HANDLE_EINTR(dup(fd)); 88 return HANDLE_EINTR(dup2(src, dest)) != -1; 92 int ret = HANDLE_EINTR(close(fd));
|
sync_socket_posix.cc | 67 if (HANDLE_EINTR(close(handles[0])) < 0) 71 if (HANDLE_EINTR(close(handles[1])) < 0) 83 int retval = HANDLE_EINTR(close(handle_));
|
file_util_posix.cc | 368 HANDLE_EINTR(read(fd, buffer + total_read, bytes - total_read)); 410 return HANDLE_EINTR(mkstemp(buffer)); 421 ignore_result(HANDLE_EINTR(close(fd))); 440 ignore_result(HANDLE_EINTR(close(fd))); 447 return ((fd >= 0) && !HANDLE_EINTR(close(fd))); 556 int fd = HANDLE_EINTR(open(filename.value().c_str(), O_RDONLY)); 560 ssize_t bytes_read = HANDLE_EINTR(read(fd, data, size)); 561 if (int ret = HANDLE_EINTR(close(fd)) < 0) 568 int fd = HANDLE_EINTR(creat(filename.value().c_str(), 0666)); 573 if (int ret = HANDLE_EINTR(close(fd)) < 0 [all...] |
dir_reader_linux.h | 40 if (HANDLE_EINTR(close(fd_)))
|
message_pump_libevent.cc | 123 if (HANDLE_EINTR(close(wakeup_pipe_in_)) < 0) 127 if (HANDLE_EINTR(close(wakeup_pipe_out_)) < 0) 276 int nwrite = HANDLE_EINTR(write(wakeup_pipe_in_, &buf, 1)); 349 int nread = HANDLE_EINTR(read(socket, &buf, 1));
|
process_util_posix.cc | 77 pid_t ret_pid = HANDLE_EINTR(waitpid(handle, &status, WNOHANG)); 98 ret_pid = HANDLE_EINTR(waitpid(handle, &status, WNOHANG)); 238 pid_t pid = HANDLE_EINTR(waitpid(process_id, NULL, WNOHANG)); 341 ignore_result(HANDLE_EINTR(close(fd))); 375 int ret = HANDLE_EINTR(close(fd)); 533 int null_fd = HANDLE_EINTR(open("/dev/null", O_RDONLY)); 544 int new_fd = HANDLE_EINTR(dup2(null_fd, STDIN_FILENO)); 619 pid_t ret = HANDLE_EINTR(waitpid(pid, 0, 0)); 698 const pid_t result = HANDLE_EINTR(waitpid(handle, &status, WNOHANG)); 739 if (HANDLE_EINTR(waitpid(handle, &status, 0)) == -1) [all...] |
process_util_unittest.cc | 407 if ((fd = HANDLE_EINTR(dup(i))) != -1) { 414 int written = HANDLE_EINTR(write(write_pipe, &num_open_files, 417 int ret = HANDLE_EINTR(close(write_pipe)); 433 int ret = HANDLE_EINTR(close(fds[1])); 439 HANDLE_EINTR(read(fds[0], &num_open_files, sizeof(num_open_files))); 444 ret = HANDLE_EINTR(close(fds[0])); 464 ret = HANDLE_EINTR(close(sockets[0])); 466 ret = HANDLE_EINTR(close(sockets[1])); 468 ret = HANDLE_EINTR(close(dev_null)); 489 PCHECK(HANDLE_EINTR(close(fds[1])) == 0) [all...] |
/external/chromium/chrome/browser/ |
process_singleton_mac.cc | 74 lock_fd_ = HANDLE_EINTR(open(lock_path_.value().c_str(), 86 int rc = HANDLE_EINTR(flock(lock_fd_, LOCK_EX|LOCK_NB)); 112 int rc = HANDLE_EINTR(close(lock_fd_));
|
crash_handler_host_linux.cc | 88 HANDLE_EINTR(close(process_socket_)); 89 HANDLE_EINTR(close(browser_socket_)); 162 const ssize_t msg_size = HANDLE_EINTR(recvmsg(browser_socket_, &msg, 0)); 201 HANDLE_EINTR(close(reinterpret_cast<int*>(CMSG_DATA(hdr))[i])); 218 HANDLE_EINTR(close(partner_fd)); 220 HANDLE_EINTR(close(signal_fd)); 237 HANDLE_EINTR(close(partner_fd)); 238 HANDLE_EINTR(close(signal_fd)); 241 HANDLE_EINTR(close(partner_fd)); 247 HANDLE_EINTR(close(signal_fd)) [all...] |
process_info_snapshot_mac_unittest.cc | 115 PCHECK(HANDLE_EINTR(close(fds[1])) == 0); 120 PCHECK(HANDLE_EINTR(read(fds[0], buf, 1)) == 1); 135 PCHECK(HANDLE_EINTR(close(fds[0])) == 0);
|
process_singleton_mac_unittest.cc | 42 int fd = HANDLE_EINTR(open(lock_path_.value().c_str(), O_RDONLY)); 50 int rc = HANDLE_EINTR(flock(fd, LOCK_EX|LOCK_NB));
|
browser_main_posix.cc | 49 int rv = HANDLE_EINTR( 121 ret = HANDLE_EINTR(
|
process_singleton_linux.cc | 132 int rv = HANDLE_EINTR(close(fd)); 142 ssize_t rv = HANDLE_EINTR( 172 return HANDLE_EINTR(select(fd + 1, &read_fds, NULL, NULL, &tv)); 187 ssize_t rv = HANDLE_EINTR(read(fd, buf + bytes_read, bufsize - bytes_read)); 416 int ret = HANDLE_EINTR(connect(socket->fd(), 435 int ret = HANDLE_EINTR(connect(socket->fd(), 578 int connection_socket = HANDLE_EINTR(accept( 673 ssize_t rv = HANDLE_EINTR( [all...] |
/external/chromium/chrome/common/ |
multi_process_lock_linux.cc | 83 if (HANDLE_EINTR(close(socket_fd)) < 0) { 95 if (HANDLE_EINTR(close(fd_)) < 0) {
|
service_process_util_posix.cc | 110 if (HANDLE_EINTR(close(sockets_[0]))) { 115 if (HANDLE_EINTR(close(sockets_[1]))) {
|
/external/chromium/base/debug/ |
debugger_posix.cc | 113 ssize_t num_read = HANDLE_EINTR(read(status_fd, buf, sizeof(buf))); 114 if (HANDLE_EINTR(close(status_fd)) < 0)
|
/external/chromium/net/base/ |
listen_socket_unittest.cc | 52 int ret = HANDLE_EINTR( 65 ASSERT_EQ(0, HANDLE_EINTR(close(test_socket_))); 97 int len = HANDLE_EINTR(recv(test_socket_, buf, kReadBufSize, 0)); 167 int r = HANDLE_EINTR(recv(test_socket_, buf, buf_len, 0)); 179 int send_len = HANDLE_EINTR(send(sock, str.data(), len, 0));
|
/external/chromium/net/socket/ |
tcp_server_socket_libevent.cc | 145 int result = HANDLE_EINTR(accept(socket_, addr, &addr_len)); 156 if (HANDLE_EINTR(close(result)) < 0) 174 if (HANDLE_EINTR(close(socket_)) < 0)
|
tcp_client_socket_libevent.cc | 246 if (!HANDLE_EINTR(connect(socket_, current_ai_->ai_addr, 258 int res = HANDLE_EINTR(select(socket_ + 1, 0, &writeset, 0, &tv)); 339 if (HANDLE_EINTR(close(socket_)) < 0) 353 int rv = HANDLE_EINTR(recv(socket_, &c, 1, MSG_PEEK)); 371 int rv = HANDLE_EINTR(recv(socket_, &c, 1, MSG_PEEK)); 391 int nread = HANDLE_EINTR(read(socket_, buf->data(), buf_len)); 465 nwrite = HANDLE_EINTR(sendto(socket_, 483 nwrite = HANDLE_EINTR(write(socket_, buf->data(), buf_len)); 621 bytes_transferred = HANDLE_EINTR(read(socket_, read_buf_->data(), 648 bytes_transferred = HANDLE_EINTR(write(socket_, write_buf_->data() [all...] |
/external/chromium/chrome/browser/debugger/ |
devtools_remote_listen_socket_unittest.cc | 116 int ret = HANDLE_EINTR(connect(test_socket_, 131 int ret = HANDLE_EINTR(close(test_socket_)); 216 int len = HANDLE_EINTR(recv(test_socket_, buf, kReadBufSize, 0)); 278 int send_len = HANDLE_EINTR(send(sock, str.data(), len, 0)); 347 int recv_len = HANDLE_EINTR(recv(test_socket_, buf, buf_len, 0));
|
/external/chromium/net/test/ |
test_server_posix.cc | 70 int rv = HANDLE_EINTR(poll(poll_fds, 1, 83 ssize_t num_bytes = HANDLE_EINTR(read(fd, buffer + bytes_read,
|
/external/chromium/base/files/ |
file_path_watcher_linux.cc | 168 HANDLE_EINTR(select(std::max(inotify_fd_, shutdown_fd_) + 1, 180 int ioctl_result = HANDLE_EINTR(ioctl(inotify_fd_, FIONREAD, 190 ssize_t bytes_read = HANDLE_EINTR(read(inotify_fd_, &buffer[0], 237 ssize_t ret = HANDLE_EINTR(write(shutdown_pipe_[1], "", 1));
|
/external/chromium/net/udp/ |
udp_socket_libevent.cc | 75 if (HANDLE_EINTR(close(socket_)) < 0) 222 rv = HANDLE_EINTR(connect(socket_, addr, addr_len)); 324 HANDLE_EINTR(recvfrom(socket_, 359 return HANDLE_EINTR(sendto(socket_,
|