home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / ckv201txt.zip / ckccfg.txt < prev    next >
Text File  |  2002-02-13  |  83KB  |  1,767 lines

  1.  
  2.                         C-Kermit Configuration Options
  3.                                        
  4.      Frank da Cruz
  5.      [1]The Kermit Project
  6.      [2]Columbia University
  7.      
  8.    As of: C-Kermit 8.0.201, 8 Feb 2001
  9.    This page last updated: Mon Feb 11 17:50:55 2002 (New York USA Time)
  10.    
  11.      IF YOU ARE READING A PLAIN-TEXT version of this document, note that
  12.      this file is a plain-text dump of a Web page. You can visit the
  13.      original (and possibly more up-to-date) Web page here:
  14.      
  15.   [3]http://www.columbia.edu/kermit/ckccfg.html
  16.  
  17.    [ [4]C-Kermit Home ] [ [5]Kermit Home ]
  18.     ________________________________________________________________________
  19.   
  20.   CONTENTS
  21.   
  22.   1. [6]FILE TRANSFER
  23.   2. [7]SERIAL COMMUNICATION SPEEDS
  24.   3. [8]FULLSCREEN FILE TRANSFER DISPLAY
  25.   4. [9]CHARACTER SETS
  26.   5. [10]APC EXECUTION
  27.   6. [11]PROGRAM SIZE
  28.   7. [12]MODEM DIALING
  29.   8. [13]NETWORK SUPPORT
  30.   9. [14]EXCEPTION HANDLING
  31.  10. [15]SECURITY FEATURES
  32.  11. [16]ENABLING SELECT()
  33.  12. [17]I/O REDIRECTION
  34.  13. [18]FLOATING-POINT NUMBERS, TIMERS, AND ARITHMETIC
  35.  14. [19]SPECIAL CONFIGURATIONS
  36.   I. [20]SUMMARY OF COMPILE-TIME OPTIONS
  37.     ________________________________________________________________________
  38.   
  39.   OVERVIEW
  40.   
  41.    This document describes configuration options for C-Kermit (5A and
  42.    later). The major topics covered include program size (and how to
  43.    reduce it), how to include or exclude particular features, notes on
  44.    serial-port, modem, and network support, and a list of C-Kermit's
  45.    compile-time options.
  46.    
  47.    For details about your particular operating system, also see the
  48.    system-specific installation instructions file, such as the
  49.    [21]C-Kermit Installation Instructions for Unix.
  50.    
  51.    [ [22]C-Kermit Home ] [ [23]Kermit Home ]
  52.     ________________________________________________________________________
  53.   
  54.   1. FILE TRANSFER
  55.   
  56.    [ [24]Top ] [ [25]Contents ] [ [26]Next ] [ [27]Previous ]
  57.    
  58.    Prior to version 7.0, C-Kermit was always built with the most
  59.    conservative Kermit file-transfer protocol defaults on every platform:
  60.    no control-character prefixing, 94-byte packets, and a window size of
  61.    1.
  62.    
  63.    Starting in version 7.0, fast settings are the default. To override
  64.    these at compile time, include:
  65.    
  66.   -DNOFAST
  67.  
  68.    in the C compiler CFLAGS. Even with the fast defaults, C-Kermit
  69.    automatically drops down to whatever window and packet sizes requested
  70.    by the other Kermit, if these are smaller, when sending files (except
  71.    for control-character unprefixing, which is not negotiated, and which
  72.    is now set to CAUTIOUS rather than NONE at startup). C-Kermit's
  73.    settings prevail when it is receiving.
  74.    
  75.    [ [28]C-Kermit Home ] [ [29]Kermit Home ]
  76.     ________________________________________________________________________
  77.   
  78.   2. SERIAL COMMUNICATION SPEEDS
  79.   
  80.    [ [30]Top ] [ [31]Contents ] [ [32]Next ] [ [33]Previous ]
  81.    
  82.    As of 6 September 1997, a new simplified mechanism for obtaining the
  83.    list of legal serial interface speeds is in place:
  84.    
  85.      * If the symbol TTSPDLIST is defined, the system-dependent routine
  86.        ttspdlist() is called at program initialization to obtain the
  87.        list.
  88.      * This symbol should be defined only for C-Kermit implementations
  89.        that have implemented the ttspdlist() function, typically in the
  90.        ck?tio.c module. See [34]ckutio.c for an example.
  91.      * TTSPDLIST is automatically defined in [35]ckcdeb.h for UNIX. Add
  92.        the appropriate #ifdefs for other platforms when the corresponding
  93.        ttspdlist() functions are filled in.
  94.      * If TTSPDLIST is (or normally would be) defined, the old code
  95.        (described below) can still be selected by defining NOTTSPDLIST.
  96.        
  97.    The ttspdlist() function can obtain the speeds in any way that works.
  98.    For example, based simply on #ifdef Bnnnn..#endif (in UNIX). Although
  99.    it might be better to actually check each speed against the currently
  100.    selected hardware interface before allowing it in the array, there is
  101.    usually no passive and/or reliable and safe way to do this, and so
  102.    it's better to let some speeds into the array that might not work,
  103.    than it is to erroneously exclude others. Speeds that don't work are
  104.    caught when the SET SPEED command is actually given.
  105.    
  106.    Note that this scheme does not necessarily rule out split speed
  107.    operation, but effectively it does in C-Kermit as presently
  108.    constituted since there are no commands to set input and output speed
  109.    separately (except the special case "set speed 75/1200").
  110.    
  111.    Note that some platforms, notably AIX 4.2 and 4.3, implement high
  112.    serial speeds transparently to the application, e.g. by mapping 50 bps
  113.    to 57600 bps, and so on.
  114.    
  115.    That's the whole deal. When TTSPDLIST is not defined, the following
  116.    applies:
  117.    
  118.    Speeds are defined in two places: the SET SPEED keyword list in the
  119.    command parser (as of this writing, in the [36]ckuus3.c source file),
  120.    and in the system- dependent communications i/o module, ck?tio.c,
  121.    functions ttsspd() (set speed) and ttgspd() (get speed). The following
  122.    speeds are assumed to be available in all versions:
  123.    
  124.   0, 110, 300, 600, 1200, 2400, 4800, 9600
  125.  
  126.    If one or more of these speeds is not supported by your system, you'll
  127.    need to change the source code (this has never happened so far). Other
  128.    speeds that are not common to all systems have Kermit-specific
  129.    symbols:
  130.    
  131.                Symbol       Symbol
  132.   Speed (bps)  to enable    to disable
  133.        50       BPS_50       NOB_50
  134.        75       BPS_75       NOB_75
  135.        75/1200  BPS_7512     NOB_7512
  136.       134.5     BPS_134      NOB_134
  137.       150       BPS_150      NOB_150
  138.       200       BPS_200      NOB_200
  139.      1800       BPS_1800     NOB_1800
  140.      3600       BPS_3600     NOB_3600
  141.      7200       BPS_7200     NOB_7200
  142.     14400       BPS_14K      NOB_14K
  143.     19200       BPS_19K      NOB_19K
  144.     28800       BPS_28K      NOB_28K
  145.     38400       BPS_38K      NOB_38K
  146.     57600       BPS_57K      NOB_57K
  147.     76800       BPS_76K      NOB_76K
  148.    115200       BPS_115K     NOB_155K
  149.    230400       BPS_230K     NOB_230K
  150.    460800       BPS_460K     NOB_460K
  151.    921600       BPS_921K     NOB_921K
  152.  
  153.    The [37]ckcdeb.h header file contains default speed configurations for
  154.    the many systems that C-Kermit supports. You can override these
  155.    defaults by (a) editing ckcdeb.h, or (b) defining the appropriate
  156.    enabling and/or disabling symbols on the CC command line, for example:
  157.    
  158.   -DBPS_14400 -DNOB_115200
  159.  
  160.    or the "make" command line, e.g.:
  161.    
  162.   make blah "KFLAGS=-DBPS_14400 -DNOB_115200"
  163.  
  164.    Note: some speeds have no symbols defined for them, because they have
  165.    never been needed: 12.5bps, 45.5bps, 20000bps, etc. These can easily
  166.    be added if required (but they will work only if the OS supports
  167.    them).
  168.    
  169.    IMPORTANT: Adding one of these flags at compile time does not
  170.    necessarily mean that you will be able to use that speed. A particular
  171.    speed is usable only if your underlying operating system supports it.
  172.    In particular, it needs to be defined in the appropriate system header
  173.    file (e.g. in UNIX, cd to /usr/include and grep for B9600 in *.h and
  174.    sys/*.h to find the header file that contains the definitions for the
  175.    supported speeds), and supported by the serial device driver, and of
  176.    course by the physical device itself.
  177.    
  178.    ALSO IMPORTANT: The list of available speeds is independent of how
  179.    they are set. The many UNIXes, for example, offer a wide variety of
  180.    APIs that are BSD-based, SYSV-based, POSIX-based, and purely made up.
  181.    See the ttsspd(), ttgspd(), and ttspdlist() routines in [38]ckutio.c
  182.    for illustrations.
  183.    
  184.    The latest entries in this horserace are the tcgetspeed() and
  185.    ttsetspeed() routines found in UnixWare 7. Unlike other methods, they
  186.    accept the entire range of integers (longs really) as speed values,
  187.    rather than certain codes, and return an error if the number is not,
  188.    in fact, a legal speed for the device/driver in question. In this
  189.    case, there is no way to build a list of legal speeds at compile time,
  190.    since no Bnnnn symbols are defined (except for "depracated, legacy"
  191.    interfaces like ioctl()) and so the legal speed list must be
  192.    enumerated in the code -- see ttspdlist() in [39]ckutio.c.
  193.    
  194.    [ [40]C-Kermit Home ] [ [41]Kermit Home ]
  195.     ________________________________________________________________________
  196.   
  197.   3. FULLSCREEN FILE TRANSFER DISPLAY
  198.   
  199.    [ [42]Top ] [ [43]Contents ] [ [44]Next ] [ [45]Previous ]
  200.    
  201.    New to edit 180 is support for an MS-DOS-Kermit-like local-mode full
  202.    screen file transfer display, accomplished using the curses library,
  203.    or something equivalent (for example, the Screen Manager on DEC VMS).
  204.    To enable this feature, include the following in your CFLAGS:
  205.    
  206.   -DCK_CURSES
  207.  
  208.    and then change your build procedure (if necessary) to include the
  209.    necessary libraries. For example, in Unix these are usually "curses"
  210.    or "ncurses", perhaps also "termcap", "termlib", or "tinfo":
  211.    
  212.   "LIBS= -lcurses -ltermcap"
  213.   "LIBS= -lcurses -ltermlib"
  214.   "LIBS= -lncurses"
  215.   "LIBS= -ltermlib"
  216.   "LIBS= -ltinfo"
  217.  
  218.    "man curses" for further information, and search through the Unix
  219.    [46]makefile for "CK_CURSES" to see many examples, and also see the
  220.    relevant sections of the [47]Unix C-Kermit Installation Instructions,
  221.    particularly Sections [48]4 and [49]9.2.
  222.    
  223.    There might still be a complication. Some implementations of curses
  224.    reserve the right to alter the buffering on the output file without
  225.    restoring it afterwards, which can leave Kermit's command processing
  226.    in a mess when the prompt comes back after a fullscreen file transfer
  227.    display. The typical symptom is that characters you type at the prompt
  228.    after a local-mode file transfer (i.e. after seeing the curses
  229.    file-transfer display) do not echo until you press the Return (Enter)
  230.    key. If this happens to you, try adding
  231.    
  232.   -DCK_NEWTERM
  233.  
  234.    to your makefile target (see comments in screenc() in [50]ckuusx.c for
  235.    an explanation).
  236.    
  237.    If that doesn't fix the problem, then use a bigger hammer and replace
  238.    -DCK_NEWTERM with:
  239.    
  240.   -DNONOSETBUF
  241.  
  242.    which tells Kermit to force stdout to be unbuffered so CBREAK mode can
  243.    work.
  244.    
  245.    In SCO Xenix and SCO UNIX, there are two separate curses libraries,
  246.    one based on termcap and the other based on terminfo. The default
  247.    library, usually terminfo, is established when the development system
  248.    is installed. To manually select terminfo (at compile time):
  249.    
  250.   compile -DM_TERMINFO and link -ltinfo
  251.  
  252.    and to manually select termcap:
  253.    
  254.   compile -DM_TERMCAP and link -ltcap -ltermlib
  255.  
  256.    <curses.h> looks at M_TERMINFO and M_TERMCAP to decide which header
  257.    files to use. /usr/lib/libcurses.a is a link to either libtinfo.a or
  258.    libtcap.a. The C-Kermit compilation options must agree with the
  259.    version of the curses library that is actually installed.
  260.    
  261.    NOTE: If you are doing an ANSI-C compilation and you get compile time
  262.    warnings like the following:
  263.    
  264.   Warning: function not declared in ckuusx.c: wmove, printw, wclrtoeol,
  265.   wclear, wrefresh, endwin, etc...
  266.  
  267.    it means that your <curses.h> file does not contain prototypes for
  268.    these functions. The warnings should be harmless.
  269.    
  270.    New to edit 190 is the ability to refresh a messed-up full-screen
  271.    display, e.g. after receiving a broadcast message. This depends on the
  272.    curses package including the wrefresh() and clearok() functions and
  273.    the curscr variable. If your version has these, or has code to
  274.    simulate them, then add:
  275.    
  276.   -DCK_WREFRESH
  277.  
  278.    The curses and termcap libraries add considerable size to the program
  279.    image (e.g. about 20K on a SUN-4, 40K on a 386). On some small
  280.    systems, such as the AT&T 6300 PLUS, curses can push Kermit over the
  281.    edge... even though it compiles, loads, and runs correctly, its
  282.    increased size apparently makes it swap constantly, slowing it down to
  283.    a crawl, even when the curses display is not in use. Some new makefile
  284.    targets have been added to take care of this (e.g. sys3upcshcc), but
  285.    similar tricks might be necessary in other cases too.
  286.    
  287.    On the curses file-transfer display, just below the "thermometer", is
  288.    a running display of the transfer rate, as a flat quotient of file
  289.    characters per elapsed seconds so far. You can change this to an
  290.    average that gives greater weight to recent history (0.25 *
  291.    instantaneous cps + 0.75 * historical cps) by adding -DCPS_WEIGHTED to
  292.    your CFLAGS (sorry folks, this one is not worth a SET command). You
  293.    can choose a second type of weighted average in which the weighting
  294.    smooths out progressively as the transfer progresses by adding
  295.    -DCPS_VINCE to -DCPS_WEIGHTED.
  296.    
  297.    An alternative to curses is also available at compile time, but should
  298.    be selected if your version of Kermit is to be run in local mode only
  299.    in an ANSI terminal environment, for example on a desktop workstation
  300.    that has an ANSI console driver. To select this option in place of
  301.    curses, define the symbol MYCURSES:
  302.    
  303.   -DMYCURSES
  304.  
  305.    instead of CK_CURSES. The MYCURSES option uses built-in ANSI (VT100)
  306.    escape sequences, and depends upon your terminal or console driver to
  307.    interpret them correctly.
  308.    
  309.    In some C-Kermit builds, we replace printf() via #define printf...
  310.    However, this can cause conflicts with the [n]curses header files.
  311.    Various hacks are required to get around this -- see [51]ckutio.c,
  312.    [52]ckufio.c, [53]ckuusx.c, [54]ckucmd.c, etc.
  313.    
  314.    [ [55]C-Kermit Home ] [ [56]Kermit Home ]
  315.     ________________________________________________________________________
  316.   
  317.   4. CHARACTER SETS
  318.   
  319.    [ [57]Top ] [ [58]Contents ] [ [59]Next ] [ [60]Previous ]
  320.    
  321.    Since version 5A, C-Kermit has included support for conversion of
  322.    character sets for Western European languages (i.e. languages that
  323.    originated in Western Europe, but are now also spoken in the Western
  324.    Hemisphere and other parts of the world), via ISO 8859-1 Latin
  325.    Alphabet 1, for Eastern European languages (ISO Latin-2), Hebrew (and
  326.    Yiddish), Greek, and Cyrillic-alphabet languages (ISO Latin/Cyrillic).
  327.    Many file (local) character sets are supported: ISO 646 7-bit national
  328.    sets, IBM code pages, Apple, DEC, DG, NeXT, etc.
  329.    
  330.    To build Kermit with no character-set translation at all, include
  331.    -DNOCSETS in the CFLAGS. To build with no Latin-2, add -DNOLATIN2. To
  332.    build with no Cyrillic, add -DNOCYRIL. To omit Hebrew, add -DNOHEBREW.
  333.    If -DNOCSETS is *not* included, you'll always get LATIN1. To build
  334.    with no KANJI include -DNOKANJI. There is presently no way to include
  335.    Latin-2, Cyrillic, Hebrew, or Kanji without also including Latin-1.
  336.    
  337.    [61]Unicode support was added in C-Kermit 7.0, and it adds a fair
  338.    amount of tables and code (and this is only a "Level 1" implementation
  339.    -- a higher level would also require building in the entire Unicode
  340.    database). On a PC with RH 5.2 Linux, building C-Kermit 7.0, we get
  341.    the following sizes:
  342.    
  343.   NOCSETS NOUNICODE NOKANJI   Before    After                  
  344.    [   ]    [   ]    [   ]    1329014   (Full)
  345.    [   ]    [   ]    [ X ]    1325686   (Unicode but no Kanji)
  346.    [   ]    [ X ]    [   ]    1158837   (All charsets except Unicode)
  347.    [ X ]    [ x ]    [ x ]    1090845   (NOCSETS implies the other two)
  348.  
  349.    Note, by the way, that NOKANJI without NOUNICODE only removes the
  350.    non-Unicode Kanji sets (Shift-JIS, EUC-JP, JIS-7, etc). Kanji is still
  351.    representable in UCS-2 and UTF-8.
  352.    
  353.    [ [62]C-Kermit Home ] [ [63]Kermit Home ]
  354.     ________________________________________________________________________
  355.   
  356.   5. APC EXECUTION
  357.   
  358.    [ [64]Top ] [ [65]Contents ] [ [66]Next ] [ [67]Previous ]
  359.    
  360.    The Kermit CONNECT and INPUT commands are coded to execute Application
  361.    Program Command escape sequences from the host:
  362.    
  363.   <ESC>_<text><ESC>\
  364.  
  365.    where <text> is a C-Kermit command, or a list of C-Kermit commands
  366.    separated by commas, up to about 1K in length.
  367.    
  368.    To date, this feature has been included in the OS/2, Windows, VMS,
  369.    OS-9, and Unix versions, for which the symbol:
  370.    
  371.   CK_APC
  372.  
  373.    is defined automatically in [68]ckuusr.h. For OS/2, APC is enabled at
  374.    runtime by default, for UNIX it is disabled. It is controlled by the
  375.    SET TERMINAL APC command. Configuring APC capability into a version
  376.    that gets it by default (because CK_APC is defined in [69]ckuusr.h)
  377.    can be overridden by including:
  378.    
  379.   -DNOAPC
  380.  
  381.    on the CC command line.
  382.    
  383.    C-Kermit's autodownload feature depends on the APC feature, so
  384.    deconfiguring APC also disables autodownload (it doesn't use APC
  385.    escape sequences, but uses the APC switching mechanism internally).
  386.    
  387.    [ [70]C-Kermit Home ] [ [71]Kermit Home ]
  388.     ________________________________________________________________________
  389.   
  390.   6. PROGRAM SIZE
  391.   
  392.    [ [72]Top ] [ [73]Contents ] [ [74]Next ] [ [75]Previous ]
  393.    
  394.    SECTION CONTENTS
  395.    
  396.   6.1. [76]Feature Selection
  397.   6.2. [77]Changing Buffer Sizes
  398.   6.3. [78]Other Size-Related Items
  399.   6.4. [79]Space/Time Tradeoffs
  400.  
  401.    (Also see [80]Section 4)
  402.    
  403.    Each release of C-Kermit is larger than the last. On some computers
  404.    (usually old ones) the size of the program prevents it from being
  405.    successfully linked and loaded. On some others (also usually old
  406.    ones), it occupies so much memory that it is constantly swapping or
  407.    paging. In such cases, you can reduce C-Kermit's size in various ways,
  408.    outlined in this section. The following options can cut down on the
  409.    program's size at compile time by removing features or changing the
  410.    size of storage areas.
  411.    
  412.    If you are reading this section because all you want is a small, fast,
  413.    quick-to-load Kermit file-transfer application for the remote end of
  414.    your connection, and the remote end is Unix based, take a look at
  415.    G-Kermit:
  416.    
  417.   [81]http://www.columbia.edu/kermit/gkermit.html
  418.  
  419.   6.1. Feature Selection
  420.   
  421.    Features can be added or removed by defining symbols on the CC (C
  422.    compiler) command line. "-D" is the normal CC directive to define a
  423.    symbol so, for example, "-DNODEBUG" defines the symbol NODEBUG. Some C
  424.    compilers might use different syntax, e.g. "-d NODEBUG" or
  425.    "/DEFINE=NODEBUG". For C compilers that do not accept command-line
  426.    definitions, you can put the corresponding #define statements in the
  427.    file ckcsym.h, for example:
  428.    
  429.   #define NODEBUG
  430.  
  431.    The following table shows the savings achieved when building C-Kermit
  432.    8.0 (Beta.04) with selected feature-deselection switches on an
  433.    Intel-based PC with Red Hat Linux 7.0 and gcc 2.96. The sizes are for
  434.    non-security builds. The fully configured non-security build is
  435.    2127408 bytes.
  436.    
  437.      Option Size Savings Effect
  438.      NOICP  545330 74.4% No Interactive Command Parser (command-line
  439.      only)
  440.      NOLOCAL 1539994 27.6% No making connections.
  441.      NOXFER 1551108 27.1% No file transfer.
  442.      IKSDONLY 1566608 26.4% Internet Kermit Server only.
  443.      NOCSETS 1750097 17.7% No character-set conversion.
  444.      NOSPL 1800293 15.4% No Script Programming Language.
  445.      NONET 1808575 15.0% No making network connections.
  446.      NOUNICODE 1834426 13.8% No Unicode character-set conversion.
  447.      NOHELP 1837877 13.6% No built-in help text.
  448.      NODEBUG 1891669 11.1% No debug log.
  449.      NOFRILLS 1918966 9.8% No "frills".
  450.      NOFTP 1972496 7.3% No FTP client.
  451.      NODIAL 1984488 6.7% No automatic modem dialing.
  452.      NOPUSH 2070184 2.7% No shell access, running external programs,
  453.      etc.
  454.      NOIKSD 2074129 2.5% No Internet Kermit Server capability.
  455.      NOHTTP 2082610 2.1% No HTTP client.
  456.      NOFLOAT 2091332 1.7% No floating-point arithmetic.
  457.      NOCHANNELIO 2095978 1.5% No FOPEN/FREAD/FWRITE/FCLOSE, etc.
  458.      MINIDIAL 2098035 1.4% No built-in support for many kinds of modems.
  459.      NOSERVER 2098987 1.3% No server mode.
  460.      NOSEXP 2105898 1.0% No S-Expressions.
  461.      NOPTY 2117743 0.5% No pseudoterminal support.
  462.      NORLOGIN 2121089 0.3% No RLOGIN connections.
  463.      NOOLDMODEMS 2124038 0.2% No built-in support for old kinds of
  464.      modems.
  465.      NOSSH 2125696 0.1% No SSH command.
  466.      
  467.    And here are a few combinations
  468.    
  469.      Options Size Savings Effect
  470.      NODEBUG NOICP NOCSETS NOLOCAL 281641 86.7% No debug log, parser,
  471.      character sets, or making connections.
  472.      NOICP NOCSETS NOLOCAL 376468 82.3% No parser, character sets, or
  473.      making connections.
  474.      NOICP NOCSETS NONET 427510 79.9% No parser, character sets, or
  475.      network connections.
  476.      NOSPL NOCSETS 1423784 33.1% No script language, or character sets.
  477.      
  478.    -DNOFRILLS removes various command synonyms; the following top-level
  479.    commands: CLEAR, DELETE, DISABLE, ENABLE, GETOK, MAIL, RENAME, TYPE,
  480.    WHO; and the following REMOTE commands: KERMIT, LOGIN, LOGOUT, PRINT,
  481.    TYPE, WHO.
  482.    
  483.   6.2. Changing Buffer Sizes
  484.   
  485.    Most modern computers have so much memory that (a) there is no need to
  486.    scrimp and save, and (b) C-Kermit, even when fully configured, is
  487.    relatively small by today's standards.
  488.    
  489.    Two major factors affect Kermit's size: feature selection and buffer
  490.    sizes. Buffer sizes affect such things as the maximum length for a
  491.    Kermit packet, the maximum length for a command, for a macro, for the
  492.    name of a macro, etc. Big buffer sizes are used when the following
  493.    symbol is defined:
  494.    
  495.   BIGBUFOK
  496.  
  497.    as it is by default for most modern platforms (Linux, AIX 4 and 5,
  498.    HP-UX 10 and 11, Solaris, etc) in [82]ckuusr.h. If your build does not
  499.    get big buffers automatically (SHOW FEATURES tells you), you can
  500.    include them by rebuilding with BIGBUFOK defined; e.g. in Unix:
  501.    
  502.   make xxxx KFLAGS=-DBIGBUFOK
  503.  
  504.    where xxxx is the makefile target. On the other hand, if you want to
  505.    build without big buffers when they normally would be selected, use:
  506.    
  507.   make xxxx KFLAGS=-DNOBIGBUF
  508.  
  509.    There are options to control Kermit's packet buffer allocations. The
  510.    following symbols are defined in [83]ckcker.h in such a way that you
  511.    can override them by redefining them in CFLAGS:
  512.    
  513.   -DMAXSP=xxxx - Maximum send-packet length.
  514.   -DMAXRP=xxxx - Maximum receive-packet length.
  515.   -DSBSIZ=xxxx - Total allocation for send-packet buffers.
  516.   -DRBSIZ=xxxx - Total allocation for receive-packet buffers.
  517.  
  518.    The defaults depend on the platform.
  519.    
  520.    Using dynamic allocation (-DDYNAMIC) reduces storage requirements for
  521.    the executable program on disk, and allows more and bigger packets at
  522.    runtime. This has proven safe over the years, and now most builds
  523.    (e.g. all Unix, VMS, Windows, and OS/2 ones) use dynamic memory
  524.    allocation by default. If it causes trouble, however, then omit the
  525.    -DDYNAMIC option from CFLAGS, or add -DNODYNAMIC.
  526.    
  527.   6.3. Other Size-Related Items
  528.   
  529.    To make Kermit compile and load successfully, you might have to change
  530.    your build procedure to:
  531.    
  532.     a. Request a larger ("large" or "huge") compilation / code-generation
  533.        model. This is needed for 16-bit PC-based UNIX versions (most or
  534.        all of which fail to build C-Kermit 7.0 and later anyway). This is
  535.        typically done with a -M and/or -F switch (see your cc manual or
  536.        man page for details).
  537.     b. Some development systems support overlays. If the program is too
  538.        big to be built as is, check your loader manual ("man ld") to see
  539.        if an overlay feature is available. See the 2.10/2.11 BSD example
  540.        in the UNIX makefile. (Actually, as of version 7.0, C-Kermit is
  541.        too big to build, period, even with overlays, on 2.xx BSD).
  542.     c. Similarly, some small and/or segment-based architectures support
  543.        "code mapping", which is similar to overlays (PDP11-based VENIX
  544.        1.0, circa 1984, was an example). See the linker documentation on
  545.        the affected platform.
  546.        
  547.    It is also possible to reduce the size of the executable program file
  548.    in several other ways:
  549.    
  550.     a. Include the -O (optimize) compiler switch if it isn't already
  551.        included in your "make" entry (and if it works!). If your compiler
  552.        supports higher levels of optimization (e.g. -O2 or higher number,
  553.        -Onolimit (HP-UX), etc), try them; the greater the level of
  554.        optimization, the longer the compilation and more likely the
  555.        compiler will run out of memory. The the latter eventuality, some
  556.        compilers also provide command-line options to allocate more
  557.        memory for the optimizer, like "-Olimit number" in Ultrix.
  558.     b. If your platofrm supports shared libraries, change the make entry
  559.        to take advantage of this feature. The way to do this is, of
  560.        course, platform dependent; see the NeXT makefile target for an
  561.        example. some platforms (like Solaris) do it automatically and
  562.        give you no choice. But watch out: executables linked with shared
  563.        libraries are less portable than statically linked executables.
  564.     c. Strip the program image after building ("man strip" for further
  565.        info), or add -s to the LNKFLAGS (UNIX only). This strips the
  566.        program of its symbol table and relocation information.
  567.     d. Move character strings into a separate file. See the 2.11 BSD
  568.        target for an example.
  569.        
  570.   6.4. Space/Time Tradeoffs
  571.   
  572.    There are more than 6000 debug() statements in the program. If you
  573.    want to save both space (program size) and time (program execution
  574.    time), include -DNODEBUG in the compilation. If you want to include
  575.    debugging for tracking down problems, omit -DNODEBUG from the make
  576.    entry. But when you include debugging, you have two choices for how
  577.    it's done. One definition defines debug() to be a function call; this
  578.    is cheap in space but expensive in execution. The other defines debug
  579.    as "if (deblog)" and then the function call, to omit the function call
  580.    overhead when the debug log is not active. But this adds a lot of
  581.    space to the program. Both methods work, take your choice; IFDEBUG is
  582.    preferred if memory is not a constraint but the computer is likely to
  583.    be slow. The first method is the default, i.e. if nothing is done to
  584.    the CFLAGS or in [84]ckcdeb.h (but in some cases, e.g. VMS, it is). To
  585.    select the second method, include -DIFDEBUG in the compilation (and
  586.    don't include -DNODEBUG).
  587.    
  588.    [ [85]C-Kermit Home ] [ [86]Kermit Home ]
  589.     ________________________________________________________________________
  590.   
  591.   7. MODEM DIALING
  592.   
  593.    [ [87]Top ] [ [88]Contents ] [ [89]Next ] [ [90]Previous ]
  594.    
  595.    -DNODIAL removes automatic modem dialing completely, including the
  596.    entire [91]ckudia.c module, plus all commands that refer to dialing in
  597.    the various ckuus*.c modules.
  598.    
  599.    -DMINIDIAL leaves the DIAL and related commands (SET/SHOW MODEM,
  600.    SET/SHOW DIAL) intact, but removes support for all types of modems
  601.    except CCITT, Hayes, Unknown, User-defined, Generic-high-speed, and
  602.    None (= Direct). The MINIDIAL option cuts the size of the dial module
  603.    approximately in half. Use this option if you have only Hayes or CCITT
  604.    modems and don't want to carry the baggage for the other types.
  605.    
  606.    A compromise between full dialer support and MINIDIAL is obtained by
  607.    removing support for "old" modems -- all the strange non-Hayes
  608.    compatible 1200 and 2400 bps modems that C-Kermit has been carrying
  609.    around since 1985 or so. To remove support for these modems, add
  610.    -DNOOLDMODEMS to CFLAGS at compilation time.
  611.    
  612.    Finally, if you keep support for old modems, you will notice that
  613.    their names appear on the "set modem ?" menu. That's because their
  614.    names are, by default, "visible". But the list is confusing to the
  615.    younger generation, who have only heard of modems from the
  616.    V.32bis-and-later era. If you want to be able to use old modems, but
  617.    don't want their names cluttering up menus, add this to CFLAGS:
  618.    
  619.   -DM_OLD=1
  620.  
  621.    [ [92]C-Kermit Home ] [ [93]Kermit Home ]
  622.     ________________________________________________________________________
  623.   
  624.   8. NETWORK SUPPORT
  625.   
  626.    [ [94]Top ] [ [95]Contents ] [ [96]Next ] [ [97]Previous ]
  627.    
  628.    SECTION CONTENTS
  629.    
  630.   8.1. [98]TCP/IP
  631.   8.2. [99]X.25
  632.   8.3. [100]Other Networks
  633.  
  634.    C-Kermit supports not only serial-port and modem connections, but also
  635.    TCP/IP and X.25 network connections. Some versions support other
  636.    network types too like DECnet, LAT, NETBIOS, etc. If you define the
  637.    following symbol:
  638.    
  639.   NONET
  640.  
  641.    then all network support is compiled away.
  642.    
  643.   8.1. TCP/IP
  644.   
  645.    SUBSECTION CONTENTS
  646.    
  647.   8.1.1. [101]Firewalls
  648.   8.1.2. [102]Compilation and Linking Problems
  649.   8.1.3. [103]Enabling Host Address Lists
  650.   8.1.4. [104]Enabling Telnet NAWS
  651.   8.1.5. [105]Enabling Incoming TCP/IP Connections
  652.   8.1.6. [106]Disabling SET TCP Options
  653.  
  654.    C-Kermit's TCP/IP features require the Berkeley sockets library or
  655.    equivalent, generally available on any Unix system, as well as in
  656.    Windows 9x/NT, OS/2, VMS, AOS/VS, VOS, etc. The TCP/IP support
  657.    includes built-in TELNET, FTP, and HTTP protocol. To select TCP/IP
  658.    support, include -DTCPSOCKET in your makefile target's CFLAGS, or (in
  659.    VMS) the appropriate variant (e.g. -DWOLLONGONG, -DMULTINET,
  660.    -DEXCELAN, -DWINTCP, etc).
  661.    
  662.    The VMS and/or early Unix third-party TCP/IP products are often
  663.    incompatible with each other, and sometimes with different versions of
  664.    themselves. For example, Wollongong reportedly put header files in
  665.    different directories for different UNIX versions:
  666.    
  667.      * in.h can be in either /usr/include/sys or /user/include/netinet.
  668.      * telnet.h can be in either /usr/include/arpa or
  669.        /user/include/netinet.
  670.      * inet.h can be in either /usr/include/arpa or /user/include/sys.
  671.        
  672.    In cases like this, use the -I cc command-line option when possible;
  673.    otherwise it's better to make links in the file system than it is to
  674.    hack up the C-Kermit source code. Suppose, for example, Kermit is
  675.    looking for telnet.h in /usr/include/arpa, but on your computer it is
  676.    in /usr/include/netinet. Do this (as root, or get the system
  677.    administrator to do it):
  678.    
  679.   cd /usr/include/arpa
  680.   ln /usr/include/netinet/telnet.h telnet.h
  681.  
  682.    ("man ln" for details about links.)
  683.    
  684.    The network support for TCP/IP and X.25 is in the source files
  685.    [107]ckcnet.h, [108]ckctel.c, [109]ckctel.c, [110]ckctel.h,
  686.    [111]ckcftp.c, with miscellaneous SHOW commands, etc, in the various
  687.    ckuus*.c modules, plus code in the ck*con.c or ckucns.c (CONNECT
  688.    command) and several other modules to detect TELNET negotiations, etc.
  689.    
  690.    Within the TCPSOCKET code, some socket-level controls are included if
  691.    TCPSOCKET is defined in the C-Kermit CFLAGS and SOL_SOCKET is defined
  692.    in in the system's TCP-related header files, such as <sys/socket.h>.
  693.    These are:
  694.    
  695.   SET TCP KEEPALIVE
  696.   SET TCP LINGER
  697.   SET TCP RECVBUF
  698.   SET TCP SENDBUF
  699.  
  700.    In addition, if TCP_NODELAY is defined, the following command is also
  701.    enabled:
  702.    
  703.   SET TCP NODELAY (Nagle algorithm)
  704.  
  705.    See the [112]C-Kermit user documentation for descriptions of these
  706.    commands.
  707.    
  708.   8.1.1. Firewalls
  709.   
  710.    There exist various types of firewalls, set up to separate users of an
  711.    internal TCP/IP network ("Intranet") from the great wide Internet, but
  712.    then to let selected users or services get through after all.
  713.    
  714.    One firewall method is called SOCKS, in which a proxy server allows
  715.    users inside a firewall to access the outside world, based on a
  716.    permission list generally stored in a file. SOCKS is enabled in one of
  717.    two ways. First, the standard sockets library is modified to handle
  718.    the firewall, and then all the client applications are relinked (if
  719.    necessary, i.e. if the libraries are not dynamically loaded) with the
  720.    modified sockets library. The APIs are all the same, so the
  721.    applications do not need to be recoded or recompiled.
  722.    
  723.    In the other method, the applications must be modified to call
  724.    replacement routines, such as Raccept() instead of accept(), Rbind()
  725.    instead of bind(), etc, and then linked with a separate SOCKS library.
  726.    This second method is accomplished (for SOCKS4) in C-Kermit by
  727.    including -DCK_SOCKS in your CFLAGS, and also adding:
  728.    
  729.   -lsocks
  730.  
  731.    to LIBS, or replacing -lsockets with -lsocks (depending on whether the
  732.    socks library also includes all the sockets entry points).
  733.    
  734.    For SOCKS5, use -DCK_SOCKS5.
  735.    
  736.    Explicit firewall support can, in general, not be a standard feature
  737.    or a feature that is selected at runtime, because the SOCKS library
  738.    tends to be different at each site -- local modifications abound.
  739.    
  740.    The ideal situation occurs when firewalls are supported by the first
  741.    method, using dynamically linked sockets-replacement libraries; in
  742.    this case, all your TCP/IP client applications negotiate the firewall
  743.    transparently.
  744.    
  745.   8.1.2. Compilation and Linking Problems
  746.   
  747.    If you get a compilation error in [113]ckcnet.c, with a complaint like
  748.    "incompatible types in assignment", it probably has something to do
  749.    with the data type your system uses for the inet_addr() function,
  750.    which is declared (usually) in <arpa/inet.h>. Kermit uses "unsigned
  751.    long" unless the symbol INADDRX is defined, in which case "struct
  752.    inaddr" is used instead. Try adding -DINADDRX to CFLAGS in your make
  753.    entry, and if that fixes the problem, please send a report to
  754.    kermit@columbia.edu.
  755.    
  756.    Compilation errors might also have to do with the data type used for
  757.    getsockopt() and setsockopt() option-length field. This is normally an
  758.    int, but sometimes it's a short, a long, or an unsigned any of those,
  759.    or a size_t. To fix the compilation problem, add -DSOCKOPT_T=xxx to
  760.    the CFLAGS in your makefile target, where xxx is the appropriate type
  761.    (use "man getsockopt" or grep through your system/network header files
  762.    to find the needed type).
  763.    
  764.   8.1.3. Enabling Host Address Lists
  765.   
  766.    When you give Kermit an IP host name, it calls the socket routine
  767.    gethostbyname() to resolve it. gethostbyname() returns a hostent
  768.    struct, which might or might not not include a list of addresses; if
  769.    it does, then if the first one fails, Kermit can try the second one,
  770.    and so on. However, this will only work if the symbol "h_addr" is a
  771.    macro defined as "h_addr_list[0]", usually in netdb.h. If it is, then
  772.    you can activate this feature by defining the following symbol in
  773.    CFLAGS:
  774.    
  775.   HADDRLIST
  776.  
  777.   8.1.4. Enabling Telnet NAWS
  778.   
  779.    The Telnet Negotiation About Window Size (NAWS) option requires the
  780.    ability to find out the terminal screen's dimensions. E.g. in Unix, we
  781.    need something like ioctl(0, TIOCGWINSZ, ...). If your version of
  782.    Kermit was built with NAWS capability, SHOW VERSIONS includes CK_NAWS
  783.    among the compiler options. If it doesn't, you can add it by defining
  784.    CK_NAWS at compile time. Then, if the compiler or linker complain
  785.    about undefined or missing symbols, or there is no complaint but SHOW
  786.    TERMINAL fails to show reasonable "Rows =, Columns =" values, then
  787.    take a look at (or write) the appropriate ttgwsiz() routine. On the
  788.    other hand, if CK_NAWS is defined by default for your system (in
  789.    [114]ckcnet.h), but causes trouble, you can override this definition
  790.    by including the -DNONAWS switch on your CC command line, thus
  791.    disabling the NAWS feature.
  792.    
  793.    This appears to be needed at least on the AT&T 3B2, where in
  794.    [115]ckutio.c, the routine ttgwsiz() finds that the TIOCGWINSZ symbol
  795.    is defined but lacks definitions for the corresponding winsize struct
  796.    and its members ws_col and ws_row.
  797.    
  798.    The UNIX version of C-Kermit also traps SIGWINCH, so it can send a
  799.    NAWS to the Telnet server any time the local console terminal window
  800.    size changes, e.g. when you stretch it with a mouse. The
  801.    SIGWINCH-trapping code is enabled if SIGWINCH is defined (i.e. in
  802.    signal.h). If this code should cause problems, you can disable it
  803.    without disabling the NAWS feature altogether, by defining NOSIGWINCH
  804.    at compile time.
  805.    
  806.   8.1.5. Enabling Incoming TCP/IP Connections
  807.   
  808.    This feature lets you "set host * port" and wait for an incoming
  809.    connection on the given port. This feature is enabled automatically at
  810.    compile if TCPSOCKET is defined and SELECT is also defined. But watch
  811.    out, simply defining SELECT on the cc command line does not guarantee
  812.    successful compilation or linking (see [116]Section 11).
  813.    
  814.    If you want to disable incoming TCP/IP connections, then build
  815.    C-Kermit with:
  816.    
  817.   -DNOLISTEN
  818.  
  819.   8.1.6. Disabling SET TCP Options
  820.   
  821.    The main reason for this is because of header file / prototype
  822.    conflicts at compile time regardting get- / setsockopt(). If you can't
  823.    fix them (without breaking other builds), add the following in CFLAGS:
  824.    
  825.   -DNOTCPOPTS
  826.  
  827.   8.2. X.25
  828.   
  829.    X.25 support requires (a) a Sun, (b) the SunLink product (libraries
  830.    and header files), and (c) an X.25 connection into your Sun. Similarly
  831.    (in C-Kermit 7.0 or later) Stratus VOS and IBM AIX.
  832.    
  833.    In UNIX, special makefile targets sunos4x25 and sunos41x25 (for SUNOS
  834.    4.0 and 4.1, respectively), or aix41x25, are provided to build in this
  835.    feature, but they only work if conditions (a)-(c) are met. To request
  836.    this feature, include -DSUNX25 (or -DIBMX25) in CFLAGS.
  837.    
  838.    SUNX25 (or -DIBMX25) and TCPSOCKET can be freely mixed and matched,
  839.    and selected by the user at runtime with the SET NETWORK TYPE command
  840.    or SET HOST switches.
  841.    
  842.   8.3. Other Networks
  843.   
  844.    Support for other networking methods -- NETBIOS, LAT, Named Pipes, etc
  845.    -- is included in ck*net.h and ck*net.c for implementations (such as
  846.    Windows or OS/2) where these methods are supported.
  847.    
  848.    Provision is made in the organization of the modules, header files,
  849.    commands, etc, for addition of new network types such as DECnet, X.25
  850.    for other systems (HP-UX, VMS, etc), and so on. Send email to
  851.    [117]kermit@columbia.edu if you are willing and able to work on such a
  852.    project.
  853.    
  854.    [ [118]C-Kermit Home ] [ [119]Kermit Home ]
  855.     ________________________________________________________________________
  856.   
  857.   9. EXCEPTION HANDLING
  858.   
  859.    [ [120]Top ] [ [121]Contents ] [ [122]Next ] [ [123]Previous ]
  860.    
  861.    The C language setjmp/longjmp mechanism is used for handling
  862.    exceptions. The jump buffer is of type jmp_buf, which almost
  863.    everywhere is typedef'd as an array, in which case you should have no
  864.    trouble compiling the exception-handling code. However, if you are
  865.    building C-Kermit in/for an environment where jmp_buf is something
  866.    other than an array (e.g. a struct), then you'll have to define the
  867.    following symbol:
  868.    
  869.   JBNOTARRAY
  870.  
  871.    [ [124]C-Kermit Home ] [ [125]Kermit Home ]
  872.     ________________________________________________________________________
  873.   
  874.   10. SECURITY FEATURES
  875.   
  876.    [ [126]Top ] [ [127]Contents ] [ [128]Next ] [ [129]Previous ]
  877.    
  878.    Security, in the sense of secure authentication and strong encryption,
  879.    can be built into versionf of C-Kermit for which the appropriate
  880.    libraries and header files are available (Kerberos IV, Kerberos V,
  881.    OpenSSL, SRP), as explained in great detail in the Kermit Security
  882.    Reference
  883.    . The following symbols govern C-Kermit's security features at build
  884.    time:
  885.    
  886.    NO_AUTHENTICATION
  887.           Means do not configure any TELNET AUTHENTICATION support. It
  888.           implies NO_ENCRYPTION and undefines any of the auth and encrypt
  889.           types. It does not undefine CK_SSL even though builds with
  890.           CK_SSL cannot succeed without CK_AUTHENTICATION. (This will be
  891.           supported in a future release. It will be needed to allow
  892.           C-Kermit to be built only as an FTP client.)
  893.           
  894.    NO_KERBEROS
  895.           Means do not compile in any KERBEROS support when
  896.           CK_AUTHENTICATION has been defined.
  897.           
  898.    NO_SRP
  899.           Do not compile in any SRP support when CK_AUTHENTICATION has
  900.           been defined.
  901.           
  902.    NO_SSL
  903.           Do not compile in any SSL/TLS support
  904.           
  905.    NO_ENCRYPTION
  906.           Do not compile in any Telnet encryption support. It does not
  907.           affect the use of SSL/TLS
  908.           
  909.    NOSSH
  910.           Do not compile in any SSH support whether internal or external
  911.           
  912.    CK_AUTHENTICATION
  913.           Telnet AUTHENTICATION support. (Also, required if SSL/TLS
  914.           support is desired.) On most platforms this does not autodefine
  915.           any authentication mechanisms such as Kerberos V, Kerberos IV,
  916.           SRP, ... Those need to be defined separately.
  917.           
  918.    CK_KERBEROS
  919.           Defined automatically when KRB4, KRB5, or KRB524 are defined.
  920.           Implies that some version of Kerberos is in use.
  921.           
  922.    KRB4
  923.           Should be defined when Kerberos IV support is desired.
  924.           
  925.    KRB5
  926.           Should be defined when Kerberos V support is desired.
  927.           
  928.    KRB524
  929.           Should be defined if both Kerberos V and Kerberos IV are used
  930.           and the Kerberos IV support is provided by the MIT Kerberos IV
  931.           compatibility library in the current Kerberos 5 distribution.
  932.           
  933.    KRB5_U2U
  934.           Should be defined if KRB5 is defined and Kerberos 5 User to
  935.           User mode is desired.
  936.           
  937.    HEIMDAL
  938.           Should be defined if Kerberos V support is provided by HEIMDAL.
  939.           Support for this option is not complete in C-Kermit 8.0. Anyone
  940.           interested in working on this should contact kermit-support.
  941.           
  942.    CK_SRP
  943.           Should be defined if SRP support is desired.
  944.           
  945.    CK_ENCRYPTION
  946.           Should be defined if TELNET ENCRYPTION option support is
  947.           desired. This option does not define any particular encryption
  948.           types. That should be done by defining CK_DES or CK_CAST.
  949.           
  950.    CK_DES
  951.           Should be defined if either DES or 3DES Telnet Encryption
  952.           option support is desired.
  953.           
  954.    LIBDES
  955.           If CK_DES is defined and DES support is being provided by
  956.           either Eric Young's libdes.a or OpenSSL 0.9.6x or earlier, this
  957.           option must be defined. If it is not defined, it will be
  958.           assumed that DES support is provided by the MIT Kerberos IV
  959.           libraries.
  960.           
  961.    CK_CAST
  962.           Should be defined if CAST Telnet Encryption option support is
  963.           desired
  964.           
  965.    CK_SSL
  966.           Should be defined if SSL/TLS support (OpenSSL) is desired.
  967.           
  968.    SSL_KRB5
  969.           If KRB5 is defined, and OpenSSL is built to support the
  970.           Kerberos 5 ciphers, then you should define SSL_KRB5
  971.           
  972.    NOSSLKRB5
  973.           If you are using OpenSSL 0.9.7 or higher and do not wish to
  974.           build with support for Kerberos 5 TLS ciphers, this option must
  975.           be defined.
  976.           
  977.    ZLIB
  978.           If you are using OpenSSL 0.9.6 or higher and it has been
  979.           compiled with support for ZLIB compression, this option should
  980.           be defined to enable Kermit to properly enable the use of
  981.           compression.
  982.           
  983.    SSHCMD
  984.           Defined for C-Kermit to enable the use of external SSH clients
  985.           from the Kermit command language
  986.           
  987.    SSHBUILTIN
  988.           Defined for Kermit implementations that have integrated SSH
  989.           support. Currently only Windows.
  990.           
  991.    ANYSSH
  992.           Defined if either SSHCMD or SSHBUILTIN are defined.
  993.           
  994.    CK_SNDLOC
  995.           Telnet Send Location support.
  996.           
  997.    NOSNDLOC
  998.           Do not include Telnet Send Location support.
  999.           
  1000.    CK_XDISPLOC
  1001.           Telnet X-Display Location support. Determines if the X-Display
  1002.           location information is sent to the Telnet server either via
  1003.           Telnet XDISPLOC or NEW-ENV options.
  1004.           
  1005.    NOXDISPLOC
  1006.           Do not include Telnet X-Display Location support.
  1007.           
  1008.    CK_FORWARD_X
  1009.           Telnet Forward X Windows Session Data option. Used to protect
  1010.           the privacy and integrity of X Windows Sessions when secure
  1011.           telnet sessions are in use.
  1012.           
  1013.    NOFORWARDX
  1014.           Do not include Telnet Forward X Windows Session Data option.
  1015.           
  1016.    Besides the strong forms of security listed above, C-Kermit also
  1017.    embodies various internal security features, including:
  1018.    
  1019.    NOPUSH
  1020.           Compiling with the NOPUSH symbol defined removes all the "shell
  1021.           escape" features from the program, including the PUSH, RUN, and
  1022.           SPAWN commands, the "!" and "@" command prefixes, OPEN !READ,
  1023.           OPEN !WRITE, job control (including the SUSPEND command), the
  1024.           REDIRECT command, shell/DCL escape from CONNECT mode, as well
  1025.           as the server's execution of REMOTE HOST commands (and, of
  1026.           course, the ENABLE HOST command). Add NODISPO to also prevent
  1027.           acceptance of incoming MAIL or REMOTE PRINT files. For UNIX,
  1028.           also be sure to read [130]Section 11 of the [131]Unix C-Kermit
  1029.           Installation Instructions. about set[ug]id configuration.
  1030.           Additional restrictions can be enforced when in server mode;
  1031.           read about the DISABLE command in the user manual.
  1032.           
  1033.    NOCCTRAP
  1034.           Compiling with NOCCTRAP prevents the trapping of SIGINT by
  1035.           Kermit. Thus if the user generates a SIGINT signal (e.g. by
  1036.           typing the system's interrupt character), Kermit will exit
  1037.           immediately, rather than returning to its prompt.
  1038.           
  1039.    NOPUSH and NOCCTRAP together allow Kermit to be run from restricted
  1040.    shells, preventing access to system functions.
  1041.    
  1042.    [ [132]C-Kermit Home ] [ [133]Kermit Home ]
  1043.     ________________________________________________________________________
  1044.   
  1045.   11. ENABLING SELECT()
  1046.   
  1047.    [ [134]Top ] [ [135]Contents ] [ [136]Next ] [ [137]Previous ]
  1048.    
  1049.    Kermit works best if it can do nonblocking reads, nondestructive input
  1050.    buffer checking, and millisecond sleeps. All of these functions can be
  1051.    accomplished by the select() function, which, unfortunately, is not
  1052.    universally available. Furthermore, select() is required if incoming
  1053.    TCP/IP connections are to be supported.
  1054.    
  1055.    select() was introduced with Berkeley UNIX, rejected by AT&T for
  1056.    System V, but is gradually creeping in to all UNIX versions (and other
  1057.    operating systems too) by virtue of its presence in the sockets
  1058.    library, which is needed for TCP/IP. AT&T SVID for System V R4
  1059.    includes select(), but that does not mean that all SVR4
  1060.    implementations have it.
  1061.    
  1062.    Furthermore, even when select() is available, it might work only on
  1063.    socket file descriptors, but not on others like serial ports, pipes,
  1064.    etc. For example, in AOS/VS and BeOS, it works only with file
  1065.    descriptors that were created by socket() and opened by connect() or
  1066.    accept().
  1067.    
  1068.    Other alternatives include poll() and rdchk(). Only one of these three
  1069.    functions should be included. The following symbols govern this:
  1070.    
  1071.      SELECT Use select() (BSD, or systems with sockets libraries)
  1072.      CK_POLL Use poll() (System V)
  1073.      RDCHK Use rdchk() (SCO XENIX and UNIX)
  1074.      
  1075.    If your system supports the select() function, but your version of
  1076.    C-Kermit does not, try adding:
  1077.    
  1078.   -DSELECT
  1079.  
  1080.    to the CFLAGS, and removing -DRDCHK or -DCK_POLL if it is there. If
  1081.    you get compilation errors, some adjustments to ck*tio.c and/or
  1082.    ck*net.c might be needed; search for SELECT (uppercase) in these files
  1083.    (note that there are several variations on the calling conventions for
  1084.    select()).
  1085.    
  1086.    Various macros and data types need to be defined in order to use
  1087.    select(). Usually these are picked up from <types.h> or <sys/types.h>.
  1088.    But on some systems, they are in <sys/select.h>. In that case, add the
  1089.    following:
  1090.    
  1091.   -DSELECT_H
  1092.  
  1093.    to the CFLAGS to tell C-Kermit to #include <sys/select.h>. A good
  1094.    indication that you need to do this would be if you get compile-time
  1095.    complaints about "fd_set" or "FD_SET" not being declared or defined.
  1096.    
  1097.    In UNIX, the use of select() vs fork() in the CONNECT command is
  1098.    independent of the above considerations, and is governed by choosing a
  1099.    particular makefile target.
  1100.    
  1101.    As of C-Kermit 7.0, select() is also the preferred control mechanism
  1102.    for the CONNECT command. Unfortunately, the structures used by the
  1103.    original UNIX CONNECT command, based on fork(), and those used by
  1104.    select(), are so different, it was not practical to implement them
  1105.    both in one module. So the select()-based CONNECT command module for
  1106.    UNIX is [138]ckucns.c, and the fork-based one remains [139]ckucon.c.
  1107.    To choose the fork-based one, which is more portable (but slower and
  1108.    more fragile), use "wermit" as the make target. To choose the
  1109.    select-based one, use "xermit". Only do this if you can verify that
  1110.    the CONNECT command works on serial connections and PIPE connections
  1111.    as well as TCP connections.
  1112.    
  1113.      The select()-based Unix CONNECT module, ckucns.c, must be used if
  1114.      encryption is to be done, since the fork() version (ckucon.c) loses
  1115.      its ability to share vital state information between the two forks.
  1116.      Also note that the select() version is superior in many other ways
  1117.      too. For example, it recovers better from exterior killing, forced
  1118.      disconnections, etc, plus it goes faster.
  1119.      
  1120.    SHOW VERSIONS tells whether the CONNECT module uses fork() or
  1121.    select().
  1122.    
  1123.    C-Kermit 8.0 adds learned script capability, which depends on
  1124.    select(). All the "wermit" based targets (as opposed to "xermit") had
  1125.    NOLEARN added to them. Whenever changing a target over from wermit to
  1126.    xermit, also remember to remove NOLEARN.
  1127.    
  1128.    [ [140]C-Kermit Home ] [ [141]Kermit Home ]
  1129.     ________________________________________________________________________
  1130.   
  1131.   12. I/O REDIRECTION
  1132.   
  1133.    [ [142]Top ] [ [143]Contents ] [ [144]Next ] [ [145]Previous ]
  1134.    
  1135.    The REDIRECT command allows a local program to be run with its i/o
  1136.    redirected over the communications connection. Your version of
  1137.    C-Kermit has a REDIRECT command if it was built with the following
  1138.    CFLAG:
  1139.    
  1140.   -DCK_REDIR
  1141.  
  1142.    This, in turn, is possible only if the underlying API is there. In the
  1143.    case of UNIX this is just the wait() system call, so all UNIX versions
  1144.    get this feature as of 6.0.192 (earlier versions needed a <sys/wait.h>
  1145.    header file defining the symbols WIFEXITED and WEXITSTATUS).
  1146.    
  1147.    As of version 7.0, file transfer can be done using pipes and filters.
  1148.    To enable this feature, #define PIPESEND (and fill in the code). To
  1149.    disable on systems where it is normally enabled, define NOPIPESEND.
  1150.    This feature is, of course, also disabled by building with NOPUSH (or
  1151.    giving the "nopush" command at runtime).
  1152.    
  1153.    C-Kermit 7.0 also adds the PIPE and SET HOST /COMMAND commands, which
  1154.    provide another form of redirection. This feature is selected with
  1155.    -DNETCMD. CK_RDIR must also be defined, since the same mechanisms are
  1156.    used internally.
  1157.    
  1158.    [ [146]C-Kermit Home ] [ [147]Kermit Home ]
  1159.     ________________________________________________________________________
  1160.   
  1161.   13. FLOATING-POINT NUMBERS, TIMERS, AND ARITHMETIC
  1162.   
  1163.    [ [148]Top ] [ [149]Contents ] [ [150]Next ] [ [151]Previous ]
  1164.    
  1165.    Floating-point support was added in C-Kermit 7.0.
  1166.    
  1167.    Floating-point numbers are enabled internally, at least for use in
  1168.    high-precision file-transfer timers and statistics, unless the
  1169.    following symbol is defined at compile time:
  1170.    
  1171.   -DNOFLOAT
  1172.  
  1173.    This might be necessary on old PCs that do not have built-in
  1174.    floating-point hardware.
  1175.    
  1176.    When NOFLOAT is not defined, the following symbol tells which
  1177.    floating-point type to use:
  1178.    
  1179.   -DCKFLOAT=xxxx
  1180.  
  1181.    The value is either "double" (normal for 32- and 16-bit architectures)
  1182.    or "float" (normal for 64-bit architectures).
  1183.    
  1184.    C-Kermit can be configured to use high-precision file-transfer timers
  1185.    for more accurate statistics. This feature is enabled with:
  1186.    
  1187.   -DGFTIMER
  1188.  
  1189.    and disabled with:
  1190.    
  1191.   -DNOGFTIMER
  1192.  
  1193.    If you try to build with -DGFTIMER but you get compilation errors,
  1194.    either fix them (and send email to kermit@columbia.edu telling what
  1195.    you did), or else give up and use -DNOGFTIMER (or -DNOFLOAT) instead.
  1196.    Hint: depending on your machine architecture, you might have better
  1197.    luck using double than float as the data type for floating-point
  1198.    numbers, or vice versa. Look in [152]ckcdeb.h for the CKFLOAT
  1199.    definition.
  1200.    
  1201.    Floating-point arithmetic is also supported in the script programming
  1202.    language. First via the \fpp...() functions, such as \fppadd(), which
  1203.    adds two floating-point numbers, second in S-Expressions. Addition,
  1204.    subtraction, multiplication, and division are always available. But
  1205.    other functions such as logs, raising to powers, sines and cosines,
  1206.    etc, require the C Math library. To include user-level floating-point
  1207.    math you must put:
  1208.    
  1209.   -DFNFLOAT
  1210.  
  1211.    and in Unix you must link with the Math library:
  1212.    
  1213.   LIBS=".... -lm"
  1214.  
  1215.    In K95 and VMS, FNFLOAT is defined automatically if CKFLOAT is
  1216.    defined. In Unix, however, FNFLOAT must be added to each makefile
  1217.    target individually, because of the special linking instructions that
  1218.    must also be added to each target.
  1219.    
  1220.    Note: S-Expressions require FNFLOAT.
  1221.    
  1222.    [ [153]C-Kermit Home ] [ [154]Kermit Home ]
  1223.     ________________________________________________________________________
  1224.   
  1225.   14. SPECIAL CONFIGURATIONS
  1226.   
  1227.    [ [155]Top ] [ [156]Contents ] [ [157]Previous ]
  1228.    
  1229.    As of C-Kermit 7.0, if you build C-Kermit normally, but with -DNOICP
  1230.    (No Interactive Command Parser), you get a program capable of making
  1231.    serial connections (but not dialing) and network connections (if
  1232.    TCPSOCKET or other network option included), and can also transfer
  1233.    files using Kermit protocol, but only via autodownload/upload.
  1234.    Furthermore, if you call the executable "telnet", it will act like
  1235.    Telnet -- using the command-line options. However, in this case there
  1236.    is nothing to escape back to, so if you type Ctrl-\c, it just prints a
  1237.    message to this effect.
  1238.    
  1239.    You can also build C-Kermit with -DNOXFER, meaning omit all the
  1240.    file-transfer features. This leaves you with a scriptable
  1241.    communications program that is considerably smaller than the full
  1242.    C-Kermit.
  1243.    
  1244.    [ [158]C-Kermit Home ] [ [159]Kermit Home ]
  1245.     ________________________________________________________________________
  1246.   
  1247.   APPENDIX I: SUMMARY OF COMPILE-TIME OPTIONS
  1248.   
  1249.    [ [160]Top ] [ [161]Contents ]
  1250.    
  1251.    These are the symbols that can be specified on the cc command line,
  1252.    listed alphabetically. Others are used internally, including those
  1253.    taken from header files, those defined by the compiler itself, and
  1254.    those inferred from the ones given below. Kermit's SHOW VERSIONS
  1255.    command attempts to display most of these. See [162]ckcdeb.h and
  1256.    [163]ckcnet.h for inference rules. For example SVR3 implies ATTSV,
  1257.    MULTINET implies TCPSOCKET, and so on.
  1258.    
  1259.    Here is the complete list of the Kermit-specific compile-time
  1260.    switches:
  1261.    
  1262.    ACUCNTRL Select BSD 4.3-style acucntrl() bidirectional tty control.
  1263.    aegis Build for Apollo Aegis (predefined on Apollo systems).
  1264.    AIX370 Build for IBM AIX/370 for IBM mainframes.
  1265.    AIXESA Build for IBM AIX/ESA for IBM mainframes.
  1266.    AIXPS2 Build for IBM AIX 3.0 for PS/2 series (never formally
  1267.    released).
  1268.    AIXRS Build for IBM AIX 3.x on RS/6000.
  1269.    AIX41 Build for IBM AIX 4.x on RS/6000.
  1270.    AMIGA Build for Commodore Amiga with Intuition OS.
  1271.    ATT6300 Build for AT&T 6300 PLUS.
  1272.    ATT7300 Build for AT&T 7300 UNIX PC (3B1).
  1273.    ATTSV Build for AT&T System III or V UNIX.
  1274.    AUX Build for Apple A/UX for the Macintosh.
  1275.    BIGBUFOK OK to use big buffers - "memory is not a problem"
  1276.    BPS_xxxx Enable SET SPEED xxxx
  1277.    BSD29 Build for BSD 2.9 or 2.10.
  1278.    BSD4 Build for BSD 4.2.
  1279.    BSD41 Build for BSD 4.1.
  1280.    BSD43 Build for BSD 4.3.
  1281.    BSD44 Build for BSD 4.4.
  1282.    C70 Build for BBN C/70.
  1283.    CIE Build for CIE Systems 680/20.
  1284.    CKCONINTB4CB Work around prompt-disappears after escape back from
  1285.    CONNECT.
  1286.    CKLEARN Build with support for learned scripts.
  1287.    CKLOGDIAL Enable connection log.
  1288.    CKMAXPATH Maximum length for a fully qualified filename.
  1289.    CKREGEX (misnomer) Include [...] or {xxx,xxx,xxx} matching in
  1290.    ckmatch().
  1291.    CKSYSLOG Enable syslogging.
  1292.    CK_ANSIC Enable ANSI C constructs - prototypes, etc.
  1293.    CK_ANSILIBS Use header files for ANSI C libraries.
  1294.    CK_APC Enable APC execution by CONNECT module.
  1295.    CK_CURSES Enable fullscreen file transfer display.
  1296.    CK_DSYSINI Use system-wide init file, with name supplied by Kermit.
  1297.    CK_DTRCD DTR/CD flow control is available.
  1298.    CK_FAST Build with fast Kermit protocol defaults.
  1299.    CK_FORK_SIG UNIX only: signal() number for CONNECT module forks.
  1300.    CK_IFRO IF REMOTE command is available (and can run in remote mode).
  1301.    CK_INI_A System-wide init file takes precedence over user's.
  1302.    CK_INI_B User's init file takes precedence over the system-wide one.
  1303.    CK_LABELED Include support for SET FILE TYPE LABELED.
  1304.    CK_LBRK This version can send Long BREAK.
  1305.    CK_LINGER Add code to turn of TCP socket "linger" parameter.
  1306.    CK_MKDIR This version has a zmkdir() command to create directories.
  1307.    CK_NAWS Include TELNET Negotiate About Window Size support.
  1308.    CK_NEWTERM Use newterm() rather than initscr() to initialize curses.
  1309.    CK_PAM Include PAM authentication (might also require -lpam).
  1310.    CK_PCT_BAR Fullscreen file transfer display should include
  1311.    "thermometer".
  1312.    CK_POLL System-V or POSIX based UNIX has poll() function.
  1313.    CK_POSIX_SIG Use POSIX signal handing: sigjmp_buf, sigsetjmp,
  1314.    siglongjmp.
  1315.    CK_READ0 read(fd,&x,0) can be used to test TCP/IP connections.
  1316.    CK_REDIR Enable the REDIRECT command.
  1317.    CK_RESEND Include the RESEND command (needs zfseek() + append).
  1318.    CK_RTSCTS RTS/CTS flow control is available.
  1319.    CK_SHADOW Include support for shadow passwords (e.g. for IKSD
  1320.    authentication).
  1321.    CK_SOCKBUF Enable TCP socket-buffer-size-increasing code.
  1322.    CK_SOCKS UNIX only: Build with socks library rather than regular
  1323.    sockets
  1324.    CK_SOCKS5 UNIX only: Build with socks 5 lib rather than regular
  1325.    sockets
  1326.    CK_SPEED Enable control-character unprefixing.
  1327.    CK_SYSINI="xxxxx" Quoted string to be used as system-wide init file
  1328.    name.
  1329.    CK_TIMERS Build with support for dynamically calculated packet
  1330.    timeouts.
  1331.    CK_TMPDIR This version of Kermit has an isdir() function.
  1332.    CK_TTYFD Defined on systems where the communications connection file
  1333.    descriptor (ttyfd) can be passed to other processes as a command-line
  1334.    argument via \v(ttyfd).
  1335.    CK_URL Parse URLs as well as hostnames, etc.
  1336.    CK_XONXOFF Xon/Xoff flow control available.
  1337.    CK_XYZ Include support for XYZMODEM protocols.
  1338.    CK_WREFRESH Curses package includes wrefresh(),clearok() for screen
  1339.    refresh.
  1340.    CKFLOAT=type Floating-point data type, "double" or "float".
  1341.    CKTYP_H=xxx Force include of xxx as <types.h> file.
  1342.    CLSOPN When hanging up a tty device, also close and reopen it.
  1343.    CMDDEP Maximum recursion depth for self-referential user-defined fn's.
  1344.    COHERENT Build for Mark Williams Coherent UNIX
  1345.    CONGSPD Define if this version has congspd() routine in ck?tio.c
  1346.    datageneral Build for Data General AOS/VS or AOS/VS II
  1347.    DCLPOPEN popen() is available but needs to be declared
  1348.    DEC_TCPIP Build with support for DEC TCP/IP (UCX) for (Open)VMS
  1349.    DGUX430 Build for DG/UX 4.30
  1350.    DGUX540 Build for DG/UX 5.40
  1351.    DEFPAR=x Default parity, 0, 'e', 'o', 'm', or 's'.
  1352.    DFTTY=xxx Default communications device name.
  1353.    DIRENT UNIX directory structure to be taken from <dirent.h>.
  1354.    DIRPWDRP Prompt for password in REMOTE CWD command.
  1355.    DTILDE Include UNIX ~ notation for username/home-directory
  1356.    DYNAMIC Allocate file transfer packet buffers dynamically with malloc.
  1357.    ENCORE Build for Encore Multimax computers.
  1358.    EXCELAN Build with excelan TCP/IP.
  1359.    FNFLOAT Include floating-point math functions (logs, sin, cos, exp,
  1360.    etc)
  1361.    FT18 Build for Fortune For:Pro 1.8.
  1362.    FT21 Build for Fortune For:Pro 2.1.
  1363.    GEMDOS Build for Atari ST GEMDOS.
  1364.    GFTIMER Use high-precision floating-point file-transfer timers.
  1365.    GID_T=xxx Group IDs are of type xxx (usually int, short, or gid_t).
  1366.    HADDRLIST If gethostbyname() hostent struct contains a list of
  1367.    addresses.
  1368.    HDBUUCP Build with support for Honey DanBer UUCP.
  1369.    HPUX Build for Hewlett Packard HP-UX.
  1370.    HPUX9 Build for Hewlett Packard HP-UX 9.x.
  1371.    HPUX10 Build for Hewlett Packard HP-UX 10.x.
  1372.    HWPARITY Define if this version can SET PARITY HARDWARE { EVEN,
  1373.    ODD...}
  1374.    I386IX Build for Interactive System V R3.
  1375.    IFDEBUG Add IF stmts "if (deblog)" before "debug()" calls.
  1376.    INADDRX TCP/IP inet_addr() type is struct inaddr, not unsigned long.
  1377.    INTERLAN Build with support for Racal/Interlan TCP/IP.
  1378.    ISDIRBUG System defs of S_ISDIR and S_ISREG have bug, define
  1379.    ourselves.
  1380.    ISIII Build for Interactive System III.
  1381.    IX370 Build for IBM IX/370.
  1382.    KANJI Build with Kanji character-set translation support.
  1383.    LCKDIR UUCP lock directory is /usr/spool/uucp/LCK/.
  1384.    LFDEVNO UUCP lockfile name uses device numbers, as in SVR4.
  1385.    LINUXFSSTND For Linux, use FSSTND UUCP lockfile conventions (default).
  1386.    LOCK_DIR=xxx UUCP lock directory is xxx (quoted string).
  1387.    LOCKF Use lockf() (in addition to lockfiles) on serial lines
  1388.    LONGFN BSD long filenames supported using <dir.h> and opendir().
  1389.    LYNXOS Build for Lynx OS 2.2 or later (POSIX-based).
  1390.    MAC Build for Apple Macintosh with Mac OS.
  1391.    MATCHDOT Make wildcards match filenames that start with period (.)
  1392.    MAXRP=number Maximum receive-packet length.
  1393.    MAXSP=number Maximum send-packet length.
  1394.    MDEBUG Malloc-debugging requested.
  1395.    MINIDIAL Minimum modem dialer support: CCITT, Hayes, Unkown, and None.
  1396.    MINIX Build for MINIX.
  1397.    MIPS Build for MIPS workstation.
  1398.    MULTINET Build with support for TGV MultiNet TCP/IP (VAX/VMS).
  1399.    M_UNIX Defined by SCO.
  1400.    NAP The nap() is available (conflicts with SELECT and USLEEP)
  1401.    NAPHACK The nap() call is available but only as syscall(3112,...)
  1402.    NDIR BSD long filenames supported using <ndir.h> and opendir().
  1403.    NDGPWNAM Don't declare getpwnam().
  1404.    NDSYSERRLIST Don't declare sys_errlist[].
  1405.    NEEDSELECTDEFS select() is avaible but we need to define FD_blah
  1406.    ourselves.
  1407.    NETCMD Build with support for SET HOST /COMMAND and PIPE commands.
  1408.    NEXT Build for NeXT Mach 1.x or 2.x or 3.0, 3.1, or 3.2.
  1409.    NEXT33 Build for NeXT Mach 3.3.
  1410.    NOANSI Disable ANSI C function prototyping.
  1411.    NOAPC Do not include CK_APC code.
  1412.    NOARROWKEYS Exclude code to parse ANSI arrow-key sequences.
  1413.    NOB_xxxx Disable SET SPEED xxxx
  1414.    NOBIGBUF Override BIGBUFOK when it is the default
  1415.    NOBRKC Don't try to refer to t_brkc or t_eof tchars structure members.
  1416.    NOCCTRAP Disable Control-C (SIGINT) trapping.
  1417.    NOCKSPEED Disable control-prefix removal feature (SET CONTROL).
  1418.    NOCKTIMERS Build without support for dynamic timers.
  1419.    NOCKXYZ Overrides CK_XYZ.
  1420.    NOCKREGEX Do not include [...] or {xxx,xxx,xxx} matching in ckmatch().
  1421.    NOCMDL Build with no command-line option processing.
  1422.    NOCOTFMC No Close(Open()) To Force Mode Change (UNIX version).
  1423.    NOCSETS Build with no support for character set translation.
  1424.    NOCYRIL Build with no support for Cyrillic character set translation.
  1425.    NOCYRILLIC Ditto.
  1426.    NODEBUG Build with no debug logging capability.
  1427.    NODIAL Build with no DIAL or SET DIAL commands.
  1428.    NODISPO Build to always refuse incoming MAIL or REMOTE PRINT files.
  1429.    DNODISPLAY Build with no file-transfer display.
  1430.    NOESCSEQ Build with no support for ANSI escape sequence recognition.
  1431.    NOFAST Do not make FAST Kermit protocol settings the default.
  1432.    NOFDZERO Do not use file descriptor 0 for remote-mode file transfer.
  1433.    NOFILEH Do not #include <sys/file.h>.
  1434.    NOFLOAT Don't include any floating-point data types or operations.
  1435.    NOFRILLS Build with "no frills" (this should be phased out...)
  1436.    NOFTRUNCATE Include this on UNIXes that don't have ftruncate().
  1437.    NOGETUSERSHELL Include this on UNIXes that don't have getusershell().
  1438.    NOGFTIMER Don't use high-precision floating-point file-transfer
  1439.    timers.
  1440.    NOHEBREW Build with no support for Hebrew character sets.
  1441.    NOHELP Build with no built-in help.
  1442.    NOIKSD Build with IKSD support excluded.
  1443.    NOINITGROUPS Include this on UNIXes that don't have initgroups().
  1444.    NOICP Build with no interactive command parser.
  1445.    NOJC Build with no support for job control (suspend).
  1446.    NOKANJI Build with no support for Japanese Kanji character sets.
  1447.    NOKVERBS Build with no support for keyboard verbs (\Kverbs).
  1448.    NOLATIN2 Build with no ISO Latin-2 character-set translation support.
  1449.    NOLEARN Build with no support for learned scripts.
  1450.    NOLINKBITS Use of S_ISLNK and _IFLNK untrustworthy; use readlink()
  1451.    instead.
  1452.    NOLOCAL Build without any local-mode features: No Making Connections.
  1453.    NOLOGDIAL Disable connection log.
  1454.    NOLOGIN Build without IKSD (network login) support.
  1455.    NOLSTAT Not OK to use lstat().
  1456.    NOMDMHUP Build without "modem-specific hangup" (e.g. ATH0) feature.
  1457.    NOMHHOST Exclude the multihomed-host TCP/IP code (if compilcation
  1458.    errors)
  1459.    NOMINPUT Build without MINPUT command.
  1460.    NOMSEND Build with no MSEND command.
  1461.    NONAWS Do not include TELNET Negotiate About Window Size support.
  1462.    NONET Do not include any network support.
  1463.    NONOSETBUF (See NOSETBUF)
  1464.    NOPARSEN Build without automatic parity detection.
  1465.    NOPIPESEND Disable file transfer using pipes and filters.
  1466.    NOPOLL Override CK_POLL definition.
  1467.    NOPOPEN The popen() library call is not available.
  1468.    NOPURGE Build with no PURGE command.
  1469.    NOPUSH Build with no escapes to operating system.
  1470.    NOREALPATH In UNIX, realpath() function is not available.
  1471.    NORECALL Disable the command-recall feature.
  1472.    NOREDIRECT Disable REDIRECT command.
  1473.    NORENAME Don't use rename() system call, use link()/unlink() (UNIX).
  1474.    NORESEND Build with no RESEND command.
  1475.    NORETRY Build with no command-retry feature.
  1476.    NOSCRIPT Build with no SCRIPT command.
  1477.    NOSELECT Don't try to use select().
  1478.    NOSERVER Build with no SERVER mode and no server-related commands.
  1479.    NOSETBUF Don't make console writes unbuffered.
  1480.    NONOSETBUF DO make console writes unbuffered.
  1481.    NOSETREU setreuid() and/or setregid() not available.
  1482.    NOSHOW Build with no SHOW command (not recommended!).
  1483.    NOSIGWINCH Disable SIGWINCH signal trapping.
  1484.    NOSPL Build with no script programming language.
  1485.    NOSTAT Don't call stat() from mainline code.
  1486.    NOSYMLINK Include this for UNIXes that don't have readlink().
  1487.    NOSYSIOCTLH Do not #include <sys/ioctl.h>.
  1488.    NOSYSTIMEH Co not include <sys/time.h>.
  1489.    NOSYSLOG Disable syslogging code.
  1490.    NOTCPOPTS Build with no SET TCP options or underlying support.
  1491.    NOTLOG Build with no support for transaction logging.
  1492.    NOTM_ISDST Struct tm has no tm_isdst member.
  1493.    NOUNICODE Build with no support for Unicode character-set translation.
  1494.    NOURL Don't parse URLs
  1495.    NOUUCP Build with no UUCP lockfile support (dangerous!).
  1496.    NOWARN Make EXIT WARNING be OFF by default (otherwise it's ON).
  1497.    NOWREFRESH Override built-in definition of CK_WREFRESH (q.v.).
  1498.    NOXFER Build with no Kermit or other file-transfer protocols.
  1499.    NOXMIT Build with no TRANSMIT command.
  1500.    NOXPRINT Disables transparent print code.
  1501.    OLDMSG Use old "entering server mode" message (see [164]ckcmai.c).
  1502.    OLINUXHISPEED Build in old Linux hi-serial-speed code (for Linux <=
  1503.    1.0).
  1504.    OPENBSD Build for OpenBSD.
  1505.    OS2 Build for OS/2.
  1506.    OSF Build for OSF/1.
  1507.    OSFPC Build for OSF/1 on a PC.
  1508.    OSF32 Digital UNIX 3.2 or later.
  1509.    OSF40 Build for Digital UNIX 4.0.
  1510.    OSF50 Build for Digital UNIX 5.0.
  1511.    OSK Build for OS-9.
  1512.    OXOS Build for Olivetti X/OS 2.3.
  1513.    PCIX Build for PC/IX
  1514.    PID_T=xxx Type for pids is xxx (normally int or pid_t).
  1515.    POSIX Build for POSIX: use POSIX header files, functions, etc.
  1516.    _POSIX_SOURCE Disable non-POSIX features.
  1517.    PROVX1 Build for Venix 1.0 on DEC Professional 3xx.
  1518.    PTX Build for Dynix/PTX
  1519.    PWID_T=xxx getpwid() type is xxx.
  1520.    RBSIZ=xxx Define overall size of receive-packet buffer (with DYNAMIC).
  1521.    RDCHK rdchk() system call is available.
  1522.    RENAME rename() system call is available (UNIX).
  1523.    RTAIX Build for AIX 2.2.1 on IBM RT PC.
  1524.    RTU Build for Masscomp / Concurrent RTU.
  1525.    SAVEDUID BSD or other non-AT&T UNIX has saved-setuid feature.
  1526.    SBSIZ=xxx Define overall size of send-packet buffer (use with
  1527.    DYNAMIC).
  1528.    SDIRENT Directory structure specified in <sys/dirent.h>.
  1529.    SELECT select() function available (conflicts with RDCHK and CK_POLL)
  1530.    SELECT_H Include <sys/select.h> for select()-releated definitions.
  1531.    SETEUID BSD 4.4-style seteXid() functions available.
  1532.    SIG_V Type for signal() is void. Used to override normal assumption.
  1533.    SIG_I Type for signal() is int. Used to override normal assumption.
  1534.    SOCKOPT_T Override default data type for get/setsockopt() option
  1535.    length.
  1536.    SOLARIS Build for Solaris.
  1537.    SOLARIS25 Build for Solaris 2.5 or later.
  1538.    SONYNEWS Build for Sony NEWS-OS.
  1539.    STERMIOX <sys/termiox.h> is available.
  1540.    STRATUS Build for Stratus VOS.
  1541.    STRATUSX25 Include Stratus VOS X.25 support.
  1542.    SUN4S5 Build for SUNOS 4.x in the System V R3 environment.
  1543.    SUNOS4 Build for SUNOS 4.0 in the BSD environment.
  1544.    SUNOS41 Build for SUNOS 4.1 in the BSD environment.
  1545.    SUNX25 Build with support for SunLink X.25.
  1546.    SVR3 Build for AT&T System V Release 3.
  1547.    SVR3JC Allow job control support on System V Release 3 UNIX versions.
  1548.    SVR4 Build for AT&T System V Release 4.
  1549.    SW_ACC_ID UNIX only -- swap real & effective ids around access()
  1550.    calls.
  1551.    sxaE50 Build for PFU Compact A Series SX/A TISP.
  1552.    SYSLOGLEVEL=n Force syslogging at given level.
  1553.    SYSTIMEH Include <sys/time.h>.
  1554.    SYSUTIMEH Include <sys/utime.h> for setting file dates (88OPEN)
  1555.    TCPSOCKET Build with support for TCP/IP via Berkeley sockets library.
  1556.    TERMIOX <termiox.h> header file is available (mostly SVR4).
  1557.    TNCODE Include TELNET-specific code.
  1558.    TOWER1 Build for NCR Tower 1632 with OS 1.02.
  1559.    TRS16 Build for Tandy 16/6000.
  1560.    UID_T=xxx Type for uids is xxx (normally int or uid_t).
  1561.    UNIX Must be defined for all UNIX versions.
  1562.    UNIX351M AT&T UNIX 3.51m on the AT&T 7300 UNIX PC.
  1563.    USE_ARROWKEYS Include code to parse ANSI arrow-key sequences.
  1564.    USE_LSTAT OK to use lstat().
  1565.    USE_MEMCPY Define this if memcpy()/memset()/memmove() available.
  1566.    USE_STRERROR Define this if strerror() is available.
  1567.    USLEEP usleep() system call available (conflicts with NAP & SELECT).
  1568.    UTEK Build for Tektronix workstations with UTEK OS.
  1569.    UTIMEH Include <utime.h> for setting file dates (SVR4, POSIX)
  1570.    UTS24 Build for Amdahl UTS 2.4.
  1571.    V7 Build for Version 7 UNIX.
  1572.    VMS Build for VAX/VMS.
  1573.    VOID=xxx VOID type for functions (int or void).
  1574.    VXVE Build for CDC VX/VE 5.2.1.
  1575.    WAIT_T=xxx Type of argument passed to wait().
  1576.    WINTCP Build with Wollongong VAX/VMS TCP/IP (implies TCPSOCKET)
  1577.    WOLLONGONG Build with Wollongong UNIX TCP/IP (implies TCPSOCKET)
  1578.    XENIX Build for Xenix (SCO, Tandy, others).
  1579.    XNDIR Support for BSD long filenames via <sys/ndir.h>.
  1580.    XYZ_INTERNAL Support for XYZMODEM protocols is internal, not external.
  1581.    ZFCDAT Define this if zfcdat() function is available in Kermit.
  1582.    ZILOG Build for Zilog ZEUS.
  1583.    ZJDATE Has zjdate() function that converts date to Julian format.
  1584.    XPRINT Transparent print code included in CONNECT module.
  1585.    
  1586.    [ [165]Top ] [ [166]Contents ] [ [167]C-Kermit Home ] [ [168]Kermit
  1587.    Home ]
  1588.      _________________________________________________________________
  1589.    
  1590.    
  1591.     C-Kermit Configuration Options / [169]The Kermit Project /
  1592.     [170]Columbia University / [171]kermit@columbia.edu / 16 Dec 2001
  1593.  
  1594. References
  1595.  
  1596.    1. http://www.columbia.edu/kermit/
  1597.    2. http://www.columbia.edu/
  1598.    3. http://www.columbia.edu/kermit/ckccfg.html
  1599.    4. http://www.columbia.edu/kermit/ckermit.html
  1600.    5. http://www.columbia.edu/kermit/index.html
  1601.    6. http://www.columbia.edu/kermit/ckccfg.html#x1
  1602.    7. http://www.columbia.edu/kermit/ckccfg.html#x2
  1603.    8. http://www.columbia.edu/kermit/ckccfg.html#x3
  1604.    9. http://www.columbia.edu/kermit/ckccfg.html#x4
  1605.   10. http://www.columbia.edu/kermit/ckccfg.html#x5
  1606.   11. http://www.columbia.edu/kermit/ckccfg.html#x6
  1607.   12. http://www.columbia.edu/kermit/ckccfg.html#x7
  1608.   13. http://www.columbia.edu/kermit/ckccfg.html#x8
  1609.   14. http://www.columbia.edu/kermit/ckccfg.html#x9
  1610.   15. http://www.columbia.edu/kermit/ckccfg.html#x10
  1611.   16. http://www.columbia.edu/kermit/ckccfg.html#x11
  1612.   17. http://www.columbia.edu/kermit/ckccfg.html#x12
  1613.   18. http://www.columbia.edu/kermit/ckccfg.html#x13
  1614.   19. http://www.columbia.edu/kermit/ckccfg.html#x14
  1615.   20. http://www.columbia.edu/kermit/ckccfg.html#xa1
  1616.   21. http://www.columbia.edu/kermit/ckuins.html
  1617.   22. http://www.columbia.edu/kermit/ckermit.html
  1618.   23. http://www.columbia.edu/kermit/index.html
  1619.   24. http://www.columbia.edu/kermit/ckccfg.html#top
  1620.   25. http://www.columbia.edu/kermit/ckccfg.html#contents
  1621.   26. http://www.columbia.edu/kermit/ckccfg.html#x2
  1622.   27. http://www.columbia.edu/kermit/ckccfg.html#x0
  1623.   28. http://www.columbia.edu/kermit/ckermit.html
  1624.   29. http://www.columbia.edu/kermit/index.html
  1625.   30. http://www.columbia.edu/kermit/ckccfg.html#top
  1626.   31. http://www.columbia.edu/kermit/ckccfg.html#contents
  1627.   32. http://www.columbia.edu/kermit/ckccfg.html#x3
  1628.   33. http://www.columbia.edu/kermit/ckccfg.html#x1
  1629.   34. ftp://kermit.columbia.edu/kermit/c-kermit/ckutio.c
  1630.   35. ftp://kermit.columbia.edu/kermit/c-kermit/ckcdeb.h
  1631.   36. ftp://kermit.columbia.edu/kermit/c-kermit/ckuus3.c
  1632.   37. ftp://kermit.columbia.edu/kermit/c-kermit/ckcdeb.h
  1633.   38. ftp://kermit.columbia.edu/kermit/c-kermit/ckutio.c
  1634.   39. ftp://kermit.columbia.edu/kermit/c-kermit/ckutio.c
  1635.   40. http://www.columbia.edu/kermit/ckermit.html
  1636.   41. http://www.columbia.edu/kermit/index.html
  1637.   42. http://www.columbia.edu/kermit/ckccfg.html#top
  1638.   43. http://www.columbia.edu/kermit/ckccfg.html#contents
  1639.   44. http://www.columbia.edu/kermit/ckccfg.html#x4
  1640.   45. http://www.columbia.edu/kermit/ckccfg.html#x2
  1641.   46. ftp://kermit.columbia.edu/kermit/c-kermit/makefile
  1642.   47. http://www.columbia.edu/kermit/ckuins.html
  1643.   48. http://www.columbia.edu/kermit/ckuins.html#x4
  1644.   49. http://www.columbia.edu/kermit/ckuins.html#x9.2
  1645.   50. ftp://kermit.columbia.edu/kermit/c-kermit/ckuusx.c
  1646.   51. ftp://kermit.columbia.edu/kermit/c-kermit/ckutio.c
  1647.   52. ftp://kermit.columbia.edu/kermit/c-kermit/ckufio.c
  1648.   53. ftp://kermit.columbia.edu/kermit/c-kermit/ckuusx.c
  1649.   54. ftp://kermit.columbia.edu/kermit/c-kermit/ckucmd.c
  1650.   55. http://www.columbia.edu/kermit/ckermit.html
  1651.   56. http://www.columbia.edu/kermit/index.html
  1652.   57. http://www.columbia.edu/kermit/ckccfg.html#top
  1653.   58. http://www.columbia.edu/kermit/ckccfg.html#contents
  1654.   59. http://www.columbia.edu/kermit/ckccfg.html#x5
  1655.   60. http://www.columbia.edu/kermit/ckccfg.html#x3
  1656.   61. http://www.columbia.edu/kermit/unicode.html
  1657.   62. http://www.columbia.edu/kermit/ckermit.html
  1658.   63. http://www.columbia.edu/kermit/index.html
  1659.   64. http://www.columbia.edu/kermit/ckccfg.html#top
  1660.   65. http://www.columbia.edu/kermit/ckccfg.html#contents
  1661.   66. http://www.columbia.edu/kermit/ckccfg.html#x6
  1662.   67. http://www.columbia.edu/kermit/ckccfg.html#x4
  1663.   68. ftp://kermit.columbia.edu/kermit/c-kermit/ckuusr.h
  1664.   69. ftp://kermit.columbia.edu/kermit/c-kermit/ckuusr.h
  1665.   70. http://www.columbia.edu/kermit/ckermit.html
  1666.   71. http://www.columbia.edu/kermit/index.html
  1667.   72. http://www.columbia.edu/kermit/ckccfg.html#top
  1668.   73. http://www.columbia.edu/kermit/ckccfg.html#contents
  1669.   74. http://www.columbia.edu/kermit/ckccfg.html#x7
  1670.   75. http://www.columbia.edu/kermit/ckccfg.html#x5
  1671.   76. http://www.columbia.edu/kermit/ckccfg.html#x6.1
  1672.   77. http://www.columbia.edu/kermit/ckccfg.html#x6.2
  1673.   78. http://www.columbia.edu/kermit/ckccfg.html#x6.3
  1674.   79. http://www.columbia.edu/kermit/ckccfg.html#x6.4
  1675.   80. http://www.columbia.edu/kermit/ckccfg.html#x4
  1676.   81. http://www.columbia.edu/kermit/gkermit.html
  1677.   82. ftp://kermit.columbia.edu/kermit/c-kermit/ckuusr.h
  1678.   83. ftp://kermit.columbia.edu/kermit/c-kermit/ckcker.h
  1679.   84. ftp://kermit.columbia.edu/kermit/c-kermit/ckcdeb.h
  1680.   85. http://www.columbia.edu/kermit/ckermit.html
  1681.   86. http://www.columbia.edu/kermit/index.html
  1682.   87. http://www.columbia.edu/kermit/ckccfg.html#top
  1683.   88. http://www.columbia.edu/kermit/ckccfg.html#contents
  1684.   89. http://www.columbia.edu/kermit/ckccfg.html#x8
  1685.   90. http://www.columbia.edu/kermit/ckccfg.html#x6
  1686.   91. ftp://kermit.columbia.edu/kermit/c-kermit/ckudia.c
  1687.   92. http://www.columbia.edu/kermit/ckermit.html
  1688.   93. http://www.columbia.edu/kermit/index.html
  1689.   94. http://www.columbia.edu/kermit/ckccfg.html#top
  1690.   95. http://www.columbia.edu/kermit/ckccfg.html#contents
  1691.   96. http://www.columbia.edu/kermit/ckccfg.html#x9
  1692.   97. http://www.columbia.edu/kermit/ckccfg.html#x7
  1693.   98. http://www.columbia.edu/kermit/ckccfg.html#x8.1
  1694.   99. http://www.columbia.edu/kermit/ckccfg.html#x8.2
  1695.  100. http://www.columbia.edu/kermit/ckccfg.html#x8.3
  1696.  101. http://www.columbia.edu/kermit/ckccfg.html#x8.1.1
  1697.  102. http://www.columbia.edu/kermit/ckccfg.html#x8.1.2
  1698.  103. http://www.columbia.edu/kermit/ckccfg.html#x8.1.3
  1699.  104. http://www.columbia.edu/kermit/ckccfg.html#x8.1.4
  1700.  105. http://www.columbia.edu/kermit/ckccfg.html#x8.1.5
  1701.  106. http://www.columbia.edu/kermit/ckccfg.html#x8.1.6
  1702.  107. ftp://kermit.columbia.edu/kermit/c-kermit/ckcnet.h
  1703.  108. ftp://kermit.columbia.edu/kermit/c-kermit/ckctel.c
  1704.  109. ftp://kermit.columbia.edu/kermit/c-kermit/ckctel.c
  1705.  110. ftp://kermit.columbia.edu/kermit/c-kermit/ckctel.h
  1706.  111. ftp://kermit.columbia.edu/kermit/c-kermit/ckcftp.c
  1707.  112. http://www.columbia.edu/kermit/ckermit.html
  1708.  113. ftp://kermit.columbia.edu/kermit/c-kermit/ckcnet.c
  1709.  114. ftp://kermit.columbia.edu/kermit/c-kermit/ckcnet.h
  1710.  115. ftp://kermit.columbia.edu/kermit/c-kermit/ckutio.c
  1711.  116. http://www.columbia.edu/kermit/ckccfg.html#x11
  1712.  117. mailto:kermit@columbia.edu
  1713.  118. http://www.columbia.edu/kermit/ckermit.html
  1714.  119. http://www.columbia.edu/kermit/index.html
  1715.  120. http://www.columbia.edu/kermit/ckccfg.html#top
  1716.  121. http://www.columbia.edu/kermit/ckccfg.html#contents
  1717.  122. http://www.columbia.edu/kermit/ckccfg.html#x10
  1718.  123. http://www.columbia.edu/kermit/ckccfg.html#x8
  1719.  124. http://www.columbia.edu/kermit/ckermit.html
  1720.  125. http://www.columbia.edu/kermit/index.html
  1721.  126. http://www.columbia.edu/kermit/ckccfg.html#top
  1722.  127. http://www.columbia.edu/kermit/ckccfg.html#contents
  1723.  128. http://www.columbia.edu/kermit/ckccfg.html#x11
  1724.  129. http://www.columbia.edu/kermit/ckccfg.html#x9
  1725.  130. http://www.columbia.edu/kermit/ckuins.html#x11
  1726.  131. http://www.columbia.edu/kermit/ckuins.html
  1727.  132. http://www.columbia.edu/kermit/ckermit.html
  1728.  133. http://www.columbia.edu/kermit/index.html
  1729.  134. http://www.columbia.edu/kermit/ckccfg.html#top
  1730.  135. http://www.columbia.edu/kermit/ckccfg.html#contents
  1731.  136. http://www.columbia.edu/kermit/ckccfg.html#x12
  1732.  137. http://www.columbia.edu/kermit/ckccfg.html#x10
  1733.  138. ftp://kermit.columbia.edu/kermit/c-kermit/ckucns.c
  1734.  139. ftp://kermit.columbia.edu/kermit/c-kermit/ckucon.c
  1735.  140. http://www.columbia.edu/kermit/ckermit.html
  1736.  141. http://www.columbia.edu/kermit/index.html
  1737.  142. http://www.columbia.edu/kermit/ckccfg.html#top
  1738.  143. http://www.columbia.edu/kermit/ckccfg.html#contents
  1739.  144. http://www.columbia.edu/kermit/ckccfg.html#x13
  1740.  145. http://www.columbia.edu/kermit/ckccfg.html#x11
  1741.  146. http://www.columbia.edu/kermit/ckermit.html
  1742.  147. http://www.columbia.edu/kermit/index.html
  1743.  148. http://www.columbia.edu/kermit/ckccfg.html#top
  1744.  149. http://www.columbia.edu/kermit/ckccfg.html#contents
  1745.  150. http://www.columbia.edu/kermit/ckccfg.html#x14
  1746.  151. http://www.columbia.edu/kermit/ckccfg.html#x12
  1747.  152. ftp://kermit.columbia.edu/kermit/c-kermit/ckcdeb.h
  1748.  153. http://www.columbia.edu/kermit/ckermit.html
  1749.  154. http://www.columbia.edu/kermit/index.html
  1750.  155. http://www.columbia.edu/kermit/ckccfg.html#top
  1751.  156. http://www.columbia.edu/kermit/ckccfg.html#contents
  1752.  157. http://www.columbia.edu/kermit/ckccfg.html#x13
  1753.  158. http://www.columbia.edu/kermit/ckermit.html
  1754.  159. http://www.columbia.edu/kermit/index.html
  1755.  160. http://www.columbia.edu/kermit/ckccfg.html#top
  1756.  161. http://www.columbia.edu/kermit/ckccfg.html#contents
  1757.  162. ftp://kermit.columbia.edu/kermit/c-kermit/ckcdeb.h
  1758.  163. ftp://kermit.columbia.edu/kermit/c-kermit/ckcnet.h
  1759.  164. ftp://kermit.columbia.edu/kermit/c-kermit/ckcmai.c
  1760.  165. http://www.columbia.edu/kermit/ckccfg.html#top
  1761.  166. http://www.columbia.edu/kermit/ckccfg.html#contents
  1762.  167. http://www.columbia.edu/kermit/ckermit.html
  1763.  168. http://www.columbia.edu/kermit/index.html
  1764.  169. http://www.columbia.edu/kermit/index.html
  1765.  170. http://www.columbia.edu/
  1766.  171. mailto:kermit@columbia.edu
  1767.