1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
/*
* writebuffer.c
*
* A program for writing output to devices which don't like constant
* stopping and starting, such as tape drives. writebuffer is:
* Copyright (C) 1997-1998,2000-2001 Ian Jackson <ian@chiark.greenend.org.uk>
*
* writebuffer is part of chiark backup, a system for backing up GNU/Linux
* and other UN*X-compatible machines, as used on chiark.greenend.org.uk.
* chiark backup is:
* Copyright (C) 1997-1998,2000-2001 Ian Jackson <ian@chiark.greenend.org.uk>
* Copyright (C) 1999 Peter Maydell <pmaydell@chiark.greenend.org.uk>
*
* This 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,
* or (at your option) any later version.
*
* This is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this file; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#include "rwbuffer.h"
const char *progname= "writebuffer";
void wrbuf_report(const char *m) { }
int main(int argc, const char *const *argv) {
startup(argv);
wrbufcore_startup();
while (!seeneof || used) {
wrbufcore_prepselect(0,1);
callselect();
wrbufcore_afterselect(0,1);
}
exit(0);
}
|