예제 #1
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().
  m_stream = nullptr;
  m_fd = -1;
  m_closed = true;
  File::sweep();
}
예제 #2
0
bool BuiltinFile::close() {
  invokeFiltersOnClose();
  auto status = ::fclose(m_stream);
  setIsClosed(true);
  m_stream = nullptr;
  setFd(-1);
  File::closeImpl();
  return status == 0;
}
예제 #3
0
bool BuiltinFile::close() {
  invokeFiltersOnClose();
  auto status = ::fclose(m_stream);
  m_closed = true;
  m_stream = nullptr;
  m_fd = -1;
  File::closeImpl();
  return status == 0;
}
예제 #4
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();
}
예제 #5
0
bool PlainFile::close() {
  invokeFiltersOnClose();
  return closeImpl();
}
예제 #6
0
bool MemFile::close() {
  invokeFiltersOnClose();
  return closeImpl();
}
예제 #7
0
bool OutputFile::close() {
  invokeFiltersOnClose();
  return closeImpl();
}
예제 #8
0
파일: ssl-socket.cpp 프로젝트: 2bj/hhvm
bool SSLSocket::close() {
  invokeFiltersOnClose();
  return closeImpl();
}