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

📄 ckcdeb.h

📁 KERMIT工具 这在办公室下载不了,很多人都没有载不到.
💻 H
📖 第 1 页 / 共 5 页
字号:
#define _PROTOTYP( func, parms ) func parms#else /* Not ANSI C */#define _PROTOTYP( func, parms ) func()#endif /* CK_ANSIC */#ifndef OS2#ifdef NOLOGIN				/* NOLOGIN implies NOIKSD */#ifndef NOIKSD#define NOIKSD#endif /* NOIKSD */#endif /* NOLOGIN */#endif /* OS2 */#ifdef NOIKSD				/* Internet Kermit Service Daemon */#ifndef OS2#ifndef NOPRINTFSUBST#define NOPRINTFSUBST#endif /* NOPRINTFSUBST */#endif /* OS2 */#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#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#ifdef MAC/* * The MAC doesn't use standard stdio routines. */#undef getchar#define getchar()   mac_getchar()#undef putchar#define putchar(c)	mac_putchar(c)#define printf		mac_printf#define perror		mac_perror#define puts		mac_putsextern int mac_putchar (int c);extern int mac_puts (const char *string);extern int mac_printf(const char *, ...);extern int mac_getchar (void);#endif /* MAC */#ifdef OS2#define printf Vscrnprintf#define fprintf Vscrnfprintfextern int Vscrnprintf(const char *, ...);extern int Vscrnprintw(const char *, ...);extern int Vscrnfprintf(FILE *, const char *, ...);#ifdef putchar#undef putchar#endif /* putchar */#define putchar(x) Vscrnprintf("%c",x)#define perror(x)  Vscrnperror(x)#endif /* OS2 */#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  /* !OSK */#ifdef CK_SCO32V4#define CONST#else#ifdef CK_ANSIC#define CONST const#else#define CONST#endif /* CK_ANSIC */#endif /* CK_SCO32V4 */#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 */#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 *//* 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 */#endif /* OS2 */#endif /* UNIX */#endif /* CK_TTYFD *//* Systems where we can get our own process ID */#ifndef CK_PID#ifdef UNIX#define CK_PID#endif /* UNIX */#ifdef OS2#define CK_PID#endif /* OS2 */#ifdef VMS#define CK_PID#endif /* VMS */#endif /* CK_PID *//* Systems that support the Microsoft Telephony API (TAPI) */#ifndef NODIAL#ifndef CK_TAPI#ifdef NT#define CK_TAPI#endif /* NT */#endif /* CK_TAPI */#endif /* NODIAL */#ifndef NONZXPAND#ifndef NZXPAND#ifdef OS2ORUNIX#define NZXPAND#else#ifdef VMS#define NZXPAND#else#ifdef datageneral#define NZXPAND#else#ifdef OSK#define NZXPAND#endif /* OSK */#endif /* datageneral */#endif /* VMS */#endif /* OS2ORUNIX */#endif /* NZXPAND */#else#ifdef NZXPAND#undef NZXPAND#endif /* NZXPAND */#endif /* NONZXPAND *//* nzxpand() option flags */#define ZX_FILONLY   1			/* Match only regular files */#define ZX_DIRONLY   2			/* Match only directories */#define ZX_RECURSE   4			/* Descend through directory tree */#define ZX_MATCHDOT  8			/* Match "dot files" */#define ZX_NOBACKUP 16			/* Don't match "backup files" */#define ZX_NOLINKS  32			/* Don't follow symlinks */#ifndef NZXPAND#define nzxpand(a,b) zxpand(a)#endif /* NZXPAND */#ifndef NOZXREWIND#ifndef ZXREWIND			/* Platforms that have zxrewind() */#ifdef OS2ORUNIX#define ZXREWIND#else#ifdef VMS#define ZXREWIND#else#ifdef datageneral#define ZXREWIND#else#ifdef OSK#define ZXREWIND#else#ifdef STRATUS#define ZXREWIND#endif /* STRATUS */#endif /* OSK */#endif /* datageneral */#endif /* VMS */#endif /* OS2ORUNIX */#endif /* ZXREWIND */#else#ifdef ZXREWIND#undef ZXREWIND#endif /* ZXREWIND */#endif /* NOZXREWIND *//* Temporary-directory-for-RECEIVE feature ... *//* This says whether we have the isdir() function defined. */#ifdef UNIX				/* UNIX has it */#ifndef CK_TMPDIR#ifndef pdp11#define CK_TMPDIR#define TMPDIRLEN 256#endif /* pdp11 */#endif /* CK_TMPDIR */#endif /* UNIX */#ifdef VMS				/* VMS too */#ifndef CK_TMPDIR#define CK_TMPDIR#define TMPDIRLEN 256#endif /* CK_TMPDIR */#endif /* VMS */#ifdef OS2				/* OS two too */#ifndef CK_TMPDIR#define CK_TMPDIR#define TMPDIRLEN 129#endif /* CK_TMPDIR */#endif /* OS2 */#ifdef STRATUS				/* Stratus VOS too. */#ifndef CK_TMPDIR#define CK_TMPDIR#define TMPDIRLEN 256#endif /* CK_TMPDIR */#endif /* STRATUS */#ifdef OSK				/* OS-9 too */#ifndef CK_TMPDIR#define CK_TMPDIR#define TMPDIRLEN 256#endif /* CK_TMPDIR */#endif /* OSK */#ifdef datageneral			/* AOS/VS too */#ifndef CK_TMPDIR#define CK_TMPDIR#define TMPDIRLEN 256#endif /* CK_TMPDIR */#endif /* datageneral */#ifdef CK_TMPDIR			/* Needs command parser */#ifdef NOICP#undef CK_TMPDIR#endif /* NOICP */#endif /* CK_TMPDIR *//* Whether to include <sys/time.h> */#ifndef NOTIMEH				/* <time.h> */#ifndef TIMEH#define TIMEH#endif /* TIMEH */#endif /* NOTIMEH */#ifndef NOSYSTIMEH			/* <sys/time.h> */#ifndef SYSTIMEH#ifdef UNIX				/* UNIX */#ifdef SVORPOSIX			/* System V or POSIX... */#ifdef M_UNIX#define SYSTIMEH#else#ifdef SCO_32V4#define SYSTIMEH#else#ifdef OXOS#define SYSTIMEH#else#ifdef BSD44#define SYSTIMEH#else#ifdef __linux__#define SYSTIMEH#else#ifdef AIXRS#ifndef AIX41#define SYSTIMEH#endif /* AIX41 */#else#ifdef IRIX60#define SYSTIMEH#else#ifdef I386IX#define SYSTIMEH#else#ifdef SV68R3V6#define SYSTIMEH#endif /* SV68R3V6 */#endif /* I386IX */#endif /* IRIX60 */#endif /* AIXRS */#endif /* __linux__ */#endif /* BSD44 */#endif /* OXOS */#endif /* SCO_32V4 */#endif /* M_UNIX */#else  /* Not SVORPOSIX */#ifndef BELLV10				/* All but these... */#ifndef PROVX1#ifndef V7#ifndef BSD41#ifndef COHERENT#define SYSTIMEH#endif /* COHERENT */#endif /* BSD41 */#endif /* V7 */#endif /* PROVX1 */#endif /* BELLV10 */#endif /* SVORPOSIX */#endif /* UNIX */#endif /* SYSTIMEH */#endif /* NOSYSTIMEH */#ifndef NOSYSTIMEBH			/* <sys/timeb.h> */#ifndef SYSTIMEBH#ifdef OSF#define SYSTIMEBH#else#ifdef COHERENT#define SYSTIMEBH#else#ifdef BSD41#define SYSTIMEBH#else#ifdef BSD29#define SYSTIMEBH#else#ifdef TOWER1#define SYSTIMEBH#else#ifdef FT21#define SYSTIMEBH#else#ifdef BELLV10#define SYSTIMEBH#endif /* BELLV10 */#endif /* FT21 */#endif /* TOWER1 */#endif /* BSD29 */#endif /* BSD41 */#endif /* COHERENT */#endif /* OSF */#endif /* SYSTIMEBH */#endif /* NOSYSTIMEBH *//* Debug and transaction logging is included automatically unless you define NODEBUG or NOTLOG.  Do this if you want to save the space and overhead. (Note, in version 4F these definitions changed from "{}" to the null string to avoid problems with semicolons after braces, as in: "if (x) tlog(this); else tlog(that);"*/#ifndef NODEBUG#ifndef DEBUG#define DEBUG#endif /* DEBUG */

⌨️ 快捷键说明

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