BSD 4_3_Tahoe release
[unix-history] / usr / src / usr.bin / uucp / uucp.h
index a1c50c3..54c954b 100644 (file)
@@ -1,4 +1,4 @@
-/*     uucp.h  5.11    86/02/12        */
+/*     @(#)uucp.h      5.16    5/4/88  */
 
 #include <stdio.h>
 
 
 #include <stdio.h>
 
@@ -25,9 +25,6 @@
  * named /etc/uucpname or /local/uucpname.
  * If your site does that, define UUNAME.
  *
  * named /etc/uucpname or /local/uucpname.
  * If your site does that, define UUNAME.
  *
- * Systems running 3Com's UNET will have the getmyhname() call.
- * If you want to, define GETMYHNAME.
- *
  * You should also define MYNAME to be your uucp name.
  *
  * For each of the above that are defined, uucp checks them in order.
  * You should also define MYNAME to be your uucp name.
  *
  * For each of the above that are defined, uucp checks them in order.
 /* #define WHOAMI      /**/
 /* #define CCWHOAMI    /**/
 /* #define UUNAME      /**/
 /* #define WHOAMI      /**/
 /* #define CCWHOAMI    /**/
 /* #define UUNAME      /**/
-/* #define GETMYHNAME  /**/
 /* If the above fails ... */
 #define        MYNAME  "erehwon"
 
 /* If the above fails ... */
 #define        MYNAME  "erehwon"
 
-/*
- * If you have it, include <sysexits.h> to use exit
- * codes that will be understood by sendmail.
- * Otherwise, define EX_NOHOST, EX_CANTCREAT, and EX_NOINPUT.
- */
-#include <sysexits.h>
-/*#define EX_NOINPUT   66      /**/
-/*#define EX_NOHOST    68      /**/
-/*#define EX_CANTCREAT 73      /**/
-
 /*
  * Define the various kinds of connections to include.
  * The complete list is in the condevs array in condevs.c
  */
 #define ATT2224                /* AT&T 2224 */
 /*
  * Define the various kinds of connections to include.
  * The complete list is in the condevs array in condevs.c
  */
 #define ATT2224                /* AT&T 2224 */
-#define BSDTCP         /* 4.2bsd or 2.9bsd TCP/IP */
+#define BSDTCP         /* 4.2bsd TCP/IP */
 #define CDS224         /* Concord Data Systems 2400 */
 /* #define DATAKIT     /* ATT's datakit */
 #define DF02           /* Dec's DF02/DF03 */
 #define CDS224         /* Concord Data Systems 2400 */
 /* #define DATAKIT     /* ATT's datakit */
 #define DF02           /* Dec's DF02/DF03 */
 #undef BSD4_3
 #endif BRL4_2
 
 #undef BSD4_3
 #endif BRL4_2
 
-/*
- * If you are running 2.9bsd, define BSD2_9
- */
-/*#define BSD2_9       /**/
-
 /*
  * If you are using /etc/inetd with 4.2bsd, define BSDINETD
  */
 /*
  * If you are using /etc/inetd with 4.2bsd, define BSDINETD
  */
  * know where the LCK files are kept, and you have to change your /etc/rc
  * if your rc cleans out the lock files (as it should).
  */
  * know where the LCK files are kept, and you have to change your /etc/rc
  * if your rc cleans out the lock files (as it should).
  */
-/*#define      LOCKDIR "LCK"   /**/
+/* #define     LOCKDIR "LCK"   /**/
 #define LOCKDIR        "." /**/
 
 /*
 #define LOCKDIR        "." /**/
 
 /*
  * of one file
  * define LOGBYSITE as the directory to put the files in
  */
  * of one file
  * define LOGBYSITE as the directory to put the files in
  */
-/*#define LOGBYSITE    "/usr/spool/uucp/LOG" /**/
+/* #define LOGBYSITE   "/usr/spool/uucp/LOG" /**/
+
+/*
+ * define USE_SYSLOG if you want error messages to use SYSLOG instead
+ * of being written to /usr/spool/log/ERRLOG
+ */
+#define USE_SYSLOG     /**/
+
+/*
+ * If you are doing rebilling and need connect accounting,
+ * define DO_CONNECT_ACCOUNTING to be the accounting file name
+ */
+/*#define DO_CONNECT_ACCOUNTING        "/usr/spool/uucp/CONNECT"       /**/
 
 #define XQTDIR         "/usr/spool/uucp/XTMP"
 #define SQFILE         "/usr/lib/uucp/SQFILE"
 
 #define XQTDIR         "/usr/spool/uucp/XTMP"
 #define SQFILE         "/usr/lib/uucp/SQFILE"
 #define SQTIME         60
 #define TRYCALLS       2       /* number of tries to dial call */
 
 #define SQTIME         60
 #define TRYCALLS       2       /* number of tries to dial call */
 
-#define LLEN   50
+#define LLEN   150
 #define MAXRQST        250
 
 #define DEBUG(l, f, s) if (Debug >= l) fprintf(stderr, f, s); else
 
 #define MAXRQST        250
 
 #define DEBUG(l, f, s) if (Debug >= l) fprintf(stderr, f, s); else
 
-#define ASSERT(e, s1, s2, i1) if (!(e)) {assert(s1, s2, i1);cleanup(FAIL);}else
-
 #define delock(dev)    rmlock(dev)
 #define mlock(dev)     ulockf(dev, SLCKTIME)
 
 #define delock(dev)    rmlock(dev)
 #define mlock(dev)     ulockf(dev, SLCKTIME)
 
@@ -367,6 +358,10 @@ struct timeb
 #define index strchr
 #endif USG
 
 #define index strchr
 #endif USG
 
+#ifdef BSD4_2
+#include <syslog.h>
+#endif /* BSD4_2 */
+
 extern struct timeb Now;
 
 extern int Ifn, Ofn;
 extern struct timeb Now;
 
 extern int Ifn, Ofn;
@@ -394,7 +389,6 @@ extern      char *ttyname(), *strcpy(), *strcat(), *index(), *rindex(),
                *fgets(), *calloc(), *malloc(), *fdig(), *ttyname(),
                *cfgets(), *getwd(), *strpbrk(), *strncpy();
 extern long lseek();
                *fgets(), *calloc(), *malloc(), *fdig(), *ttyname(),
                *cfgets(), *getwd(), *strpbrk(), *strncpy();
 extern long lseek();
-extern FILE *rpopen();
 extern time_t time();
 
 extern char _FAILED[], CANTOPEN[], DEVNULL[];
 extern time_t time();
 
 extern char _FAILED[], CANTOPEN[], DEVNULL[];