home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / jsage / znode3 / uploads / more12.lbr / DIO.HZ / DIO.H
Encoding:
C/C++ Source or Header  |  1992-08-15  |  1.1 KB  |  31 lines

  1. /* dio.h
  2.  *  External data used by DIO.C for directed I/O simulation
  3.  */
  4.  
  5. #define BUF_CONS 0            /* 1 if console buffering is desired,
  6.                         0 otherwise (see DIO.C)       */
  7.  
  8. #define ABORT_CHECK 1            /* 1 to recognize keyboard abort   */
  9.  
  10. char _diflag, _doflag;            /* flag if directed I/O being used */
  11. char _apflag, _prflag;            /* flags if append or printer mode */
  12. char _nulflag;                /* flag for bit-bucket output       */
  13. char _pipef, *_pipedest;        /* true if a pipe is being filled  */
  14. char **_savei, **_nullpos;        /* used to remember position in
  15.                        command line when piping        */
  16. char cmdstr[200], *cmd;            /* command line for the MCL       */
  17. int fnptr;                /* pointer to output filename       */
  18. char *fmode;                /* file open mode "w" or "a"       */
  19.  
  20. FILE *_dibuf, *_dobuf;            /* fp's used for redirection        */
  21.  
  22. int  _cungetch;                /* NULL or ungotten character       */
  23.  
  24. #if BUF_CONS                /* console buffering data       */
  25.  
  26. char _conbuf[MAXLINE + 2];        /* console input buffer used for 
  27.                        non-directed standard input       */
  28. char *_conbufp;                /* pointer to next character to
  29.                         read from console buffer   */
  30. #endif
  31.