/* * Copyright (c) 2001, Robert Collins. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * A copy of the GNU General Public License can be found at * http://www.gnu.org/ * * Written by Robert Collins * */ /* Archive IO operations */ #if 0 static const char *cvsid = "\n%%% $Id: source.cc,v 2.5 2001/11/01 13:22:46 rbcollins Exp $\n"; #endif #include "win32.h" #include #include #include "log.h" #include "port.h" #include "io_stream.h" #include "compress.h" #include "compress_bz.h" compress_bz::compress_bz (io_stream * parent) { original = NULL; lasterr = 0; if (!parent) lasterr = EBADF; original = parent; } ssize_t compress_bz::read (void *buffer, size_t len) { log (LOG_TIMESTAMP, "compress_bz::read called"); return 0; } ssize_t compress_bz::write (void *buffer, size_t len) { log (LOG_TIMESTAMP, "compress_bz::write called"); return 0; } ssize_t compress_bz::peek (void *buffer, size_t len) { log (LOG_TIMESTAMP, "compress_bz::peek called"); return 0; } long compress_bz::tell () { log (LOG_TIMESTAMP, "compress_bz::tell called"); return 0; } int compress_bz::error () { log (LOG_TIMESTAMP, "compress_bz::error called"); return 0; } int compress_bz::set_mtime (int time) { if (original) return original->set_mtime (time); return 1; } compress_bz::~compress_bz () { log (LOG_TIMESTAMP, "compress_bz::~bz called"); return; }