home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / prog / utils / sercli.shr / sercli / src / rcs / fifo.h,v < prev    next >
Encoding:
Text File  |  1993-06-16  |  3.3 KB  |  202 lines

  1. head    1.5;
  2. access;
  3. symbols
  4.     sercli_v1_10:1.5
  5.     sercli_v1_9:1.4
  6.     sercli_v1_8:1.4
  7.     sercli_v1_7:1.3
  8.     sercli_v1_6:1.2
  9.     sercli_v1_5:1.1;
  10. locks
  11.     rkr:1.5;
  12. comment    @**  @;
  13.  
  14.  
  15. 1.5
  16. date    93.06.16.23.33.55;    author rkr;    state Exp;
  17. branches;
  18. next    1.4;
  19.  
  20. 1.4
  21. date    91.12.20.09.44.19;    author rkr;    state Exp;
  22. branches;
  23. next    1.3;
  24.  
  25. 1.3
  26. date    91.12.10.02.48.45;    author rkr;    state Exp;
  27. branches;
  28. next    1.2;
  29.  
  30. 1.2
  31. date    91.12.02.10.52.01;    author rkr;    state Exp;
  32. branches;
  33. next    1.1;
  34.  
  35. 1.1
  36. date    91.11.28.08.25.36;    author rkr;    state Exp;
  37. branches;
  38. next    ;
  39.  
  40.  
  41. desc
  42. @sercli is a program to permit shell-like interface to the serial port,
  43. while also permitting easy config- and run-time-control over the way the
  44. serial port (or even _which_ serial port) is used.
  45.  
  46. @
  47.  
  48.  
  49. 1.5
  50. log
  51. @Essentially a non-change.
  52. @
  53. text
  54. @/*
  55. **  $Source: WB_2.1:homes/rkr/prog/sercli/src/RCS/fifo.h,v $
  56. **  $Author: rkr $
  57. **  $Revision: 1.4 $
  58. **  $Locker:  $
  59. **  $State: Exp $
  60. **  $Date: 1991/12/20 09:44:19 $
  61. **
  62. */
  63.  
  64.  
  65. /*
  66.  *  FIFO.H
  67.  *
  68.  *  PUBLIC FIFO STRUCTURES AND DEFINES
  69.  */
  70.  
  71. #ifndef LIBRARIES_FIFO_H
  72. #define LIBRARIES_FIFO_H
  73.  
  74. #define FIFONAME    "fifo.library"
  75.  
  76. #define FIFOF_READ      0x00000100L      /*  intend to read from fifo      */
  77. #define FIFOF_WRITE      0x00000200L      /*  intend to write to fifo      */
  78. #define FIFOF_RESERVED      0xFFFF0000L      /*  reserved for internal use   */
  79. #define FIFOF_NORMAL      0x00000400L      /*  request blocking/sig support*/
  80. #define FIFOF_NBIO      0x00000800L      /*  non-blocking IO          */
  81.  
  82. #define FIFOF_KEEPIFD      0x00002000L      /*  keep fifo alive if data pending */
  83. #define FIFOF_EOF      0x00004000L      /*  EOF on close              */
  84.  
  85. #define FREQ_RPEND    1
  86. #define FREQ_WAVAIL    2
  87. #define FREQ_ABORT    3
  88.  
  89. typedef void *FifoHan;              /*  returned by OpenFifo()  */
  90.  
  91.  
  92.  
  93. /*
  94. **  Need some protos so that I can use Manx/Aztec #pragmas...
  95. **
  96. **    ---rkr.
  97. **
  98. */
  99. FifoHan OpenFifo  (char *name, long bufsize, long flags);
  100. void    CloseFifo (FifoHan fifo, long flags);
  101. long    ReadFifo  (FifoHan fifo, char **pptr, long skip);
  102. long    WriteFifo (FifoHan fifo, void *buf, long max);
  103. void    RequestFifo (FifoHan fifo, struct Message *msg, long req);
  104. long    BufSizeFifo (FifoHan fifo);
  105.  
  106.  
  107.  
  108. /*
  109. **  Define __USE_LIBRARY_PRAGMAS if you want to get to "fifo_pragmas.h" (or
  110. **  else manually #include "fifo_pragmas.h").  (Except for Aztec users...
  111. **  you automatically get the #pragmas...)
  112. **
  113. **  The #pragmas were generated by the mapfd that came with Aztec; they are
  114. **  in Lattice form, so should work with either Aztec or Lattice/SAS.
  115. **
  116. **  You will need at least Aztec v5.0a.
  117. **
  118. **    ---rkr.
  119. **
  120. */
  121. #ifdef AZTEC_C
  122. #ifndef __USE_LIBRARY_PRAGMAS
  123.  
  124. #define __USE_LIBRARY_PRAGMAS 1
  125.  
  126. #endif    /*** __USE_LIBRARY_PRAGMAS ***/
  127. #endif    /*** AZTEC_C ***/
  128.  
  129.  
  130. #ifdef __USE_LIBRARY_PRAGMAS
  131. #include "fifo_pragmas.h"
  132. #endif    /*** __USE_LIBRARY_PRAGMAS ***/
  133.  
  134. #endif
  135. @
  136.  
  137.  
  138. 1.4
  139. log
  140. @*** empty log message ***
  141. @
  142. text
  143. @d2 1
  144. a2 1
  145. **  $Source: Workbench:personal/rkr/prog/sercli/src/rcs/fifo.h,v $
  146. d4 2
  147. a5 2
  148. **  $Revision: 1.3 $
  149. **  $Locker: rkr $
  150. d7 1
  151. a7 1
  152. **  $Date: 91/12/10 02:48:45 $
  153. d39 1
  154. d53 2
  155. d70 1
  156. d72 1
  157. d76 1
  158. a81 1
  159.  
  160. @
  161.  
  162.  
  163. 1.3
  164. log
  165. @*** empty log message ***
  166. @
  167. text
  168. @d4 1
  169. a4 1
  170. **  $Revision: 1.2 $
  171. d7 1
  172. a7 1
  173. **  $Date: 91/12/02 10:52:01 $
  174. @
  175.  
  176.  
  177. 1.2
  178. log
  179. @*** empty log message ***
  180. @
  181. text
  182. @d7 1
  183. a7 1
  184. **  $Date: 91/12/02 10:42:38 $
  185. @
  186.  
  187.  
  188. 1.1
  189. log
  190. @Initial revision
  191. @
  192. text
  193. @d2 6
  194. a7 6
  195. **  $Source$
  196. **  $Author$
  197. **  $Revision$
  198. **  $Locker$
  199. **  $State$
  200. **  $Date$
  201. @
  202.