home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1996 October / PCO_10.ISO / filesbbs / bsrc_260.arj / INCLUDE.ZIP / xfer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-20  |  5.5 KB  |  122 lines

  1. /*--------------------------------------------------------------------------*/
  2. /*                                                                          */
  3. /*                                                                          */
  4. /*      ------------         Bit-Bucket Software, Co.                       */
  5. /*      \ 10001101 /         Writers and Distributors of                    */
  6. /*       \ 011110 /          Freely Available<tm> Software.                 */
  7. /*        \ 1011 /                                                          */
  8. /*         ------                                                           */
  9. /*                                                                          */
  10. /*              (C) Copyright 1987-96, Bit Bucket Software Co.              */
  11. /*                                                                          */
  12. /*                                                                          */
  13. /*                                                                          */
  14. /*           Definitions used in BinkleyTerm File Transfer logic            */
  15. /*                                                                          */
  16. /*                                                                          */
  17. /*    For complete  details  of the licensing restrictions, please refer    */
  18. /*    to the License  agreement,  which  is published in its entirety in    */
  19. /*    the MAKEFILE and BT.C, and also contained in the file LICENSE.260.    */
  20. /*                                                                          */
  21. /*    USE  OF THIS FILE IS SUBJECT TO THE  RESTRICTIONS CONTAINED IN THE    */
  22. /*    BINKLEYTERM  LICENSING  AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF    */
  23. /*    THIS  AGREEMENT IN ANY OF THE  AFOREMENTIONED FILES,  OR IF YOU DO    */
  24. /*    NOT HAVE THESE FILES,  YOU  SHOULD  IMMEDIATELY CONTACT BIT BUCKET    */
  25. /*    SOFTWARE CO.  AT ONE OF THE  ADDRESSES  LISTED BELOW.  IN NO EVENT    */
  26. /*    SHOULD YOU  PROCEED TO USE THIS FILE  WITHOUT HAVING  ACCEPTED THE    */
  27. /*    TERMS  OF  THE  BINKLEYTERM  LICENSING  AGREEMENT,  OR  SUCH OTHER    */
  28. /*    AGREEMENT AS YOU ARE ABLE TO REACH WITH BIT BUCKET SOFTWARE, CO.      */
  29. /*                                                                          */
  30. /*                                                                          */
  31. /* You can contact Bit Bucket Software Co. at any one of the following      */
  32. /* addresses:                                                               */
  33. /*                                                                          */
  34. /* Bit Bucket Software Co.        FidoNet  1:104/501, 1:343/491             */
  35. /* P.O. Box 460398                AlterNet 7:42/1491                        */
  36. /* Aurora, CO 80046               BBS-Net  86:2030/1                        */
  37. /*                                Internet f491.n343.z1.fidonet.org         */
  38. /*                                                                          */
  39. /* Please feel free to contact us at any time to share your comments about  */
  40. /* our software and/or licensing policies.                                  */
  41. /*                                                                          */
  42. /*                                                                          */
  43. /*  This module is based largely on a similar module in OPUS-CBCS V1.03b.   */
  44. /*  The original work is (C) Copyright 1987, Wynn Wagner III. The original  */
  45. /*  author has graciously allowed us to use his code in this work.          */
  46. /*                                                                          */
  47. /*--------------------------------------------------------------------------*/
  48.  
  49. #define read_binary "rb"
  50. #define write_binary "wb"
  51. #define append_binary "ab"
  52. #ifdef __IBMC__
  53. #define read_ascii "r"
  54. #define write_ascii "w"
  55. #define append_ascii "a"
  56. #else
  57. #define read_ascii "rt"
  58. #define write_ascii "wt"
  59. #define append_ascii "at"
  60. #endif
  61.  
  62. #define stcgfn strcpy
  63. #define wherex() fossil_wherex()
  64. #define wherey() fossil_wherey()
  65. #define gotoxy(x,y) fossil_gotoxy(x,y)
  66. #define CLEAR_IOERR() errno = 0
  67. #define wait_for_clear() while (!OUT_EMPTY())
  68. #define TIMED_READ(a) (int) com_getc(a)
  69.  
  70. /*--------------------------------------------------------------------------*/
  71. /* Ascii character mnemonics                                                */
  72. /*--------------------------------------------------------------------------*/
  73.  
  74. #define NUL    0x00
  75. #define SOH    0x01
  76. #define STX    0x02
  77. #define ETX    0x03
  78. #define EOT    0x04
  79. #define ENQ    0x05
  80. #define ACK    0x06
  81. #define BEL    0x07
  82. #define BS    0x08
  83. #define HT    0x09
  84. #define LV    0x0a
  85. #define VT    0x0b
  86. #define FF    0x0c
  87. #define CR    0x0d
  88. #define SO    0x0e
  89. #define SI    0x0f
  90. #define DLE    0x10
  91. #define DC1    0x11
  92. #define DC2    0x12
  93. #define DC3    0x13
  94. #define DC4    0x14
  95. #define NAK    0x15
  96. #define SYN    0x16
  97. #define ETB    0x17
  98. #define CAN    0x18
  99. #define EM    0x19
  100. #define SUB    0x1a
  101. #define ESC    0x1b
  102. #define FS    0x1c
  103. #define GS    0x1d
  104. #define RS    0x1e
  105. #define US    0x1f
  106.  
  107. /*--------------------------------------------------------------------------*/
  108. /* Parameters for calling ZMODEM routines                                   */
  109. /*--------------------------------------------------------------------------*/
  110.  
  111. #define TRUE                1
  112. #define FALSE                0
  113. #define END_BATCH            (-1)
  114. #define DELETE_AFTER        '-'
  115. #define SHOW_DELETE_AFTER    '^'
  116. #define TRUNC_AFTER            '#'
  117. #define NOTHING_AFTER        '@'
  118. #define DO_WAZOO            TRUE
  119. #define DO_EMSI                TRUE
  120.  
  121. /* End of XFER.H */
  122.