Searched refs:fds_ (Results 1 – 7 of 7) sorted by relevance
/base/msdp/device_status/services/delegate_task/src/ |
D | delegate_tasks.cpp | 47 if (fds_[0] >= 0) { in ~DelegateTasks() 48 if (close(fds_[0]) < 0) { in ~DelegateTasks() 49 … FI_HILOGE("Close fds_[0] failed, error:%{public}s, fds_[0]:%{public}d", strerror(errno), fds_[0]); in ~DelegateTasks() 51 fds_[0] = -1; in ~DelegateTasks() 53 if (fds_[1] >= 0) { in ~DelegateTasks() 54 if (close(fds_[1]) < 0) { in ~DelegateTasks() 55 … FI_HILOGE("Close fds_[1] failed, error:%{public}s, fds_[1]:%{public}d", strerror(errno), fds_[1]); in ~DelegateTasks() 57 fds_[1] = -1; in ~DelegateTasks() 64 int32_t res = pipe(fds_); in Init() 69 if (fcntl(fds_[0], F_SETFL, O_NONBLOCK) == -1) { in Init() [all …]
|
/base/hiviewdfx/faultloggerd/services/ |
D | fault_logger_pipe.cpp | 60 DFXLOG_DEBUG("%s :: pipe read fd: %d", __func__, fds_[PIPE_READ]); in GetReadFd() 61 return fds_[PIPE_READ]; in GetReadFd() 66 DFXLOG_DEBUG("%s :: pipe write fd: %d", __func__, fds_[PIPE_WRITE]); in GetWriteFd() 69 return fds_[PIPE_WRITE]; in GetWriteFd() 77 if (pipe(fds_) != 0) { in Init() 91 Close(fds_[PIPE_READ]); in Destroy() 92 Close(fds_[PIPE_WRITE]); in Destroy()
|
D | fault_logger_pipe.h | 39 int fds_[2] = {-1, -1}; variable
|
/base/hiviewdfx/hidumper/frameworks/native/src/executor/ |
D | sa_dumper.cpp | 85 fds_[PIPE_READ] = PIPE_INIT; in PipeReader() 86 fds_[PIPE_WRITE] = PIPE_INIT; in PipeReader() 87 pipe(fds_); in PipeReader() 99 return fds_[PIPE_WRITE]; in GetWritePipe() 103 wt_ = std::thread(Execute, id_, fds_[PIPE_READ], spData_); in Run() 107 close(fds_[PIPE_WRITE]); in Stop() 127 int fds_[PIPE_LENGTH]; member in OHOS::HiviewDFX::__anon0680ae890111::PipeReader
|
/base/time/time_service/services/timer/src/ |
D | timer_handler.cpp | 92 : fds_ {fds}, epollFd_ {epollfd} in TimerHandler() 98 for (auto fd : fds_) { in ~TimerHandler() 115 return timerfd_settime(fds_[type], TFD_TIMER_ABSTIME, &spec, nullptr); in Set() 131 ssize_t err = read(fds_[alarm_idx], &unused, sizeof(unused)); in WaitForAlarm()
|
/base/msdp/device_status/services/delegate_task/include/ |
D | delegate_tasks.h | 82 return fds_[0]; in GetReadFd() 99 int32_t fds_[2] {};
|
/base/time/time_service/services/timer/include/ |
D | timer_handler.h | 41 const TimerFds fds_; variable
|