home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / decpro300 / procom.req < prev    next >
Text File  |  2020-01-01  |  6KB  |  204 lines

  1.  
  2. !++
  3. ! FACILITY:
  4. !   KERMIT-32/36
  5. !
  6. ! ABSTRACT:
  7. !    This file contains the common definitions for KERMIT-32 and KERMIT-36.
  8. !
  9. ! ENVIRONMENT:
  10. !   User mode
  11. !
  12. ! AUTHOR: Robert C. McQueen, CREATION DATE: 24-January-1983
  13. !
  14. ! MODIFIED BY:
  15. !
  16. !    13-June-83            Nick Bush
  17. !    Change maximum record length for RMS records to be 4096 instead
  18. !    of 256.
  19. !
  20. !    3-Jan-1983            Nick Bush
  21. !    Add FNM_xxx symbols for type of file specification to send.
  22. !
  23. !--
  24.  
  25. %SBTTL 'Table of Contents'
  26.  
  27. %SBTTL 'Symbol definitions -- Routine calls'
  28.  
  29. !
  30. ! EQUATED SYMBOLS:
  31. !
  32. !
  33. ! Function types passed to FILE_OPEN routine.
  34. !
  35.  
  36. LITERAL
  37.     FNC_READ = 0,                ! Open for reading
  38.     FNC_WRITE = 1;                ! Open for writing
  39.  
  40. !
  41. ! File types used
  42. !
  43.  
  44. LITERAL
  45.     FILE_ASC = 1,                ! ASCII files (SEVEN-BIT)
  46.     FILE_BIN = 2,                ! Binary (.COM) files. (EIGHT-BIT)
  47.     FILE_BLK = 3,                ! Block transfer of files
  48.     FILE_FIX = 4;                ! Fixed 512 byte records under Files-11
  49.                         !  (used for PRO/KERMIT .TSK files)
  50. !
  51. ! File naming forms
  52. !
  53. !    Note:  Only FNM_NORMAL should be a true value (have LSB on).  Other
  54. !           values must be false, or the name will be normalized.
  55. !
  56. GLOBAL LITERAL
  57.     FNM_NORMAL = 1,                ! Normal form file names
  58.     FNM_FULL = 2,                ! Complete file names
  59.     FNM_UNTRAN = 4;                ! Untranslated (but not full) names
  60.  
  61. !
  62. ! Parity types
  63. !
  64.  
  65. GLOBAL LITERAL
  66.     PR_MIN = 0,                    ! Min offset
  67.     PR_NONE = 0,                ! No parity
  68.     PR_MARK = 1,                ! Mark parity
  69.     PR_EVEN = 2,                ! Even parity
  70.     PR_ODD = 3,                    ! Odd parity
  71.     PR_SPACE = 4,                ! Space
  72.     PR_MAX = 4;                    ! Max offset
  73. !
  74. ! DO_GENERIC commands
  75. !
  76. ! Generic commands that we can send
  77. !
  78. GLOBAL LITERAL
  79.     GC_MIN    = 1,        ! Min command
  80.     GC_EXIT    = 1,        ! EXIT command
  81.     GC_DIRECTORY = 2,        ! List DIRECTORY command
  82.     GC_DISK_USAGE = 3,        ! Display disk usage summary
  83.     GC_DELETE    = 4,        ! DELETE file command
  84.     GC_TYPE    = 5,        ! TYPE file command
  85.     GC_HELP    = 6,        ! Display HELP information
  86.     GC_LOGOUT    = 7,        ! LOGOUT command
  87.     GC_LGN    = 8,        ! LOGIN command
  88.     GC_CONNECT    = 9,        ! CONNECT (CWD) command
  89.     GC_RENAME    =10,        ! RENAME file command
  90.     GC_COPY    =11,        ! COPY file command
  91.     GC_WHO    =12,        ! WHO is logged in (Finger)
  92.     GC_SEND_MSG    =13,        ! Send a message
  93.     GC_STATUS    =14,        ! Get status of server
  94.     GC_COMMAND    =15,        ! Perform host command
  95.     GC_KERMIT    =16,        ! Perform Kermit command
  96.     GC_JOURNAL    =17,        ! Perform journal functions
  97.     GC_VARIABLE    =18,        ! Set/get variable value
  98.     GC_PROGRAM    =19,        ! Run program and pass command
  99.     GC_MAX    =19;        ! Max command
  100.  
  101. !++
  102. !The following denotes the type of communications line that is being used.
  103. !--
  104.  
  105. GLOBAL LITERAL
  106.     DP_FULL = 0,        ! Full duplex line
  107.     DP_HALF = 1;        ! Half duplex line
  108.  
  109. !++
  110. ! The following are the various checksum types that are allowed.
  111. !--
  112.  
  113. GLOBAL LITERAL
  114.     CHK_1CHAR = %C'1',                ! One character checksums
  115.     CHK_2CHAR = %C'2',                ! Two character checksums
  116.     CHK_CRC = %C'3';                ! Three character CRC.
  117.  
  118.  
  119.     %SBTTL    'Character definitions'
  120.  
  121. !
  122. ! Character definitions
  123. !
  124.  
  125. LITERAL
  126.     CHR_NUL = %O'000',            ! Null (tape feed character, fill character)
  127.     CHR_SOH = %O'001',            ! Start of header
  128.     CHR_STX = %O'002',            ! Start of text
  129.     CHR_ETX = %O'003',            ! End of text
  130.     CHR_EOT = %O'004',            ! End of transmission
  131.     CHR_ENQ = %O'005',            ! Enquiry (WRU "Who are you?")
  132.     CHR_ACK = %O'006',            ! Acknowledge
  133.     CHR_BEL = %O'007',            ! Bell
  134.     CHR_BS = %O'010',            ! Backspace
  135.     CHR_TAB = %O'011',            ! Horizontal tab
  136.     CHR_LFD = %O'012',            ! Line feed
  137.     CHR_VTB = %O'013',            ! Vertical tab
  138.     CHR_FFD = %O'014',            ! Form feed
  139.     CHR_CRT = %O'015',            ! Carriage return
  140.     CHR_SO = %O'016',            ! Shift out
  141.     CHR_SI = %O'017',            ! Shift in
  142.     CHR_DLE = %O'020',            ! Data link escape
  143.     CHR_DC1 = %O'021',            ! Device control 1 (also XON)
  144.     CHR_DC2 = %O'022',            ! Device control 2 (also TAPE or AUX ON)
  145.     CHR_DC3 = %O'023',            ! Device control 3 (also XOFF)
  146.     CHR_DC4 = %O'024',            ! Device control 4 (also AUX OFF)
  147.     CHR_NAK = %O'025',            ! Negative acknowledge
  148.     CHR_SYN = %O'026',            ! Synchronous idle (SYNC)
  149.     CHR_ETB = %O'027',            ! End of transmission block
  150.     CHR_CAN = %O'030',            ! Cancel
  151.     CHR_EM = %O'031',            ! End of medium
  152.     CHR_SUB = %O'032',            ! Substitute
  153.     CHR_ESC = %O'033',            ! Escape
  154.     CHR_FS = %O'034',            ! File separator
  155.     CHR_GS = %O'035',            ! Group separator
  156.     CHR_RS = %O'036',            ! Record separator
  157.     CHR_US = %O'037',            ! Unit separator
  158.  
  159.     CHR_CTL_A = %O'001',            ! Control-A
  160.     CHR_CTL_B = %O'002',            ! Control-B
  161.     CHR_CTL_C = %O'003',            ! Control-C
  162.     CHR_CTL_D = %O'004',            ! Control-D
  163.     CHR_CTL_E = %O'005',            ! Control-E
  164.     CHR_CTL_F = %O'006',            ! Control-F
  165.     CHR_CTL_G = %O'007',            ! Control-G
  166.     CHR_CTL_H = %O'010',            ! Control-H
  167.     CHR_CTL_I = %O'011',            ! Control-I
  168.     CHR_CTL_J = %O'012',            ! Control-J
  169.     CHR_CTL_K = %O'013',            ! Control-K
  170.     CHR_CTL_L = %O'014',            ! Control-L
  171.     CHR_CTL_M = %O'015',            ! Control-M
  172.     CHR_CTL_N = %O'016',            ! Control-N
  173.     CHR_CTL_O = %O'017',            ! Control-O
  174.     CHR_CTL_P = %O'020',            ! Control-P
  175.     CHR_CTL_Q = %O'021',            ! Control-Q
  176.     CHR_CTL_R = %O'022',            ! Control-R
  177.     CHR_CTL_S = %O'023',            ! Control-S
  178.     CHR_CTL_T = %O'024',            ! Control-T
  179.     CHR_CTL_U = %O'025',            ! Control-U
  180.     CHR_CTL_V = %O'026',            ! Control-V
  181.     CHR_CTL_W = %O'027',            ! Control-W
  182.     CHR_CTL_X = %O'030',            ! Control-X
  183.     CHR_CTL_Y = %O'031',            ! Control-Y
  184.     CHR_CTL_Z = %O'032',            ! Control-Z
  185.     CHR_SP = %C' ',                ! Space
  186.     CHR_DEL = %O'177',                ! Delete
  187.     CHR_ESCAPE = %O'035',            ! Connect escape character
  188.     CHR_SIZE = 8;                ! Size of the characters we process
  189.  
  190. !
  191. ! Constants
  192. !
  193.  
  194. LITERAL
  195.     TRUE = (0 EQL 0),                ! Value of true
  196.     FALSE = (0 NEQ 0),                ! Value of FALSE.
  197.     MAX_FILE_NAME = 132,            ! Maximum length of a file specification
  198.     MAX_REC_LENGTH = 4096,            ! Maximum record length we handle
  199.     INIT_DELAY = 5;                ! Initial delay time
  200.  
  201. GLOBAL LITERAL
  202.     MAX_MSG = 96;                ! Maximum message length
  203.  
  204.