BSD 4 development
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Sun, 19 Oct 1980 18:01:18 +0000 (10:01 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Sun, 19 Oct 1980 18:01:18 +0000 (10:01 -0800)
Work on file usr/src/cmd/uucp/uucp.h

Synthesized-from: CSRG//cd1/4.0

usr/src/cmd/uucp/uucp.h [new file with mode: 0644]

diff --git a/usr/src/cmd/uucp/uucp.h b/usr/src/cmd/uucp/uucp.h
new file mode 100644 (file)
index 0000000..7e521c3
--- /dev/null
@@ -0,0 +1,124 @@
+#include "stdio.h"
+/* define DATAKIT if datakit is available */
+
+/* define DIALOUT if new dialout routine is to be used */
+
+/* define the last characters for ACU */
+
+/* define UNAME if uname() should be used to get uucpname */
+
+#define ACULAST "-<"
+
+       /*  some system names  */
+/*  put in local uucp name of this machine */
+#define MYNAME         "amnesiac"
+
+#define THISDIR                "/usr/lib/uucp"
+#define XQTDIR         "/usr/lib/uucp/.XQTDIR"
+#define SQFILE         "/usr/lib/uucp/SQFILE"
+#define SQTMP          "/usr/lib/uucp/SQTMP"
+#define SEQFILE                "/usr/lib/uucp/SEQF"
+#define SYSFILE                "/usr/lib/uucp/L.sys"
+#define SYSFILECR      "/usr/lib/uucp/L.sys.cr"
+#define DEVFILE                "/usr/lib/uucp/L-devices"
+#define DIALFILE       "/usr/lib/uucp/L-dialcodes"
+#define USERFILE       "/usr/lib/uucp/USERFILE"
+
+#define SPOOL          "/usr/spool/uucp"
+#define LOGDIR         "/usr/spool/uucp"
+#define SQLOCK         "/usr/spool/uucp/LCK.SQ"
+#define SYSLOG         "/usr/spool/uucp/SYSLOG"
+#define PUBDIR         "/usr/spool/uucppublic"
+
+#define SEQLOCK                "LCK.SEQL"
+#define CMDPRE         'C'
+#define DATAPRE                'D'
+#define XQTPRE         'X'
+
+#define LOGPREFIX      "LOG."
+#define LOGLOCK        "/usr/spool/uucp/LCK.LOG"
+#define LOGFILE        "/usr/spool/uucp/LOGFILE"
+
+#define RMTDEBUG       "AUDIT"
+#define SQTIME         60L
+#define TRYCALLS       2       /* number of tries to dial call */
+
+#define DEBUG(l, f, s) if (Debug >= l) fprintf(stderr, f, s)
+
+#define ASSERT(e, f, v) if (!(e)) {\
+fprintf(stderr, "AERROR - (%s) ", "e");\
+fprintf(stderr, f, v);\
+cleanup(FAIL);};
+
+#define FMV(p, n) close(n); dup(p[n]); close(p[n]);
+
+#define SAME 0
+#define ANYREAD 04
+#define ANYWRITE 02
+#define FAIL -1
+#define SUCCESS 0
+#define MASTER 1
+#define SLAVE 0
+#define MAXFULLNAME 100
+#define MAXMSGTIME 100
+#define MAXCHARTIME 100
+#define NAMESIZE 15
+#define EOTMSG "\004\n\004\n"
+#define CALLBACK 1
+
+       /*  commands  */
+#define SHELL          "/bin/sh"
+#define MAIL           "mail"
+#define UUCICO         "/usr/lib/uucp/uucico"
+#define UUXQT          "/usr/lib/uucp/uuxqt"
+#define UUCP           "uucp"
+
+
+       /*  call connect fail stuff  */
+#define CF_SYSTEM      -1
+#define CF_TIME                -2
+#define CF_LOCK                -3
+#define CF_DIAL                -5
+#define CF_LOGIN       -6
+
+       /*  system status stuff  */
+#define SS_OK          0
+#define SS_FAIL                4
+#define SS_NODEVICE    1
+#define SS_CALLBACK    2
+#define SS_INPROGRESS  3
+#define SS_BADSEQ      5
+
+       /*  fail/retry parameters  */
+#define RETRYTIME 3300L
+#define INPROGTIME 7200L
+#define MAXRECALLS 10
+
+       /*  stuff for command execution  */
+#define X_RQDFILE      'F'
+#define X_STDIN                'I'
+#define X_STDOUT       'O'
+#define X_CMD          'C'
+#define X_USER         'U'
+#define X_SENDFILE     'S'
+#define X_LOCK         "LCK.XQT"
+#define X_LOCKTIME     3600L
+
+int Ifn, Ofn;
+char Rmtname[32];
+char User[32];
+char Loginuser[32];
+char *Thisdir;
+char *Spool;
+char Myname[32];
+char *Sysfiles[];
+char *Devfile;
+char *Dialfile;
+int Debug;
+int Pkdebug;
+int Pkdrvon;
+int Bspeed;
+
+
+#define WKDSIZE        100     /*  size of work dir name  */
+char Wrkdir[WKDSIZE];