home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
300-399
/
ff319.lzh
/
CNewsSrc
/
uupc.lzh
/
uupc
/
dcp.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-01-16
|
3KB
|
110 lines
/*
* DCP a uucp clone. Copyright Richard H. Lamb 1985,1986,1987
*
* $Id: dcp.h,v 1.1 90/01/16 10:22:59 crash Exp Locker: crash $
*/
#include <stdio.h> /* Standard UNIX definitions */
#include "host.h" /* Host specific definitions */
FILE * FOPEN();
int CREAT();
#define SYSTEMS "Systems"
#define LOGFILE "LOGFILE"
#define SYSLOG "SYSLOG"
#define MSGTIME 20
#define MAXPACK 256
#define ACK 4 /* general definitions */
#define NAK 2
#define DATA 0
#define CLOSE 1
#define ERROR 10
#define EMPTY 11
#define SLAVE 0
#define MASTER 1
#ifndef TRUE
# define TRUE (-1)
# define FALSE 0
#endif
#ifndef SAME
# define SAME 0
#endif
#define FAILED -1
#define OK 0
/* L.sys field defines */
#define FLD_REMOTE 0 /* System name */
#define FLD_CCTIME 1 /* Call time (unimplemented) */
#define FLD_DEVICE 2 /* device name (unimplemented) */
#define FLD_TYPE 3 /* HAYES or DIR */
#define FLD_SPEED 4 /* Phone# or SPEED */
#define FLD_PROTO 5 /* Protocol type ("g" is implemented) */
#define FLD_EXPECT 6 /* 1st string is EXPECT */
#define FLD_SEND 7 /* 2nd is SEND */
typedef int (*procref)();
typedef struct {
char type;
procref a;
procref b;
procref c;
procref d;
} Proto;
/* the various protocols available. Add here for others */
extern procref getpkt, sendpkt, openpk, closepk;
extern int ggetpkt(), gsendpkt(), gopenpk(), gclosepk();
/*
extern int kgetpkt(), ksendpkt(), kopenpk(), kclosepk();
extern int rgetpkt(), rsendpkt(), ropenpk(), rclosepk();
extern int tgetpkt(), tsendpkt(), topenpk(), tclosepk();
*/
extern int pktsize; /* packet size for this pro*/
extern FILE *logfile; /* system log file */
extern FILE *syslog; /* system log file */
extern FILE *fw; /* cfile pointer */
extern char cfile[80]; /* work file pointer */
extern int remote; /* -1 means we're remote*/
extern int findwork;
extern int msgtime; /* timout setting */
extern char fromfile[132];
extern char hostfile[132]; /* host version of fromfile */
extern char tofile[132];
extern char state; /* present state */
extern int fp; /* current disk file ptr */
extern int size; /* nbytes in buff */
extern FILE *fsys;
extern char Rmtname[20];
extern char rmtname[20];
extern char *cctime;
extern char proto[5];
extern char sysline[BUFSIZ];
extern char s_systems[64];
extern char s_logfile[64];
extern char s_syslog[64];
extern char *flds[60];
extern int kflds;
extern int debuglevel; /* debugging flag */
extern unsigned int checksum();
extern char *index();
extern char *rindex();
extern char *curdir;
extern char *prt( /* str, len */ ); /* Prints str (length len) */
#ifdef MCH_AMIGA
# define memcpy(d,s,n) movmem((s),(d),(n))
#endif