home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / ckc192.zip / CKCCFG.DOC < prev    next >
Text File  |  1996-11-24  |  49KB  |  986 lines

  1. C-KERMIT CONFIGURATION INFORMATION                                   -*-text-*-
  2.  
  3.   As of C-Kermit version:  6.0.192 Beta.030
  4.   This file last updated:  Fri Sep  6 23:23:01 1996
  5.  
  6.   Frank da Cruz, Columbia University
  7.  
  8.   Copyright (C) 1985, 1996, Trustees of Columbia University in the City of New
  9.   York.  The C-Kermit software may not be, in whole or in part, licensed or
  10.   sold for profit as a software product itself, nor may it be included in or
  11.   distributed with commercial products or otherwise distributed by commercial
  12.   concerns to their clients or customers without written permission of the
  13.   Office of Kermit Development and Distribution, Columbia University.  This
  14.   copyright notice must not be removed, altered, or obscured.
  15.  
  16. DOCUMENTATION:
  17.  
  18. C-Kermit 5A is documented in the book "Using C-Kermit" by Frank da Cruz and
  19. Christine M. Gianone, Second Edition, Digital Press / Butterworth-Heinemann,
  20. Woburn, MA, 1997, ISBN 1-55558-164-1, Price: US $39.95.  To order call the
  21. Kermit Project at Columbia University, +1 212 854-3703, and order with Master
  22. Card or Visa, or call Digital Press, +1 800 366-2665, and order with Master
  23. Card, Visa, or American Express.
  24.  
  25. DISCLAIMER:
  26.  
  27.   The C-Kermit software is provided in source code form by Kermit Development
  28.   and Distribution, Columbia University.  The software is provided "as is;" no
  29.   other warranty is provided, express or implied, including without
  30.   limitations, any implied warranty of merchantability or implied warranty of
  31.   fitness for a particular purpose.
  32.  
  33.   Neither Columbia University nor any of the contributors to the C-Kermit
  34.   development effort, including, but not limited to, AT&T, Digital Equipment
  35.   Corporation, Data General Corporation, or International Business Machines
  36.   Corporation, warrant C-Kermit software or documentation in any way.  In
  37.   addition, neither the authors of any Kermit programs, publications or
  38.   documentation, nor Columbia University nor any contributing institutions or
  39.   individuals acknowledge any liability resulting from program or
  40.   documentation errors.
  41.  
  42. WHAT IS IN THIS FILE
  43.  
  44. This file is for C-Kermit developers.  It explains compilation options,
  45. feature selection, and compilation problem-solving, as they (should) apply to
  46. all versions of C-Kermit: UNIX, VMS, OS/2, and the rest.
  47.  
  48. CONTENTS
  49.  
  50.   1. OVERVIEW
  51.   2. SERIAL COMMUNICATION SPEEDS
  52.   3. FULLSCREEN FILE TRANSFER DISPLAY
  53.   4. CHARACTER SETS
  54.   5. APC EXECUTION
  55.   6. PROGRAM SIZE
  56.      6.1. When Memory Is Not a Problem
  57.      6.2. Removing Features
  58.      6.3. Changing Buffer Sizes
  59.      6.4. Other Size-Related Items
  60.      6.5. Space/Time Tradeoffs
  61.   7. DIALER SUPPORT
  62.   8. NETWORK SUPPORT
  63.      8.1. TCP/IP
  64.       8.1.1. Firewalls
  65.       8.1.2. Solving Compilation and Linking Problems
  66.       8.1.3. Enabling Host Address Lists
  67.       8.1.4. Enabling Telnet NAWS
  68.           8.1.5. Enabling Incoming TCP/IP Connections
  69.      8.2. X.25
  70.      8.3. Other Networks
  71.   9. EXCEPTION HANDLING
  72.  10. SECURITY FEATURES
  73.  11. ENABLING SELECT()
  74.  APPENDIX I: SUMMARY OF COMPILE-TIME OPTIONS
  75.  
  76. 1. OVERVIEW
  77.  
  78. This file gives more-or-less system-independent configuration information for
  79. C-Kermit 5A and later.  The major topics covered include program size (and how
  80. to reduce it), how to include or exclude particular features, notes on modem
  81. and network support, and a list of C-Kermit's compile-time options.
  82.  
  83. For details about your particular operating system, consult the system-specific
  84. installation instructions file:
  85.  
  86.   CK?INS.DOC
  87.  
  88. (? = U for UNIX, V for VMS, etc, for example, CKUINS.DOC for UNIX, CKVINS.DOC
  89. for VAX/VMS, CKDINS.DOC for Data General AOS/VS, etc).  Also consult the
  90. following files:
  91.  
  92.   CKAAAA.HLP   Explanation of file naming conventions
  93.   CKCPLM.DOC   C-Kermit "program logic manual"
  94.   CK?KER.HLP   System-specific help file, if any
  95.   CK?KER.MAK   System-specific build procedure
  96.   CKCKER.BWR   "Beware file": C-Kermit bugs, limitations, workarounds
  97.   CK?KER.BWR   System-specific "beware file"
  98.   CKCKER.UPD   User-level documentation for new features
  99.   CKCnnn.UPD   Program edit history for edit nnn, e.g. CKC190.UPD.
  100.  
  101. 2. SERIAL COMMUNICATION SPEEDS
  102.  
  103. These are defined in two places: the SET SPEED keyword list in the command
  104. parser (as of this writing, in the ckuus3.c source file), and in the system-
  105. dependent communications i/o module, CK?TIO.C, functions ttsspd() (set speed)
  106. and ttgspd() (get speed).  The following speeds are assumed to be available
  107. in all versions:
  108.  
  109.   0, 110, 300, 600, 1200, 2400, 4800, 9600
  110.  
  111. If one or more of these speeds is not supported by your system, you'll need
  112. to change the source code (this has never happened so far).  Other speeds
  113. that are not common to all systems have Kermit-specific symbols:
  114.  
  115.                Symbol       Symbol
  116.   Speed (bps)  to enable    to disable
  117.        50       BPS_50       NOB_50
  118.        75       BPS_75       NOB_75  
  119.        75/1200  BPS_7512     NOB_7512
  120.       134.5     BPS_134      NOB_134
  121.       150       BPS_150      NOB_150
  122.       200       BPS_200      NOB_200
  123.      1800       BPS_1800     NOB_1800
  124.      3600       BPS_3600     NOB_3600
  125.      7200       BPS_7200     NOB_7200
  126.     14400       BPS_14K      NOB_14K
  127.     19200       BPS_19K      NOB_19K
  128.     28800       BPS_28K      NOB_28K
  129.     38400       BPS_38K      NOB_38K
  130.     57600       BPS_57K      NOB_57K
  131.     76800       BPS_76K      NOB_76K
  132.    115200       BPS_115K     NOB_155K
  133.    230400       BPS_230K     NOB_230K
  134.  
  135. The ckcdeb.h header file contains default speed configurations for the many
  136. systems that C-Kermit supports.  You can override these defaults by (a)
  137. editing ckcdeb.h, or (b) defining the appropriate enabling and/or disabling
  138. symbols on the CC command line, for example:
  139.  
  140.   -DBPS_14400 -DNOB_115200
  141.  
  142. or the "make" command line, e.g.:
  143.  
  144.   make blah "KFLAGS=-DBPS_14400 -DNOB_115200"
  145.  
  146. Note: some speeds have no symbols defined for them, because they have never
  147. been needed: 12.5bps, 45.5bps, 20000bps, etc.  These can easily be added if
  148. required.
  149.  
  150. IMPORTANT: Adding one of these flags at compile time does not necessarily mean
  151. that you will be able to use that speed.  A particular speed is usable only if
  152. your underlying operating system supports it.  In particular, it needs to be
  153. defined in the appropriate system header file (e.g. in UNIX, cd to
  154. /usr/include and grep for B9600 in *.h and sys/*.h to find the header file
  155. that contains the definitions for the supported speeds), and supported by the
  156. serial device driver, and of course by the physical device itself.
  157.  
  158. 3. FULLSCREEN FILE TRANSFER DISPLAY
  159.  
  160. New to edit 180 is support for an MS-DOS-Kermit-like local-mode full screen
  161. file transfer display, accomplished using the curses library, or something
  162. equivalent (for example, the Screen Manager on DEC VMS).  To enable this
  163. feature, include the following in your CFLAGS:
  164.  
  165.   -DCK_CURSES
  166.  
  167. and then change your build procedure (if necessary) to include the necessary
  168. libraries, usually "curses", perhaps also "termcap" or "termlib".  See
  169. OS-dependent installation instructions and/or build procedure for details.  
  170.  
  171. New to edit 190 is the ability to refresh a messed-up full-screen display,
  172. e.g. after receiving a broadcast message.  This depends on the curses package
  173. including the wrefresh() and clearok() functions and the curscr variable.  If
  174. your version has these, or has code to simulate them, then add:
  175.  
  176.   -DCK_WREFRESH
  177.  
  178. The curses and termcap libraries add considerable size to the program image
  179. (e.g. about 20K on a SUN-4, 40K on a 386).  On some small systems, such as the
  180. AT&T 6300 PLUS, curses support can push Kermit over the edge... even though it
  181. compiles, loads, and runs correctly, its increased size apparently makes it
  182. swap constantly, slowing it down to a crawl, even when the curses display is
  183. not in use.  Some new makefile entries have been added to take care of this
  184. (e.g. sys3upcshcc), but similar tricks might be necessary in other cases too.
  185.  
  186. Also new to edit 190 is an ASCII-graphic percent-done "thermometer".  This is
  187. not included unless you add:
  188.  
  189.   -DCK_PCT_BAR
  190.  
  191. to your CFLAGS.
  192.  
  193. Just below the bar is a running display of the transfer rate, as a flat
  194. quotient of file characters per elapsed seconds so far.  You can change this
  195. to an average that gives greater weight to recent history (0.25 *
  196. instantaneous cps + 0.75 * historical cps) by adding -DCPS_WEIGHTED to
  197. your CFLAGS (sorry folks, this one is not worth a SET command).  You can
  198. choose a second type of weighted average in which the weighting smooths
  199. out progressively as the transfer progresses by adding -DCPS_VINCE to
  200. -DCPS_WEIGHTED.
  201.  
  202. An alternative to curses is also available at compile time, but should be
  203. selected if your version of Kermit is to be run in local mode only in an ANSI
  204. terminal environment, for example on a desktop workstation that has an ANSI
  205. console driver.  To select this option in place of curses, define the symbol
  206. MYCURSES:
  207.  
  208.   -DMYCURSES
  209.  
  210. instead of CK_CURSES.  The MYCURSES option uses built-in ANSI (VT100) escape
  211. sequences, and depends upon your terminal or console driver to interpret them
  212. correctly.
  213.  
  214. To use the fullscreen display feature, SET FILE DISPLAY FULLSCREEN.  Beware, it
  215. can slow the transfer down a bit (or a lot).  The faster the connection speed,
  216. the more likely the fullscreen display will become the bottleneck.  To test
  217. whether the fullscreen display is slowing your transfers down on a particular
  218. connection, transfer the same with it and without it, and compare the figures
  219. given in the STATISTICS command.  The default file transfer display is still
  220. the old SERIAL ("dots") display, even if you build in curses support.
  221.  
  222. A compromise between the two styles (new to edit 183), that can be used on any
  223. video display terminal, can be elected at runtime with the SET FILE DISPLAY
  224. CRT.  It relies only on the ability of the terminal to write over the current
  225. line when it receives a bare carriage return.  The same performance comments
  226. apply to this display option.
  227.  
  228. 4. CHARACTER SETS
  229.  
  230. By default, C-Kermit is built with support for translation of character sets
  231. for Western European languages (i.e. languages that originated in Western
  232. Europe, but are now also spoken in the Western Hemisphere and other parts of
  233. the world), via ISO 8859-1 Latin Alphabet 1, for Eastern European languages
  234. (ISO Latin-2), Hebrew (and Yiddish), and Cyrillic-alphabet languages (ISO
  235. Latin/Cyrillic).  Many file (local) character sets are supported: ISO 646
  236. 7-bit national sets, IBM code pages, Apple, DEC, DG, NeXT, etc.
  237.  
  238. Japanese language support is available by defining the following symbol in
  239. your CFLAGS (for example in UNIX, you can "make xxx KFLAGS=-KANJI"):
  240.  
  241. -DKANJI
  242.    Japanese.
  243.    Transfer character-set: Japanese EUC (= JIS X 0201 + JIS X 0208)
  244.    File character-sets: EUC, JIS-7, DEC Kanji, Shift JIS
  245.  
  246. To build Kermit with no character-set translation at all, include -DNOCSETS in
  247. the CFLAGS.  To build with no Latin-2, add -DNOLATIN2.  To build with no
  248. Cyrillic, add -DNOCYRIL.  To omit Hebrew, add -DNOHEBREW.  If -DNOCSETS is
  249. *not* included, you'll always get LATIN1.  There is presently no way to
  250. include Latin-2, Cyrillic, Hebrew, or Kanji without also including Latin-1.
  251.  
  252. If Kanji support happens to be included in your version by default (as it is
  253. for OS/2), but you don't want it, include add -DNOKANJI to your CFLAGS.
  254.  
  255. 5. APC EXECUTION
  256.  
  257. The Kermit CONNECT module can be coded to execute Application Program Command
  258. escape sequences from the host.  These are of the form:
  259.  
  260.   ESC _ text ESC \
  261.  
  262. where "text" is a C-Kermit command, or a list of C-Kermit commands separated
  263. by commas, up to about 1K in length.
  264.  
  265. To date, this feature has been coded into the OS/2, Windows, VMS, OS-9, and
  266. UNIX versions, for which the symbol:
  267.  
  268.   CK_APC
  269.  
  270. is defined automatically in ckuusr.h.  For OS/2, APC is enabled at runtime
  271. by default, for UNIX it is disabled.  It is controlled by the SET TERMINAL
  272. APC command.  Configuring APC capability into a version that gets it by
  273. default (because CK_APC is defined in ckuusr.h) can be overridden by including:
  274.  
  275.   -DNOAPC
  276.  
  277. on the CC command line.
  278.  
  279. 6. PROGRAM SIZE
  280.  
  281. C-Kermit 5A is a large program, much larger than version 4.x and earlier
  282. because of all the new features, primarily the script programming language,
  283. sliding window packet protocol, and international character set translation.
  284. On some systems, the size of the program prevents it from being successfully
  285. linked and loaded.  On some others, it occupies so much memory that it is
  286. constantly swapping or paging.  In such cases, you can reduce C-Kermit's size
  287. in various ways, outlined in this section.  The following options can cut down
  288. on the program's size at compile time by removing features or changing the
  289. size of storage areas.
  290.  
  291. 6.1. When Memory Is Not a Problem
  292.  
  293. But first, also note that if "memory is no problem" on your system, you can
  294. easily INCREASE the sizes of many things (buffers, command length, macro
  295. length, maximum number of all sorts of things) simply by defining the
  296. following symbol at compile time:
  297.  
  298.   BIGBUFOK
  299.  
  300. 6.2. Removing Features
  301.  
  302. Features can be removed by defining symbols on the CC (C compiler) command
  303. line.  "-D" is the normal CC directive to define a symbol so, for example,
  304. "-DNODEBUG" defines the symbol NODEBUG.  Some C compilers might use different
  305. syntax, e.g.  "-d NODEBUG" or "/DEFINE=NODEBUG".  For C compilers that do not
  306. take command-line arguments, you can put the corresponding #define statements
  307. in the file CKCSYM.H, for example:
  308.  
  309. #define NODEBUG
  310.  
  311. (The #define statement must be on the left margin.)  Here are C-Kermit's
  312. size-related compile-time options.  The ones that take up the most space are
  313. marked by asterisk (*).  If you are desperate to save space, remove debugging
  314. first, rather than some more useful feature.  Remove built-in help only if
  315. absolutely necessary.  The final resort is to remove the interactive command
  316. parser completely, leaving only a UNIX-style command-line interface
  317. ("kermit -s foo").  This cuts the program down to about 25% of its fully
  318. configured size.
  319.  
  320. * -DNODEBUG:  Add this option to omit all debugging code.
  321.   -DNOTLOG:   Add this option to omit transaction logging.
  322. * -DNOHELP:   Add this option to omit built-in help.
  323.   -DTCPSOCKET:Remove this option to omit TCP/IP support.
  324.   -DSUNX25:   Remove this option to omit SunLink X.25 support.
  325.   -DNOMSEND:  Add this option to remove the MSEND command.
  326. * -DNOLOCAL:  Add this option to remove all local-mode support.
  327. * -DNODIAL:   Add this option to remove the DIAL command and modem support.
  328. * -DMINIDIAL: Add this option to support only CCITT, Hayes, and Unknown modems.
  329. * -DNOOLDMODEMS: Add this option to drop support for "old" modem types.
  330.   -DNOXMIT:   Add this option to remove the TRANSMIT command.
  331.   -DNOSCRIPT: Add this option to remove the UUCP-style SCRIPT command.
  332.   -DNOCMDL:   Add this option to remove the command-line option interface.
  333. * -DNOSPL:    Add this option to remove the script programming language.
  334. * -DNOICP:    Add this option to remove the entire interactive command parser.
  335.   -DDCMDBUF:  Add this option to allocate command buffers dynamically.
  336. * -DNOCSETS:  Add this option to remove international character set support.
  337.   -DNOLATIN2  Add this option to remove ISO Latin-2 character-set translation.
  338.   -DNOCYRIL:  Add this option to remove Cyrillic character set translation.
  339.   -DNOLATIN2: Add this option to remove Latin-2 character set translation.
  340.   -DNOHEBREW: Add this option to remove Hebrew character set translation.
  341.   -DKANJI:    Omit this option to exclude Kanji character set translation.
  342.   -DNOESCSEQ: Add this option to omit ANSI escape sequence recognition.
  343.   -DNOSERVER: Add this option to remove server mode.
  344.   -DNOSETKEY: Add this option to remove the SET KEY command.
  345.   -DNOPUSH:   Add this option to remove escapes to operating system.
  346.   -DNOFRILLS: Add this option to remove "frills".
  347. * -DCK_CURSES: Omit this option to keep the curses library out of Kermit.
  348.  
  349.   -DSBSIZ=nnnn -DRBSIZ=nnnnn
  350.      Change the overall size of the packet send and receive buffers.
  351.  
  352. -DNOFRILLS removes various command synonyms; the following top-level commands:
  353. CLEAR, DELETE, DISABLE, ENABLE, the multiline version of GET, GETOK, MAIL,
  354. RENAME, TYPE, WHO; and the following REMOTE commands: KERMIT, LOGIN, LOGOUT,
  355. PRINT, TYPE, WHO.
  356.  
  357. The CK_CURSES option, at least on UNIX, requires C-Kermit be linked with
  358. a large external library.  On certain small systems, C-Kermit programs built
  359. this way have been observed to cause swapping and/or performance problems.
  360.  
  361. 6.3. Changing Buffer Sizes
  362.  
  363. There are options to control Kermit's packet buffer allocations.  The
  364. following symbols are defined in ckcker.h in such a way that you can override
  365. them by redefining them in CFLAGS:
  366.  
  367.   -DMAXSP=xxxx - Maximum send-packet length, default 2048.
  368.   -DMAXRP=xxxx - Maximum receive-packet length, 2048 for UNIX, 1920 for VMS.
  369.   -DSBSIZ=xxxx - Total allocation for send-packet buffers, default 3008.
  370.   -DRBSIZ=xxxx - Total allocation for receive-packet buffers, default 3008.
  371.  
  372. The program size is affected by SBSIZ and RBSIZ (send and receive packet
  373. buffer size).  These are static character arrays compiled into the program.
  374. If you wish, you can have Kermit allocate packet buffers dynamically at
  375. runtime using malloc() by including the CFLAGS switch:
  376.  
  377.   -DDYNAMIC
  378.  
  379. In this case, the default packet and buffers sizes are changed to:
  380.  
  381.   -DMAXSP=9024 (for UNIX, 2048 for VMS)
  382.   -DMAXRP=9024 (for UNIX, 1920 for VMS)
  383.   -DSBSIZ=9050
  384.   -DRBSIZ=9050
  385.  
  386. but you can change the packet buffer sizes (not the maximum packet size) at
  387. runtime using the command:
  388.  
  389.   SET BUFFERS <sbsiz> <rbsiz>
  390.  
  391. Using dynamic allocation (-DDYNAMIC) reduces storage requirements for the
  392. executable program on disk, and allows more and bigger packets at runtime.
  393. But dynamic allocation might not work on all systems.  Try it.  If it works
  394. for you, there is no reason not to use it.  But if the program hangs or core
  395. dumps, then omit the -DDYNAMIC option from CFLAGS.
  396.  
  397. 6.4. Other Size-Related Items
  398.  
  399. To make Kermit compile and load successfully, you might have to change your
  400. build procedure to:
  401.  
  402.    a. Request a larger ("large" or "huge") model.  This is particularly true
  403.       for 16-bit PC-based UNIX versions.  This is typically done with a -M
  404.       and/or -F switch (see your cc manual or man page for details).
  405.  
  406.    b. Some systems support overlays.  If the program is too big to be built
  407.       as is, check your loader manual ("man ld") to see if an overlay feature
  408.       is available.  See the 2.10/2.11 BSD example in the UNIX makefile. 
  409.  
  410.    c. Similarly, some systems support "code mapping", which is similar to
  411.       overlays.  Again, see "man ld".
  412.  
  413. It is also possible to reduce the size of the executable program file in
  414. several other ways:
  415.  
  416.    a. Include the -O (optimize) compiler switch if it isn't already included
  417.       in your "make" entry (and if it works!).  If your compiler supports
  418.       higher levels of optimization (e.g. -O2), try it.
  419.  
  420.    b. If your UNIX system supports shared libraries, change the make entry to
  421.       take advantage of this feature.  The way to do this depends on your
  422.       particular system.  Some (like SUNOS) do it automatically.  See the NeXT
  423.       entry for an example.
  424.  
  425.    c. Strip the program image after building ("man strip" for further info),
  426.       or add -s to the LNKFLAGS (UNIX only).  This strips the program of its
  427.       symbol table and relocation information.
  428.  
  429.    d. Move character strings into a separate file.  See the 2.10 BSD entry
  430.       for an example.
  431.  
  432. 6.5. Space/Time Tradeoffs
  433.  
  434. There are over 2000 debug() statements in the program.  If you want to save
  435. both space (program size) and time (program execution time), include -DNODEBUG
  436. in the compilation.  If you want to include debugging for tracking down
  437. problems, omit -DNODEBUG from the make entry.  But when you include debugging,
  438. you have two choices for how it's done.  One definition defines debug() to be
  439. a function call; this is cheap in space but expensive in execution.  The other
  440. defines debug as "if (deblog)" and then the function call, to omit the
  441. function call overhead when the debug log is not active.  But this adds a lot
  442. of space to the program.  Both methods work, take your choice; IFDEBUG is
  443. preferred if memory is not a constraint but the computer is likely to be slow.
  444. The first method is the default, i.e. if nothing is done to the CFLAGS or in
  445. ckcdeb.h (but in some cases, e.g. VMS, it is).  To select the second method,
  446. include -DIFDEBUG in the compilation (and don't include -DNODEBUG).
  447.  
  448. 7. DIALER SUPPORT
  449.  
  450. -DNODIAL removes automatic modem dialing completely, including the entire
  451. ckudia.c module, plus all commands that refer to dialing in the various
  452. ckuus*.c modules.
  453.  
  454. -DMINIDIAL leaves the DIAL and related commands (SET/SHOW MODEM, SET/SHOW DIAL)
  455. intact, but removes support for all types of modems except CCITT, Hayes,
  456. Unknown, and None (= Direct).  The MINIDIAL option cuts the size of the dial
  457. module approximately in half.  Use this option if you have only Hayes or
  458. CCITT modems and don't want to carry the baggage for the other types.
  459.  
  460. Note that MINIDIAL is quite sufficient to control any type of modem that uses
  461. the Hayes command and response set, even modern high-speed, error-correcting,
  462. data-compressing ones, if you use a macro such as the ones listed in the
  463. CKCKER.BWR file (such as PPDIAL) to set up the modem's initialization string,
  464. etc.  In fact, it might ultimately make good sense to replace the bulk of the
  465. DIAL module with a set of macros for each brand of modem, as in MS-DOS Kermit.
  466.  
  467. A compromise between full dialer support and MINIDIAL is obtained by removing
  468. support for "old" modems -- all the strange non-Hayes compatible 1200 and 2400
  469. bps modems that C-Kermit has been carrying around code for since 1985 or so.
  470. To remove support for these modems, add -DNOOLDMODEMS to CFLAGS at compilation
  471. time.
  472.  
  473. Finally, if you keep support for old modems, you will notice that their names
  474. appear on the "set modem ?" menu.  That's because their names are, by default,
  475. "visible".  But the list is confusing to the younger generation, who have only
  476. heard of modems from the V.32bis-and-later era.  If you want to be able to
  477. use old modems, but don't want their names cluttering up menus, add this to
  478. CFLAGS:
  479.  
  480.   -DM_OLD=1
  481.  
  482. 8. NETWORK SUPPORT
  483.  
  484. C-Kermit supports not only RS-232 serial connections, direct and modem, but
  485. also TCP/IP and X.25 network connections.  The OS/2 version supports DECnet
  486. (LAT) connections.  If you define the following symbol:
  487.  
  488.   NONET
  489.  
  490. then all network support will be compiled away.
  491.  
  492. 8.1. TCP/IP
  493.  
  494. TCP/IP support requires the Berkeley sockets library, and is generally
  495. available on any UNIX system.  It is also available in OS/2, VMS, AOS/VS, VOS,
  496. etc.  The TCP/IP support includes built-in TELNET negotiation handling.  To
  497. select TCP/IP support, include -DTCPSOCKET in your makefile entry's CFLAGS, or
  498. the appropriate variant (e.g. -DWOLLONGONG, -DMULTINET, -DEXCELAN, -DWINTCP,
  499. etc).  The network support for TCP/IP and X.25 is in the source files CKCNET.H
  500. and CKCNET.C, with miscellaneous SHOW commands, etc, in the various CKUUS*.C
  501. modules, plus code in the CK*CON.C (CONNECT command) and several other modules
  502. to detect TELNET negotiations, etc.
  503.  
  504. Within the TCPSOCKET code, some socket-level controls are included if
  505. TCPSOCKET is defined in the C-Kermit CFLAGS and SOL_SOCKET is defined in
  506. in the system's TCP-related header files, such as <sys/socket.h>.  These are
  507.  
  508.   SET TCP KEEPALIVE
  509.   SET TCP LINGER
  510.   SET TCP RECVBUF
  511.   SET TCP SENDBUF
  512.  
  513. In addition, if TCP_NODELAY is defined, the following command is also
  514. enabled:
  515.  
  516.   SET TCP NODELAY (Nagle algorithm)
  517.  
  518. See the user documentation for descriptions of these commands.
  519.  
  520. 8.1.1. Firewalls
  521.  
  522. There exist various types of firewalls, set up allow separate users of an
  523. internal TCP/IP network from the great wide Internet.  Of course, this could
  524. be accomplished most easily and safely by simply not connecting the internal
  525. network to the Internet, but in many cases some restricted forms of access are
  526. needed.  Thus a "firewall" is set up to allow only authorized accesses.
  527.  
  528. One firewall method is called SOCKS, in which a proxy server allows users
  529. inside a firewall to access the outside world, based on a permission list
  530. generally stored in a file.  SOCKS is enabled in one of two ways.  First, the
  531. standard sockets library is modified to handle the firewall, and then all the
  532. client applications are relinked (in systems where linking is not dynamic)
  533. with the modified sockets library.  The APIs are all the same, so the
  534. applications do not need to be recoded or recompiled.
  535.  
  536. In the other method, the applications must be modified to call replacement
  537. routines, such as Raccept() instead of accept(), Rbind() instead of bind(),
  538. etc, and then linked with a separate SOCKS library.  This second method is
  539. accomplished in C-Kermit by including -DCK_SOCKS in your CFLAGS, and also
  540. adding:
  541.  
  542.   -lsocks
  543.  
  544. to LIBS, or replacing -lsockets with -lsocks (depending on whether the socks
  545. library also includes all the sockets entry points).
  546.  
  547. Explicit firewall support can, in general, not be a standard feature or a
  548. feature that is selected at runtime, because the SOCKS library tends to be
  549. different at each site -- local modifications abound.
  550.  
  551. The ideal situation occurs when firewalls are supported by the first method,
  552. using dynamically linked sockets-replacement libraries; in this case, all your
  553. TCP/IP client applications will negotiate the firewall transparently.
  554.  
  555. 8.1.2. Solving Compilation and Linking Problems
  556.  
  557. If you get a compilation error in CKCNET.C, with a complaint like
  558. "incompatible types in assignment", it probably has something to do with the
  559. data type your system uses for the inet_addr() function, which is declared
  560. (usually) in <arpa/inet.h>.  Kermit uses "unsigned long" unless the symbol
  561. INADDRX is defined, in which case "struct inaddr" is used instead.  Try adding
  562. -DINADDRX to CFLAGS in your make entry, and if that fixes the problem, please
  563. send a report to kermit@columbia.edu.
  564.  
  565. Compilation errors might also have to do with the data type used for
  566. getsockopt() and setsockopt() option-length field.  This is normally an int,
  567. but sometimes it's a short, a long, or an unsigned any of those, or a size_t.
  568. To fix the compilation problem, add -DSOCKOPT_T=xxx to the CFLAGS in your
  569. makefile entry, where xxx is the appropriate type (use "man getsockopt" or
  570. grep through your system/network header files to find the needed type).
  571.  
  572. 8.1.3. Enabling Host Address Lists
  573.  
  574. When you give Kermit an IP host name, it calls the socket routine
  575. gethostbyname() to resolve it.  gethostbyname() returns a hostent struct,
  576. which might or might not not include a list of addresses; if it does, then
  577. if the first one fails, Kermit can try the second one, and so on.  However,
  578. this will only work if the symbol "h_addr" is a macro defined as
  579. "h_addr_list[0]", usually in netdb.h.  If it is, then you can activate this
  580. feature by defining the following symbol in CFLAGS:
  581.  
  582.   HADDRLIST
  583.  
  584. 8.1.4. Enabling Telnet NAWS
  585.  
  586. TELNET Negotiation About Window Size (NAWS) support requires the ability to
  587. find out the terminal screen's dimensions.  E.g. in UNIX, we need something
  588. like ioctl(0, TIOCGWINSZ, ...).  If your version of Kermit was built with NAWS
  589. capability, SHOW VERSIONS will include CK_NAWS among the compiler options.  If
  590. it doesn't, you can add it by defining CK_NAWS at compile time.  Then, if the
  591. compiler or linker complain about undefined or missing symbols, or there is no
  592. complaint but SHOW TERMINAL fails to show reasonable "Rows =, Columns ="
  593. values, then take a look at (or write) the appropriate ttgwsiz() routine.  On
  594. the other hand, if CK_NAWS is defined by default for your system (in ckcnet.h),
  595. but causes trouble, you can override this definition by including the -DNONAWS
  596. switch on your CC command line, thus disabling the NAWS feature.
  597.  
  598. This appears to be needed at least on the AT&T 3B2, where in ckutio.c,
  599. the routine ttgwsiz() finds that the TIOCGWINSZ symbol is defined but lacks
  600. definitions for the corresponding winsize struct and its members ws_col
  601. and ws_row.
  602.  
  603. The UNIX version of C-Kermit also traps SIGWINCH, so it can send a NAWS any
  604. time the console terminal window size changes, e.g. when you stretch it with a
  605. mouse.  The SIGWINCH-trapping code is enabled if SIGWINCH is defined (i.e. in
  606. signal.h).  If this code should cause problems, you can disable it without
  607. disabling the NAWS feature altogether, by defining NOSIGWINCH at compile time.
  608.  
  609. 8.1.5. Enabling Incoming TCP/IP Connections
  610.  
  611. This feature lets you "set host * <port>" and wait for an incoming connection
  612. on the given port.  This feature is enabled automatically at compile if
  613. TCPSOCKET is defined and SELECT is also defined.  But watch out, simply
  614. defining SELECT on the cc command line does not guarantee successful
  615. compilation or linking (see section 11).
  616.  
  617. If you want to disable incoming TCP/IP connections, then build C-Kermit
  618. with:
  619.  
  620.   -DNOLISTEN
  621.  
  622. 8.1.6. Disabling "SET TCP" Options.
  623.  
  624. The main reason for this is because of header file / prototype conflicts at
  625. compile time regardting get/setsockopt().  If you can't fix them (without
  626. breaking other builds), just include the following in CFLAGS:
  627.  
  628.   -DNOTCPOPTS
  629.  
  630.  
  631. 8.2. X.25
  632.  
  633. X.25 support requires (a) a SUN, (b) the SunLink product (libraries and header
  634. files), and (c) an X.25 connection into your SUN, or else Stratus VOS and the
  635. appropriate X.25 development tools.
  636.  
  637. In UNIX, special makefile entries sunos4x25 and sunos41x25 (for SUNOS 4.0 and
  638. 4.1, respectively) are provided to build in this feature, but they only work
  639. if conditions (a)-(c) are met.  To request this feature, include -DSUNX25 in
  640. CFLAGS.
  641.  
  642. SUNX25 and TCPSOCKET can be freely mixed and matched.
  643.  
  644. 8.3. Other Networks
  645.  
  646. Support for other networking methods -- NETBIOS, LAT, Named Pipes, etc --
  647. is included in CK*NET.H and CK*NET.C for implementations (such as OS/2) where
  648. these methods are supported.
  649.  
  650. Provision is made in the organization of the modules, header files, commands,
  651. etc, for addition of new network types such as DECnet, X.25 for other systems
  652. (HP-UX, VMS, etc), and so on.  Send email to kermit@columbia.edu if you are
  653. interested in working on such a project.
  654.  
  655. 9. EXCEPTION HANDLING
  656.  
  657. The setjmp/longjmp mechanism is used for handling exceptions.  The jump
  658. buffer is of type jmp_buf, which almost everywhere is typedef'd as an array,
  659. in which case you should have no trouble compiling the exception-handling
  660. code.  However, if you are building C-Kermit in/for an environment where
  661. jmp_buf is something other than an array (e.g. a struct), then you'll have
  662. to define the following symbol:
  663.  
  664.   JBNOTARRAY
  665.  
  666. 10. SECURITY FEATURES
  667.  
  668. Compiling with the NOPUSH symbol defined removes all the "shell escape"
  669. features from the program, including the PUSH, RUN, and SPAWN commands, the
  670. "!"  and "@" command prefixes, OPEN !READ, OPEN !WRITE, job control (including
  671. the SUSPEND command), the REDIRECT command, shell/DCL escape from CONNECT
  672. mode, as well as the server's execution of REMOTE HOST commands (and, of
  673. course, the ENABLE HOST command).  Add NODISPO to also prevent acceptance of
  674. incoming MAIL or REMOTE PRINT files.  For UNIX, also be sure to read
  675. CKUINS.DOC about set[ug]id installation.  Additional restrictions can be
  676. enforced when in server mode; read about the DISABLE command.
  677.  
  678. Compiling with NOCCTRAP prevents the trapping of SIGINT by Kermit.  Thus
  679. if the user generates a SIGINT signal (e.g. by typing the system's interrupt
  680. character), Kermit will exit immediately, rather than returning to its
  681. prompt.
  682.  
  683. NOPUSH and NOCCTRAP together allow Kermit to be run from restricted shells,
  684. preventing access to system functions.
  685.  
  686. 11. ENABLING SELECT()
  687.  
  688. Kermit works best if it can do nonblocking reads, nondestructive input buffer
  689. checking, and millisecond sleeps.  All of these functions are best
  690. accomplished by the select() function, which, unfortunately, is not
  691. universally available.  Furthermore, select() is required if incoming TCP/IP
  692. connections are to be supported.
  693.  
  694. select() was introduced with Berkeley UNIX, rejected by AT&T for System V,
  695. but is gradually creeping in to all UNIX versions (and other operating systems
  696. too) by virtue of its presence in the sockets library, which is needed for
  697. TCP/IP.  AT&T SVID for System V R4 includes select(), but that does not mean
  698. that all SVR4 implementations have it.
  699.  
  700. Other alternatives include poll() and rdchk().  Only one of these three 
  701. functions should be included.  The following symbols govern this:
  702.  
  703.   SELECT  Use select() (BSD, or systems with sockets libraries)
  704.   CK_POLL Use poll()   (System V)
  705.   RDCHK   Use rdchk()  (SCO)
  706.  
  707. If your system supports the select() function, but your version of C-Kermit
  708. does not, try adding:
  709.  
  710.   -DSELECT
  711.  
  712. to the CFLAGS, and removing -DRDCHK or -DCK_POLL if it is there.  If you get
  713. compilation errors, some adjustments to ck*tio.c and/or ck*net.c might be
  714. needed; search for SELECT (uppercase) in these files (note that there are
  715. several variations on the calling conventions for select()).
  716.  
  717. Various macros and data types need to be defined in order to use select().
  718. Usually these are picked up from <types.h> or <sys/types.h>.  But on some
  719. systems, they are in <sys/select.h>.  In that case, add the following:
  720.  
  721.   -DSELECT_H
  722.  
  723. to the CFLAGS to tell C-Kermit to #include <sys/select.h>.  A good indication
  724. that you need to do this would be if you get compile-time complaints about
  725. "fd_set" or "FD_SET" not being declared or defined.
  726.  
  727. WARNING: Some implementations of select() only work with file descriptors that
  728. were created by socket() and opened by connect() or accept().  This is
  729. evidently true on (at least) AOS/VS and BeOS.  Who knows where else.
  730.  
  731. ----------------------------------------------------------------------
  732. APPENDIX I: SUMMARY OF COMPILE-TIME OPTIONS
  733.  
  734. These are the symbols that can be specified on the cc command line, listed
  735. alphabetically.  Others are used internally, including those taken from header
  736. files, those defined by the compiler itself, and those inferred from the ones
  737. given below.  Kermit's SHOW VERSIONS command attempts to display most of
  738. these.  See ckcdeb.h and ckcnet.h for inference rules.  For example SVR3
  739. implies ATTSV, MULTINET implies TCPSOCKET, and so on.
  740.  
  741. The following options are not included in all makefile entries, but they are
  742. beneficial if they work.  It is recommended that you add them to your makefile
  743. entry if they are lacking and test the result.  If it's OK, let me know and
  744. I'll add them to the official makefile:
  745.  
  746. DYNAMIC        Dynamic packet buffer allocation, bigger packets allowed, etc.
  747. NOSETBUF       Don't do unbuffered single-character writes to the console.
  748.                This tends to speed up CONNECT mode.
  749.  
  750. Here is the complete list of the Kermit-specific compile-time switches:
  751.  
  752. ACUCNTRL       Select BSD 4.3-style acucntrl() bidirectional tty control.
  753. aegis          Build for Apollo Aegis (predefined on Apollo systems).
  754. AIX370         Build for IBM AIX/370 for IBM mainframes.
  755. AIXESA         Build for IBM AIX/ESA for IBM mainframes.
  756. AIXPS2         Build for IBM AIX 3.0 for PS/2 series (never formally released).
  757. AIXRS          Build for IBM AIX 3.x on RS/6000.
  758. AIX41          Build for IBM AIX 4.x on RS/6000.
  759. AMIGA          Build for Commodore Amiga with Intuition OS.
  760. ATT6300        Build for AT&T 6300 PLUS.
  761. ATT7300        Build for AT&T 7300 UNIX PC (3B1).
  762. ATTSV          Build for AT&T System III or V UNIX.
  763. AUX            Build for Apple A/UX for the Macintosh.
  764. BPS_xxxx       Enable SET SPEED xxxx
  765. BSD29          Build for BSD 2.9 or 2.10.
  766. BSD4           Build for BSD 4.2.
  767. BSD41          Build for BSD 4.1.
  768. BSD43          Build for BSD 4.3.
  769. BSD44          Build for BSD 4.4.
  770. C70            Build for BBN C/70.
  771. CIE            Build for CIE Systems 680/20.
  772. CKMAXPATH      Maximum length for a fully qualified filename.
  773. CK_ANSIC       Enable ANSI C constructs - prototypes, etc.
  774. CK_ANSILIBS    Use header files for ANSI C libraries.
  775. CK_APC         Enable APC execution by CONNECT module.
  776. CK_CURSES      Enable fullscreen file transfer display.
  777. CK_DSYSINI     Use system-wide init file, with name supplied by Kermit.
  778. CK_DTRCD       DTR/CD flow control is available.
  779. CK_FORK_SIG    UNIX only: signal() number for CONNECT module forks.
  780. CK_IFRO        IF REMOTE command is available (and can run in remote mode).
  781. CK_INI_A       System-wide init file takes precedence over user's.
  782. CK_INI_B       User's init file takes precedence over the system-wide one.
  783. CK_LABELED     Include support for SET FILE TYPE LABELED.
  784. CK_LBRK        This version can send Long BREAK.
  785. CK_LINGER      Add code to turn of TCP socket "linger" parameter.
  786. CK_MKDIR       This version has a zmkdir() command to create directories.
  787. CK_NAWS        Include TELNET Negotiate About Window Size support.
  788. CK_NEWTERM     Use newterm() rather than initscr() to initialize curses.
  789. CK_PCT_BAR     Fullscreen file transfer display should include "thermometer".
  790. CK_POLL        System-V or POSIX based UNIX has poll() function.
  791. CK_POSIX_SIG   Use POSIX signal handing: sigjmp_buf, sigsetjmp, siglongjmp.
  792. CK_READ0       read(fd,&x,0) can be used to test TCP/IP connections.
  793. CK_REDIR       Enable the REDIRECT command.
  794. CK_RESEND      Include the RESEND command (needs zfseek() + append).
  795. CK_RTSCTS      RTS/CTS flow control is available.
  796. CK_SOCKBUF     Enable TCP socket-buffer-size-increasing code.
  797. CK_SPEED       Enable control-character unprefixing.
  798. CK_SYSINI="xxxxx"  Quoted string to be used as system-wide init file name.
  799. CK_TIMERS      Build with support for dynamically calculated packet timeouts.
  800. CK_TMPDIR      This version of Kermit has an isdir() function.
  801. CK_TTYFD       Defined on systems where the communications connection file
  802.                descriptor (ttyfd) can be passed to other processes as a
  803.                command-line argument via \v(ttyfd).        
  804. CK_XONXOFF     Xon/Xoff flow control available.
  805. CK_XYZ         Include support for XYZMODEM protocols.
  806. CK_WREFRESH    Curses package includes wrefresh(),clearok() for screen refresh.
  807. CKTYP_H=xxx    Force include of xxx as <types.h> file.
  808. CLSOPN         When hanging up a tty device, also close and reopen it.
  809. CMDDEP         Maximum recursion depth for self-referential user-defined fn's.
  810. COHERENT       Build for Mark Williams Coherent UNIX
  811. CONGSPD        Define if this version has congspd() routine in ck?tio.c
  812. datageneral    Build for Data General AOS/VS or AOS/VS II
  813. DCLPOPEN       popen() is available but needs to be declared
  814. DEC_TCPIP      Build with support for DEC TCP/IP (UCX) for (Open)VMS
  815. DGUX430        Build for DG/UX 4.30
  816. DGUX540        Build for DG/UX 5.40
  817. DEFPAR=x       Default parity, 0, 'e', 'o', 'm', or 's'.
  818. DFTTY=xxx      Default communications device name.
  819. DIRENT         UNIX directory structure to be taken from <dirent.h>
  820. DIRPWDRP       Prompt for password in REMOTE CWD command.
  821. DTILDE         Include UNIX ~ notation for username/home-directory
  822. DYNAMIC        Allocate file transfer packet buffers dynamically with malloc.
  823. ENCORE         Build for Encore Multimax computers.
  824. EXCELAN        Build with excelan TCP/IP.
  825. FT18           Build for Fortune For:Pro 1.8.
  826. FT21           Build for Fortune For:Pro 2.1.
  827. GEMDOS         Build for Atari ST GEMDOS.
  828. GID_T=xxx      Group IDs are of type xxx (usually int, short, or gid_t).
  829. HADDRLIST      If gethostbyname() hostent struct contains a list of addresses.
  830. HDBUUCP        Build with support for Honey DanBer UUCP.
  831. HPUX           Build for Hewlett Packard HP-UX.
  832. HPUX9          Build for Hewlett Packard HP-UX 9.x.
  833. HPUX10         Build for Hewlett Packard HP-UX 10.x.
  834. I386IX         Build for Interactive System V R3.
  835. IFDEBUG        Add IF stmts "if (deblog)" before "debug()" calls.
  836. INADDRX        TCP/IP inet_addr() type is struct inaddr, not unsigned long.
  837. INTERLAN       Build with support for Racal/Interlan TCP/IP.
  838. ISDIRBUG       System defs of S_ISDIR and S_ISREG have bug, define ourselves.
  839. ISIII          Build for Interactive System III.
  840. IX370          Build for IBM IX/370.
  841. KANJI          Build with Kanji character-set translation support.
  842. LCKDIR         UUCP lock directory is /usr/spool/uucp/LCK/.
  843. LFDEVNO        UUCP lockfile name uses device numbers, as in SVR4.
  844. LINUXFSSTND    For Linux, use FSSTND UUCP lockfile conventions.
  845. LOCK_DIR=xxx   UUCP lock directory is xxx.
  846. LOCKF          Use lockf() (in addition to lockfiles) on serial lines
  847. LONGFN         BSD long filenames supported using <dir.h> and opendir().
  848. LYNXOS         Build for Lynx OS 2.2 or later (POSIX-based).
  849. MAC            Build for Apple Macintosh with Mac OS.
  850. MATCHDOT       Make wildcards to match filenames starting with period (.)
  851. MAXRP=xxx      Maximum receive-packet length.
  852. MAXSP=xxx      Maximum send-packet length.
  853. MDEBUG         Malloc-debugging requested.
  854. MINIDIAL       Minimum modem dialer support: CCITT, Hayes, Unkown, and None.
  855. MINIX          Build for MINIX.
  856. MIPS           Build for MIPS workstation.
  857. MULTINET       Build with support for TGV MultiNet TCP/IP (VAX/VMS).
  858. NAP            The nap() is available (conflicts with SELECT and USLEEP)
  859. NAPHACK        The nap() call is availabe but only as syscall(3112,...)
  860. NDIR           BSD long filenames supported using <ndir.h> and opendir().
  861. NDGPWNAM       Don't declare getpwnam().
  862. NDSYSERRLIST   Don't declare sys_errlist[].
  863. NEXT           Build for NeXT Mach 1.x or 2.x or 3.0, 3.1, or 3.2.
  864. NEXT33         Build for NeXT Mach 3.3.
  865. NOANSI         Disable ANSI C function prototyping.
  866. NOAPC          Do not include CK_APC code.
  867. NOB_xxxx       Disable SET SPEED xxxx
  868. NOBRKC         Don't try to refer to t_brkc or t_eof tchars structure members.
  869. NOCCTRAP       Disable Control-C (SIGINT) trapping.
  870. NOCKSPEED      Disable control-prefix removal feature (SET CONTROL).
  871. NOCKTIMERS     Build without support for dynamic timers.
  872. NOCKXYZ        Overrides CK_XYZ.
  873. NOCMDL         Build with no command-line option processing.
  874. NOCOTFMC       No close(open()) to force mode change (UNIX version).
  875. NOCSETS        Build with no support for character set translation.
  876. NOCYRIL        Build with no support for Cyrillic character set translation.
  877. NODEBUG        Build with no debug logging capability.
  878. NODIAL         Build with no DIAL or SET DIAL commands.
  879. NODISPO        Build to always refuse incoming MAIL or REMOTE PRINT files.
  880. NOESCSEQ       Build with no support for ANSI escape sequence recognition.
  881. NOFDZERO       Do not use file descriptor 0 for remote-mode file transfer.
  882. NOFILEH        Do not #include <sys/file.h>.
  883. NOFRILLS       Build with "no frills".
  884. NOHEBREW       Build with no support for Hebrew character sets.
  885. NOHELP         Build with no built-in help.
  886. NOHISPEED      Build without serial high speeds (Linux).
  887. NOICP          Build with no interactive command parser.
  888. NOJC           Build with no support for job control (suspend).
  889. NOKANJI        Build with no support for Japanese Kanji character sets.
  890. NOKVERBS       Build with no support for keyboard verbs (\Kverbs).
  891. NOLOCAL        Build without any local-mode features.
  892. NOLATIN2       Build with no ISO Latin-2 character-set translation support.
  893. NOMDMHUP       Build without "modem-specific hangup" (e.g. ATH0) feature.
  894. NOMINPUT       Build without MINPUT command.
  895. NOMSEND        Build with no MSEND command.
  896. NONAWS         Do not include TELNET Negotiate About Window Size support.
  897. NONET          Do not include any network support.
  898. NOPARSEN       Build without automatic parity detection.
  899. NOPOLL         Override CK_POLL definition.
  900. NOPOPEN        The popen() system call is not available.
  901. NOPUSH         Build with no escapes to operating system.
  902. NORECALL       Disable the command-recall feature.
  903. NOREDIRECT     Disable REDIRECT command.
  904. NORENAME       Don't use rename() system call, use link()/unlink() (UNIX).
  905. NORESEND       Build with no RESEND command.
  906. NORETRY        Build with no command-retry feature.
  907. NOSCRIPT       Build with no SCRIPT command.
  908. NOSELECT       Don't try to use select().
  909. NOSERVER       Build with no SERVER mode and no server-related commands.
  910. NOSETBUF       Don't make console writes unbuffered.
  911. NOSETREU       setreuid() and/or setregid() not available.
  912. NOSHOW         Build with no SHOW command (not recommended!).
  913. NOSIGWINCH     Disable SIGWINCH signal trapping.
  914. NOSPL          Build with no script programming language. 
  915. NOSYSIOCTLH    Do not #include <sys/ioctl.h>.
  916. NOTCPOPTS      Build with no SET TCP options or underlying support.
  917. NOTLOG         Build with no support for transaction logging.
  918. NOUUCP         Build with no UUCP lockfile support (dangerous!).
  919. NOWREFRESH     Override built-in definition of CK_WREFRESH (q.v.).
  920. NOXMIT         Build with no TRANSMIT command.
  921. OLDMSG         Use old "entering server mode" message (see ckcmai.c).
  922. OS2            Build for OS/2.
  923. OSF            Build for OSF/1.
  924. OSFPC          Build for OSF/1 on a PC.
  925. OSK            Build for OS-9.
  926. OXOS           Build for Olivetti X/OS 2.3.
  927. PCIX           Build for PC/IX
  928. PID_T=xxx      Type for pids is xxx (normally int or pid_t).
  929. POSIX          Build for POSIX: use POSIX header files, functions, etc.
  930. _POSIX_SOURCE  Disable non-POSIX features.
  931. PROVX1         Build for Venix 1.0 on DEC Professional 3xx.
  932. PTX            Build for Dynix/PTX
  933. PWID_T=xxx     getpwid() type is xxx.
  934. RBSIZ=xxx      Define overall size of receive-packet buffer (with DYNAMIC).
  935. RDCHK          rdchk() system call is available.
  936. RENAME         rename() system call is available (UNIX).
  937. RTAIX          Build for AIX 2.2.1 on IBM RT PC.
  938. RTU            Build for Masscomp / Concurrent RTU.
  939. SAVEDUID       BSD or other non-AT&T UNIX has saved-setuid feature.
  940. SBSIZ=xxx      Define overall size of send-packet buffer (use with DYNAMIC).
  941. SDIRENT        Directory structure specified in <sys/dirent.h>.
  942. SELECT         select() function available (conflicts with RDCHK and CK_POLL)
  943. SELECT_H       Include <sys/select.h> for select()-releated definitions.
  944. SETEUID        BSD 4.4-style seteXid() functions available.
  945. SIG_V          Type for signal() is void.  Used to override normal assumption.
  946. SIG_I          Type for signal() is int.  Used to override normal assumption.
  947. SOCKOPT_T      Override default data type for get/setsockopt() option length.
  948. SONYNEWS       Build for Sony NEWS-OS.
  949. STERMIOX       <sys/termiox.h> is available.
  950. STRATUS        Build for Stratus VOS.
  951. STRATUSX25     Include Stratus VOS X.25 support.
  952. SUN4S5         Build for SUNOS 4.x in the System V R3 environment.
  953. SUNOS4         Build for SUNOS 4.0 in the BSD environment.
  954. SUNOS41        Build for SUNOS 4.1 in the BSD environment.
  955. SUNX25         Build with support for SunLink X.25.
  956. SVR3           Build for AT&T System V Release 3.
  957. SVR3JC         Allow job control support on System V Release 3 UNIX versions.
  958. SVR4           Build for AT&T System V Release 4.
  959. SW_ACC_ID      UNIX only -- swap real & effective ids around access() calls.
  960. sxaE50         Build for PFU Compact A Series SX/A TISP.
  961. SYSUTIMEH      Include <sys/utime.h> for setting file dates (88OPEN)
  962. TCPSOCKET      Build with support for TCP/IP via Berkeley sockets library.
  963. TERMIOX        <termiox.h> header file is available (mostly SVR4).
  964. TNCODE         Include TELNET-specific code.
  965. TOWER1         Build for NCR Tower 1632 with OS 1.02.
  966. TRS16          Build for Tandy 16/6000.
  967. UID_T=xxx      Type for uids is xxx (normally int or uid_t).
  968. USLEEP         usleep() system call available (conflicts with NAP & SELECT).
  969. UTEK           Build for Tektronix workstations with UTEK OS.
  970. UTIMEH         Include <utime.h> for setting file dates (SVR4, POSIX)
  971. UTS24          Build for Amdahl UTS 2.4.
  972. V7             Build for Version 7 UNIX.
  973. VMS            Build for VAX/VMS.
  974. VOID=xxx       VOID type for functions (int or void).
  975. VXVE           Build for CDC VX/VE 5.2.1.
  976. WAIT_T=xxx     Type of argument passed to wait().
  977. WINTCP         Build with Wollongong VAX/VMS TCP/IP (implies TCPSOCKET)
  978. WOLLONGONG     Build with Wollongong UNIX TCP/IP (implies TCPSOCKET)
  979. XENIX          Build for Xenix (SCO, Tandy, others).
  980. XNDIR          Support for BSD long filenames via <sys/ndir.h>.
  981. XYZ_INTERNAL   Support for XYZMODEM protocols is internal, not external.
  982. ZFCDAT         Define this if zfcdat() function is available in Kermit.
  983. ZILOG          Build for Zilog ZEUS.
  984.  
  985. (End of CKCCFG.DOC)
  986.