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