📄 ckcdeb.h
字号:
#ifdef NETPTY#undef NETPTY#endif /* NETPTY */#endif /* NOPUSH */#ifndef PEXITSTAT /* \v(pexitstat) variable defined */#ifdef OS2ORUNIX#define PEXITSTAT#else#ifdef VMS#define PEXITSTAT#endif /* VMS */#endif /* OS2ORUNIX */#endif /* PEXITSTAT *//* The following allows automatic enabling of REDIRECT to be overridden... */#ifdef NOREDIRECT#ifdef NETCMD#undef NETCMD#endif /* NETCMD */#ifdef NETPTY#undef NETPTY#endif /* NETPTY */#ifdef CK_REDIR#undef CK_REDIR#endif /* CK_REDIR */#endif /* NOREDIRECT */#ifdef NONETCMD#ifdef NETCMD#undef NETCMD#endif /* NETCMD */#ifdef NETPTY#undef NETPTY#endif /* NETPTY */#endif /* NONETCMD */#ifdef CK_REDIR_PROTOTYP( int ttruncmd, (char *) );#endif /* CK_REDIR *//* Use built-in DIRECTORY command */#ifndef NOMYDIR#ifndef DOMYDIR#ifdef UNIXOROSK#define DOMYDIR#else#ifdef OS2#define DOMYDIR#else#ifdef VMS#define DOMYDIR#endif /* VMS */#endif /* OS2 */#endif /* UNIXOROSK */#endif /* DOMYDIR */#endif /* NOMYDIR *//* Sending from and receiving to commands/pipes */#ifndef PIPESEND#ifdef UNIX#define PIPESEND#endif /* UNIX */#ifdef OS2#define PIPESEND#endif /* OS2 */#endif /* PIPESEND */#ifdef PIPESEND#ifdef NOPIPESEND#undef PIPESEND#endif /* NOPIPESEND */#ifdef NOPUSH#undef PIPESEND#endif /* NOPUSH */#endif /* PIPESEND */#ifdef NOPUSH#ifdef BROWSER#undef BROWSER#endif /* BROWSER */#endif /* NOPUSH *//* Versions where we support the RESEND command */#ifndef NORESEND#ifndef CK_RESEND#ifdef UNIX#ifndef pdp11#define CK_RESEND#endif /* pdp11 */#endif /* UNIX */#ifdef VMS#define CK_RESEND#endif /* VMS */#ifdef OS2#define CK_RESEND#endif /* OS2 */#ifdef AMIGA#define CK_RESEND#endif /* AMIGA */#ifdef datageneral#define CK_RESEND#endif /* datageneral */#ifdef STRATUS#define CK_RESEND#endif /* STRATUS */#ifdef OSK#define CK_RESEND#endif /* OSK */#endif /* CK_RESEND */#endif /* NORESEND *//* Systems implementing "Doomsday Kermit" protocol ... */#ifndef DOOMSDAY#ifdef UNIX#define DOOMSDAY#else#ifdef VMS#define DOOMSDAY#else#ifdef OS2#define DOOMSDAY#else#ifdef STRATUS#define DOOMSDAY#endif /* STRATUS */#endif /* OS2 */#endif /* VMS */#endif /* UNIX */#endif /* DOOMSDAY *//* Systems where we want the Thermometer to be used for fullscreen */#ifdef OS2#ifndef CK_PCT_BAR#define CK_PCT_BAR#endif /* CK_PCT_BAR */#endif /* OS2 *//* Systems where we have a REXX command */#ifdef OS2#ifdef __32BIT__#ifndef NOREXX#define CK_REXX#endif /* NOREXX */#endif /* __32BIT__ */#endif /* OS2 *//* Platforms that have a ZCHKPID function */#ifdef OS2ORUNIX#define ZCHKPID#endif /* OS2ORUNIX */#ifndef ZCHKPID/* If we can't check pids then we have treat all pids as active & valid. */#define zchkpid(x) 1#endif /* ZCHKPID *//* Systems that have a ZRENAME function */#define ZRENAME /* They all do *//* Systems that have a ZCOPY function */#ifndef ZCOPY#ifdef VMS#define ZCOPY#else#ifdef OS2#define ZCOPY#else#ifdef UNIX#define ZCOPY#else#ifdef STRATUS#define ZCOPY#endif /* STRATUS */#endif /* UNIX */#endif /* OS2 */#endif /* VMS */#endif /* ZCOPY *//* Systems that have ttgwsiz() (they all should but they don't) */#ifndef NOTTGWSIZ#ifndef CK_TTGWSIZ#ifdef UNIX#define CK_TTGWSIZ#else#ifdef VMS#define CK_TTGWSIZ#else#ifdef OS2#define CK_TTGWSIZ#else#ifdef OSK#define CK_TTGWSIZ#endif /* OSK */#endif /* OS2 */#endif /* VMS */#endif /* UNIX */#endif /* CK_TTGWSIZ */#endif /* NOTTGWSIZ */#ifdef NOTTGWSIZ#ifdef CK_TTGWSIZ#undef CK_TTGWSIZ#endif /* CK_TTGWSIZ */#endif /* NOTTGWSIZ *//* OS/2 C-Kermit features not available in 16-bit version... */#ifdef OS2#ifndef __32BIT__#ifdef PCFONTS /* PC Font support */#undef PCFONTS#endif /* PCFONTS */#ifdef NPIPE /* Named Pipes communication */#undef NPIPE#endif /* NPIPE */#ifdef CK_NETBIOS /* NETBIOS communication */#undef CK_NETBIOS#endif /* CK_NETBIOS */#ifdef OS2MOUSE /* Mouse */#undef OS2MOUSE#endif /* OS2MOUSE */#ifdef OS2PM /* Presentation Manager */#undef OS2PM#endif /* OS2PM */#ifdef CK_REXX /* Rexx */#undef CK_REXX#endif /* CK_REXX */#endif /* __32BIT__ */#endif /* OS2 *//* OS/2 C-Kermit features not available in Windows NT version... */#ifdef OS2#ifdef NT#ifdef PCFONTS /* PC Font support */#undef PCFONTS#endif /* PCFONTS */#ifdef NPIPE /* Named Pipes communication */#undef NPIPE#endif /* NPIPE */#ifdef OS2PM /* Presentation Manager */#undef OS2PM#endif /* OS2PM */#ifdef CK_REXX /* Rexx */#undef CK_REXX#endif /* CK_REXX */#endif /* NT */#endif /* OS2 *//* Systems that have select(). This is used for both msleep() and for read-buffer checking in in_chk().*/#define CK_SLEEPINT 250 /* milliseconds - set this to something that divides evenly into 1000 */#ifndef SELECT#ifndef NOSELECT#ifdef __linux__#define SELECT#else#ifdef SUNOS4#define SELECT#else#ifdef NEXT#define SELECT#else#ifdef HPUX/* Not really. I think it's only in HP-UX 7.0 and later, except it's also in earlier versions that have TCP/IP installed. Override this default in particular HP-UX makefile entries by adding -DNOSELECT, as in (e.g.) the HP-UX 6.5 ones.*/#define SELECT#else#ifdef AIXRS#define SELECT#else#ifdef BSD44#define SELECT#else#ifdef BSD4#define SELECT#else#ifdef OXOS#define SELECT#else#ifdef OS2#define SELECT#else#ifdef BEBOX#define SELECT#endif /* BEBOX */#endif /* OS2 */#endif /* OXOS */#endif /* BSD4 */#endif /* BSD44 */#endif /* AIXRS */#endif /* HPUX */#endif /* NEXT */#endif /* __linux__ */#endif /* SUNOS4 */#endif /* NOSELECT */#endif /* SELECT *//* The following section moved here from ckcnet.h in 6.1 because select() is now used for non-networking purposes.*//* On HP-9000/500 HP-UX 5.21 this stuff is not defined in any header file */#ifdef hp9000s500#ifndef NEEDSELECTDEFS#define NEEDSELECTDEFS#endif /* NEEDSELECTDEFS */#endif /* hp9000s500 */#ifdef NEEDSELECTDEFStypedef long fd_mask;#ifndef NBBY#define NBBY 8#endif /* NBBY */#ifndef FD_SETSIZE#define FD_SETSIZE 32#endif /* FD_SETSIZE */#ifndef NFDBITS#define NFDBITS (sizeof(fd_mask) * NBBY)#endif /* NFDBITS */#ifndef howmany#define howmany(x,y) (((x)+((y)-1))/(y))#endif /* howmany */typedef struct fd_set { fd_mask fds_bits[howmany(FD_SETSIZE, NFDBITS)];} fd_set;#ifndef FD_SET#define FD_SET(n,p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))#endif /* FD_SET */#ifndef FD_CLR#define FD_CLR(n,p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))#endif /* FD_CLR */#ifndef FD_ISSET#define FD_ISSET(n,p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))#endif /* FD_ISSET */#ifndef FD_COPY#define FD_COPY(f,t) (bcopy(f,t,sizeof(*(f)))#endif /* FD_COPY */#ifndef FD_ZERO#define FD_ZERO(p) bzero((char *)(p),sizeof(*(p)))#endif /* FD_ZERO */#endif /* NEEDSELECTDEFS *//* CK_NEED_SIG is defined if the system cannot check the console to to see if characters are waiting. This is used during local-mode file transfer to interrupt the transfer, refresh the screen display, etc. If CK_NEED_SIG is defined, then file-transfer interruption characters have to be preceded a special character, e.g. the SIGQUIT character. CK_NEED_SIG should be defined if the conchk() function is not operational.*/#ifdef NOPOLL /* For overriding CK_POLL definition */#ifdef CK_POLL#undef CK_POLL#endif /* CK_POLL */#endif /* NOPOLL */#ifndef CK_POLL /* If we don't have poll() */#ifndef RDCHK /* And we don't have rdchk() */#ifndef SELECT /* And we don't have select() */#ifdef ATTSV#ifndef aegis#ifndef datageneral#ifndef OXOS#define CK_NEED_SIG#endif /* OXOS */#endif /* datageneral */#endif /* aegis */#endif /* ATTSV */#ifdef POSIX#ifndef CK_NEED_SIG#define CK_NEED_SIG#endif /* CK_NEED_SIG */#endif /* POSIX */#endif /* SELECT */#endif /* RDCHK */#endif /* CK_POLL */#ifdef HPUX /* HP-UX has select() */#ifdef CK_NEED_SIG#undef CK_NEED_SIG#endif /* CK_NEED_SIG */#endif /* HPUX */#ifdef AIXRS /* AIX has select() */#ifdef CK_NEED_SIG#undef CK_NEED_SIG#endif /* CK_NEED_SIG */#endif /* AIXRS */#ifdef BSD44 /* 4.4BSD has FIONREAD */#ifdef CK_NEED_SIG#undef CK_NEED_SIG#endif /* CK_NEED_SIG */#endif /* BSD44 */#ifdef QNX /* QNX has FIONREAD and select() */#ifdef CK_NEED_SIG#undef CK_NEED_SIG#endif /* CK_NEED_SIG */#endif /* QNX */#ifdef COHERENT#ifndef NOTIMEZONE#define NOTIMEZONE#endif /* NOTIMEZONE */#endif /* COHERENT */#ifdef UNIX#ifndef HAVE_TZ /* Can we use struct timezone? */#ifndef NOTIMEZONE#ifdef PTX#define NOTIMEZONE#else#ifndef SELECT#ifdef COHERENT#define NOTIMEZONE#else#ifdef BELLV10#define NOTIMEZONE#endif /* BELLV10 */#endif /* COHERENT */#endif /* SELECT */#endif /* PTX */#endif /* NOTIMEZONE */#endif /* HAVE_TZ */#ifndef NOTIMEVAL /* Can we use struct timeval? */#ifndef HAVE_TV#define HAVE_TV#endif /* HAVE_TV */#endif /* NOTIMEVAL */#ifndef NOTIMEZONE#ifndef HAVE_TZ#define HAVE_TZ#endif /* HAVE_TZ */#endif /* NOTIMEZONE */#endif /* UNIX */#ifdef SCO32#ifdef HAVE_TV#undef HAVE_TV#endif /* HAVE_TV */#ifdef HAVE_TZ#undef HAVE_TZ#endif /* HAVE_TZ */#ifndef NOTIMEVAL#define NOTIMEVAL#endif /* NOTIMEVAL */#ifndef NOTIMEZONE#define NOTIMEZONE#endif /* NOTIMEZONE */#endif /* SCO32 */#ifdef ATT7300#ifdef HAVE_TV#undef HAVE_TV#endif /* HAVE_TV */#ifdef HAVE_TZ#undef HAVE_TZ#endif /* HAVE_TZ */#ifndef NOTIMEVAL#define NOTIMEVAL#endif /* NOTIMEVAL */#ifndef NOTIMEZONE#define NOTIMEZONE#endif /* NOTIMEZONE */#endif /* ATT7300 *//* Automatic parity detection. This actually implies a lot more now: length-driven packet reading, "Doomsday Kermit" IBM Mainframe file transfer through 3270 data streams, etc.*/#ifdef UNIX /* For Unix */#ifndef NOPARSEN#define PARSENSE#endif /* NOPARSEN */#endif /* UNIX */#ifdef VMS /* ... and VMS */#ifndef NOPARSEN#define PARSENSE#endif /* NOPARSEN */#ifdef __GNUC__#define VMSGCC#endif /* __GNUC__ */#endif /* VMS */#ifdef MAC /* and Macintosh */#ifndef NOPARSEN#define PARSENSE#endif /* NOPARSEN */#endif /* MAC */#ifdef STRATUS /* and Stratus VOS */#ifndef NOPARSEN#define PARSENSE#endif /* NOPARSEN */#endif /* STRATUS */#ifdef OS2 /* and OS/2, finally */#ifndef NOPARSEN#define PARSENSE#endif /* NOPARSEN */#endif /* OS2 */#ifndef NODYNAMIC /* DYNAMIC is default for UNIX */#ifndef DYNAMIC /* as of C-Kermit 7.0 */#ifdef UNIX#define DYNAMIC#endif /* UNIX */#endif /* DYNAMIC */#endif /* NODYNAMIC */#ifdef DYNAMIC /* If DYNAMIC is defined */#define DCMDBUF /* then also define this. */#endif /* DYNAMIC */#ifndef CK_LBRK /* Can send Long BREAK */#ifdef UNIX /* (everybody but OS-9) */#define CK_LBRK#endif /* UNIX */#ifdef VMS#define CK_LBRK#endif /* VMS */#ifdef datageneral#define CK_LBRK#endif /* datageneral */#ifdef GEMDOS#define CK_LBRK#endif /* GEMDOS */#ifdef OS2#define CK_LBRK#endif /* OS2 */#ifdef AMIGA#define CK_LBRK#endif /* AMIGA */#ifdef STRATUS#define CK_LBRK#endif /* STRATUS */#endif /* CK_LBRK *//* Carrier treatment *//* These are defined here because they are shared by the system dependent *//* and the system independent modules. */#define CAR_OFF 0 /* Off: ignore carrier always. */#define CAR_ON 1 /* On: heed carrier always, except during DIAL. */#define CAR_AUT 2 /* Auto: heed carrier, but only if line is declared */ /* to be a modem line, and only during CONNECT. *//* And more generically (for use with any ON/OFF/AUTO feature) */#define CK_OFF 0#define CK_ON 1#define CK_AUTO 2#ifndef NOLOCAL/* Serial interface speeds available. As of C-Kermit 6.1 there is a new method to get the supported speeds, which obviates the need for all the craziness below. At runtime, just call the new ttspdlist() routine to get a list of supported speeds. Then the user interface module can build a keyword table or menu from it.*/#ifndef TTSPDLIST#ifdef UNIX /* For now, only for UNIX */#ifndef OLINUXHISPEED /* But not systems with hacks for */#ifndef MINIX /* high speeds, like 110 = 115200 */#define TTSPDLIST#endif /* MINIX */#endif /* OLINUXHISPEED */#else#ifdef VMS#define TTSPDLIST /* VMS gets it too */#endif /* VMS */#endif /* UNIX */#endif /* TTSPDLIST */#ifndef NODIAL /* Hangup by modem command */#ifndef NOMDMHUP#ifndef MDMHUP#define MDMHUP#endif /* MDMHUP */#endif /* NOMDMHUP */#endif /* NODIAL */#ifdef NOSPL#ifndef NOLOGDIAL /* Connection log needs mjd(), etc. */#define NOLOGDIAL#endif /* NOLOGDIAL */#endif /* NOSPL */#ifdef pdp11#define NOLOGDIAL#endif /* pdp11 */#ifndef NOLOGDIAL /* Connection log */#ifndef CXLOGFILE#define CXLOGFILE "CX.LOG" /* Default connection log file name */#endif /* CXLOGFILE */#ifndef CKLOGDIAL#ifndef CK_SMALL#define CKLOGDIAL#define CXLOGBU
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -