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

📄 ckcdeb.h

📁 linux终端仿真程序
💻 H
📖 第 1 页 / 共 5 页
字号:
/*  C K C D E B . H  *//*  Fri Sep  6 23:23:05 1996  NOTE TO CONTRIBUTORS: This file, and all the other C-Kermit files, must be  compatible with C preprocessors that support only #ifdef, #else, #endif,  #define, and #undef.  Please do not use #if, logical operators, or other  preprocessor features in any of the portable C-Kermit modules.  You can,  of course, use these constructions in system-specific modules when you they  are supported.*//*  This file is included by all C-Kermit modules, including the modules  that aren't specific to Kermit (like the command parser and the ck?tio and  ck?fio modules).  It should be include BEFORE any other C-Kermit header  files.  It specifies format codes for debug(), tlog(), and similar  functions, and includes any necessary definitions to be used by all C-Kermit  modules, and also includes some feature selection compile-time switches, and  also system- or compiler-dependent definitions, plus #includes and prototypes  required by all C-Kermit modules.*//*  Author: Frank da Cruz <fdc@columbia.edu>,  Columbia University Academic Information Systems, New York City.  Copyright (C) 1985, 1996, Trustees of Columbia University in the City of New  York.  All rights reserved.*//*  Etymology: The name of this file means "C-Kermit Common-C-Language Debugging  Header", because originally it contained only the formats (F000-F111) for  the debug() and tlog() functions.  See how it has grown...*/#ifndef CKCDEB_H			/* Don't include me more than once. */#define CKCDEB_H#ifdef NOLOCAL               /* Things not needed for a remote-only version */#ifndef NODIAL#define NODIAL#endif /* NODIAL */#ifndef NOSCRIPT#define NOSCRIPT#endif /* NOSCRIPT */#ifndef NOAPC#define NOAPC#endif /* NOAPC */#ifndef NOSETKEY#define NOSETKEY#endif /* NOSETKEY */#ifndef NOXMIT#define NOXMIT#endif /* NOXMIT */#ifdef CK_CURSES#undef CK_CURSES#endif /* CK_CURSES */#ifdef NETCONN#undef NETCONN#endif /* NETCONN */#ifdef TCPSOCKET#undef TCPSOCKET#endif /* TCPSOCKET */#endif /* NOLOCAL */#ifdef NONET#ifdef NETCONN#undef NETCONN#endif /* NETCONN */#ifdef TCPSOCKET#undef TCPSOCKET#endif /* TCPSOCKET */#ifdef SUNX25#undef SUNX25#endif /* SUNX25 */#ifdef STRATUSX25#undef STRATUSX25#endif /* STRATUSX25 */#ifdef CK_NETBIOS#undef CK_NETBIOS#endif /* CK_NETBIOS */#ifdef SUPERLAT#undef SUPERLAT#endif /* SUPERLAT */#ifdef NPIPE#undef NPIPE#endif /* NPIPE */#ifdef SUNX25#undef SUNX25#endif /* SUNX25 */#ifdef SUNX25#undef SUNX25#endif /* SUNX25 */#ifdef SUNX25#undef SUNX25#endif /* SUNX25 */#ifdef SUNX25#undef SUNX25#endif /* SUNX25 */#endif /* NONET */#ifndef DEFPAR				/* Default parity */#define DEFPAR 0			/* Must be here because it is used */#endif /* DEFPAR */			/* by all classes of modules */#ifdef NT#ifndef OS2ORWIN32#define OS2ORWIN32#endif /* OS2ORWIN32 */#ifndef OS2#define WIN32ONLY#endif /* OS2 */#endif /* NT */#ifdef OS2				/* For OS/2 debugging */#ifndef OS2ORWIN32#define OS2ORWIN32#endif /* OS2ORWIN32 */#include "ckoker.h"#ifdef NT#include <windows.h>#define NTSIG   #else /* NT */#define OS2ONLY#include <os2def.h> #endif /* NT */#ifndef OS2ORUNIX#define OS2ORUNIX#endif /* OS2ORUNIX */#endif /* OS2 */#include <stdio.h>			/* Begin by including this. */#include <ctype.h>			/* and this. */#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 Vscrnfprintf(FILE *, const char *, ...);#ifdef putchar#undef putchar#endif /* putchar */#define putchar(x) Vscrnprintf("%c",x)#define puts(x)    Vscrnprintf(x)#define perror(x)  Vscrnperror(x)#endif /* OS2 *//* System-type compilation switches */#ifdef FT21				/* Fortune For:Pro 2.1 implies 1.8 */#ifndef FT18#define FT18#endif /* FT18 */#endif /* FT21 */#ifdef AIXPS2				/* AIXPS2 implies AIX370 */#ifndef AIX370#define AIX370#endif /* AIX370 */#endif /* AIXPS2 */#ifdef AIX370				/* AIX PS/2 or 370 implies BSD4 */#ifndef BSD4#define BSD4#endif /* BSD4 */#endif /* AIX370 */#ifdef AIXESA				/* AIX/ESA implies BSD4.4 */#ifndef BSD44#define BSD44#endif /* BSD44 */#endif /* AIXESA */#ifdef DGUX540				/* DG UX 5.40 implies Sys V R 4 */#ifndef SVR4#define SVR4#endif /* SVR4 */#endif /* DGUX540 */#ifdef SUNOS41				/* SUNOS41 implies SUNOS4 */#ifndef SUNOS4#define SUNOS4#endif /* SUNOS4 */#endif /* SUNOS41 */#ifdef SUN4S5				/* Sun-4 System V environment */#ifndef SVR3				/* implies System V R3 or later */#define SVR3#endif /* SVR3 */#endif /* SUN4S5 */#ifdef MIPS				/* MIPS System V environment */#ifndef SVR3				/* implies System V R3 or later */#define SVR3#endif /* SVR3 */#endif /* MIPS */#ifdef HPUX9				/* HP-UX 9.x */#ifndef SVR3#define SVR3#endif /* SVR3 */#ifndef HPUX#define HPUX#endif /* HPUX */#endif /* HPUX9 */#ifdef HPUX10				/* HP-UX 10.x */#ifndef HPUX1010			/* If anything higher is defined */#ifdef HPUX1020				/* define HPUX1010 too. */#define HPUX1010#endif /* HPUX1020 */#ifdef HPUX1030#define HPUX1010#endif /* HPUX1030 */#endif /* HPUX1010 */#ifndef SVR4#define SVR4#endif /* SVR4 */#ifndef HPUX#define HPUX#endif /* HPUX */#endif /* HPUX10 */#ifdef QNX				/* QNX Software Systems Inc */#ifndef POSIX				/* QNX 4.0 or later is POSIX */#define POSIX#endif /* POSIX */#ifndef __386__				/* Comes in 16-bit and 32-bit */#define __16BIT__#define CK_QNX16#else#define __32BIT__#define CK_QNX32#endif /* __386__ */#endif /* QNX *//*  4.4BSD is a mixture of System V R4, POSIX, and 4.3BSD.*/#ifdef BSD44				/* 4.4 BSD */#ifndef SVR4				/* BSD44 implies SVR4 */#define SVR4#endif /* SVR4 */#ifndef NOSETBUF			/* NOSETBUF is safe */#define NOSETBUF#endif /* NOSETBUF */#ifndef DIRENT				/* Uses <dirent.h> */#define DIRENT#endif /* DIRENT */#endif /* BSD44 */#ifdef SVR3				/* SVR3 implies ATTSV */#ifndef ATTSV#define ATTSV#endif /* ATTSV */#endif /* SVR3 */#ifdef SVR4				/* SVR4 implies ATTSV */#ifndef ATTSV#define ATTSV#endif /* ATTSV */#ifndef SVR3				/* ...as well as SVR3 */#define SVR3#endif /* SVR3 */#endif /* SVR4 */#ifdef OXOS#ifndef ATTSV#define ATTSV				/* OXOS implies ATTSV */#endif /* ! ATTSV */#define SW_ACC_ID			/* access() wants privs on */#define kill priv_kill			/* kill() wants privs on */#ifndef NOSETBUF#define NOSETBUF			/* NOSETBUF is safe */#endif /* ! NOSETBUF */#endif /* OXOS */#ifdef UTSV				/* UTSV implies ATTSV */#ifndef ATTSV#define ATTSV#endif /* ATTSV */#endif /* UTSV */#ifdef XENIX				/* XENIX implies ATTSV */#ifndef ATTSV#define ATTSV#endif /* ATTSV */#endif /* XENIX */#ifdef AUX				/* AUX implies ATTSV */#ifndef ATTSV#define ATTSV#endif /* ATTSV */#endif /* AUX */#ifdef ATT7300				/* ATT7300 implies ATTSV */#ifndef ATTSV#define ATTSV#endif /* ATTSV */#endif /* ATT7300 */#ifdef ATT6300				/* ATT6300 implies ATTSV */#ifndef ATTSV#define ATTSV#endif /* ATTSV */#endif /* ATT6300 */#ifdef HPUX				/* HPUX implies ATTSV */#ifndef ATTSV#define ATTSV#endif /* ATTSV */#endif /* HPUX */#ifdef ISIII				/* ISIII implies ATTSV */#ifndef ATTSV#define ATTSV#endif /* ATTSV */#endif /* ISIII */#ifdef NEXT33				/* NEXT33 implies NEXT */#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 */#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 OS2#define CK_ANSIC            /* OS/2 supports ANSIC and more extensions */#endif /* OS2 */#ifdef OSF40		/* Newer OSF/1 versions imply older ones */#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 AXP 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#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 */#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 */

⌨️ 快捷键说明

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