home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / MAWK113.ZIP / mawk113 / files.h < prev    next >
C/C++ Source or Header  |  1992-12-16  |  1KB  |  55 lines

  1.  
  2. /********************************************
  3. files.h
  4. copyright 1991, Michael D. Brennan
  5.  
  6. This is a source file for mawk, an implementation of
  7. the AWK programming language.
  8.  
  9. Mawk is distributed without warranty under the terms of
  10. the GNU General Public License, version 2, 1991.
  11. ********************************************/
  12.  
  13. /*$Log: files.h,v $
  14.  * Revision 5.2  1992/12/17  02:48:01  mike
  15.  * 1.1.2d changes for DOS
  16.  *
  17.  * Revision 5.1  1991/12/05  07:59:18  brennan
  18.  * 1.1 pre-release
  19.  *
  20. */
  21.  
  22. #ifndef   FILES_H
  23. #define   FILES_H
  24.  
  25. /* IO redirection types */
  26. #define  F_IN           (-5)
  27. #define  PIPE_IN        (-4)
  28. #define  PIPE_OUT       (-3)
  29. #define  F_APPEND       (-2)
  30. #define  F_TRUNC        (-1)
  31.  
  32. extern char *shell ; /* for pipes and system() */
  33.  
  34. PTR  PROTO(file_find, (STRING *, int)) ;
  35. int  PROTO(file_close, (STRING *)) ;
  36. PTR  PROTO(get_pipe, (char *, int, int *) ) ;
  37. int  PROTO(wait_for, (int) ) ;
  38. void  PROTO( close_out_pipes, (void) ) ;
  39.  
  40. #if  HAVE_FAKE_PIPES
  41. void PROTO(close_fake_pipes, (void)) ;
  42. int  PROTO(close_fake_outpipe, (char *,int)) ;
  43. char *PROTO(tmp_file_name, (int, char*)) ;
  44. #endif
  45.  
  46. #if MSDOS
  47. int  PROTO(DOSexec, (char *)) ;
  48. int  PROTO(binmode, (void)) ;
  49. void PROTO(set_binmode, (int)) ;
  50. void PROTO(enlarge_output_buffer, (FILE*)) ;
  51. #endif
  52.  
  53.  
  54. #endif
  55.