Commit | Line | Data |
---|---|---|
a7e60862 WJ |
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.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 | ||
29 | extern char *shell ; /* for pipes and system() */ | |
30 | ||
31 | PTR PROTO(file_find, (STRING *, int)) ; | |
32 | int PROTO(file_close, (STRING *)) ; | |
33 | PTR PROTO(get_pipe, (char *, int, int *) ) ; | |
34 | int PROTO(wait_for, (int) ) ; | |
35 | void PROTO( close_out_pipes, (void) ) ; | |
36 | ||
37 | #if HAVE_FAKE_PIPES | |
38 | void PROTO(close_fake_pipes, (void)) ; | |
39 | int PROTO(close_fake_outpipe, (char *,int)) ; | |
40 | char *PROTO(tmp_file_name, (int)) ; | |
41 | #endif | |
42 | ||
43 | #if MSDOS | |
44 | int PROTO(DOSexec, (char *)) ; | |
45 | int PROTO(binmode, (void)) ; | |
46 | void PROTO(set_binmode, (int)) ; | |
47 | #endif | |
48 | ||
49 | ||
50 | #endif |