Esempio n. 1
0
void CFile::PImpl::flush()
{
	if (cl_type != CLF_TYPE_INVALID) {
		if (cl_type == CLF_TYPE_PLAIN) {
			fflush(cl_plain);
		}
#ifdef USE_ZLIB
		if (cl_type == CLF_TYPE_GZIP) {
			gzflush(cl_gz, Z_SYNC_FLUSH);
		}
#endif // USE_ZLIB
#ifdef USE_BZ2LIB
		if (cl_type == CLF_TYPE_BZIP2) {
			BZ2_bzflush(cl_bz);
		}
#endif // USE_BZ2LIB
	} else {
		errno = EBADF;
	}
}
Esempio n. 2
0
static int php_bz2iop_flush(php_stream *stream)
{
	struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *)stream->abstract;
	return BZ2_bzflush(self->bz_file);
}
Esempio n. 3
0
bool BZ2File::flush() {
  assert(m_bzFile);
  return BZ2_bzflush(m_bzFile);
}
Esempio n. 4
0
static int bzdFlush(FDSTACK_t fps)
{
    return BZ2_bzflush(fps->fp);
}
Esempio n. 5
0
File: rpmio.c Progetto: akozumpl/rpm
static int bzdFlush(FD_t fd)
{
    return BZ2_bzflush(bzdFileno(fd));
}