/* * cico.h: things that all the bits of cico need to know about. */ #ifndef _CICO_D #define _CICO_D #include #include #include #include #include #include #include #include #include "ttyio.h" #include "news.h" #define ACU 1 /* Two types of connection to other machines */ #define DIR 2 /* for now - in the future, other entries in */ #define DIALER 3 /* this field in L.sys will be for dialer */ /* programs */ extern char callee[16]; /* system to call */ extern int calltype; /* DIR or ACU call? */ extern long callspeed; /* what speed to call him at */ extern char callphone[40]; /* phone # to call */ extern char callseq[200]; /* msg-expect to use after conn */ extern char callwhen[20]; /* 'any' | 'none' | MoTuWeThFrSaSu... */ extern char tty[16]; /* terminal we're talking at */ extern char ttyprefix[40]; /* dial prefix */ extern char ttysuffix[40]; /* dial suffix */ extern char ttyinit[80]; /* init string */ extern long ttyispeed; /* init speed */ extern long ttycspeed; /* speed it's at */ extern int ttyflow; /* flow control it's using */ extern char *findsys(); /* find a sysname in L.sys */ extern int findtty(); /* find a tty to call with */ extern int oksys(); /* prepare for a findtty() */ extern char *tosify(); /* convert / to \ in filenames */ extern int yes(); /* carr-detect function pointer */ extern int (*cdf)(); /* and what it can point at */ #define SUCCESS 0 /* * parsename() return values */ #define NOFILE 0 /* file does not exist */ #define ISFILE 1 /* file exists */ #define DENIED 2 /* permission denied */ extern int Debug; extern long Now; /* * uucp driver stuff */ #define SUCCESS 0 #define FAIL (-1) #define SEND 'S' /* Send this to another system */ #define REQUEST 'R' /* request this from another system */ #define HANGUP 'H' /* hang up or role reverse */ #define DONE 'C' /* copy complete? */ /* * cico operational states. */ #define LOCAL 2 /* doing local work only */ #define MASTER 1 #define SLAVE 0 #define UNKNOWN 3 extern jmp_buf Sjbuf; #ifdef __STDC__ extern char *basename(char*); extern char *EOS(char*); extern void *xmalloc(int); extern void *xrealloc(void*, int); extern char *xstrdup(char*); extern char *makepath(char*, char*, ...); #else extern char *basename(); extern char *EOS(); extern void *xmalloc(); extern void *xrealloc(); extern char *xstrdup(); extern char *makepath(); #endif /* * various uucp system files */ #define SYSTEMS "Systems" /* systems we can call */ #define DEVICES "Devices" /* devices we can call with */ #define USERS "Permissions" /* system permissions */ #define COMMANDS "Commands" /* commands people can use */ #endif /*_CICO_D*/