|
|
1.1 root 1: /*
2: * dcp.h
3: *
4: * Header File for dcp -- "dcp" a uucp clone
5: *
6: * copyright (c) richard h. lamb 1985, 1986, 1987
7: * changes copyright (c) stuart lynne may/1987
8: * changes (massive) copyright (c) 1989-1991 by Mark Williams Company
9: */
10:
11: #include <stdio.h>
12: #include <sys/dir.h>
13:
14: /*
15: * Various definitions of Global Strings and Values
16: */
17:
18: #define VERSION "3.2.22"
19:
20: #define PUBDIR "/usr/spool/uucppublic"
21: #define SPOOLDIR "/usr/spool/uucp"
22:
23: #define SITELEN DIRSIZ /* Max number of Characters in Sitename */
24: #define SITESIG 7 /* Significant Characters of Sitename */
25: #define LOCKSIG 9 /* Signific Chars of Lockable Resource */
26: #define CTLFLEN 64 /* Max Length of UUCP Control File Name */
27: #define LOGFLEN 64 /* Max Length of UUCP Log File Name */
28: #define LOKFLEN 64 /* Max Length of UUCP Lock File Name */
29:
30: #define MSGTIME 40 /* Timeout to receive a message */
31: #define DLE 0x10 /* ASCII DLE Character (^P) */
32:
33: #define SLAVE 0 /* States of Variable 'role' in dcp.c */
34: #define MASTER 1
35:
36:
37: #define XQTFILE "X.%s"
38:
39: #define PATHLEN 256
40: #define MAXPACK 256
41:
42:
43:
44: /* log messages */
45: #define M_LOG 0 /* log regardless of debuglevel */
46: #define M_FATAL 0 /* log fatal messages, too */
47: #define M_CALL 1 /* call and pre-protocol negotiation */
48: #define M_CALLMSG 2 /* messages sent during call/pre-proto */
49: #define M_SPOOL 3 /* spool files */
50: #define M_TRANSFER 4 /* file transfer */
51: #define M_CONVERSE 5 /* conversation level */
52: #define M_HIGHPROTO 6 /* high-level protocol */
53: #define M_MEDPROTO 7 /* med-level protocol */
54: #define M_LOWPROTO 8 /* low-level protocol (framing, et al) */
55: #define M_DATA 9 /* actual packet data */
56: #define M_INFO 10 /* reading config files */
57: #define M_DEBUG 100 /* Highest debug level */
58:
59: /*
60: * Various external function declarations
61: */
62:
63: extern char *ttyname();
64: extern char *visib(), *visbuf();
65: extern char *myname(), *uucpname();
66: extern char *index(), *rindex();
67:
68: /*
69: * Various external data declarations for Global Variables
70: */
71:
72: extern int abort_cico; /* Indicates Process Abort Signalled */
73: extern int sysended; /* Indicates sysend() was called */
74: extern int processid; /* Currect Process Id (uucico) */
75: extern int debuglevel; /* User specified Debug Level */
76: extern int fpfd; /* File Decriptor used for send&receive */
77: extern int role; /* Our role, either MASTER or SLAVE */
78: extern char *sysname; /* Command line -[sS]sysname argument */
79: extern char *rmtname; /* Remote System being processed now */
80: extern int forcecall; /* Ignore L.sys spec for time to call */
81: extern int terminatelevel; /* Indicates return code for one call */
82: extern char cfile[CTLFLEN]; /* Current C.* Control Work File Name */
83: extern FILE *cfp; /* FILE Pointer for C.* files */
84: extern char *devname; /* Communications Device Name Connected */
85: extern char *rdevname; /* Remode Device Name Connected */
86: extern char *nodename; /* UUCP node name (or MYNAME, perhaps) */
87: extern char *version; /* Version Character String */
88: extern int stripflg; /* Flag to strip chars to 7bits on read */
89:
90: extern int pktsize; /* packet size for this protocol */
91: extern int findwork;
92: extern char xfromfile[BUFSIZ]; /* source of copy */
93: extern char xtofile[BUFSIZ]; /* destiation of copy */
94: extern char *clinep[10]; /* pointer to fields from line from C. file */
95: extern char cline [BUFSIZ]; /* line from C. file */
96: extern char *fromfilep, *tofilep, *usernamep, *optionp, *spoolfilep, *modep,
97: *notifyp;
98: extern int nclinep; /* number tokens in cline */
99: extern int size; /* nbytes in buff */
100: extern FILE *fsys;
101:
102:
103: extern char s_systems[64];
104:
105: extern unsigned int checksum();
106: extern char *malloc();
107:
108: extern int total_errors;
109: extern long bytecount;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.