Lines Matching defs:FileDescriptor
481 struct FileDescriptor { struct
482 const path& name;
483 int fd = -1;
484 StatT m_stat;
485 file_status m_status;
488 static FileDescriptor create(const path* p, error_code& ec, Args... args) { in create()
499 static FileDescriptor create_with_status(const path* p, error_code& ec, in create_with_status()
508 file_status get_status() const { return m_status; } in get_status()
509 StatT const& get_stat() const { return m_stat; } in get_stat()
511 bool status_known() const { return _VSTD_FS::status_known(m_status); } in status_known()
515 void close() noexcept { in close()
521 FileDescriptor(FileDescriptor&& other) in FileDescriptor() function
528 ~FileDescriptor() { close(); } in ~FileDescriptor()
534 explicit FileDescriptor(const path* p, int fd = -1) : name(*p), fd(fd) {} in FileDescriptor() argument