⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ckcdeb.h

📁 C-Kermit源码。是使用串口/Modem和网络通讯的程序
💻 H
📖 第 1 页 / 共 5 页
字号:
#ifndef NEXT#define NEXT#endif /* NEXT */#endif /* NEXT33 */#ifdef NEXT				/* NEXT implies BSD4 */#ifndef BSD4#define BSD4#endif /* BSD4 */#endif /* NEXT */#ifdef SUNOS4				/* SUNOS4 implies BSD4 */#ifndef BSD4#define BSD4#endif /* BSD4 */#endif /* SUNOS4 */#ifdef BSD41				/* BSD41 implies BSD4 */#ifndef BSD4#define BSD4#endif /* BSD4 */#endif /* BSD41 */#ifdef BSD43				/* BSD43 implies BSD4 */#ifndef BSD4#define BSD4#endif /* BSD4 */#endif /* BSD43 */#ifdef BSD4				/* BSD4 implies ANYBSD */#ifndef ANYBSD#define ANYBSD#endif /* ANYBSD */#endif /* BSD4 */#ifdef BSD29				/* BSD29 implies ANYBSD */#ifndef ANYBSD#define ANYBSD#endif /* ANYBSD */#endif /* BSD29 */#ifdef ATTSV				/* ATTSV implies UNIX */#ifndef UNIX#define UNIX#endif /* UNIX */#endif /* ATTSV */#ifdef ANYBSD				/* ANYBSD implies UNIX */#ifndef UNIX#define UNIX#endif /* UNIX */#endif /* ANYBSD */#ifdef POSIX				/* POSIX implies UNIX */#ifndef UNIX#define UNIX#endif /* UNIX */#ifndef DIRENT				/* and DIRENT, i.e. <dirent.h> */#ifndef SDIRENT#define DIRENT#endif /* SDIRENT */#endif /* DIRENT */#ifndef NOFILEH				/* POSIX doesn't use <sys/file.h> */#define NOFILEH#endif /* NOFILEH */#endif /* POSIX */#ifdef V7#ifndef UNIX#define UNIX#endif /* UNIX */#endif /* V7 */#ifdef COHERENT#ifndef UNIX#define UNIX#endif /* UNIX */#ifdef COMMENT#ifndef NOCURSES#define NOCURSES#endif /* NOCURSES */#endif /* COMMENT */#endif /* COHERENT */#ifdef MINIX#ifndef UNIX#define UNIX#endif /* UNIX */#endif /* MINIX *//*  The symbol SVORPOSIX is defined for both AT&T and POSIX compilations  to make it easier to select items that System V and POSIX have in common,  but which BSD, V7, etc, do not have.*/#ifdef ATTSV#ifndef SVORPOSIX#define SVORPOSIX#endif /* SVORPOSIX */#endif /* ATTSV */#ifdef POSIX#ifndef SVORPOSIX#define SVORPOSIX#endif /* SVORPOSIX */#endif /* POSIX *//*  The symbol SVR4ORPOSIX is defined for both AT&T System V R4 and POSIX  compilations to make it easier to select items that System V R4 and POSIX  have in common, but which BSD, V7, and System V R3 and earlier, etc, do  not have.*/#ifdef POSIX#ifndef SVR4ORPOSIX#define SVR4ORPOSIX#endif /* SVR4ORPOSIX */#endif /* POSIX */#ifdef SVR4#ifndef SVR4ORPOSIX#define SVR4ORPOSIX#endif /* SVR4ORPOSIX */#endif /* SVR4 *//*  The symbol BSD44ORPOSIX is defined for both 4.4BSD and POSIX compilations  to make it easier to select items that 4.4BSD and POSIX have in common,  but which System V, BSD, V7, etc, do not have.*/#ifdef BSD44#ifndef BSD44ORPOSIX#define BSD44ORPOSIX#endif /* BSD44ORPOSIX */#endif /* BSD44 */#ifdef POSIX#ifndef BSD44ORPOSIX#define BSD44ORPOSIX#endif /* BSD44ORPOSIX */#endif /* POSIX */#ifdef UNIX				/* For items common to OS/2 and UNIX */#ifndef OS2ORUNIX#define OS2ORUNIX#endif /* OS2ORUNIX */#endif /* UNIX */#ifdef UNIX				/* For items common to VMS and UNIX */#define VMSORUNIX#else#ifdef VMS#define VMSORUNIX#endif /* VMS */#endif /* UNIX */#ifndef UNIXOROSK			/* UNIX or OS-9 (or OS-9000) */#ifdef UNIX#define UNIXOROSK#else#ifdef OSK#define UNIXOROSK#endif /* OSK */#endif /* UNIX */#endif /* UNIXOROSK */#ifndef OSKORUNIX#ifdef UNIXOROSK#define OSKORUNIX#endif /* UNIXOROSK */#endif /* OSKORUNIX */#ifdef OS2#define CK_ANSIC            /* OS/2 supports ANSIC and more extensions */#endif /* OS2 */#ifdef OSF50		    /* Newer OSF/1 versions imply older ones */#ifndef OSF40#define OSF40#endif /* OSF40 */#endif /* OSF50 */#ifdef OSF40#ifndef OSF32#define OSF32#endif /* OSF32 */#endif /* OSF40 */#ifdef OSF32#ifndef OSF30#define OSF30#endif /* OSF30 */#endif /* OSF32 */#ifdef OSF30#ifndef OSF20#define OSF20#endif /* OSF20 */#endif /* OSF30 */#ifdef OSF20#ifndef OSF10#define OSF10#endif /* OSF10 */#endif /* OSF20 */#ifdef __DECC				/* For DEC Alpha VMS or OSF/1 */#ifndef CK_ANSIC#define CK_ANSIC			/* Even with /stand=vaxc, need ansi */#endif /* CKANSIC */#ifndef SIG_V#define SIG_V				/* and signal type is VOID */#endif /* SIG_V */#ifndef CK_ANSILIBS#define CK_ANSILIBS			/* (Martin Zinser, Feb 1995) */#endif /* CK_ANSILIBS */#ifndef _POSIX_C_SOURCE#define _POSIX_C_SOURCE 1#endif /* _POSIX_C_SOURCE */#endif	/* __DECC */#ifdef apollo				/* May be ANSI-C, check further */#ifdef __STDCPP__#define CK_ANSIC			/* Yes, this is real ANSI-C */#define SIG_V#else#define NOANSI				/* Nope, not ANSI */#undef __STDC__				/* Even though it say it is! */#define SIG_I#endif /* __STDCPP__ */#endif /* apollo */#ifdef POSIX				/* -DPOSIX on cc command line */#ifndef _POSIX_SOURCE			/* Implies _POSIX_SOURCE */#define _POSIX_SOURCE#endif /* _POSIX_SOURCE */#endif /* POSIX *//*  ANSI C?  That is, do we have function prototypes, new-style  function declarations, and parameter type checking and coercion?*/#ifdef MAC				/* MPW C is ANSI */#ifndef NOANSI#ifndef CK_ANSIC#define CK_ANSIC#endif /* CK_ANSIC */#endif /* NOANSI */#endif /* MAC */#ifdef STRATUS				/* Stratus VOS */#ifndef CK_ANSIC#define CK_ANSIC#endif /* CK_ANSIC */#ifndef NOSTAT#define NOSTAT#endif /* NOSTAT */#endif /* STRATUS */#ifndef NOANSI#ifdef __STDC__				/* __STDC__ means ANSI C */#ifndef CK_ANSIC#define CK_ANSIC#endif /* CK_ANSIC */#endif /* __STDC__ */#endif /* NOANSI *//*  _PROTOTYP() is used for forward declarations of functions so we can have  parameter and return value type checking if the compiler offers it.  __STDC__ should be defined by the compiler only if function prototypes are  allowed.  Otherwise, we get old-style forward declarations.  Our own private  CK_ANSIC symbol tells whether we use ANSI C prototypes.  To force use of  ANSI prototypes, include -DCK_ANSIC on the cc command line.  To disable the  use of ANSI prototypes, include -DNOANSI.*/#ifdef CK_ANSIC#define _PROTOTYP( func, parms ) func parms#else /* Not ANSI C */#define _PROTOTYP( func, parms ) func()#endif /* CK_ANSIC */#ifdef NOLOGIN				/* NOLOGIN implies NOIKSD */#ifndef NOIKSD#define NOIKSD#endif /* NOIKSD */#endif /* NOLOGIN */#ifdef NOIKSD				/* Internet Kermit Service Daemon */#ifndef NOPRINTFSUBST#define NOPRINTFSUBST#endif /* NOPRINTFSUBST */#ifndef NOLOGIN#define NOLOGIN#endif /* NOLOGIN */#ifndef NOSYSLOG#define NOSYSLOG#endif /* NOSYSLOG */#ifndef NOWTMP#define NOWTMP#endif /* NOWTMP */#else#ifndef IKSD#ifdef OS2ORUNIX			/* Platforms where IKSD is supported */#define IKSD#ifdef OS2ONLY#ifndef NOLOGIN#define NOLOGIN#endif /* NOLOGIN */#endif /* OS2 */#endif /* OS2ORUNIX */#endif /* IKSD */#endif /* NOIKSD */#ifdef IKSD				/* IKSD options... */#ifndef IKSDCONF			/* IKSD configuration file */#ifdef UNIX#define IKSDCONF "/etc/iksd.conf"#else#ifdef OS2#define IKSDCONF "iksd.ksc"#endif /* OS2 */#endif /* UNIX */#endif /* IKSDCONF */#ifndef NOIKSDB#ifndef IKSDB				/* IKSD database */#ifdef UNIX#define IKSDB#define IK_LCKTRIES 16			/* How many times to try to get lock */#define IK_LCKSLEEP 1			/* How long to sleep between tries */#define IK_LOCKFILE "iksd.lck"		/* Database lockfilename */#define IK_DBASEDIR "/var/log/"		/* Database directory */#define IK_DBASEFIL "iksd.db"		/* Database filename */#else /* UNIX */#ifdef OS2#define IKSDB#ifndef NOFTRUNCATE			/* ftruncate() not available */#define NOFTRUNCATE#endif /* NOFTRUNCATE */#define IK_LCKTRIES 16			/* How many times to try to get lock */#define IK_LCKSLEEP 1			/* How long to sleep between tries */#define IK_LOCKFILE "iksd.lck"		/* DB lockfilename (in systemroot) */#define IK_DBASEFIL "iksd.db"		/* Database filename */#endif /* OS2 */#endif /* UNIX */#endif /* IKSDB */#endif /* NOIKSDB */#endif /* IKSD *//*  Substitutes for printf() and friends used in IKS to compensate for  lack of a terminal driver, mainly to supply CR after LF.*/#ifndef NOPRINTFSUBST#ifndef CKWART_C#ifdef UNIX#ifndef pdp11#ifndef CKXPRINTF#define CKXPRINTF#endif /* CKXPRINTF */#endif /* pdp11 */#endif /* UNIX */#endif /* CKWART_C */#endif /* NOPRINTFSUBST */#ifdef CKXPRINTF#define printf ckxprintf#define fprintf ckxfprintf#ifdef CK_ANSIC_PROTOTYP(int ckxprintf,(const char *, ...));#ifdef NEXT_PROTOTYP(void ckxperror,(const char *));#else#ifdef CK_SCOV5_PROTOTYP(void ckxperror,(const char *));#else_PROTOTYP(int ckxperror,(const char *));#endif /* CK_SCOV5 */#endif /* NEXT */_PROTOTYP(int ckxfprintf,(FILE *, const char *, ...));#endif /* CK_ANSIC */#ifdef putchar#undef putchar#endif /* putchar */#define putchar(x) ckxprintf("%c",x)#ifdef putc#undef putc#endif /* putc */#define putc(a,b) ckxfprintf(b,"%c",a)#define perror(x)  ckxperror(x)#endif /* CKXPRINTF *//*  Altos-specific items: 486, 586, 986 models...*/#ifdef A986#define M_VOID#define void int#define CHAR char#define SIG_I#endif /* A986 *//* Signal handling */#ifdef QNX#ifndef CK_POSIX_SIG#define CK_POSIX_SIG#endif /* CK_POSIX_SIG */#endif /* QNX *//* Void type */#ifndef VOID				/* Used throughout all C-Kermit */#ifdef CK_ANSIC				/* modules... */#define VOID void#else#define VOID int#endif /* CK_ANSIC */#endif /* VOID *//* Const type */#ifndef CONST#ifdef OSK#ifdef _UCC#define CONST const#else#define CONST#endif /* _UCC */#else#ifdef CK_ANSIC#define CONST const#else#define CONST#endif /* CK_ANSIC */#endif /* OSK */#endif /* CONST *//* Signal type */#ifndef SIG_V				/* signal() type, if not def'd yet */#ifndef SIG_I#ifdef OS2#define SIG_V#else#ifdef POSIX#define SIG_V#else#ifdef SVR3				/* System V R3 and later */#define SIG_V#else#ifdef SUNOS4				/* SUNOS V 4.0 and later */#ifndef sun386#define SIG_V#else#define SIG_I#endif /* sun386 */#else#ifdef NEXT				/* NeXT */#define SIG_V#else#ifdef AIX370#include <signal.h>#define SIG_V#define SIGTYP __SIGVOID		/* AIX370 */#else#ifdef STRATUS				/* Stratus VOS */#define SIG_V#else#ifdef MAC#define SIGTYP long#define SIG_I#ifndef MPW33#define SIG_IGN 0#endif /* MPW33 */#define SIGALRM 1#ifndef MPW33#define SIGINT  2#endif /* MPW33 */#else /* Everything else */#define SIG_I#endif /* MAC */#endif /* STRATUS */#endif /* AIX370 */#endif /* NEXT */#endif /* SUNOS4 */#endif /* SVR3 */#endif /* POSIX */#endif /* OS2 */#endif /* SIG_I */#endif /* SIG_V */#ifdef SIG_I#define SIGRETURN return(0)#ifndef SIGTYP#define SIGTYP int#endif /* SIGTYP */#endif /* SIG_I */#ifdef SIG_V#define SIGRETURN return#ifndef SIGTYP#define SIGTYP void#endif /* SIGTYP */#endif /* SIG_V */#ifdef NT#ifndef SIGTYP#define SIGTYP void#endif /* SIGTYP */#define strdup _strdup#endif /* NT */#ifndef SIGTYP#define SIGTYP int#endif /* SIGTYP */#ifndef SIGRETURN#define SIGRETURN return(0)#endif /* SIGRETURN */#ifdef CKNTSIG/* This does not work, so don't use it. */#define signal ckntsignalSIGTYP (*ckntsignal(int type, SIGTYP (*)(int)))(int);#endif /* CKNTSIG *//* Unsigned numbers */#ifndef USHORT#define USHORT unsigned short#endif /* USHORT */#ifndef UINT#define UINT unsigned int#endif /* UINT */#ifndef ULONG#define ULONG unsigned long#endif /* ULONG *//* We want all characters to be unsigned if the compiler supports it */#ifdef KUI#ifdef CHAR#undef CHAR#endif /* CHAR */#define CHAR unsigned char#else#ifdef PROVX1typedef char CHAR;/* typedef long LONG; */typedef int void;#else#ifdef MINIXtypedef unsigned char CHAR;#else#ifdef V7typedef char CHAR;#else#ifdef C70typedef char CHAR;/* typedef long LONG; */#else#ifdef BSD29typedef char CHAR;/* typedef long LONG; */#else#ifdef datageneral#define CHAR unsigned char			/* 3.22 compiler */#else#ifdef HPUX#define CHAR unsigned char#else#ifdef OS2#ifdef NT#define CHAR unsigned char#else /* NT */#ifdef CHAR#undef CHAR#endif /* CHAR */typedef unsigned char CHAR;#endif /* NT */#else /* OS2 */#ifdef VMStypedef unsigned char CHAR;#else#ifdef CHAR#undef CHAR#endif /* CHAR */typedef unsigned char CHAR;#endif /* VMS */#endif /* OS2 */#endif /* HPUX */#endif /* datageneral */#endif /* BSD29 */#endif /* C70 */#endif /* V7 */#endif /* MINIX */#endif /* PROVX1 */#endif /* KUI */union ck_short {			/* Mainly for Unicode */    USHORT x_short;    CHAR x_char[2];};#ifdef MAC				/* Macintosh file routines */#ifndef CKWART_C			/* But not in "wart"... */#ifdef feof#undef feof#endif /* feof */#define feof mac_feof#define rewind mac_rewind#define fgets mac_fgets#define fopen mac_fopen#define fclose mac_fcloseint mac_feof();void mac_rewind();char *mac_fgets();FILE *mac_fopen();int mac_fclose();#endif /* CKCPRO_W */#endif /* MAC *//*   Systems whose mainline modules have access to the communication-line   file descriptor, ttyfd.*/#ifndef CK_TTYFD#ifdef UNIX#define CK_TTYFD#else#ifdef OS2#define CK_TTYFD#else#ifdef VMS#define CK_TTYFD#endif /* VMS */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -