Home
last modified time | relevance | path

Searched refs:HANDLE_EINTR (Results 1 – 25 of 148) sorted by relevance

123456

/external/qemu/android/utils/
Dfilelock.c234 ret = HANDLE_EINTR(write(temp_fd, pid, strlen(pid) + 1)); in filelock_lock()
242 rc = HANDLE_EINTR(lstat(lock->temp, &st_temp)); in filelock_lock()
266 rc = HANDLE_EINTR(link(lock->temp, lock->lock)); in filelock_lock()
269 rc = HANDLE_EINTR(lstat(lock->lock, &st_lock)); in filelock_lock()
279 rc = HANDLE_EINTR(unlink(lock->temp)); in filelock_lock()
305 rc = HANDLE_EINTR(time(&now)); in filelock_lock()
309 int lockfd = HANDLE_EINTR(open(lock->lock,O_RDONLY)); in filelock_lock()
312 int len = HANDLE_EINTR(read(lockfd, buf, sizeof(buf) - 1U)); in filelock_lock()
319 rc = HANDLE_EINTR(fstat(lockfd, &st)); in filelock_lock()
327 rc = HANDLE_EINTR(kill(lockpid, 0)); in filelock_lock()
[all …]
Deintr_wrapper_unittest.cpp39 EXPECT_EQ(0, HANDLE_EINTR(return_einval_after_first_call())); in TEST()
45 EXPECT_EQ(0, HANDLE_EINTR(return_einval_after_first_call())); in TEST()
46 EXPECT_EQ(-1, HANDLE_EINTR(return_einval_after_first_call())); in TEST()
82 EXPECT_EQ(0, HANDLE_EINTR(loop_eintr_10())); in TEST()
113 HANDLE_EINTR(loop_eintr_200()); in TEST()
Deintr_wrapper.h57 # define HANDLE_EINTR(x) (x) macro
59 # define HANDLE_EINTR(x) \
71 # define HANDLE_EINTR(x) \
Dpath.c217 int ret = HANDLE_EINTR(access(path, F_OK)); in path_exists()
229 int ret = HANDLE_EINTR(stat(path, &st)); in path_is_regular()
245 int ret = HANDLE_EINTR(stat(path, &st)); in path_is_dir()
259 return HANDLE_EINTR(access(path, R_OK)) == 0; in path_can_read()
268 return HANDLE_EINTR(access(path, W_OK)) == 0; in path_can_write()
277 return HANDLE_EINTR(access(path, X_OK)) == 0; in path_can_exec()
289 return HANDLE_EINTR(mkdir(path, mode)); in path_mkdir()
398 int ret = HANDLE_EINTR(stat(path, &st)); in path_get_size()
/external/chromium_org/media/video/capture/linux/
Dvideo_capture_device_linux.cc214 device_fd_.reset(HANDLE_EINTR(open(device_name_.id().c_str(), O_RDWR))); in OnAllocateAndStart()
222 if (!((HANDLE_EINTR(ioctl(device_fd_.get(), VIDIOC_QUERYCAP, &cap)) == 0) && in OnAllocateAndStart()
242 while (HANDLE_EINTR(ioctl(device_fd_.get(), VIDIOC_ENUM_FMT, &fmtdesc)) == in OnAllocateAndStart()
262 if (HANDLE_EINTR(ioctl(device_fd_.get(), VIDIOC_S_FMT, &video_fmt)) < 0) { in OnAllocateAndStart()
273 if (HANDLE_EINTR(ioctl(device_fd_.get(), VIDIOC_G_PARM, &streamparm)) >= 0) { in OnAllocateAndStart()
283 if (HANDLE_EINTR(ioctl(device_fd_.get(), VIDIOC_S_PARM, &streamparm)) < in OnAllocateAndStart()
306 HANDLE_EINTR(ioctl(device_fd_.get(), VIDIOC_S_CTRL, &control)); in OnAllocateAndStart()
325 if (HANDLE_EINTR(ioctl(device_fd_.get(), VIDIOC_STREAMON, &type)) == -1) { in OnAllocateAndStart()
342 if (HANDLE_EINTR(ioctl(device_fd_.get(), VIDIOC_STREAMOFF, &type)) < 0) { in OnStopAndDeAllocate()
376 HANDLE_EINTR(select(device_fd_.get() + 1, &r_set, NULL, NULL, &timeout)); in OnCaptureTask()
[all …]
Dvideo_capture_device_factory_linux.cc37 while (HANDLE_EINTR(ioctl(fd, VIDIOC_ENUM_FMT, &fmtdesc)) == 0) { in HasUsableFormats()
69 base::ScopedFD fd(HANDLE_EINTR(open(device_name.id().c_str(), O_RDONLY))); in Create()
91 base::ScopedFD fd(HANDLE_EINTR(open(unique_id.c_str(), O_RDONLY))); in GetDeviceNames()
98 if ((HANDLE_EINTR(ioctl(fd.get(), VIDIOC_QUERYCAP, &cap)) == 0) && in GetDeviceNames()
119 base::ScopedFD fd(HANDLE_EINTR(open(device.id().c_str(), O_RDONLY))); in GetDeviceSupportedFormats()
130 while (HANDLE_EINTR(ioctl(fd.get(), VIDIOC_ENUM_FMT, &pixel_format)) == 0) { in GetDeviceSupportedFormats()
142 while (HANDLE_EINTR(ioctl(fd.get(), VIDIOC_ENUM_FRAMESIZES, &frame_size)) == in GetDeviceSupportedFormats()
159 while (HANDLE_EINTR(ioctl( in GetDeviceSupportedFormats()
/external/qemu/android/base/
DEintrWrapper_unittest.cpp74 EXPECT_EQ(0, HANDLE_EINTR(returnEinvalAfterFirstCall())); in TEST_F()
80 EXPECT_EQ(0, HANDLE_EINTR(returnEinvalAfterFirstCall())); in TEST_F()
81 EXPECT_EQ(-1, HANDLE_EINTR(returnEinvalAfterFirstCall())); in TEST_F()
117 EXPECT_EQ(0, HANDLE_EINTR(loopEintr10())); in TEST_F()
132 HANDLE_EINTR(loopEintr200()); in TEST_F()
DEintrWrapper.h59 # define HANDLE_EINTR(x) (x) macro
61 # define HANDLE_EINTR(x) \
73 # define HANDLE_EINTR(x) \
/external/chromium_org/base/process/
Dkill_posix.cc53 return HANDLE_EINTR(waitpid(handle, status, 0)) > 0; in WaitpidWithTimeout()
56 pid_t ret_pid = HANDLE_EINTR(waitpid(handle, status, WNOHANG)); in WaitpidWithTimeout()
76 ret_pid = HANDLE_EINTR(waitpid(handle, status, WNOHANG)); in WaitpidWithTimeout()
91 const pid_t result = HANDLE_EINTR(waitpid(handle, &status, in GetTerminationStatusImpl()
155 pid_t pid = HANDLE_EINTR(waitpid(process_id, NULL, WNOHANG)); in KillProcess()
211 if (HANDLE_EINTR(waitpid(handle, &status, 0)) == -1) { in WaitForExitCode()
281 int result = HANDLE_EINTR(kevent(kq.get(), &change, 1, NULL, 0, NULL)); in WaitForSingleNonChildProcess()
391 const pid_t result = HANDLE_EINTR(waitpid(child, NULL, WNOHANG)); in IsChildDead()
421 pid_t r = HANDLE_EINTR(waitpid(child_, NULL, 0)); in WaitForChildToDie()
442 if (HANDLE_EINTR(waitpid(child_, NULL, 0)) < 0) in WaitForChildToDie()
Dkill_mac.cc25 const pid_t result = HANDLE_EINTR(waitpid(child, NULL, 0)); in BlockingReap()
80 ScopedFD kq(HANDLE_EINTR(kqueue())); in WaitForChildToDie()
86 result = HANDLE_EINTR(kevent(kq.get(), &change, 1, NULL, 0, NULL)); in WaitForChildToDie()
99 result = HANDLE_EINTR(waitpid(child, NULL, WNOHANG)); in WaitForChildToDie()
/external/chromium_org/base/files/
Dfile_posix.cc52 return HANDLE_EINTR(ftruncate(file, length)); in CallFtruncate()
56 return HANDLE_EINTR(fsync(file)); in CallFsync()
82 if (HANDLE_EINTR(fcntl(file, do_lock ? F_SETLK : F_UNLCK, &lock)) == -1) in CallFctnlFlock()
227 int descriptor = HANDLE_EINTR(open(name.value().c_str(), open_flags, mode)); in InitializeUnsafe()
235 descriptor = HANDLE_EINTR(open(name.value().c_str(), open_flags, mode)); in InitializeUnsafe()
302 rv = HANDLE_EINTR(pread(file_.get(), data + bytes_read, in Read()
322 rv = HANDLE_EINTR(read(file_.get(), data + bytes_read, size - bytes_read)); in ReadAtCurrentPos()
336 return HANDLE_EINTR(pread(file_.get(), data, size, offset)); in ReadNoBestEffort()
345 return HANDLE_EINTR(read(file_.get(), data, size)); in ReadAtCurrentPosNoBestEffort()
361 rv = HANDLE_EINTR(pwrite(file_.get(), data + bytes_written, in Write()
[all …]
Dfile_util_posix.cc156 return HANDLE_EINTR(mkstemp(buffer)); in CreateAndOpenFdForTemporaryFile()
376 HANDLE_EINTR(read(fd, buffer + total_read, bytes - total_read)); in ReadFromFD()
435 if (HANDLE_EINTR(chmod(path.value().c_str(), updated_mode_bits)) != 0) in SetPosixFilePermissions()
669 int fd = HANDLE_EINTR(open(filename.value().c_str(), O_RDONLY)); in ReadFile()
673 ssize_t bytes_read = HANDLE_EINTR(read(fd, data, max_size)); in ReadFile()
681 int fd = HANDLE_EINTR(creat(filename.value().c_str(), 0640)); in WriteFile()
697 HANDLE_EINTR(write(fd, data + bytes_written_total, in WriteFileDescriptor()
708 int fd = HANDLE_EINTR(open(filename.value().c_str(), O_WRONLY | O_APPEND)); in AppendToFile()
865 int infile = HANDLE_EINTR(open(from_path.value().c_str(), O_RDONLY)); in CopyFileUnsafe()
869 int outfile = HANDLE_EINTR(creat(to_path.value().c_str(), 0666)); in CopyFileUnsafe()
[all …]
/external/chromium_org/sandbox/linux/services/
Dscoped_process.cc51 CHECK_EQ(1, HANDLE_EINTR(write(pipe_fds_[1], kSynchronisationChar, 1))); in ScopedProcess()
67 PCHECK(0 == HANDLE_EINTR( in ~ScopedProcess()
83 int ret = HANDLE_EINTR( in WaitForExit()
101 int ret = HANDLE_EINTR(read(pipe_fds_[0], &c, 1)); in WaitForClosureToRun()
Dinit_process_reaper.cc60 CHECK(HANDLE_EINTR(send(sync_fds[1], "C", 1, MSG_NOSIGNAL)) == 1); in CreateInitProcessReaper()
68 HANDLE_EINTR(waitid(P_ALL, 0, &reaped_child_info, WEXITED)); in CreateInitProcessReaper()
91 int read_ret = HANDLE_EINTR(read(sync_fds[0], &should_continue, 1)); in CreateInitProcessReaper()
/external/chromium_org/base/posix/
Deintr_wrapper.h27 #define HANDLE_EINTR(x) ({ \ macro
37 #define HANDLE_EINTR(x) ({ \ macro
62 #define HANDLE_EINTR(x) (x) macro
/external/chromium_org/mojo/embedder/
Dplatform_channel_utils_posix.cc55 return HANDLE_EINTR(write(h.fd, bytes, num_bytes)); in PlatformChannelWrite()
69 return HANDLE_EINTR(writev(h.fd, iov, static_cast<int>(num_iov))); in PlatformChannelWritev()
74 return HANDLE_EINTR(sendmsg(h.fd, &msg, kSendFlags)); in PlatformChannelWritev()
104 return HANDLE_EINTR(sendmsg(h.fd, &msg, kSendFlags)); in PlatformChannelSendmsgWithHandles()
131 ssize_t result = HANDLE_EINTR(sendmsg(h.fd, &msg, kSendFlags)); in PlatformChannelSendHandles()
158 ssize_t result = HANDLE_EINTR(recvmsg(h.fd, &msg, MSG_DONTWAIT)); in PlatformChannelRecvmsg()
/external/chromium_org/tools/android/forwarder2/
Dsocket.cc174 if (HANDLE_EINTR(bind(socket_, addr_ptr_, addr_len_)) < 0 || in BindAndListen()
175 HANDLE_EINTR(listen(socket_, SOMAXCONN)) < 0) { in BindAndListen()
213 int new_socket_fd = HANDLE_EINTR(accept(socket_, NULL, NULL)); in Accept()
228 if (HANDLE_EINTR(connect(socket_, addr_ptr_, addr_len_)) < 0 && in Connect()
316 int ret = HANDLE_EINTR(read(socket_, buffer, buffer_size)); in Read()
326 int ret = HANDLE_EINTR(read(socket_, buffer, buffer_size)); in NonBlockingRead()
339 int ret = HANDLE_EINTR(send(socket_, buffer, count, MSG_NOSIGNAL)); in Write()
349 int ret = HANDLE_EINTR(send(socket_, buffer, count, MSG_NOSIGNAL)); in NonBlockingWrite()
419 if (HANDLE_EINTR( in WaitForEvent()
Dpipe_notifier.cc35 int ret = HANDLE_EINTR(write(sender_fd_, "1", 1)); in Notify()
45 int ret = HANDLE_EINTR(read(receiver_fd_, &c, 1)); in Reset()
/external/chromium_org/content/common/gpu/media/
Dtegra_v4l2_video_device.cc106 return HANDLE_EINTR(TegraV4L2_Ioctl(device_fd_, flags, arg)); in Ioctl()
110 if (HANDLE_EINTR(TegraV4L2_Poll(device_fd_, poll_device, event_pending)) == in Poll()
131 if (HANDLE_EINTR(TegraV4L2_SetDevicePollInterrupt(device_fd_)) == -1) { in SetDevicePollInterrupt()
139 if (HANDLE_EINTR(TegraV4L2_ClearDevicePollInterrupt(device_fd_)) == -1) { in ClearDevicePollInterrupt()
164 device_fd_ = HANDLE_EINTR( in Initialize()
Dexynos_v4l2_video_device.cc45 return HANDLE_EINTR(ioctl(device_fd_, request, arg)); in Ioctl()
65 if (HANDLE_EINTR(poll(pollfds, nfds, -1)) == -1) { in Poll()
89 if (HANDLE_EINTR(write(device_poll_interrupt_fd_, &buf, sizeof(buf))) == -1) { in SetDevicePollInterrupt()
100 if (HANDLE_EINTR(read(device_poll_interrupt_fd_, &buf, sizeof(buf))) == -1) { in ClearDevicePollInterrupt()
128 device_fd_ = HANDLE_EINTR(open(device_path, O_RDWR | O_NONBLOCK | O_CLOEXEC)); in Initialize()
/external/chromium_org/chrome/browser/extensions/api/webcam_private/
Dwebcam_private_api_chromeos.cc47 return base::ScopedFD(HANDLE_EINTR(open(device_id.c_str(), 0))); in OpenWebcam()
52 HANDLE_EINTR(ioctl(fd, VIDIOC_S_CTRL, &v4l2_ctrl)); in SetWebcamParameter()
58 if (HANDLE_EINTR(ioctl(fd, VIDIOC_G_CTRL, &v4l2_ctrl))) in GetWebcamParameter()
205 HANDLE_EINTR(ioctl(fd.get(), VIDIOC_S_CTRL, &v4l2_ctrl)); in RunSync()
210 HANDLE_EINTR(ioctl(fd.get(), VIDIOC_S_CTRL, &v4l2_ctrl)); in RunSync()
/external/chromium_org/tools/android/common/
Dadb_connection.cc70 if (HANDLE_EINTR(connect(host_socket, reinterpret_cast<sockaddr*>(&addr), in ConnectAdbHostSocket()
80 int ret = HANDLE_EINTR(send(host_socket, request + bytes_sent, in ConnectAdbHostSocket()
94 int response_length = HANDLE_EINTR(recv(host_socket, response, in ConnectAdbHostSocket()
/external/chromium_org/ipc/
Dunix_domain_socket_util.cc56 if (HANDLE_EINTR(fcntl(fd.get(), F_SETFL, O_NONBLOCK)) < 0) { in MakeUnixAddrForPath()
130 if (HANDLE_EINTR(connect(fd.get(), reinterpret_cast<sockaddr*>(&unix_addr), in CreateClientUnixDomainSocket()
187 base::ScopedFD accept_fd(HANDLE_EINTR(accept(server_listen_fd, NULL, 0))); in ServerAcceptConnection()
190 if (HANDLE_EINTR(fcntl(accept_fd.get(), F_SETFL, O_NONBLOCK)) < 0) { in ServerAcceptConnection()
/external/chromium_org/mojo/common/test/
Dtest_utils_posix.cc27 ssize_t result = HANDLE_EINTR(write(handle.fd, buffer, bytes_to_write)); in BlockingWrite()
48 ssize_t result = HANDLE_EINTR(read(handle.fd, buffer, buffer_size)); in BlockingRead()
63 ssize_t result = HANDLE_EINTR(read(handle.fd, buffer, buffer_size)); in NonBlockingRead()
/external/chromium_org/third_party/webrtc/modules/audio_device/android/
Dlow_latency_event_posix.cc15 #define HANDLE_EINTR(x) ({ \ macro
85 ssize_t bytes_written = HANDLE_EINTR(write(handles_[kWriteHandle], buffer, in WriteFd()
95 ssize_t bytes_read = HANDLE_EINTR(read(handles_[kReadHandle], buffer, bytes)); in ReadFd()

123456