1: /*  C K U U S R . H  --  Symbol definitions for C-Kermit ckuus*.c modules  */
   2: 
   3: /*
   4:   Author: Frank da Cruz (fdc@columbia.edu, FDCCU@CUVMA.BITNET),
   5:   Columbia University Center for Computing Activities.
   6:   First released January 1985.
   7:   Copyright (C) 1985, 1992, Trustees of Columbia University in the City of New
   8:   York.  Permission is granted to any individual or institution to use this
   9:   software as long as it is not sold for profit.  This copyright notice must be
  10:   retained.  This software may not be included in commercial products without
  11:   written permission of Columbia University.
  12: */
  13: #ifndef CKUUSR_H
  14: #define CKUUSR_H
  15: 
  16: #include "ckucmd.h"         /* Get symbols from command package */
  17: 
  18: /* Sizes of things */
  19: 
  20: #define FSPECL 300          /* Max length for MSEND/GET string */
  21: #define VNAML 20            /* Max length for variable name */
  22: #define FORDEPTH 10         /* Maximum depth of nested FOR loops */
  23: #define GVARS 126           /* Highest global var allowed */
  24: #define MAXTAKE 30          /* Maximum nesting of TAKE files */
  25: #define MACLEVEL 50         /* Maximum nesting for macros */
  26: #define NARGS 10            /* Max number of macro arguments */
  27: #define LINBUFSIZ CMDBL+10      /* Size of line[] buffer */
  28: #define INPBUFSIZ 257           /* Size of INPUT buffer */
  29: #define CMDSTKL ( MACLEVEL + MAXTAKE + 2) /* Command stack depth */
  30: #define MAC_MAX 256         /* Maximum number of macros */
  31: #define MSENDMAX 100            /* Number of filespecs for MSEND */
  32: 
  33: struct cmdptr {             /* Command stack structure */
  34:     int src;                /* Command Source */
  35:     int lvl;                /* Current TAKE or DO level */
  36: };
  37: 
  38: struct mtab {               /* Macro table, like keyword table */
  39:     char *kwd;              /* But with pointers for vals */
  40:     char *mval;             /* instead of ints. */
  41:     short flgs;
  42: };
  43: 
  44: /* Name of C-Kermit program initialization file. */
  45: 
  46: #ifdef vms
  47: #define KERMRC "CKERMIT.INI"
  48: #else
  49: #ifdef OS2
  50: #define KERMRC "ckermit.ini"
  51: #else
  52: #ifdef UNIX
  53: #define KERMRC ".kermrc"
  54: #else
  55: #ifdef OSK
  56: #define KERMRC ".kermrc"
  57: #else
  58: #define KERMRC "CKERMIT.INI"
  59: #endif /* OSK */
  60: #endif /* UNIX */
  61: #endif /* OS2 */
  62: #endif /* vms */
  63: 
  64: /* Includes */
  65: 
  66: #ifdef MINIX
  67: /* why? */
  68: #include <sys/types.h>
  69: #endif /* MINIX */
  70: 
  71: /* Symbols for command source */
  72: 
  73: #define CMD_KB 0            /* KeyBoard or standard input */
  74: #define CMD_TF 1            /* TAKE command File */
  75: #define CMD_MD 2            /* Macro Definition */
  76: 
  77: /* Top Level Commands */
  78: /* Values associated with top-level commands must be 0 or greater. */
  79: 
  80: #define XXBYE   0   /* BYE */
  81: #define XXCLE   1   /* CLEAR */
  82: #define XXCLO   2   /* CLOSE */
  83: #define XXCON   3   /* CONNECT */
  84: #define XXCPY   4   /* COPY */
  85: #define XXCWD   5   /* CWD (Change Working Directory) */
  86: #define XXDEF   6   /* DEFINE (a command macro) */
  87: #define XXDEL   7   /* (Local) DELETE */
  88: #define XXDIR   8   /* (Local) DIRECTORY */
  89: #define XXDIS   9   /* DISABLE <-- changed from DISCONNECT! */
  90: #define XXECH  10   /* ECHO */
  91: #define XXEXI  11   /* EXIT */
  92: #define XXFIN  12   /* FINISH */
  93: #define XXGET  13   /* GET */
  94: #define XXHLP  14   /* HELP */
  95: #define XXINP  15   /* INPUT */
  96: #define XXLOC  16   /* LOCAL */
  97: #define XXLOG  17   /* LOG */
  98: #define XXMAI  18   /* MAIL */
  99: #define XXMOU  19   /* (Local) MOUNT */
 100: #define XXMSG  20   /* (Local) MESSAGE */
 101: #define XXOUT  21   /* OUTPUT */
 102: #define XXPAU  22   /* PAUSE */
 103: #define XXPRI  23   /* (Local) PRINT */
 104: #define XXQUI  24   /* QUIT */
 105: #define XXREC  25   /* RECEIVE */
 106: #define XXREM  26   /* REMOTE */
 107: #define XXREN  27   /* (Local) RENAME */
 108: #define XXSEN  28   /* SEND */
 109: #define XXSER  29       /* SERVER */
 110: #define XXSET  30   /* SET */
 111: #define XXSHE  31   /* Command for SHELL */
 112: #define XXSHO  32   /* SHOW */
 113: #define XXSPA  33   /* (Local) SPACE */
 114: #define XXSTA  34   /* STATISTICS */
 115: #define XXSUB  35   /* (Local) SUBMIT */
 116: #define XXTAK  36   /* TAKE */
 117: #define XXTRA  37   /* TRANSMIT */
 118: #define XXTYP  38   /* (Local) TYPE */
 119: #define XXWHO  39   /* (Local) WHO */
 120: #define XXDIAL 40   /* (Local) DIAL */
 121: #define XXLOGI 41   /* (Local) SCRIPT */
 122: #define XXCOM  42   /* Comment */
 123: #define XXHAN  43       /* HANGUP */
 124: #define XXXLA  44   /* TRANSLATE */
 125: #define XXIF   45   /* IF */
 126: #define XXLBL  46       /* label */
 127: #define XXGOTO 47   /* GOTO */
 128: #define XXEND  48       /* END */
 129: #define XXSTO  49       /* STOP */
 130: #define XXDO   50       /* DO */
 131: #define XXPWD  51       /* PWD */
 132: #define XXTES  52       /* TEST */
 133: #define XXASK  53       /* ASK */
 134: #define XXASKQ 54       /* ASKQ */
 135: #define XXASS  55       /* ASSIGN */
 136: #define XXREI  56       /* REINPUT */
 137: #define XXINC  57       /* INCREMENT */
 138: #define XXDEC  59       /* DECREMENT */
 139: #define XXELS  60       /* ELSE */
 140: #define XXEXE  61   /* EXECUTE */
 141: #define XXWAI  62   /* WAIT */
 142: #define XXVER  63       /* VERSION */
 143: #define XXENA  64       /* ENABLE */
 144: #define XXWRI  65       /* WRITE */
 145: #define XXCLS  66       /* CLS (clear screen) */
 146: #define XXRET  67   /* RETURN */
 147: #define XXOPE  68       /* OPEN */
 148: #define XXREA  69   /* READ */
 149: #define XXON   70       /* ON */
 150: #define XXDCL  71       /* DECLARE */
 151: #define XXBEG  72       /* BEGIN (not used) */
 152: #define XXFOR  72       /* FOR */
 153: #define XXWHI  73       /* WHILE */
 154: #define XXIFX  74       /* Extended IF */
 155: #define XXCMS  75       /* SEND from command output (not yet) */
 156: #define XXCMR  76       /* RECEIVE to a command's input (not yet) */
 157: #define XXCMG  77       /* GET to a command's input (not yet) */
 158: #define XXSUS  78       /* SUSPEND */
 159: #define XXERR  79       /* ERROR */
 160: #define XXMSE  80       /* MSEND */
 161: #define XXBUG  81       /* BUG */
 162: #define XXPAD  82       /* PAD (as in X.25 PAD) SUNX25 */
 163: #define XXRED  83       /* REDIAL */
 164: #define XXGTA  84   /* _getargs (invisible internal) */
 165: #define XXPTA  85   /* _putargs (invisible internal) */
 166: #define XXGOK  86       /* GETOK - Ask for YES/NO */
 167: #define XXTEL  87   /* TELNET */
 168: #define XXASX  88   /* _ASSIGN (evaluates var name) */
 169: #define XXDFX  89   /* _DEFINE (evaluates var name) */
 170: #define XXPNG  90   /* PING (for TCP/IP) */
 171: #define XXINT  91       /* INTRODUCTION */
 172: #define XXCHK  92   /* CHECK (a feature) */
 173: #define XXMSL  93       /* MSLEEP, MPAUSE (millisecond sleep) */
 174: 
 175: /* IF conditions */
 176: 
 177: #define  XXIFCO 0       /* IF COUNT */
 178: #define  XXIFER 1       /* IF ERRORLEVEL */
 179: #define  XXIFEX 2       /* IF EXIST */
 180: #define  XXIFFA 3       /* IF FAILURE */
 181: #define  XXIFSU 4       /* IF SUCCESS */
 182: #define  XXIFNO 5       /* IF NOT */
 183: #define  XXIFDE 6       /* IF DEFINED */
 184: #define  XXIFEQ 7   /* IF EQUAL (strings) */
 185: #define  XXIFAE 8       /* IF = (numbers) */
 186: #define  XXIFLT 9       /* IF < (numbers) */
 187: #define  XXIFGT 10      /* IF > (numbers) */
 188: #define  XXIFLL 11      /* IF Lexically Less Than (strings) */
 189: #define  XXIFLG 12      /* IF Lexically Greater Than (strings) */
 190: #define  XXIFEO 13      /* IF EOF (READ file) */
 191: #define  XXIFBG 14      /* IF BACKGROUND */
 192: #define  XXIFNU 15  /* IF NUMERIC */
 193: #define  XXIFFG 16      /* IF FOREGROUND */
 194: 
 195: /* SET parameters */
 196: 
 197: #define XYBREA  0   /* BREAK simulation */
 198: #define XYCHKT  1   /* Block check type */
 199: #define XYDEBU  2   /* Debugging */
 200: #define XYDELA  3   /* Delay */
 201: #define XYDUPL  4   /* Duplex */
 202: #define XYEOL   5   /* End-Of-Line (packet terminator) */
 203: #define XYESC   6   /* Escape character */
 204: #define XYFILE  7   /* File Parameters */
 205:             /* (this space available) */
 206: #define XYFLOW  9   /* Flow Control */
 207: #define XYHAND 10   /* Handshake */
 208: #define XYIFD  11   /* Incomplete File Disposition */
 209: #define XYIMAG 12   /* "Image Mode" */
 210: #define XYINPU 13   /* INPUT command parameters */
 211: #define XYLEN  14   /* Maximum packet length to send */
 212: #define XYLINE 15   /* Communication line to use */
 213: #define XYLOG  16   /* Log file */
 214: #define XYMARK 17   /* Start of Packet mark */
 215: #define XYNPAD 18   /* Amount of padding */
 216: #define XYPADC 19   /* Pad character */
 217: #define XYPARI 20   /* Parity */
 218: #define XYPAUS 21   /* Interpacket pause */
 219: #define XYPROM 22   /* Program prompt string */
 220: #define XYQBIN 23   /* 8th-bit prefix */
 221: #define XYQCTL 24   /* Control character prefix */
 222: #define XYREPT 25   /* Repeat count prefix */
 223: #define XYRETR 26   /* Retry limit */
 224: #define XYSPEE 27   /* Line speed (baud rate) */
 225: #define XYTACH 28   /* Character to be doubled */
 226: #define XYTIMO 29   /* Timeout interval */
 227: #define XYMODM 30   /* Modem type */
 228: #define XYSEND 31   /* SEND parameters, used with some of the above */
 229: #define XYRECV 32       /* RECEIVE parameters, ditto */
 230: #define XYTERM 33   /* Terminal parameters */
 231: #define   XYTBYT 0      /*  Terminal Bytesize (7 or 8) */
 232: #define   XYTTYP 1      /*  Terminal Type */
 233: #define     TT_NONE  0  /*    NONE */
 234: #define     TT_VT52  1  /*    DEC VT-52  */
 235: #define     TT_VT100 2  /*    DEC VT-100 */
 236: #define     TT_VT102 3  /*    DEC VT-102 */
 237: #define     TT_VT220 4  /*    DEC VT-220 */
 238: #define     TT_VT320 5  /*    DEC VT-320 */
 239: #define     TT_TEK40 6  /*    Tektronix 401x */
 240: #define   XYTCS  2      /*  Terminal Character Set */
 241: #define   XYTSO  3  /*  Terminal Shift-In/Shift-Out */
 242: #define   XYTNL  4      /*  Terminal newline mode */
 243: #define   XYTCOL 5      /*  Terminal colors */
 244: #define   XYTEC  6  /*  Terminal echo = duplex = local-echo */
 245: #define   XYTCUR 7  /*  Terminal cursor */
 246: #define   XYTARR 8  /*  Terminal arrow-key mode */
 247: #define   XYTKPD 9      /*  Terminal keypad mode */
 248: #define   XYTWRP 10     /*  Terminal wrap */
 249: #define   XYTCRD 11 /*  Terminal CR-display */
 250: #define XYATTR 34       /* Attribute packets */
 251: #define XYSERV 35   /* Server parameters */
 252: #define   XYSERT 0      /*  Server timeout   */
 253: #define   XYSERD 1  /*  Server display   */
 254: #define XYWIND 36       /* Window size */
 255: #define XYXFER 37       /* Transfer */
 256: #define XYLANG 38       /* Language */
 257: #define XYCOUN 39       /* Count */
 258: #define XYTAKE 40       /* Take */
 259: #define XYUNCS 41       /* Unknown-character-set */
 260: #define XYKEY  42       /* Key */
 261: #define XYMACR 43       /* Macro */
 262: #define XYHOST 44       /* Hostname on network */
 263: #define XYNET  45       /* Type of Network */
 264: #define XYCARR 46   /* Carrier */
 265: #define XYXMIT 47       /* Transmit */
 266: #define XYDIAL 48       /* Dial options */
 267: #define  XYDHUP  0  /*   Dial Hangup */
 268: #define  XYDINI  1      /*   Dial Initialization string */
 269: #define  XYDKSP  2      /*   Dial Kermit-Spoof */
 270: #define  XYDTMO  3      /*   Dial Timeout */
 271: #define  XYDDPY  4      /*   Dial Display */
 272: #define  XYDSPD  5      /*   Dial Speed matching */
 273: #define  XYDMNP  6  /*   Dial MNP negotiation enabled */
 274: #define  XYDV32  7  /*   Dial V.32 mode enabled */
 275: #define  XYDV42  8  /*   Dial V.42 mode enabled */
 276: #define  XYDV42B 9  /*   Dial V.42bis mode enabled */
 277: #define  XYDDIR 10  /*   Dial directory */
 278: #define  XYDDIA 11  /*   Dial dial-command */
 279: #define  XYDMHU 12  /*   Dial modem-hangup */
 280: #define  XYDNPR 13      /*   Dial number-prefix */
 281: #define XYSESS 49       /* SET SESSION options */
 282: #define XYBUF  50       /* Buffer length */
 283: #define XYBACK 51   /* Background */
 284: #define XYDFLT 52       /* Default */
 285: #define XYDOUB 53   /* Double */
 286: #define XYCMD  54       /* Command */
 287: #define XYCASE 55       /* Case */
 288: #define XYCOMP 56       /* Compression */
 289: #define XYX25  57       /* X.25 parameter (SUNX25) */
 290: #define XYPAD  58       /* X.3 PAD parameter (SUNX25) */
 291: #define XYWILD 59       /* Wildcard expansion method */
 292: #define XYSUSP 60       /* Suspend */
 293: #define XYMAIL 61   /* Mail-Command */
 294: #define XYPRIN 62   /* Print-Command */
 295: #define XYQUIE 63   /* Quiet */
 296: #define XYLCLE 64   /* Local-echo */
 297: #define XYSCRI 65   /* SCRIPT command paramaters */
 298: #define XYMSGS 66       /* MESSAGEs ON/OFF */
 299: #define XYTEL  67       /* TELNET parameters */
 300: #define  CK_TN_EC 0 /*  TELNET ECHO */
 301: #define  CK_TN_TT 1 /*  TELNET TERMINAL-TYPE */
 302: #define  CK_TN_NL 2     /*  TELNET NEWLINE-MODE */
 303: 
 304: /* #ifdef SUNX25 */
 305: /* PAD command parameters */
 306: 
 307: #define XYPADL 0        /* clear virtual call */
 308: #define XYPADS 1        /* status of virtual call */
 309: #define XYPADR 2        /* reset of virtual call */
 310: #define XYPADI 3        /* send an interrupt packet */
 311: 
 312: /* Used with XYX25... */
 313: #define XYUDAT 0       /* X.25 call user data */
 314: #define XYCLOS 1       /* X.25 closed user group call */
 315: #define XYREVC 2       /* X.25 reverse charge call */
 316: /* #endif */ /* SUNX25 */
 317: 
 318: /* SHOW command symbols */
 319: 
 320: #define SHPAR 0             /* Parameters */
 321: #define SHVER 1             /* Versions */
 322: #define SHCOM 2             /* Communications */
 323: #define SHPRO 3             /* Protocol */
 324: #define SHFIL 4             /* File */
 325: #define SHLNG 5             /* Language */
 326: #define SHCOU 6             /* Count */
 327: #define SHMAC 7             /* Macros */
 328: #define SHKEY 8             /* Key */
 329: #define SHSCR 9             /* Scripts */
 330: #define SHSPD 10            /* Speed */
 331: #define SHSTA 11            /* Status */
 332: #define SHSER 12            /* Server */
 333: #define SHXMI 13            /* Transmit */
 334: #define SHATT 14            /* Attributes */
 335: #define SHMOD 15            /* Modem */
 336: #define SHDFLT 16           /* Default (as in VMS) */
 337: #define SHVAR 17            /* Show global variables */
 338: #define SHARG 18            /* Show macro arguments */
 339: #define SHARR 19            /* Show arrays */
 340: #define SHBUI 20            /* Show builtin variables */
 341: #define SHFUN 21            /* Show functions */
 342: #define SHPAD 22            /* Show (X.25) PAD */
 343: #define SHTER 23            /* Show terminal settings */
 344: #define SHESC 24            /* Show escape character */
 345: #define SHDIA 25            /* Show DIAL parameters */
 346: #define SHNET 26            /* Show network parameters */
 347: #define SHLBL 27            /* Show VMS labeled file parameters */
 348: #define SHSTK 28            /* Show stack, MAC debugging */
 349: #define SHCSE 29            /* Show character sets */
 350: #define SHFEA 30            /* Show features */
 351: 
 352: /* REMOTE command symbols */
 353: 
 354: #define XZCPY  0    /* Copy */
 355: #define XZCWD  1    /* Change Working Directory */
 356: #define XZDEL  2    /* Delete */
 357: #define XZDIR  3    /* Directory */
 358: #define XZHLP  4    /* Help */
 359: #define XZHOS  5    /* Host */
 360: #define XZKER  6    /* Kermit */
 361: #define XZLGI  7    /* Login */
 362: #define XZLGO  8    /* Logout */
 363: #define XZMAI  9    /* Mail <-- wrong, this should be top-level */
 364: #define XZMOU 10    /* Mount */
 365: #define XZMSG 11    /* Message */
 366: #define XZPRI 12    /* Print */
 367: #define XZREN 13    /* Rename */
 368: #define XZSET 14    /* Set */
 369: #define XZSPA 15    /* Space */
 370: #define XZSUB 16    /* Submit */
 371: #define XZTYP 17    /* Type */
 372: #define XZWHO 18    /* Who */
 373: 
 374: /* SET INPUT command parameters */
 375: 
 376: #define IN_DEF  0           /* Default timeout */
 377: #define IN_TIM  1           /* Timeout action */
 378: #define IN_CAS  2           /* Case (matching) */
 379: #define IN_ECH  3           /* Echo */
 380: #define IN_SIL  4           /* Silence */
 381: 
 382: /* ENABLE/DISABLE command parameters */
 383: 
 384: #define EN_ALL  0           /* All */
 385: #define EN_CWD  1           /* CD/CWD */
 386: #define EN_DIR  2           /* Directory */
 387: #define EN_FIN  3           /* FINISH */
 388: #define EN_GET  4           /* Get */
 389: #define EN_HOS  5           /* Host command */
 390: #define EN_KER  6           /* Kermit command */
 391: #define EN_LOG  7           /* Login */
 392: #define EN_SEN  8           /* Send */
 393: #define EN_SET  9           /* Set */
 394: #define EN_SPA 10           /* Space */
 395: #define EN_TYP 11           /* Type */
 396: #define EN_WHO 12           /* Who/Finger */
 397: #define EN_DEL 13           /* Delete */
 398: #define EN_BYE 14           /* BYE (as opposed to FINISH) */
 399: 
 400: /* Symbols for logs */
 401: 
 402: #define LOGD 0          /* Debugging */
 403: #define LOGP 1          /* Packets */
 404: #define LOGS 2          /* Session */
 405: #define LOGT 3          /* Transaction */
 406: #define LOGX 4          /* Screen */
 407: #define LOGR 5      /* The "OPEN read file */
 408: #define LOGW 6          /* The "OPEN" write/append file */
 409: #define LOGE 7      /* Error (e.g. stderr) */
 410: 
 411: /* Symbols for builtin variables */
 412: 
 413: #define VN_ARGC 0           /* ARGC */
 414: #define VN_COUN 1           /* COUNT */
 415: #define VN_DATE 2           /* DATE */
 416: #define VN_DIRE 3           /* DIRECTORY */
 417: #define VN_ERRO 4           /* ERRORLEVEL */
 418: #define VN_TIME 5           /* TIME */
 419: #define VN_VERS 6           /* VERSION */
 420: #define VN_IBUF 7           /* INPUT buffer */
 421: #define VN_SUCC 8           /* SUCCESS flag */
 422: #define VN_LINE 9           /* LINE */
 423: #define VN_ARGS 10          /* Program command-line arg count */
 424: #define VN_SYST 11          /* System type */
 425: #define VN_SYSV 12          /* System version */
 426: #define VN_RET  13          /* RETURN value */
 427: #define VN_FILE 14          /* Most recent filespec */
 428: #define VN_NDAT 15          /* Numeric date yyyy/mm/dd */
 429: #define VN_HOME 16          /* Home directory */
 430: #define VN_SPEE 17          /* Transmission speed */
 431: #define VN_HOST 18          /* Host name */
 432: #define VN_TTYF 19          /* TTY file descriptor (UNIX only) */
 433: #define VN_PROG 20          /* Program name */
 434: #define VN_NTIM 21          /* NTIME */
 435: #define VN_FFC  22          /* Characters in last file xferred */
 436: #define VN_TFC  23          /* Chars in last file group xferred */
 437: #define VN_CPU  24          /* CPU type */
 438: #define VN_CMDL 25          /* Command level */
 439: #define VN_DAY  26                      /* Day of week, string */
 440: #define VN_NDAY 27                      /* Day of week, numeric */
 441: #define VN_LCL  28          /* Local (vs) remote mode */
 442: #define VN_CMDS 29          /* Command source */
 443: #define VN_CMDF 30          /* Command file name */
 444: #define VN_MAC  31          /* Macro name */
 445: #define VN_EXIT 32          /* Exit status */
 446: #define VN_ICHR 33          /* INPUT character */
 447: #define VN_ICNT 34          /* INPUT count */
 448: 
 449: /* Symbols for builtin functions */
 450: 
 451: #define FNARGS 6            /* Maximum number of function args */
 452: 
 453: #define FN_IND 0            /* Index (of string 1 in string 2) */
 454: #define FN_LEN 1            /* Length (of string) */
 455: #define FN_LIT 2            /* Literal (don't expand the string) */
 456: #define FN_LOW 3            /* Lower (convert to lowercase) */
 457: #define FN_MAX 4            /* Max (maximum) */
 458: #define FN_MIN 5            /* Min (minimum) */
 459: #define FN_MOD 6            /* Mod (modulus) */
 460: #define FN_EVA 7            /* Eval (evaluate arith expression) */
 461: #define FN_SUB 8            /* Substr (substring) */
 462: #define FN_UPP 9            /* Upper (convert to uppercase) */
 463: #define FN_REV 10           /* Reverse (a string) */
 464: #define FN_REP 11           /* Repeat (a string) */
 465: #define FN_EXE 12           /* Execute (a macro) */
 466: #define FN_VAL 13           /* Return value (of a macro) */
 467: #define FN_LPA 14           /* LPAD (left pad) */
 468: #define FN_RPA 15           /* RPAD (right pad) */
 469: #define FN_DEF 16           /* Definition of a macro, unexpanded */
 470: #define FN_CON 17           /* Contents of a variable, ditto */
 471: #define FN_FIL 18                       /* File list */
 472: #define FN_FC  19           /* File count */
 473: #define FN_CHR 20           /* Character (like BASIC CHR$()) */
 474: #define FN_RIG 21           /* Right (like BASIC RIGHT$()) */
 475: #define FN_COD 22           /* Code value of character */
 476: 
 477: /* ANSI-style prototypes for user interface functions */
 478: 
 479: _PROTOTYP( int parser, ( int ) );
 480: _PROTOTYP( int xxstring, (char *, char **, int *) );
 481: _PROTOTYP( int yystring, (char *, char **) );
 482: _PROTOTYP( int xxstrcmp, (char *, char *, int) );
 483: _PROTOTYP( int xxout, (char) );
 484: _PROTOTYP( int getncm, (char *, int) );
 485: _PROTOTYP( int getnct, (char *, int) );
 486: _PROTOTYP( VOID bgchk, (void) );
 487: _PROTOTYP( char * fneval, (char *, char * [], int ) );
 488: _PROTOTYP( char * nvlook, (char *) );
 489: _PROTOTYP( char * arrayval, (int, int) );
 490: _PROTOTYP( int arraynam, (char *, int *, int *) );
 491: _PROTOTYP( char * bldlen, (char *, char *) );
 492: _PROTOTYP( int chkarray, (int, int) );
 493: _PROTOTYP( int dclarray, (char, int) );
 494: _PROTOTYP( int parsevar, (char *, int *, int *) );
 495: _PROTOTYP( int macini, (void) );
 496: _PROTOTYP( VOID initmac, (void) );
 497: _PROTOTYP( int delmac, (char *) );
 498: _PROTOTYP( int addmac, (char *, char *) );
 499: _PROTOTYP( int addmmac, (char *, char *[]) );
 500: _PROTOTYP( int dobug, (void) );
 501: _PROTOTYP( int docd, (void) );
 502: _PROTOTYP( int doclslog, (int) );
 503: _PROTOTYP( int docmd, (int) );
 504: _PROTOTYP( int doconect, (void) );
 505: _PROTOTYP( int dodo, (int, char *) );
 506: _PROTOTYP( int doenable, (int, int) );
 507: _PROTOTYP( int doget, (void) );
 508: _PROTOTYP( int dogoto, (char *) );
 509: _PROTOTYP( int dohlp, (int) );
 510: _PROTOTYP( int dohrmt, (int) );
 511: _PROTOTYP( int doif, (int) );
 512: _PROTOTYP( int doinput, (int, char *) );
 513: _PROTOTYP( int doreinp, (int, char *) );
 514: _PROTOTYP( int dolog, (int) );
 515: _PROTOTYP( int dologin, (char *) );
 516: _PROTOTYP( int doopen, (void) );
 517: _PROTOTYP( int dooutput, (char *) );
 518: _PROTOTYP( int doprm, (int, int) );
 519: _PROTOTYP( int doreturn, (char *) );
 520: _PROTOTYP( int dormt, (int) );
 521: _PROTOTYP( int doshow, (int) );
 522: _PROTOTYP( int doshodial, (void) );
 523: _PROTOTYP( int dostat, (void) );
 524: _PROTOTYP( int dostop, (void) );
 525: _PROTOTYP( int dotype, (char *) );
 526: _PROTOTYP( int transmit, (char *, char) );
 527: _PROTOTYP( int xlate, (char *, char *, int, int) );
 528: _PROTOTYP( int litcmd, (char **, char **) );
 529: _PROTOTYP( int incvar, (char *, int, int, int *) );
 530: _PROTOTYP( int ckdial, (char *) );
 531: _PROTOTYP( char * getdws, (int) );
 532: _PROTOTYP( char * getdcs, (int) );
 533: _PROTOTYP( int hmsg, (char *) );
 534: _PROTOTYP( int hmsga, (char * []) );
 535: _PROTOTYP( int mlook, (struct mtab [], char *, int) );
 536: _PROTOTYP( int mxlook, (struct mtab [], char *, int) );
 537: _PROTOTYP( VOID prtopt, (char *) );
 538: _PROTOTYP( CHAR rfilop, (char *, char) );
 539: _PROTOTYP( int setcc, (int *, int, int) );
 540: _PROTOTYP( int setnum, (int *, int, int, int) );
 541: _PROTOTYP( int seton, (int *) );
 542: _PROTOTYP( VOID shmdmlin, (void) );
 543: _PROTOTYP( int shoatt, (void) );
 544: _PROTOTYP( VOID shocharset, (void) );
 545: _PROTOTYP( int shomac, (char *, char *) );
 546: _PROTOTYP( VOID shopar, (void) );
 547: _PROTOTYP( VOID shoparc, (void) );
 548: _PROTOTYP( VOID shoparc, (void) );
 549: _PROTOTYP( VOID shoparf, (void) );
 550: _PROTOTYP( VOID shoparp, (void) );
 551: #ifndef NOCSETS
 552: _PROTOTYP( VOID shoparl, (void) );
 553: #endif /* NOCSETS */
 554: _PROTOTYP( VOID shodial, (void) );
 555: _PROTOTYP( VOID shomdm, (void) );
 556: _PROTOTYP( VOID shonet, (void) );
 557: _PROTOTYP( VOID shover, (void) );
 558: _PROTOTYP( int pktopn, (char *,int) );
 559: _PROTOTYP( int traopn, (char *,int) );
 560: _PROTOTYP( int sesopn, (char *,int) );
 561: _PROTOTYP( int debopn, (char *,int) );
 562: _PROTOTYP( char * parnam, (char) );
 563: _PROTOTYP( int popclvl, (void) );
 564: _PROTOTYP( int varval, (char *, int *) );
 565: _PROTOTYP( char * evala, (char *) );
 566: _PROTOTYP( int setat, (int) );
 567: _PROTOTYP( int setinp, (void) );
 568: _PROTOTYP( int setlin, (int, int) );
 569: _PROTOTYP( int setdial, (void) );
 570: _PROTOTYP( int setfil, (int) );
 571: _PROTOTYP( int settrm, (void) );
 572: _PROTOTYP( int setsr, (int, int) );
 573: _PROTOTYP( int setxmit, (void) );
 574: _PROTOTYP( int set_key, (void) );
 575: _PROTOTYP( int dochk, (void) );
 576: _PROTOTYP( char *ludial, (char *, FILE *) );
 577: _PROTOTYP( VOID xwords, (char *, int, char *[]) );
 578: _PROTOTYP( VOID shotcs, (int, int) );
 579: _PROTOTYP( char *hhmmss, (long x) );
 580: #endif /* CKUUSR_H */
 581: 
 582: /* End of ckuusr.h */

