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