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