Lines Matching refs:fd
31 int epollCtlAdd(int epollFd, int fd) { in epollCtlAdd() argument
35 ret = TEMP_FAILURE_RETRY(fcntl(fd, F_GETFL)); in epollCtlAdd()
39 ret = TEMP_FAILURE_RETRY(fcntl(fd, F_SETFL, ret | O_NONBLOCK)); in epollCtlAdd()
46 ev.data.fd = fd; in epollCtlAdd()
48 return TEMP_FAILURE_RETRY(epoll_ctl(epollFd, EPOLL_CTL_ADD, fd, &ev)); in epollCtlAdd()
121 const int fd = ev->data.fd; in workerThread() local
124 if (fd == devFd) { in workerThread()
132 int n = TEMP_FAILURE_RETRY(read(fd, buf, sizeof(buf))); in workerThread()
144 } else if (fd == threadsFd) { in workerThread()
150 const int cmd = workerThreadRcvCommand(fd); in workerThread()
185 int GnssHwConn::workerThreadRcvCommand(const int fd) { in workerThreadRcvCommand() argument
187 if (TEMP_FAILURE_RETRY(read(fd, &buf, 1)) == 1) { in workerThreadRcvCommand()