Annotation of researchv10dc/lbin/kermit/ckcdeb.h, revision 1.1

1.1     ! root        1: /*  C K C D E B . H  */
        !             2: /*
        !             3:  For release 4E of C-Kermit, July 87.  Incorporates changes from Phil Julian 
        !             4:  and Jack Rouse of SAS Institute for DG, Apollo, and Amiga support, and from
        !             5:  Jim Noble of Planning Research Corp for Macintosh Megamax C support.
        !             6: */ 
        !             7: /*
        !             8:  This file is included by all C-Kermit modules, including the modules
        !             9:  that aren't specific to Kermit (like the command parser and the ck?tio and
        !            10:  ck?fio modules.  It specifies format codes for debug(), tlog(), and similar
        !            11:  functions, and includes any necessary typedefs to be used by all C-Kermit
        !            12:  modules, and also includes some feature selection compile-time switches.
        !            13: */
        !            14: /*
        !            15:  Copyright (C) 1987 Trustees of Columbia University in the City of New York.
        !            16:  Permission is granted to any individual or institution to use, copy, or
        !            17:  redistribute this software so long as it is not sold for profit, provided this
        !            18:  copyright notice is retained.
        !            19: */
        !            20: 
        !            21: /*
        !            22:  DEBUG and TLOG should be defined in the Makefile if you want debugging
        !            23:  and transaction logs.  Don't define them if you want to save the space
        !            24:  and overhead.
        !            25: */
        !            26: #ifndef DEBUG
        !            27: #define debug(a,b,c,d) {}
        !            28: #endif
        !            29: 
        !            30: #ifndef TLOG
        !            31: #define tlog(a,b,c,d) {}
        !            32: #endif
        !            33: 
        !            34: /* Formats for debug(), tlog(), etc */
        !            35: 
        !            36: #define F000 0
        !            37: 
        !            38: #define F001 1
        !            39: #define F010 2
        !            40: #define F011 3
        !            41: #define F100 4
        !            42: #define F101 5
        !            43: #define F110 6
        !            44: #define F111 7
        !            45: 
        !            46: /* Unix Kernel Dependencies */
        !            47: 
        !            48: #ifdef SVR3
        !            49: /* Sys V R3 declares signal() differently from other systems. */
        !            50: typedef void SIGTYP;
        !            51: #else
        !            52: typedef int SIGTYP;
        !            53: #endif
        !            54: 
        !            55: /* C Compiler Dependencies */
        !            56: 
        !            57: #ifdef ZILOG
        !            58: #define setjmp setret
        !            59: #define longjmp longret
        !            60: #define jmp_buf ret_buf
        !            61: typedef int ret_buf[10];
        !            62: #endif /* zilog */
        !            63: 
        !            64: #ifdef PROVX1
        !            65: typedef char CHAR;
        !            66: typedef long LONG;
        !            67: typedef int void;
        !            68: #else
        !            69: #ifdef V7
        !            70: typedef char CHAR;
        !            71: typedef long LONG;
        !            72: #else
        !            73: #ifdef V9
        !            74: typedef char CHAR;
        !            75: typedef long LONG;
        !            76: #else
        !            77: #ifdef C70
        !            78: typedef char CHAR;
        !            79: typedef long LONG;
        !            80: #else
        !            81: #ifdef BSD29
        !            82: typedef char CHAR;
        !            83: typedef long LONG;
        !            84: #else
        !            85: typedef unsigned char CHAR;
        !            86: typedef long LONG;
        !            87: #endif
        !            88: #endif
        !            89: #endif
        !            90: #endif
        !            91: #endif
        !            92: 
        !            93: #ifdef TOWER1
        !            94: typedef int void;
        !            95: #endif
        !            96: 
        !            97: /* Line delimiter for text files */
        !            98: 
        !            99: /*
        !           100:  If the system uses a single character for text file line delimitation,
        !           101:  define NLCHAR to the value of that character.  For text files, that
        !           102:  character will be converted to CRLF upon output, and CRLF will be converted
        !           103:  to that character on input during text-mode (default) packet operations.
        !           104: */
        !           105: #ifdef MAC                              /* Macintosh */
        !           106: #define NLCHAR 015
        !           107: #else                                   /* All Unix-like systems */
        !           108: #define NLCHAR 012
        !           109: #endif
        !           110: /*
        !           111:  At this point, if there's a system that uses ordinary CRLF line
        !           112:  delimitation AND the C compiler actually returns both the CR and
        !           113:  the LF when doing input from a file, then #undef NLCHAR.
        !           114: */
        !           115: 
        !           116: /* The device name of a job's controlling terminal */
        !           117: /* Special for VMS, same for all Unixes (?), not used by Macintosh */
        !           118: 
        !           119: #ifdef vax11c
        !           120: #define CTTNAM "TT:"
        !           121: #else
        !           122: #ifdef datageneral
        !           123: #define CTTNAM "@output"
        !           124: #else
        !           125: #define CTTNAM "/dev/tty"
        !           126: #endif
        !           127: #endif
        !           128: 
        !           129: /* Some special includes for VAX/VMS */
        !           130: 
        !           131: #ifndef vax11c
        !           132: /* The following #includes cause problems for some preprocessors. */
        !           133: /*
        !           134: #endif
        !           135: #ifdef vax11c
        !           136: #include ssdef
        !           137: #include stsdef
        !           138: #endif
        !           139: #ifndef vax11c
        !           140: */
        !           141: #endif
        !           142: 
        !           143: /* Program return codes for VMS, DECUS C, and Unix */
        !           144: 
        !           145: #ifdef vax11c
        !           146: #define GOOD_EXIT   (SS$_NORMAL | STS$M_INHIB_MSG)
        !           147: #define BAD_EXIT    SS$_ABORT
        !           148: #else
        !           149: #ifdef decus
        !           150: #define GOOD_EXIT   IO_NORMAL
        !           151: #define BAD_EXIT    IO_ERROR
        !           152: #else
        !           153: #define GOOD_EXIT   0
        !           154: #define BAD_EXIT    1
        !           155: #endif
        !           156: #endif
        !           157: 
        !           158: /* Special hack for Fortune, which doesn't have <sys/file.h>... */
        !           159: 
        !           160: #ifdef FT18
        !           161: #define FREAD 0x01
        !           162: #define FWRITE 0x10
        !           163: #endif
        !           164: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.