ckccfg.txt 66 KB

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