/external/drm_hwcomposer/ |
D | autofd.h | 27 UniqueFd(int fd) : fd_(fd) { in UniqueFd() 30 fd_ = rhs.fd_; in UniqueFd() 31 rhs.fd_ = -1; in UniqueFd() 40 if (fd_ >= 0) in ~UniqueFd() 41 close(fd_); in ~UniqueFd() 45 int old_fd = fd_; in Release() 46 fd_ = -1; in Release() 51 if (fd_ >= 0) in Set() 52 close(fd_); in Set() 53 fd_ = fd; in Set() [all …]
|
D | hwcomposer.cpp | 90 : fd_(fd), description_(description), timeline_(timeline) { in CheckedOutputFd() 94 std::swap(fd_, rhs.fd_); in CheckedOutputFd() 100 if (fd_ == NULL) in ~CheckedOutputFd() 103 if (*fd_ >= 0) in ~CheckedOutputFd() 106 *fd_ = timeline_.CreateDummyFence().Release(); in ~CheckedOutputFd() 108 if (*fd_ < 0) in ~CheckedOutputFd() 110 description_.c_str(), fd_, *fd_); in ~CheckedOutputFd() 114 int *fd_ = NULL; member
|
D | drmresources.h | 39 return fd_.get(); in fd() 77 UniqueFd fd_; variable
|
/external/google-breakpad/src/common/linux/tests/ |
D | auto_testfile.h | 61 if (fd_ >= 0) in AutoTestFile() 67 if (fd_ >= 0) in AutoTestFile() 73 if (fd_ >= 0) { in ~AutoTestFile() 74 close(fd_); in ~AutoTestFile() 75 fd_ = -1; in ~AutoTestFile() 82 return fd_ >= 0; in IsOk() 88 return fd_; in GetFd() 93 fd_ = -1; in Init() 101 fd_ = mkstemp(path_templ); in Init() 102 if (fd_ < 0) in Init() [all …]
|
/external/bsdiff/ |
D | file.cc | 39 if (fd_ < 0) { in Read() 43 ssize_t rc = TEMP_FAILURE_RETRY(read(fd_, buf, count)); in Read() 51 if (fd_ < 0) { in Write() 55 ssize_t rc = TEMP_FAILURE_RETRY(write(fd_, buf, count)); in Write() 63 if (fd_ < 0) { in Seek() 72 off_t newpos = lseek(fd_, pos, SEEK_SET); in Seek() 83 if (fd_ < 0) { in Close() 87 bool success = close(fd_) == 0; in Close() 90 fd_ = -1; in Close() 96 if (fstat(fd_, &stbuf) == -1) in GetSize() [all …]
|
/external/fmtlib/fmt/ |
D | posix.h | 183 int fd_; // File descriptor. 186 explicit File(int fd) : fd_(fd) {} in File() 197 File() FMT_NOEXCEPT : fd_(-1) {} in File() 215 File(Proxy p) FMT_NOEXCEPT : fd_(p.fd) {} in File() 218 File(File &other) FMT_NOEXCEPT : fd_(other.fd_) { in File() 219 other.fd_ = -1; in File() 225 fd_ = p.fd; 232 fd_ = other.fd_; 233 other.fd_ = -1; 240 Proxy p = {fd_}; in Proxy() [all …]
|
D | posix.cc | 100 fd_ = -1; in File() 101 FMT_POSIX_CALL(sopen_s(&fd_, path.c_str(), oflag, _SH_DENYNO, mode)); in File() 103 FMT_RETRY(fd_, FMT_POSIX_CALL(open(path.c_str(), oflag, mode))); in File() 105 if (fd_ == -1) in File() 112 if (fd_ != -1 && FMT_POSIX_CALL(close(fd_)) != 0) in ~File() 117 if (fd_ == -1) in close() 121 int result = FMT_POSIX_CALL(close(fd_)); in close() 122 fd_ = -1; in close() 133 HANDLE handle = reinterpret_cast<HANDLE>(_get_osfhandle(fd_)); in size() 145 if (FMT_POSIX_CALL(fstat(fd_, &file_stat)) == -1) in size() [all …]
|
/external/libchrome/base/files/ |
D | dir_reader_linux.h | 34 : fd_(open(directory_path, O_RDONLY | O_DIRECTORY)), in DirReaderLinux() 41 if (fd_ >= 0) { in ~DirReaderLinux() 42 if (IGNORE_EINTR(close(fd_))) in ~DirReaderLinux() 48 return fd_ >= 0; in IsValid() 61 const int r = syscall(__NR_getdents64, fd_, buf_, sizeof(buf_)); in Next() 83 return fd_; in fd() 91 const int fd_;
|
/external/google-breakpad/src/client/linux/handler/ |
D | minidump_descriptor.h | 53 fd_(-1), in MinidumpDescriptor() 58 fd_(-1), in MinidumpDescriptor() 67 fd_(fd), in MinidumpDescriptor() 75 fd_(-1), in MinidumpDescriptor() 85 int fd() const { return fd_; } in fd() 114 int fd_; variable
|
D | minidump_descriptor.cc | 44 fd_(descriptor.fd_), in MinidumpDescriptor() 59 fd_ = descriptor.fd_; in operator =()
|
/external/libchrome/base/ |
D | rand_util_posix.cc | 25 URandomFd() : fd_(open("/dev/urandom", O_RDONLY)) { in URandomFd() 26 DCHECK_GE(fd_, 0) << "Cannot open /dev/urandom: " << errno; in URandomFd() 29 ~URandomFd() { close(fd_); } in ~URandomFd() 31 int fd() const { return fd_; } in fd() 34 const int fd_; member in __anondb73efc70111::URandomFd
|
/external/libbrillo/brillo/streams/ |
D | file_stream.cc | 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() [all …]
|
/external/libchrome/sandbox/linux/services/ |
D | thread_helpers_unittests.cc | 42 ScopedProc() : fd_(-1) { in ScopedProc() 43 fd_ = open("/proc/", O_RDONLY | O_DIRECTORY); in ScopedProc() 44 CHECK_LE(0, fd_); in ScopedProc() 47 ~ScopedProc() { PCHECK(0 == IGNORE_EINTR(close(fd_))); } in ~ScopedProc() 49 int fd() { return fd_; } in fd() 52 int fd_; member in sandbox::__anonfa6d17350111::ScopedProc
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
D | directory_reader.h | 50 : fd_(fd), in DirectoryReader() 67 const int n = sys_getdents(fd_, dent, sizeof(buf_)); in GetNextEntry() 98 const int fd_;
|
D | line_reader.h | 47 : fd_(fd), in LineReader() 98 const ssize_t n = sys_read(fd_, buf_ + buf_used_, in GetNextLine() 122 const int fd_;
|
D | linux_ptrace_dumper_unittest.cc | 154 : fd_(-1), mapping_(NULL), size_(0) {} in StackHelper() 158 if (fd_ >= 0) in ~StackHelper() 159 close(fd_); in ~StackHelper() 162 fd_ = fd; in Init() 171 int fd_; member in StackHelper
|
/external/google-breakpad/src/common/solaris/ |
D | file_id.cc | 137 AutoCloser(int fd) : fd_(fd) {} in AutoCloser() 138 ~AutoCloser() { if (fd_) close(fd_); } in ~AutoCloser() 140 int fd_; member in google_breakpad::AutoCloser
|
D | dump_symbols.cc | 582 fd_(fd) { in FDWrapper() 585 if (fd_ != -1) in ~FDWrapper() 586 close(fd_); in ~FDWrapper() 589 return fd_; in get() 592 int fd = fd_; in release() 593 fd_ = -1; in release() 597 int fd_; member in __anonf68341d10111::FDWrapper
|
/external/libtextclassifier/common/ |
D | mmap.cc | 44 explicit FileCloser(int fd) : fd_(fd) {} in FileCloser() 46 int result = close(fd_); in ~FileCloser() 53 const int fd_; member in libtextclassifier::nlp_core::__anon07d8f1b80111::FileCloser
|
/external/autotest/client/site_tests/camera_V4L2/src/ |
D | media_v4l2_device.cc | 23 fd_(-1), in V4L2Device() 51 fd_ = open(dev_name_, O_RDWR | O_NONBLOCK, 0); in OpenDevice() 52 if (-1 == fd_) { in OpenDevice() 87 if (fd_ != -1) in CloseDevice() 88 close(fd_); in CloseDevice() 89 fd_ = -1; in CloseDevice() 265 FD_SET(fd_, &fds); in Run() 270 int32_t r = select(fd_ + 1, &fds, NULL, NULL, &tv); in Run() 302 r = ioctl(fd_, request, arg); in DoIoctl() 316 if (-1 == read(fd_, v4l2_buffers_[0].start, v4l2_buffers_[0].length)) { in ReadOneFrame() [all …]
|
/external/google-breakpad/src/client/solaris/handler/ |
D | solaris_lwp.cc | 154 AutoCloser(int fd) : fd_(fd) {} in AutoCloser() 155 ~AutoCloser() { if (fd_) close(fd_); } in ~AutoCloser() 157 int fd_; member in __anon1ea8c7050111::AutoCloser
|
/external/libbrillo/brillo/message_loops/ |
D | base_message_loop.cc | 314 fd_(fd), base_mode_(base_mode), persistent_(persistent), closure_(task) {} in IOTask() 318 fd_, persistent_, base_mode_, &fd_watcher_, this); in StartWatching() 362 << " file descriptor " << fd_ << ", scheduled from this location."; in OnFileReady() 390 << " file descriptor " << fd_ << ", scheduled from this location."; in OnFileReadyPostedTask()
|
/external/google-breakpad/src/common/linux/ |
D | dump_symbols.cc | 106 fd_(fd) {} in FDWrapper() 108 if (fd_ != -1) in ~FDWrapper() 109 close(fd_); in ~FDWrapper() 112 return fd_; in get() 115 int fd = fd_; in release() 116 fd_ = -1; in release() 120 int fd_; member in __anon0b8462240111::FDWrapper
|
/external/protobuf/gtest/src/ |
D | gtest-port.cc | 457 CapturedStream(int fd) : fd_(fd), uncaptured_fd_(dup(fd)) { in CapturedStream() 482 dup2(captured_fd, fd_); in CapturedStream() 494 dup2(uncaptured_fd_, fd_); in GetCapturedString() 512 const int fd_; // A stream to capture. member in testing::internal::CapturedStream
|
/external/mesa3d/src/gtest/src/ |
D | gtest-port.cc | 491 CapturedStream(int fd) : fd_(fd), uncaptured_fd_(dup(fd)) { in CapturedStream() 517 dup2(captured_fd, fd_); in CapturedStream() 529 dup2(uncaptured_fd_, fd_); in GetCapturedString() 547 const int fd_; // A stream to capture. member in testing::internal::CapturedStream
|