Lines Matching defs:FileDescriptor
318 struct FileDescriptor { struct
319 const path& name;
320 int fd = -1;
321 StatT m_stat;
322 file_status m_status;
325 static FileDescriptor create(const path* p, error_code& ec, Args... args) { in create()
336 static FileDescriptor create_with_status(const path* p, error_code& ec, in create_with_status()
345 file_status get_status() const { return m_status; } in get_status()
346 StatT const& get_stat() const { return m_stat; } in get_stat()
348 bool status_known() const { return _VSTD_FS::status_known(m_status); } in status_known()
352 void close() noexcept { in close()
358 FileDescriptor(FileDescriptor&& other) in FileDescriptor() argument
365 ~FileDescriptor() { close(); } in ~FileDescriptor()
371 explicit FileDescriptor(const path* p, int fd = -1) : name(*p), fd(fd) {} in FileDescriptor() argument