Lines Matching refs:fd_
31 FileDescriptor(int fd, bool own) : fd_{fd}, own_{own} {} in FileDescriptor()
39 bool IsOpen() const override { return fd_ >= 0; } in IsOpen()
42 return HANDLE_EINTR(read(fd_, buf, nbyte)); in Read()
46 return HANDLE_EINTR(write(fd_, buf, nbyte)); in Write()
50 return lseek64(fd_, offset, whence); in Seek()
55 if (fstat(fd_, &file_stat) < 0) in GetFileMode()
62 if (fstat(fd_, &file_stat) < 0) in GetSize()
68 return HANDLE_EINTR(ftruncate(fd_, length)); in Truncate()
77 std::swap(fd, fd_); in Close()
90 fd_, in WaitForData()
108 fd_, in WaitForData()
136 FD_SET(fd_, &read_fds); in WaitForDataBlocking()
139 FD_SET(fd_, &write_fds); in WaitForDataBlocking()
141 FD_SET(fd_, &error_fds); in WaitForDataBlocking()
147 int res = HANDLE_EINTR(select(fd_ + 1, &read_fds, &write_fds, &error_fds, in WaitForDataBlocking()
150 *out_mode = stream_utils::MakeAccessMode(FD_ISSET(fd_, &read_fds), in WaitForDataBlocking()
151 FD_ISSET(fd_, &write_fds)); in WaitForDataBlocking()
189 int fd_; member in brillo::FileDescriptor