Lines Matching defs:FileDescriptor
478 struct FileDescriptor { struct
479 const path& name;
480 int fd = -1;
481 StatT m_stat;
482 file_status m_status;
485 static FileDescriptor create(const path* p, error_code& ec, Args... args) { in create()
496 static FileDescriptor create_with_status(const path* p, error_code& ec, in create_with_status()
505 file_status get_status() const { return m_status; } in get_status()
506 StatT const& get_stat() const { return m_stat; } in get_stat()
508 bool status_known() const { return _VSTD_FS::status_known(m_status); } in status_known()
512 void close() noexcept { in close()
518 FileDescriptor(FileDescriptor&& other) in FileDescriptor() function
525 ~FileDescriptor() { close(); } in ~FileDescriptor()
531 explicit FileDescriptor(const path* p, int fd = -1) : name(*p), fd(fd) {} in FileDescriptor() function