From 93549cfb5f34bf88d14f05fc83e9a349a567635c Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sat, 6 Oct 2001 20:28:52 +0000 Subject: [PATCH] * remove rcit.c --- citadel/rcit.c | 70 -------------------------------------------------- 1 file changed, 70 deletions(-) delete mode 100644 citadel/rcit.c diff --git a/citadel/rcit.c b/citadel/rcit.c deleted file mode 100644 index c34b07693..000000000 --- a/citadel/rcit.c +++ /dev/null @@ -1,70 +0,0 @@ -/* $Id$ - * - * This program simply feeds its standard input to the networker. It is - * used primarily to hook up to UUCP feeds of Citadel data. - * - * - * usage: - * rcit [-z] [-s] - * flags: - * -z Input is compressed, run uncompress on it before processing - * -s Don't run netproc now, just accept the input into spoolin - */ - -#define UNCOMPRESS "/usr/bin/gunzip" -#include -#include -#include -#include -#include -#include - -#if TIME_WITH_SYS_TIME -# include -# include -#else -# if HAVE_SYS_TIME_H -# include -# else -# include -# endif -#endif - -#include "citadel.h" - -void get_config(void); -struct config config; - -int main(int argc, char **argv) -{ - int a; - char flnm[128],tname[128]; - FILE *minput, *mout; - char compressed_input = 0; - char spool_only = 0; - - get_config(); - sprintf(flnm,"./network/spoolin/rcit.%ld", (long)getpid()); - strcpy(tname, tmpnam(NULL)); - - for (a=1; a=0) putc(a,mout); - putc(0,mout); - fclose(mout); - - unlink(tname); - if (compressed_input) pclose(minput); - if (!spool_only) execlp("./netproc", "netproc", "-i", NULL); - exit(0); -} - - -- 2.39.2