void BuiltinFile::sweep() { invokeFiltersOnClose(); // This object was just a wrapper around a FILE* or fd owned by someone else, // so don't close it except in explicit calls to close(). m_stream = nullptr; m_fd = -1; m_closed = true; File::sweep(); }
bool BuiltinFile::close() { invokeFiltersOnClose(); auto status = ::fclose(m_stream); setIsClosed(true); m_stream = nullptr; setFd(-1); File::closeImpl(); return status == 0; }
bool BuiltinFile::close() { invokeFiltersOnClose(); auto status = ::fclose(m_stream); m_closed = true; m_stream = nullptr; m_fd = -1; File::closeImpl(); return status == 0; }
void BuiltinFile::sweep() { invokeFiltersOnClose(); // This object was just a wrapper around a FILE* or fd owned by someone else, // so don't close it except in explicit calls to close(). Beware this doesn't // call PlainFile::sweep(). m_stream = nullptr; setFd(-1); setIsClosed(true); File::sweep(); }
bool PlainFile::close() { invokeFiltersOnClose(); return closeImpl(); }
bool MemFile::close() { invokeFiltersOnClose(); return closeImpl(); }
bool OutputFile::close() { invokeFiltersOnClose(); return closeImpl(); }
bool SSLSocket::close() { invokeFiltersOnClose(); return closeImpl(); }