Defined struct's

Defined macros

CKUUSR_H defined in line 14; used 1 times
  • in line 13
CK_TN_EC defined in line 300; used 1 times
CK_TN_NL defined in line 302; used 1 times
CK_TN_TT defined in line 301; used 1 times
CMDSTKL defined in line 29; used 10 times
EN_ALL defined in line 384; used 1 times
EN_BYE defined in line 398; used 1 times
EN_CWD defined in line 385; used 2 times
EN_DEL defined in line 397; used 1 times
EN_DIR defined in line 386; used 1 times
EN_FIN defined in line 387; used 1 times
EN_GET defined in line 388; used 1 times
EN_HOS defined in line 389; used 1 times
EN_KER defined in line 390; never used
EN_LOG defined in line 391; never used
EN_SEN defined in line 392; used 1 times
EN_SET defined in line 393; used 1 times
EN_SPA defined in line 394; used 1 times
EN_TYP defined in line 395; used 1 times
EN_WHO defined in line 396; used 1 times
FNARGS defined in line 451; used 3 times
FN_CHR defined in line 473; used 1 times
FN_COD defined in line 475; used 1 times
FN_CON defined in line 470; used 2 times
FN_DEF defined in line 469; used 1 times
FN_EVA defined in line 460; used 1 times
FN_EXE defined in line 465; used 1 times
FN_FC defined in line 472; used 1 times
FN_FIL defined in line 471; used 1 times
FN_IND defined in line 453; used 1 times
FN_LEN defined in line 454; used 1 times
FN_LIT defined in line 455; used 2 times
FN_LOW defined in line 456; used 1 times
FN_LPA defined in line 467; used 1 times
FN_MAX defined in line 457; used 1 times
FN_MIN defined in line 458; used 1 times
FN_MOD defined in line 459; used 1 times
FN_REP defined in line 464; used 2 times
FN_REV defined in line 463; used 1 times
FN_RIG defined in line 474; used 1 times
FN_RPA defined in line 468; used 2 times
FN_SUB defined in line 461; used 3 times
FN_UPP defined in line 462; used 1 times
FN_VAL defined in line 466; never used
FORDEPTH defined in line 22; never used
IN_CAS defined in line 378; used 1 times
IN_DEF defined in line 376; used 1 times
IN_ECH defined in line 379; used 1 times
IN_SIL defined in line 380; used 1 times
IN_TIM defined in line 377; used 1 times
KERMRC defined in line 58; used 2 times
LOGE defined in line 409; used 3 times
LOGP defined in line 403; used 3 times
LOGS defined in line 404; used 3 times
LOGT defined in line 405; used 3 times
LOGW defined in line 408; used 4 times
LOGX defined in line 406; used 2 times
MAXTAKE defined in line 24; used 5 times
MSENDMAX defined in line 31; used 1 times
SHARG defined in line 338; used 1 times
SHARR defined in line 339; used 1 times
SHATT defined in line 334; used 1 times
SHBUI defined in line 340; used 1 times
SHCOM defined in line 322; used 1 times
SHCOU defined in line 326; used 1 times
SHCSE defined in line 349; used 1 times
SHDFLT defined in line 336; used 2 times
SHDIA defined in line 345; used 1 times
SHESC defined in line 344; used 1 times
SHFEA defined in line 350; used 1 times
SHFIL defined in line 324; used 1 times
SHFUN defined in line 341; used 1 times
SHLBL defined in line 347; used 1 times
SHLNG defined in line 325; used 1 times
SHMOD defined in line 335; used 1 times
SHNET defined in line 346; used 1 times
SHPAD defined in line 342; used 1 times
SHPAR defined in line 320; used 1 times
SHPRO defined in line 323; used 1 times
SHSCR defined in line 329; used 1 times
SHSER defined in line 332; used 1 times
SHSPD defined in line 330; never used
SHSTA defined in line 331; used 1 times
SHSTK defined in line 348; used 1 times
SHTER defined in line 343; used 1 times
SHVAR defined in line 337; used 1 times
SHVER defined in line 321; used 1 times
SHXMI defined in line 333; used 2 times
TT_NONE defined in line 233; used 1 times
TT_TEK40 defined in line 239; used 1 times
TT_VT100 defined in line 235; never used
TT_VT220 defined in line 237; never used
TT_VT320 defined in line 238; never used
TT_VT52 defined in line 234; used 1 times
VN_ARGC defined in line 413; used 1 times
VN_ARGS defined in line 423; used 1 times
VN_CMDF defined in line 443; used 1 times
VN_CMDL defined in line 438; used 1 times
VN_CMDS defined in line 442; used 1 times
VN_COUN defined in line 414; used 1 times
VN_CPU defined in line 437; used 1 times
VN_DATE defined in line 415; used 1 times
VN_DAY defined in line 439; used 2 times
VN_DIRE defined in line 416; used 1 times
VN_ERRO defined in line 417; never used
VN_EXIT defined in line 445; used 1 times
VN_FFC defined in line 435; used 1 times
VN_FILE defined in line 427; used 1 times
VN_HOME defined in line 429; used 1 times
VN_HOST defined in line 431; used 1 times
VN_IBUF defined in line 420; used 1 times
VN_ICHR defined in line 446; used 1 times
VN_ICNT defined in line 447; used 1 times
VN_LCL defined in line 441; used 1 times
VN_LINE defined in line 422; used 1 times
VN_MAC defined in line 444; used 1 times
VN_NDAT defined in line 428; used 1 times
VN_NDAY defined in line 440; used 1 times
VN_NTIM defined in line 434; used 1 times
VN_PROG defined in line 433; used 1 times
VN_RET defined in line 426; used 1 times
VN_SPEE defined in line 430; used 1 times
VN_SUCC defined in line 421; used 1 times
VN_SYST defined in line 424; used 1 times
VN_SYSV defined in line 425; used 1 times
VN_TFC defined in line 436; used 1 times
VN_TIME defined in line 418; used 1 times
VN_TTYF defined in line 432; used 2 times
VN_VERS defined in line 419; used 1 times
XXASK defined in line 133; used 2 times
XXASS defined in line 135; used 5 times
XXBEG defined in line 151; never used
XXBUG defined in line 161; used 2 times
XXBYE defined in line 80; used 2 times
XXCHK defined in line 172; used 2 times
XXCLE defined in line 81; used 2 times
XXCLO defined in line 82; used 2 times
XXCLS defined in line 145; never used
XXCMG defined in line 157; never used
XXCMR defined in line 156; never used
XXCMS defined in line 155; never used
XXCOM defined in line 122; used 11 times
XXCON defined in line 83; used 3 times
XXCPY defined in line 84; never used
XXCWD defined in line 85; used 3 times
XXDCL defined in line 150; used 3 times
XXDEC defined in line 138; used 2 times
XXDEF defined in line 86; used 2 times
XXDEL defined in line 87; used 3 times
XXDIR defined in line 88; used 4 times
XXDIS defined in line 89; used 2 times
XXDO defined in line 130; used 3 times
XXECH defined in line 90; used 3 times
XXEND defined in line 128; used 3 times
XXERR defined in line 159; used 2 times
XXEXE defined in line 140; never used
XXEXI defined in line 91; used 3 times
XXFIN defined in line 92; used 2 times
XXFOR defined in line 152; used 2 times
XXGET defined in line 93; used 5 times
XXGOTO defined in line 127; used 2 times
XXHAN defined in line 123; used 2 times
XXHLP defined in line 94; used 4 times
XXIF defined in line 125; used 2 times
XXIFAE defined in line 185; used 2 times
XXIFBG defined in line 191; used 1 times
XXIFCO defined in line 177; used 1 times
XXIFDE defined in line 183; used 1 times
XXIFEO defined in line 190; used 1 times
XXIFEQ defined in line 184; used 1 times
XXIFER defined in line 178; never used
XXIFEX defined in line 179; used 1 times
XXIFFA defined in line 180; used 2 times
XXIFFG defined in line 193; used 2 times
XXIFGT defined in line 187; used 2 times
XXIFLG defined in line 189; used 1 times
XXIFLL defined in line 188; used 1 times
XXIFLT defined in line 186; used 2 times
XXIFNO defined in line 182; used 1 times
XXIFNU defined in line 192; used 1 times
XXIFSU defined in line 181; used 1 times
XXIFX defined in line 154; used 2 times
XXINP defined in line 95; used 6 times
XXINT defined in line 171; used 2 times
XXLOC defined in line 96; never used
XXLOG defined in line 97; used 3 times
XXLOGI defined in line 121; used 2 times
XXMAI defined in line 98; used 2 times
XXMOU defined in line 99; never used
XXMSE defined in line 160; used 4 times
XXMSG defined in line 100; never used
XXON defined in line 149; never used
XXOPE defined in line 147; used 2 times
XXOUT defined in line 101; used 3 times
XXPAD defined in line 162; used 2 times
XXPNG defined in line 170; used 2 times
XXPRI defined in line 103; used 2 times
XXPWD defined in line 131; used 2 times
XXQUI defined in line 104; used 2 times
XXREC defined in line 105; used 3 times
XXREI defined in line 136; used 3 times
XXREM defined in line 106; used 2 times
XXREN defined in line 107; used 3 times
XXRET defined in line 146; used 2 times
XXSEN defined in line 108; used 5 times
XXSER defined in line 109; used 2 times
XXSET defined in line 110; used 2 times
XXSHE defined in line 111; used 10 times
XXSHO defined in line 112; used 2 times
XXSPA defined in line 113; used 4 times
XXSTA defined in line 114; used 2 times
XXSTO defined in line 129; used 3 times
XXSUB defined in line 115; never used
XXSUS defined in line 158; used 3 times
XXTAK defined in line 116; used 2 times
XXTEL defined in line 167; used 2 times
XXTES defined in line 132; used 2 times
XXTRA defined in line 117; used 3 times
XXTYP defined in line 118; used 4 times
XXVER defined in line 142; used 2 times
XXWHI defined in line 153; used 2 times
XXWHO defined in line 119; used 2 times
XXWRI defined in line 144; used 2 times
XXXLA defined in line 124; used 3 times
XYBACK defined in line 283; used 3 times
XYBREA defined in line 197; never used
XYBUF defined in line 282; used 1 times
XYCARR defined in line 264; used 1 times
XYCASE defined in line 287; used 1 times
XYCLOS defined in line 314; used 1 times
XYCMD defined in line 286; used 1 times
XYCOMP defined in line 288; never used
XYCOUN defined in line 257; used 1 times
XYDDIA defined in line 278; used 1 times
XYDDIR defined in line 277; used 1 times
XYDDPY defined in line 271; used 1 times
XYDEBU defined in line 199; used 1 times
XYDELA defined in line 200; used 3 times
XYDFLT defined in line 284; used 2 times
XYDHUP defined in line 267; used 1 times
XYDIAL defined in line 266; used 1 times
XYDINI defined in line 268; used 1 times
XYDKSP defined in line 269; used 1 times
XYDMHU defined in line 279; used 1 times
XYDMNP defined in line 273; used 1 times
XYDNPR defined in line 280; used 1 times
XYDOUB defined in line 285; never used
XYDSPD defined in line 272; used 1 times
XYDTMO defined in line 270; used 1 times
XYDUPL defined in line 201; used 1 times
XYDV32 defined in line 274; never used
XYDV42 defined in line 275; never used
XYDV42B defined in line 276; never used
XYEOL defined in line 202; used 1 times
XYESC defined in line 203; used 1 times
XYFLOW defined in line 206; used 1 times
XYHAND defined in line 207; used 1 times
XYIMAG defined in line 209; never used
XYINPU defined in line 210; used 3 times
XYKEY defined in line 260; used 1 times
XYLANG defined in line 256; used 1 times
XYLCLE defined in line 296; used 1 times
XYLEN defined in line 211; used 2 times
XYLOG defined in line 213; never used
XYMACR defined in line 261; used 1 times
XYMAIL defined in line 293; never used
XYMARK defined in line 214; used 1 times
XYMODM defined in line 227; used 1 times
XYMSGS defined in line 298; used 1 times
XYNET defined in line 263; used 1 times
XYNPAD defined in line 215; used 1 times
XYPAD defined in line 290; used 1 times
XYPADC defined in line 216; used 1 times
XYPADI defined in line 310; used 1 times
XYPADL defined in line 307; used 1 times
XYPADR defined in line 309; used 1 times
XYPADS defined in line 308; used 1 times
XYPARI defined in line 217; used 1 times
XYPAUS defined in line 218; never used
XYPRIN defined in line 294; never used
XYPROM defined in line 219; used 1 times
XYQBIN defined in line 220; never used
XYQCTL defined in line 221; never used
XYQUIE defined in line 295; used 1 times
XYREPT defined in line 222; never used
XYREVC defined in line 315; used 1 times
XYSCRI defined in line 297; used 1 times
XYSEND defined in line 228; used 1 times
XYSERD defined in line 253; used 1 times
XYSERT defined in line 252; used 1 times
XYSESS defined in line 281; used 1 times
XYSPEE defined in line 224; used 2 times
XYSUSP defined in line 292; used 1 times
XYTACH defined in line 225; never used
XYTAKE defined in line 258; used 1 times
XYTARR defined in line 246; used 1 times
XYTBYT defined in line 231; used 1 times
XYTCOL defined in line 243; used 1 times
XYTCRD defined in line 249; used 1 times
XYTCS defined in line 240; used 1 times
XYTCUR defined in line 245; used 1 times
XYTEC defined in line 244; used 1 times
XYTEL defined in line 299; used 1 times
XYTERM defined in line 230; used 1 times
XYTIMO defined in line 226; used 2 times
XYTKPD defined in line 247; used 1 times
XYTNL defined in line 242; used 1 times
XYTSO defined in line 241; used 1 times
XYTTYP defined in line 232; used 1 times
XYTWRP defined in line 248; used 1 times
XYUDAT defined in line 313; used 1 times
XYUNCS defined in line 259; used 1 times
XYWILD defined in line 291; used 1 times
XYX25 defined in line 289; used 2 times
XYXMIT defined in line 265; used 2 times
XZCPY defined in line 354; never used
XZCWD defined in line 355; used 2 times
XZDEL defined in line 356; used 1 times
XZDIR defined in line 357; used 1 times
XZHLP defined in line 358; used 1 times
XZHOS defined in line 359; used 1 times
XZKER defined in line 360; used 1 times
XZLGI defined in line 361; used 1 times
XZLGO defined in line 362; used 1 times
XZMAI defined in line 363; never used
XZMOU defined in line 364; never used
XZMSG defined in line 365; never used
XZPRI defined in line 366; used 1 times
XZREN defined in line 367; never used
XZSPA defined in line 369; used 1 times
XZSUB defined in line 370; never used
XZTYP defined in line 371; used 1 times
XZWHO defined in line 372; used 1 times

Usage of this include

Last modified: 1992-11-24
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 9613
Valid CSS Valid XHTML 1.0 Strict